Class CreateSweepConfigurationV2


  • public class CreateSweepConfigurationV2
    extends Object
    CreateSweepConfigurationV2
    • Constructor Detail

      • CreateSweepConfigurationV2

        public CreateSweepConfigurationV2()
    • Method Detail

      • getCategory

        public CreateSweepConfigurationV2.CategoryEnum getCategory()
        The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`.
        Returns:
        category
      • getCounterparty

        public SweepCounterparty getCounterparty()
        Get counterparty
        Returns:
        counterparty
      • getCurrency

        public String getCurrency()
        The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances).
        Returns:
        currency
      • setCurrency

        public void setCurrency​(String currency)
      • getDescription

        public String getDescription()
        The message that will be used in the sweep transfer's description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
      • getPriorities

        public List<CreateSweepConfigurationV2.PrioritiesEnum> getPriorities()
        The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that's not possible, it moves on to the next option in the order of provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
        Returns:
        priorities
      • getSchedule

        public SweepSchedule getSchedule()
        Get schedule
        Returns:
        schedule
      • setSchedule

        public void setSchedule​(SweepSchedule schedule)
      • getStatus

        public CreateSweepConfigurationV2.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)
      • getTriggerAmount

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

        public void setTriggerAmount​(Amount triggerAmount)
      • getType

        public CreateSweepConfigurationV2.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
      • equals

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

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

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

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