Package com.adyen.model.payment
Class MerchantRiskIndicator
- java.lang.Object
-
- com.adyen.model.payment.MerchantRiskIndicator
-
public class MerchantRiskIndicator extends Object
MerchantRiskIndicator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMerchantRiskIndicator.DeliveryAddressIndicatorEnumIndicator regarding the delivery address.static classMerchantRiskIndicator.DeliveryTimeframeEnumThe estimated delivery time for the shopper to receive the goods.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDRESS_MATCHstatic StringJSON_PROPERTY_DELIVERY_ADDRESS_INDICATORstatic StringJSON_PROPERTY_DELIVERY_EMAILstatic StringJSON_PROPERTY_DELIVERY_EMAIL_ADDRESSstatic StringJSON_PROPERTY_DELIVERY_TIMEFRAMEstatic StringJSON_PROPERTY_GIFT_CARD_AMOUNTstatic StringJSON_PROPERTY_GIFT_CARD_COUNTstatic StringJSON_PROPERTY_GIFT_CARD_CURRstatic StringJSON_PROPERTY_PRE_ORDER_DATEstatic StringJSON_PROPERTY_PRE_ORDER_PURCHASEstatic StringJSON_PROPERTY_PRE_ORDER_PURCHASE_INDstatic StringJSON_PROPERTY_REORDER_ITEMSstatic StringJSON_PROPERTY_REORDER_ITEMS_INDstatic StringJSON_PROPERTY_SHIP_INDICATOR
-
Constructor Summary
Constructors Constructor Description MerchantRiskIndicator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MerchantRiskIndicatoraddressMatch(Boolean addressMatch)Whether the chosen delivery address is identical to the billing address.MerchantRiskIndicatordeliveryAddressIndicator(MerchantRiskIndicator.DeliveryAddressIndicatorEnum deliveryAddressIndicator)Indicator regarding the delivery address.MerchantRiskIndicatordeliveryEmail(String deliveryEmail)Deprecated.since Adyen Payment API v68 Use `deliveryEmailAddress` instead.MerchantRiskIndicatordeliveryEmailAddress(String deliveryEmailAddress)For Electronic delivery, the email address to which the merchandise was delivered.MerchantRiskIndicatordeliveryTimeframe(MerchantRiskIndicator.DeliveryTimeframeEnum deliveryTimeframe)The estimated delivery time for the shopper to receive the goods.booleanequals(Object o)Return true if this MerchantRiskIndicator object is equal to o.static MerchantRiskIndicatorfromJson(String jsonString)Create an instance of MerchantRiskIndicator given an JSON stringBooleangetAddressMatch()Whether the chosen delivery address is identical to the billing address.MerchantRiskIndicator.DeliveryAddressIndicatorEnumgetDeliveryAddressIndicator()Indicator regarding the delivery address.StringgetDeliveryEmail()Deprecated.since Adyen Payment API v68 Use `deliveryEmailAddress` instead.StringgetDeliveryEmailAddress()For Electronic delivery, the email address to which the merchandise was delivered.MerchantRiskIndicator.DeliveryTimeframeEnumgetDeliveryTimeframe()The estimated delivery time for the shopper to receive the goods.AmountgetGiftCardAmount()giftCardAmountIntegergetGiftCardCount()For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased.StringgetGiftCardCurr()For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification.OffsetDateTimegetPreOrderDate()For pre-order purchases, the expected date this product will be available to the shopper.BooleangetPreOrderPurchase()Indicator for whether this transaction is for pre-ordering a product.StringgetPreOrderPurchaseInd()Indicates whether Cardholder is placing an order for merchandise with a future availability or release date.BooleangetReorderItems()Indicator for whether the shopper has already purchased the same items in the past.StringgetReorderItemsInd()Indicates whether the cardholder is reordering previously purchased merchandise.StringgetShipIndicator()Indicates shipping method chosen for the transaction.MerchantRiskIndicatorgiftCardAmount(Amount giftCardAmount)giftCardAmountMerchantRiskIndicatorgiftCardCount(Integer giftCardCount)For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased.MerchantRiskIndicatorgiftCardCurr(String giftCardCurr)For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification.inthashCode()MerchantRiskIndicatorpreOrderDate(OffsetDateTime preOrderDate)For pre-order purchases, the expected date this product will be available to the shopper.MerchantRiskIndicatorpreOrderPurchase(Boolean preOrderPurchase)Indicator for whether this transaction is for pre-ordering a product.MerchantRiskIndicatorpreOrderPurchaseInd(String preOrderPurchaseInd)Indicates whether Cardholder is placing an order for merchandise with a future availability or release date.MerchantRiskIndicatorreorderItems(Boolean reorderItems)Indicator for whether the shopper has already purchased the same items in the past.MerchantRiskIndicatorreorderItemsInd(String reorderItemsInd)Indicates whether the cardholder is reordering previously purchased merchandise.voidsetAddressMatch(Boolean addressMatch)Whether the chosen delivery address is identical to the billing address.voidsetDeliveryAddressIndicator(MerchantRiskIndicator.DeliveryAddressIndicatorEnum deliveryAddressIndicator)Indicator regarding the delivery address.voidsetDeliveryEmail(String deliveryEmail)Deprecated.since Adyen Payment API v68 Use `deliveryEmailAddress` instead.voidsetDeliveryEmailAddress(String deliveryEmailAddress)For Electronic delivery, the email address to which the merchandise was delivered.voidsetDeliveryTimeframe(MerchantRiskIndicator.DeliveryTimeframeEnum deliveryTimeframe)The estimated delivery time for the shopper to receive the goods.voidsetGiftCardAmount(Amount giftCardAmount)giftCardAmountvoidsetGiftCardCount(Integer giftCardCount)For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased.voidsetGiftCardCurr(String giftCardCurr)For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification.voidsetPreOrderDate(OffsetDateTime preOrderDate)For pre-order purchases, the expected date this product will be available to the shopper.voidsetPreOrderPurchase(Boolean preOrderPurchase)Indicator for whether this transaction is for pre-ordering a product.voidsetPreOrderPurchaseInd(String preOrderPurchaseInd)Indicates whether Cardholder is placing an order for merchandise with a future availability or release date.voidsetReorderItems(Boolean reorderItems)Indicator for whether the shopper has already purchased the same items in the past.voidsetReorderItemsInd(String reorderItemsInd)Indicates whether the cardholder is reordering previously purchased merchandise.voidsetShipIndicator(String shipIndicator)Indicates shipping method chosen for the transaction.MerchantRiskIndicatorshipIndicator(String shipIndicator)Indicates shipping method chosen for the transaction.StringtoJson()Convert an instance of MerchantRiskIndicator to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ADDRESS_MATCH
public static final String JSON_PROPERTY_ADDRESS_MATCH
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR
public static final String JSON_PROPERTY_DELIVERY_ADDRESS_INDICATOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DELIVERY_EMAIL
public static final String JSON_PROPERTY_DELIVERY_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DELIVERY_EMAIL_ADDRESS
public static final String JSON_PROPERTY_DELIVERY_EMAIL_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DELIVERY_TIMEFRAME
public static final String JSON_PROPERTY_DELIVERY_TIMEFRAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GIFT_CARD_AMOUNT
public static final String JSON_PROPERTY_GIFT_CARD_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GIFT_CARD_COUNT
public static final String JSON_PROPERTY_GIFT_CARD_COUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GIFT_CARD_CURR
public static final String JSON_PROPERTY_GIFT_CARD_CURR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRE_ORDER_DATE
public static final String JSON_PROPERTY_PRE_ORDER_DATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRE_ORDER_PURCHASE
public static final String JSON_PROPERTY_PRE_ORDER_PURCHASE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRE_ORDER_PURCHASE_IND
public static final String JSON_PROPERTY_PRE_ORDER_PURCHASE_IND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REORDER_ITEMS
public static final String JSON_PROPERTY_REORDER_ITEMS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REORDER_ITEMS_IND
public static final String JSON_PROPERTY_REORDER_ITEMS_IND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SHIP_INDICATOR
public static final String JSON_PROPERTY_SHIP_INDICATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
addressMatch
public MerchantRiskIndicator addressMatch(Boolean addressMatch)
Whether the chosen delivery address is identical to the billing address.- Parameters:
addressMatch-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getAddressMatch
public Boolean getAddressMatch()
Whether the chosen delivery address is identical to the billing address.- Returns:
- addressMatch
-
setAddressMatch
public void setAddressMatch(Boolean addressMatch)
Whether the chosen delivery address is identical to the billing address.- Parameters:
addressMatch-
-
deliveryAddressIndicator
public MerchantRiskIndicator deliveryAddressIndicator(MerchantRiskIndicator.DeliveryAddressIndicatorEnum deliveryAddressIndicator)
Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other`- Parameters:
deliveryAddressIndicator-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getDeliveryAddressIndicator
public MerchantRiskIndicator.DeliveryAddressIndicatorEnum getDeliveryAddressIndicator()
Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other`- Returns:
- deliveryAddressIndicator
-
setDeliveryAddressIndicator
public void setDeliveryAddressIndicator(MerchantRiskIndicator.DeliveryAddressIndicatorEnum deliveryAddressIndicator)
Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other`- Parameters:
deliveryAddressIndicator-
-
deliveryEmail
@Deprecated public MerchantRiskIndicator deliveryEmail(String deliveryEmail)
Deprecated.since Adyen Payment API v68 Use `deliveryEmailAddress` instead.The delivery email address (for digital goods).- Parameters:
deliveryEmail-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getDeliveryEmail
@Deprecated public String getDeliveryEmail()
Deprecated.since Adyen Payment API v68 Use `deliveryEmailAddress` instead.The delivery email address (for digital goods).- Returns:
- deliveryEmail
-
setDeliveryEmail
@Deprecated public void setDeliveryEmail(String deliveryEmail)
Deprecated.since Adyen Payment API v68 Use `deliveryEmailAddress` instead.The delivery email address (for digital goods).- Parameters:
deliveryEmail-
-
deliveryEmailAddress
public MerchantRiskIndicator deliveryEmailAddress(String deliveryEmailAddress)
For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters.- Parameters:
deliveryEmailAddress-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getDeliveryEmailAddress
public String getDeliveryEmailAddress()
For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters.- Returns:
- deliveryEmailAddress
-
setDeliveryEmailAddress
public void setDeliveryEmailAddress(String deliveryEmailAddress)
For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters.- Parameters:
deliveryEmailAddress-
-
deliveryTimeframe
public MerchantRiskIndicator deliveryTimeframe(MerchantRiskIndicator.DeliveryTimeframeEnum deliveryTimeframe)
The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping`- Parameters:
deliveryTimeframe-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getDeliveryTimeframe
public MerchantRiskIndicator.DeliveryTimeframeEnum getDeliveryTimeframe()
The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping`- Returns:
- deliveryTimeframe
-
setDeliveryTimeframe
public void setDeliveryTimeframe(MerchantRiskIndicator.DeliveryTimeframeEnum deliveryTimeframe)
The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping`- Parameters:
deliveryTimeframe-
-
giftCardAmount
public MerchantRiskIndicator giftCardAmount(Amount giftCardAmount)
giftCardAmount- Parameters:
giftCardAmount-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getGiftCardAmount
public Amount getGiftCardAmount()
giftCardAmount- Returns:
- giftCardAmount
-
setGiftCardAmount
public void setGiftCardAmount(Amount giftCardAmount)
giftCardAmount- Parameters:
giftCardAmount-
-
giftCardCount
public MerchantRiskIndicator giftCardCount(Integer giftCardCount)
For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased.- Parameters:
giftCardCount-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getGiftCardCount
public Integer getGiftCardCount()
For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased.- Returns:
- giftCardCount
-
setGiftCardCount
public void setGiftCardCount(Integer giftCardCount)
For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased.- Parameters:
giftCardCount-
-
giftCardCurr
public MerchantRiskIndicator giftCardCurr(String giftCardCurr)
For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification.- Parameters:
giftCardCurr-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getGiftCardCurr
public String getGiftCardCurr()
For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification.- Returns:
- giftCardCurr
-
setGiftCardCurr
public void setGiftCardCurr(String giftCardCurr)
For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification.- Parameters:
giftCardCurr-
-
preOrderDate
public MerchantRiskIndicator preOrderDate(OffsetDateTime preOrderDate)
For pre-order purchases, the expected date this product will be available to the shopper.- Parameters:
preOrderDate-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getPreOrderDate
public OffsetDateTime getPreOrderDate()
For pre-order purchases, the expected date this product will be available to the shopper.- Returns:
- preOrderDate
-
setPreOrderDate
public void setPreOrderDate(OffsetDateTime preOrderDate)
For pre-order purchases, the expected date this product will be available to the shopper.- Parameters:
preOrderDate-
-
preOrderPurchase
public MerchantRiskIndicator preOrderPurchase(Boolean preOrderPurchase)
Indicator for whether this transaction is for pre-ordering a product.- Parameters:
preOrderPurchase-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getPreOrderPurchase
public Boolean getPreOrderPurchase()
Indicator for whether this transaction is for pre-ordering a product.- Returns:
- preOrderPurchase
-
setPreOrderPurchase
public void setPreOrderPurchase(Boolean preOrderPurchase)
Indicator for whether this transaction is for pre-ordering a product.- Parameters:
preOrderPurchase-
-
preOrderPurchaseInd
public MerchantRiskIndicator preOrderPurchaseInd(String preOrderPurchaseInd)
Indicates whether Cardholder is placing an order for merchandise with a future availability or release date.- Parameters:
preOrderPurchaseInd-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getPreOrderPurchaseInd
public String getPreOrderPurchaseInd()
Indicates whether Cardholder is placing an order for merchandise with a future availability or release date.- Returns:
- preOrderPurchaseInd
-
setPreOrderPurchaseInd
public void setPreOrderPurchaseInd(String preOrderPurchaseInd)
Indicates whether Cardholder is placing an order for merchandise with a future availability or release date.- Parameters:
preOrderPurchaseInd-
-
reorderItems
public MerchantRiskIndicator reorderItems(Boolean reorderItems)
Indicator for whether the shopper has already purchased the same items in the past.- Parameters:
reorderItems-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getReorderItems
public Boolean getReorderItems()
Indicator for whether the shopper has already purchased the same items in the past.- Returns:
- reorderItems
-
setReorderItems
public void setReorderItems(Boolean reorderItems)
Indicator for whether the shopper has already purchased the same items in the past.- Parameters:
reorderItems-
-
reorderItemsInd
public MerchantRiskIndicator reorderItemsInd(String reorderItemsInd)
Indicates whether the cardholder is reordering previously purchased merchandise.- Parameters:
reorderItemsInd-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getReorderItemsInd
public String getReorderItemsInd()
Indicates whether the cardholder is reordering previously purchased merchandise.- Returns:
- reorderItemsInd
-
setReorderItemsInd
public void setReorderItemsInd(String reorderItemsInd)
Indicates whether the cardholder is reordering previously purchased merchandise.- Parameters:
reorderItemsInd-
-
shipIndicator
public MerchantRiskIndicator shipIndicator(String shipIndicator)
Indicates shipping method chosen for the transaction.- Parameters:
shipIndicator-- Returns:
- the current
MerchantRiskIndicatorinstance, allowing for method chaining
-
getShipIndicator
public String getShipIndicator()
Indicates shipping method chosen for the transaction.- Returns:
- shipIndicator
-
setShipIndicator
public void setShipIndicator(String shipIndicator)
Indicates shipping method chosen for the transaction.- Parameters:
shipIndicator-
-
equals
public boolean equals(Object o)
Return true if this MerchantRiskIndicator object is equal to o.
-
fromJson
public static MerchantRiskIndicator fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of MerchantRiskIndicator given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MerchantRiskIndicator
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to MerchantRiskIndicator
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of MerchantRiskIndicator to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-