Class GiftcardFields.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Default constructor
    • Method Detail

      • setPaymentMethodNonce

        public GiftcardFields.Builder setPaymentMethodNonce​(@NonNull
                                                            java.lang.String paymentMethodNonce)
        Sets the payment method nonce from Braintree
        Parameters:
        paymentMethodNonce - payment method nonce from Braintree
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setPin

        public GiftcardFields.Builder setPin​(@NonNull
                                             java.lang.String pin)
        Set the PIN of gift card
        Parameters:
        pin - PIN of gift card
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setIsAutoReload

        public GiftcardFields.Builder setIsAutoReload​(@Nullable
                                                      java.lang.Boolean isAutoReload)
        Set the flag to indicate if auto-reload is on or off
        Parameters:
        isAutoReload - true to turn on auto reload
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setReloadThreshold

        public GiftcardFields.Builder setReloadThreshold​(@Nullable
                                                         java.lang.String reloadThreshold)
        Set the amount threshold to trigger auto-reload
        Parameters:
        reloadThreshold - amount threshold to trigger auto-reload
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setReloadAmount

        public GiftcardFields.Builder setReloadAmount​(@Nullable
                                                      java.lang.String reloadAmount)
        Set the amount to add during auto-reload
        Parameters:
        reloadAmount - amount to add during auto-reload
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setGiftcardClass

        public GiftcardFields.Builder setGiftcardClass​(java.lang.String giftcardClass)
        Set the class of the giftcard to be purchased
        Parameters:
        giftcardClass - internal name of the gift card class
        Returns:
        The builder object to allow for chaining calls to set/add methods