Class MerchantRiskIndicator


  • public class MerchantRiskIndicator
    extends Object
    MerchantRiskIndicator
    • Constructor Detail

      • MerchantRiskIndicator

        public MerchantRiskIndicator()
    • Method Detail

      • addressMatch

        public MerchantRiskIndicator addressMatch​(Boolean addressMatch)
        Whether the chosen delivery address is identical to the billing address.
        Parameters:
        addressMatch -
        Returns:
        the current MerchantRiskIndicator instance, 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 MerchantRiskIndicator instance, 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 Checkout API v68 Use `deliveryEmailAddress` instead.
        The delivery email address (for digital goods).
        Parameters:
        deliveryEmail -
        Returns:
        the current MerchantRiskIndicator instance, allowing for method chaining
      • getDeliveryEmail

        @Deprecated
        public String getDeliveryEmail()
        Deprecated.
        since Adyen Checkout API v68 Use `deliveryEmailAddress` instead.
        The delivery email address (for digital goods).
        Returns:
        deliveryEmail
      • setDeliveryEmail

        @Deprecated
        public void setDeliveryEmail​(String deliveryEmail)
        Deprecated.
        since Adyen Checkout 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 MerchantRiskIndicator instance, 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 MerchantRiskIndicator instance, 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 MerchantRiskIndicator instance, 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 MerchantRiskIndicator instance, 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 MerchantRiskIndicator instance, 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 MerchantRiskIndicator instance, 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 MerchantRiskIndicator instance, 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 MerchantRiskIndicator instance, 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 MerchantRiskIndicator instance, 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 MerchantRiskIndicator instance, 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 MerchantRiskIndicator instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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