Package com.adyen.model.capital
Class DynamicOffer
- java.lang.Object
-
- com.adyen.model.capital.DynamicOffer
-
public class DynamicOffer extends Object
DynamicOffer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDynamicOffer.ContractTypeEnumThe contract type of the offer.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_HOLDER_IDstatic StringJSON_PROPERTY_CONTRACT_TYPEstatic StringJSON_PROPERTY_EXPIRES_ATstatic StringJSON_PROPERTY_FINANCING_TYPEstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_MAXIMUM_AMOUNTstatic StringJSON_PROPERTY_MINIMUM_AMOUNTstatic StringJSON_PROPERTY_REPAYMENTstatic StringJSON_PROPERTY_STARTS_AT
-
Constructor Summary
Constructors Constructor Description DynamicOffer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DynamicOfferaccountHolderId(String accountHolderId)The unique identifier of the account holder that the dynamic offer is for.DynamicOffercontractType(DynamicOffer.ContractTypeEnum contractType)The contract type of the offer.booleanequals(Object o)Return true if this DynamicOffer object is equal to o.DynamicOfferexpiresAt(OffsetDateTime expiresAt)The expiration date and time of the offer validity period.DynamicOfferfinancingType(FinancingType financingType)financingTypestatic DynamicOfferfromJson(String jsonString)Create an instance of DynamicOffer given an JSON stringStringgetAccountHolderId()The unique identifier of the account holder that the dynamic offer is for.DynamicOffer.ContractTypeEnumgetContractType()The contract type of the offer.OffsetDateTimegetExpiresAt()The expiration date and time of the offer validity period.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.FinancingTypegetFinancingType()Get financingTypeStringgetId()The unique identifier of the dynamic offer.AmountgetMaximumAmount()Get maximumAmountAmountgetMinimumAmount()Get minimumAmountDynamicOfferRepaymentgetRepayment()Get repaymentOffsetDateTimegetStartsAt()The starting date and time of the offer validity period.inthashCode()DynamicOfferid(String id)The unique identifier of the dynamic offer.DynamicOfferincludeNullValues(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.DynamicOffermaximumAmount(Amount maximumAmount)maximumAmountDynamicOfferminimumAmount(Amount minimumAmount)minimumAmountDynamicOfferrepayment(DynamicOfferRepayment repayment)repaymentvoidsetAccountHolderId(String accountHolderId)The unique identifier of the account holder that the dynamic offer is for.voidsetContractType(DynamicOffer.ContractTypeEnum contractType)The contract type of the offer.voidsetExpiresAt(OffsetDateTime expiresAt)The expiration date and time of the offer validity period.voidsetFinancingType(FinancingType financingType)financingTypevoidsetId(String id)The unique identifier of the dynamic offer.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMaximumAmount(Amount maximumAmount)maximumAmountvoidsetMinimumAmount(Amount minimumAmount)minimumAmountvoidsetRepayment(DynamicOfferRepayment repayment)repaymentvoidsetStartsAt(OffsetDateTime startsAt)The starting date and time of the offer validity period.DynamicOfferstartsAt(OffsetDateTime startsAt)The starting date and time of the offer validity period.StringtoJson()Convert an instance of DynamicOffer to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_HOLDER_ID
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTRACT_TYPE
public static final String JSON_PROPERTY_CONTRACT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRES_AT
public static final String JSON_PROPERTY_EXPIRES_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FINANCING_TYPE
public static final String JSON_PROPERTY_FINANCING_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MAXIMUM_AMOUNT
public static final String JSON_PROPERTY_MAXIMUM_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MINIMUM_AMOUNT
public static final String JSON_PROPERTY_MINIMUM_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REPAYMENT
public static final String JSON_PROPERTY_REPAYMENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STARTS_AT
public static final String JSON_PROPERTY_STARTS_AT
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountHolderId
public DynamicOffer accountHolderId(String accountHolderId)
The unique identifier of the account holder that the dynamic offer is for.- Parameters:
accountHolderId- The unique identifier of the account holder that the dynamic offer is for.- Returns:
- the current
DynamicOfferinstance, allowing for method chaining
-
getAccountHolderId
public String getAccountHolderId()
The unique identifier of the account holder that the dynamic offer is for.- Returns:
- accountHolderId The unique identifier of the account holder that the dynamic offer is for.
-
setAccountHolderId
public void setAccountHolderId(String accountHolderId)
The unique identifier of the account holder that the dynamic offer is for.- Parameters:
accountHolderId- The unique identifier of the account holder that the dynamic offer is for.
-
contractType
public DynamicOffer contractType(DynamicOffer.ContractTypeEnum contractType)
The contract type of the offer. Possible values: * **loan** * **cashAdvance**- Parameters:
contractType- The contract type of the offer. Possible values: * **loan** * **cashAdvance**- Returns:
- the current
DynamicOfferinstance, allowing for method chaining
-
getContractType
public DynamicOffer.ContractTypeEnum getContractType()
The contract type of the offer. Possible values: * **loan** * **cashAdvance**- Returns:
- contractType The contract type of the offer. Possible values: * **loan** * **cashAdvance**
-
setContractType
public void setContractType(DynamicOffer.ContractTypeEnum contractType)
The contract type of the offer. Possible values: * **loan** * **cashAdvance**- Parameters:
contractType- The contract type of the offer. Possible values: * **loan** * **cashAdvance**
-
expiresAt
public DynamicOffer expiresAt(OffsetDateTime expiresAt)
The expiration date and time of the offer validity period.- Parameters:
expiresAt- The expiration date and time of the offer validity period.- Returns:
- the current
DynamicOfferinstance, allowing for method chaining
-
getExpiresAt
public OffsetDateTime getExpiresAt()
The expiration date and time of the offer validity period.- Returns:
- expiresAt The expiration date and time of the offer validity period.
-
setExpiresAt
public void setExpiresAt(OffsetDateTime expiresAt)
The expiration date and time of the offer validity period.- Parameters:
expiresAt- The expiration date and time of the offer validity period.
-
financingType
public DynamicOffer financingType(FinancingType financingType)
financingType- Parameters:
financingType-- Returns:
- the current
DynamicOfferinstance, allowing for method chaining
-
getFinancingType
public FinancingType getFinancingType()
Get financingType- Returns:
- financingType
-
setFinancingType
public void setFinancingType(FinancingType financingType)
financingType- Parameters:
financingType-
-
id
public DynamicOffer id(String id)
The unique identifier of the dynamic offer.- Parameters:
id- The unique identifier of the dynamic offer.- Returns:
- the current
DynamicOfferinstance, allowing for method chaining
-
getId
public String getId()
The unique identifier of the dynamic offer.- Returns:
- id The unique identifier of the dynamic offer.
-
setId
public void setId(String id)
The unique identifier of the dynamic offer.- Parameters:
id- The unique identifier of the dynamic offer.
-
maximumAmount
public DynamicOffer maximumAmount(Amount maximumAmount)
maximumAmount- Parameters:
maximumAmount-- Returns:
- the current
DynamicOfferinstance, allowing for method chaining
-
getMaximumAmount
public Amount getMaximumAmount()
Get maximumAmount- Returns:
- maximumAmount
-
setMaximumAmount
public void setMaximumAmount(Amount maximumAmount)
maximumAmount- Parameters:
maximumAmount-
-
minimumAmount
public DynamicOffer minimumAmount(Amount minimumAmount)
minimumAmount- Parameters:
minimumAmount-- Returns:
- the current
DynamicOfferinstance, allowing for method chaining
-
getMinimumAmount
public Amount getMinimumAmount()
Get minimumAmount- Returns:
- minimumAmount
-
setMinimumAmount
public void setMinimumAmount(Amount minimumAmount)
minimumAmount- Parameters:
minimumAmount-
-
repayment
public DynamicOffer repayment(DynamicOfferRepayment repayment)
repayment- Parameters:
repayment-- Returns:
- the current
DynamicOfferinstance, allowing for method chaining
-
getRepayment
public DynamicOfferRepayment getRepayment()
Get repayment- Returns:
- repayment
-
setRepayment
public void setRepayment(DynamicOfferRepayment repayment)
repayment- Parameters:
repayment-
-
startsAt
public DynamicOffer startsAt(OffsetDateTime startsAt)
The starting date and time of the offer validity period.- Parameters:
startsAt- The starting date and time of the offer validity period.- Returns:
- the current
DynamicOfferinstance, allowing for method chaining
-
getStartsAt
public OffsetDateTime getStartsAt()
The starting date and time of the offer validity period.- Returns:
- startsAt The starting date and time of the offer validity period.
-
setStartsAt
public void setStartsAt(OffsetDateTime startsAt)
The starting date and time of the offer validity period.- Parameters:
startsAt- The starting date and time of the offer validity period.
-
includeNullValues
public DynamicOffer 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 DynamicOffer 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 DynamicOffer fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of DynamicOffer given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of DynamicOffer
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to DynamicOffer
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of DynamicOffer to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-