Package com.adyen.model.management
Class PayAtTable
- java.lang.Object
-
- com.adyen.model.management.PayAtTable
-
public class PayAtTable extends Object
PayAtTable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPayAtTable.AuthenticationMethodEnumAllowed authentication methods: Magswipe, Manual Entry.static classPayAtTable.PaymentInstrumentEnumSets the allowed payment instrument for Pay at table transactions.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUTHENTICATION_METHODstatic StringJSON_PROPERTY_ENABLE_PAY_AT_TABLEstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENT
-
Constructor Summary
Constructors Constructor Description PayAtTable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PayAtTableauthenticationMethod(PayAtTable.AuthenticationMethodEnum authenticationMethod)Allowed authentication methods: Magswipe, Manual Entry.PayAtTableenablePayAtTable(Boolean enablePayAtTable)Enable Pay at table.booleanequals(Object o)Return true if this PayAtTable object is equal to o.static PayAtTablefromJson(String jsonString)Create an instance of PayAtTable given an JSON stringPayAtTable.AuthenticationMethodEnumgetAuthenticationMethod()Allowed authentication methods: Magswipe, Manual Entry.BooleangetEnablePayAtTable()Enable Pay at table.PayAtTable.PaymentInstrumentEnumgetPaymentInstrument()Sets the allowed payment instrument for Pay at table transactions.inthashCode()PayAtTablepaymentInstrument(PayAtTable.PaymentInstrumentEnum paymentInstrument)Sets the allowed payment instrument for Pay at table transactions.voidsetAuthenticationMethod(PayAtTable.AuthenticationMethodEnum authenticationMethod)Allowed authentication methods: Magswipe, Manual Entry.voidsetEnablePayAtTable(Boolean enablePayAtTable)Enable Pay at table.voidsetPaymentInstrument(PayAtTable.PaymentInstrumentEnum paymentInstrument)Sets the allowed payment instrument for Pay at table transactions.StringtoJson()Convert an instance of PayAtTable to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AUTHENTICATION_METHOD
public static final String JSON_PROPERTY_AUTHENTICATION_METHOD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENABLE_PAY_AT_TABLE
public static final String JSON_PROPERTY_ENABLE_PAY_AT_TABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_INSTRUMENT
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
authenticationMethod
public PayAtTable authenticationMethod(PayAtTable.AuthenticationMethodEnum authenticationMethod)
Allowed authentication methods: Magswipe, Manual Entry.- Parameters:
authenticationMethod-- Returns:
- the current
PayAtTableinstance, allowing for method chaining
-
getAuthenticationMethod
public PayAtTable.AuthenticationMethodEnum getAuthenticationMethod()
Allowed authentication methods: Magswipe, Manual Entry.- Returns:
- authenticationMethod
-
setAuthenticationMethod
public void setAuthenticationMethod(PayAtTable.AuthenticationMethodEnum authenticationMethod)
Allowed authentication methods: Magswipe, Manual Entry.- Parameters:
authenticationMethod-
-
enablePayAtTable
public PayAtTable enablePayAtTable(Boolean enablePayAtTable)
Enable Pay at table.- Parameters:
enablePayAtTable-- Returns:
- the current
PayAtTableinstance, allowing for method chaining
-
getEnablePayAtTable
public Boolean getEnablePayAtTable()
Enable Pay at table.- Returns:
- enablePayAtTable
-
setEnablePayAtTable
public void setEnablePayAtTable(Boolean enablePayAtTable)
Enable Pay at table.- Parameters:
enablePayAtTable-
-
paymentInstrument
public PayAtTable paymentInstrument(PayAtTable.PaymentInstrumentEnum paymentInstrument)
Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options.- Parameters:
paymentInstrument-- Returns:
- the current
PayAtTableinstance, allowing for method chaining
-
getPaymentInstrument
public PayAtTable.PaymentInstrumentEnum getPaymentInstrument()
Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options.- Returns:
- paymentInstrument
-
setPaymentInstrument
public void setPaymentInstrument(PayAtTable.PaymentInstrumentEnum paymentInstrument)
Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options.- Parameters:
paymentInstrument-
-
equals
public boolean equals(Object o)
Return true if this PayAtTable object is equal to o.
-
fromJson
public static PayAtTable fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PayAtTable given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PayAtTable
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PayAtTable
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PayAtTable to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-