Class SweepConfiguration


  • public class SweepConfiguration
    extends Object
    SweepConfiguration
    • Constructor Detail

      • SweepConfiguration

        public SweepConfiguration()
    • 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)
      • getId

        public String getId()
        The unique identifier of the sweep.
        Returns:
        id
      • setId

        public void setId​(String id)
      • getMerchantAccount

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

        public void setMerchantAccount​(String merchantAccount)
      • getStatus

        public SweepConfiguration.StatusEnum getStatus()
        The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered.
        Returns:
        status
      • getSweepAmount

        public Amount getSweepAmount()
        Get sweepAmount
        Returns:
        sweepAmount
      • setSweepAmount

        public void setSweepAmount​(Amount sweepAmount)
      • getTargetAmount

        public Amount getTargetAmount()
        Get targetAmount
        Returns:
        targetAmount
      • setTargetAmount

        public void setTargetAmount​(Amount targetAmount)
      • 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)
      • getTriggerAmount

        public Amount getTriggerAmount()
        Get triggerAmount
        Returns:
        triggerAmount
      • setTriggerAmount

        public void setTriggerAmount​(Amount triggerAmount)
      • getType

        public SweepConfiguration.TypeEnum getType()
        The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account.
        Returns:
        type
      • 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 SweepConfiguration
      • fromJson

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

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