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_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 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 country code of the counterparty.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)PaymentInstrumentRequirementonlyForCrossBalancePlatform(Boolean onlyForCrossBalancePlatform)PaymentInstrumentRequirementpaymentInstrumentType(PaymentInstrumentRequirement.PaymentInstrumentTypeEnum paymentInstrumentType)voidsetDescription(String description)voidsetIssuingCountryCode(String issuingCountryCode)voidsetOnlyForCrossBalancePlatform(Boolean onlyForCrossBalancePlatform)voidsetPaymentInstrumentType(PaymentInstrumentRequirement.PaymentInstrumentTypeEnum paymentInstrumentType)voidsetType(PaymentInstrumentRequirement.TypeEnum type)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_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)
-
issuingCountryCode
public PaymentInstrumentRequirement issuingCountryCode(String issuingCountryCode)
-
getIssuingCountryCode
public String getIssuingCountryCode()
The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**.- Returns:
- issuingCountryCode
-
setIssuingCountryCode
public void setIssuingCountryCode(String issuingCountryCode)
-
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)
-
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)
-
type
public PaymentInstrumentRequirement type(PaymentInstrumentRequirement.TypeEnum type)
-
getType
public PaymentInstrumentRequirement.TypeEnum getType()
**paymentInstrumentRequirement**- Returns:
- type
-
setType
public void setType(PaymentInstrumentRequirement.TypeEnum 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
-
-