Package com.adyen.model.management
Class PayoutSettingsRequest
- java.lang.Object
-
- com.adyen.model.management.PayoutSettingsRequest
-
public class PayoutSettingsRequest extends Object
PayoutSettingsRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPayoutSettingsRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ENABLEDstatic StringSERIALIZED_NAME_ENABLED_FROM_DATEstatic StringSERIALIZED_NAME_TRANSFER_INSTRUMENT_ID
-
Constructor Summary
Constructors Constructor Description PayoutSettingsRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PayoutSettingsRequestenabled(Boolean enabled)PayoutSettingsRequestenabledFromDate(String enabledFromDate)booleanequals(Object o)static PayoutSettingsRequestfromJson(String jsonString)Create an instance of PayoutSettingsRequest given an JSON stringBooleangetEnabled()Indicates if payouts to this bank account are enabled.StringgetEnabledFromDate()The date when Adyen starts paying out to this bank account.StringgetTransferInstrumentId()The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account.inthashCode()voidsetEnabled(Boolean enabled)voidsetEnabledFromDate(String enabledFromDate)voidsetTransferInstrumentId(String transferInstrumentId)StringtoJson()Convert an instance of PayoutSettingsRequest to an JSON stringStringtoString()PayoutSettingsRequesttransferInstrumentId(String transferInstrumentId)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ENABLED
public static final String SERIALIZED_NAME_ENABLED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENABLED_FROM_DATE
public static final String SERIALIZED_NAME_ENABLED_FROM_DATE
- 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
-
enabled
public PayoutSettingsRequest enabled(Boolean enabled)
-
getEnabled
public Boolean getEnabled()
Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**.- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
-
enabledFromDate
public PayoutSettingsRequest enabledFromDate(String enabledFromDate)
-
getEnabledFromDate
public String getEnabledFromDate()
The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**.- Returns:
- enabledFromDate
-
setEnabledFromDate
public void setEnabledFromDate(String enabledFromDate)
-
transferInstrumentId
public PayoutSettingsRequest transferInstrumentId(String transferInstrumentId)
-
getTransferInstrumentId
public String getTransferInstrumentId()
The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account.- 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 PayoutSettingsRequest
-
fromJson
public static PayoutSettingsRequest fromJson(String jsonString) throws IOException
Create an instance of PayoutSettingsRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PayoutSettingsRequest
- Throws:
IOException- if the JSON string is invalid with respect to PayoutSettingsRequest
-
toJson
public String toJson()
Convert an instance of PayoutSettingsRequest to an JSON string- Returns:
- JSON string
-
-