/* tslint:disable */ /* eslint-disable */ /** * cards * 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'; /** * A card transaction entry which will have a corresponding a financial transaction performed. */ export interface CardTransactionInput { /** * Whether the given request should be accepted without balance validations. */ advice: boolean; /** * The amount of money to be withdrawn in the financial transaction. */ amount: number; cardAcceptor?: CardAcceptor; /** * The reference token of the card. */ cardToken?: string; /** * Indicates whether the authorization hold amount is credited or debited */ creditDebitIndicator?: CardTransactionInputCreditDebitIndicatorEnum; /** * The ISO currency code in which the card reversal transaction is posted. The amounts are stored in the base currency, but the transaction can be created with a foreign currency. */ currencyCode?: string; /** * The encoded key of the entity, generated, globally unique */ encodedKey?: string; /** * The external authorization hold reference ID, which relates this card transaction to a previous authorization hold. */ externalAuthorizationReferenceId?: string; /** * The external reference ID to be used to reference the card transaction in subsequent requests. */ externalReferenceId: string; /** * The date of the first repayment for the loan account (as Organization Time) */ firstRepaymentDate?: string; /** * Increase available amount if needed */ increaseAmountIfNeeded?: boolean; /** * Whether the given request should be a partial clearing or not. */ partial?: boolean; /** * The ID of the channel through which the payment is done. */ transactionChannelId: string; /** * If present, indicates that the card transaction type, and whether is cash or withdrawal */ transactionType?: CardTransactionInputTransactionTypeEnum; /** * The formatted time at which the user made this card transaction. */ userTransactionTime?: string; } export const CardTransactionInputCreditDebitIndicatorEnum = { Dbit: 'DBIT', Crdt: 'CRDT', } as const; export type CardTransactionInputCreditDebitIndicatorEnum = (typeof CardTransactionInputCreditDebitIndicatorEnum)[keyof typeof CardTransactionInputCreditDebitIndicatorEnum]; export const CardTransactionInputTransactionTypeEnum = { Purchase: 'PURCHASE', CashAdvance: 'CASH_ADVANCE', Other: 'OTHER', } as const; export type CardTransactionInputTransactionTypeEnum = (typeof CardTransactionInputTransactionTypeEnum)[keyof typeof CardTransactionInputTransactionTypeEnum];