UNPKG

@adyen/api-library

Version:

The Adyen API Library for NodeJS enables you to work with Adyen APIs.

122 lines (121 loc) 6.9 kB
import { Amount } from "./amount"; import { SweepCounterparty } from "./sweepCounterparty"; import { SweepSchedule } from "./sweepSchedule"; export declare class SweepConfigurationV2 { /** * 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`. */ "category"?: SweepConfigurationV2.CategoryEnum; "counterparty": SweepCounterparty; /** * 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). */ "currency": string; /** * 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. */ "description"?: string; /** * The unique identifier of the sweep. */ "id": string; /** * 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, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers within the United States and in [SEPA locations](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). */ "priorities"?: Array<SweepConfigurationV2.PrioritiesEnum>; /** * The reason for disabling the sweep. */ "reason"?: SweepConfigurationV2.ReasonEnum; /** * The human readable reason for disabling the sweep. */ "reasonDetail"?: string; /** * Your reference for the sweep configuration. */ "reference"?: string; /** * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ "referenceForBeneficiary"?: string; "schedule": SweepSchedule; /** * 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. */ "status"?: SweepConfigurationV2.StatusEnum; "sweepAmount"?: Amount | null; "targetAmount"?: Amount | null; "triggerAmount"?: Amount | null; /** * 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. */ "type"?: SweepConfigurationV2.TypeEnum; static readonly discriminator: string | undefined; static readonly mapping: { [index: string]: string; } | undefined; static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string; }>; static getAttributeTypeMap(): { name: string; baseName: string; type: string; format: string; }[]; constructor(); } export declare namespace SweepConfigurationV2 { enum CategoryEnum { Bank = "bank", Internal = "internal", PlatformPayment = "platformPayment" } enum PrioritiesEnum { CrossBorder = "crossBorder", Fast = "fast", Instant = "instant", Internal = "internal", Regular = "regular", Wire = "wire" } enum ReasonEnum { AccountHierarchyNotActive = "accountHierarchyNotActive", AmountLimitExceeded = "amountLimitExceeded", ApprovalExpired = "approvalExpired", Approved = "approved", BalanceAccountTemporarilyBlockedByTransactionRule = "balanceAccountTemporarilyBlockedByTransactionRule", CounterpartyAccountBlocked = "counterpartyAccountBlocked", CounterpartyAccountClosed = "counterpartyAccountClosed", CounterpartyAccountNotFound = "counterpartyAccountNotFound", CounterpartyAddressRequired = "counterpartyAddressRequired", CounterpartyBankTimedOut = "counterpartyBankTimedOut", CounterpartyBankUnavailable = "counterpartyBankUnavailable", Declined = "declined", DeclinedByTransactionRule = "declinedByTransactionRule", DirectDebitNotSupported = "directDebitNotSupported", Error = "error", NotEnoughBalance = "notEnoughBalance", Pending = "pending", PendingApproval = "pendingApproval", PendingExecution = "pendingExecution", RefusedByCounterpartyBank = "refusedByCounterpartyBank", RefusedByCustomer = "refusedByCustomer", RouteNotFound = "routeNotFound", ScaFailed = "scaFailed", TransferInstrumentDoesNotExist = "transferInstrumentDoesNotExist", Unknown = "unknown" } enum StatusEnum { Active = "active", Inactive = "inactive" } enum TypeEnum { Pull = "pull", Push = "push" } }