/* tslint:disable */ /* eslint-disable */ /** * deposits * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ // May contain unused imports in some cases // @ts-ignore import type { CardAcceptor } from './card-acceptor'; /** * Authorization hold for Deposits (no balances) */ export interface DepositAuthorizationHold { /** * The key of the account linked with the authorization hold. */ accountKey?: string; /** * Whether the given request should be accepted without balance validations. */ advice?: boolean; /** * The amount of money to be held as a result of the authorization hold request. */ amount: number; cardAcceptor?: CardAcceptor; /** * The reference token of the card. */ cardToken?: string; /** * The organization time when the authorization hold was created */ creationDate?: string; /** * Indicates whether the authorization hold amount is credited or debited */ creditDebitIndicator?: DepositAuthorizationHoldCreditDebitIndicatorEnum; /** * The ISO currency code in which the hold was created. The amounts are stored in the base currency, but the user could have enter it in a foreign currency. */ currencyCode?: string; /** * The internal ID of the authorization hold, auto generated, unique. */ encodedKey?: string; /** * The exchange rate for the original currency. */ exchangeRate?: number; /** * The external reference ID to be used to reference the account hold in subsequent requests. */ externalReferenceId: string; /** * The original amount of money to be held as a result of the authorization hold request. */ originalAmount?: number; /** * The original currency in which the hold was created. */ originalCurrency?: string; /** * Indicates the source of the authorization hold */ source?: DepositAuthorizationHoldSourceEnum; /** * The enumeration containing the statuses of an authorization hold. */ status?: DepositAuthorizationHoldStatusEnum; /** * The formatted time at which the user made this authorization hold. */ userTransactionTime?: string; } export const DepositAuthorizationHoldCreditDebitIndicatorEnum = { Dbit: 'DBIT', Crdt: 'CRDT', } as const; export type DepositAuthorizationHoldCreditDebitIndicatorEnum = (typeof DepositAuthorizationHoldCreditDebitIndicatorEnum)[keyof typeof DepositAuthorizationHoldCreditDebitIndicatorEnum]; export const DepositAuthorizationHoldSourceEnum = { Card: 'CARD', Account: 'ACCOUNT', } as const; export type DepositAuthorizationHoldSourceEnum = (typeof DepositAuthorizationHoldSourceEnum)[keyof typeof DepositAuthorizationHoldSourceEnum]; export const DepositAuthorizationHoldStatusEnum = { Pending: 'PENDING', Reversed: 'REVERSED', Settled: 'SETTLED', Expired: 'EXPIRED', } as const; export type DepositAuthorizationHoldStatusEnum = (typeof DepositAuthorizationHoldStatusEnum)[keyof typeof DepositAuthorizationHoldStatusEnum];