/* tslint:disable */ /* eslint-disable */ /** * setup/general * 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. */ /** * Represents a duplicate constraint which needs to apply when saving entities */ export interface DuplicateFieldConstraint { /** * The check will be performed if the field is true */ active?: boolean; /** * The ENUM data field when the field is an ENUM */ dataField?: string; /** * Represents the type of the owner (entity) to whom a data field belongs to (loans, savings, client, group, repayments, transactions, activities etc.) */ dataItemType?: DuplicateFieldConstraintDataItemTypeEnum; /** * The encoded key of the duplicate field constraint, auto generated, unique */ encodedKey?: string; /** * Used for creating an AND clause between constraints */ groupIndex?: number; } export const DuplicateFieldConstraintDataItemTypeEnum = { Loans: 'LOANS', Savings: 'SAVINGS', Client: 'CLIENT', ClientRole: 'CLIENT_ROLE', Group: 'GROUP', GroupRole: 'GROUP_ROLE', Transaction: 'TRANSACTION', JournalEntry: 'JOURNAL_ENTRY', InterestAccrualBreakdown: 'INTEREST_ACCRUAL_BREAKDOWN', Branch: 'BRANCH', Centre: 'CENTRE', User: 'USER', LoanProduct: 'LOAN_PRODUCT', SavingsProduct: 'SAVINGS_PRODUCT', NotificationMessage: 'NOTIFICATION_MESSAGE', NotificationTemplate: 'NOTIFICATION_TEMPLATE', Repayment: 'REPAYMENT', RepaymentCollection: 'REPAYMENT_COLLECTION', Activity: 'ACTIVITY', LineOfCredit: 'LINE_OF_CREDIT', IdentificationDocument: 'IDENTIFICATION_DOCUMENT', Attachment: 'ATTACHMENT', Currency: 'CURRENCY', Product: 'PRODUCT', Revenue: 'REVENUE', Expense: 'EXPENSE', OutstandingPortfolioAccounts: 'OUTSTANDING_PORTFOLIO_ACCOUNTS', OutstandingPortfolioAmounts: 'OUTSTANDING_PORTFOLIO_AMOUNTS', CreatedAccounts: 'CREATED_ACCOUNTS', WrittenOffLoans: 'WRITTEN_OFF_LOANS', DisbursedLoans: 'DISBURSED_LOANS', LoanGroup: 'LOAN_GROUP', Tranche: 'TRANCHE', DisbursementDetails: 'DISBURSEMENT_DETAILS', TransactionDetails: 'TRANSACTION_DETAILS', TransactionChannel: 'TRANSACTION_CHANNEL', CustomPredefinedFee: 'CUSTOM_PREDEFINED_FEE', CustomFieldSelection: 'CUSTOM_FIELD_SELECTION', PredefinedFee: 'PREDEFINED_FEE', LoanTransaction: 'LOAN_TRANSACTION', SavingsTransaction: 'SAVINGS_TRANSACTION', CardTransactionReversal: 'CARD_TRANSACTION_REVERSAL', ComposedTransactions: 'COMPOSED_TRANSACTIONS', UnionTransactions: 'UNION_TRANSACTIONS', InvestorFund: 'INVESTOR_FUND', PrincipalPaymentSettings: 'PRINCIPAL_PAYMENT_SETTINGS', LoanAccountGuaranty: 'LOAN_ACCOUNT_GUARANTY', Task: 'TASK', DocumentTemplate: 'DOCUMENT_TEMPLATE', IndexRate: 'INDEX_RATE', IndexRateSource: 'INDEX_RATE_SOURCE', InterestProductSettings: 'INTEREST_PRODUCT_SETTINGS', MccExpiration: 'MCC_EXPIRATION', ProductArrearsSettings: 'PRODUCT_ARREARS_SETTINGS', AccountInterestRateSettings: 'ACCOUNT_INTEREST_RATE_SETTINGS', LendingAccountContract: 'LENDING_ACCOUNT_CONTRACT', RevolvingAccount: 'REVOLVING_ACCOUNT', LendingProductContract: 'LENDING_PRODUCT_CONTRACT', } as const; export type DuplicateFieldConstraintDataItemTypeEnum = (typeof DuplicateFieldConstraintDataItemTypeEnum)[keyof typeof DuplicateFieldConstraintDataItemTypeEnum];