import { sharedSchemaReferences } from '../../types.js';
const sharedProperties = {
    duitNowKeyType: { type: 'string', enum: ['nric', 'passport', 'corporate_registration_number', 'army_id', 'mobile'] }
};
const duitNowSchema = {
    type: 'bank-account',
    includeFields: {
        accountOwner: true
    },
    additionalProperties: {
        resolved: {
            type: 'object',
            properties: {
                ...sharedProperties,
                duitNowKey: { type: 'string' },
                accountAddress: sharedSchemaReferences.PhysicalAddress
            },
            required: []
        },
        obfuscated: {
            type: 'object',
            properties: {
                ...sharedProperties,
                accountAddress: {
                    oneOf: [
                        { type: 'string' },
                        sharedSchemaReferences.PhysicalAddress
                    ]
                }
            }
        }
    }
};
export default duitNowSchema;
//# sourceMappingURL=duit-now.js.map