Class SweepCounterparty


  • public class SweepCounterparty
    extends Object
    SweepCounterparty
    • Constructor Detail

      • SweepCounterparty

        public SweepCounterparty()
    • Method Detail

      • getBalanceAccountId

        public String getBalanceAccountId()
        The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). You can only use this for periodic sweep schedules such as `schedule.type` **daily** or **monthly**.
        Returns:
        balanceAccountId
      • setBalanceAccountId

        public void setBalanceAccountId​(String balanceAccountId)
      • getMerchantAccount

        public String getMerchantAccount()
        The merchant account that will be the source of funds, if you are processing payments with Adyen. You can only use this with sweeps of `type` **pull** and `schedule.type` **balance**.
        Returns:
        merchantAccount
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
      • getTransferInstrumentId

        public String getTransferInstrumentId()
        The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/transferInstruments__resParam_id). You can also use this in combination with a `merchantAccount` and a `type` **pull** to start a direct debit request from the source transfer instrument. To use this feature, reach out to your Adyen contact.
        Returns:
        transferInstrumentId
      • setTransferInstrumentId

        public void setTransferInstrumentId​(String transferInstrumentId)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Throws:
        IOException
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj,
                                              boolean strictValidation)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        strictValidation - reject (new) fields missing from the specifications
        Throws:
        IOException - if the JSON Object is invalid with respect to SweepCounterparty
      • fromJson

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

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