Package com.adyen.model.balanceplatform
Class PaymentInstrumentRequirement
- java.lang.Object
-
- com.adyen.model.balanceplatform.PaymentInstrumentRequirement
-
public class PaymentInstrumentRequirement extends Object
PaymentInstrumentRequirement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentInstrumentRequirement.PaymentInstrumentTypeEnumThe type of the payment instrument.static classPaymentInstrumentRequirement.TypeEnum**paymentInstrumentRequirement**
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DESCRIPTIONstatic StringJSON_PROPERTY_ISSUING_COUNTRY_CODEstatic StringJSON_PROPERTY_ISSUING_COUNTRY_CODESstatic StringJSON_PROPERTY_ONLY_FOR_CROSS_BALANCE_PLATFORMstatic StringJSON_PROPERTY_PAYMENT_INSTRUMENT_TYPEstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description PaymentInstrumentRequirement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentInstrumentRequirementaddIssuingCountryCodesItem(String issuingCountryCodesItem)PaymentInstrumentRequirementdescription(String description)booleanequals(Object o)Return true if this PaymentInstrumentRequirement object is equal to o.static PaymentInstrumentRequirementfromJson(String jsonString)Create an instance of PaymentInstrumentRequirement given an JSON stringStringgetDescription()Specifies the requirements for the payment instrument that need to be included in the request for a particular route.StringgetIssuingCountryCode()The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued.List<String>getIssuingCountryCodes()The two-character ISO-3166-1 alpha-2 country code list for payment instruments.BooleangetOnlyForCrossBalancePlatform()Specifies if the requirement only applies to transfers to another balance platform.PaymentInstrumentRequirement.PaymentInstrumentTypeEnumgetPaymentInstrumentType()The type of the payment instrument.PaymentInstrumentRequirement.TypeEnumgetType()**paymentInstrumentRequirement**inthashCode()PaymentInstrumentRequirementissuingCountryCode(String issuingCountryCode)PaymentInstrumentRequirementissuingCountryCodes(List<String> issuingCountryCodes)PaymentInstrumentRequirementonlyForCrossBalancePlatform(Boolean onlyForCrossBalancePlatform)PaymentInstrumentRequirementpaymentInstrumentType(PaymentInstrumentRequirement.PaymentInstrumentTypeEnum paymentInstrumentType)voidsetDescription(String description)Specifies the requirements for the payment instrument that need to be included in the request for a particular route.voidsetIssuingCountryCode(String issuingCountryCode)The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued.voidsetIssuingCountryCodes(List<String> issuingCountryCodes)The two-character ISO-3166-1 alpha-2 country code list for payment instruments.voidsetOnlyForCrossBalancePlatform(Boolean onlyForCrossBalancePlatform)Specifies if the requirement only applies to transfers to another balance platform.voidsetPaymentInstrumentType(PaymentInstrumentRequirement.PaymentInstrumentTypeEnum paymentInstrumentType)The type of the payment instrument.voidsetType(PaymentInstrumentRequirement.TypeEnum type)**paymentInstrumentRequirement**StringtoJson()Convert an instance of PaymentInstrumentRequirement to an JSON stringStringtoString()PaymentInstrumentRequirementtype(PaymentInstrumentRequirement.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ISSUING_COUNTRY_CODE
public static final String JSON_PROPERTY_ISSUING_COUNTRY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ISSUING_COUNTRY_CODES
public static final String JSON_PROPERTY_ISSUING_COUNTRY_CODES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ONLY_FOR_CROSS_BALANCE_PLATFORM
public static final String JSON_PROPERTY_ONLY_FOR_CROSS_BALANCE_PLATFORM
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_INSTRUMENT_TYPE
public static final String JSON_PROPERTY_PAYMENT_INSTRUMENT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
description
public PaymentInstrumentRequirement description(String description)
-
getDescription
public String getDescription()
Specifies the requirements for the payment instrument that need to be included in the request for a particular route.- Returns:
- description
-
setDescription
public void setDescription(String description)
Specifies the requirements for the payment instrument that need to be included in the request for a particular route.- Parameters:
description-
-
issuingCountryCode
public PaymentInstrumentRequirement issuingCountryCode(String issuingCountryCode)
-
getIssuingCountryCode
public String getIssuingCountryCode()
The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**.- Returns:
- issuingCountryCode
-
setIssuingCountryCode
public void setIssuingCountryCode(String issuingCountryCode)
The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**.- Parameters:
issuingCountryCode-
-
issuingCountryCodes
public PaymentInstrumentRequirement issuingCountryCodes(List<String> issuingCountryCodes)
-
addIssuingCountryCodesItem
public PaymentInstrumentRequirement addIssuingCountryCodesItem(String issuingCountryCodesItem)
-
getIssuingCountryCodes
public List<String> getIssuingCountryCodes()
The two-character ISO-3166-1 alpha-2 country code list for payment instruments.- Returns:
- issuingCountryCodes
-
setIssuingCountryCodes
public void setIssuingCountryCodes(List<String> issuingCountryCodes)
The two-character ISO-3166-1 alpha-2 country code list for payment instruments.- Parameters:
issuingCountryCodes-
-
onlyForCrossBalancePlatform
public PaymentInstrumentRequirement onlyForCrossBalancePlatform(Boolean onlyForCrossBalancePlatform)
-
getOnlyForCrossBalancePlatform
public Boolean getOnlyForCrossBalancePlatform()
Specifies if the requirement only applies to transfers to another balance platform.- Returns:
- onlyForCrossBalancePlatform
-
setOnlyForCrossBalancePlatform
public void setOnlyForCrossBalancePlatform(Boolean onlyForCrossBalancePlatform)
Specifies if the requirement only applies to transfers to another balance platform.- Parameters:
onlyForCrossBalancePlatform-
-
paymentInstrumentType
public PaymentInstrumentRequirement paymentInstrumentType(PaymentInstrumentRequirement.PaymentInstrumentTypeEnum paymentInstrumentType)
-
getPaymentInstrumentType
public PaymentInstrumentRequirement.PaymentInstrumentTypeEnum getPaymentInstrumentType()
The type of the payment instrument. For example, \"BankAccount\" or \"Card\".- Returns:
- paymentInstrumentType
-
setPaymentInstrumentType
public void setPaymentInstrumentType(PaymentInstrumentRequirement.PaymentInstrumentTypeEnum paymentInstrumentType)
The type of the payment instrument. For example, \"BankAccount\" or \"Card\".- Parameters:
paymentInstrumentType-
-
type
public PaymentInstrumentRequirement type(PaymentInstrumentRequirement.TypeEnum type)
-
getType
public PaymentInstrumentRequirement.TypeEnum getType()
**paymentInstrumentRequirement**- Returns:
- type
-
setType
public void setType(PaymentInstrumentRequirement.TypeEnum type)
**paymentInstrumentRequirement**- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this PaymentInstrumentRequirement object is equal to o.
-
fromJson
public static PaymentInstrumentRequirement fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentInstrumentRequirement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentInstrumentRequirement
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentInstrumentRequirement
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentInstrumentRequirement to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-