Package com.adyen.model.transfers
Class CounterpartyInfoV3
- java.lang.Object
-
- com.adyen.model.transfers.CounterpartyInfoV3
-
public class CounterpartyInfoV3 extends Object
CounterpartyInfoV3
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BALANCE_ACCOUNT_IDstatic StringJSON_PROPERTY_BANK_ACCOUNTstatic StringJSON_PROPERTY_CARDstatic StringJSON_PROPERTY_TRANSFER_INSTRUMENT_ID
-
Constructor Summary
Constructors Constructor Description CounterpartyInfoV3()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CounterpartyInfoV3balanceAccountId(String balanceAccountId)The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).CounterpartyInfoV3bankAccount(BankAccountV3 bankAccount)bankAccountCounterpartyInfoV3card(Card card)cardbooleanequals(Object o)Return true if this CounterpartyInfoV3 object is equal to o.static CounterpartyInfoV3fromJson(String jsonString)Create an instance of CounterpartyInfoV3 given an JSON stringStringgetBalanceAccountId()The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).BankAccountV3getBankAccount()bankAccountCardgetCard()cardStringgetTransferInstrumentId()The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).inthashCode()voidsetBalanceAccountId(String balanceAccountId)The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).voidsetBankAccount(BankAccountV3 bankAccount)bankAccountvoidsetCard(Card card)cardvoidsetTransferInstrumentId(String transferInstrumentId)The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).StringtoJson()Convert an instance of CounterpartyInfoV3 to an JSON stringStringtoString()CounterpartyInfoV3transferInstrumentId(String transferInstrumentId)The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).
-
-
-
Field Detail
-
JSON_PROPERTY_BALANCE_ACCOUNT_ID
public static final String JSON_PROPERTY_BALANCE_ACCOUNT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BANK_ACCOUNT
public static final String JSON_PROPERTY_BANK_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CARD
public static final String JSON_PROPERTY_CARD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSFER_INSTRUMENT_ID
public static final String JSON_PROPERTY_TRANSFER_INSTRUMENT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
balanceAccountId
public CounterpartyInfoV3 balanceAccountId(String balanceAccountId)
The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).- Parameters:
balanceAccountId-- Returns:
- the current
CounterpartyInfoV3instance, allowing for method chaining
-
getBalanceAccountId
public String getBalanceAccountId()
The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).- Returns:
- balanceAccountId
-
setBalanceAccountId
public void setBalanceAccountId(String balanceAccountId)
The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id).- Parameters:
balanceAccountId-
-
bankAccount
public CounterpartyInfoV3 bankAccount(BankAccountV3 bankAccount)
bankAccount- Parameters:
bankAccount-- Returns:
- the current
CounterpartyInfoV3instance, allowing for method chaining
-
getBankAccount
public BankAccountV3 getBankAccount()
bankAccount- Returns:
- bankAccount
-
setBankAccount
public void setBankAccount(BankAccountV3 bankAccount)
bankAccount- Parameters:
bankAccount-
-
card
public CounterpartyInfoV3 card(Card card)
card- Parameters:
card-- Returns:
- the current
CounterpartyInfoV3instance, allowing for method chaining
-
getCard
public Card getCard()
card- Returns:
- card
-
setCard
public void setCard(Card card)
card- Parameters:
card-
-
transferInstrumentId
public CounterpartyInfoV3 transferInstrumentId(String transferInstrumentId)
The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).- Parameters:
transferInstrumentId-- Returns:
- the current
CounterpartyInfoV3instance, allowing for method chaining
-
getTransferInstrumentId
public String getTransferInstrumentId()
The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).- Returns:
- transferInstrumentId
-
setTransferInstrumentId
public void setTransferInstrumentId(String transferInstrumentId)
The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id).- Parameters:
transferInstrumentId-
-
equals
public boolean equals(Object o)
Return true if this CounterpartyInfoV3 object is equal to o.
-
fromJson
public static CounterpartyInfoV3 fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CounterpartyInfoV3 given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CounterpartyInfoV3
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CounterpartyInfoV3
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CounterpartyInfoV3 to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-