/** * The localized fields API in checkout UI extensions includes additional fields * that are required under certain circumstances, depending on the shop country, * destination country, and origin countries for all the merchandise in the cart. * For example, some countries require additional fields for customs information * or tax identification numbers. */ export type LocalizedFields = LocalizedField[]; /** * The localized fields API in checkout UI extensions includes select geolocation * data for the current user and read-only access to localization fields. */ export interface LocalizedField { /** * The [key](https://shopify.dev/docs/api/admin-graphql/unstable/enums/localizationextensionkey) of a localization extension. */ key: LocalizedFieldKey; /** * The translated title of a localization extension. This is the input field's label, displayed to buyers in the 'Additional information' form during checkout. */ title: string; /** * The user input value of the localization extension field. */ value: string; } /** * The [key](https://shopify.dev/docs/api/admin-graphql/unstable/enums/localizationextensionkey) of a localization extension. */ type LocalizedFieldKey = 'SHIPPING_CREDENTIAL_BR' | 'SHIPPING_CREDENTIAL_CL' | 'TAX_CREDENTIAL_BR' | 'TAX_CREDENTIAL_CL'; export {};