import { sharedSchemaReferences } from "../../types.js";
const usSchema = {
    type: 'bank-account',
    includeFields: {
        accountOwner: true,
        bankName: true,
        accountNumberEnding: true
    },
    additionalProperties: {
        resolved: {
            type: "object",
            properties: {
                accountNumber: { type: "string" },
                routingNumber: { type: "string" },
                accountTypeDetail: { type: "string", enum: ['checking', 'savings'] },
                accountAddress: sharedSchemaReferences.PhysicalAddress
            },
            required: ['accountNumber', 'routingNumber', 'accountTypeDetail']
        },
        obfuscated: {
            type: "object",
            properties: {
                routingNumber: { type: "string" },
                accountTypeDetail: { type: "string", enum: ['checking', 'savings'] },
                accountAddress: {
                    oneOf: [
                        { type: 'string' },
                        sharedSchemaReferences.PhysicalAddress
                    ]
                }
            },
            required: ['routingNumber']
        }
    }
};
export default usSchema;
//# sourceMappingURL=us.js.map