@shopify/ui-extensions 2026.4.0-rc.3 → 2026.4.1
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/generated/generated.d.ts +62 -0
- package/build/ts/surfaces/admin/api/generated/generated.d.ts.map +1 -0
- 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 +2 -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 +2 -1
- 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 +1 -0
- package/build/ts/surfaces/checkout/components/Announcement.d.ts +34 -9
- package/build/ts/surfaces/checkout/components/Badge.d.ts +44 -3
- package/build/ts/surfaces/checkout/components/Banner.d.ts +60 -9
- package/build/ts/surfaces/checkout/components/Box.d.ts +50 -0
- package/build/ts/surfaces/checkout/components/Button.d.ts +10 -3
- package/build/ts/surfaces/checkout/components/Chat.d.ts +20 -0
- package/build/ts/surfaces/checkout/components/Checkbox.d.ts +10 -2
- package/build/ts/surfaces/checkout/components/Chip.d.ts +3 -3
- package/build/ts/surfaces/checkout/components/Choice.d.ts +2 -0
- package/build/ts/surfaces/checkout/components/ChoiceList.d.ts +10 -2
- package/build/ts/surfaces/checkout/components/Clickable.d.ts +31 -7
- package/build/ts/surfaces/checkout/components/ClickableChip.d.ts +15 -8
- package/build/ts/surfaces/checkout/components/ClipboardItem.d.ts +10 -2
- package/build/ts/surfaces/checkout/components/ConsentCheckbox.d.ts +16 -2
- package/build/ts/surfaces/checkout/components/ConsentPhoneField.d.ts +24 -10
- package/build/ts/surfaces/checkout/components/DateField.d.ts +24 -6
- package/build/ts/surfaces/checkout/components/DatePicker.d.ts +21 -5
- package/build/ts/surfaces/checkout/components/Details.d.ts +13 -8
- package/build/ts/surfaces/checkout/components/Divider.d.ts +1 -0
- package/build/ts/surfaces/checkout/components/DropZone.d.ts +15 -3
- package/build/ts/surfaces/checkout/components/EmailField.d.ts +18 -10
- package/build/ts/surfaces/checkout/components/Form.d.ts +9 -1
- package/build/ts/surfaces/checkout/components/Grid.d.ts +137 -0
- package/build/ts/surfaces/checkout/components/GridItem.d.ts +55 -0
- package/build/ts/surfaces/checkout/components/Heading.d.ts +1 -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 +10 -3
- package/build/ts/surfaces/checkout/components/ListItem.d.ts +1 -0
- package/build/ts/surfaces/checkout/components/Map.d.ts +68 -6
- package/build/ts/surfaces/checkout/components/MapMarker.d.ts +36 -8
- package/build/ts/surfaces/checkout/components/Modal.d.ts +52 -8
- package/build/ts/surfaces/checkout/components/MoneyField.d.ts +16 -8
- package/build/ts/surfaces/checkout/components/NumberField.d.ts +18 -10
- package/build/ts/surfaces/checkout/components/Option.d.ts +1 -0
- package/build/ts/surfaces/checkout/components/OrderedList.d.ts +1 -0
- package/build/ts/surfaces/checkout/components/Paragraph.d.ts +12 -0
- package/build/ts/surfaces/checkout/components/PasswordField.d.ts +18 -10
- package/build/ts/surfaces/checkout/components/PaymentIcon.d.ts +17 -1
- package/build/ts/surfaces/checkout/components/PhoneField.d.ts +18 -10
- package/build/ts/surfaces/checkout/components/Popover.d.ts +39 -22
- package/build/ts/surfaces/checkout/components/PressButton.d.ts +14 -6
- package/build/ts/surfaces/checkout/components/ProductThumbnail.d.ts +26 -1
- package/build/ts/surfaces/checkout/components/Progress.d.ts +27 -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 +55 -0
- package/build/ts/surfaces/checkout/components/Section.d.ts +4 -0
- package/build/ts/surfaces/checkout/components/Select.d.ts +14 -6
- package/build/ts/surfaces/checkout/components/Sheet.d.ts +40 -13
- package/build/ts/surfaces/checkout/components/SkeletonParagraph.d.ts +1 -0
- package/build/ts/surfaces/checkout/components/Spinner.d.ts +16 -0
- package/build/ts/surfaces/checkout/components/Stack.d.ts +110 -0
- package/build/ts/surfaces/checkout/components/Summary.d.ts +1 -0
- package/build/ts/surfaces/checkout/components/Switch.d.ts +10 -2
- package/build/ts/surfaces/checkout/components/Text.d.ts +18 -1
- package/build/ts/surfaces/checkout/components/TextArea.d.ts +16 -8
- package/build/ts/surfaces/checkout/components/TextField.d.ts +18 -10
- package/build/ts/surfaces/checkout/components/Time.d.ts +1 -0
- package/build/ts/surfaces/checkout/components/Tooltip.d.ts +21 -2
- package/build/ts/surfaces/checkout/components/UnorderedList.d.ts +1 -0
- package/build/ts/surfaces/checkout/components/UrlField.d.ts +18 -10
- package/build/ts/surfaces/checkout/components/components-shared.d.ts +728 -718
- package/build/ts/surfaces/checkout/components/components.d.ts +575 -297
- 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 +239 -17
- 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 +453 -296
- 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 -138
- 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 +1 -0
- package/build/ts/surfaces/customer-account/components/Announcement.d.ts +34 -9
- package/build/ts/surfaces/customer-account/components/Avatar.d.ts +43 -15
- package/build/ts/surfaces/customer-account/components/Badge.d.ts +44 -3
- package/build/ts/surfaces/customer-account/components/Banner.d.ts +60 -9
- package/build/ts/surfaces/customer-account/components/Box.d.ts +50 -0
- package/build/ts/surfaces/customer-account/components/Button.d.ts +10 -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 +10 -2
- package/build/ts/surfaces/customer-account/components/Chip.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/Choice.d.ts +2 -0
- package/build/ts/surfaces/customer-account/components/ChoiceList.d.ts +10 -2
- package/build/ts/surfaces/customer-account/components/Clickable.d.ts +31 -7
- package/build/ts/surfaces/customer-account/components/ClickableChip.d.ts +15 -8
- package/build/ts/surfaces/customer-account/components/ClipboardItem.d.ts +10 -2
- package/build/ts/surfaces/customer-account/components/ConsentCheckbox.d.ts +16 -2
- package/build/ts/surfaces/customer-account/components/ConsentPhoneField.d.ts +24 -10
- package/build/ts/surfaces/customer-account/components/CustomerAccountAction.d.ts +3 -3
- package/build/ts/surfaces/customer-account/components/DateField.d.ts +24 -6
- package/build/ts/surfaces/customer-account/components/DatePicker.d.ts +21 -5
- package/build/ts/surfaces/customer-account/components/Details.d.ts +13 -8
- package/build/ts/surfaces/customer-account/components/Divider.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/DropZone.d.ts +15 -3
- package/build/ts/surfaces/customer-account/components/EmailField.d.ts +18 -10
- package/build/ts/surfaces/customer-account/components/Form.d.ts +9 -1
- package/build/ts/surfaces/customer-account/components/Grid.d.ts +137 -0
- package/build/ts/surfaces/customer-account/components/GridItem.d.ts +55 -0
- package/build/ts/surfaces/customer-account/components/Heading.d.ts +1 -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 +10 -3
- package/build/ts/surfaces/customer-account/components/ListItem.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/Map.d.ts +68 -6
- package/build/ts/surfaces/customer-account/components/MapMarker.d.ts +36 -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 +16 -8
- package/build/ts/surfaces/customer-account/components/NumberField.d.ts +18 -10
- package/build/ts/surfaces/customer-account/components/Option.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/OrderedList.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/Page.d.ts +5 -5
- package/build/ts/surfaces/customer-account/components/Paragraph.d.ts +12 -0
- package/build/ts/surfaces/customer-account/components/PasswordField.d.ts +18 -10
- package/build/ts/surfaces/customer-account/components/PaymentIcon.d.ts +17 -1
- package/build/ts/surfaces/customer-account/components/PhoneField.d.ts +18 -10
- package/build/ts/surfaces/customer-account/components/Popover.d.ts +39 -22
- package/build/ts/surfaces/customer-account/components/PressButton.d.ts +14 -6
- package/build/ts/surfaces/customer-account/components/ProductThumbnail.d.ts +26 -1
- package/build/ts/surfaces/customer-account/components/Progress.d.ts +27 -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 +55 -0
- package/build/ts/surfaces/customer-account/components/Section.d.ts +4 -0
- package/build/ts/surfaces/customer-account/components/Select.d.ts +14 -6
- package/build/ts/surfaces/customer-account/components/Sheet.d.ts +40 -13
- package/build/ts/surfaces/customer-account/components/SkeletonParagraph.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/Spinner.d.ts +16 -0
- package/build/ts/surfaces/customer-account/components/Stack.d.ts +110 -0
- package/build/ts/surfaces/customer-account/components/Summary.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/Switch.d.ts +10 -2
- package/build/ts/surfaces/customer-account/components/Text.d.ts +18 -1
- package/build/ts/surfaces/customer-account/components/TextArea.d.ts +16 -8
- package/build/ts/surfaces/customer-account/components/TextField.d.ts +18 -10
- package/build/ts/surfaces/customer-account/components/Time.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/Tooltip.d.ts +21 -2
- package/build/ts/surfaces/customer-account/components/UnorderedList.d.ts +1 -0
- package/build/ts/surfaces/customer-account/components/UrlField.d.ts +18 -10
- package/build/ts/surfaces/customer-account/components/components-shared.d.ts +728 -718
- package/build/ts/surfaces/customer-account/components/components.d.ts +575 -297
- 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/generated/generated.ts +76 -0
- 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 +7 -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 +2 -1
- 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 +1 -0
- package/src/surfaces/checkout/components/Announcement.d.ts +34 -9
- package/src/surfaces/checkout/components/Badge.d.ts +44 -3
- package/src/surfaces/checkout/components/Banner.d.ts +60 -9
- package/src/surfaces/checkout/components/Box.d.ts +50 -0
- package/src/surfaces/checkout/components/Button.d.ts +10 -3
- package/src/surfaces/checkout/components/Chat.d.ts +20 -0
- package/src/surfaces/checkout/components/Checkbox.d.ts +10 -2
- package/src/surfaces/checkout/components/Chip.d.ts +3 -3
- package/src/surfaces/checkout/components/Choice.d.ts +2 -0
- package/src/surfaces/checkout/components/ChoiceList.d.ts +10 -2
- package/src/surfaces/checkout/components/Clickable.d.ts +31 -7
- package/src/surfaces/checkout/components/ClickableChip.d.ts +15 -8
- package/src/surfaces/checkout/components/ClipboardItem.d.ts +10 -2
- package/src/surfaces/checkout/components/ConsentCheckbox.d.ts +16 -2
- package/src/surfaces/checkout/components/ConsentPhoneField.d.ts +24 -10
- package/src/surfaces/checkout/components/DateField.d.ts +24 -6
- package/src/surfaces/checkout/components/DatePicker.d.ts +21 -5
- package/src/surfaces/checkout/components/Details.d.ts +13 -8
- package/src/surfaces/checkout/components/Divider.d.ts +1 -0
- package/src/surfaces/checkout/components/DropZone.d.ts +15 -3
- package/src/surfaces/checkout/components/EmailField.d.ts +18 -10
- package/src/surfaces/checkout/components/Form.d.ts +9 -1
- package/src/surfaces/checkout/components/Grid.d.ts +137 -0
- package/src/surfaces/checkout/components/GridItem.d.ts +55 -0
- package/src/surfaces/checkout/components/Heading.d.ts +1 -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 +10 -3
- package/src/surfaces/checkout/components/ListItem.d.ts +1 -0
- package/src/surfaces/checkout/components/Map.d.ts +68 -6
- package/src/surfaces/checkout/components/MapMarker.d.ts +36 -8
- package/src/surfaces/checkout/components/Modal.d.ts +52 -8
- package/src/surfaces/checkout/components/MoneyField.d.ts +16 -8
- package/src/surfaces/checkout/components/NumberField.d.ts +18 -10
- package/src/surfaces/checkout/components/Option.d.ts +1 -0
- package/src/surfaces/checkout/components/OrderedList.d.ts +1 -0
- package/src/surfaces/checkout/components/Paragraph.d.ts +12 -0
- package/src/surfaces/checkout/components/PasswordField.d.ts +18 -10
- package/src/surfaces/checkout/components/PaymentIcon.d.ts +17 -1
- package/src/surfaces/checkout/components/PhoneField.d.ts +18 -10
- package/src/surfaces/checkout/components/Popover.d.ts +39 -22
- package/src/surfaces/checkout/components/PressButton.d.ts +14 -6
- package/src/surfaces/checkout/components/ProductThumbnail.d.ts +26 -1
- package/src/surfaces/checkout/components/Progress.d.ts +27 -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 +55 -0
- package/src/surfaces/checkout/components/Section.d.ts +4 -0
- package/src/surfaces/checkout/components/Select.d.ts +14 -6
- package/src/surfaces/checkout/components/Sheet.d.ts +40 -13
- package/src/surfaces/checkout/components/SkeletonParagraph.d.ts +1 -0
- package/src/surfaces/checkout/components/Spinner.d.ts +16 -0
- package/src/surfaces/checkout/components/Stack.d.ts +110 -0
- package/src/surfaces/checkout/components/Summary.d.ts +1 -0
- package/src/surfaces/checkout/components/Switch.d.ts +10 -2
- package/src/surfaces/checkout/components/Text.d.ts +18 -1
- package/src/surfaces/checkout/components/TextArea.d.ts +16 -8
- package/src/surfaces/checkout/components/TextField.d.ts +18 -10
- package/src/surfaces/checkout/components/Time.d.ts +1 -0
- package/src/surfaces/checkout/components/Tooltip.d.ts +21 -2
- package/src/surfaces/checkout/components/UnorderedList.d.ts +1 -0
- package/src/surfaces/checkout/components/UrlField.d.ts +18 -10
- package/src/surfaces/checkout/components/components-shared.d.ts +728 -718
- package/src/surfaces/checkout/components/components.d.ts +575 -297
- 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 +244 -19
- package/src/surfaces/customer-account/api/order-status/order-status.ts +460 -296
- package/src/surfaces/customer-account/api/shared.ts +210 -138
- 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,297 @@ 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/apps/build/customer-accounts/metafields#create-the-metafield-definition)
|
|
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
|
-
* 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/
|
|
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/metafields#app-owned-metafields) 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
|
-
*
|
|
222
|
-
* @see https://shopify.dev/docs/apps/app-extensions/configuration#targets
|
|
287
|
+
* Learn more about [targets](/docs/api/customer-account-ui-extensions/{API_VERSION}/targets) and [target configuration](/docs/api/customer-account-ui-extensions/{API_VERSION}#configuration).
|
|
223
288
|
*
|
|
224
289
|
* @deprecated Deprecated as of version `2023-07`, use `extension.target` instead.
|
|
225
290
|
*/
|
|
226
291
|
extensionPoint: Target;
|
|
227
292
|
|
|
228
293
|
/**
|
|
229
|
-
* A list of
|
|
294
|
+
* A list of line items in the order. Each line includes the merchandise, quantity, cost,
|
|
295
|
+
* custom attributes, and discount allocations.
|
|
230
296
|
*/
|
|
231
297
|
lines: SubscribableSignalLike<CartLine[]>;
|
|
232
298
|
|
|
233
299
|
/**
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
* [
|
|
237
|
-
*
|
|
300
|
+
* The buyer's locale, currency, time zone, country, and market context for the order.
|
|
301
|
+
* Use these values to adapt your extension's content to the buyer's region. For formatted
|
|
302
|
+
* dates, numbers, and translated strings, use the [Localization API](/docs/api/customer-account-ui-extensions/{API_VERSION}/target-apis/platform-apis/localization-api)
|
|
303
|
+
* instead.
|
|
238
304
|
*/
|
|
239
305
|
localization: OrderStatusLocalization;
|
|
240
306
|
|
|
241
307
|
/**
|
|
242
308
|
* A note left by the customer to the merchant, either in their cart or during checkout.
|
|
309
|
+
* The value is `undefined` if no note was provided.
|
|
243
310
|
*/
|
|
244
311
|
note: SubscribableSignalLike<string | undefined>;
|
|
245
312
|
|
|
246
313
|
/**
|
|
247
|
-
*
|
|
314
|
+
* The order that was placed after checkout completion. Includes the order ID,
|
|
315
|
+
* display name, confirmation number, and timestamps for processing and cancellation.
|
|
316
|
+
* The value is `undefined` if the order hasn't been fully processed yet.
|
|
248
317
|
*/
|
|
249
318
|
order: SubscribableSignalLike<Order | undefined>;
|
|
250
319
|
|
|
251
320
|
/**
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
321
|
+
* The token that identifies the checkout session used to create the order. Use this value
|
|
322
|
+
* to correlate the order with analytics events or backend API calls. This matches the
|
|
323
|
+
* `token` field in the [WebPixel checkout payload](/docs/api/pixels/customer-events#checkout).
|
|
324
|
+
* The value is `undefined` if the checkout token is unavailable.
|
|
256
325
|
*/
|
|
257
326
|
checkoutToken: SubscribableSignalLike<CheckoutToken | undefined>;
|
|
258
327
|
|
|
259
328
|
/**
|
|
260
|
-
* The
|
|
261
|
-
*
|
|
262
|
-
*
|
|
329
|
+
* The shipping address that the buyer provided for the order. This is where physical goods
|
|
330
|
+
* are delivered. The value is `undefined` if the order contains only digital products or
|
|
331
|
+
* if a shipping address wasn't required.
|
|
263
332
|
*/
|
|
264
333
|
shippingAddress?: SubscribableSignalLike<MailingAddress | undefined>;
|
|
265
334
|
|
|
266
335
|
/**
|
|
267
|
-
* The
|
|
268
|
-
*
|
|
269
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
336
|
+
* The billing address associated with the buyer's payment method for the order. The value
|
|
337
|
+
* is `undefined` if the order doesn't have a billing address on file.
|
|
270
338
|
*/
|
|
271
339
|
billingAddress?: SubscribableSignalLike<MailingAddress | undefined>;
|
|
272
340
|
|
|
273
|
-
/**
|
|
341
|
+
/**
|
|
342
|
+
* The shop where the order was placed. Includes the shop ID, name, primary
|
|
343
|
+
* storefront URL, and myshopify.com domain.
|
|
344
|
+
*/
|
|
274
345
|
shop: Shop;
|
|
275
346
|
|
|
276
347
|
/**
|
|
277
|
-
* The
|
|
348
|
+
* 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
349
|
*
|
|
279
350
|
* @example 'unstable'
|
|
280
351
|
*/
|
|
281
352
|
version: Version;
|
|
282
353
|
|
|
283
354
|
/**
|
|
284
|
-
*
|
|
355
|
+
* Triggers a login prompt if the customer is viewing a pre-authenticated **Order status** page.
|
|
356
|
+
* Use this to require full authentication before displaying sensitive information in your extension.
|
|
285
357
|
*/
|
|
286
358
|
requireLogin: () => Promise<void>;
|
|
287
359
|
|
|
288
360
|
/**
|
|
289
|
-
* The authentication
|
|
361
|
+
* 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
362
|
*/
|
|
291
363
|
authenticationState: SubscribableSignalLike<AuthenticationState>;
|
|
292
364
|
}
|
|
293
365
|
|
|
366
|
+
/**
|
|
367
|
+
* Information about the buyer who placed the order.
|
|
368
|
+
*
|
|
369
|
+
* {% 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.
|
|
370
|
+
* @publicDocs
|
|
371
|
+
*/
|
|
294
372
|
export interface OrderStatusBuyerIdentity {
|
|
295
373
|
/**
|
|
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).
|
|
374
|
+
* The buyer's customer account, including their ID and whether they have accepted marketing.
|
|
375
|
+
* The value is `undefined` if the buyer is a guest or hasn't logged in yet.
|
|
300
376
|
*/
|
|
301
377
|
customer: SubscribableSignalLike<OrderStatusCustomer | undefined>;
|
|
302
378
|
|
|
303
379
|
/**
|
|
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).
|
|
380
|
+
* The email address associated with the order. This is the email the buyer provided during
|
|
381
|
+
* checkout for order confirmation and communication. The value is `undefined` if the app
|
|
382
|
+
* doesn't have access to customer data.
|
|
308
383
|
*/
|
|
309
384
|
email: SubscribableSignalLike<string | undefined>;
|
|
310
385
|
|
|
311
386
|
/**
|
|
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).
|
|
387
|
+
* The phone number the buyer provided during checkout. The value is `undefined` if no phone
|
|
388
|
+
* number was provided or the app doesn't have access to customer data.
|
|
316
389
|
*/
|
|
317
390
|
phone: SubscribableSignalLike<string | undefined>;
|
|
318
391
|
|
|
319
392
|
/**
|
|
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).
|
|
393
|
+
* The company and company location that a B2B (business-to-business) customer is purchasing
|
|
394
|
+
* on behalf of. Use this to identify the business context of the order. The value is
|
|
395
|
+
* `undefined` if the buyer isn't a B2B customer.
|
|
325
396
|
*/
|
|
326
397
|
purchasingCompany: SubscribableSignalLike<
|
|
327
398
|
OrderStatusPurchasingCompany | undefined
|
|
@@ -330,335 +401,372 @@ export interface OrderStatusBuyerIdentity {
|
|
|
330
401
|
|
|
331
402
|
/**
|
|
332
403
|
* Information about a company that the business customer is purchasing on behalf of.
|
|
404
|
+
*
|
|
405
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
406
|
+
* @publicDocs
|
|
333
407
|
*/
|
|
334
408
|
export interface OrderStatusPurchasingCompany {
|
|
335
409
|
/**
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
410
|
+
* The company that the B2B customer is purchasing on behalf of, including the company ID, name, and optional external ID.
|
|
339
411
|
*/
|
|
340
412
|
company: OrderStatusCompany;
|
|
341
413
|
/**
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
414
|
+
* The specific company location where the order is being placed, including the location ID, name, and optional external ID.
|
|
345
415
|
*/
|
|
346
416
|
location: OrderStatusCompanyLocation;
|
|
347
417
|
}
|
|
348
418
|
|
|
419
|
+
/**
|
|
420
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
421
|
+
* @publicDocs
|
|
422
|
+
*/
|
|
349
423
|
export interface OrderStatusCompany {
|
|
350
424
|
/**
|
|
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).
|
|
425
|
+
* A globally-unique identifier for the company in the format `gid://shopify/Company/<id>`.
|
|
354
426
|
*/
|
|
355
427
|
id: string;
|
|
356
428
|
/**
|
|
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).
|
|
429
|
+
* The registered business name of the company, as configured by the merchant in Shopify admin.
|
|
360
430
|
*/
|
|
361
431
|
name: string;
|
|
362
432
|
/**
|
|
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).
|
|
433
|
+
* 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
434
|
*/
|
|
367
435
|
externalId?: string;
|
|
368
436
|
}
|
|
369
437
|
|
|
438
|
+
/**
|
|
439
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
440
|
+
* @publicDocs
|
|
441
|
+
*/
|
|
370
442
|
export interface OrderStatusCompanyLocation {
|
|
371
443
|
/**
|
|
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).
|
|
444
|
+
* A globally-unique identifier for the company location in the format `gid://shopify/CompanyLocation/<id>`.
|
|
375
445
|
*/
|
|
376
446
|
id: string;
|
|
377
447
|
/**
|
|
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).
|
|
448
|
+
* The display name of the company location, such as a branch office or warehouse name.
|
|
381
449
|
*/
|
|
382
450
|
name: string;
|
|
383
451
|
/**
|
|
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).
|
|
452
|
+
* 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
453
|
*/
|
|
388
454
|
externalId?: string;
|
|
389
455
|
}
|
|
390
456
|
|
|
457
|
+
/**
|
|
458
|
+
* @publicDocs
|
|
459
|
+
*/
|
|
391
460
|
export interface AppliedGiftCard {
|
|
392
461
|
/**
|
|
393
|
-
* The last four characters of the applied gift card's code.
|
|
462
|
+
* The last four characters of the applied gift card's code. The full code isn't available for security reasons.
|
|
394
463
|
*/
|
|
395
464
|
lastCharacters: string;
|
|
396
465
|
|
|
397
466
|
/**
|
|
398
|
-
* The amount of the applied gift card that
|
|
467
|
+
* The amount of the applied gift card that was used for this order.
|
|
399
468
|
*/
|
|
400
469
|
amountUsed: Money;
|
|
401
470
|
|
|
402
471
|
/**
|
|
403
|
-
* The
|
|
472
|
+
* The remaining balance of the applied gift card after the order was placed.
|
|
404
473
|
*/
|
|
405
474
|
balance: Money;
|
|
406
475
|
}
|
|
407
476
|
|
|
477
|
+
/**
|
|
478
|
+
* @publicDocs
|
|
479
|
+
*/
|
|
408
480
|
export interface Shop {
|
|
409
481
|
/**
|
|
410
|
-
*
|
|
482
|
+
* A globally-unique identifier for the shop in the format `gid://shopify/Shop/<id>`.
|
|
483
|
+
*
|
|
411
484
|
* @example 'gid://shopify/Shop/123'
|
|
412
485
|
*/
|
|
413
486
|
id: string;
|
|
487
|
+
|
|
414
488
|
/**
|
|
415
|
-
* The name of the shop.
|
|
489
|
+
* The display name of the shop as configured by the merchant in Shopify admin.
|
|
416
490
|
*/
|
|
417
491
|
name: string;
|
|
418
492
|
|
|
419
493
|
/**
|
|
420
|
-
* The primary storefront URL.
|
|
421
|
-
*
|
|
422
|
-
* > Caution:
|
|
423
|
-
* As of version `2024-10` this value will no longer have a trailing slash.
|
|
494
|
+
* 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
495
|
*/
|
|
425
496
|
storefrontUrl?: string;
|
|
497
|
+
|
|
426
498
|
/**
|
|
427
|
-
* The shop's myshopify.com domain.
|
|
499
|
+
* 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
500
|
*/
|
|
429
501
|
myshopifyDomain: string;
|
|
430
502
|
}
|
|
431
503
|
|
|
504
|
+
/**
|
|
505
|
+
* @publicDocs
|
|
506
|
+
*/
|
|
432
507
|
export interface CartCost {
|
|
433
508
|
/**
|
|
434
|
-
*
|
|
435
|
-
*
|
|
509
|
+
* The sum of all line item prices before shipping and taxes are applied. Use this value
|
|
510
|
+
* to display the base cost of the items the buyer purchased.
|
|
436
511
|
*/
|
|
437
512
|
subtotalAmount: SubscribableSignalLike<Money>;
|
|
438
513
|
|
|
439
514
|
/**
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
*
|
|
515
|
+
* The total shipping cost for the order, after any shipping discounts have been applied.
|
|
516
|
+
* The value is `undefined` if shipping costs haven't been calculated or aren't applicable
|
|
517
|
+
* (for example, for digital-only orders).
|
|
443
518
|
*/
|
|
444
519
|
totalShippingAmount: SubscribableSignalLike<Money | undefined>;
|
|
445
520
|
|
|
446
521
|
/**
|
|
447
|
-
*
|
|
448
|
-
*
|
|
449
|
-
* undefined if
|
|
522
|
+
* The total tax charged for the order. This may represent taxes added on top of item prices
|
|
523
|
+
* or taxes already included in product and shipping prices, depending on the store's tax
|
|
524
|
+
* configuration. The value is `undefined` if tax information is unavailable.
|
|
450
525
|
*/
|
|
451
526
|
totalTaxAmount: SubscribableSignalLike<Money | undefined>;
|
|
452
527
|
|
|
453
528
|
/**
|
|
454
|
-
*
|
|
455
|
-
*
|
|
456
|
-
* the information step might not have delivery costs calculated.
|
|
529
|
+
* The final amount the buyer paid for the order, including all line items, shipping, taxes,
|
|
530
|
+
* and discounts. Gift cards and store credits are excluded from this total.
|
|
457
531
|
*/
|
|
458
532
|
totalAmount: SubscribableSignalLike<Money>;
|
|
459
533
|
}
|
|
460
534
|
|
|
535
|
+
/**
|
|
536
|
+
* @publicDocs
|
|
537
|
+
*/
|
|
461
538
|
export interface CartLine {
|
|
462
539
|
/**
|
|
463
|
-
*
|
|
464
|
-
*
|
|
465
|
-
* ID before any call to `applyCartLinesChange` because you'll need the ID to
|
|
466
|
-
* create a `CartLineChange` object.
|
|
540
|
+
* 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.
|
|
541
|
+
*
|
|
467
542
|
* @example 'gid://shopify/CartLine/123'
|
|
468
543
|
*/
|
|
469
544
|
id: string;
|
|
470
545
|
|
|
471
546
|
/**
|
|
472
|
-
* The merchandise
|
|
547
|
+
* 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
548
|
*/
|
|
474
549
|
merchandise: Merchandise;
|
|
475
550
|
|
|
476
551
|
/**
|
|
477
|
-
* The
|
|
552
|
+
* The number of units of this merchandise that the buyer purchased.
|
|
478
553
|
*/
|
|
479
554
|
quantity: number;
|
|
480
555
|
|
|
481
556
|
/**
|
|
482
|
-
* The
|
|
557
|
+
* The cost breakdown for this line item, including the total price after any line-level discounts have been applied.
|
|
483
558
|
*/
|
|
484
559
|
cost: CartLineCost;
|
|
485
560
|
|
|
486
561
|
/**
|
|
487
|
-
*
|
|
562
|
+
* 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
563
|
*/
|
|
489
564
|
attributes: Attribute[];
|
|
490
565
|
|
|
491
566
|
/**
|
|
492
|
-
*
|
|
567
|
+
* 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
568
|
*/
|
|
494
569
|
discountAllocations: CartDiscountAllocation[];
|
|
495
570
|
|
|
496
571
|
/**
|
|
497
|
-
*
|
|
572
|
+
* 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
573
|
*/
|
|
499
574
|
lineComponents: CartLineComponentType[];
|
|
500
575
|
}
|
|
501
576
|
|
|
502
577
|
type CartLineComponentType = CartBundleLineComponent;
|
|
503
578
|
|
|
579
|
+
/**
|
|
580
|
+
* @publicDocs
|
|
581
|
+
*/
|
|
504
582
|
export interface CartBundleLineComponent {
|
|
583
|
+
/**
|
|
584
|
+
* The type of line component. Always `'bundle'` for bundle line components.
|
|
585
|
+
*/
|
|
505
586
|
type: 'bundle';
|
|
506
587
|
|
|
507
588
|
/**
|
|
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.
|
|
589
|
+
* 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
590
|
*
|
|
512
591
|
* @example 'gid://shopify/CartLineComponent/123'
|
|
513
592
|
*/
|
|
514
593
|
id: string;
|
|
515
594
|
|
|
516
595
|
/**
|
|
517
|
-
* The
|
|
596
|
+
* The product variant included in this bundle component. Use this to display product details for individual items within a bundle.
|
|
518
597
|
*/
|
|
519
598
|
merchandise: Merchandise;
|
|
520
599
|
|
|
521
600
|
/**
|
|
522
|
-
* The
|
|
601
|
+
* The number of units of this component included in the bundle.
|
|
523
602
|
*/
|
|
524
603
|
quantity: number;
|
|
525
604
|
|
|
526
605
|
/**
|
|
527
|
-
* The cost
|
|
606
|
+
* The cost breakdown for this bundle component, representing the portion of the bundle price attributed to this item.
|
|
528
607
|
*/
|
|
529
608
|
cost: CartLineCost;
|
|
530
609
|
|
|
531
610
|
/**
|
|
532
|
-
*
|
|
611
|
+
* Custom key-value pairs attached to this bundle component, such as personalization options specific to this item within the bundle.
|
|
533
612
|
*
|
|
534
613
|
* @example [{key: 'engraving', value: 'hello world'}]
|
|
535
614
|
*/
|
|
536
615
|
attributes: Attribute[];
|
|
537
616
|
}
|
|
538
617
|
|
|
618
|
+
/**
|
|
619
|
+
* @publicDocs
|
|
620
|
+
*/
|
|
539
621
|
export interface CartLineCost {
|
|
540
622
|
/**
|
|
541
|
-
* The total
|
|
542
|
-
* cart line.
|
|
623
|
+
* 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
624
|
*/
|
|
544
625
|
totalAmount: Money;
|
|
545
626
|
}
|
|
546
627
|
|
|
628
|
+
/**
|
|
629
|
+
* @publicDocs
|
|
630
|
+
*/
|
|
547
631
|
export interface Money {
|
|
548
632
|
/**
|
|
549
|
-
* The
|
|
633
|
+
* The decimal amount of the price. For example, `29.99` represents twenty-nine dollars and ninety-nine cents.
|
|
550
634
|
*/
|
|
551
635
|
amount: number;
|
|
636
|
+
|
|
552
637
|
/**
|
|
553
|
-
* The
|
|
638
|
+
* The three-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
639
|
+
*
|
|
554
640
|
* @example 'CAD' for Canadian dollar
|
|
555
641
|
*/
|
|
556
642
|
currencyCode: CurrencyCode;
|
|
557
643
|
}
|
|
558
644
|
|
|
645
|
+
/**
|
|
646
|
+
* @publicDocs
|
|
647
|
+
*/
|
|
559
648
|
export type Merchandise = ProductVariant;
|
|
560
649
|
|
|
650
|
+
/**
|
|
651
|
+
* @publicDocs
|
|
652
|
+
*/
|
|
561
653
|
export interface BaseMerchandise {
|
|
562
654
|
/**
|
|
563
|
-
*
|
|
655
|
+
* A globally-unique identifier for the merchandise.
|
|
564
656
|
*/
|
|
565
657
|
id: string;
|
|
566
658
|
}
|
|
567
659
|
|
|
660
|
+
/**
|
|
661
|
+
* @publicDocs
|
|
662
|
+
*/
|
|
568
663
|
export interface ProductVariant extends BaseMerchandise {
|
|
664
|
+
/**
|
|
665
|
+
* The type of merchandise. Always `'variant'` for product variants.
|
|
666
|
+
*/
|
|
569
667
|
type: 'variant';
|
|
570
668
|
|
|
571
669
|
/**
|
|
572
|
-
* A globally-unique identifier
|
|
670
|
+
* A globally-unique identifier for the product variant in the format `gid://shopify/ProductVariant/<id>`.
|
|
671
|
+
*
|
|
573
672
|
* @example 'gid://shopify/ProductVariant/123'
|
|
574
673
|
*/
|
|
575
674
|
id: string;
|
|
576
675
|
|
|
577
676
|
/**
|
|
578
|
-
* The product variant
|
|
677
|
+
* 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
678
|
*/
|
|
580
679
|
title: string;
|
|
581
680
|
|
|
582
681
|
/**
|
|
583
|
-
* The
|
|
682
|
+
* 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
683
|
*/
|
|
585
684
|
sku?: string;
|
|
586
685
|
|
|
587
686
|
/**
|
|
588
|
-
*
|
|
687
|
+
* 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
688
|
*/
|
|
590
689
|
subtitle?: string;
|
|
591
690
|
|
|
592
691
|
/**
|
|
593
|
-
*
|
|
594
|
-
* image if no image is available.
|
|
692
|
+
* 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
693
|
*/
|
|
596
694
|
image?: ImageDetails;
|
|
597
695
|
|
|
598
696
|
/**
|
|
599
|
-
*
|
|
697
|
+
* 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
698
|
*/
|
|
601
699
|
selectedOptions: SelectedOption[];
|
|
602
700
|
|
|
603
701
|
/**
|
|
604
|
-
* The product
|
|
702
|
+
* The parent product that this variant belongs to. Use this to access the product title, vendor, and type.
|
|
605
703
|
*/
|
|
606
704
|
product: Product;
|
|
607
705
|
|
|
608
706
|
/**
|
|
609
|
-
* Whether
|
|
707
|
+
* Whether this product variant requires physical shipping. Returns `false` for digital products, gift cards, and services.
|
|
610
708
|
*/
|
|
611
709
|
requiresShipping: boolean;
|
|
612
710
|
|
|
613
711
|
/**
|
|
614
|
-
* The selling plan associated with
|
|
712
|
+
* 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
713
|
*/
|
|
616
714
|
sellingPlan?: SellingPlan;
|
|
617
715
|
}
|
|
618
716
|
|
|
717
|
+
/**
|
|
718
|
+
* @publicDocs
|
|
719
|
+
*/
|
|
619
720
|
export interface Product {
|
|
620
721
|
/**
|
|
621
|
-
* A globally-unique identifier
|
|
722
|
+
* A globally-unique identifier for the product in the format `gid://shopify/Product/<id>`.
|
|
622
723
|
*/
|
|
623
724
|
id: string;
|
|
624
725
|
|
|
625
726
|
/**
|
|
626
|
-
* The product
|
|
727
|
+
* The name of the product's vendor or manufacturer, as set by the merchant in Shopify admin.
|
|
627
728
|
*/
|
|
628
729
|
vendor: string;
|
|
629
730
|
|
|
630
731
|
/**
|
|
631
|
-
* A categorization
|
|
732
|
+
* A merchant-defined categorization for the product, such as "Accessories" or "Clothing". Commonly used for filtering and organizing products in a storefront.
|
|
632
733
|
*/
|
|
633
734
|
productType: string;
|
|
634
735
|
}
|
|
635
736
|
|
|
737
|
+
/**
|
|
738
|
+
* @publicDocs
|
|
739
|
+
*/
|
|
636
740
|
export interface ImageDetails {
|
|
637
741
|
/**
|
|
638
|
-
* The
|
|
742
|
+
* The fully-qualified URL of the image. Use this to render the product or variant image in your extension.
|
|
639
743
|
*/
|
|
640
744
|
url: string;
|
|
641
745
|
|
|
642
746
|
/**
|
|
643
|
-
* The alternative text for the image.
|
|
747
|
+
* 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
748
|
*/
|
|
645
749
|
altText?: string;
|
|
646
750
|
}
|
|
647
751
|
|
|
752
|
+
/**
|
|
753
|
+
* @publicDocs
|
|
754
|
+
*/
|
|
648
755
|
export interface SelectedOption {
|
|
649
756
|
/**
|
|
650
|
-
* The name of the
|
|
757
|
+
* The name of the product option, such as "Size", "Color", or "Material".
|
|
651
758
|
*/
|
|
652
759
|
name: string;
|
|
653
760
|
|
|
654
761
|
/**
|
|
655
|
-
* The value
|
|
762
|
+
* The selected value for this option, such as "Medium", "Blue", or "Cotton".
|
|
656
763
|
*/
|
|
657
764
|
value: string;
|
|
658
765
|
}
|
|
659
766
|
|
|
660
767
|
/**
|
|
661
768
|
* A payment option presented to the buyer.
|
|
769
|
+
* @publicDocs
|
|
662
770
|
*/
|
|
663
771
|
export interface PaymentOption {
|
|
664
772
|
/**
|
|
@@ -677,7 +785,7 @@ export interface PaymentOption {
|
|
|
677
785
|
* | `paymentOnDelivery` | A payment that will be collected on delivery. |
|
|
678
786
|
* | `redeemable` | A redeemable payment option such as a gift card or store credit. |
|
|
679
787
|
* | `wallet` | An integrated wallet such as PayPal, Google Pay, Apple Pay, etc. |
|
|
680
|
-
* | `customOnsite` | A custom payment option that
|
|
788
|
+
* | `customOnsite` | A custom payment option that's processed through a checkout extension with a payments app. |
|
|
681
789
|
*/
|
|
682
790
|
type:
|
|
683
791
|
| 'creditCard'
|
|
@@ -692,77 +800,107 @@ export interface PaymentOption {
|
|
|
692
800
|
| 'customOnsite';
|
|
693
801
|
|
|
694
802
|
/**
|
|
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.
|
|
803
|
+
* 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
804
|
*/
|
|
699
805
|
handle: string;
|
|
700
806
|
}
|
|
701
807
|
|
|
702
808
|
/**
|
|
703
809
|
* A payment option selected by the buyer.
|
|
810
|
+
* @publicDocs
|
|
704
811
|
*/
|
|
705
812
|
export interface SelectedPaymentOption {
|
|
706
813
|
/**
|
|
707
|
-
* The
|
|
814
|
+
* The handle of the payment option the buyer selected, corresponding to a `PaymentOption.handle` value.
|
|
708
815
|
*
|
|
709
|
-
* See [availablePaymentOptions](
|
|
816
|
+
* See [availablePaymentOptions](/docs/api/customer-account-ui-extensions/{API_VERSION}/target-apis/order-apis/payments-api).
|
|
710
817
|
*/
|
|
711
818
|
handle: string;
|
|
712
819
|
}
|
|
713
820
|
|
|
821
|
+
/**
|
|
822
|
+
* @publicDocs
|
|
823
|
+
*/
|
|
714
824
|
export interface CartDiscountCode {
|
|
715
825
|
/**
|
|
716
|
-
* The code
|
|
826
|
+
* 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
827
|
*/
|
|
718
828
|
code: string;
|
|
719
829
|
}
|
|
830
|
+
/**
|
|
831
|
+
* A discount allocation represents a single discount applied to a specific line item or the overall order.
|
|
832
|
+
* When a discount applies to an order, Shopify splits the total discount amount across the affected line items
|
|
833
|
+
* as individual allocations. For example, a "10% off your order" discount is distributed proportionally across
|
|
834
|
+
* each line item rather than appearing as one lump sum.
|
|
835
|
+
*
|
|
836
|
+
* There are three types of discount allocations:
|
|
837
|
+
* - `CartCodeDiscountAllocation`: A discount applied using a code the buyer entered at checkout (for example, "SAVE10").
|
|
838
|
+
* - `CartAutomaticDiscountAllocation`: A discount the merchant configured in Shopify admin to apply automatically without a code.
|
|
839
|
+
* - `CartCustomDiscountAllocation`: A discount created programmatically by a [Shopify Function](/docs/apps/build/functions).
|
|
840
|
+
* @publicDocs
|
|
841
|
+
*/
|
|
720
842
|
export type CartDiscountAllocation =
|
|
721
843
|
| CartCodeDiscountAllocation
|
|
722
844
|
| CartAutomaticDiscountAllocation
|
|
723
845
|
| CartCustomDiscountAllocation;
|
|
724
846
|
|
|
847
|
+
/**
|
|
848
|
+
* The base properties shared by all discount allocation types.
|
|
849
|
+
* @publicDocs
|
|
850
|
+
*/
|
|
725
851
|
export interface CartDiscountAllocationBase {
|
|
726
852
|
/**
|
|
727
|
-
* The
|
|
853
|
+
* The monetary value that was deducted from the line item or order total by this discount allocation.
|
|
728
854
|
*/
|
|
729
855
|
discountedAmount: Money;
|
|
730
856
|
}
|
|
731
857
|
|
|
858
|
+
/**
|
|
859
|
+
* A discount allocation for a discount that was applied using a code the buyer entered at checkout.
|
|
860
|
+
* @publicDocs
|
|
861
|
+
*/
|
|
732
862
|
export interface CartCodeDiscountAllocation extends CartDiscountAllocationBase {
|
|
733
863
|
/**
|
|
734
|
-
* The code
|
|
864
|
+
* The discount code string that the buyer entered during checkout, such as "SAVE10" or "FREESHIP".
|
|
735
865
|
*/
|
|
736
866
|
code: string;
|
|
737
867
|
|
|
738
868
|
/**
|
|
739
|
-
* The type of
|
|
869
|
+
* The type of this discount allocation. Always `'code'` for discounts applied using a code entered by the buyer.
|
|
740
870
|
*/
|
|
741
871
|
type: 'code';
|
|
742
872
|
}
|
|
743
873
|
|
|
874
|
+
/**
|
|
875
|
+
* A discount allocation for a discount that the merchant configured to apply automatically in Shopify admin, without the buyer needing to enter a code.
|
|
876
|
+
* @publicDocs
|
|
877
|
+
*/
|
|
744
878
|
export interface CartAutomaticDiscountAllocation
|
|
745
879
|
extends CartDiscountAllocationBase {
|
|
746
880
|
/**
|
|
747
|
-
* The title of the automatic discount
|
|
881
|
+
* The merchant-defined title of the automatic discount as displayed to the buyer, such as "Summer Sale 10% Off".
|
|
748
882
|
*/
|
|
749
883
|
title: string;
|
|
750
884
|
|
|
751
885
|
/**
|
|
752
|
-
* The type of
|
|
886
|
+
* The type of this discount allocation. Always `'automatic'` for discounts configured to apply automatically without a code.
|
|
753
887
|
*/
|
|
754
888
|
type: 'automatic';
|
|
755
889
|
}
|
|
756
890
|
|
|
891
|
+
/**
|
|
892
|
+
* A discount allocation for a discount created by a [Shopify Function](/docs/apps/build/functions), such as a custom discount logic app.
|
|
893
|
+
* @publicDocs
|
|
894
|
+
*/
|
|
757
895
|
export interface CartCustomDiscountAllocation
|
|
758
896
|
extends CartDiscountAllocationBase {
|
|
759
897
|
/**
|
|
760
|
-
* The title of the custom discount
|
|
898
|
+
* The title of the custom discount as defined by the Shopify Function that created it.
|
|
761
899
|
*/
|
|
762
900
|
title: string;
|
|
763
901
|
|
|
764
902
|
/**
|
|
765
|
-
* The type of
|
|
903
|
+
* The type of this discount allocation. Always `'custom'` for discounts created by a Shopify Function.
|
|
766
904
|
*/
|
|
767
905
|
type: 'custom';
|
|
768
906
|
}
|
|
@@ -770,375 +908,401 @@ export interface CartCustomDiscountAllocation
|
|
|
770
908
|
/**
|
|
771
909
|
* Information about a customer who has previously purchased from this shop.
|
|
772
910
|
*
|
|
773
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
911
|
+
* {% 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.
|
|
912
|
+
* @publicDocs
|
|
774
913
|
*/
|
|
775
914
|
export interface OrderStatusCustomer {
|
|
776
915
|
/**
|
|
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'
|
|
916
|
+
* A globally-unique identifier for the customer in the format `gid://shopify/Customer/<id>`. 'gid://shopify/Customer/123'
|
|
782
917
|
*/
|
|
783
918
|
id: string;
|
|
784
919
|
/**
|
|
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).
|
|
920
|
+
* The email address associated with the customer's account. The value is `undefined` if the app doesn't have the required access level.
|
|
788
921
|
*/
|
|
789
922
|
email?: string;
|
|
790
923
|
/**
|
|
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).
|
|
924
|
+
* 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
925
|
*/
|
|
795
926
|
phone?: string;
|
|
796
927
|
/**
|
|
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).
|
|
928
|
+
* 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
929
|
*/
|
|
801
930
|
fullName?: string;
|
|
802
931
|
/**
|
|
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).
|
|
932
|
+
* The customer's first name. The value is `undefined` if the app doesn't have the required access level.
|
|
806
933
|
*/
|
|
807
934
|
firstName?: string;
|
|
808
935
|
/**
|
|
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).
|
|
936
|
+
* The customer's last name. The value is `undefined` if the app doesn't have the required access level.
|
|
812
937
|
*/
|
|
813
938
|
lastName?: string;
|
|
814
939
|
/**
|
|
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).
|
|
940
|
+
* The customer's profile image, such as a Gravatar avatar. Use this to personalize the extension UI for the logged-in buyer.
|
|
818
941
|
*/
|
|
819
942
|
image: ImageDetails;
|
|
820
943
|
/**
|
|
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).
|
|
944
|
+
* Whether the customer has opted in to receiving marketing communications from the merchant, such as email campaigns and promotional offers.
|
|
824
945
|
*/
|
|
825
946
|
acceptsMarketing: boolean;
|
|
826
947
|
/**
|
|
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).
|
|
948
|
+
* 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
949
|
*
|
|
831
950
|
* @private
|
|
832
951
|
*/
|
|
833
952
|
storeCreditAccounts: StoreCreditAccount[];
|
|
834
953
|
}
|
|
835
954
|
|
|
955
|
+
/**
|
|
956
|
+
* A string token that uniquely identifies the checkout session used to create the order.
|
|
957
|
+
* @publicDocs
|
|
958
|
+
*/
|
|
836
959
|
export type CheckoutToken = string;
|
|
837
960
|
|
|
838
961
|
/**
|
|
839
962
|
* Settings describing the behavior of the buyer's checkout.
|
|
963
|
+
* @publicDocs
|
|
840
964
|
*/
|
|
841
965
|
export interface CheckoutSettings {
|
|
842
966
|
/**
|
|
843
|
-
* The type of order
|
|
967
|
+
* The type of order created when checkout is completed:
|
|
968
|
+
*
|
|
969
|
+
* - `'DRAFT_ORDER'`: A draft order that must be manually reviewed and finalized by the merchant before it is processed.
|
|
970
|
+
* - `'ORDER'`: A standard order that's immediately processed and visible in Shopify admin.
|
|
844
971
|
*/
|
|
845
972
|
orderSubmission: 'DRAFT_ORDER' | 'ORDER';
|
|
846
973
|
/**
|
|
847
|
-
*
|
|
974
|
+
* 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
975
|
*/
|
|
849
976
|
paymentTermsTemplate?: PaymentTermsTemplate;
|
|
850
977
|
/**
|
|
851
|
-
* Settings
|
|
978
|
+
* Settings that control how the shipping address behaves during checkout, such as whether the buyer can edit the address.
|
|
852
979
|
*/
|
|
853
980
|
shippingAddress: ShippingAddressSettings;
|
|
854
981
|
}
|
|
855
982
|
|
|
856
983
|
/**
|
|
857
984
|
* Settings describing the behavior of the shipping address.
|
|
985
|
+
* @publicDocs
|
|
858
986
|
*/
|
|
859
987
|
export interface ShippingAddressSettings {
|
|
860
988
|
/**
|
|
861
|
-
*
|
|
989
|
+
* 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
990
|
*/
|
|
863
991
|
isEditable: boolean;
|
|
864
992
|
}
|
|
865
993
|
|
|
866
994
|
/**
|
|
867
|
-
*
|
|
995
|
+
* 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".
|
|
996
|
+
* @publicDocs
|
|
868
997
|
*/
|
|
869
998
|
export interface PaymentTermsTemplate {
|
|
870
999
|
/**
|
|
871
|
-
* A globally-unique
|
|
1000
|
+
* A globally-unique identifier for the payment terms template in the format `gid://shopify/PaymentTermsTemplate/<id>`.
|
|
872
1001
|
* @example 'gid://shopify/PaymentTermsTemplate/1'
|
|
873
1002
|
*/
|
|
874
1003
|
id: string;
|
|
875
1004
|
/**
|
|
876
|
-
* The name of the payment terms translated to the buyer's current language. See [localization.language](
|
|
1005
|
+
* 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/{API_VERSION}/apis/localization#standardapi-propertydetail-localization).
|
|
877
1006
|
*/
|
|
878
1007
|
name: string;
|
|
879
1008
|
/**
|
|
880
|
-
* The due date for
|
|
1009
|
+
* 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
1010
|
*/
|
|
882
1011
|
dueDate?: string;
|
|
883
1012
|
/**
|
|
884
|
-
* The number of days
|
|
1013
|
+
* 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
1014
|
*/
|
|
886
1015
|
dueInDays?: number;
|
|
887
1016
|
}
|
|
888
1017
|
|
|
889
1018
|
/**
|
|
890
|
-
*
|
|
1019
|
+
* 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.
|
|
1020
|
+
* @publicDocs
|
|
891
1021
|
*/
|
|
892
1022
|
export interface StoreCreditAccount {
|
|
893
1023
|
/**
|
|
894
|
-
* A globally-unique identifier
|
|
1024
|
+
* A globally-unique identifier for the store credit account in the format `gid://shopify/StoreCreditAccount/<id>`.
|
|
895
1025
|
* @example 'gid://shopify/StoreCreditAccount/1'
|
|
896
1026
|
*/
|
|
897
1027
|
id: string;
|
|
898
1028
|
/**
|
|
899
|
-
* The
|
|
1029
|
+
* The remaining balance available in this store credit account. This reflects the amount that can still be applied toward purchases.
|
|
900
1030
|
*/
|
|
901
1031
|
balance: Money;
|
|
902
1032
|
}
|
|
903
1033
|
|
|
904
1034
|
/**
|
|
905
|
-
*
|
|
906
|
-
*
|
|
1035
|
+
* 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.
|
|
1036
|
+
* @publicDocs
|
|
907
1037
|
*/
|
|
908
1038
|
export interface DeliveryGroup {
|
|
909
1039
|
/**
|
|
910
|
-
* The cart
|
|
1040
|
+
* The cart lines included in this delivery group. Each reference contains the ID of the associated cart line.
|
|
911
1041
|
*/
|
|
912
1042
|
targetedCartLines: CartLineReference[];
|
|
913
1043
|
|
|
914
1044
|
/**
|
|
915
|
-
* The delivery options
|
|
1045
|
+
* The list of delivery options the buyer can choose from for this group, such as standard shipping, express shipping, or local pickup.
|
|
916
1046
|
*/
|
|
917
1047
|
deliveryOptions: DeliveryOption[];
|
|
918
1048
|
|
|
919
1049
|
/**
|
|
920
|
-
* The
|
|
1050
|
+
* The delivery option that the buyer selected for this group. The value is `undefined` if no option has been selected yet.
|
|
921
1051
|
*/
|
|
922
1052
|
selectedDeliveryOption?: DeliveryOptionReference;
|
|
923
1053
|
|
|
924
1054
|
/**
|
|
925
|
-
* The type
|
|
1055
|
+
* The purchase type for this delivery group. `'oneTimePurchase'` for standard orders, or `'subscription'` for items on a recurring delivery schedule.
|
|
926
1056
|
*/
|
|
927
1057
|
groupType: DeliveryGroupType;
|
|
928
1058
|
|
|
929
1059
|
/**
|
|
930
|
-
* Whether delivery is required for the
|
|
1060
|
+
* 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
1061
|
*/
|
|
932
1062
|
isDeliveryRequired: boolean;
|
|
933
1063
|
}
|
|
934
1064
|
|
|
935
1065
|
/**
|
|
936
|
-
* The
|
|
1066
|
+
* The purchase type for a delivery group: `'oneTimePurchase'` for standard orders or `'subscription'` for recurring deliveries.
|
|
1067
|
+
* @publicDocs
|
|
937
1068
|
*/
|
|
938
1069
|
export type DeliveryGroupType = 'oneTimePurchase' | 'subscription';
|
|
939
1070
|
|
|
940
1071
|
/**
|
|
941
|
-
*
|
|
1072
|
+
* A reference to a cart line within a delivery group, identified by the cart line's ID.
|
|
1073
|
+
* @publicDocs
|
|
942
1074
|
*/
|
|
943
1075
|
export interface CartLineReference {
|
|
944
1076
|
/**
|
|
945
|
-
* The
|
|
1077
|
+
* The ID of the cart line that belongs to this delivery group, matching a `CartLine.id` value.
|
|
946
1078
|
*/
|
|
947
1079
|
id: string;
|
|
948
1080
|
}
|
|
949
1081
|
|
|
950
1082
|
/**
|
|
951
|
-
*
|
|
1083
|
+
* A reference to the delivery option selected by the buyer for a delivery group.
|
|
1084
|
+
* @publicDocs
|
|
952
1085
|
*/
|
|
953
1086
|
export interface DeliveryOptionReference {
|
|
954
1087
|
/**
|
|
955
|
-
* The
|
|
1088
|
+
* The handle of the selected delivery option, matching a `DeliveryOption.handle` value.
|
|
956
1089
|
*/
|
|
957
1090
|
handle: string;
|
|
958
1091
|
}
|
|
959
1092
|
|
|
960
1093
|
/**
|
|
961
|
-
*
|
|
1094
|
+
* The base properties shared by all delivery option types, including shipping, local pickup, and pickup point options.
|
|
1095
|
+
* @publicDocs
|
|
962
1096
|
*/
|
|
963
1097
|
export interface DeliveryOption {
|
|
964
1098
|
/**
|
|
965
|
-
*
|
|
1099
|
+
* A unique identifier for this delivery option within the checkout session. Use this handle to match against `DeliveryOptionReference.handle`.
|
|
966
1100
|
*/
|
|
967
1101
|
handle: string;
|
|
968
1102
|
|
|
969
1103
|
/**
|
|
970
|
-
* The
|
|
1104
|
+
* 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
1105
|
*/
|
|
972
1106
|
title?: string;
|
|
973
1107
|
|
|
974
1108
|
/**
|
|
975
|
-
*
|
|
1109
|
+
* Additional details about the delivery option, such as estimated delivery time or service level. The value is `undefined` if no description is set.
|
|
976
1110
|
*/
|
|
977
1111
|
description?: string;
|
|
978
1112
|
}
|
|
979
1113
|
|
|
980
1114
|
/**
|
|
981
|
-
*
|
|
1115
|
+
* A delivery option where items are shipped to the buyer's address, either via a carrier (`'shipping'`) or through a local delivery service (`'local'`).
|
|
1116
|
+
* @publicDocs
|
|
982
1117
|
*/
|
|
983
1118
|
export interface ShippingOption extends DeliveryOption {
|
|
984
1119
|
/**
|
|
985
|
-
* The
|
|
1120
|
+
* The delivery method. `'shipping'` for carrier-based delivery to the buyer's address, or `'local'` for same-day or local courier delivery.
|
|
986
1121
|
*/
|
|
987
1122
|
type: 'shipping' | 'local';
|
|
988
1123
|
|
|
989
1124
|
/**
|
|
990
|
-
*
|
|
1125
|
+
* The shipping carrier responsible for delivering the items, such as USPS, FedEx, or a custom carrier.
|
|
991
1126
|
*/
|
|
992
1127
|
carrier: ShippingOptionCarrier;
|
|
993
1128
|
|
|
994
1129
|
/**
|
|
995
|
-
* The cost
|
|
1130
|
+
* The original shipping cost before any discounts are applied.
|
|
996
1131
|
*/
|
|
997
1132
|
cost: Money;
|
|
998
1133
|
|
|
999
1134
|
/**
|
|
1000
|
-
* The cost
|
|
1135
|
+
* The final shipping cost after any shipping discounts have been applied. Compare with `cost` to determine the discount amount.
|
|
1001
1136
|
*/
|
|
1002
1137
|
costAfterDiscounts: Money;
|
|
1003
1138
|
|
|
1004
1139
|
/**
|
|
1005
|
-
*
|
|
1140
|
+
* The estimated delivery timeline, including the expected time in transit.
|
|
1006
1141
|
*/
|
|
1007
1142
|
deliveryEstimate: DeliveryEstimate;
|
|
1008
1143
|
}
|
|
1009
1144
|
|
|
1145
|
+
/**
|
|
1146
|
+
* @publicDocs
|
|
1147
|
+
*/
|
|
1010
1148
|
export interface DeliveryEstimate {
|
|
1011
1149
|
/**
|
|
1012
|
-
* The estimated time
|
|
1150
|
+
* 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
1151
|
*/
|
|
1014
1152
|
timeInTransit?: NumberRange;
|
|
1015
1153
|
}
|
|
1016
1154
|
|
|
1155
|
+
/**
|
|
1156
|
+
* @publicDocs
|
|
1157
|
+
*/
|
|
1017
1158
|
export interface ShippingOptionCarrier {
|
|
1018
1159
|
/**
|
|
1019
|
-
* The name of the carrier.
|
|
1160
|
+
* 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
1161
|
*/
|
|
1021
1162
|
name?: string;
|
|
1022
1163
|
}
|
|
1023
1164
|
|
|
1165
|
+
/**
|
|
1166
|
+
* @publicDocs
|
|
1167
|
+
*/
|
|
1024
1168
|
export interface PickupPointOption extends DeliveryOption {
|
|
1025
1169
|
/**
|
|
1026
|
-
* The
|
|
1170
|
+
* The delivery method. Always `'pickupPoint'` for pickup point options.
|
|
1027
1171
|
*/
|
|
1028
1172
|
type: 'pickupPoint';
|
|
1029
1173
|
|
|
1030
1174
|
/**
|
|
1031
|
-
*
|
|
1175
|
+
* The carrier responsible for shipping items to the pickup point location.
|
|
1032
1176
|
*/
|
|
1033
1177
|
carrier: PickupPointCarrier;
|
|
1034
1178
|
|
|
1035
1179
|
/**
|
|
1036
|
-
* The cost to ship to this pickup point.
|
|
1180
|
+
* The original cost to ship items to this pickup point before any discounts.
|
|
1037
1181
|
*/
|
|
1038
1182
|
cost: Money;
|
|
1039
1183
|
|
|
1040
1184
|
/**
|
|
1041
|
-
* The cost to ship to this pickup point
|
|
1185
|
+
* The final cost to ship to this pickup point after discounts have been applied.
|
|
1042
1186
|
*/
|
|
1043
1187
|
costAfterDiscounts: Money;
|
|
1044
1188
|
|
|
1045
1189
|
/**
|
|
1046
|
-
* The location
|
|
1190
|
+
* The physical location of the pickup point, including its name, address, and unique handle.
|
|
1047
1191
|
*/
|
|
1048
1192
|
location: PickupPointLocation;
|
|
1049
1193
|
}
|
|
1050
1194
|
|
|
1195
|
+
/**
|
|
1196
|
+
* @publicDocs
|
|
1197
|
+
*/
|
|
1051
1198
|
export interface PickupLocationOption extends DeliveryOption {
|
|
1052
1199
|
/**
|
|
1053
|
-
* The
|
|
1200
|
+
* The delivery method. Always `'pickup'` for merchant pickup location options.
|
|
1054
1201
|
*/
|
|
1055
1202
|
type: 'pickup';
|
|
1056
1203
|
|
|
1057
1204
|
/**
|
|
1058
|
-
* The location
|
|
1205
|
+
* The physical location where the buyer can pick up their order, including the store name and address.
|
|
1059
1206
|
*/
|
|
1060
1207
|
location: PickupLocation;
|
|
1061
1208
|
}
|
|
1062
1209
|
|
|
1063
|
-
|
|
1210
|
+
/**
|
|
1211
|
+
* @publicDocs
|
|
1212
|
+
*/
|
|
1213
|
+
export interface PickupLocation {
|
|
1064
1214
|
/**
|
|
1065
|
-
* The name of the pickup location.
|
|
1215
|
+
* The display name of the pickup location, such as the store or warehouse name. The value is `undefined` if no name is set.
|
|
1066
1216
|
*/
|
|
1067
1217
|
name?: string;
|
|
1068
1218
|
|
|
1069
1219
|
/**
|
|
1070
|
-
* The address of the pickup location.
|
|
1220
|
+
* The physical mailing address of the pickup location where the buyer collects their order.
|
|
1071
1221
|
*/
|
|
1072
1222
|
address: MailingAddress;
|
|
1073
1223
|
}
|
|
1074
1224
|
|
|
1075
|
-
|
|
1225
|
+
/**
|
|
1226
|
+
* @publicDocs
|
|
1227
|
+
*/
|
|
1228
|
+
export interface PickupPointLocation {
|
|
1076
1229
|
/**
|
|
1077
|
-
* The name of the pickup point.
|
|
1230
|
+
* 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
1231
|
*/
|
|
1079
1232
|
name?: string;
|
|
1080
1233
|
|
|
1081
1234
|
/**
|
|
1082
|
-
*
|
|
1235
|
+
* A unique identifier for this pickup point within the carrier's network.
|
|
1083
1236
|
*/
|
|
1084
1237
|
handle: string;
|
|
1085
1238
|
|
|
1086
1239
|
/**
|
|
1087
|
-
* The address of the pickup point.
|
|
1240
|
+
* The physical mailing address of the pickup point.
|
|
1088
1241
|
*/
|
|
1089
1242
|
address: MailingAddress;
|
|
1090
1243
|
}
|
|
1091
1244
|
|
|
1092
|
-
|
|
1245
|
+
/**
|
|
1246
|
+
* @publicDocs
|
|
1247
|
+
*/
|
|
1248
|
+
export interface PickupPointCarrier {
|
|
1093
1249
|
/**
|
|
1094
|
-
*
|
|
1250
|
+
* 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
1251
|
*/
|
|
1096
1252
|
code?: string;
|
|
1097
1253
|
|
|
1098
1254
|
/**
|
|
1099
|
-
* The name of the carrier.
|
|
1255
|
+
* The display name of the carrier that operates this pickup point network. The value is `undefined` if the carrier name is unavailable.
|
|
1100
1256
|
*/
|
|
1101
1257
|
name?: string;
|
|
1102
1258
|
}
|
|
1103
1259
|
|
|
1260
|
+
/**
|
|
1261
|
+
* @publicDocs
|
|
1262
|
+
*/
|
|
1104
1263
|
export interface NumberRange {
|
|
1105
1264
|
/**
|
|
1106
|
-
* The
|
|
1265
|
+
* The minimum value of the range. The value is `undefined` if there's no lower bound.
|
|
1107
1266
|
*/
|
|
1108
1267
|
lower?: number;
|
|
1109
1268
|
|
|
1110
1269
|
/**
|
|
1111
|
-
* The
|
|
1270
|
+
* The maximum value of the range. The value is `undefined` if there's no upper bound.
|
|
1112
1271
|
*/
|
|
1113
1272
|
upper?: number;
|
|
1114
1273
|
}
|
|
1115
1274
|
|
|
1116
1275
|
/**
|
|
1117
1276
|
* Information about an order that was placed.
|
|
1277
|
+
* @publicDocs
|
|
1118
1278
|
*/
|
|
1119
1279
|
export interface Order {
|
|
1120
1280
|
/**
|
|
1121
|
-
* A globally-unique identifier.
|
|
1281
|
+
* 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).
|
|
1282
|
+
*
|
|
1122
1283
|
* @example 'gid://shopify/Order/1'
|
|
1123
1284
|
*/
|
|
1124
1285
|
id: string;
|
|
1286
|
+
|
|
1125
1287
|
/**
|
|
1126
|
-
*
|
|
1288
|
+
* 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.
|
|
1289
|
+
*
|
|
1127
1290
|
* @example '#1000'
|
|
1128
1291
|
*/
|
|
1129
1292
|
name: string;
|
|
1293
|
+
|
|
1130
1294
|
/**
|
|
1131
|
-
*
|
|
1295
|
+
* 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
1296
|
*/
|
|
1133
1297
|
cancelledAt?: string;
|
|
1298
|
+
|
|
1134
1299
|
/**
|
|
1135
|
-
*
|
|
1136
|
-
* Processing happens after the checkout has completed, and indicates that the order is available in the admin.
|
|
1300
|
+
* 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
1301
|
*/
|
|
1138
|
-
|
|
1302
|
+
confirmationNumber?: string;
|
|
1303
|
+
|
|
1139
1304
|
/**
|
|
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.
|
|
1305
|
+
* 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
1306
|
*/
|
|
1143
|
-
|
|
1307
|
+
processedAt?: string;
|
|
1144
1308
|
}
|