import { sharedSchemaReferences } from "../../types.js";
const denmarkBankAccountSchema = {
    type: 'bank-account',
    includeFields: {
        accountOwner: true,
        bankName: true,
        accountNumberEnding: true
    },
    additionalProperties: {
        resolved: {
            type: "object",
            properties: {
                bankAccountNumber: {
                    type: "string",
                    description: "IBAN",
                    minLength: 18,
                    maxLength: 18,
                    pattern: "^[a-zA-Z0-9]{18}$"
                },
                swiftCode: {
                    type: "string",
                    description: "SWIFT code",
                    minLength: 8,
                    maxLength: 11,
                    pattern: "^[A-Za-z0-9]{8}$|^[A-Za-z0-9]{11}$"
                },
                accountAddress: sharedSchemaReferences.PhysicalAddress
            },
            required: ['bankAccountNumber', 'swiftCode']
        },
        obfuscated: {
            type: "object",
            properties: {
                accountAddress: {
                    oneOf: [
                        { type: 'string' },
                        sharedSchemaReferences.PhysicalAddress
                    ]
                }
            }
        }
    }
};
export default denmarkBankAccountSchema;
//# sourceMappingURL=dk.js.map