Package com.adyen.model.checkout
Class MerchantRiskIndicator
- java.lang.Object
-
- com.adyen.model.checkout.MerchantRiskIndicator
-
public class MerchantRiskIndicator extends Object
MerchantRiskIndicator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMerchantRiskIndicator.CustomTypeAdapterFactorystatic 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 HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ADDRESS_MATCHstatic StringSERIALIZED_NAME_DELIVERY_ADDRESS_INDICATORstatic StringSERIALIZED_NAME_DELIVERY_EMAILstatic StringSERIALIZED_NAME_DELIVERY_EMAIL_ADDRESSstatic StringSERIALIZED_NAME_DELIVERY_TIMEFRAMEstatic StringSERIALIZED_NAME_GIFT_CARD_AMOUNTstatic StringSERIALIZED_NAME_GIFT_CARD_COUNTstatic StringSERIALIZED_NAME_GIFT_CARD_CURRstatic StringSERIALIZED_NAME_PRE_ORDER_DATEstatic StringSERIALIZED_NAME_PRE_ORDER_PURCHASEstatic StringSERIALIZED_NAME_PRE_ORDER_PURCHASE_INDstatic StringSERIALIZED_NAME_REORDER_ITEMSstatic StringSERIALIZED_NAME_REORDER_ITEMS_INDstatic StringSERIALIZED_NAME_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)MerchantRiskIndicatordeliveryAddressIndicator(MerchantRiskIndicator.DeliveryAddressIndicatorEnum deliveryAddressIndicator)MerchantRiskIndicatordeliveryEmail(String deliveryEmail)MerchantRiskIndicatordeliveryEmailAddress(String deliveryEmailAddress)MerchantRiskIndicatordeliveryTimeframe(MerchantRiskIndicator.DeliveryTimeframeEnum deliveryTimeframe)booleanequals(Object 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.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()Get 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)MerchantRiskIndicatorgiftCardCount(Integer giftCardCount)MerchantRiskIndicatorgiftCardCurr(String giftCardCurr)inthashCode()MerchantRiskIndicatorpreOrderDate(OffsetDateTime preOrderDate)MerchantRiskIndicatorpreOrderPurchase(Boolean preOrderPurchase)MerchantRiskIndicatorpreOrderPurchaseInd(String preOrderPurchaseInd)MerchantRiskIndicatorreorderItems(Boolean reorderItems)MerchantRiskIndicatorreorderItemsInd(String reorderItemsInd)voidsetAddressMatch(Boolean addressMatch)voidsetDeliveryAddressIndicator(MerchantRiskIndicator.DeliveryAddressIndicatorEnum deliveryAddressIndicator)voidsetDeliveryEmail(String deliveryEmail)voidsetDeliveryEmailAddress(String deliveryEmailAddress)voidsetDeliveryTimeframe(MerchantRiskIndicator.DeliveryTimeframeEnum deliveryTimeframe)voidsetGiftCardAmount(Amount giftCardAmount)voidsetGiftCardCount(Integer giftCardCount)voidsetGiftCardCurr(String giftCardCurr)voidsetPreOrderDate(OffsetDateTime preOrderDate)voidsetPreOrderPurchase(Boolean preOrderPurchase)voidsetPreOrderPurchaseInd(String preOrderPurchaseInd)voidsetReorderItems(Boolean reorderItems)voidsetReorderItemsInd(String reorderItemsInd)voidsetShipIndicator(String shipIndicator)MerchantRiskIndicatorshipIndicator(String shipIndicator)StringtoJson()Convert an instance of MerchantRiskIndicator to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ADDRESS_MATCH
public static final String SERIALIZED_NAME_ADDRESS_MATCH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELIVERY_ADDRESS_INDICATOR
public static final String SERIALIZED_NAME_DELIVERY_ADDRESS_INDICATOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELIVERY_EMAIL
public static final String SERIALIZED_NAME_DELIVERY_EMAIL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELIVERY_EMAIL_ADDRESS
public static final String SERIALIZED_NAME_DELIVERY_EMAIL_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELIVERY_TIMEFRAME
public static final String SERIALIZED_NAME_DELIVERY_TIMEFRAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GIFT_CARD_AMOUNT
public static final String SERIALIZED_NAME_GIFT_CARD_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GIFT_CARD_COUNT
public static final String SERIALIZED_NAME_GIFT_CARD_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GIFT_CARD_CURR
public static final String SERIALIZED_NAME_GIFT_CARD_CURR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRE_ORDER_DATE
public static final String SERIALIZED_NAME_PRE_ORDER_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRE_ORDER_PURCHASE
public static final String SERIALIZED_NAME_PRE_ORDER_PURCHASE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRE_ORDER_PURCHASE_IND
public static final String SERIALIZED_NAME_PRE_ORDER_PURCHASE_IND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REORDER_ITEMS
public static final String SERIALIZED_NAME_REORDER_ITEMS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REORDER_ITEMS_IND
public static final String SERIALIZED_NAME_REORDER_ITEMS_IND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHIP_INDICATOR
public static final String SERIALIZED_NAME_SHIP_INDICATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
addressMatch
public MerchantRiskIndicator addressMatch(Boolean addressMatch)
-
getAddressMatch
public Boolean getAddressMatch()
Whether the chosen delivery address is identical to the billing address.- Returns:
- addressMatch
-
setAddressMatch
public void setAddressMatch(Boolean addressMatch)
-
deliveryAddressIndicator
public MerchantRiskIndicator deliveryAddressIndicator(MerchantRiskIndicator.DeliveryAddressIndicatorEnum deliveryAddressIndicator)
-
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)
-
deliveryEmail
public MerchantRiskIndicator deliveryEmail(String deliveryEmail)
-
getDeliveryEmail
@Deprecated public String getDeliveryEmail()
Deprecated.The delivery email address (for digital goods).- Returns:
- deliveryEmail
-
setDeliveryEmail
public void setDeliveryEmail(String deliveryEmail)
-
deliveryEmailAddress
public MerchantRiskIndicator deliveryEmailAddress(String deliveryEmailAddress)
-
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)
-
deliveryTimeframe
public MerchantRiskIndicator deliveryTimeframe(MerchantRiskIndicator.DeliveryTimeframeEnum deliveryTimeframe)
-
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)
-
giftCardAmount
public MerchantRiskIndicator giftCardAmount(Amount giftCardAmount)
-
getGiftCardAmount
public Amount getGiftCardAmount()
Get giftCardAmount- Returns:
- giftCardAmount
-
setGiftCardAmount
public void setGiftCardAmount(Amount giftCardAmount)
-
giftCardCount
public MerchantRiskIndicator giftCardCount(Integer giftCardCount)
-
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)
-
giftCardCurr
public MerchantRiskIndicator giftCardCurr(String giftCardCurr)
-
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)
-
preOrderDate
public MerchantRiskIndicator preOrderDate(OffsetDateTime preOrderDate)
-
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)
-
preOrderPurchase
public MerchantRiskIndicator preOrderPurchase(Boolean preOrderPurchase)
-
getPreOrderPurchase
public Boolean getPreOrderPurchase()
Indicator for whether this transaction is for pre-ordering a product.- Returns:
- preOrderPurchase
-
setPreOrderPurchase
public void setPreOrderPurchase(Boolean preOrderPurchase)
-
preOrderPurchaseInd
public MerchantRiskIndicator preOrderPurchaseInd(String preOrderPurchaseInd)
-
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)
-
reorderItems
public MerchantRiskIndicator reorderItems(Boolean reorderItems)
-
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)
-
reorderItemsInd
public MerchantRiskIndicator reorderItemsInd(String reorderItemsInd)
-
getReorderItemsInd
public String getReorderItemsInd()
Indicates whether the cardholder is reordering previously purchased merchandise.- Returns:
- reorderItemsInd
-
setReorderItemsInd
public void setReorderItemsInd(String reorderItemsInd)
-
shipIndicator
public MerchantRiskIndicator shipIndicator(String shipIndicator)
-
getShipIndicator
public String getShipIndicator()
Indicates shipping method chosen for the transaction.- Returns:
- shipIndicator
-
setShipIndicator
public void setShipIndicator(String shipIndicator)
-
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 MerchantRiskIndicator
-
fromJson
public static MerchantRiskIndicator fromJson(String jsonString) throws IOException
Create an instance of MerchantRiskIndicator given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MerchantRiskIndicator
- Throws:
IOException- if the JSON string is invalid with respect to MerchantRiskIndicator
-
toJson
public String toJson()
Convert an instance of MerchantRiskIndicator to an JSON string- Returns:
- JSON string
-
-