Class FundDestination


  • public class FundDestination
    extends Object
    FundDestination
    • Constructor Detail

      • FundDestination

        public FundDestination()
    • Method Detail

      • getAdditionalData

        public Map<String,​String> getAdditionalData()
        a map of name/value pairs for passing in additional/industry-specific data
        Returns:
        additionalData
      • setAdditionalData

        public void setAdditionalData​(Map<String,​String> additionalData)
      • getBillingAddress

        public Address getBillingAddress()
        Get billingAddress
        Returns:
        billingAddress
      • setBillingAddress

        public void setBillingAddress​(Address billingAddress)
      • getCard

        public Card getCard()
        Get card
        Returns:
        card
      • setCard

        public void setCard​(Card card)
      • selectedRecurringDetailReference

        public FundDestination selectedRecurringDetailReference​(String selectedRecurringDetailReference)
      • getSelectedRecurringDetailReference

        public String getSelectedRecurringDetailReference()
        The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail.
        Returns:
        selectedRecurringDetailReference
      • setSelectedRecurringDetailReference

        public void setSelectedRecurringDetailReference​(String selectedRecurringDetailReference)
      • getShopperEmail

        public String getShopperEmail()
        the email address of the person
        Returns:
        shopperEmail
      • setShopperEmail

        public void setShopperEmail​(String shopperEmail)
      • getShopperName

        public Name getShopperName()
        Get shopperName
        Returns:
        shopperName
      • setShopperName

        public void setShopperName​(Name shopperName)
      • getShopperReference

        public String getShopperReference()
        Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
        Returns:
        shopperReference
      • setShopperReference

        public void setShopperReference​(String shopperReference)
      • getSubMerchant

        public SubMerchant getSubMerchant()
        Get subMerchant
        Returns:
        subMerchant
      • setSubMerchant

        public void setSubMerchant​(SubMerchant subMerchant)
      • getTelephoneNumber

        public String getTelephoneNumber()
        the telephone number of the person
        Returns:
        telephoneNumber
      • setTelephoneNumber

        public void setTelephoneNumber​(String telephoneNumber)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates 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 FundDestination
      • fromJson

        public static FundDestination fromJson​(String jsonString)
                                        throws IOException
        Create an instance of FundDestination given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of FundDestination
        Throws:
        IOException - if the JSON string is invalid with respect to FundDestination
      • toJson

        public String toJson()
        Convert an instance of FundDestination to an JSON string
        Returns:
        JSON string