Package com.adyen.model.balanceplatform
Class CreateTransferLimitRequest
- java.lang.Object
-
- com.adyen.model.balanceplatform.CreateTransferLimitRequest
-
public class CreateTransferLimitRequest extends Object
CreateTransferLimitRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AMOUNTstatic StringJSON_PROPERTY_ENDS_ATstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_SCA_INFORMATIONstatic StringJSON_PROPERTY_SCOPEstatic StringJSON_PROPERTY_STARTS_ATstatic StringJSON_PROPERTY_TRANSFER_TYPE
-
Constructor Summary
Constructors Constructor Description CreateTransferLimitRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTransferLimitRequestamount(Amount amount)amountCreateTransferLimitRequestendsAt(OffsetDateTime endsAt)The date and time when the transfer limit becomes inactive.booleanequals(Object o)Return true if this CreateTransferLimitRequest object is equal to o.static CreateTransferLimitRequestfromJson(String jsonString)Create an instance of CreateTransferLimitRequest given an JSON stringAmountgetAmount()Get amountOffsetDateTimegetEndsAt()The date and time when the transfer limit becomes inactive.StringgetReference()Your reference for the transfer limit.CreateScaInformationgetScaInformation()Get scaInformationScopegetScope()Get scopeOffsetDateTimegetStartsAt()The date and time when the transfer limit becomes active.TransferTypegetTransferType()Get transferTypeinthashCode()CreateTransferLimitRequestreference(String reference)Your reference for the transfer limit.CreateTransferLimitRequestscaInformation(CreateScaInformation scaInformation)scaInformationCreateTransferLimitRequestscope(Scope scope)scopevoidsetAmount(Amount amount)amountvoidsetEndsAt(OffsetDateTime endsAt)The date and time when the transfer limit becomes inactive.voidsetReference(String reference)Your reference for the transfer limit.voidsetScaInformation(CreateScaInformation scaInformation)scaInformationvoidsetScope(Scope scope)scopevoidsetStartsAt(OffsetDateTime startsAt)The date and time when the transfer limit becomes active.voidsetTransferType(TransferType transferType)transferTypeCreateTransferLimitRequeststartsAt(OffsetDateTime startsAt)The date and time when the transfer limit becomes active.StringtoJson()Convert an instance of CreateTransferLimitRequest to an JSON stringStringtoString()CreateTransferLimitRequesttransferType(TransferType transferType)transferType
-
-
-
Field Detail
-
JSON_PROPERTY_AMOUNT
public static final String JSON_PROPERTY_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENDS_AT
public static final String JSON_PROPERTY_ENDS_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCA_INFORMATION
public static final String JSON_PROPERTY_SCA_INFORMATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SCOPE
public static final String JSON_PROPERTY_SCOPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STARTS_AT
public static final String JSON_PROPERTY_STARTS_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSFER_TYPE
public static final String JSON_PROPERTY_TRANSFER_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
amount
public CreateTransferLimitRequest amount(Amount amount)
amount- Parameters:
amount-- Returns:
- the current
CreateTransferLimitRequestinstance, allowing for method chaining
-
getAmount
public Amount getAmount()
Get amount- Returns:
- amount
-
setAmount
public void setAmount(Amount amount)
amount- Parameters:
amount-
-
endsAt
public CreateTransferLimitRequest endsAt(OffsetDateTime endsAt)
The date and time when the transfer limit becomes inactive. If you do not specify an end date, the limit stays active until you override it with a new limit. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): **YYYY-MM-DDThh:mm:ss.sssTZD**- Parameters:
endsAt- The date and time when the transfer limit becomes inactive. If you do not specify an end date, the limit stays active until you override it with a new limit. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): **YYYY-MM-DDThh:mm:ss.sssTZD**- Returns:
- the current
CreateTransferLimitRequestinstance, allowing for method chaining
-
getEndsAt
public OffsetDateTime getEndsAt()
The date and time when the transfer limit becomes inactive. If you do not specify an end date, the limit stays active until you override it with a new limit. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): **YYYY-MM-DDThh:mm:ss.sssTZD**- Returns:
- endsAt The date and time when the transfer limit becomes inactive. If you do not specify an end date, the limit stays active until you override it with a new limit. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): **YYYY-MM-DDThh:mm:ss.sssTZD**
-
setEndsAt
public void setEndsAt(OffsetDateTime endsAt)
The date and time when the transfer limit becomes inactive. If you do not specify an end date, the limit stays active until you override it with a new limit. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): **YYYY-MM-DDThh:mm:ss.sssTZD**- Parameters:
endsAt- The date and time when the transfer limit becomes inactive. If you do not specify an end date, the limit stays active until you override it with a new limit. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): **YYYY-MM-DDThh:mm:ss.sssTZD**
-
reference
public CreateTransferLimitRequest reference(String reference)
Your reference for the transfer limit.- Parameters:
reference- Your reference for the transfer limit.- Returns:
- the current
CreateTransferLimitRequestinstance, allowing for method chaining
-
getReference
public String getReference()
Your reference for the transfer limit.- Returns:
- reference Your reference for the transfer limit.
-
setReference
public void setReference(String reference)
Your reference for the transfer limit.- Parameters:
reference- Your reference for the transfer limit.
-
scaInformation
public CreateTransferLimitRequest scaInformation(CreateScaInformation scaInformation)
scaInformation- Parameters:
scaInformation-- Returns:
- the current
CreateTransferLimitRequestinstance, allowing for method chaining
-
getScaInformation
public CreateScaInformation getScaInformation()
Get scaInformation- Returns:
- scaInformation
-
setScaInformation
public void setScaInformation(CreateScaInformation scaInformation)
scaInformation- Parameters:
scaInformation-
-
scope
public CreateTransferLimitRequest scope(Scope scope)
scope- Parameters:
scope-- Returns:
- the current
CreateTransferLimitRequestinstance, allowing for method chaining
-
getScope
public Scope getScope()
Get scope- Returns:
- scope
-
setScope
public void setScope(Scope scope)
scope- Parameters:
scope-
-
startsAt
public CreateTransferLimitRequest startsAt(OffsetDateTime startsAt)
The date and time when the transfer limit becomes active. If you specify a date in the future, we will schedule a transfer limit. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): **YYYY-MM-DDThh:mm:ss.sssTZD**- Parameters:
startsAt- The date and time when the transfer limit becomes active. If you specify a date in the future, we will schedule a transfer limit. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): **YYYY-MM-DDThh:mm:ss.sssTZD**- Returns:
- the current
CreateTransferLimitRequestinstance, allowing for method chaining
-
getStartsAt
public OffsetDateTime getStartsAt()
The date and time when the transfer limit becomes active. If you specify a date in the future, we will schedule a transfer limit. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): **YYYY-MM-DDThh:mm:ss.sssTZD**- Returns:
- startsAt The date and time when the transfer limit becomes active. If you specify a date in the future, we will schedule a transfer limit. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): **YYYY-MM-DDThh:mm:ss.sssTZD**
-
setStartsAt
public void setStartsAt(OffsetDateTime startsAt)
The date and time when the transfer limit becomes active. If you specify a date in the future, we will schedule a transfer limit. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): **YYYY-MM-DDThh:mm:ss.sssTZD**- Parameters:
startsAt- The date and time when the transfer limit becomes active. If you specify a date in the future, we will schedule a transfer limit. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): **YYYY-MM-DDThh:mm:ss.sssTZD**
-
transferType
public CreateTransferLimitRequest transferType(TransferType transferType)
transferType- Parameters:
transferType-- Returns:
- the current
CreateTransferLimitRequestinstance, allowing for method chaining
-
getTransferType
public TransferType getTransferType()
Get transferType- Returns:
- transferType
-
setTransferType
public void setTransferType(TransferType transferType)
transferType- Parameters:
transferType-
-
equals
public boolean equals(Object o)
Return true if this CreateTransferLimitRequest object is equal to o.
-
fromJson
public static CreateTransferLimitRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CreateTransferLimitRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateTransferLimitRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CreateTransferLimitRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CreateTransferLimitRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-