Class SweepCounterparty
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.SweepCounterparty
-
public class SweepCounterparty extends Object
SweepCounterparty
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSweepCounterparty.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BALANCE_ACCOUNT_IDstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_TRANSFER_INSTRUMENT_ID
-
Constructor Summary
Constructors Constructor Description SweepCounterparty()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SweepCounterpartybalanceAccountId(String balanceAccountId)booleanequals(Object o)static SweepCounterpartyfromJson(String jsonString)Create an instance of SweepCounterparty given an JSON stringStringgetBalanceAccountId()The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id).StringgetMerchantAccount()The merchant account that will be the source of funds, if you are processing payments with Adyen.StringgetTransferInstrumentId()The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/transferInstruments__resParam_id).inthashCode()SweepCounterpartymerchantAccount(String merchantAccount)voidsetBalanceAccountId(String balanceAccountId)voidsetMerchantAccount(String merchantAccount)voidsetTransferInstrumentId(String transferInstrumentId)StringtoJson()Convert an instance of SweepCounterparty to an JSON stringStringtoString()SweepCounterpartytransferInstrumentId(String transferInstrumentId)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_BALANCE_ACCOUNT_ID
public static final String SERIALIZED_NAME_BALANCE_ACCOUNT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRANSFER_INSTRUMENT_ID
public static final String SERIALIZED_NAME_TRANSFER_INSTRUMENT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
balanceAccountId
public SweepCounterparty balanceAccountId(String balanceAccountId)
-
getBalanceAccountId
public String getBalanceAccountId()
The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). You can only use this for periodic sweep schedules such as `schedule.type` **daily** or **monthly**.- Returns:
- balanceAccountId
-
setBalanceAccountId
public void setBalanceAccountId(String balanceAccountId)
-
merchantAccount
public SweepCounterparty merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
The merchant account that will be the source of funds, if you are processing payments with Adyen. You can only use this with sweeps of `type` **pull** and `schedule.type` **balance**.- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
-
transferInstrumentId
public SweepCounterparty transferInstrumentId(String transferInstrumentId)
-
getTransferInstrumentId
public String getTransferInstrumentId()
The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/transferInstruments__resParam_id). You can also use this in combination with a `merchantAccount` and a `type` **pull** to start a direct debit request from the source transfer instrument. To use this feature, reach out to your Adyen contact.- Returns:
- transferInstrumentId
-
setTransferInstrumentId
public void setTransferInstrumentId(String transferInstrumentId)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to SweepCounterparty
-
fromJson
public static SweepCounterparty fromJson(String jsonString) throws IOException
Create an instance of SweepCounterparty given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SweepCounterparty
- Throws:
IOException- if the JSON string is invalid with respect to SweepCounterparty
-
toJson
public String toJson()
Convert an instance of SweepCounterparty to an JSON string- Returns:
- JSON string
-
-