Class FundingInstrument


  • public class FundingInstrument
    extends Object
    FundingInstrument
    • Constructor Detail

      • FundingInstrument

        public FundingInstrument()
    • Method Detail

      • cardIdentification

        public FundingInstrument cardIdentification​(CardIdentification cardIdentification)
        cardIdentification
        Parameters:
        cardIdentification -
        Returns:
        the current FundingInstrument instance, allowing for method chaining
      • getCardIdentification

        public CardIdentification getCardIdentification()
        Get cardIdentification
        Returns:
        cardIdentification
      • setCardIdentification

        public void setCardIdentification​(CardIdentification cardIdentification)
        cardIdentification
        Parameters:
        cardIdentification -
      • networkPaymentReference

        public FundingInstrument networkPaymentReference​(String networkPaymentReference)
        The unique reference assigned by the card network for the pay-in transaction.
        Parameters:
        networkPaymentReference - The unique reference assigned by the card network for the pay-in transaction.
        Returns:
        the current FundingInstrument instance, allowing for method chaining
      • getNetworkPaymentReference

        public String getNetworkPaymentReference()
        The unique reference assigned by the card network for the pay-in transaction.
        Returns:
        networkPaymentReference The unique reference assigned by the card network for the pay-in transaction.
      • setNetworkPaymentReference

        public void setNetworkPaymentReference​(String networkPaymentReference)
        The unique reference assigned by the card network for the pay-in transaction.
        Parameters:
        networkPaymentReference - The unique reference assigned by the card network for the pay-in transaction.
      • reference

        public FundingInstrument reference​(String reference)
        Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
        Parameters:
        reference - Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
        Returns:
        the current FundingInstrument instance, allowing for method chaining
      • getReference

        public String getReference()
        Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
        Returns:
        reference Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
      • setReference

        public void setReference​(String reference)
        Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
        Parameters:
        reference - Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
      • sourceOfFunds

        public FundingInstrument sourceOfFunds​(FundingInstrument.SourceOfFundsEnum sourceOfFunds)
        Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
        Parameters:
        sourceOfFunds - Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
        Returns:
        the current FundingInstrument instance, allowing for method chaining
      • getSourceOfFunds

        public FundingInstrument.SourceOfFundsEnum getSourceOfFunds()
        Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
        Returns:
        sourceOfFunds Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
      • setSourceOfFunds

        public void setSourceOfFunds​(FundingInstrument.SourceOfFundsEnum sourceOfFunds)
        Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
        Parameters:
        sourceOfFunds - Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
      • includeNullValues

        public FundingInstrument includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • equals

        public boolean equals​(Object o)
        Return true if this FundingInstrument object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • fromJson

        public static FundingInstrument fromJson​(String jsonString)
                                          throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of FundingInstrument given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of FundingInstrument
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to FundingInstrument
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of FundingInstrument to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException