Variable legacyUnitSchemaConst
legacyUnitSchema: ZodDiscriminatedUnion<
"kind",
[
ZodObject<
{
identifier: ZodNativeEnum<
{
AUD: "AUD";
CAD: "CAD";
CNY: "CNY";
EUR: "EUR";
GBP: "GBP";
HKD: "HKD";
JPY: "JPY";
NZD: "NZD";
SGD: "SGD";
USD: "USD";
},
>;
kind: ZodLiteral<"currency">;
},
"strip",
{
identifier: | "AUD"
| "CAD"
| "CNY"
| "EUR"
| "GBP"
| "HKD"
| "JPY"
| "NZD"
| "SGD"
| "USD";
kind: "currency";
},
{
identifier: | "AUD"
| "CAD"
| "CNY"
| "EUR"
| "GBP"
| "HKD"
| "JPY"
| "NZD"
| "SGD"
| "USD";
kind: "currency";
},
>,
ZodObject<
{
depositPaymentIdentifier: ZodOptional<
ZodObject<
{
id: ZodString;
identifierType: ZodNativeEnum<
{
au_bsb: "au_bsb";
au_payid: "au_payid";
iban: "iban";
swift: "swift";
us_aba: "us_aba";
},
>;
paymentIdentifierAuBsb: ZodNullable<
ZodEffects<
ZodObject<
{ accountNumber: ...; bsb: ... },
"strip",
{ accountNumber: ...; bsb: ... },
{ accountNumber: ...; bsb: ... },
>,
{ accountNumber: string; bsb: string },
{ accountNumber: string; bsb: string },
>,
>;
paymentIdentifierAuPayId: ZodNullable<
ZodEffects<
ZodObject<
{
accountABN: ...;
accountCustomPayID: ...;
accountEmail: ...;
accountMobile: ...;
accountOrganisationID: ...;
},
"strip",
{
accountABN?: ...;
accountCustomPayID?: ...;
accountEmail?: ...;
accountMobile?: ...;
accountOrganisationID?: ...;
},
{
accountABN?: ...;
accountCustomPayID?: ...;
accountEmail?: ...;
accountMobile?: ...;
accountOrganisationID?: ...;
},
>,
{
accountABN?: (...)
| (...)
| (...);
accountCustomPayID?: (...) | (...) | (...);
accountEmail?: (...) | (...) | (...);
accountMobile?: (...) | (...) | (...);
accountOrganisationID?: (...) | (...) | (...);
},
{
accountABN?: (...)
| (...)
| (...);
accountCustomPayID?: (...) | (...) | (...);
accountEmail?: (...) | (...) | (...);
accountMobile?: (...) | (...) | (...);
accountOrganisationID?: (...) | (...) | (...);
},
>,
>;
paymentIdentifierIban: ZodNullable<
ZodObject<
{ iban: ZodString },
"strip",
{ iban: string },
{ iban: string },
>,
>;
paymentIdentifierSwift: ZodNullable<
ZodEffects<
ZodObject<
{ accountNumber: ...; bic: ... },
"strip",
{ accountNumber: ...; bic: ... },
{ accountNumber: ...; bic: ... },
>,
{ accountNumber: string; bic: string },
{ accountNumber: string; bic: string },
>,
>;
paymentIdentifierUsAba: ZodNullable<
ZodEffects<
ZodObject<
{
accountNumber: ...;
accountType: ...;
routingNumber: ...;
validNetworks: ...;
},
"strip",
{
accountNumber: ...;
accountType: ...;
routingNumber: ...;
validNetworks: ...;
},
{
accountNumber: ...;
accountType: ...;
routingNumber: ...;
validNetworks: ...;
},
>,
{
accountNumber: string;
accountType: (...)
| (...);
routingNumber: string;
validNetworks: (...)[];
},
{
accountNumber: string;
accountType: (...)
| (...);
routingNumber: string;
validNetworks: (...)[];
},
>,
>;
},
"strip",
{
id: string;
identifierType: "swift"
| "iban"
| "au_bsb"
| "au_payid"
| "us_aba";
paymentIdentifierAuBsb: null | { accountNumber: string; bsb: string };
paymentIdentifierAuPayId:
| null
| {
accountABN?: null
| string;
accountCustomPayID?: null | string;
accountEmail?: null | string;
accountMobile?: null | string;
accountOrganisationID?: null | string;
};
paymentIdentifierIban: null
| { iban: string };
paymentIdentifierSwift: null | { accountNumber: string; bic: string };
paymentIdentifierUsAba:
| null
| {
accountNumber: string;
accountType: "SAVINGS"
| "CHECKING";
routingNumber: string;
validNetworks: ((...) | (...))[];
};
},
{
id: string;
identifierType: "swift"
| "iban"
| "au_bsb"
| "au_payid"
| "us_aba";
paymentIdentifierAuBsb: null | { accountNumber: string; bsb: string };
paymentIdentifierAuPayId:
| null
| {
accountABN?: null
| string;
accountCustomPayID?: null | string;
accountEmail?: null | string;
accountMobile?: null | string;
accountOrganisationID?: null | string;
};
paymentIdentifierIban: null
| { iban: string };
paymentIdentifierSwift: null | { accountNumber: string; bic: string };
paymentIdentifierUsAba:
| null
| {
accountNumber: string;
accountType: "SAVINGS"
| "CHECKING";
routingNumber: string;
validNetworks: ((...) | (...))[];
};
},
>,
>;
distributionType: ZodEnum<["distributing", "accumulating"]>;
identifier: ZodString;
kind: ZodLiteral<"fund">;
pricedInCurrency: ZodNativeEnum<
{
AUD: "AUD";
CAD: "CAD";
CNY: "CNY";
EUR: "EUR";
GBP: "GBP";
HKD: "HKD";
JPY: "JPY";
NZD: "NZD";
SGD: "SGD";
USD: "USD";
},
>;
unitPriceFileUrl: ZodOptional<ZodString>;
},
"strip",
{
depositPaymentIdentifier?: {
id: string;
identifierType: "swift"
| "iban"
| "au_bsb"
| "au_payid"
| "us_aba";
paymentIdentifierAuBsb: null | { accountNumber: string; bsb: string };
paymentIdentifierAuPayId:
| null
| {
accountABN?: null
| string;
accountCustomPayID?: null | string;
accountEmail?: null | string;
accountMobile?: null | string;
accountOrganisationID?: null | string;
};
paymentIdentifierIban: null
| { iban: string };
paymentIdentifierSwift: null | { accountNumber: string; bic: string };
paymentIdentifierUsAba:
| null
| {
accountNumber: string;
accountType: "SAVINGS"
| "CHECKING";
routingNumber: string;
validNetworks: ("ACH" | "FEDWIRE")[];
};
};
distributionType: "distributing"
| "accumulating";
identifier: string;
kind: "fund";
pricedInCurrency:
| "AUD"
| "CAD"
| "CNY"
| "EUR"
| "GBP"
| "HKD"
| "JPY"
| "NZD"
| "SGD"
| "USD";
unitPriceFileUrl?: string;
},
{
depositPaymentIdentifier?: {
id: string;
identifierType: "swift"
| "iban"
| "au_bsb"
| "au_payid"
| "us_aba";
paymentIdentifierAuBsb: null | { accountNumber: string; bsb: string };
paymentIdentifierAuPayId:
| null
| {
accountABN?: null
| string;
accountCustomPayID?: null | string;
accountEmail?: null | string;
accountMobile?: null | string;
accountOrganisationID?: null | string;
};
paymentIdentifierIban: null
| { iban: string };
paymentIdentifierSwift: null | { accountNumber: string; bic: string };
paymentIdentifierUsAba:
| null
| {
accountNumber: string;
accountType: "SAVINGS"
| "CHECKING";
routingNumber: string;
validNetworks: ("ACH" | "FEDWIRE")[];
};
};
distributionType: "distributing"
| "accumulating";
identifier: string;
kind: "fund";
pricedInCurrency:
| "AUD"
| "CAD"
| "CNY"
| "EUR"
| "GBP"
| "HKD"
| "JPY"
| "NZD"
| "SGD"
| "USD";
unitPriceFileUrl?: string;
},
>,
],
> = ...