@shopify/ui-extensions 2026.4.0-rc.3 → 2026.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/surfaces/checkout/preact/api.js +2 -0
- package/build/cjs/surfaces/checkout/preact/app-metafields.js +1 -0
- package/build/cjs/surfaces/checkout/preact/attributes.js +3 -0
- package/build/cjs/surfaces/checkout/preact/billing-address.js +1 -0
- package/build/cjs/surfaces/checkout/preact/buyer-identity.js +4 -0
- package/build/cjs/surfaces/checkout/preact/buyer-journey.js +5 -0
- package/build/cjs/surfaces/checkout/preact/capabilities.js +2 -0
- package/build/cjs/surfaces/checkout/preact/cart-line-target.js +1 -0
- package/build/cjs/surfaces/checkout/preact/cart-lines.js +2 -0
- package/build/cjs/surfaces/checkout/preact/checkout-settings.js +1 -0
- package/build/cjs/surfaces/checkout/preact/checkout-token.js +1 -0
- package/build/cjs/surfaces/checkout/preact/cost.js +4 -0
- package/build/cjs/surfaces/checkout/preact/country.js +1 -0
- package/build/cjs/surfaces/checkout/preact/currency.js +1 -0
- package/build/cjs/surfaces/checkout/preact/customer-privacy.js +1 -0
- package/build/cjs/surfaces/checkout/preact/delivery-group-list-target.js +1 -0
- package/build/cjs/surfaces/checkout/preact/delivery-group-target.js +1 -0
- package/build/cjs/surfaces/checkout/preact/delivery-group.js +1 -0
- package/build/cjs/surfaces/checkout/preact/delivery-groups.js +1 -0
- package/build/cjs/surfaces/checkout/preact/delivery-selection-groups.js +1 -0
- package/build/cjs/surfaces/checkout/preact/discounts.js +3 -0
- package/build/cjs/surfaces/checkout/preact/extension-editor.js +1 -0
- package/build/cjs/surfaces/checkout/preact/extension-language.js +1 -0
- package/build/cjs/surfaces/checkout/preact/extension.js +2 -0
- package/build/cjs/surfaces/checkout/preact/gift-cards.js +2 -0
- package/build/cjs/surfaces/checkout/preact/instructions.js +1 -0
- package/build/cjs/surfaces/checkout/preact/language.js +1 -0
- package/build/cjs/surfaces/checkout/preact/localized-fields.js +2 -0
- package/build/cjs/surfaces/checkout/preact/market.js +1 -0
- package/build/cjs/surfaces/checkout/preact/metafields.js +1 -0
- package/build/cjs/surfaces/checkout/preact/note.js +2 -0
- package/build/cjs/surfaces/checkout/preact/payment-method.js +3 -0
- package/build/cjs/surfaces/checkout/preact/payment-options.js +2 -0
- package/build/cjs/surfaces/checkout/preact/pickup-location-option-target.js +1 -0
- package/build/cjs/surfaces/checkout/preact/redeemable.js +1 -0
- package/build/cjs/surfaces/checkout/preact/session-token.js +1 -0
- package/build/cjs/surfaces/checkout/preact/settings.js +1 -0
- package/build/cjs/surfaces/checkout/preact/shipping-address.js +2 -0
- package/build/cjs/surfaces/checkout/preact/shipping-option-target.js +1 -0
- package/build/cjs/surfaces/checkout/preact/shop.js +1 -0
- package/build/cjs/surfaces/checkout/preact/storage.js +1 -0
- package/build/cjs/surfaces/checkout/preact/subscription.js +1 -0
- package/build/cjs/surfaces/checkout/preact/target.js +1 -0
- package/build/cjs/surfaces/checkout/preact/timezone.js +1 -0
- package/build/cjs/surfaces/checkout/preact/translate.js +1 -0
- package/build/cjs/surfaces/checkout/shared.js +3 -16
- package/build/cjs/surfaces/checkout/style/style.js +1 -0
- package/build/cjs/surfaces/point-of-sale/types/storage.js +4 -0
- package/build/esm/surfaces/checkout/preact/api.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/app-metafields.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/attributes.mjs +3 -0
- package/build/esm/surfaces/checkout/preact/billing-address.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/buyer-identity.mjs +4 -0
- package/build/esm/surfaces/checkout/preact/buyer-journey.mjs +5 -0
- package/build/esm/surfaces/checkout/preact/capabilities.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/cart-line-target.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/cart-lines.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/checkout-settings.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/checkout-token.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/cost.mjs +4 -0
- package/build/esm/surfaces/checkout/preact/country.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/currency.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/customer-privacy.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/delivery-group-list-target.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/delivery-group-target.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/delivery-group.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/delivery-groups.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/delivery-selection-groups.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/discounts.mjs +3 -0
- package/build/esm/surfaces/checkout/preact/extension-editor.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/extension-language.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/extension.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/gift-cards.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/instructions.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/language.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/localized-fields.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/market.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/metafields.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/note.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/payment-method.mjs +3 -0
- package/build/esm/surfaces/checkout/preact/payment-options.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/pickup-location-option-target.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/redeemable.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/session-token.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/settings.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/shipping-address.mjs +2 -0
- package/build/esm/surfaces/checkout/preact/shipping-option-target.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/shop.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/storage.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/subscription.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/target.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/timezone.mjs +1 -0
- package/build/esm/surfaces/checkout/preact/translate.mjs +1 -0
- package/build/esm/surfaces/checkout/shared.mjs +3 -16
- package/build/esm/surfaces/checkout/style/style.mjs +1 -0
- package/build/esm/surfaces/point-of-sale/types/storage.mjs +4 -0
- package/build/esnext/surfaces/checkout/preact/api.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/app-metafields.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/attributes.esnext +3 -0
- package/build/esnext/surfaces/checkout/preact/billing-address.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/buyer-identity.esnext +4 -0
- package/build/esnext/surfaces/checkout/preact/buyer-journey.esnext +5 -0
- package/build/esnext/surfaces/checkout/preact/capabilities.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/cart-line-target.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/cart-lines.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/checkout-settings.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/checkout-token.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/cost.esnext +4 -0
- package/build/esnext/surfaces/checkout/preact/country.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/currency.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/customer-privacy.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/delivery-group-list-target.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/delivery-group-target.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/delivery-group.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/delivery-groups.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/delivery-selection-groups.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/discounts.esnext +3 -0
- package/build/esnext/surfaces/checkout/preact/extension-editor.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/extension-language.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/extension.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/gift-cards.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/instructions.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/language.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/localized-fields.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/market.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/metafields.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/note.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/payment-method.esnext +3 -0
- package/build/esnext/surfaces/checkout/preact/payment-options.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/pickup-location-option-target.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/redeemable.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/session-token.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/settings.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/shipping-address.esnext +2 -0
- package/build/esnext/surfaces/checkout/preact/shipping-option-target.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/shop.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/storage.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/subscription.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/target.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/timezone.esnext +1 -0
- package/build/esnext/surfaces/checkout/preact/translate.esnext +1 -0
- package/build/esnext/surfaces/checkout/shared.esnext +3 -16
- package/build/esnext/surfaces/checkout/style/style.esnext +1 -0
- package/build/esnext/surfaces/point-of-sale/types/storage.esnext +4 -0
- package/build/ts/shared.d.ts +32 -12
- package/build/ts/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/action/action.d.ts +1 -0
- package/build/ts/surfaces/admin/api/action/action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/block/block.d.ts +2 -0
- package/build/ts/surfaces/admin/api/block/block.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/launch-options.d.ts +7 -4
- package/build/ts/surfaces/admin/api/checkout-rules/launch-options.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts +13 -7
- package/build/ts/surfaces/admin/api/checkout-rules/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.d.ts +1 -0
- package/build/ts/surfaces/admin/api/checkout-rules/validation-settings.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts +3 -0
- package/build/ts/surfaces/admin/api/customer-segment-template/customer-segment-template.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/discount-function-settings.d.ts +1 -0
- package/build/ts/surfaces/admin/api/discount-function-settings/discount-function-settings.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/launch-options.d.ts +7 -3
- package/build/ts/surfaces/admin/api/discount-function-settings/launch-options.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/discount-function-settings/metafields.d.ts +13 -7
- package/build/ts/surfaces/admin/api/discount-function-settings/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/intents/intent-render.d.ts +24 -0
- package/build/ts/surfaces/admin/api/intents/intent-render.d.ts.map +1 -0
- package/build/ts/surfaces/admin/api/intents/intents.d.ts +44 -8
- package/build/ts/surfaces/admin/api/intents/intents.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/data.d.ts +5 -3
- package/build/ts/surfaces/admin/api/order-routing-rule/data.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts +8 -3
- package/build/ts/surfaces/admin/api/order-routing-rule/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.d.ts +1 -0
- package/build/ts/surfaces/admin/api/order-routing-rule/order-routing-rule.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/picker/picker.d.ts +15 -7
- package/build/ts/surfaces/admin/api/picker/picker.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts +1 -0
- package/build/ts/surfaces/admin/api/print-action/print-action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.d.ts +4 -2
- package/build/ts/surfaces/admin/api/product-configuration/product-details-configuration.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.d.ts +4 -2
- package/build/ts/surfaces/admin/api/product-configuration/product-variant-details-configuration.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/purchase-options-card-action.d.ts +1 -0
- package/build/ts/surfaces/admin/api/purchase-options-card-action.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts +36 -17
- package/build/ts/surfaces/admin/api/resource-picker/resource-picker.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/shared.d.ts +2 -0
- package/build/ts/surfaces/admin/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/standard-rendering.d.ts +3 -0
- package/build/ts/surfaces/admin/api/standard/standard-rendering.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +4 -1
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api/standard/storage.d.ts +4 -0
- package/build/ts/surfaces/admin/api/standard/storage.d.ts.map +1 -1
- package/build/ts/surfaces/admin/api.d.ts +1 -0
- package/build/ts/surfaces/admin/api.d.ts.map +1 -1
- package/build/ts/surfaces/admin/components/AdminAction.d.ts +6 -0
- package/build/ts/surfaces/admin/components/AdminBlock.d.ts +6 -0
- package/build/ts/surfaces/admin/components/AdminPrintAction.d.ts +6 -0
- package/build/ts/surfaces/admin/components/Avatar.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Badge.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Banner.d.ts +11 -0
- package/build/ts/surfaces/admin/components/Box.d.ts +14 -0
- package/build/ts/surfaces/admin/components/Button.d.ts +14 -0
- package/build/ts/surfaces/admin/components/ButtonGroup.d.ts +8 -0
- package/build/ts/surfaces/admin/components/Checkbox.d.ts +12 -1
- package/build/ts/surfaces/admin/components/Chip.d.ts +4 -2
- package/build/ts/surfaces/admin/components/Choice.d.ts +10 -2
- package/build/ts/surfaces/admin/components/ChoiceList.d.ts +12 -2
- package/build/ts/surfaces/admin/components/Clickable.d.ts +16 -4
- package/build/ts/surfaces/admin/components/ClickableChip.d.ts +11 -0
- package/build/ts/surfaces/admin/components/ColorField.d.ts +12 -0
- package/build/ts/surfaces/admin/components/ColorPicker.d.ts +9 -0
- package/build/ts/surfaces/admin/components/DateField.d.ts +11 -0
- package/build/ts/surfaces/admin/components/DatePicker.d.ts +10 -1
- package/build/ts/surfaces/admin/components/Divider.d.ts +7 -0
- package/build/ts/surfaces/admin/components/DropZone.d.ts +8 -4
- package/build/ts/surfaces/admin/components/EmailField.d.ts +12 -0
- package/build/ts/surfaces/admin/components/Form.d.ts +10 -0
- package/build/ts/surfaces/admin/components/FunctionSettings.d.ts +12 -0
- package/build/ts/surfaces/admin/components/Grid.d.ts +16 -0
- package/build/ts/surfaces/admin/components/GridItem.d.ts +15 -0
- package/build/ts/surfaces/admin/components/Heading.d.ts +8 -0
- package/build/ts/surfaces/admin/components/Icon.d.ts +6 -3
- package/build/ts/surfaces/admin/components/Image.d.ts +15 -0
- package/build/ts/surfaces/admin/components/Link.d.ts +13 -3
- package/build/ts/surfaces/admin/components/ListItem.d.ts +8 -0
- package/build/ts/surfaces/admin/components/Menu.d.ts +11 -0
- package/build/ts/surfaces/admin/components/Modal.d.ts +8 -4
- package/build/ts/surfaces/admin/components/MoneyField.d.ts +13 -0
- package/build/ts/surfaces/admin/components/NumberField.d.ts +12 -0
- package/build/ts/surfaces/admin/components/Option.d.ts +10 -2
- package/build/ts/surfaces/admin/components/OptionGroup.d.ts +10 -2
- package/build/ts/surfaces/admin/components/OrderedList.d.ts +8 -0
- package/build/ts/surfaces/admin/components/Page.d.ts +4 -2
- package/build/ts/surfaces/admin/components/Paragraph.d.ts +8 -0
- package/build/ts/surfaces/admin/components/PasswordField.d.ts +12 -0
- package/build/ts/surfaces/admin/components/QueryContainer.d.ts +8 -0
- package/build/ts/surfaces/admin/components/SearchField.d.ts +13 -1
- package/build/ts/surfaces/admin/components/Section.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Select.d.ts +14 -2
- package/build/ts/surfaces/admin/components/Spinner.d.ts +7 -0
- package/build/ts/surfaces/admin/components/Stack.d.ts +16 -0
- package/build/ts/surfaces/admin/components/Switch.d.ts +12 -1
- package/build/ts/surfaces/admin/components/Table.d.ts +15 -0
- package/build/ts/surfaces/admin/components/TableBody.d.ts +8 -0
- package/build/ts/surfaces/admin/components/TableCell.d.ts +9 -0
- package/build/ts/surfaces/admin/components/TableHeader.d.ts +9 -0
- package/build/ts/surfaces/admin/components/TableHeaderRow.d.ts +8 -0
- package/build/ts/surfaces/admin/components/TableRow.d.ts +8 -0
- package/build/ts/surfaces/admin/components/Text.d.ts +19 -0
- package/build/ts/surfaces/admin/components/TextArea.d.ts +12 -0
- package/build/ts/surfaces/admin/components/TextField.d.ts +13 -0
- package/build/ts/surfaces/admin/components/Thumbnail.d.ts +9 -0
- package/build/ts/surfaces/admin/components/Tooltip.d.ts +11 -0
- package/build/ts/surfaces/admin/components/URLField.d.ts +12 -0
- package/build/ts/surfaces/admin/components/UnorderedList.d.ts +14 -0
- package/build/ts/surfaces/admin/components/shared.d.ts +267 -0
- package/build/ts/surfaces/admin/extension-targets.d.ts +8 -1
- package/build/ts/surfaces/admin/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/admin/targets/admin.app.intent.render.d.ts +61 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/format-suggestion.d.ts +2 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/format-suggestion.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts +3 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts +1 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/address-autocomplete/suggest.d.ts +2 -0
- package/build/ts/surfaces/checkout/api/address-autocomplete/suggest.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts +1 -0
- package/build/ts/surfaces/checkout/api/announcement/announcement.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts +5 -1
- package/build/ts/surfaces/checkout/api/cart-line/cart-line-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts +258 -122
- package/build/ts/surfaces/checkout/api/checkout/checkout.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/docs.d.ts +33 -6
- package/build/ts/surfaces/checkout/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts +12 -5
- package/build/ts/surfaces/checkout/api/order-confirmation/order-confirmation.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts +7 -0
- package/build/ts/surfaces/checkout/api/payment/payment-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts +3 -2
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts +4 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-location-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts +4 -1
- package/build/ts/surfaces/checkout/api/pickup/pickup-point-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts +7 -0
- package/build/ts/surfaces/checkout/api/redeemable/redeemable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shared.d.ts +79 -31
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts +6 -4
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-item.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts +18 -12
- package/build/ts/surfaces/checkout/api/shipping/shipping-option-list.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +659 -425
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/components/Abbreviation.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Announcement.d.ts +38 -9
- package/build/ts/surfaces/checkout/components/Badge.d.ts +46 -3
- package/build/ts/surfaces/checkout/components/Banner.d.ts +64 -9
- package/build/ts/surfaces/checkout/components/Box.d.ts +52 -0
- package/build/ts/surfaces/checkout/components/Button.d.ts +16 -3
- package/build/ts/surfaces/checkout/components/Chat.d.ts +20 -0
- package/build/ts/surfaces/checkout/components/Checkbox.d.ts +17 -2
- package/build/ts/surfaces/checkout/components/Chip.d.ts +8 -0
- package/build/ts/surfaces/checkout/components/Choice.d.ts +8 -0
- package/build/ts/surfaces/checkout/components/ChoiceList.d.ts +17 -2
- package/build/ts/surfaces/checkout/components/Clickable.d.ts +37 -7
- package/build/ts/surfaces/checkout/components/ClickableChip.d.ts +23 -5
- package/build/ts/surfaces/checkout/components/ClipboardItem.d.ts +16 -2
- package/build/ts/surfaces/checkout/components/ConsentCheckbox.d.ts +17 -2
- package/build/ts/surfaces/checkout/components/ConsentPhoneField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/DateField.d.ts +31 -6
- package/build/ts/surfaces/checkout/components/DatePicker.d.ts +28 -5
- package/build/ts/surfaces/checkout/components/Details.d.ts +14 -0
- package/build/ts/surfaces/checkout/components/Divider.d.ts +1 -0
- package/build/ts/surfaces/checkout/components/DropZone.d.ts +22 -3
- package/build/ts/surfaces/checkout/components/EmailField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/Form.d.ts +16 -1
- package/build/ts/surfaces/checkout/components/Grid.d.ts +139 -0
- package/build/ts/surfaces/checkout/components/GridItem.d.ts +57 -0
- package/build/ts/surfaces/checkout/components/Heading.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Icon.d.ts +49 -4
- package/build/ts/surfaces/checkout/components/Image.d.ts +43 -1
- package/build/ts/surfaces/checkout/components/Link.d.ts +16 -3
- package/build/ts/surfaces/checkout/components/ListItem.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Map.d.ts +68 -6
- package/build/ts/surfaces/checkout/components/MapMarker.d.ts +39 -8
- package/build/ts/surfaces/checkout/components/Modal.d.ts +52 -8
- package/build/ts/surfaces/checkout/components/MoneyField.d.ts +23 -8
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/Option.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/OrderedList.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Paragraph.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/PasswordField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/PaymentIcon.d.ts +17 -1
- package/build/ts/surfaces/checkout/components/PhoneField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/Popover.d.ts +39 -22
- package/build/ts/surfaces/checkout/components/PressButton.d.ts +20 -6
- package/build/ts/surfaces/checkout/components/ProductThumbnail.d.ts +26 -1
- package/build/ts/surfaces/checkout/components/Progress.d.ts +29 -0
- package/build/ts/surfaces/checkout/components/QRCode.d.ts +28 -3
- package/build/ts/surfaces/checkout/components/QueryContainer.d.ts +1 -0
- package/build/ts/surfaces/checkout/components/ScrollBox.d.ts +57 -0
- package/build/ts/surfaces/checkout/components/Section.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Select.d.ts +21 -6
- package/build/ts/surfaces/checkout/components/Sheet.d.ts +40 -13
- package/build/ts/surfaces/checkout/components/SkeletonParagraph.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Spinner.d.ts +18 -0
- package/build/ts/surfaces/checkout/components/Stack.d.ts +112 -0
- package/build/ts/surfaces/checkout/components/Summary.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Switch.d.ts +17 -2
- package/build/ts/surfaces/checkout/components/Text.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/TextArea.d.ts +23 -8
- package/build/ts/surfaces/checkout/components/TextField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/Time.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Tooltip.d.ts +21 -2
- package/build/ts/surfaces/checkout/components/UnorderedList.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/UrlField.d.ts +29 -10
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +616 -605
- package/build/ts/surfaces/checkout/components/components.d.ts +568 -288
- package/build/ts/surfaces/checkout/extension-targets.d.ts +13 -0
- package/build/ts/surfaces/checkout/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/globals.d.ts +1 -0
- package/build/ts/surfaces/checkout/globals.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/api.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/api.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/app-metafields.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/app-metafields.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/attributes.d.ts +3 -0
- package/build/ts/surfaces/checkout/preact/attributes.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/billing-address.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/billing-address.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/buyer-identity.d.ts +4 -0
- package/build/ts/surfaces/checkout/preact/buyer-identity.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/buyer-journey.d.ts +5 -0
- package/build/ts/surfaces/checkout/preact/buyer-journey.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/capabilities.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/capabilities.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/cart-line-target.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/cart-line-target.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/cart-lines.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/cart-lines.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/checkout-settings.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/checkout-settings.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/checkout-token.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/checkout-token.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/cost.d.ts +4 -0
- package/build/ts/surfaces/checkout/preact/cost.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/country.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/country.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/currency.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/currency.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/customer-privacy.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/customer-privacy.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/delivery-group-list-target.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/delivery-group-list-target.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/delivery-group-target.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/delivery-group-target.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/delivery-group.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/delivery-group.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/delivery-groups.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/delivery-groups.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/delivery-selection-groups.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/delivery-selection-groups.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/discounts.d.ts +3 -0
- package/build/ts/surfaces/checkout/preact/discounts.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/extension-editor.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/extension-editor.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/extension-language.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/extension-language.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/extension.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/extension.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/gift-cards.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/gift-cards.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/instructions.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/instructions.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/language.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/language.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/localized-fields.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/localized-fields.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/market.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/market.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/metafields.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/metafields.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/note.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/note.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/payment-method.d.ts +3 -0
- package/build/ts/surfaces/checkout/preact/payment-method.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/payment-options.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/payment-options.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/pickup-location-option-target.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/pickup-location-option-target.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/redeemable.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/redeemable.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/session-token.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/session-token.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/settings.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/settings.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/shipping-address.d.ts +2 -0
- package/build/ts/surfaces/checkout/preact/shipping-address.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/shipping-option-target.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/shipping-option-target.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/shop.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/shop.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/storage.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/storage.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/subscription.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/subscription.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/target.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/target.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/timezone.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/timezone.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/preact/translate.d.ts +1 -0
- package/build/ts/surfaces/checkout/preact/translate.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/shared.d.ts +11 -19
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/style.d.ts +1 -0
- package/build/ts/surfaces/checkout/style/style.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/style/types.d.ts +20 -8
- package/build/ts/surfaces/checkout/style/types.d.ts.map +1 -1
- package/build/ts/surfaces/checkout/targets/purchase.cart-line-item.line-components.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.actions.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.block.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-item.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.cart-line-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.chat.render.d.ts +2 -1
- package/build/ts/surfaces/checkout/targets/purchase.checkout.contact.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.delivery-address.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.footer.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.gift-card.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.header.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-method-list.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.action-required.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.details.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.payment-option-item.hosted-fields.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-list.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-location-option-item.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.pickup-point-list.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.reductions.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.details.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-item.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.checkout.shipping-option-list.render-before.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.announcement.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.block.render.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-item.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.cart-line-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.chat.render.d.ts +2 -1
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.customer-information.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.footer.render-after.d.ts +1 -0
- package/build/ts/surfaces/checkout/targets/purchase.thank-you.header.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts +3 -0
- package/build/ts/surfaces/customer-account/api/cart-line/cart-line-item.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/docs.d.ts +231 -3
- package/build/ts/surfaces/customer-account/api/docs.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts +454 -295
- package/build/ts/surfaces/customer-account/api/order-status/order-status.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/shared.d.ts +209 -137
- package/build/ts/surfaces/customer-account/api/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts +84 -68
- package/build/ts/surfaces/customer-account/api/standard-api/standard-api.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/Abbreviation.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Announcement.d.ts +38 -9
- package/build/ts/surfaces/customer-account/components/Avatar.d.ts +43 -15
- package/build/ts/surfaces/customer-account/components/Badge.d.ts +46 -3
- package/build/ts/surfaces/customer-account/components/Banner.d.ts +64 -9
- package/build/ts/surfaces/customer-account/components/Box.d.ts +52 -0
- package/build/ts/surfaces/customer-account/components/Button.d.ts +16 -3
- package/build/ts/surfaces/customer-account/components/ButtonGroup.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/Chat.d.ts +20 -0
- package/build/ts/surfaces/customer-account/components/Checkbox.d.ts +17 -2
- package/build/ts/surfaces/customer-account/components/Chip.d.ts +8 -0
- package/build/ts/surfaces/customer-account/components/Choice.d.ts +8 -0
- package/build/ts/surfaces/customer-account/components/ChoiceList.d.ts +17 -2
- package/build/ts/surfaces/customer-account/components/Clickable.d.ts +37 -7
- package/build/ts/surfaces/customer-account/components/ClickableChip.d.ts +23 -5
- package/build/ts/surfaces/customer-account/components/ClipboardItem.d.ts +16 -2
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox.d.ts +17 -2
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/DateField.d.ts +31 -6
- package/build/ts/surfaces/customer-account/components/DatePicker.d.ts +28 -5
- package/build/ts/surfaces/customer-account/components/Details.d.ts +14 -0
- package/build/ts/surfaces/customer-account/components/Divider.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/DropZone.d.ts +22 -3
- package/build/ts/surfaces/customer-account/components/EmailField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/Form.d.ts +16 -1
- package/build/ts/surfaces/customer-account/components/Grid.d.ts +139 -0
- package/build/ts/surfaces/customer-account/components/GridItem.d.ts +57 -0
- package/build/ts/surfaces/customer-account/components/Heading.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Icon.d.ts +49 -4
- package/build/ts/surfaces/customer-account/components/Image.d.ts +43 -1
- package/build/ts/surfaces/customer-account/components/ImageGroup.d.ts +7 -2
- package/build/ts/surfaces/customer-account/components/Link.d.ts +16 -3
- package/build/ts/surfaces/customer-account/components/ListItem.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Map.d.ts +68 -6
- package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +39 -8
- package/build/ts/surfaces/customer-account/components/Menu.d.ts +1 -1
- package/build/ts/surfaces/customer-account/components/Modal.d.ts +52 -8
- package/build/ts/surfaces/customer-account/components/MoneyField.d.ts +23 -8
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/Option.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/OrderedList.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Page.d.ts +5 -5
- package/build/ts/surfaces/customer-account/components/Paragraph.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/PaymentIcon.d.ts +17 -1
- package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/Popover.d.ts +39 -22
- package/build/ts/surfaces/customer-account/components/PressButton.d.ts +20 -6
- package/build/ts/surfaces/customer-account/components/ProductThumbnail.d.ts +26 -1
- package/build/ts/surfaces/customer-account/components/Progress.d.ts +29 -0
- package/build/ts/surfaces/customer-account/components/QRCode.d.ts +28 -3
- package/build/ts/surfaces/customer-account/components/QueryContainer.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/ScrollBox.d.ts +57 -0
- package/build/ts/surfaces/customer-account/components/Section.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Select.d.ts +21 -6
- package/build/ts/surfaces/customer-account/components/Sheet.d.ts +40 -13
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Spinner.d.ts +18 -0
- package/build/ts/surfaces/customer-account/components/Stack.d.ts +112 -0
- package/build/ts/surfaces/customer-account/components/Summary.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Switch.d.ts +17 -2
- package/build/ts/surfaces/customer-account/components/Text.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/TextArea.d.ts +23 -8
- package/build/ts/surfaces/customer-account/components/TextField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/Time.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Tooltip.d.ts +21 -2
- package/build/ts/surfaces/customer-account/components/UnorderedList.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/UrlField.d.ts +29 -10
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +616 -605
- package/build/ts/surfaces/customer-account/components/components.d.ts +568 -288
- package/build/ts/surfaces/customer-account/components/shared.d.ts +23 -2
- package/build/ts/surfaces/customer-account/components/shared.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/components/shared.ts +23 -5
- package/build/ts/surfaces/customer-account/extension-targets.d.ts +8 -0
- package/build/ts/surfaces/customer-account/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/customer-account/targets/customer-account.footer.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.announcement.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-index.block.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.announcement.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.block.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-item.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.cart-line-list.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.customer-information.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.fulfillment-details.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.payment-details.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.return-details.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order-status.unfulfilled-items.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.menu-item.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.action.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.order.page.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.page.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.addresses.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.announcement.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.block.render.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-details.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-addresses.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-payment.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.company-location-staff.render-after.d.ts +1 -0
- package/build/ts/surfaces/customer-account/targets/customer-account.profile.payment.render-after.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/api/action-api/action-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/api/action-target-api/action-target-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/camera-api/camera-api.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/api/camera-api/camera-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/api/cart-api/cart-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cash-drawer-api/cash-drawer-api.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/api/cash-drawer-api/cash-drawer-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/api/connectivity-api/connectivity-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/customer-api/customer-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/device-api/device-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/draft-order-api/draft-order-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/locale-api/locale-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts +9 -0
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/api/order-api/order-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/pin-pad-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/api/print-api/print-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/product-api/product-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts +10 -0
- package/build/ts/surfaces/point-of-sale/api/product-search-api/product-search-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts +12 -1
- package/build/ts/surfaces/point-of-sale/api/scanner-api/scanner-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/session-api/session-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/api/storage-api/storage-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/api/toast-api/toast-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/Badge.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/Banner.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Box.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Button.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Choice.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/ChoiceList.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Clickable.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/DateField.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/DatePicker.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/DateSpinner.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Divider.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/EmailField.d.ts +8 -0
- package/build/ts/surfaces/point-of-sale/components/Embed.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/EmptyState.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Heading.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/Icon.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Image.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/Link.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Modal.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/NumberField.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Page.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/PosBlock.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/QrCode.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/ScrollBox.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/SearchField.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Section.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Spinner.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Stack.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Switch.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Tab.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/TabList.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/TabPanel.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/Tabs.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Text.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/components/TextArea.d.ts +8 -0
- package/build/ts/surfaces/point-of-sale/components/TextField.d.ts +7 -0
- package/build/ts/surfaces/point-of-sale/components/Tile.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/TimeField.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/TimePicker.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/components/components-shared.d.ts +135 -0
- package/build/ts/surfaces/point-of-sale/components/targets/ActionExtensionComponents.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/targets/ActionExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/BasicComponents.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/targets/BasicComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/targets/BlockExtensionComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/targets/ReceiptComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/SmartGridComponents.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/targets/SmartGridComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/components/targets/StandardComponents.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/event/data/BaseApi.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts +3 -2
- package/build/ts/surfaces/point-of-sale/event/data/BaseData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/event/data/CartUpdateEventData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/CashTrackingSessionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/event/data/ExchangeTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/event/data/ReprintReceiptData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/event/data/ReturnTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/event/data/SaleTransactionData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/event/data/TransactionCompleteData.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/event/output/BaseOutput.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +18 -0
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/base-transaction-complete.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts +13 -0
- package/build/ts/surfaces/point-of-sale/types/cart.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/country-code.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/country-code.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/device.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/device.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/direct-api-request-body.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/discount-allocation.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/money.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/types/money.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/multiple-resource-result.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/order.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/types/order.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/paginated-result.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/payment.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/types/payment.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/types/pin-pad.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/product.d.ts +5 -0
- package/build/ts/surfaces/point-of-sale/types/product.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/session.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/session.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts +3 -0
- package/build/ts/surfaces/point-of-sale/types/shipping-line.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/storage.d.ts +4 -0
- package/build/ts/surfaces/point-of-sale/types/storage.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/tax-line.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/types/transaction-type.d.ts.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/shared.ts +32 -12
- package/src/surfaces/admin/api/action/action.ts +1 -0
- package/src/surfaces/admin/api/block/block.ts +2 -0
- package/src/surfaces/admin/api/checkout-rules/launch-options.ts +7 -3
- package/src/surfaces/admin/api/checkout-rules/metafields.ts +13 -6
- package/src/surfaces/admin/api/checkout-rules/validation-settings.ts +1 -0
- package/src/surfaces/admin/api/customer-segment-template/customer-segment-template.ts +3 -0
- package/src/surfaces/admin/api/discount-function-settings/discount-function-settings.ts +1 -0
- package/src/surfaces/admin/api/discount-function-settings/launch-options.ts +7 -2
- package/src/surfaces/admin/api/discount-function-settings/metafields.ts +13 -6
- package/src/surfaces/admin/api/intents/intent-render.ts +26 -0
- package/src/surfaces/admin/api/intents/intents.ts +49 -8
- package/src/surfaces/admin/api/order-routing-rule/data.ts +5 -2
- package/src/surfaces/admin/api/order-routing-rule/metafields.ts +8 -3
- package/src/surfaces/admin/api/order-routing-rule/order-routing-rule.ts +1 -0
- package/src/surfaces/admin/api/picker/picker.ts +15 -6
- package/src/surfaces/admin/api/print-action/print-action.ts +1 -0
- package/src/surfaces/admin/api/product-configuration/product-details-configuration.ts +4 -1
- package/src/surfaces/admin/api/product-configuration/product-variant-details-configuration.ts +4 -1
- package/src/surfaces/admin/api/purchase-options-card-action.ts +1 -0
- package/src/surfaces/admin/api/resource-picker/resource-picker.ts +36 -17
- package/src/surfaces/admin/api/shared.ts +2 -0
- package/src/surfaces/admin/api/standard/standard-rendering.ts +3 -0
- package/src/surfaces/admin/api/standard/standard.ts +4 -1
- package/src/surfaces/admin/api/standard/storage.ts +4 -0
- package/src/surfaces/admin/api.ts +1 -0
- package/src/surfaces/admin/components/AdminAction.d.ts +6 -0
- package/src/surfaces/admin/components/AdminBlock.d.ts +6 -0
- package/src/surfaces/admin/components/AdminPrintAction.d.ts +6 -0
- package/src/surfaces/admin/components/Avatar.d.ts +9 -0
- package/src/surfaces/admin/components/Badge.d.ts +9 -0
- package/src/surfaces/admin/components/Banner.d.ts +11 -0
- package/src/surfaces/admin/components/Box.d.ts +14 -0
- package/src/surfaces/admin/components/Button.d.ts +14 -0
- package/src/surfaces/admin/components/ButtonGroup.d.ts +8 -0
- package/src/surfaces/admin/components/Checkbox.d.ts +12 -1
- package/src/surfaces/admin/components/Chip.d.ts +4 -2
- package/src/surfaces/admin/components/Choice.d.ts +10 -2
- package/src/surfaces/admin/components/ChoiceList.d.ts +12 -2
- package/src/surfaces/admin/components/Clickable.d.ts +16 -4
- package/src/surfaces/admin/components/ClickableChip.d.ts +11 -0
- package/src/surfaces/admin/components/ColorField.d.ts +12 -0
- package/src/surfaces/admin/components/ColorPicker.d.ts +9 -0
- package/src/surfaces/admin/components/DateField.d.ts +11 -0
- package/src/surfaces/admin/components/DatePicker.d.ts +10 -1
- package/src/surfaces/admin/components/Divider.d.ts +7 -0
- package/src/surfaces/admin/components/DropZone.d.ts +8 -4
- package/src/surfaces/admin/components/EmailField.d.ts +12 -0
- package/src/surfaces/admin/components/Form.d.ts +10 -0
- package/src/surfaces/admin/components/FunctionSettings.d.ts +12 -0
- package/src/surfaces/admin/components/Grid.d.ts +16 -0
- package/src/surfaces/admin/components/GridItem.d.ts +15 -0
- package/src/surfaces/admin/components/Heading.d.ts +8 -0
- package/src/surfaces/admin/components/Icon.d.ts +6 -3
- package/src/surfaces/admin/components/Image.d.ts +15 -0
- package/src/surfaces/admin/components/Link.d.ts +13 -3
- package/src/surfaces/admin/components/ListItem.d.ts +8 -0
- package/src/surfaces/admin/components/Menu.d.ts +11 -0
- package/src/surfaces/admin/components/Modal.d.ts +8 -4
- package/src/surfaces/admin/components/MoneyField.d.ts +13 -0
- package/src/surfaces/admin/components/NumberField.d.ts +12 -0
- package/src/surfaces/admin/components/Option.d.ts +10 -2
- package/src/surfaces/admin/components/OptionGroup.d.ts +10 -2
- package/src/surfaces/admin/components/OrderedList.d.ts +8 -0
- package/src/surfaces/admin/components/Page.d.ts +4 -2
- package/src/surfaces/admin/components/Paragraph.d.ts +8 -0
- package/src/surfaces/admin/components/PasswordField.d.ts +12 -0
- package/src/surfaces/admin/components/QueryContainer.d.ts +8 -0
- package/src/surfaces/admin/components/SearchField.d.ts +13 -1
- package/src/surfaces/admin/components/Section.d.ts +9 -0
- package/src/surfaces/admin/components/Select.d.ts +14 -2
- package/src/surfaces/admin/components/Spinner.d.ts +7 -0
- package/src/surfaces/admin/components/Stack.d.ts +16 -0
- package/src/surfaces/admin/components/Switch.d.ts +12 -1
- package/src/surfaces/admin/components/Table.d.ts +15 -0
- package/src/surfaces/admin/components/TableBody.d.ts +8 -0
- package/src/surfaces/admin/components/TableCell.d.ts +9 -0
- package/src/surfaces/admin/components/TableHeader.d.ts +9 -0
- package/src/surfaces/admin/components/TableHeaderRow.d.ts +8 -0
- package/src/surfaces/admin/components/TableRow.d.ts +8 -0
- package/src/surfaces/admin/components/Text.d.ts +19 -0
- package/src/surfaces/admin/components/TextArea.d.ts +12 -0
- package/src/surfaces/admin/components/TextField.d.ts +13 -0
- package/src/surfaces/admin/components/Thumbnail.d.ts +9 -0
- package/src/surfaces/admin/components/Tooltip.d.ts +11 -0
- package/src/surfaces/admin/components/URLField.d.ts +12 -0
- package/src/surfaces/admin/components/UnorderedList.d.ts +14 -0
- package/src/surfaces/admin/components/shared.d.ts +267 -0
- package/src/surfaces/admin/components.d.ts +700 -0
- package/src/surfaces/admin/extension-targets.ts +12 -0
- package/src/surfaces/checkout/api/address-autocomplete/format-suggestion.ts +2 -0
- package/src/surfaces/checkout/api/address-autocomplete/shared.ts +3 -0
- package/src/surfaces/checkout/api/address-autocomplete/standard.ts +1 -0
- package/src/surfaces/checkout/api/address-autocomplete/suggest.ts +2 -0
- package/src/surfaces/checkout/api/announcement/announcement.ts +1 -0
- package/src/surfaces/checkout/api/cart-line/cart-line-item.ts +5 -1
- package/src/surfaces/checkout/api/checkout/checkout.ts +258 -122
- package/src/surfaces/checkout/api/docs.ts +34 -1
- package/src/surfaces/checkout/api/order-confirmation/order-confirmation.ts +12 -5
- package/src/surfaces/checkout/api/payment/payment-option-item.ts +7 -0
- package/src/surfaces/checkout/api/pickup/pickup-location-item.ts +3 -2
- package/src/surfaces/checkout/api/pickup/pickup-location-list.ts +4 -1
- package/src/surfaces/checkout/api/pickup/pickup-point-list.ts +4 -1
- package/src/surfaces/checkout/api/redeemable/redeemable.ts +7 -0
- package/src/surfaces/checkout/api/shared.ts +79 -31
- package/src/surfaces/checkout/api/shipping/shipping-option-item.ts +6 -4
- package/src/surfaces/checkout/api/shipping/shipping-option-list.ts +18 -12
- package/src/surfaces/checkout/api/standard/standard.ts +661 -425
- package/src/surfaces/checkout/components/Abbreviation.d.ts +4 -0
- package/src/surfaces/checkout/components/Announcement.d.ts +38 -9
- package/src/surfaces/checkout/components/Badge.d.ts +46 -3
- package/src/surfaces/checkout/components/Banner.d.ts +64 -9
- package/src/surfaces/checkout/components/Box.d.ts +52 -0
- package/src/surfaces/checkout/components/Button.d.ts +16 -3
- package/src/surfaces/checkout/components/Chat.d.ts +20 -0
- package/src/surfaces/checkout/components/Checkbox.d.ts +17 -2
- package/src/surfaces/checkout/components/Chip.d.ts +8 -0
- package/src/surfaces/checkout/components/Choice.d.ts +8 -0
- package/src/surfaces/checkout/components/ChoiceList.d.ts +17 -2
- package/src/surfaces/checkout/components/Clickable.d.ts +37 -7
- package/src/surfaces/checkout/components/ClickableChip.d.ts +23 -5
- package/src/surfaces/checkout/components/ClipboardItem.d.ts +16 -2
- package/src/surfaces/checkout/components/ConsentCheckbox.d.ts +17 -2
- package/src/surfaces/checkout/components/ConsentPhoneField.d.ts +29 -10
- package/src/surfaces/checkout/components/DateField.d.ts +31 -6
- package/src/surfaces/checkout/components/DatePicker.d.ts +28 -5
- package/src/surfaces/checkout/components/Details.d.ts +14 -0
- package/src/surfaces/checkout/components/Divider.d.ts +1 -0
- package/src/surfaces/checkout/components/DropZone.d.ts +22 -3
- package/src/surfaces/checkout/components/EmailField.d.ts +29 -10
- package/src/surfaces/checkout/components/Form.d.ts +16 -1
- package/src/surfaces/checkout/components/Grid.d.ts +139 -0
- package/src/surfaces/checkout/components/GridItem.d.ts +57 -0
- package/src/surfaces/checkout/components/Heading.d.ts +4 -0
- package/src/surfaces/checkout/components/Icon.d.ts +49 -4
- package/src/surfaces/checkout/components/Image.d.ts +43 -1
- package/src/surfaces/checkout/components/Link.d.ts +16 -3
- package/src/surfaces/checkout/components/ListItem.d.ts +4 -0
- package/src/surfaces/checkout/components/Map.d.ts +68 -6
- package/src/surfaces/checkout/components/MapMarker.d.ts +39 -8
- package/src/surfaces/checkout/components/Modal.d.ts +52 -8
- package/src/surfaces/checkout/components/MoneyField.d.ts +23 -8
- package/src/surfaces/checkout/components/NumberField.d.ts +29 -10
- package/src/surfaces/checkout/components/Option.d.ts +4 -0
- package/src/surfaces/checkout/components/OrderedList.d.ts +4 -0
- package/src/surfaces/checkout/components/Paragraph.d.ts +4 -0
- package/src/surfaces/checkout/components/PasswordField.d.ts +29 -10
- package/src/surfaces/checkout/components/PaymentIcon.d.ts +17 -1
- package/src/surfaces/checkout/components/PhoneField.d.ts +29 -10
- package/src/surfaces/checkout/components/Popover.d.ts +39 -22
- package/src/surfaces/checkout/components/PressButton.d.ts +20 -6
- package/src/surfaces/checkout/components/ProductThumbnail.d.ts +26 -1
- package/src/surfaces/checkout/components/Progress.d.ts +29 -0
- package/src/surfaces/checkout/components/QRCode.d.ts +28 -3
- package/src/surfaces/checkout/components/QueryContainer.d.ts +1 -0
- package/src/surfaces/checkout/components/ScrollBox.d.ts +57 -0
- package/src/surfaces/checkout/components/Section.d.ts +4 -0
- package/src/surfaces/checkout/components/Select.d.ts +21 -6
- package/src/surfaces/checkout/components/Sheet.d.ts +40 -13
- package/src/surfaces/checkout/components/SkeletonParagraph.d.ts +4 -0
- package/src/surfaces/checkout/components/Spinner.d.ts +18 -0
- package/src/surfaces/checkout/components/Stack.d.ts +112 -0
- package/src/surfaces/checkout/components/Summary.d.ts +4 -0
- package/src/surfaces/checkout/components/Switch.d.ts +17 -2
- package/src/surfaces/checkout/components/Text.d.ts +4 -0
- package/src/surfaces/checkout/components/TextArea.d.ts +23 -8
- package/src/surfaces/checkout/components/TextField.d.ts +29 -10
- package/src/surfaces/checkout/components/Time.d.ts +4 -0
- package/src/surfaces/checkout/components/Tooltip.d.ts +21 -2
- package/src/surfaces/checkout/components/UnorderedList.d.ts +4 -0
- package/src/surfaces/checkout/components/UrlField.d.ts +29 -10
- package/src/surfaces/checkout/components/components-shared.d.ts +616 -605
- package/src/surfaces/checkout/components/components.d.ts +568 -288
- package/src/surfaces/checkout/extension-targets.ts +13 -0
- package/src/surfaces/checkout/globals.ts +1 -0
- package/src/surfaces/checkout/preact/api.ts +2 -0
- package/src/surfaces/checkout/preact/app-metafields.ts +1 -0
- package/src/surfaces/checkout/preact/attributes.ts +3 -0
- package/src/surfaces/checkout/preact/billing-address.ts +1 -0
- package/src/surfaces/checkout/preact/buyer-identity.ts +4 -0
- package/src/surfaces/checkout/preact/buyer-journey.ts +5 -0
- package/src/surfaces/checkout/preact/capabilities.ts +2 -0
- package/src/surfaces/checkout/preact/cart-line-target.ts +1 -0
- package/src/surfaces/checkout/preact/cart-lines.ts +2 -0
- package/src/surfaces/checkout/preact/checkout-settings.ts +1 -0
- package/src/surfaces/checkout/preact/checkout-token.ts +1 -0
- package/src/surfaces/checkout/preact/cost.ts +4 -0
- package/src/surfaces/checkout/preact/country.ts +1 -0
- package/src/surfaces/checkout/preact/currency.ts +1 -0
- package/src/surfaces/checkout/preact/customer-privacy.ts +1 -0
- package/src/surfaces/checkout/preact/delivery-group-list-target.ts +1 -0
- package/src/surfaces/checkout/preact/delivery-group-target.ts +1 -0
- package/src/surfaces/checkout/preact/delivery-group.ts +1 -0
- package/src/surfaces/checkout/preact/delivery-groups.ts +1 -0
- package/src/surfaces/checkout/preact/delivery-selection-groups.ts +1 -0
- package/src/surfaces/checkout/preact/discounts.ts +3 -0
- package/src/surfaces/checkout/preact/extension-editor.ts +1 -0
- package/src/surfaces/checkout/preact/extension-language.ts +1 -0
- package/src/surfaces/checkout/preact/extension.ts +2 -0
- package/src/surfaces/checkout/preact/gift-cards.ts +2 -0
- package/src/surfaces/checkout/preact/instructions.ts +1 -0
- package/src/surfaces/checkout/preact/language.ts +1 -0
- package/src/surfaces/checkout/preact/localized-fields.ts +2 -0
- package/src/surfaces/checkout/preact/market.ts +1 -0
- package/src/surfaces/checkout/preact/metafields.ts +1 -0
- package/src/surfaces/checkout/preact/note.ts +2 -0
- package/src/surfaces/checkout/preact/payment-method.ts +3 -0
- package/src/surfaces/checkout/preact/payment-options.ts +2 -0
- package/src/surfaces/checkout/preact/pickup-location-option-target.ts +1 -0
- package/src/surfaces/checkout/preact/redeemable.ts +1 -0
- package/src/surfaces/checkout/preact/session-token.ts +1 -0
- package/src/surfaces/checkout/preact/settings.ts +1 -0
- package/src/surfaces/checkout/preact/shipping-address.ts +2 -0
- package/src/surfaces/checkout/preact/shipping-option-target.ts +1 -0
- package/src/surfaces/checkout/preact/shop.ts +1 -0
- package/src/surfaces/checkout/preact/storage.ts +1 -0
- package/src/surfaces/checkout/preact/subscription.ts +1 -0
- package/src/surfaces/checkout/preact/target.ts +1 -0
- package/src/surfaces/checkout/preact/timezone.ts +1 -0
- package/src/surfaces/checkout/preact/translate.ts +1 -0
- package/src/surfaces/checkout/shared.ts +11 -21
- package/src/surfaces/checkout/style/style.ts +1 -0
- package/src/surfaces/checkout/style/types.ts +20 -7
- package/src/surfaces/customer-account/api/cart-line/cart-line-item.ts +3 -0
- package/src/surfaces/customer-account/api/docs.ts +236 -5
- package/src/surfaces/customer-account/api/order-status/order-status.ts +461 -295
- package/src/surfaces/customer-account/api/shared.ts +210 -137
- package/src/surfaces/customer-account/api/standard-api/standard-api.ts +84 -68
- package/src/surfaces/customer-account/components/Avatar.d.ts +43 -15
- package/src/surfaces/customer-account/components/ButtonGroup.d.ts +3 -3
- package/src/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/src/surfaces/customer-account/components/ImageGroup.d.ts +7 -2
- package/src/surfaces/customer-account/components/Menu.d.ts +1 -1
- package/src/surfaces/customer-account/components/Page.d.ts +5 -5
- package/src/surfaces/customer-account/components/Section.d.ts +3 -7
- package/src/surfaces/customer-account/components/shared.ts +23 -5
- package/src/surfaces/customer-account/components.d.ts +93 -0
- package/src/surfaces/customer-account/extension-targets.ts +8 -0
- package/src/surfaces/point-of-sale/api/action-api/action-api.ts +4 -0
- package/src/surfaces/point-of-sale/api/action-target-api/action-target-api.ts +3 -0
- package/src/surfaces/point-of-sale/api/camera-api/camera-api.ts +4 -0
- package/src/surfaces/point-of-sale/api/cart-api/cart-api.ts +7 -0
- package/src/surfaces/point-of-sale/api/cart-line-item-api/cart-line-item-api.ts +1 -0
- package/src/surfaces/point-of-sale/api/cash-drawer-api/cash-drawer-api.ts +2 -0
- package/src/surfaces/point-of-sale/api/connectivity-api/connectivity-api.ts +9 -0
- package/src/surfaces/point-of-sale/api/customer-api/customer-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/device-api/device-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/draft-order-api/draft-order-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/locale-api/locale-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/navigation-api/navigation-api.ts +9 -0
- package/src/surfaces/point-of-sale/api/order-api/order-api.ts +2 -0
- package/src/surfaces/point-of-sale/api/pin-pad-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/print-api/print-api.ts +2 -0
- package/src/surfaces/point-of-sale/api/product-api/product-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/product-search-api/product-search-api.ts +10 -0
- package/src/surfaces/point-of-sale/api/scanner-api/scanner-api.ts +12 -1
- package/src/surfaces/point-of-sale/api/session-api/session-api.ts +5 -0
- package/src/surfaces/point-of-sale/api/standard/standard-api.ts +3 -0
- package/src/surfaces/point-of-sale/api/storage-api/storage-api.ts +1 -0
- package/src/surfaces/point-of-sale/api/toast-api/toast-api.ts +5 -0
- package/src/surfaces/point-of-sale/components/Badge.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/Banner.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Box.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Button.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Choice.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/ChoiceList.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Clickable.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/DateField.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/DatePicker.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/DateSpinner.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Divider.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/EmailField.d.ts +8 -0
- package/src/surfaces/point-of-sale/components/Embed.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/EmptyState.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Heading.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/Icon.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Image.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/Link.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Modal.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/NumberField.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Page.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/PosBlock.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/QrCode.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/ScrollBox.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/SearchField.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Section.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Spinner.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Stack.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Switch.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Tab.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/TabList.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/TabPanel.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/Tabs.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Text.d.ts +5 -0
- package/src/surfaces/point-of-sale/components/TextArea.d.ts +8 -0
- package/src/surfaces/point-of-sale/components/TextField.d.ts +7 -0
- package/src/surfaces/point-of-sale/components/Tile.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/TimeField.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/TimePicker.d.ts +6 -0
- package/src/surfaces/point-of-sale/components/components-shared.d.ts +135 -0
- package/src/surfaces/point-of-sale/components/targets/ActionExtensionComponents.ts +3 -0
- package/src/surfaces/point-of-sale/components/targets/BasicComponents.ts +3 -0
- package/src/surfaces/point-of-sale/components/targets/BlockExtensionComponents.ts +3 -0
- package/src/surfaces/point-of-sale/components/targets/ReceiptComponents.ts +3 -0
- package/src/surfaces/point-of-sale/components/targets/SmartGridComponents.ts +3 -0
- package/src/surfaces/point-of-sale/components/targets/StandardComponents.ts +3 -0
- package/src/surfaces/point-of-sale/components.d.ts +286 -0
- package/src/surfaces/point-of-sale/event/data/BaseApi.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/BaseData.ts +7 -2
- package/src/surfaces/point-of-sale/event/data/CartUpdateEventData.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/CashTrackingSessionData.ts +2 -0
- package/src/surfaces/point-of-sale/event/data/ExchangeTransactionData.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/ReprintReceiptData.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/ReturnTransactionData.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/SaleTransactionData.ts +1 -0
- package/src/surfaces/point-of-sale/event/data/TransactionCompleteData.ts +2 -0
- package/src/surfaces/point-of-sale/event/output/BaseOutput.ts +1 -0
- package/src/surfaces/point-of-sale/extension-targets.ts +18 -0
- package/src/surfaces/point-of-sale/types/base-transaction-complete.ts +1 -0
- package/src/surfaces/point-of-sale/types/cart.ts +13 -0
- package/src/surfaces/point-of-sale/types/country-code.ts +1 -0
- package/src/surfaces/point-of-sale/types/device.ts +1 -0
- package/src/surfaces/point-of-sale/types/direct-api-request-body.ts +1 -0
- package/src/surfaces/point-of-sale/types/discount-allocation.ts +1 -0
- package/src/surfaces/point-of-sale/types/money.ts +2 -0
- package/src/surfaces/point-of-sale/types/multiple-resource-result.ts +1 -0
- package/src/surfaces/point-of-sale/types/order.ts +2 -0
- package/src/surfaces/point-of-sale/types/paginated-result.ts +1 -0
- package/src/surfaces/point-of-sale/types/payment.ts +2 -0
- package/src/surfaces/point-of-sale/types/pin-pad.ts +5 -0
- package/src/surfaces/point-of-sale/types/product.ts +5 -0
- package/src/surfaces/point-of-sale/types/session.ts +1 -0
- package/src/surfaces/point-of-sale/types/shipping-line.ts +3 -0
- package/src/surfaces/point-of-sale/types/storage.ts +4 -0
- package/src/surfaces/point-of-sale/types/tax-line.ts +1 -0
- package/src/surfaces/point-of-sale/types/transaction-type.ts +1 -0
|
@@ -12,50 +12,85 @@ import type {ExtensionTarget} from '../../extension-targets';
|
|
|
12
12
|
import {Extension} from '../shared';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* A [metafield](/docs/apps/build/custom-data/metafields) attached to a Shopify resource, such as a product, variant, customer, or the shop. Metafields let merchants and apps store custom data beyond what Shopify provides by default.
|
|
16
|
+
* @publicDocs
|
|
16
17
|
*/
|
|
17
18
|
export interface AppMetafield {
|
|
18
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* The identifier for the metafield within its namespace, such as `'ingredients'` or `'shipping_weight'`.
|
|
21
|
+
*/
|
|
19
22
|
key: string;
|
|
20
23
|
|
|
21
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* The namespace that the metafield belongs to. Namespaces group related metafields and prevent naming collisions between different apps.
|
|
26
|
+
*/
|
|
22
27
|
namespace: string;
|
|
23
28
|
|
|
24
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* The data stored in the metafield. The format depends on the `valueType`: a string for `'string'`, a number for `'integer'` or `'float'`, a boolean for `'boolean'`, or a serialized JSON object for `'json_string'`.
|
|
31
|
+
*/
|
|
25
32
|
value: string | number | boolean;
|
|
26
33
|
|
|
27
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* The data type of the metafield value. Determines how to interpret the `value` field:
|
|
36
|
+
*
|
|
37
|
+
* - `'boolean'`: A `true` or `false` value.
|
|
38
|
+
* - `'float'`: A decimal number.
|
|
39
|
+
* - `'integer'`: A whole number.
|
|
40
|
+
* - `'json_string'`: A serialized JSON object or array.
|
|
41
|
+
* - `'string'`: A plain text value.
|
|
42
|
+
*/
|
|
28
43
|
valueType: 'boolean' | 'float' | 'integer' | 'json_string' | 'string';
|
|
29
44
|
|
|
30
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* The metafield's [content type](/docs/apps/build/custom-data/metafields/list-of-data-types), which provides more specific type information than `valueType`. For example, `'single_line_text_field'`, `'number_integer'`, or `'json'`.
|
|
47
|
+
*/
|
|
31
48
|
type: string;
|
|
32
49
|
}
|
|
33
50
|
|
|
34
51
|
/**
|
|
35
|
-
*
|
|
52
|
+
* A [metafield](/docs/apps/build/custom-data/metafields) attached to the cart. Cart metafields are temporary and only persist for the duration of the checkout session.
|
|
53
|
+
* @publicDocs
|
|
36
54
|
*/
|
|
37
55
|
export interface CartMetafield {
|
|
38
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* The identifier for the metafield within its namespace.
|
|
58
|
+
*/
|
|
39
59
|
key: string;
|
|
40
60
|
|
|
41
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* The namespace that the metafield belongs to. Namespaces group related metafields and prevent naming collisions between different apps.
|
|
63
|
+
*/
|
|
42
64
|
namespace: string;
|
|
43
65
|
|
|
44
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* The string value stored in the cart metafield. Unlike `AppMetafield`, cart metafield values are always strings.
|
|
68
|
+
*/
|
|
45
69
|
value: string;
|
|
46
70
|
|
|
47
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* The metafield's [content type](/docs/apps/build/custom-data/metafields/list-of-data-types), which describes the structure and validation of the value. For example, `'single_line_text_field'` or `'json'`.
|
|
73
|
+
*/
|
|
48
74
|
type: string;
|
|
49
75
|
}
|
|
50
76
|
|
|
51
77
|
/**
|
|
52
|
-
* The metafield
|
|
78
|
+
* The Shopify resource that a metafield is attached to. Each entry identifies a specific resource by its type and globally-unique ID, so your extension can determine where the metafield data originates.
|
|
79
|
+
* @publicDocs
|
|
53
80
|
*/
|
|
54
81
|
export interface AppMetafieldEntryTarget {
|
|
55
82
|
/**
|
|
56
|
-
* The
|
|
83
|
+
* The kind of Shopify resource this metafield belongs to:
|
|
84
|
+
*
|
|
85
|
+
* - `'customer'`: The customer who placed the order.
|
|
86
|
+
* - `'product'`: A product in the merchant's catalog.
|
|
87
|
+
* - `'shop'`: The merchant's shop.
|
|
88
|
+
* - `'variant'`: A specific variant of a product.
|
|
89
|
+
* - `'company'`: A B2B company associated with the order.
|
|
90
|
+
* - `'companyLocation'`: A location belonging to a B2B company.
|
|
91
|
+
* - `'cart'`: The cart associated with the order.
|
|
57
92
|
*
|
|
58
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data) when the type is `customer`, `company
|
|
93
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data) when the type is `customer`, `company`, or `companyLocation`.
|
|
59
94
|
*/
|
|
60
95
|
type:
|
|
61
96
|
| 'customer'
|
|
@@ -67,261 +102,299 @@ export interface AppMetafieldEntryTarget {
|
|
|
67
102
|
| 'cart'
|
|
68
103
|
| 'order';
|
|
69
104
|
|
|
70
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* The globally-unique identifier of the Shopify resource, in [GID](https://shopify.dev/docs/api/usage/gids) format. Use this value to match the metafield to a specific resource in your extension or when querying the GraphQL API.
|
|
107
|
+
*
|
|
108
|
+
* @example 'gid://shopify/Product/123'
|
|
109
|
+
*/
|
|
71
110
|
id: string;
|
|
72
111
|
}
|
|
73
112
|
|
|
74
113
|
/**
|
|
75
|
-
*
|
|
114
|
+
* An entry that pairs a Shopify resource with one of its [metafields](/docs/apps/build/custom-data/metafields). Each entry contains a `target` identifying which resource the metafield belongs to and a `metafield` object with the actual data. Use `appMetafields` on the Order API to access these entries.
|
|
115
|
+
* @publicDocs
|
|
76
116
|
*/
|
|
77
117
|
export interface AppMetafieldEntry {
|
|
78
118
|
/**
|
|
79
|
-
* The
|
|
80
|
-
*
|
|
81
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data) when the type is `customer`, `company` or `companyLocation`.
|
|
82
|
-
*/
|
|
119
|
+
* The Shopify resource that this metafield is attached to, including the resource type (such as `'product'` or `'customer'`) and its globally-unique ID.
|
|
120
|
+
* */
|
|
83
121
|
target: AppMetafieldEntryTarget;
|
|
84
122
|
|
|
85
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* The metafield data, including the namespace, key, value, and content type. Use the `namespace` and `key` together to uniquely identify the metafield within its resource.
|
|
125
|
+
*/
|
|
86
126
|
metafield: AppMetafield;
|
|
87
127
|
}
|
|
88
128
|
|
|
129
|
+
/**
|
|
130
|
+
* @publicDocs
|
|
131
|
+
*/
|
|
89
132
|
export type Version = string;
|
|
90
133
|
|
|
134
|
+
/**
|
|
135
|
+
* @publicDocs
|
|
136
|
+
*/
|
|
91
137
|
export interface Currency {
|
|
92
138
|
/**
|
|
93
|
-
* The
|
|
94
|
-
* @see https://www.iso.org/iso-4217-currency-codes.html
|
|
139
|
+
* The three-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format, such as `'USD'`, `'EUR'`, or `'CAD'`.
|
|
95
140
|
*/
|
|
96
141
|
isoCode: CurrencyCode;
|
|
97
142
|
}
|
|
98
143
|
|
|
144
|
+
/**
|
|
145
|
+
* @publicDocs
|
|
146
|
+
*/
|
|
99
147
|
export interface Market {
|
|
100
148
|
/**
|
|
101
|
-
* A globally-unique identifier for
|
|
149
|
+
* A globally-unique identifier for the market in the format `gid://shopify/Market/<id>`.
|
|
102
150
|
*/
|
|
103
151
|
id: string;
|
|
104
152
|
|
|
105
153
|
/**
|
|
106
|
-
* The human-readable, shop-scoped identifier for the market.
|
|
154
|
+
* The human-readable, shop-scoped identifier for the market, such as `'us'` or `'eu'`. Merchants define these handles when configuring [Shopify Markets](/docs/apps/build/markets).
|
|
107
155
|
*/
|
|
108
156
|
handle: string;
|
|
109
157
|
}
|
|
110
158
|
|
|
159
|
+
/**
|
|
160
|
+
* @publicDocs
|
|
161
|
+
*/
|
|
111
162
|
export interface OrderStatusLocalization {
|
|
112
163
|
/**
|
|
113
|
-
* The currency
|
|
164
|
+
* The currency used to display money amounts on the **Order status** page. Use this value
|
|
165
|
+
* to format prices and totals in the buyer's expected currency.
|
|
114
166
|
*/
|
|
115
167
|
currency: SubscribableSignalLike<Currency>;
|
|
116
168
|
|
|
117
169
|
/**
|
|
118
|
-
* The buyer
|
|
170
|
+
* The buyer's time zone, derived from their browser or account settings. Use this value
|
|
171
|
+
* to format dates and times relative to the buyer's local time.
|
|
119
172
|
*/
|
|
120
173
|
timezone: SubscribableSignalLike<Timezone>;
|
|
121
174
|
|
|
122
175
|
/**
|
|
123
|
-
* The language the buyer sees
|
|
176
|
+
* The language the buyer sees on the **Order status** page. This reflects the language
|
|
177
|
+
* selected by the buyer or determined by their browser settings, and may differ from
|
|
178
|
+
* the languages your extension supports.
|
|
124
179
|
*/
|
|
125
180
|
language: SubscribableSignalLike<Language>;
|
|
126
181
|
|
|
127
182
|
/**
|
|
128
|
-
*
|
|
129
|
-
* If the buyer's
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* only supports translations for 'fr', then the `isoCode` for this
|
|
134
|
-
* language is 'fr'. If your extension does not provide french
|
|
135
|
-
* translations at all, this value is the default locale for your
|
|
136
|
-
* extension (that is, the one matching your .default.json file).
|
|
183
|
+
* The best available language match for your extension based on the buyer's language.
|
|
184
|
+
* If the buyer's language is `fr-CA` but your extension only supports `fr`, this
|
|
185
|
+
* returns `fr`. If your extension doesn't support any variant of the buyer's language,
|
|
186
|
+
* this falls back to your extension's default locale (the `.default.json` translation file).
|
|
187
|
+
* Use this value to load the correct translation file for your extension.
|
|
137
188
|
*/
|
|
138
189
|
extensionLanguage: SubscribableSignalLike<Language>;
|
|
139
190
|
|
|
140
191
|
/**
|
|
141
|
-
* The country
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
192
|
+
* The country associated with the order, carried over from the cart context where it was
|
|
193
|
+
* used to contextualize the storefront experience. Use this value to display region-specific
|
|
194
|
+
* content such as local support information or regional policies. The value is `undefined`
|
|
195
|
+
* if the buyer's country is unknown.
|
|
145
196
|
*/
|
|
146
197
|
country: SubscribableSignalLike<Country | undefined>;
|
|
147
198
|
|
|
148
199
|
/**
|
|
149
|
-
* The [market](
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* buyer changes the country of their shipping address. The value is undefined
|
|
153
|
-
* if unknown.
|
|
200
|
+
* The [market](/docs/apps/build/markets) associated with the order, carried
|
|
201
|
+
* over from the cart context. Markets group countries and regions with shared pricing,
|
|
202
|
+
* languages, and domains. The value is `undefined` if the market is unknown.
|
|
154
203
|
*/
|
|
155
204
|
market: SubscribableSignalLike<Market | undefined>;
|
|
156
205
|
}
|
|
157
206
|
|
|
207
|
+
/**
|
|
208
|
+
* The buyer's authentication status on the **Order status** page:
|
|
209
|
+
*
|
|
210
|
+
* - `'fully_authenticated'`: The buyer has logged in to their customer account.
|
|
211
|
+
* - `'pre_authenticated'`: The buyer accessed the page via a direct link, such as from an order confirmation email, without logging in.
|
|
212
|
+
* @publicDocs
|
|
213
|
+
*/
|
|
158
214
|
export type AuthenticationState = 'fully_authenticated' | 'pre_authenticated';
|
|
159
215
|
|
|
216
|
+
/**
|
|
217
|
+
* @publicDocs
|
|
218
|
+
*/
|
|
160
219
|
export interface OrderStatusApi<Target extends ExtensionTarget> {
|
|
161
220
|
/**
|
|
162
|
-
*
|
|
221
|
+
* The gift cards that were applied to the order. Each gift card includes the last four
|
|
222
|
+
* characters of the code, the amount used for this order, and the remaining balance.
|
|
163
223
|
*/
|
|
164
224
|
appliedGiftCards: SubscribableSignalLike<AppliedGiftCard[]>;
|
|
165
225
|
|
|
166
226
|
/**
|
|
167
|
-
* The metafields requested in the
|
|
168
|
-
* [`shopify.
|
|
169
|
-
* file.
|
|
170
|
-
*
|
|
227
|
+
* The [metafields](/docs/apps/build/custom-data/metafields) requested in the
|
|
228
|
+
* [`shopify.extension.toml`](/docs/api/customer-account-ui-extensions/latest#configuration)
|
|
229
|
+
* file. Metafields are custom data fields that store additional information on Shopify resources
|
|
230
|
+
* such as products, variants, customers, and the shop. These metafields are updated when there's
|
|
231
|
+
* a change in the merchandise items being purchased by the customer.
|
|
171
232
|
*
|
|
172
233
|
* App owned metafields are supported and are returned using the `$app` format. The fully qualified reserved namespace format such as `app--{your-app-id}[--{optional-namespace}]` is not supported. See [app owned metafields](/docs/apps/build/custom-data/ownership#reserved-prefixes) for more information.
|
|
173
234
|
*
|
|
174
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
235
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data) when accessing metafields attached to `customer`, `company`, or `companyLocation` resources.
|
|
175
236
|
*/
|
|
176
237
|
appMetafields: SubscribableSignalLike<AppMetafieldEntry[]>;
|
|
177
238
|
|
|
178
239
|
/**
|
|
179
|
-
*
|
|
240
|
+
* The custom key-value pairs attached to the order by the customer or by other extensions
|
|
241
|
+
* during cart or checkout. These are commonly used for delivery instructions, gift messages,
|
|
242
|
+
* or other information the buyer provides. The value is `undefined` if no attributes were set.
|
|
180
243
|
*/
|
|
181
244
|
attributes: SubscribableSignalLike<Attribute[] | undefined>;
|
|
182
245
|
|
|
183
246
|
/**
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
247
|
+
* The buyer who placed the order, including their customer account, email, phone number, and B2B purchasing company. Use this to personalize the **Order status** page or identify B2B orders.
|
|
187
248
|
*/
|
|
188
249
|
buyerIdentity?: OrderStatusBuyerIdentity;
|
|
189
250
|
|
|
190
251
|
/**
|
|
191
|
-
*
|
|
252
|
+
* The checkout settings that were active when the buyer placed the order, such as
|
|
253
|
+
* whether order notes and login are enabled.
|
|
192
254
|
*/
|
|
193
255
|
checkoutSettings: SubscribableSignalLike<CheckoutSettings>;
|
|
194
256
|
|
|
195
257
|
/**
|
|
196
|
-
*
|
|
258
|
+
* A breakdown of the costs for the order, including the subtotal, shipping, tax, and total amounts.
|
|
197
259
|
*/
|
|
198
260
|
cost: CartCost;
|
|
199
261
|
|
|
200
262
|
/**
|
|
201
|
-
* A list of discount codes applied to the
|
|
263
|
+
* A list of discount codes that the buyer entered during checkout and that were applied to the order.
|
|
202
264
|
*/
|
|
203
265
|
discountCodes: SubscribableSignalLike<CartDiscountCode[]>;
|
|
204
266
|
|
|
205
267
|
/**
|
|
206
|
-
*
|
|
268
|
+
* The cart-level discount allocations applied to the order. A discount allocation represents
|
|
269
|
+
* how a discount is distributed across the order. Each allocation includes the discounted
|
|
270
|
+
* amount and one of the following types:
|
|
271
|
+
*
|
|
272
|
+
* - `CartCodeDiscountAllocation`: A discount the buyer applied by entering a code at checkout.
|
|
273
|
+
* - `CartAutomaticDiscountAllocation`: A discount the merchant configured in Shopify admin to apply automatically.
|
|
274
|
+
* - `CartCustomDiscountAllocation`: A discount created programmatically by a [Shopify Function](/docs/apps/build/functions).
|
|
207
275
|
*/
|
|
208
276
|
discountAllocations: SubscribableSignalLike<CartDiscountAllocation[]>;
|
|
209
277
|
|
|
210
278
|
/**
|
|
211
|
-
*
|
|
279
|
+
* Metadata about the current extension, including its target, API version, and capabilities.
|
|
212
280
|
*/
|
|
213
281
|
extension: Extension<Target>;
|
|
214
282
|
|
|
215
283
|
/**
|
|
216
|
-
* The identifier that specifies where in Shopify
|
|
217
|
-
* injected. This will be one of the targets you have included in your
|
|
218
|
-
* extension’s configuration file.
|
|
284
|
+
* The identifier that specifies where in Shopify's UI your code is being injected. This will be one of the targets you have included in your extension's configuration file.
|
|
219
285
|
*
|
|
220
286
|
* @example 'customer-account.order-status.block.render'
|
|
221
|
-
* @see
|
|
222
|
-
* @see
|
|
287
|
+
* @see /docs/api/customer-account-ui-extensions/extension-targets-overview
|
|
288
|
+
* @see /docs/apps/app-extensions/configuration#targets
|
|
223
289
|
*
|
|
224
290
|
* @deprecated Deprecated as of version `2023-07`, use `extension.target` instead.
|
|
225
291
|
*/
|
|
226
292
|
extensionPoint: Target;
|
|
227
293
|
|
|
228
294
|
/**
|
|
229
|
-
* A list of
|
|
295
|
+
* A list of line items in the order. Each line includes the merchandise, quantity, cost,
|
|
296
|
+
* custom attributes, and discount allocations.
|
|
230
297
|
*/
|
|
231
298
|
lines: SubscribableSignalLike<CartLine[]>;
|
|
232
299
|
|
|
233
300
|
/**
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
* [
|
|
237
|
-
*
|
|
301
|
+
* The buyer's locale, currency, time zone, country, and market context for the order.
|
|
302
|
+
* Use these values to adapt your extension's content to the buyer's region. For formatted
|
|
303
|
+
* dates, numbers, and translated strings, use the [Localization API](/docs/api/customer-account-ui-extensions/target-apis/platform-apis/localization-api)
|
|
304
|
+
* instead.
|
|
238
305
|
*/
|
|
239
306
|
localization: OrderStatusLocalization;
|
|
240
307
|
|
|
241
308
|
/**
|
|
242
309
|
* A note left by the customer to the merchant, either in their cart or during checkout.
|
|
310
|
+
* The value is `undefined` if no note was provided.
|
|
243
311
|
*/
|
|
244
312
|
note: SubscribableSignalLike<string | undefined>;
|
|
245
313
|
|
|
246
314
|
/**
|
|
247
|
-
*
|
|
315
|
+
* The order that was placed after checkout completion. Includes the order ID,
|
|
316
|
+
* display name, confirmation number, and timestamps for processing and cancellation.
|
|
317
|
+
* The value is `undefined` if the order hasn't been fully processed yet.
|
|
248
318
|
*/
|
|
249
319
|
order: SubscribableSignalLike<Order | undefined>;
|
|
250
320
|
|
|
251
321
|
/**
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
* and the `checkout_token` field in the [Admin REST API Order resource](
|
|
322
|
+
* The token that identifies the checkout session used to create the order. Use this value
|
|
323
|
+
* to correlate the order with analytics events or backend API calls. This matches the
|
|
324
|
+
* `token` field in the [WebPixel checkout payload](/docs/api/pixels/customer-events#checkout)
|
|
325
|
+
* and the `checkout_token` field in the [Admin REST API Order resource](/docs/api/admin-rest/unstable/resources/order#resource-object).
|
|
326
|
+
* The value is `undefined` if the checkout token is unavailable.
|
|
256
327
|
*/
|
|
257
328
|
checkoutToken: SubscribableSignalLike<CheckoutToken | undefined>;
|
|
258
329
|
|
|
259
330
|
/**
|
|
260
|
-
* The
|
|
261
|
-
*
|
|
262
|
-
*
|
|
331
|
+
* The shipping address that the buyer provided for the order. This is where physical goods
|
|
332
|
+
* are delivered. The value is `undefined` if the order contains only digital products or
|
|
333
|
+
* if a shipping address wasn't required.
|
|
263
334
|
*/
|
|
264
335
|
shippingAddress?: SubscribableSignalLike<MailingAddress | undefined>;
|
|
265
336
|
|
|
266
337
|
/**
|
|
267
|
-
* The
|
|
268
|
-
*
|
|
269
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
338
|
+
* The billing address associated with the buyer's payment method for the order. The value
|
|
339
|
+
* is `undefined` if the order doesn't have a billing address on file.
|
|
270
340
|
*/
|
|
271
341
|
billingAddress?: SubscribableSignalLike<MailingAddress | undefined>;
|
|
272
342
|
|
|
273
|
-
/**
|
|
343
|
+
/**
|
|
344
|
+
* The shop where the order was placed. Includes the shop ID, name, primary
|
|
345
|
+
* storefront URL, and myshopify.com domain.
|
|
346
|
+
*/
|
|
274
347
|
shop: Shop;
|
|
275
348
|
|
|
276
349
|
/**
|
|
277
|
-
* The
|
|
350
|
+
* The API version that the extension is using, such as `'2026-01'` or `'unstable'`. This corresponds to the version declared in your extension's configuration.
|
|
278
351
|
*
|
|
279
352
|
* @example 'unstable'
|
|
280
353
|
*/
|
|
281
354
|
version: Version;
|
|
282
355
|
|
|
283
356
|
/**
|
|
284
|
-
*
|
|
357
|
+
* Triggers a login prompt if the customer is viewing a pre-authenticated **Order status** page.
|
|
358
|
+
* Use this to require full authentication before displaying sensitive information in your extension.
|
|
285
359
|
*/
|
|
286
360
|
requireLogin: () => Promise<void>;
|
|
287
361
|
|
|
288
362
|
/**
|
|
289
|
-
* The authentication
|
|
363
|
+
* The buyer's current authentication level on the **Order status** page. Use this to determine whether to display sensitive information or prompt the buyer to log in.
|
|
290
364
|
*/
|
|
291
365
|
authenticationState: SubscribableSignalLike<AuthenticationState>;
|
|
292
366
|
}
|
|
293
367
|
|
|
368
|
+
/**
|
|
369
|
+
* Information about the buyer who placed the order.
|
|
370
|
+
*
|
|
371
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data). The `customer` and `purchasingCompany` properties require level 1 access. The `email` and `phone` properties require level 2 access.
|
|
372
|
+
* @publicDocs
|
|
373
|
+
*/
|
|
294
374
|
export interface OrderStatusBuyerIdentity {
|
|
295
375
|
/**
|
|
296
|
-
* The buyer's customer account
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
376
|
+
* The buyer's customer account, including their ID and whether they have accepted marketing.
|
|
377
|
+
* The value is `undefined` if the buyer is a guest or hasn't logged in yet.
|
|
300
378
|
*/
|
|
301
379
|
customer: SubscribableSignalLike<OrderStatusCustomer | undefined>;
|
|
302
380
|
|
|
303
381
|
/**
|
|
304
|
-
* The email address
|
|
305
|
-
* The value is `undefined` if the app
|
|
306
|
-
*
|
|
307
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
382
|
+
* The email address associated with the order. This is the email the buyer provided during
|
|
383
|
+
* checkout for order confirmation and communication. The value is `undefined` if the app
|
|
384
|
+
* doesn't have access to customer data.
|
|
308
385
|
*/
|
|
309
386
|
email: SubscribableSignalLike<string | undefined>;
|
|
310
387
|
|
|
311
388
|
/**
|
|
312
|
-
* The phone number
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
389
|
+
* The phone number the buyer provided during checkout. The value is `undefined` if no phone
|
|
390
|
+
* number was provided or the app doesn't have access to customer data.
|
|
316
391
|
*/
|
|
317
392
|
phone: SubscribableSignalLike<string | undefined>;
|
|
318
393
|
|
|
319
394
|
/**
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
395
|
+
* The company and company location that a B2B (business-to-business) customer is purchasing
|
|
396
|
+
* on behalf of. Use this to identify the business context of the order. The value is
|
|
397
|
+
* `undefined` if the buyer isn't a B2B customer.
|
|
325
398
|
*/
|
|
326
399
|
purchasingCompany: SubscribableSignalLike<
|
|
327
400
|
OrderStatusPurchasingCompany | undefined
|
|
@@ -330,335 +403,372 @@ export interface OrderStatusBuyerIdentity {
|
|
|
330
403
|
|
|
331
404
|
/**
|
|
332
405
|
* Information about a company that the business customer is purchasing on behalf of.
|
|
406
|
+
*
|
|
407
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
408
|
+
* @publicDocs
|
|
333
409
|
*/
|
|
334
410
|
export interface OrderStatusPurchasingCompany {
|
|
335
411
|
/**
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
412
|
+
* The company that the B2B customer is purchasing on behalf of, including the company ID, name, and optional external ID.
|
|
339
413
|
*/
|
|
340
414
|
company: OrderStatusCompany;
|
|
341
415
|
/**
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
416
|
+
* The specific company location where the order is being placed, including the location ID, name, and optional external ID.
|
|
345
417
|
*/
|
|
346
418
|
location: OrderStatusCompanyLocation;
|
|
347
419
|
}
|
|
348
420
|
|
|
421
|
+
/**
|
|
422
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
423
|
+
* @publicDocs
|
|
424
|
+
*/
|
|
349
425
|
export interface OrderStatusCompany {
|
|
350
426
|
/**
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
427
|
+
* A globally-unique identifier for the company in the format `gid://shopify/Company/<id>`.
|
|
354
428
|
*/
|
|
355
429
|
id: string;
|
|
356
430
|
/**
|
|
357
|
-
* The name of the company.
|
|
358
|
-
*
|
|
359
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
431
|
+
* The registered business name of the company, as configured by the merchant in Shopify admin.
|
|
360
432
|
*/
|
|
361
433
|
name: string;
|
|
362
434
|
/**
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
435
|
+
* A merchant-defined external identifier for the company, often used to map to an ID in an external ERP or CRM system. The value is `undefined` if no external ID has been set.
|
|
366
436
|
*/
|
|
367
437
|
externalId?: string;
|
|
368
438
|
}
|
|
369
439
|
|
|
440
|
+
/**
|
|
441
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
442
|
+
* @publicDocs
|
|
443
|
+
*/
|
|
370
444
|
export interface OrderStatusCompanyLocation {
|
|
371
445
|
/**
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
446
|
+
* A globally-unique identifier for the company location in the format `gid://shopify/CompanyLocation/<id>`.
|
|
375
447
|
*/
|
|
376
448
|
id: string;
|
|
377
449
|
/**
|
|
378
|
-
* The name of the company location.
|
|
379
|
-
*
|
|
380
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
450
|
+
* The display name of the company location, such as a branch office or warehouse name.
|
|
381
451
|
*/
|
|
382
452
|
name: string;
|
|
383
453
|
/**
|
|
384
|
-
*
|
|
385
|
-
*
|
|
386
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
454
|
+
* A merchant-defined external identifier for the company location, often used to map to an ID in an external ERP or CRM system. The value is `undefined` if no external ID has been set.
|
|
387
455
|
*/
|
|
388
456
|
externalId?: string;
|
|
389
457
|
}
|
|
390
458
|
|
|
459
|
+
/**
|
|
460
|
+
* @publicDocs
|
|
461
|
+
*/
|
|
391
462
|
export interface AppliedGiftCard {
|
|
392
463
|
/**
|
|
393
|
-
* The last four characters of the applied gift card's code.
|
|
464
|
+
* The last four characters of the applied gift card's code. The full code isn't available for security reasons.
|
|
394
465
|
*/
|
|
395
466
|
lastCharacters: string;
|
|
396
467
|
|
|
397
468
|
/**
|
|
398
|
-
* The amount of the applied gift card that
|
|
469
|
+
* The amount of the applied gift card that was used for this order.
|
|
399
470
|
*/
|
|
400
471
|
amountUsed: Money;
|
|
401
472
|
|
|
402
473
|
/**
|
|
403
|
-
* The
|
|
474
|
+
* The remaining balance of the applied gift card after the order was placed.
|
|
404
475
|
*/
|
|
405
476
|
balance: Money;
|
|
406
477
|
}
|
|
407
478
|
|
|
479
|
+
/**
|
|
480
|
+
* @publicDocs
|
|
481
|
+
*/
|
|
408
482
|
export interface Shop {
|
|
409
483
|
/**
|
|
410
|
-
*
|
|
484
|
+
* A globally-unique identifier for the shop in the format `gid://shopify/Shop/<id>`.
|
|
485
|
+
*
|
|
411
486
|
* @example 'gid://shopify/Shop/123'
|
|
412
487
|
*/
|
|
413
488
|
id: string;
|
|
489
|
+
|
|
414
490
|
/**
|
|
415
|
-
* The name of the shop.
|
|
491
|
+
* The display name of the shop as configured by the merchant in Shopify admin.
|
|
416
492
|
*/
|
|
417
493
|
name: string;
|
|
418
494
|
|
|
419
495
|
/**
|
|
420
|
-
* The primary storefront URL.
|
|
421
|
-
*
|
|
422
|
-
* > Caution:
|
|
423
|
-
* As of version `2024-10` this value will no longer have a trailing slash.
|
|
496
|
+
* The primary storefront URL for the shop, such as `https://example.myshopify.com`. Use this to build links back to the merchant's online store.
|
|
424
497
|
*/
|
|
425
498
|
storefrontUrl?: string;
|
|
499
|
+
|
|
426
500
|
/**
|
|
427
|
-
* The shop's myshopify.com domain.
|
|
501
|
+
* The shop's unique `.myshopify.com` subdomain, such as `example.myshopify.com`. This domain is permanent and doesn't change even if the merchant adds a custom domain.
|
|
428
502
|
*/
|
|
429
503
|
myshopifyDomain: string;
|
|
430
504
|
}
|
|
431
505
|
|
|
506
|
+
/**
|
|
507
|
+
* @publicDocs
|
|
508
|
+
*/
|
|
432
509
|
export interface CartCost {
|
|
433
510
|
/**
|
|
434
|
-
*
|
|
435
|
-
*
|
|
511
|
+
* The sum of all line item prices before shipping and taxes are applied. Use this value
|
|
512
|
+
* to display the base cost of the items the buyer purchased.
|
|
436
513
|
*/
|
|
437
514
|
subtotalAmount: SubscribableSignalLike<Money>;
|
|
438
515
|
|
|
439
516
|
/**
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
*
|
|
517
|
+
* The total shipping cost for the order, after any shipping discounts have been applied.
|
|
518
|
+
* The value is `undefined` if shipping costs haven't been calculated or aren't applicable
|
|
519
|
+
* (for example, for digital-only orders).
|
|
443
520
|
*/
|
|
444
521
|
totalShippingAmount: SubscribableSignalLike<Money | undefined>;
|
|
445
522
|
|
|
446
523
|
/**
|
|
447
|
-
*
|
|
448
|
-
*
|
|
449
|
-
* undefined if
|
|
524
|
+
* The total tax charged for the order. This may represent taxes added on top of item prices
|
|
525
|
+
* or taxes already included in product and shipping prices, depending on the store's tax
|
|
526
|
+
* configuration. The value is `undefined` if tax information is unavailable.
|
|
450
527
|
*/
|
|
451
528
|
totalTaxAmount: SubscribableSignalLike<Money | undefined>;
|
|
452
529
|
|
|
453
530
|
/**
|
|
454
|
-
*
|
|
455
|
-
*
|
|
456
|
-
* the information step might not have delivery costs calculated.
|
|
531
|
+
* The final amount the buyer paid for the order, including all line items, shipping, taxes,
|
|
532
|
+
* and discounts. Gift cards and store credits are excluded from this total.
|
|
457
533
|
*/
|
|
458
534
|
totalAmount: SubscribableSignalLike<Money>;
|
|
459
535
|
}
|
|
460
536
|
|
|
537
|
+
/**
|
|
538
|
+
* @publicDocs
|
|
539
|
+
*/
|
|
461
540
|
export interface CartLine {
|
|
462
541
|
/**
|
|
463
|
-
*
|
|
464
|
-
*
|
|
465
|
-
* ID before any call to `applyCartLinesChange` because you'll need the ID to
|
|
466
|
-
* create a `CartLineChange` object.
|
|
542
|
+
* A unique identifier for the cart line in the format `gid://shopify/CartLine/<id>`. These IDs are not stable and may change after any operations on the line items, so avoid persisting them.
|
|
543
|
+
*
|
|
467
544
|
* @example 'gid://shopify/CartLine/123'
|
|
468
545
|
*/
|
|
469
546
|
id: string;
|
|
470
547
|
|
|
471
548
|
/**
|
|
472
|
-
* The merchandise
|
|
549
|
+
* The product variant or other merchandise associated with this line item. Use this to access product details such as the title, image, SKU, and selected options.
|
|
473
550
|
*/
|
|
474
551
|
merchandise: Merchandise;
|
|
475
552
|
|
|
476
553
|
/**
|
|
477
|
-
* The
|
|
554
|
+
* The number of units of this merchandise that the buyer purchased.
|
|
478
555
|
*/
|
|
479
556
|
quantity: number;
|
|
480
557
|
|
|
481
558
|
/**
|
|
482
|
-
* The
|
|
559
|
+
* The cost breakdown for this line item, including the total price after any line-level discounts have been applied.
|
|
483
560
|
*/
|
|
484
561
|
cost: CartLineCost;
|
|
485
562
|
|
|
486
563
|
/**
|
|
487
|
-
*
|
|
564
|
+
* Custom key-value pairs attached to this line item, such as engraving text, gift messages, or personalization options set by the buyer or an app during checkout.
|
|
488
565
|
*/
|
|
489
566
|
attributes: Attribute[];
|
|
490
567
|
|
|
491
568
|
/**
|
|
492
|
-
*
|
|
569
|
+
* The list of discounts applied to this specific line item. Each allocation includes the discounted amount and the type of discount (`code`, `automatic`, or `custom`).
|
|
493
570
|
*/
|
|
494
571
|
discountAllocations: CartDiscountAllocation[];
|
|
495
572
|
|
|
496
573
|
/**
|
|
497
|
-
*
|
|
574
|
+
* The individual components of a [bundle](/docs/apps/build/product-merchandising/bundles) line item. Each component represents a separate product within the bundle. Returns an empty array if the line item isn't a bundle.
|
|
498
575
|
*/
|
|
499
576
|
lineComponents: CartLineComponentType[];
|
|
500
577
|
}
|
|
501
578
|
|
|
502
579
|
type CartLineComponentType = CartBundleLineComponent;
|
|
503
580
|
|
|
581
|
+
/**
|
|
582
|
+
* @publicDocs
|
|
583
|
+
*/
|
|
504
584
|
export interface CartBundleLineComponent {
|
|
585
|
+
/**
|
|
586
|
+
* The type of line component. Always `'bundle'` for bundle line components.
|
|
587
|
+
*/
|
|
505
588
|
type: 'bundle';
|
|
506
589
|
|
|
507
590
|
/**
|
|
508
|
-
* A unique identifier for the bundle line
|
|
509
|
-
*
|
|
510
|
-
* This ID is not stable. If an operation updates the line items in any way, all IDs could change.
|
|
591
|
+
* A unique identifier for this component within the bundle, in the format `gid://shopify/CartLineComponent/<id>`. This ID isn't stable and may change after any operation that updates the line items.
|
|
511
592
|
*
|
|
512
593
|
* @example 'gid://shopify/CartLineComponent/123'
|
|
513
594
|
*/
|
|
514
595
|
id: string;
|
|
515
596
|
|
|
516
597
|
/**
|
|
517
|
-
* The
|
|
598
|
+
* The product variant included in this bundle component. Use this to display product details for individual items within a bundle.
|
|
518
599
|
*/
|
|
519
600
|
merchandise: Merchandise;
|
|
520
601
|
|
|
521
602
|
/**
|
|
522
|
-
* The
|
|
603
|
+
* The number of units of this component included in the bundle.
|
|
523
604
|
*/
|
|
524
605
|
quantity: number;
|
|
525
606
|
|
|
526
607
|
/**
|
|
527
|
-
* The cost
|
|
608
|
+
* The cost breakdown for this bundle component, representing the portion of the bundle price attributed to this item.
|
|
528
609
|
*/
|
|
529
610
|
cost: CartLineCost;
|
|
530
611
|
|
|
531
612
|
/**
|
|
532
|
-
*
|
|
613
|
+
* Custom key-value pairs attached to this bundle component, such as personalization options specific to this item within the bundle.
|
|
533
614
|
*
|
|
534
615
|
* @example [{key: 'engraving', value: 'hello world'}]
|
|
535
616
|
*/
|
|
536
617
|
attributes: Attribute[];
|
|
537
618
|
}
|
|
538
619
|
|
|
620
|
+
/**
|
|
621
|
+
* @publicDocs
|
|
622
|
+
*/
|
|
539
623
|
export interface CartLineCost {
|
|
540
624
|
/**
|
|
541
|
-
* The total
|
|
542
|
-
* cart line.
|
|
625
|
+
* The total price the buyer pays for this line item after all line-level discounts have been applied, but before order-level discounts, taxes, and shipping.
|
|
543
626
|
*/
|
|
544
627
|
totalAmount: Money;
|
|
545
628
|
}
|
|
546
629
|
|
|
630
|
+
/**
|
|
631
|
+
* @publicDocs
|
|
632
|
+
*/
|
|
547
633
|
export interface Money {
|
|
548
634
|
/**
|
|
549
|
-
* The
|
|
635
|
+
* The decimal amount of the price. For example, `29.99` represents twenty-nine dollars and ninety-nine cents.
|
|
550
636
|
*/
|
|
551
637
|
amount: number;
|
|
638
|
+
|
|
552
639
|
/**
|
|
553
|
-
* The
|
|
640
|
+
* The three-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
641
|
+
*
|
|
554
642
|
* @example 'CAD' for Canadian dollar
|
|
555
643
|
*/
|
|
556
644
|
currencyCode: CurrencyCode;
|
|
557
645
|
}
|
|
558
646
|
|
|
647
|
+
/**
|
|
648
|
+
* @publicDocs
|
|
649
|
+
*/
|
|
559
650
|
export type Merchandise = ProductVariant;
|
|
560
651
|
|
|
652
|
+
/**
|
|
653
|
+
* @publicDocs
|
|
654
|
+
*/
|
|
561
655
|
export interface BaseMerchandise {
|
|
562
656
|
/**
|
|
563
|
-
*
|
|
657
|
+
* A globally-unique identifier for the merchandise.
|
|
564
658
|
*/
|
|
565
659
|
id: string;
|
|
566
660
|
}
|
|
567
661
|
|
|
662
|
+
/**
|
|
663
|
+
* @publicDocs
|
|
664
|
+
*/
|
|
568
665
|
export interface ProductVariant extends BaseMerchandise {
|
|
666
|
+
/**
|
|
667
|
+
* The type of merchandise. Always `'variant'` for product variants.
|
|
668
|
+
*/
|
|
569
669
|
type: 'variant';
|
|
570
670
|
|
|
571
671
|
/**
|
|
572
|
-
* A globally-unique identifier
|
|
672
|
+
* A globally-unique identifier for the product variant in the format `gid://shopify/ProductVariant/<id>`.
|
|
673
|
+
*
|
|
573
674
|
* @example 'gid://shopify/ProductVariant/123'
|
|
574
675
|
*/
|
|
575
676
|
id: string;
|
|
576
677
|
|
|
577
678
|
/**
|
|
578
|
-
* The product variant
|
|
679
|
+
* The display title of the product variant, such as "Small" or "Red / Large". This is the variant-specific label, not the parent product title.
|
|
579
680
|
*/
|
|
580
681
|
title: string;
|
|
581
682
|
|
|
582
683
|
/**
|
|
583
|
-
* The
|
|
684
|
+
* The stock keeping unit (SKU) assigned to this variant by the merchant, used for inventory tracking. The value is `undefined` if no SKU has been set.
|
|
584
685
|
*/
|
|
585
686
|
sku?: string;
|
|
586
687
|
|
|
587
688
|
/**
|
|
588
|
-
*
|
|
689
|
+
* A secondary description for the variant that provides additional context, such as a color or size combination. The value is `undefined` if no subtitle is available.
|
|
589
690
|
*/
|
|
590
691
|
subtitle?: string;
|
|
591
692
|
|
|
592
693
|
/**
|
|
593
|
-
*
|
|
594
|
-
* image if no image is available.
|
|
694
|
+
* The image associated with this product variant. Falls back to the parent product's featured image if the variant doesn't have its own image.
|
|
595
695
|
*/
|
|
596
696
|
image?: ImageDetails;
|
|
597
697
|
|
|
598
698
|
/**
|
|
599
|
-
*
|
|
699
|
+
* The list of product options that define this variant, such as size and color. Each entry contains the option name and the selected value.
|
|
600
700
|
*/
|
|
601
701
|
selectedOptions: SelectedOption[];
|
|
602
702
|
|
|
603
703
|
/**
|
|
604
|
-
* The product
|
|
704
|
+
* The parent product that this variant belongs to. Use this to access the product title, vendor, and type.
|
|
605
705
|
*/
|
|
606
706
|
product: Product;
|
|
607
707
|
|
|
608
708
|
/**
|
|
609
|
-
* Whether
|
|
709
|
+
* Whether this product variant requires physical shipping. Returns `false` for digital products, gift cards, and services.
|
|
610
710
|
*/
|
|
611
711
|
requiresShipping: boolean;
|
|
612
712
|
|
|
613
713
|
/**
|
|
614
|
-
* The selling plan associated with
|
|
714
|
+
* The selling plan associated with this merchandise, such as a subscription or pre-order plan. The value is `undefined` if the item was purchased without a selling plan.
|
|
615
715
|
*/
|
|
616
716
|
sellingPlan?: SellingPlan;
|
|
617
717
|
}
|
|
618
718
|
|
|
719
|
+
/**
|
|
720
|
+
* @publicDocs
|
|
721
|
+
*/
|
|
619
722
|
export interface Product {
|
|
620
723
|
/**
|
|
621
|
-
* A globally-unique identifier
|
|
724
|
+
* A globally-unique identifier for the product in the format `gid://shopify/Product/<id>`.
|
|
622
725
|
*/
|
|
623
726
|
id: string;
|
|
624
727
|
|
|
625
728
|
/**
|
|
626
|
-
* The product
|
|
729
|
+
* The name of the product's vendor or manufacturer, as set by the merchant in Shopify admin.
|
|
627
730
|
*/
|
|
628
731
|
vendor: string;
|
|
629
732
|
|
|
630
733
|
/**
|
|
631
|
-
* A categorization
|
|
734
|
+
* A merchant-defined categorization for the product, such as "Accessories" or "Clothing". Commonly used for filtering and organizing products in a storefront.
|
|
632
735
|
*/
|
|
633
736
|
productType: string;
|
|
634
737
|
}
|
|
635
738
|
|
|
739
|
+
/**
|
|
740
|
+
* @publicDocs
|
|
741
|
+
*/
|
|
636
742
|
export interface ImageDetails {
|
|
637
743
|
/**
|
|
638
|
-
* The
|
|
744
|
+
* The fully-qualified URL of the image. Use this to render the product or variant image in your extension.
|
|
639
745
|
*/
|
|
640
746
|
url: string;
|
|
641
747
|
|
|
642
748
|
/**
|
|
643
|
-
* The alternative text for the image.
|
|
749
|
+
* The alternative text description of the image, used for accessibility. The value is `undefined` if the merchant hasn't set alt text for the image.
|
|
644
750
|
*/
|
|
645
751
|
altText?: string;
|
|
646
752
|
}
|
|
647
753
|
|
|
754
|
+
/**
|
|
755
|
+
* @publicDocs
|
|
756
|
+
*/
|
|
648
757
|
export interface SelectedOption {
|
|
649
758
|
/**
|
|
650
|
-
* The name of the
|
|
759
|
+
* The name of the product option, such as "Size", "Color", or "Material".
|
|
651
760
|
*/
|
|
652
761
|
name: string;
|
|
653
762
|
|
|
654
763
|
/**
|
|
655
|
-
* The value
|
|
764
|
+
* The selected value for this option, such as "Medium", "Blue", or "Cotton".
|
|
656
765
|
*/
|
|
657
766
|
value: string;
|
|
658
767
|
}
|
|
659
768
|
|
|
660
769
|
/**
|
|
661
770
|
* A payment option presented to the buyer.
|
|
771
|
+
* @publicDocs
|
|
662
772
|
*/
|
|
663
773
|
export interface PaymentOption {
|
|
664
774
|
/**
|
|
@@ -677,7 +787,7 @@ export interface PaymentOption {
|
|
|
677
787
|
* | `paymentOnDelivery` | A payment that will be collected on delivery. |
|
|
678
788
|
* | `redeemable` | A redeemable payment option such as a gift card or store credit. |
|
|
679
789
|
* | `wallet` | An integrated wallet such as PayPal, Google Pay, Apple Pay, etc. |
|
|
680
|
-
* | `customOnsite` | A custom payment option that
|
|
790
|
+
* | `customOnsite` | A custom payment option that's processed through a checkout extension with a payments app. |
|
|
681
791
|
*/
|
|
682
792
|
type:
|
|
683
793
|
| 'creditCard'
|
|
@@ -692,77 +802,107 @@ export interface PaymentOption {
|
|
|
692
802
|
| 'customOnsite';
|
|
693
803
|
|
|
694
804
|
/**
|
|
695
|
-
*
|
|
696
|
-
*
|
|
697
|
-
* This is not a globally unique identifier. It may be an identifier specific to the given checkout session or the current shop.
|
|
805
|
+
* A session-scoped identifier for this payment option. This handle isn't globally unique — it is specific to the current checkout session or the shop.
|
|
698
806
|
*/
|
|
699
807
|
handle: string;
|
|
700
808
|
}
|
|
701
809
|
|
|
702
810
|
/**
|
|
703
811
|
* A payment option selected by the buyer.
|
|
812
|
+
* @publicDocs
|
|
704
813
|
*/
|
|
705
814
|
export interface SelectedPaymentOption {
|
|
706
815
|
/**
|
|
707
|
-
* The
|
|
816
|
+
* The handle of the payment option the buyer selected, corresponding to a `PaymentOption.handle` value.
|
|
708
817
|
*
|
|
709
|
-
* See [availablePaymentOptions](
|
|
818
|
+
* See [availablePaymentOptions](/docs/api/checkout-ui-extensions/apis/payments#standardapi-propertydetail-selectedpaymentoptions).
|
|
710
819
|
*/
|
|
711
820
|
handle: string;
|
|
712
821
|
}
|
|
713
822
|
|
|
823
|
+
/**
|
|
824
|
+
* @publicDocs
|
|
825
|
+
*/
|
|
714
826
|
export interface CartDiscountCode {
|
|
715
827
|
/**
|
|
716
|
-
* The code
|
|
828
|
+
* The discount code string that the buyer entered during checkout, such as "SAVE10" or "FREESHIP". Use this to display which discount codes were applied to the order.
|
|
717
829
|
*/
|
|
718
830
|
code: string;
|
|
719
831
|
}
|
|
832
|
+
/**
|
|
833
|
+
* A discount allocation represents a single discount applied to a specific line item or the overall order.
|
|
834
|
+
* When a discount applies to an order, Shopify splits the total discount amount across the affected line items
|
|
835
|
+
* as individual allocations. For example, a "10% off your order" discount is distributed proportionally across
|
|
836
|
+
* each line item rather than appearing as one lump sum.
|
|
837
|
+
*
|
|
838
|
+
* There are three types of discount allocations:
|
|
839
|
+
* - `CartCodeDiscountAllocation`: A discount applied using a code the buyer entered at checkout (for example, "SAVE10").
|
|
840
|
+
* - `CartAutomaticDiscountAllocation`: A discount the merchant configured in Shopify admin to apply automatically without a code.
|
|
841
|
+
* - `CartCustomDiscountAllocation`: A discount created programmatically by a [Shopify Function](/docs/apps/build/functions).
|
|
842
|
+
* @publicDocs
|
|
843
|
+
*/
|
|
720
844
|
export type CartDiscountAllocation =
|
|
721
845
|
| CartCodeDiscountAllocation
|
|
722
846
|
| CartAutomaticDiscountAllocation
|
|
723
847
|
| CartCustomDiscountAllocation;
|
|
724
848
|
|
|
849
|
+
/**
|
|
850
|
+
* The base properties shared by all discount allocation types.
|
|
851
|
+
* @publicDocs
|
|
852
|
+
*/
|
|
725
853
|
export interface CartDiscountAllocationBase {
|
|
726
854
|
/**
|
|
727
|
-
* The
|
|
855
|
+
* The monetary value that was deducted from the line item or order total by this discount allocation.
|
|
728
856
|
*/
|
|
729
857
|
discountedAmount: Money;
|
|
730
858
|
}
|
|
731
859
|
|
|
860
|
+
/**
|
|
861
|
+
* A discount allocation for a discount that was applied using a code the buyer entered at checkout.
|
|
862
|
+
* @publicDocs
|
|
863
|
+
*/
|
|
732
864
|
export interface CartCodeDiscountAllocation extends CartDiscountAllocationBase {
|
|
733
865
|
/**
|
|
734
|
-
* The code
|
|
866
|
+
* The discount code string that the buyer entered during checkout, such as "SAVE10" or "FREESHIP".
|
|
735
867
|
*/
|
|
736
868
|
code: string;
|
|
737
869
|
|
|
738
870
|
/**
|
|
739
|
-
* The type of
|
|
871
|
+
* The type of this discount allocation. Always `'code'` for discounts applied using a code entered by the buyer.
|
|
740
872
|
*/
|
|
741
873
|
type: 'code';
|
|
742
874
|
}
|
|
743
875
|
|
|
876
|
+
/**
|
|
877
|
+
* A discount allocation for a discount that the merchant configured to apply automatically in Shopify admin, without the buyer needing to enter a code.
|
|
878
|
+
* @publicDocs
|
|
879
|
+
*/
|
|
744
880
|
export interface CartAutomaticDiscountAllocation
|
|
745
881
|
extends CartDiscountAllocationBase {
|
|
746
882
|
/**
|
|
747
|
-
* The title of the automatic discount
|
|
883
|
+
* The merchant-defined title of the automatic discount as displayed to the buyer, such as "Summer Sale 10% Off".
|
|
748
884
|
*/
|
|
749
885
|
title: string;
|
|
750
886
|
|
|
751
887
|
/**
|
|
752
|
-
* The type of
|
|
888
|
+
* The type of this discount allocation. Always `'automatic'` for discounts configured to apply automatically without a code.
|
|
753
889
|
*/
|
|
754
890
|
type: 'automatic';
|
|
755
891
|
}
|
|
756
892
|
|
|
893
|
+
/**
|
|
894
|
+
* A discount allocation for a discount created by a [Shopify Function](/docs/apps/build/functions), such as a custom discount logic app.
|
|
895
|
+
* @publicDocs
|
|
896
|
+
*/
|
|
757
897
|
export interface CartCustomDiscountAllocation
|
|
758
898
|
extends CartDiscountAllocationBase {
|
|
759
899
|
/**
|
|
760
|
-
* The title of the custom discount
|
|
900
|
+
* The title of the custom discount as defined by the Shopify Function that created it.
|
|
761
901
|
*/
|
|
762
902
|
title: string;
|
|
763
903
|
|
|
764
904
|
/**
|
|
765
|
-
* The type of
|
|
905
|
+
* The type of this discount allocation. Always `'custom'` for discounts created by a Shopify Function.
|
|
766
906
|
*/
|
|
767
907
|
type: 'custom';
|
|
768
908
|
}
|
|
@@ -770,375 +910,401 @@ export interface CartCustomDiscountAllocation
|
|
|
770
910
|
/**
|
|
771
911
|
* Information about a customer who has previously purchased from this shop.
|
|
772
912
|
*
|
|
773
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
913
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data). The `id`, `image`, `acceptsMarketing`, and `storeCreditAccounts` properties require level 1 access. The `email`, `phone`, `fullName`, `firstName`, and `lastName` properties require level 2 access.
|
|
914
|
+
* @publicDocs
|
|
774
915
|
*/
|
|
775
916
|
export interface OrderStatusCustomer {
|
|
776
917
|
/**
|
|
777
|
-
* Customer
|
|
778
|
-
*
|
|
779
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
780
|
-
*
|
|
781
|
-
* @example 'gid://shopify/Customer/123'
|
|
918
|
+
* A globally-unique identifier for the customer in the format `gid://shopify/Customer/<id>`. 'gid://shopify/Customer/123'
|
|
782
919
|
*/
|
|
783
920
|
id: string;
|
|
784
921
|
/**
|
|
785
|
-
* The email
|
|
786
|
-
*
|
|
787
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
922
|
+
* The email address associated with the customer's account. The value is `undefined` if the app doesn't have the required access level.
|
|
788
923
|
*/
|
|
789
924
|
email?: string;
|
|
790
925
|
/**
|
|
791
|
-
* The phone number
|
|
792
|
-
*
|
|
793
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
926
|
+
* The phone number associated with the customer's account. The value is `undefined` if no phone number is on file or the app doesn't have the required access level.
|
|
794
927
|
*/
|
|
795
928
|
phone?: string;
|
|
796
929
|
/**
|
|
797
|
-
* The full name of the
|
|
798
|
-
*
|
|
799
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
930
|
+
* The customer's full name, typically a combination of first and last name. The value is `undefined` if the app doesn't have the required access level.
|
|
800
931
|
*/
|
|
801
932
|
fullName?: string;
|
|
802
933
|
/**
|
|
803
|
-
* The first name
|
|
804
|
-
*
|
|
805
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
934
|
+
* The customer's first name. The value is `undefined` if the app doesn't have the required access level.
|
|
806
935
|
*/
|
|
807
936
|
firstName?: string;
|
|
808
937
|
/**
|
|
809
|
-
* The last name
|
|
810
|
-
*
|
|
811
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
938
|
+
* The customer's last name. The value is `undefined` if the app doesn't have the required access level.
|
|
812
939
|
*/
|
|
813
940
|
lastName?: string;
|
|
814
941
|
/**
|
|
815
|
-
* The image
|
|
816
|
-
*
|
|
817
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
942
|
+
* The customer's profile image, such as a Gravatar avatar. Use this to personalize the extension UI for the logged-in buyer.
|
|
818
943
|
*/
|
|
819
944
|
image: ImageDetails;
|
|
820
945
|
/**
|
|
821
|
-
*
|
|
822
|
-
*
|
|
823
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
946
|
+
* Whether the customer has opted in to receiving marketing communications from the merchant, such as email campaigns and promotional offers.
|
|
824
947
|
*/
|
|
825
948
|
acceptsMarketing: boolean;
|
|
826
949
|
/**
|
|
827
|
-
* The
|
|
828
|
-
*
|
|
829
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
950
|
+
* The store credit accounts owned by this customer that can be used as payment during checkout. Each account has a balance representing available store credit.
|
|
830
951
|
*
|
|
831
952
|
* @private
|
|
832
953
|
*/
|
|
833
954
|
storeCreditAccounts: StoreCreditAccount[];
|
|
834
955
|
}
|
|
835
956
|
|
|
957
|
+
/**
|
|
958
|
+
* A string token that uniquely identifies the checkout session used to create the order.
|
|
959
|
+
* @publicDocs
|
|
960
|
+
*/
|
|
836
961
|
export type CheckoutToken = string;
|
|
837
962
|
|
|
838
963
|
/**
|
|
839
964
|
* Settings describing the behavior of the buyer's checkout.
|
|
965
|
+
* @publicDocs
|
|
840
966
|
*/
|
|
841
967
|
export interface CheckoutSettings {
|
|
842
968
|
/**
|
|
843
|
-
* The type of order
|
|
969
|
+
* The type of order created when checkout is completed:
|
|
970
|
+
*
|
|
971
|
+
* - `'DRAFT_ORDER'`: A draft order that must be manually reviewed and finalized by the merchant before it is processed.
|
|
972
|
+
* - `'ORDER'`: A standard order that's immediately processed and visible in Shopify admin.
|
|
844
973
|
*/
|
|
845
974
|
orderSubmission: 'DRAFT_ORDER' | 'ORDER';
|
|
846
975
|
/**
|
|
847
|
-
*
|
|
976
|
+
* The payment terms configured by the merchant for B2B orders, such as net-30 or net-60. The value is `undefined` if no payment terms are configured.
|
|
848
977
|
*/
|
|
849
978
|
paymentTermsTemplate?: PaymentTermsTemplate;
|
|
850
979
|
/**
|
|
851
|
-
* Settings
|
|
980
|
+
* Settings that control how the shipping address behaves during checkout, such as whether the buyer can edit the address.
|
|
852
981
|
*/
|
|
853
982
|
shippingAddress: ShippingAddressSettings;
|
|
854
983
|
}
|
|
855
984
|
|
|
856
985
|
/**
|
|
857
986
|
* Settings describing the behavior of the shipping address.
|
|
987
|
+
* @publicDocs
|
|
858
988
|
*/
|
|
859
989
|
export interface ShippingAddressSettings {
|
|
860
990
|
/**
|
|
861
|
-
*
|
|
991
|
+
* Whether the buyer is allowed to edit the shipping address during checkout. When `false`, the shipping address is locked and can't be changed, which is common for B2B orders with a predefined ship-to address.
|
|
862
992
|
*/
|
|
863
993
|
isEditable: boolean;
|
|
864
994
|
}
|
|
865
995
|
|
|
866
996
|
/**
|
|
867
|
-
*
|
|
997
|
+
* A payment terms template configured by the merchant, defining when payment is due for B2B orders. Common examples include "Net 30" (due in 30 days) or "Due on receipt".
|
|
998
|
+
* @publicDocs
|
|
868
999
|
*/
|
|
869
1000
|
export interface PaymentTermsTemplate {
|
|
870
1001
|
/**
|
|
871
|
-
* A globally-unique
|
|
1002
|
+
* A globally-unique identifier for the payment terms template in the format `gid://shopify/PaymentTermsTemplate/<id>`.
|
|
872
1003
|
* @example 'gid://shopify/PaymentTermsTemplate/1'
|
|
873
1004
|
*/
|
|
874
1005
|
id: string;
|
|
875
1006
|
/**
|
|
876
|
-
* The name of the payment terms translated to the buyer's current language. See [localization.language](
|
|
1007
|
+
* The name of the payment terms translated to the buyer's current language, such as "Net 30" or "Due on receipt". See [localization.language](/docs/api/customer-account-ui-extensions/apis/localization#standardapi-propertydetail-localization).
|
|
877
1008
|
*/
|
|
878
1009
|
name: string;
|
|
879
1010
|
/**
|
|
880
|
-
* The due date for
|
|
1011
|
+
* The due date for payment in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:mm:ss.sssZ`). The value is `undefined` if the payment terms don't have a fixed due date.
|
|
881
1012
|
*/
|
|
882
1013
|
dueDate?: string;
|
|
883
1014
|
/**
|
|
884
|
-
* The number of days
|
|
1015
|
+
* The number of days the buyer has to pay after the order is placed, such as `30` for "Net 30" terms. The value is `undefined` if the payment terms are not net-based.
|
|
885
1016
|
*/
|
|
886
1017
|
dueInDays?: number;
|
|
887
1018
|
}
|
|
888
1019
|
|
|
889
1020
|
/**
|
|
890
|
-
*
|
|
1021
|
+
* A store credit account owned by the customer. Store credit is a form of payment that merchants can issue to customers for returns, refunds, or promotional purposes.
|
|
1022
|
+
* @publicDocs
|
|
891
1023
|
*/
|
|
892
1024
|
export interface StoreCreditAccount {
|
|
893
1025
|
/**
|
|
894
|
-
* A globally-unique identifier
|
|
1026
|
+
* A globally-unique identifier for the store credit account in the format `gid://shopify/StoreCreditAccount/<id>`.
|
|
895
1027
|
* @example 'gid://shopify/StoreCreditAccount/1'
|
|
896
1028
|
*/
|
|
897
1029
|
id: string;
|
|
898
1030
|
/**
|
|
899
|
-
* The
|
|
1031
|
+
* The remaining balance available in this store credit account. This reflects the amount that can still be applied toward purchases.
|
|
900
1032
|
*/
|
|
901
1033
|
balance: Money;
|
|
902
1034
|
}
|
|
903
1035
|
|
|
904
1036
|
/**
|
|
905
|
-
*
|
|
906
|
-
*
|
|
1037
|
+
* A group of cart lines that share the same set of delivery options. For example, physical items may form one delivery group while digital items form another.
|
|
1038
|
+
* @publicDocs
|
|
907
1039
|
*/
|
|
908
1040
|
export interface DeliveryGroup {
|
|
909
1041
|
/**
|
|
910
|
-
* The cart
|
|
1042
|
+
* The cart lines included in this delivery group. Each reference contains the ID of the associated cart line.
|
|
911
1043
|
*/
|
|
912
1044
|
targetedCartLines: CartLineReference[];
|
|
913
1045
|
|
|
914
1046
|
/**
|
|
915
|
-
* The delivery options
|
|
1047
|
+
* The list of delivery options the buyer can choose from for this group, such as standard shipping, express shipping, or local pickup.
|
|
916
1048
|
*/
|
|
917
1049
|
deliveryOptions: DeliveryOption[];
|
|
918
1050
|
|
|
919
1051
|
/**
|
|
920
|
-
* The
|
|
1052
|
+
* The delivery option that the buyer selected for this group. The value is `undefined` if no option has been selected yet.
|
|
921
1053
|
*/
|
|
922
1054
|
selectedDeliveryOption?: DeliveryOptionReference;
|
|
923
1055
|
|
|
924
1056
|
/**
|
|
925
|
-
* The type
|
|
1057
|
+
* The purchase type for this delivery group. `'oneTimePurchase'` for standard orders, or `'subscription'` for items on a recurring delivery schedule.
|
|
926
1058
|
*/
|
|
927
1059
|
groupType: DeliveryGroupType;
|
|
928
1060
|
|
|
929
1061
|
/**
|
|
930
|
-
* Whether delivery is required for the
|
|
1062
|
+
* Whether physical delivery is required for the items in this group. Returns `false` for digital products, services, or other items that don't need shipping.
|
|
931
1063
|
*/
|
|
932
1064
|
isDeliveryRequired: boolean;
|
|
933
1065
|
}
|
|
934
1066
|
|
|
935
1067
|
/**
|
|
936
|
-
* The
|
|
1068
|
+
* The purchase type for a delivery group: `'oneTimePurchase'` for standard orders or `'subscription'` for recurring deliveries.
|
|
1069
|
+
* @publicDocs
|
|
937
1070
|
*/
|
|
938
1071
|
export type DeliveryGroupType = 'oneTimePurchase' | 'subscription';
|
|
939
1072
|
|
|
940
1073
|
/**
|
|
941
|
-
*
|
|
1074
|
+
* A reference to a cart line within a delivery group, identified by the cart line's ID.
|
|
1075
|
+
* @publicDocs
|
|
942
1076
|
*/
|
|
943
1077
|
export interface CartLineReference {
|
|
944
1078
|
/**
|
|
945
|
-
* The
|
|
1079
|
+
* The ID of the cart line that belongs to this delivery group, matching a `CartLine.id` value.
|
|
946
1080
|
*/
|
|
947
1081
|
id: string;
|
|
948
1082
|
}
|
|
949
1083
|
|
|
950
1084
|
/**
|
|
951
|
-
*
|
|
1085
|
+
* A reference to the delivery option selected by the buyer for a delivery group.
|
|
1086
|
+
* @publicDocs
|
|
952
1087
|
*/
|
|
953
1088
|
export interface DeliveryOptionReference {
|
|
954
1089
|
/**
|
|
955
|
-
* The
|
|
1090
|
+
* The handle of the selected delivery option, matching a `DeliveryOption.handle` value.
|
|
956
1091
|
*/
|
|
957
1092
|
handle: string;
|
|
958
1093
|
}
|
|
959
1094
|
|
|
960
1095
|
/**
|
|
961
|
-
*
|
|
1096
|
+
* The base properties shared by all delivery option types, including shipping, local pickup, and pickup point options.
|
|
1097
|
+
* @publicDocs
|
|
962
1098
|
*/
|
|
963
1099
|
export interface DeliveryOption {
|
|
964
1100
|
/**
|
|
965
|
-
*
|
|
1101
|
+
* A unique identifier for this delivery option within the checkout session. Use this handle to match against `DeliveryOptionReference.handle`.
|
|
966
1102
|
*/
|
|
967
1103
|
handle: string;
|
|
968
1104
|
|
|
969
1105
|
/**
|
|
970
|
-
* The
|
|
1106
|
+
* The display name of the delivery option shown to the buyer, such as "Standard Shipping" or "Express Delivery". The value is `undefined` if no title is set.
|
|
971
1107
|
*/
|
|
972
1108
|
title?: string;
|
|
973
1109
|
|
|
974
1110
|
/**
|
|
975
|
-
*
|
|
1111
|
+
* Additional details about the delivery option, such as estimated delivery time or service level. The value is `undefined` if no description is set.
|
|
976
1112
|
*/
|
|
977
1113
|
description?: string;
|
|
978
1114
|
}
|
|
979
1115
|
|
|
980
1116
|
/**
|
|
981
|
-
*
|
|
1117
|
+
* A delivery option where items are shipped to the buyer's address, either via a carrier (`'shipping'`) or through a local delivery service (`'local'`).
|
|
1118
|
+
* @publicDocs
|
|
982
1119
|
*/
|
|
983
1120
|
export interface ShippingOption extends DeliveryOption {
|
|
984
1121
|
/**
|
|
985
|
-
* The
|
|
1122
|
+
* The delivery method. `'shipping'` for carrier-based delivery to the buyer's address, or `'local'` for same-day or local courier delivery.
|
|
986
1123
|
*/
|
|
987
1124
|
type: 'shipping' | 'local';
|
|
988
1125
|
|
|
989
1126
|
/**
|
|
990
|
-
*
|
|
1127
|
+
* The shipping carrier responsible for delivering the items, such as USPS, FedEx, or a custom carrier.
|
|
991
1128
|
*/
|
|
992
1129
|
carrier: ShippingOptionCarrier;
|
|
993
1130
|
|
|
994
1131
|
/**
|
|
995
|
-
* The cost
|
|
1132
|
+
* The original shipping cost before any discounts are applied.
|
|
996
1133
|
*/
|
|
997
1134
|
cost: Money;
|
|
998
1135
|
|
|
999
1136
|
/**
|
|
1000
|
-
* The cost
|
|
1137
|
+
* The final shipping cost after any shipping discounts have been applied. Compare with `cost` to determine the discount amount.
|
|
1001
1138
|
*/
|
|
1002
1139
|
costAfterDiscounts: Money;
|
|
1003
1140
|
|
|
1004
1141
|
/**
|
|
1005
|
-
*
|
|
1142
|
+
* The estimated delivery timeline, including the expected time in transit.
|
|
1006
1143
|
*/
|
|
1007
1144
|
deliveryEstimate: DeliveryEstimate;
|
|
1008
1145
|
}
|
|
1009
1146
|
|
|
1147
|
+
/**
|
|
1148
|
+
* @publicDocs
|
|
1149
|
+
*/
|
|
1010
1150
|
export interface DeliveryEstimate {
|
|
1011
1151
|
/**
|
|
1012
|
-
* The estimated time
|
|
1152
|
+
* The estimated transit time for the delivery, expressed as a range in seconds. For example, a range of `259200` to `432000` represents 3 to 5 days.
|
|
1013
1153
|
*/
|
|
1014
1154
|
timeInTransit?: NumberRange;
|
|
1015
1155
|
}
|
|
1016
1156
|
|
|
1157
|
+
/**
|
|
1158
|
+
* @publicDocs
|
|
1159
|
+
*/
|
|
1017
1160
|
export interface ShippingOptionCarrier {
|
|
1018
1161
|
/**
|
|
1019
|
-
* The name of the carrier.
|
|
1162
|
+
* The display name of the shipping carrier, such as "USPS", "FedEx", or "Canada Post". The value is `undefined` if the carrier name is unavailable.
|
|
1020
1163
|
*/
|
|
1021
1164
|
name?: string;
|
|
1022
1165
|
}
|
|
1023
1166
|
|
|
1167
|
+
/**
|
|
1168
|
+
* @publicDocs
|
|
1169
|
+
*/
|
|
1024
1170
|
export interface PickupPointOption extends DeliveryOption {
|
|
1025
1171
|
/**
|
|
1026
|
-
* The
|
|
1172
|
+
* The delivery method. Always `'pickupPoint'` for pickup point options.
|
|
1027
1173
|
*/
|
|
1028
1174
|
type: 'pickupPoint';
|
|
1029
1175
|
|
|
1030
1176
|
/**
|
|
1031
|
-
*
|
|
1177
|
+
* The carrier responsible for shipping items to the pickup point location.
|
|
1032
1178
|
*/
|
|
1033
1179
|
carrier: PickupPointCarrier;
|
|
1034
1180
|
|
|
1035
1181
|
/**
|
|
1036
|
-
* The cost to ship to this pickup point.
|
|
1182
|
+
* The original cost to ship items to this pickup point before any discounts.
|
|
1037
1183
|
*/
|
|
1038
1184
|
cost: Money;
|
|
1039
1185
|
|
|
1040
1186
|
/**
|
|
1041
|
-
* The cost to ship to this pickup point
|
|
1187
|
+
* The final cost to ship to this pickup point after discounts have been applied.
|
|
1042
1188
|
*/
|
|
1043
1189
|
costAfterDiscounts: Money;
|
|
1044
1190
|
|
|
1045
1191
|
/**
|
|
1046
|
-
* The location
|
|
1192
|
+
* The physical location of the pickup point, including its name, address, and unique handle.
|
|
1047
1193
|
*/
|
|
1048
1194
|
location: PickupPointLocation;
|
|
1049
1195
|
}
|
|
1050
1196
|
|
|
1197
|
+
/**
|
|
1198
|
+
* @publicDocs
|
|
1199
|
+
*/
|
|
1051
1200
|
export interface PickupLocationOption extends DeliveryOption {
|
|
1052
1201
|
/**
|
|
1053
|
-
* The
|
|
1202
|
+
* The delivery method. Always `'pickup'` for merchant pickup location options.
|
|
1054
1203
|
*/
|
|
1055
1204
|
type: 'pickup';
|
|
1056
1205
|
|
|
1057
1206
|
/**
|
|
1058
|
-
* The location
|
|
1207
|
+
* The physical location where the buyer can pick up their order, including the store name and address.
|
|
1059
1208
|
*/
|
|
1060
1209
|
location: PickupLocation;
|
|
1061
1210
|
}
|
|
1062
1211
|
|
|
1063
|
-
|
|
1212
|
+
/**
|
|
1213
|
+
* @publicDocs
|
|
1214
|
+
*/
|
|
1215
|
+
export interface PickupLocation {
|
|
1064
1216
|
/**
|
|
1065
|
-
* The name of the pickup location.
|
|
1217
|
+
* The display name of the pickup location, such as the store or warehouse name. The value is `undefined` if no name is set.
|
|
1066
1218
|
*/
|
|
1067
1219
|
name?: string;
|
|
1068
1220
|
|
|
1069
1221
|
/**
|
|
1070
|
-
* The address of the pickup location.
|
|
1222
|
+
* The physical mailing address of the pickup location where the buyer collects their order.
|
|
1071
1223
|
*/
|
|
1072
1224
|
address: MailingAddress;
|
|
1073
1225
|
}
|
|
1074
1226
|
|
|
1075
|
-
|
|
1227
|
+
/**
|
|
1228
|
+
* @publicDocs
|
|
1229
|
+
*/
|
|
1230
|
+
export interface PickupPointLocation {
|
|
1076
1231
|
/**
|
|
1077
|
-
* The name of the pickup point.
|
|
1232
|
+
* The display name of the pickup point, such as a locker location or partner store name. The value is `undefined` if no name is set.
|
|
1078
1233
|
*/
|
|
1079
1234
|
name?: string;
|
|
1080
1235
|
|
|
1081
1236
|
/**
|
|
1082
|
-
*
|
|
1237
|
+
* A unique identifier for this pickup point within the carrier's network.
|
|
1083
1238
|
*/
|
|
1084
1239
|
handle: string;
|
|
1085
1240
|
|
|
1086
1241
|
/**
|
|
1087
|
-
* The address of the pickup point.
|
|
1242
|
+
* The physical mailing address of the pickup point.
|
|
1088
1243
|
*/
|
|
1089
1244
|
address: MailingAddress;
|
|
1090
1245
|
}
|
|
1091
1246
|
|
|
1092
|
-
|
|
1247
|
+
/**
|
|
1248
|
+
* @publicDocs
|
|
1249
|
+
*/
|
|
1250
|
+
export interface PickupPointCarrier {
|
|
1093
1251
|
/**
|
|
1094
|
-
*
|
|
1252
|
+
* A code that uniquely identifies the carrier within Shopify's system, such as a SCAC code. The value is `undefined` if no code is available.
|
|
1095
1253
|
*/
|
|
1096
1254
|
code?: string;
|
|
1097
1255
|
|
|
1098
1256
|
/**
|
|
1099
|
-
* The name of the carrier.
|
|
1257
|
+
* The display name of the carrier that operates this pickup point network. The value is `undefined` if the carrier name is unavailable.
|
|
1100
1258
|
*/
|
|
1101
1259
|
name?: string;
|
|
1102
1260
|
}
|
|
1103
1261
|
|
|
1262
|
+
/**
|
|
1263
|
+
* @publicDocs
|
|
1264
|
+
*/
|
|
1104
1265
|
export interface NumberRange {
|
|
1105
1266
|
/**
|
|
1106
|
-
* The
|
|
1267
|
+
* The minimum value of the range. The value is `undefined` if there's no lower bound.
|
|
1107
1268
|
*/
|
|
1108
1269
|
lower?: number;
|
|
1109
1270
|
|
|
1110
1271
|
/**
|
|
1111
|
-
* The
|
|
1272
|
+
* The maximum value of the range. The value is `undefined` if there's no upper bound.
|
|
1112
1273
|
*/
|
|
1113
1274
|
upper?: number;
|
|
1114
1275
|
}
|
|
1115
1276
|
|
|
1116
1277
|
/**
|
|
1117
1278
|
* Information about an order that was placed.
|
|
1279
|
+
* @publicDocs
|
|
1118
1280
|
*/
|
|
1119
1281
|
export interface Order {
|
|
1120
1282
|
/**
|
|
1121
|
-
* A globally-unique identifier.
|
|
1283
|
+
* A globally-unique identifier for the order in the format `gid://shopify/Order/<id>`. Use this to reference the order in the [GraphQL Admin API](/docs/api/admin-graphql).
|
|
1284
|
+
*
|
|
1122
1285
|
* @example 'gid://shopify/Order/1'
|
|
1123
1286
|
*/
|
|
1124
1287
|
id: string;
|
|
1288
|
+
|
|
1125
1289
|
/**
|
|
1126
|
-
*
|
|
1290
|
+
* The merchant-facing order number prefixed with `#`, such as `#1001`. This is the human-readable identifier displayed to both the merchant in Shopify admin and the buyer on the **Order status** page and in email confirmations.
|
|
1291
|
+
*
|
|
1127
1292
|
* @example '#1000'
|
|
1128
1293
|
*/
|
|
1129
1294
|
name: string;
|
|
1295
|
+
|
|
1130
1296
|
/**
|
|
1131
|
-
*
|
|
1297
|
+
* The date and time when the order was cancelled, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The value is `undefined` if the order hasn't been cancelled. Use this to conditionally display cancellation details to the buyer.
|
|
1132
1298
|
*/
|
|
1133
1299
|
cancelledAt?: string;
|
|
1300
|
+
|
|
1134
1301
|
/**
|
|
1135
|
-
*
|
|
1136
|
-
* Processing happens after the checkout has completed, and indicates that the order is available in the admin.
|
|
1302
|
+
* A randomly generated alphanumeric identifier for the order that the buyer can use when contacting the merchant about their purchase. This is always present for orders created in 2024 and onwards. For older orders, this value may be `undefined`.
|
|
1137
1303
|
*/
|
|
1138
|
-
|
|
1304
|
+
confirmationNumber?: string;
|
|
1305
|
+
|
|
1139
1306
|
/**
|
|
1140
|
-
*
|
|
1141
|
-
* For orders created in 2024 and onwards, the number will always be present. For orders created before that date, the number might not be present.
|
|
1307
|
+
* The date and time when the order was processed, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. An order is processed after the buyer completes checkout and the payment is captured, at which point the order becomes visible in Shopify admin.
|
|
1142
1308
|
*/
|
|
1143
|
-
|
|
1309
|
+
processedAt?: string;
|
|
1144
1310
|
}
|