import { object } from "yup";
import { businessCoreInfoSchemaUSA, businessCoreInfoSchemaCAN } from "./business-core-info-schema";
import { additionalQuestionsSchema } from "./business-additional-questions-schema";
import { identitySchemaUSA, identitySchemaCAN } from "./business-identity-schema";
import { addressSchemaUSA, addressSchemaCAN } from "./business-address-schema";
export const businessFormSchemaUSA = object(Object.assign(Object.assign({}, businessCoreInfoSchemaUSA().fields), { legal_address: addressSchemaUSA(), additional_questions: additionalQuestionsSchema(), representative: identitySchemaUSA('representative') }));
export const businessFormSchemaCAN = object(Object.assign(Object.assign({}, businessCoreInfoSchemaCAN().fields), { legal_address: addressSchemaCAN(), additional_questions: additionalQuestionsSchema(), representative: identitySchemaCAN('representative') }));
// For backward compatibility, default to USA
export const businessFormSchema = businessFormSchemaUSA;
