Package com.adyen.model.management
Class GivexInfo
- java.lang.Object
-
- com.adyen.model.management.GivexInfo
-
public class GivexInfo extends Object
GivexInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGivexInfo.PaymentFlowEnumThe sales channel used for the payment.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CURRENCY_CODEstatic StringJSON_PROPERTY_PASSWORDstatic StringJSON_PROPERTY_PAYMENT_FLOWstatic StringJSON_PROPERTY_USERNAME
-
Constructor Summary
Constructors Constructor Description GivexInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GivexInfocurrencyCode(String currencyCode)The three-character ISO currency code, such as **EUR**.booleanequals(Object o)Return true if this GivexInfo object is equal to o.static GivexInfofromJson(String jsonString)Create an instance of GivexInfo given an JSON stringStringgetCurrencyCode()The three-character ISO currency code, such as **EUR**.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetPassword()The password provided by the acquirer.GivexInfo.PaymentFlowEnumgetPaymentFlow()The sales channel used for the payment.StringgetUsername()The username provided by the acquirer.inthashCode()GivexInfoincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.GivexInfopassword(String password)The password provided by the acquirer.GivexInfopaymentFlow(GivexInfo.PaymentFlowEnum paymentFlow)The sales channel used for the payment.voidsetCurrencyCode(String currencyCode)The three-character ISO currency code, such as **EUR**.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPassword(String password)The password provided by the acquirer.voidsetPaymentFlow(GivexInfo.PaymentFlowEnum paymentFlow)The sales channel used for the payment.voidsetUsername(String username)The username provided by the acquirer.StringtoJson()Convert an instance of GivexInfo to an JSON stringStringtoString()GivexInfousername(String username)The username provided by the acquirer.
-
-
-
Field Detail
-
JSON_PROPERTY_CURRENCY_CODE
public static final String JSON_PROPERTY_CURRENCY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PASSWORD
public static final String JSON_PROPERTY_PASSWORD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_FLOW
public static final String JSON_PROPERTY_PAYMENT_FLOW
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USERNAME
public static final String JSON_PROPERTY_USERNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
currencyCode
public GivexInfo currencyCode(String currencyCode)
The three-character ISO currency code, such as **EUR**.- Parameters:
currencyCode- The three-character ISO currency code, such as **EUR**.- Returns:
- the current
GivexInfoinstance, allowing for method chaining
-
getCurrencyCode
public String getCurrencyCode()
The three-character ISO currency code, such as **EUR**.- Returns:
- currencyCode The three-character ISO currency code, such as **EUR**.
-
setCurrencyCode
public void setCurrencyCode(String currencyCode)
The three-character ISO currency code, such as **EUR**.- Parameters:
currencyCode- The three-character ISO currency code, such as **EUR**.
-
password
public GivexInfo password(String password)
The password provided by the acquirer.- Parameters:
password- The password provided by the acquirer.- Returns:
- the current
GivexInfoinstance, allowing for method chaining
-
getPassword
public String getPassword()
The password provided by the acquirer.- Returns:
- password The password provided by the acquirer.
-
setPassword
public void setPassword(String password)
The password provided by the acquirer.- Parameters:
password- The password provided by the acquirer.
-
paymentFlow
public GivexInfo paymentFlow(GivexInfo.PaymentFlowEnum paymentFlow)
The sales channel used for the payment.- Parameters:
paymentFlow- The sales channel used for the payment.- Returns:
- the current
GivexInfoinstance, allowing for method chaining
-
getPaymentFlow
public GivexInfo.PaymentFlowEnum getPaymentFlow()
The sales channel used for the payment.- Returns:
- paymentFlow The sales channel used for the payment.
-
setPaymentFlow
public void setPaymentFlow(GivexInfo.PaymentFlowEnum paymentFlow)
The sales channel used for the payment.- Parameters:
paymentFlow- The sales channel used for the payment.
-
username
public GivexInfo username(String username)
The username provided by the acquirer.- Parameters:
username- The username provided by the acquirer.- Returns:
- the current
GivexInfoinstance, allowing for method chaining
-
getUsername
public String getUsername()
The username provided by the acquirer.- Returns:
- username The username provided by the acquirer.
-
setUsername
public void setUsername(String username)
The username provided by the acquirer.- Parameters:
username- The username provided by the acquirer.
-
includeNullValues
public GivexInfo includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this GivexInfo object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static GivexInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of GivexInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GivexInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to GivexInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of GivexInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-