import { sharedSchemaReferences } from "../../types.js";
const canadaBankAccountSchema = {
    type: 'bank-account',
    includeFields: {
        accountOwner: true,
        bankName: true,
        accountNumberEnding: true
    },
    additionalProperties: {
        resolved: {
            type: "object",
            properties: {
                bankCode: {
                    type: "string",
                    description: "Institution Number",
                    maxLength: 3,
                    minLength: 3,
                    pattern: "^\\\\d{3}$"
                },
                bankAccountNumber: {
                    type: "string",
                    description: "Account Number"
                },
                routingCode: {
                    type: "string",
                    description: "Transit Code",
                    maxLength: 5,
                    minLength: 5,
                    pattern: "^\\\\d{5}$"
                },
                accountAddress: sharedSchemaReferences.PhysicalAddress
            },
            required: ['routingCode', 'bankCode']
        },
        obfuscated: {
            type: "object",
            properties: {
                accountAddress: {
                    oneOf: [
                        { type: 'string' },
                        sharedSchemaReferences.PhysicalAddress
                    ]
                }
            }
        }
    }
};
export default canadaBankAccountSchema;
//# sourceMappingURL=ca.js.map