/* tslint:disable */ /* eslint-disable */ /** * loans/transactions * 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 { CustomPaymentAmount } from './custom-payment-amount'; // May contain unused imports in some cases // @ts-ignore import type { LoanTransactionDetailsInput } from './loan-transaction-details-input'; /** * Represents the request payload for creating a transaction of type REPAYMENT */ export interface RepaymentLoanTransactionInput { /** * Sets if the repayment is an advance repayment */ advanceRepayment?: boolean; /** * The amount of the repayment */ amount: number; /** * The booking date of the repayment (as Organization Time) */ bookingDate?: string; /** * The list of custom amounts of the repayment */ customPaymentAmounts?: Array; /** * The external id of the repayment transaction, customizable, unique */ externalId?: string; /** * The encoded key of the schedule installment to which this repayment is associated */ installmentEncodedKey?: string; /** * Extra notes about the repayment transaction. Notes can have at most 255 characters in length. */ notes?: string; /** * The currency code for the repayment transaction */ originalCurrencyCode?: string; /** * The prepayment recalculation method types. */ prepaymentRecalculationMethod?: RepaymentLoanTransactionInputPrepaymentRecalculationMethodEnum; /** * The amount of the principal overpayment */ principalOverpaymentAmount?: number; transactionDetails?: LoanTransactionDetailsInput; /** * The entry date of the repayment (as Organization Time) */ valueDate?: string; } export const RepaymentLoanTransactionInputPrepaymentRecalculationMethodEnum = { NoRecalculation: 'NO_RECALCULATION', RescheduleRemainingRepayments: 'RESCHEDULE_REMAINING_REPAYMENTS', RecalculateScheduleKeepSameNumberOfTerms: 'RECALCULATE_SCHEDULE_KEEP_SAME_NUMBER_OF_TERMS', RecalculateScheduleKeepSamePrincipalAmount: 'RECALCULATE_SCHEDULE_KEEP_SAME_PRINCIPAL_AMOUNT', RecalculateScheduleKeepSameTotalRepaymentAmount: 'RECALCULATE_SCHEDULE_KEEP_SAME_TOTAL_REPAYMENT_AMOUNT', ReduceAmountPerInstallment: 'REDUCE_AMOUNT_PER_INSTALLMENT', ReduceNumberOfInstallments: 'REDUCE_NUMBER_OF_INSTALLMENTS', ReduceNumberOfInstallmentsNew: 'REDUCE_NUMBER_OF_INSTALLMENTS_NEW', } as const; export type RepaymentLoanTransactionInputPrepaymentRecalculationMethodEnum = (typeof RepaymentLoanTransactionInputPrepaymentRecalculationMethodEnum)[keyof typeof RepaymentLoanTransactionInputPrepaymentRecalculationMethodEnum];