import { sharedSchemaReferences } from "../../types.js";
const ibanSwiftSchema = {
    type: 'bank-account',
    includeFields: {
        accountOwner: true,
        bankName: true,
        accountNumberEnding: true
    },
    additionalProperties: {
        resolved: {
            type: "object",
            properties: {
                country: sharedSchemaReferences.ISOCountryCode,
                accountNumber: { type: "string" },
                bic: { type: "string" },
                iban: { type: "string" },
                bankAddress: sharedSchemaReferences.PhysicalAddress,
                swift: {
                    type: "object",
                    properties: {
                        beneficiaryName: { type: "string" },
                        intermediaryBank: {
                            type: "object",
                            properties: {
                                bic: { type: "string" },
                                name: { type: "string" },
                                address: sharedSchemaReferences.PhysicalAddress
                            }
                        },
                        category: { type: "string" },
                        purposeOfFunds: {
                            type: "array",
                            items: { type: "string" }
                        },
                        businessDescription: { type: "string" }
                    }
                }
            },
            required: []
        },
        obfuscated: {
            type: "object",
            properties: {
                country: sharedSchemaReferences.ISOCountryCode,
                bic: { type: "string" },
                swift: {
                    type: "object",
                    properties: {
                        beneficiaryName: { type: "string" },
                        intermediaryBank: {
                            type: "object",
                            properties: {
                                bic: { type: "string" }
                            }
                        }
                    }
                }
            },
            required: []
        }
    }
};
export default ibanSwiftSchema;
//# sourceMappingURL=iban-swift.js.map