Package com.adyen.model.transfers
Class FundingInstrument
- java.lang.Object
-
- com.adyen.model.transfers.FundingInstrument
-
public class FundingInstrument extends Object
FundingInstrument
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFundingInstrument.SourceOfFundsEnumIndicates where the funds used for the transfer originated.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CARD_IDENTIFICATIONstatic StringJSON_PROPERTY_NETWORK_PAYMENT_REFERENCEstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_SOURCE_OF_FUNDS
-
Constructor Summary
Constructors Constructor Description FundingInstrument()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FundingInstrumentcardIdentification(CardIdentification cardIdentification)cardIdentificationbooleanequals(Object o)Return true if this FundingInstrument object is equal to o.static FundingInstrumentfromJson(String jsonString)Create an instance of FundingInstrument given an JSON stringCardIdentificationgetCardIdentification()Get cardIdentificationMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetNetworkPaymentReference()The unique reference assigned by the card network for the pay-in transaction.StringgetReference()Your internal reference that identifies this funding instrument.FundingInstrument.SourceOfFundsEnumgetSourceOfFunds()Indicates where the funds used for the transfer originated.inthashCode()FundingInstrumentincludeNullValues(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.FundingInstrumentnetworkPaymentReference(String networkPaymentReference)The unique reference assigned by the card network for the pay-in transaction.FundingInstrumentreference(String reference)Your internal reference that identifies this funding instrument.voidsetCardIdentification(CardIdentification cardIdentification)cardIdentificationvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetNetworkPaymentReference(String networkPaymentReference)The unique reference assigned by the card network for the pay-in transaction.voidsetReference(String reference)Your internal reference that identifies this funding instrument.voidsetSourceOfFunds(FundingInstrument.SourceOfFundsEnum sourceOfFunds)Indicates where the funds used for the transfer originated.FundingInstrumentsourceOfFunds(FundingInstrument.SourceOfFundsEnum sourceOfFunds)Indicates where the funds used for the transfer originated.StringtoJson()Convert an instance of FundingInstrument to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CARD_IDENTIFICATION
public static final String JSON_PROPERTY_CARD_IDENTIFICATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE
public static final String JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SOURCE_OF_FUNDS
public static final String JSON_PROPERTY_SOURCE_OF_FUNDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
cardIdentification
public FundingInstrument cardIdentification(CardIdentification cardIdentification)
cardIdentification- Parameters:
cardIdentification-- Returns:
- the current
FundingInstrumentinstance, allowing for method chaining
-
getCardIdentification
public CardIdentification getCardIdentification()
Get cardIdentification- Returns:
- cardIdentification
-
setCardIdentification
public void setCardIdentification(CardIdentification cardIdentification)
cardIdentification- Parameters:
cardIdentification-
-
networkPaymentReference
public FundingInstrument networkPaymentReference(String networkPaymentReference)
The unique reference assigned by the card network for the pay-in transaction.- Parameters:
networkPaymentReference- The unique reference assigned by the card network for the pay-in transaction.- Returns:
- the current
FundingInstrumentinstance, allowing for method chaining
-
getNetworkPaymentReference
public String getNetworkPaymentReference()
The unique reference assigned by the card network for the pay-in transaction.- Returns:
- networkPaymentReference The unique reference assigned by the card network for the pay-in transaction.
-
setNetworkPaymentReference
public void setNetworkPaymentReference(String networkPaymentReference)
The unique reference assigned by the card network for the pay-in transaction.- Parameters:
networkPaymentReference- The unique reference assigned by the card network for the pay-in transaction.
-
reference
public FundingInstrument reference(String reference)
Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.- Parameters:
reference- Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.- Returns:
- the current
FundingInstrumentinstance, allowing for method chaining
-
getReference
public String getReference()
Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.- Returns:
- reference Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
-
setReference
public void setReference(String reference)
Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.- Parameters:
reference- Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
-
sourceOfFunds
public FundingInstrument sourceOfFunds(FundingInstrument.SourceOfFundsEnum sourceOfFunds)
Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.- Parameters:
sourceOfFunds- Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.- Returns:
- the current
FundingInstrumentinstance, allowing for method chaining
-
getSourceOfFunds
public FundingInstrument.SourceOfFundsEnum getSourceOfFunds()
Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.- Returns:
- sourceOfFunds Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
-
setSourceOfFunds
public void setSourceOfFunds(FundingInstrument.SourceOfFundsEnum sourceOfFunds)
Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.- Parameters:
sourceOfFunds- Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
-
includeNullValues
public FundingInstrument 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 FundingInstrument 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 FundingInstrument fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of FundingInstrument given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FundingInstrument
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to FundingInstrument
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of FundingInstrument to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-