@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
|
@@ -22,21 +22,18 @@ import type {SubscribableSignalLike} from '../../shared';
|
|
|
22
22
|
export type {ApiVersion, Capability} from '../../../../shared';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* Stored data is only available to this
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* The storage backend is implemented with `localStorage` and
|
|
31
|
-
* should persist across the buyer's checkout session.
|
|
32
|
-
* However, data persistence isn't guaranteed.
|
|
25
|
+
* Key-value storage for a specific extension. Use storage to save
|
|
26
|
+
* preferences or cached data that should survive page reloads without
|
|
27
|
+
* requiring a backend call. Stored data is only available to this
|
|
28
|
+
* specific extension. The storage backend is implemented with
|
|
29
|
+
* `localStorage` and data persistence isn't guaranteed.
|
|
33
30
|
*/
|
|
34
31
|
export interface Storage {
|
|
35
32
|
/**
|
|
36
33
|
* Read and return a stored value by key.
|
|
37
34
|
*
|
|
38
35
|
* The stored data is deserialized from JSON and returned as
|
|
39
|
-
* its original
|
|
36
|
+
* its original type.
|
|
40
37
|
*
|
|
41
38
|
* Returns `null` if no stored data exists.
|
|
42
39
|
*/
|
|
@@ -50,13 +47,15 @@ export interface Storage {
|
|
|
50
47
|
write(key: string, data: any): Promise<void>;
|
|
51
48
|
|
|
52
49
|
/**
|
|
53
|
-
*
|
|
50
|
+
* Deletes a previously stored value by key.
|
|
54
51
|
*/
|
|
55
52
|
delete(key: string): Promise<void>;
|
|
56
53
|
}
|
|
57
54
|
|
|
58
55
|
/**
|
|
59
|
-
*
|
|
56
|
+
* Metadata about the running extension, including its API version, target,
|
|
57
|
+
* capabilities, and editor context. Use this to read configuration details or
|
|
58
|
+
* conditionally render content based on where the extension is running.
|
|
60
59
|
*/
|
|
61
60
|
export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
62
61
|
/**
|
|
@@ -68,26 +67,26 @@ export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
68
67
|
|
|
69
68
|
/**
|
|
70
69
|
* The allowed capabilities of the extension, defined
|
|
71
|
-
* in your [shopify.extension.toml](https://shopify.dev/docs/api/checkout-ui-extensions/configuration) file.
|
|
70
|
+
* in your [shopify.extension.toml](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration) file.
|
|
72
71
|
*
|
|
73
|
-
* * [`api_access`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#api-access): the extension can access the Storefront API.
|
|
72
|
+
* * [`api_access`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration#api-access): the extension can access the Storefront API.
|
|
74
73
|
*
|
|
75
|
-
* * [`network_access`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#network-access): the extension can make external network calls.
|
|
74
|
+
* * [`network_access`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration#network-access): the extension can make external network calls.
|
|
76
75
|
*
|
|
77
|
-
* * [`block_progress`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#block-progress): the extension can block a customer's progress and the merchant has allowed this blocking behavior.
|
|
76
|
+
* * [`block_progress`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration#block-progress): the extension can block a customer's progress and the merchant has allowed this blocking behavior.
|
|
78
77
|
*
|
|
79
|
-
* * [`collect_buyer_consent.sms_marketing`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#collect-buyer-consent): the extension can collect customer consent for SMS marketing.
|
|
78
|
+
* * [`collect_buyer_consent.sms_marketing`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration#collect-buyer-consent): the extension can collect customer consent for SMS marketing.
|
|
80
79
|
*
|
|
81
|
-
* * [`collect_buyer_consent.customer_privacy`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#collect-buyer-consent): the extension can register customer consent decisions that
|
|
80
|
+
* * [`collect_buyer_consent.customer_privacy`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration#collect-buyer-consent): the extension can register customer consent decisions that are honored on Shopify-managed services.
|
|
82
81
|
*
|
|
83
|
-
* * [`iframe.sources`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#iframe): the extension can embed an external URL in an iframe.
|
|
82
|
+
* * [`iframe.sources`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration#iframe): the extension can embed an external URL in an iframe.
|
|
84
83
|
*/
|
|
85
84
|
capabilities: SubscribableSignalLike<Capability[]>;
|
|
86
85
|
|
|
87
86
|
/**
|
|
88
87
|
* Information about the editor where the extension is being rendered.
|
|
89
88
|
*
|
|
90
|
-
* If the value is undefined, then the extension
|
|
89
|
+
* If the value is undefined, then the extension isn't running in an editor.
|
|
91
90
|
*/
|
|
92
91
|
editor?: Editor;
|
|
93
92
|
|
|
@@ -95,7 +94,7 @@ export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
95
94
|
* A Boolean to show whether your extension is currently rendered to the screen.
|
|
96
95
|
*
|
|
97
96
|
* Shopify might render your extension before it's visible in the UI,
|
|
98
|
-
* typically to pre-render extensions that
|
|
97
|
+
* typically to pre-render extensions that appear on a later step of the
|
|
99
98
|
* checkout.
|
|
100
99
|
*
|
|
101
100
|
* Your extension might also continue to run after the customer has navigated away
|
|
@@ -110,12 +109,12 @@ export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
110
109
|
scriptUrl: string;
|
|
111
110
|
|
|
112
111
|
/**
|
|
113
|
-
* The identifier that specifies where in Shopify
|
|
114
|
-
* injected. This
|
|
115
|
-
* extension
|
|
112
|
+
* The identifier that specifies where in Shopify's UI your code is being
|
|
113
|
+
* injected. This is one of the targets you've included in your
|
|
114
|
+
* extension's configuration file.
|
|
116
115
|
*
|
|
117
116
|
* @example 'purchase.checkout.block.render'
|
|
118
|
-
* @see https://shopify.dev/docs/api/checkout-ui-extensions/
|
|
117
|
+
* @see https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/extension-targets-overview
|
|
119
118
|
* @see https://shopify.dev/docs/apps/app-extensions/configuration#targets
|
|
120
119
|
*/
|
|
121
120
|
target: Target;
|
|
@@ -130,88 +129,139 @@ export interface Extension<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
130
129
|
version?: string;
|
|
131
130
|
}
|
|
132
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Information about the editor environment when an extension is rendered
|
|
134
|
+
* inside the checkout editor. The value is `undefined` when the extension
|
|
135
|
+
* is not rendering in an editor.
|
|
136
|
+
*/
|
|
133
137
|
export interface Editor {
|
|
134
138
|
/**
|
|
135
|
-
* Indicates whether the extension is rendering in the checkout editor.
|
|
139
|
+
* Indicates whether the extension is rendering in the [checkout editor](https://shopify.dev/docs/apps/checkout). Always `'checkout'`.
|
|
136
140
|
*/
|
|
137
141
|
type: 'checkout';
|
|
138
142
|
}
|
|
139
143
|
|
|
140
144
|
/**
|
|
141
|
-
* Metadata associated with the checkout.
|
|
145
|
+
* Metadata associated with the checkout. See the [metafields documentation](https://shopify.dev/docs/apps/build/custom-data/metafields) for more information on how metafields work.
|
|
146
|
+
* @publicDocs
|
|
142
147
|
*/
|
|
143
148
|
export interface Metafield {
|
|
144
149
|
/**
|
|
145
|
-
* The name of the metafield.
|
|
146
|
-
*
|
|
150
|
+
* The name of the metafield.
|
|
151
|
+
*
|
|
152
|
+
* @example 'delivery_instructions'
|
|
147
153
|
*/
|
|
148
154
|
key: string;
|
|
149
155
|
|
|
150
156
|
/**
|
|
151
157
|
* A container for a set of metafields. You need to define a custom
|
|
152
158
|
* namespace for your metafields to distinguish them from the metafields
|
|
153
|
-
* used by other apps.
|
|
159
|
+
* used by other apps.
|
|
160
|
+
*
|
|
161
|
+
* @example 'my_app'
|
|
154
162
|
*/
|
|
155
163
|
namespace: string;
|
|
156
164
|
|
|
157
165
|
/**
|
|
158
|
-
* The information to be stored as metadata.
|
|
166
|
+
* The information to be stored as metadata.
|
|
159
167
|
*/
|
|
160
168
|
value: string | number;
|
|
161
169
|
|
|
162
|
-
/**
|
|
170
|
+
/**
|
|
171
|
+
* The metafield's information type.
|
|
172
|
+
*
|
|
173
|
+
* - `'integer'`: A whole number value.
|
|
174
|
+
* - `'string'`: A plain text value.
|
|
175
|
+
* - `'json_string'`: A JSON-encoded string value.
|
|
176
|
+
*/
|
|
163
177
|
valueType: 'integer' | 'string' | 'json_string';
|
|
164
178
|
}
|
|
165
179
|
|
|
166
180
|
/**
|
|
167
|
-
* Represents a custom
|
|
181
|
+
* Represents a custom [metafield](https://shopify.dev/docs/apps/build/custom-data/metafields) attached to a resource such as a product, variant, customer, or shop.
|
|
182
|
+
* @publicDocs
|
|
168
183
|
*/
|
|
169
184
|
export interface AppMetafield {
|
|
170
|
-
/**
|
|
185
|
+
/**
|
|
186
|
+
* The identifier for the metafield within its namespace, such as `'ingredients'` or `'shipping_weight'`.
|
|
187
|
+
*/
|
|
171
188
|
key: string;
|
|
172
189
|
|
|
173
190
|
/**
|
|
174
|
-
* The namespace
|
|
191
|
+
* The namespace that the metafield belongs to. Namespaces group related metafields and prevent naming collisions between different apps.
|
|
175
192
|
*
|
|
176
|
-
* App owned metafield namespaces are returned using the `$app` format. See [app owned metafields](/docs/apps/build/custom-data/ownership#reserved-prefixes) for more information.
|
|
193
|
+
* App owned metafield namespaces are returned using the `$app` format. See [app owned metafields](https://shopify.dev/docs/apps/build/custom-data/ownership#reserved-prefixes) for more information.
|
|
177
194
|
*/
|
|
178
195
|
namespace: string;
|
|
179
196
|
|
|
180
|
-
/**
|
|
197
|
+
/**
|
|
198
|
+
* The value of a metafield, stored as a string regardless of the underlying type. For JSON metafields, parse the string to access structured data.
|
|
199
|
+
*/
|
|
181
200
|
value: string;
|
|
182
201
|
|
|
183
|
-
/**
|
|
202
|
+
/**
|
|
203
|
+
* The metafield's information type.
|
|
204
|
+
*
|
|
205
|
+
* - `'boolean'`: A true or false value.
|
|
206
|
+
* - `'float'`: A decimal number value.
|
|
207
|
+
* - `'integer'`: A whole number value.
|
|
208
|
+
* - `'json_string'`: A JSON-encoded string value.
|
|
209
|
+
* - `'string'`: A plain text value.
|
|
210
|
+
*/
|
|
184
211
|
valueType: 'boolean' | 'float' | 'integer' | 'json_string' | 'string';
|
|
185
212
|
|
|
186
|
-
/**
|
|
213
|
+
/**
|
|
214
|
+
* The metafield's [type name](https://shopify.dev/docs/apps/build/custom-data/metafields/list-of-data-types), such as `'single_line_text_field'` or `'json'`. This is the full type identifier, whereas `valueType` is a simplified category.
|
|
215
|
+
*/
|
|
187
216
|
type: string;
|
|
188
217
|
}
|
|
189
218
|
|
|
190
219
|
/**
|
|
191
|
-
* Represents a custom metadata attached to a
|
|
220
|
+
* Represents a custom metadata attached to the cart. Unlike `AppMetafield`, cart metafield values are always strings and don't include a `valueType` discriminator.
|
|
221
|
+
*
|
|
222
|
+
* Cart [metafields](https://shopify.dev/docs/apps/build/custom-data/metafields) are set by extensions using `applyMetafieldChange()` and can be copied to order metafields at order creation time.
|
|
223
|
+
* @publicDocs
|
|
192
224
|
*/
|
|
193
225
|
export interface CartMetafield {
|
|
194
|
-
/**
|
|
226
|
+
/**
|
|
227
|
+
* The key name of a metafield, such as `'delivery_instructions'` or `'gift_message'`. Together with `namespace`, this uniquely identifies the metafield on the cart.
|
|
228
|
+
*/
|
|
195
229
|
key: string;
|
|
196
230
|
|
|
197
|
-
/**
|
|
231
|
+
/**
|
|
232
|
+
* The namespace for a metafield, such as `'custom'` or `'my_app'`. Together with `key`, this uniquely identifies the metafield on the cart.
|
|
233
|
+
*/
|
|
198
234
|
namespace: string;
|
|
199
235
|
|
|
200
|
-
/**
|
|
236
|
+
/**
|
|
237
|
+
* The string value stored in the cart metafield. Unlike `AppMetafield`, cart metafield values are always strings.
|
|
238
|
+
*/
|
|
201
239
|
value: string;
|
|
202
240
|
|
|
203
|
-
/**
|
|
241
|
+
/**
|
|
242
|
+
* The metafield's [type name](https://shopify.dev/docs/apps/build/custom-data/metafields/list-of-data-types), such as `'single_line_text_field'` or `'json'`.
|
|
243
|
+
*/
|
|
204
244
|
type: string;
|
|
205
245
|
}
|
|
206
246
|
|
|
207
247
|
/**
|
|
208
|
-
* The metafield
|
|
248
|
+
* The Shopify resource that a metafield is attached to. Each entry identifies a specific resource by its type and globally-unique ID, so you can trace where the data comes from.
|
|
249
|
+
* @publicDocs
|
|
209
250
|
*/
|
|
210
251
|
export interface AppMetafieldEntryTarget {
|
|
211
252
|
/**
|
|
212
|
-
* The
|
|
253
|
+
* The kind of Shopify resource this metafield belongs to:
|
|
213
254
|
*
|
|
214
|
-
*
|
|
255
|
+
* - `'customer'`: The customer who placed the order.
|
|
256
|
+
* - `'product'`: A product in the merchant's catalog.
|
|
257
|
+
* - `'shop'`: The merchant's shop.
|
|
258
|
+
* - `'shopUser'`: A staff member or collaborator account on the shop.
|
|
259
|
+
* - `'variant'`: A specific variant of a product.
|
|
260
|
+
* - `'company'`: A [B2B](https://shopify.dev/docs/apps/build/b2b) company associated with the order.
|
|
261
|
+
* - `'companyLocation'`: A location belonging to a [B2B](https://shopify.dev/docs/apps/build/b2b) company.
|
|
262
|
+
* - `'cart'`: The cart associated with the checkout.
|
|
263
|
+
*
|
|
264
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data) when the type is `customer`, `company` or `companyLocation`.
|
|
215
265
|
*/
|
|
216
266
|
type:
|
|
217
267
|
| 'customer'
|
|
@@ -223,32 +273,41 @@ export interface AppMetafieldEntryTarget {
|
|
|
223
273
|
| 'companyLocation'
|
|
224
274
|
| 'cart';
|
|
225
275
|
|
|
226
|
-
/**
|
|
276
|
+
/**
|
|
277
|
+
* 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 [Storefront API](https://shopify.dev/docs/api/storefront).
|
|
278
|
+
*
|
|
279
|
+
* @example 'gid://shopify/Product/123'
|
|
280
|
+
*/
|
|
227
281
|
id: string;
|
|
228
282
|
}
|
|
229
283
|
|
|
230
284
|
/**
|
|
231
|
-
*
|
|
285
|
+
* An entry that pairs a Shopify resource with one of its [metafields](https://shopify.dev/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.
|
|
286
|
+
* @publicDocs
|
|
232
287
|
*/
|
|
233
288
|
export interface AppMetafieldEntry {
|
|
234
289
|
/**
|
|
235
|
-
* The
|
|
290
|
+
* The Shopify resource that this metafield is attached to, including the resource type (such as `'product'` or `'customer'`) and its globally-unique ID.
|
|
236
291
|
*
|
|
237
|
-
* {% 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`.
|
|
292
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data) when the type is `customer`, `company` or `companyLocation`.
|
|
238
293
|
*/
|
|
239
294
|
target: AppMetafieldEntryTarget;
|
|
240
295
|
|
|
241
|
-
/**
|
|
296
|
+
/**
|
|
297
|
+
* 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.
|
|
298
|
+
*/
|
|
242
299
|
metafield: AppMetafield;
|
|
243
300
|
}
|
|
244
301
|
|
|
302
|
+
/** @publicDocs */
|
|
245
303
|
export type Version = string;
|
|
304
|
+
/** @publicDocs */
|
|
246
305
|
export type CheckoutToken = string;
|
|
247
306
|
|
|
248
307
|
/**
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
308
|
+
* Translates a key from your extension's locale files into a localized string.
|
|
309
|
+
* Supports interpolation with placeholder replacements and pluralization
|
|
310
|
+
* via the special `count` option.
|
|
252
311
|
*/
|
|
253
312
|
export interface I18nTranslate {
|
|
254
313
|
<ReplacementType = string>(
|
|
@@ -259,6 +318,11 @@ export interface I18nTranslate {
|
|
|
259
318
|
: (string | ReplacementType)[];
|
|
260
319
|
}
|
|
261
320
|
|
|
321
|
+
/**
|
|
322
|
+
* Utilities for translating strings, formatting currencies, numbers,
|
|
323
|
+
* and dates according to the buyer's locale. Use the I18n API alongside
|
|
324
|
+
* the Localization API to build fully localized extensions.
|
|
325
|
+
*/
|
|
262
326
|
export interface I18n {
|
|
263
327
|
/**
|
|
264
328
|
* Returns a localized number.
|
|
@@ -266,7 +330,7 @@ export interface I18n {
|
|
|
266
330
|
* This function behaves like the standard `Intl.NumberFormat()`
|
|
267
331
|
* with a style of `decimal` applied. It uses the buyer's locale by default.
|
|
268
332
|
*
|
|
269
|
-
* @param options.inExtensionLocale -
|
|
333
|
+
* @param options.inExtensionLocale - If true, uses the extension's locale.
|
|
270
334
|
*/
|
|
271
335
|
formatNumber: (
|
|
272
336
|
number: number | bigint,
|
|
@@ -279,7 +343,7 @@ export interface I18n {
|
|
|
279
343
|
* This function behaves like the standard `Intl.NumberFormat()`
|
|
280
344
|
* with a style of `currency` applied. It uses the buyer's locale by default.
|
|
281
345
|
*
|
|
282
|
-
* @param options.inExtensionLocale -
|
|
346
|
+
* @param options.inExtensionLocale - If true, uses the extension's locale.
|
|
283
347
|
*/
|
|
284
348
|
formatCurrency: (
|
|
285
349
|
number: number | bigint,
|
|
@@ -289,14 +353,11 @@ export interface I18n {
|
|
|
289
353
|
/**
|
|
290
354
|
* Returns a localized date value.
|
|
291
355
|
*
|
|
292
|
-
* This function behaves like the standard `Intl.
|
|
293
|
-
* the buyer's locale by default. Formatting options can be passed in as
|
|
356
|
+
* This function behaves like the standard [`Intl.DateTimeFormat()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat) and uses
|
|
357
|
+
* the buyer's locale by default. Formatting [options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options) can be passed in as
|
|
294
358
|
* options.
|
|
295
359
|
*
|
|
296
|
-
* @
|
|
297
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat#using_options
|
|
298
|
-
*
|
|
299
|
-
* @param options.inExtensionLocale - if true, use the extension's locale
|
|
360
|
+
* @param options.inExtensionLocale - If true, uses the extension's locale.
|
|
300
361
|
*/
|
|
301
362
|
formatDate: (
|
|
302
363
|
date: Date,
|
|
@@ -315,127 +376,131 @@ export interface I18n {
|
|
|
315
376
|
translate: I18nTranslate;
|
|
316
377
|
}
|
|
317
378
|
|
|
379
|
+
/** @publicDocs */
|
|
318
380
|
export interface Language {
|
|
319
381
|
/**
|
|
320
|
-
* The BCP-47 language tag.
|
|
321
|
-
*
|
|
322
|
-
* @example 'en' for English, or 'en-US' for English local to United States.
|
|
323
|
-
* @see https://en.wikipedia.org/wiki/IETF_language_tag
|
|
324
|
-
* @see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
382
|
+
* The [BCP-47](https://en.wikipedia.org/wiki/IETF_language_tag) language tag that identifies the language. This is a standardized code that might include a base language and an optional region subtag separated by a dash. For example, `'en'` represents English and `'en-US'` represents English as used in the United States. The region subtag follows the [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) standard.
|
|
325
383
|
*/
|
|
326
384
|
isoCode: string;
|
|
327
385
|
}
|
|
328
386
|
|
|
387
|
+
/** @publicDocs */
|
|
329
388
|
export interface Currency {
|
|
330
389
|
/**
|
|
331
|
-
* The
|
|
332
|
-
* @see https://www.iso.org/iso-4217-currency-codes.html
|
|
390
|
+
* The three-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format, such as `'USD'`, `'EUR'`, or `'CAD'`.
|
|
333
391
|
*/
|
|
334
392
|
isoCode: CurrencyCode;
|
|
335
393
|
}
|
|
336
394
|
|
|
395
|
+
/**
|
|
396
|
+
* A [Shopify Market](https://shopify.dev/docs/apps/build/markets) that represents a group of one or more regions for international selling.
|
|
397
|
+
* @publicDocs
|
|
398
|
+
*/
|
|
337
399
|
export interface Market {
|
|
338
400
|
/**
|
|
339
|
-
* A globally-unique identifier for
|
|
401
|
+
* A globally-unique identifier for the market in the format `gid://shopify/Market/<id>`.
|
|
340
402
|
*/
|
|
341
403
|
id: string;
|
|
342
404
|
|
|
343
405
|
/**
|
|
344
|
-
* The human-readable, shop-scoped identifier for the market.
|
|
406
|
+
* The human-readable, shop-scoped identifier for the market, such as `'us'` or `'eu'`. Merchants define these handles when configuring [Shopify Markets](https://shopify.dev/docs/apps/build/markets).
|
|
345
407
|
*/
|
|
346
408
|
handle: string;
|
|
347
409
|
}
|
|
348
410
|
|
|
411
|
+
/**
|
|
412
|
+
* The buyer's language, country, currency, and timezone context. Use this
|
|
413
|
+
* to adapt your extension to the buyer's region and display localized content.
|
|
414
|
+
*/
|
|
349
415
|
export interface Localization {
|
|
350
416
|
/**
|
|
351
|
-
* The currency that the
|
|
417
|
+
* The currency that the buyer sees for money amounts in the checkout. Use this value to format prices and totals in the buyer's expected currency.
|
|
352
418
|
*/
|
|
353
419
|
currency: SubscribableSignalLike<Currency>;
|
|
354
420
|
|
|
355
421
|
/**
|
|
356
|
-
* The buyer
|
|
422
|
+
* The buyer's time zone, based on their browser or account settings. Use this value to format dates and times relative to the buyer's local time.
|
|
357
423
|
*/
|
|
358
424
|
timezone: SubscribableSignalLike<Timezone>;
|
|
359
425
|
|
|
360
426
|
/**
|
|
361
|
-
* The language the
|
|
427
|
+
* The language the buyer sees in the checkout. This reflects the language selected by the buyer or determined by their browser settings, and might differ from the languages your extension supports.
|
|
362
428
|
*/
|
|
363
429
|
language: SubscribableSignalLike<Language>;
|
|
364
430
|
|
|
365
431
|
/**
|
|
366
|
-
*
|
|
367
|
-
* If the customer's actual language is not supported by the extension,
|
|
368
|
-
* then this is the language that is used for translations.
|
|
369
|
-
*
|
|
370
|
-
* For example, if the customer's language is 'fr-CA' but your extension
|
|
371
|
-
* only supports translations for 'fr', then the `isoCode` for this
|
|
372
|
-
* language is 'fr'. If your extension does not provide french
|
|
373
|
-
* translations at all, then this value is the default locale for your
|
|
374
|
-
* extension (that is, the one matching your .default.json file).
|
|
432
|
+
* The best available language match for your extension based on the buyer's language. If the buyer's language is `'fr-CA'` but your extension supports only `'fr'`, this returns `'fr'`. If your extension doesn't support any variant of the buyer's language, this falls back to your extension's default locale (the `.default.json` translation file). Use this value to load the correct translation file for your extension.
|
|
375
433
|
*/
|
|
376
434
|
extensionLanguage: SubscribableSignalLike<Language>;
|
|
377
435
|
|
|
378
436
|
/**
|
|
379
|
-
* The country context of the checkout.
|
|
380
|
-
* context of the cart, where it was used to contextualize the storefront
|
|
381
|
-
* experience. It will update if the buyer changes the country of their
|
|
382
|
-
* shipping address. If the country is unknown, then the value is undefined.
|
|
437
|
+
* The country context of the checkout, carried over from the cart. It updates when the buyer changes their shipping address country. Use this value to display region-specific content such as local support information or regional policies. The value is `undefined` if the buyer's country is unknown.
|
|
383
438
|
*/
|
|
384
439
|
country: SubscribableSignalLike<Country | undefined>;
|
|
385
440
|
|
|
386
441
|
/**
|
|
387
|
-
* The [market](https://shopify.dev/docs/apps/markets) context of the
|
|
388
|
-
* checkout. This value carries over from the context of the cart, where it
|
|
389
|
-
* was used to contextualize the storefront experience. It will update if the
|
|
390
|
-
* buyer changes the country of their shipping address. If the market is unknown,
|
|
391
|
-
* then the value is undefined.
|
|
442
|
+
* The [market](https://shopify.dev/docs/apps/build/markets) context of the checkout, carried over from the cart context. Markets group countries and regions with shared pricing, languages, and domains. It updates when the buyer changes the country of their shipping address. The value is `undefined` if the market is unknown.
|
|
392
443
|
*
|
|
393
|
-
* > Caution:
|
|
444
|
+
* > Caution: Deprecated as of version `2025-04`. Merchants now manage which extensions load for each market, so extensions no longer need to check this value.
|
|
394
445
|
*
|
|
395
446
|
* @deprecated Deprecated as of version `2025-04`
|
|
396
447
|
*/
|
|
397
448
|
market: SubscribableSignalLike<Market | undefined>;
|
|
398
449
|
}
|
|
399
450
|
|
|
451
|
+
/** @publicDocs */
|
|
400
452
|
export interface LocalizedField {
|
|
453
|
+
/**
|
|
454
|
+
* The identifier for the localized field, indicating the type of information
|
|
455
|
+
* collected (for example, a tax credential or shipping credential for a
|
|
456
|
+
* specific country).
|
|
457
|
+
*/
|
|
401
458
|
key: LocalizedFieldKey;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* The localized display label for the field, suitable for rendering in the UI.
|
|
462
|
+
*
|
|
463
|
+
* @example 'CPF/CNPJ' for a Brazilian tax credential
|
|
464
|
+
*/
|
|
402
465
|
title: string;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* The current value entered by the buyer for this field.
|
|
469
|
+
*/
|
|
403
470
|
value: string;
|
|
404
471
|
}
|
|
405
472
|
|
|
406
473
|
/**
|
|
407
474
|
* Provides details on the buyer's progression through the checkout.
|
|
475
|
+
* @publicDocs
|
|
408
476
|
*/
|
|
409
477
|
export interface BuyerJourney {
|
|
410
478
|
/**
|
|
411
479
|
* Installs a function for intercepting and preventing progress on checkout.
|
|
412
480
|
*
|
|
413
481
|
* This returns a promise that resolves to a teardown function. Calling the
|
|
414
|
-
* teardown function
|
|
482
|
+
* teardown function removes the interceptor.
|
|
415
483
|
*
|
|
416
|
-
* To block checkout progress, you must set the [block_progress](https://shopify.dev/docs/api/checkout-ui-extensions/configuration#block-progress)
|
|
484
|
+
* To block checkout progress, you must set the [block_progress](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration#block-progress)
|
|
417
485
|
* capability in your extension's configuration.
|
|
418
486
|
*
|
|
419
487
|
* If you do, then you're expected to inform the buyer why navigation was blocked,
|
|
420
488
|
* either by passing validation errors to the checkout UI or rendering the errors in your extension.
|
|
421
489
|
*
|
|
422
|
-
*
|
|
423
|
-
* to block checkout progress.
|
|
490
|
+
* If the merchant hasn't allowed your extension to block checkout progress, show a warning in the [checkout editor](https://shopify.dev/docs/apps/build/checkout/test-checkout-ui-extensions#test-the-extension-in-the-checkout-editor).
|
|
424
491
|
*/
|
|
425
492
|
intercept(interceptor: Interceptor): Promise<() => void>;
|
|
426
493
|
|
|
427
494
|
/**
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
* For example, when viewing the **Order status** page after submitting payment, the buyer will have completed their order.
|
|
495
|
+
* Whether the buyer has completed submitting their order. When `true`, the buyer is on the order status page after submitting payment. When `false`, the buyer is still in the checkout flow.
|
|
431
496
|
*/
|
|
432
497
|
completed: SubscribableSignalLike<boolean>;
|
|
433
498
|
/**
|
|
434
|
-
* All possible steps
|
|
499
|
+
* All possible steps the buyer can take to complete checkout. These steps vary depending on whether the checkout is one-page or three-page, and on the shop's configuration.
|
|
435
500
|
*/
|
|
436
501
|
steps: SubscribableSignalLike<BuyerJourneyStep[]>;
|
|
437
502
|
/**
|
|
438
|
-
*
|
|
503
|
+
* The step of checkout the buyer is currently on. The value is `undefined` if the current step can't be determined.
|
|
439
504
|
*/
|
|
440
505
|
activeStep: SubscribableSignalLike<BuyerJourneyStepReference | undefined>;
|
|
441
506
|
}
|
|
@@ -467,91 +532,100 @@ type BuyerJourneyStepHandle =
|
|
|
467
532
|
*/
|
|
468
533
|
interface BuyerJourneyStepReference {
|
|
469
534
|
/**
|
|
470
|
-
* The handle
|
|
535
|
+
* The handle identifying which step the buyer is on, such as `'information'`,
|
|
536
|
+
* `'shipping'`, or `'payment'`. See `BuyerJourneyStepHandle` for all values.
|
|
471
537
|
*/
|
|
472
538
|
handle: BuyerJourneyStepHandle;
|
|
473
539
|
}
|
|
474
540
|
|
|
541
|
+
/** @publicDocs */
|
|
475
542
|
export interface BuyerJourneyStep {
|
|
476
543
|
/**
|
|
477
|
-
* The handle that uniquely identifies the buyer journey step
|
|
544
|
+
* The handle that uniquely identifies the buyer journey step, such as `'information'`, `'shipping'`, or `'payment'`.
|
|
478
545
|
*/
|
|
479
546
|
handle: BuyerJourneyStepHandle;
|
|
480
547
|
/**
|
|
481
|
-
* The localized label of the buyer journey step.
|
|
548
|
+
* The localized label of the buyer journey step, suitable for rendering in navigation UI.
|
|
482
549
|
*/
|
|
483
550
|
label: string;
|
|
484
551
|
/**
|
|
485
|
-
* The
|
|
486
|
-
*
|
|
552
|
+
* The URL of the buyer journey step, using the `shopify:` protocol.
|
|
553
|
+
*
|
|
554
|
+
* @example 'shopify:cart'
|
|
555
|
+
* @example 'shopify:checkout/information'
|
|
487
556
|
*/
|
|
488
557
|
to: string;
|
|
489
558
|
/**
|
|
490
|
-
*
|
|
559
|
+
* Whether this step is disabled. When `true`, the buyer hasn't reached this step yet and can't navigate to it. When `false`, the step is accessible.
|
|
491
560
|
*
|
|
492
|
-
* For example, if the buyer
|
|
561
|
+
* For example, if the buyer hasn't reached the `shipping` step yet, then `shipping` is disabled.
|
|
493
562
|
*/
|
|
494
563
|
disabled: boolean;
|
|
495
564
|
}
|
|
496
565
|
|
|
566
|
+
/** @publicDocs */
|
|
497
567
|
export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
498
568
|
/**
|
|
499
|
-
*
|
|
569
|
+
* Tracks custom events and sends visitor information to
|
|
570
|
+
* [Web Pixels](https://shopify.dev/docs/apps/marketing). Use `publish()` to emit events
|
|
571
|
+
* and `visitor()` to submit buyer contact details.
|
|
500
572
|
*/
|
|
501
573
|
analytics: Analytics;
|
|
502
574
|
|
|
503
575
|
/**
|
|
504
|
-
*
|
|
576
|
+
* The gift cards that have been applied to the checkout. Each entry includes
|
|
577
|
+
* the last four characters of the gift card code, the amount used at
|
|
578
|
+
* checkout, and the card's remaining balance.
|
|
505
579
|
*/
|
|
506
580
|
appliedGiftCards: SubscribableSignalLike<AppliedGiftCard[]>;
|
|
507
581
|
|
|
508
582
|
/**
|
|
509
583
|
* The cart instructions used to create the checkout and possibly limit extension capabilities.
|
|
510
584
|
*
|
|
511
|
-
* These instructions should be checked
|
|
585
|
+
* These instructions should be checked before performing any actions that might be affected by them.
|
|
512
586
|
*
|
|
513
587
|
* For example, if you intend to add a discount code via the `applyDiscountCodeChange` method,
|
|
514
588
|
* check `discounts.canUpdateDiscountCodes` to ensure it's supported in this checkout.
|
|
515
589
|
*
|
|
516
|
-
* > Caution: As of version `2024-07`, UI extension code must check for instructions before calling select APIs in case those APIs
|
|
517
|
-
* See the [update guide](/docs/api/checkout-ui-extensions/apis/cart-instructions#examples) for more information.
|
|
590
|
+
* > Caution: As of version `2024-07`, UI extension code must check for instructions before calling select APIs in case those APIs aren't available.
|
|
591
|
+
* See the [update guide](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/cart-instructions#examples) for more information.
|
|
518
592
|
*
|
|
519
593
|
*/
|
|
520
594
|
instructions: SubscribableSignalLike<CartInstructions>;
|
|
521
595
|
|
|
522
596
|
/**
|
|
523
597
|
* The metafields requested in the
|
|
524
|
-
* [`shopify.extension.toml`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration)
|
|
598
|
+
* [`shopify.extension.toml`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration)
|
|
525
599
|
* file. These metafields are updated when there's a change in the merchandise items
|
|
526
600
|
* being purchased by the customer.
|
|
527
601
|
*
|
|
528
|
-
* 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}]`
|
|
602
|
+
* 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}]` isn't supported. See [app owned metafields](https://shopify.dev/docs/apps/build/custom-data/ownership#reserved-prefixes) for more information.
|
|
529
603
|
*
|
|
530
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
604
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
531
605
|
*/
|
|
532
606
|
appMetafields: SubscribableSignalLike<AppMetafieldEntry[]>;
|
|
533
607
|
|
|
534
608
|
/**
|
|
535
|
-
* The custom attributes
|
|
609
|
+
* The custom key-value attributes attached to the cart or checkout. These are set by the buyer or by an extension using `applyAttributeChange()`. The list is empty if no attributes have been added.
|
|
536
610
|
*/
|
|
537
611
|
attributes: SubscribableSignalLike<Attribute[]>;
|
|
538
612
|
|
|
539
613
|
/**
|
|
540
|
-
* All available payment
|
|
614
|
+
* All payment options available to the buyer for this checkout, such as credit cards, wallets, and local payment methods. The list depends on the shop's payment configuration and the buyer's region.
|
|
541
615
|
*/
|
|
542
616
|
availablePaymentOptions: SubscribableSignalLike<PaymentOption[]>;
|
|
543
617
|
|
|
544
618
|
/**
|
|
545
|
-
* Information about the buyer that
|
|
619
|
+
* Information about the buyer that's interacting with the checkout. The property is available only if the extension has access to protected customer data.
|
|
546
620
|
*
|
|
547
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
621
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
548
622
|
*/
|
|
549
623
|
buyerIdentity?: BuyerIdentity;
|
|
550
624
|
|
|
551
625
|
/**
|
|
552
|
-
* Provides details on the buyer's progression through the checkout.
|
|
626
|
+
* Provides details on the buyer's progression through the checkout and lets you intercept navigation to validate data before the buyer continues.
|
|
553
627
|
*
|
|
554
|
-
* Refer to [buyer journey](https://shopify.dev/docs/api/checkout-ui-extensions/apis/buyer-journey#examples)
|
|
628
|
+
* Refer to [buyer journey](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/buyer-journey#examples)
|
|
555
629
|
* examples for more information.
|
|
556
630
|
*/
|
|
557
631
|
buyerJourney: BuyerJourney;
|
|
@@ -564,43 +638,49 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
564
638
|
/**
|
|
565
639
|
* A stable ID that represents the current checkout.
|
|
566
640
|
*
|
|
641
|
+
* The value is `undefined` when the checkout hasn't been created on the server yet.
|
|
642
|
+
*
|
|
643
|
+
* Use this to correlate checkout sessions across your extension, web pixels, and backend systems.
|
|
644
|
+
*
|
|
567
645
|
* This matches the `data.checkout.token` field in a [checkout-related WebPixel event](https://shopify.dev/docs/api/web-pixels-api/standard-events/checkout_started#properties-propertydetail-data)
|
|
568
646
|
* and the `checkout_token` field in the [REST Admin API `Order` resource](https://shopify.dev/docs/api/admin-rest/unstable/resources/order#resource-object).
|
|
569
647
|
*/
|
|
570
648
|
checkoutToken: SubscribableSignalLike<CheckoutToken | undefined>;
|
|
571
649
|
|
|
572
650
|
/**
|
|
573
|
-
*
|
|
651
|
+
* The cost breakdown for the current checkout, including subtotal, shipping, tax, and total amounts. These values update as the buyer progresses through checkout and costs like shipping and tax are calculated.
|
|
574
652
|
*/
|
|
575
653
|
cost: CartCost;
|
|
576
654
|
|
|
577
655
|
/**
|
|
578
|
-
*
|
|
656
|
+
* The delivery groups for this checkout. Each group contains one or more cart lines and the available delivery options (shipping, pickup point, or pickup location) for those items.
|
|
579
657
|
*/
|
|
580
658
|
deliveryGroups: SubscribableSignalLike<DeliveryGroup[]>;
|
|
581
659
|
|
|
582
660
|
/**
|
|
583
|
-
*
|
|
661
|
+
* The discount codes currently applied to the checkout. The list is empty if no discount codes have been applied. Use `applyDiscountCodeChange()` to add or remove codes.
|
|
584
662
|
*/
|
|
585
663
|
discountCodes: SubscribableSignalLike<CartDiscountCode[]>;
|
|
586
664
|
|
|
587
665
|
/**
|
|
588
|
-
*
|
|
666
|
+
* The discount allocations applied to the entire cart, including automatic discounts, code-based discounts, and custom discounts from [Shopify Functions](https://shopify.dev/docs/apps/build/functions). Each allocation indicates how much was discounted and how the discount was triggered.
|
|
589
667
|
*/
|
|
590
668
|
discountAllocations: SubscribableSignalLike<CartDiscountAllocation[]>;
|
|
591
669
|
|
|
592
670
|
/**
|
|
593
|
-
*
|
|
671
|
+
* Metadata about the running extension, including the current target, API version,
|
|
672
|
+
* capabilities, and editor context. Use this to conditionally render content
|
|
673
|
+
* based on where the extension is running.
|
|
594
674
|
*/
|
|
595
675
|
extension: Extension<Target>;
|
|
596
676
|
|
|
597
677
|
/**
|
|
598
|
-
* The identifier that specifies where in Shopify
|
|
599
|
-
* injected. This
|
|
600
|
-
* extension
|
|
678
|
+
* The identifier that specifies where in Shopify's UI your code is being
|
|
679
|
+
* injected. This is one of the targets you've included in your
|
|
680
|
+
* extension's configuration file.
|
|
601
681
|
*
|
|
602
682
|
* @example 'purchase.checkout.block.render'
|
|
603
|
-
* @see https://shopify.dev/docs/api/checkout-ui-extensions/
|
|
683
|
+
* @see https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/extension-targets-overview
|
|
604
684
|
* @see https://shopify.dev/docs/apps/app-extensions/configuration#targets
|
|
605
685
|
*
|
|
606
686
|
* @deprecated Deprecated as of version `2023-07`, use `extension.target` instead.
|
|
@@ -608,37 +688,37 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
608
688
|
extensionPoint: Target;
|
|
609
689
|
|
|
610
690
|
/**
|
|
611
|
-
* Utilities for translating
|
|
612
|
-
*
|
|
613
|
-
*
|
|
614
|
-
*
|
|
615
|
-
* Refer to [`localization` examples](https://shopify.dev/docs/api/checkout-ui-extensions/apis/localization#examples)
|
|
616
|
-
* for more information.
|
|
691
|
+
* Utilities for translating strings, formatting currencies, numbers, and dates
|
|
692
|
+
* according to the buyer's locale. Use alongside
|
|
693
|
+
* [`localization`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/localization)
|
|
694
|
+
* to build fully localized extensions.
|
|
617
695
|
*/
|
|
618
696
|
i18n: I18n;
|
|
619
697
|
|
|
620
698
|
/**
|
|
621
|
-
*
|
|
699
|
+
* The list of line items the buyer intends to purchase. Each entry includes the merchandise, quantity, cost, and any custom attributes. Use `applyCartLinesChange()` to add, remove, or update line items.
|
|
622
700
|
*/
|
|
623
701
|
lines: SubscribableSignalLike<CartLine[]>;
|
|
624
702
|
|
|
625
703
|
/**
|
|
626
|
-
* The
|
|
627
|
-
*
|
|
628
|
-
* [`i18n`](https://shopify.dev/docs/api/checkout-ui-extensions/apis/localization#standardapi-propertydetail-i18n)
|
|
704
|
+
* The buyer's language, country, currency, and timezone context. For
|
|
705
|
+
* formatting and translation helpers, use the
|
|
706
|
+
* [`i18n`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/localization#standardapi-propertydetail-i18n)
|
|
629
707
|
* object instead.
|
|
630
708
|
*/
|
|
631
709
|
localization: Localization;
|
|
632
710
|
|
|
633
711
|
/**
|
|
634
712
|
* A note left by the customer to the merchant, either in their cart or during checkout.
|
|
713
|
+
*
|
|
714
|
+
* The value is `undefined` if the buyer hasn't entered a note. Use this to display or react to order-level instructions such as delivery preferences or gift messages.
|
|
635
715
|
*/
|
|
636
716
|
note: SubscribableSignalLike<string | undefined>;
|
|
637
717
|
|
|
638
718
|
/**
|
|
639
719
|
* The method used to query the Storefront GraphQL API with a prefetched token.
|
|
640
720
|
*
|
|
641
|
-
* Refer to [Storefront API access examples](https://shopify.dev/docs/api/checkout-ui-extensions/apis/storefront-api) for more information.
|
|
721
|
+
* Refer to [Storefront API access examples](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/storefront-api) for more information.
|
|
642
722
|
*/
|
|
643
723
|
query: <Data = unknown, Variables = Record<string, unknown>>(
|
|
644
724
|
query: string,
|
|
@@ -646,62 +726,65 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
646
726
|
) => Promise<{data?: Data; errors?: GraphQLError[]}>;
|
|
647
727
|
|
|
648
728
|
/**
|
|
649
|
-
*
|
|
729
|
+
* The payment options the buyer has currently selected. This updates as the buyer changes their payment method. The array can contain multiple entries when the buyer splits payment across methods (for example, a gift card and a credit card).
|
|
650
730
|
*/
|
|
651
731
|
selectedPaymentOptions: SubscribableSignalLike<SelectedPaymentOption[]>;
|
|
652
732
|
|
|
653
733
|
/**
|
|
654
734
|
* The session token providing a set of claims as a signed JSON Web Token (JWT).
|
|
655
735
|
*
|
|
656
|
-
* The token has a TTL of
|
|
736
|
+
* The token has a TTL of five minutes.
|
|
657
737
|
*
|
|
658
|
-
* If the previous token expires, this value
|
|
738
|
+
* If the previous token expires, this value reflects a new session token with a new signature and expiry.
|
|
659
739
|
*
|
|
660
|
-
*
|
|
740
|
+
* Learn more about [session tokens](/docs/apps/build/authentication-authorization/session-tokens).
|
|
661
741
|
*/
|
|
662
742
|
sessionToken: SessionToken;
|
|
663
743
|
|
|
664
744
|
/**
|
|
665
745
|
* The settings matching the settings definition written in the
|
|
666
|
-
* [`shopify.extension.toml`](https://shopify.dev/docs/api/checkout-ui-extensions/configuration) file.
|
|
746
|
+
* [`shopify.extension.toml`](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration) file.
|
|
667
747
|
*
|
|
668
|
-
* Refer to [settings examples](https://shopify.dev/docs/api/checkout-ui-extensions/apis/settings#examples) for more information.
|
|
748
|
+
* Refer to [settings examples](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/apis/settings#examples) for more information.
|
|
669
749
|
*
|
|
670
|
-
* > Note: When an extension is being installed in the editor, the settings
|
|
671
|
-
* a merchant sets a value. In that case, this object
|
|
750
|
+
* > Note: When an extension is being installed in the editor, the settings are empty until
|
|
751
|
+
* a merchant sets a value. In that case, this object updates in real time as a merchant fills in the settings.
|
|
672
752
|
*/
|
|
673
753
|
settings: SubscribableSignalLike<ExtensionSettings>;
|
|
674
754
|
|
|
675
755
|
/**
|
|
676
756
|
* The proposed customer shipping address. During the information step, the address
|
|
677
757
|
* updates when the field is committed (on change) rather than every keystroke.
|
|
678
|
-
*
|
|
679
|
-
* subscribable value is undefined.
|
|
758
|
+
* The property is available only if the extension has access to protected customer
|
|
759
|
+
* data. When available, the subscribable value is `undefined` if delivery isn't required.
|
|
680
760
|
*
|
|
681
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
761
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
682
762
|
*/
|
|
683
763
|
shippingAddress?: SubscribableSignalLike<ShippingAddress | undefined>;
|
|
684
764
|
|
|
685
765
|
/**
|
|
686
766
|
* The proposed customer billing address. The address updates when the field is
|
|
687
|
-
* committed (on change) rather than every keystroke.
|
|
767
|
+
* committed (on change) rather than every keystroke. The property is available only
|
|
768
|
+
* if the extension has access to protected customer data. The subscribable value is
|
|
769
|
+
* `undefined` if the billing address hasn't been provided yet.
|
|
688
770
|
*
|
|
689
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
771
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
690
772
|
*/
|
|
691
773
|
billingAddress?: SubscribableSignalLike<MailingAddress | undefined>;
|
|
692
774
|
|
|
693
|
-
/**
|
|
775
|
+
/**
|
|
776
|
+
* The store where the checkout is taking place, including the shop name,
|
|
777
|
+
* storefront URL, `.myshopify.com` subdomain, and a globally-unique ID.
|
|
778
|
+
*/
|
|
694
779
|
shop: Shop;
|
|
695
780
|
|
|
696
781
|
/**
|
|
697
|
-
*
|
|
698
|
-
*
|
|
699
|
-
*
|
|
700
|
-
*
|
|
701
|
-
* > Caution: Data persistence isn't guaranteed and storage is reset when the customer starts a new checkout.
|
|
782
|
+
* Key-value storage that persists across page loads within the current checkout
|
|
783
|
+
* session. Data is shared across all activated extension targets of this
|
|
784
|
+
* extension.
|
|
702
785
|
*
|
|
703
|
-
*
|
|
704
|
-
*
|
|
786
|
+
* > Caution: Data persistence isn't guaranteed and storage is cleared when the
|
|
787
|
+
* buyer starts a new checkout.
|
|
705
788
|
*/
|
|
706
789
|
storage: Storage;
|
|
707
790
|
|
|
@@ -718,249 +801,262 @@ export interface StandardApi<Target extends ExtensionTarget = ExtensionTarget> {
|
|
|
718
801
|
customerPrivacy: SubscribableSignalLike<CustomerPrivacy>;
|
|
719
802
|
|
|
720
803
|
/**
|
|
721
|
-
*
|
|
804
|
+
* Enables setting and updating customer privacy consent settings and tracking consent metafields.
|
|
722
805
|
*
|
|
723
|
-
* > Note: Requires the [`customer_privacy` capability](https://shopify.dev/docs/api/checkout-ui-extensions/
|
|
806
|
+
* > Note: Requires the [`customer_privacy` capability](https://shopify.dev/docs/api/checkout-ui-extensions/{API_VERSION}/configuration#collect-buyer-consent) to be set to `true`.
|
|
724
807
|
*
|
|
725
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
808
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
726
809
|
*/
|
|
727
810
|
applyTrackingConsentChange: ApplyTrackingConsentChangeType;
|
|
728
811
|
|
|
729
812
|
/**
|
|
730
|
-
* The
|
|
731
|
-
* For example, some countries require additional fields for customs information or tax identification numbers.
|
|
813
|
+
* Additional region-specific fields required during checkout, such as tax identification numbers (Brazil's CPF/CNPJ) or customs credentials. The property is available only if the extension has access to protected customer data. The array is empty if the current checkout doesn't require any localized fields.
|
|
732
814
|
*/
|
|
733
815
|
localizedFields?: SubscribableSignalLike<LocalizedField[]>;
|
|
734
816
|
}
|
|
735
817
|
|
|
818
|
+
/**
|
|
819
|
+
* Authenticates requests between your extension and your app backend.
|
|
820
|
+
* Use session tokens to verify the identity of the buyer and the shop
|
|
821
|
+
* context when making server-side API calls. The token is a signed JWT
|
|
822
|
+
* that contains claims such as the customer ID, shop domain, and expiration.
|
|
823
|
+
*/
|
|
736
824
|
export interface SessionToken {
|
|
737
825
|
/**
|
|
738
826
|
* Requests a session token that hasn't expired. You should call this method every
|
|
739
827
|
* time you need to make a request to your backend in order to get a valid token.
|
|
740
|
-
* This method
|
|
828
|
+
* This method returns cached tokens when possible, so you don't need to worry
|
|
741
829
|
* about storing these tokens yourself.
|
|
742
830
|
*/
|
|
743
831
|
get(): Promise<string>;
|
|
744
832
|
}
|
|
745
833
|
|
|
834
|
+
/**
|
|
835
|
+
* Information about the buyer who is completing the checkout.
|
|
836
|
+
*
|
|
837
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/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.
|
|
838
|
+
* @publicDocs
|
|
839
|
+
*/
|
|
746
840
|
export interface BuyerIdentity {
|
|
747
841
|
/**
|
|
748
|
-
* The buyer's customer account. The value is undefined if the buyer isn
|
|
842
|
+
* The buyer's customer account, including their ID and whether they've accepted marketing. The value is `undefined` if the buyer isn't a
|
|
749
843
|
* known customer for this shop or if they haven't logged in yet.
|
|
750
844
|
*
|
|
751
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
845
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
752
846
|
*/
|
|
753
847
|
customer: SubscribableSignalLike<Customer | undefined>;
|
|
754
848
|
|
|
755
849
|
/**
|
|
756
|
-
* The email address
|
|
757
|
-
* The value is `undefined` if the app does not have access to customer data.
|
|
850
|
+
* The email address the buyer provided during checkout. The value is `undefined` if the app doesn't have access to customer data.
|
|
758
851
|
*
|
|
759
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
852
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
760
853
|
*/
|
|
761
854
|
email: SubscribableSignalLike<string | undefined>;
|
|
762
855
|
|
|
763
856
|
/**
|
|
764
|
-
* The phone number
|
|
765
|
-
* The value is `undefined` if the app does not have access to customer data.
|
|
857
|
+
* The phone number the buyer provided during checkout. The value is `undefined` if no phone number was provided or the app doesn't have access to customer data.
|
|
766
858
|
*
|
|
767
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
859
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
768
860
|
*/
|
|
769
861
|
phone: SubscribableSignalLike<string | undefined>;
|
|
770
862
|
|
|
771
863
|
/**
|
|
772
|
-
*
|
|
773
|
-
* This includes information that can be used to identify the company and the company location that the business
|
|
774
|
-
* customer belongs to.
|
|
864
|
+
* The company and company location that a B2B (business-to-business) customer is purchasing on behalf of. Use this to identify the business context of the order. The value is `undefined` if the buyer isn't a B2B customer.
|
|
775
865
|
*
|
|
776
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
866
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
777
867
|
*/
|
|
778
868
|
purchasingCompany: SubscribableSignalLike<PurchasingCompany | undefined>;
|
|
779
869
|
}
|
|
780
870
|
|
|
781
871
|
/**
|
|
782
|
-
* The
|
|
872
|
+
* The company and location that the [B2B](https://shopify.dev/docs/apps/build/b2b) customer is purchasing on behalf of. This is present only when the buyer is logged in as a business customer.
|
|
873
|
+
* @publicDocs
|
|
783
874
|
*/
|
|
784
875
|
export interface PurchasingCompany {
|
|
785
876
|
/**
|
|
786
|
-
*
|
|
877
|
+
* The company the B2B customer belongs to.
|
|
787
878
|
*
|
|
788
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
879
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
789
880
|
*/
|
|
790
881
|
company: Company;
|
|
791
882
|
/**
|
|
792
|
-
*
|
|
883
|
+
* The specific company location associated with this B2B purchase.
|
|
793
884
|
*
|
|
794
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
885
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
795
886
|
*/
|
|
796
887
|
location: CompanyLocation;
|
|
797
888
|
}
|
|
798
889
|
|
|
890
|
+
/** @publicDocs */
|
|
799
891
|
export interface Company {
|
|
800
892
|
/**
|
|
801
|
-
*
|
|
893
|
+
* A globally-unique identifier for the company in the format `gid://shopify/Company/<id>`.
|
|
894
|
+
*
|
|
895
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
802
896
|
*
|
|
803
|
-
*
|
|
897
|
+
* @example 'gid://shopify/Company/123'
|
|
804
898
|
*/
|
|
805
899
|
id: string;
|
|
806
900
|
/**
|
|
807
|
-
* The
|
|
901
|
+
* The company's display name.
|
|
808
902
|
*
|
|
809
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
903
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
810
904
|
*/
|
|
811
905
|
name: string;
|
|
812
906
|
/**
|
|
813
|
-
*
|
|
907
|
+
* A merchant-defined external identifier for the company. The value is `undefined` if the merchant hasn't set one.
|
|
814
908
|
*
|
|
815
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
909
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
816
910
|
*/
|
|
817
911
|
externalId?: string;
|
|
818
912
|
}
|
|
819
913
|
|
|
914
|
+
/** @publicDocs */
|
|
820
915
|
export interface CompanyLocation {
|
|
821
916
|
/**
|
|
822
|
-
*
|
|
917
|
+
* A globally-unique identifier for the company location in the format `gid://shopify/CompanyLocation/<id>`.
|
|
918
|
+
*
|
|
919
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
823
920
|
*
|
|
824
|
-
*
|
|
921
|
+
* @example 'gid://shopify/CompanyLocation/123'
|
|
825
922
|
*/
|
|
826
923
|
id: string;
|
|
827
924
|
/**
|
|
828
|
-
* The name of the company location.
|
|
925
|
+
* The display name of the company location.
|
|
829
926
|
*
|
|
830
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
927
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
831
928
|
*/
|
|
832
929
|
name: string;
|
|
833
930
|
/**
|
|
834
|
-
*
|
|
931
|
+
* A merchant-defined external identifier for the company location. The value is `undefined` if the merchant hasn't set one.
|
|
835
932
|
*
|
|
836
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
933
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
837
934
|
*/
|
|
838
935
|
externalId?: string;
|
|
839
936
|
}
|
|
840
937
|
|
|
938
|
+
/** @publicDocs */
|
|
841
939
|
export interface AppliedGiftCard {
|
|
842
940
|
/**
|
|
843
|
-
* The last four characters of the applied gift card's code.
|
|
941
|
+
* The last four characters of the applied gift card's code. The full code isn't exposed for security reasons. Use this value to display which card is applied.
|
|
844
942
|
*/
|
|
845
943
|
lastCharacters: string;
|
|
846
944
|
|
|
847
945
|
/**
|
|
848
|
-
* The amount of the applied gift card that
|
|
946
|
+
* The amount of the applied gift card that's used when the checkout is completed. This might be less than `balance` if the order total is lower than the card's remaining balance.
|
|
849
947
|
*/
|
|
850
948
|
amountUsed: Money;
|
|
851
949
|
|
|
852
950
|
/**
|
|
853
|
-
* The current balance of the applied gift card
|
|
951
|
+
* The current balance of the applied gift card before checkout completion. This reflects the full remaining value on the card, not just the amount being applied to this order.
|
|
854
952
|
*/
|
|
855
953
|
balance: Money;
|
|
856
954
|
}
|
|
857
955
|
|
|
956
|
+
/**
|
|
957
|
+
* Metadata about the merchant's store, including its name, storefront
|
|
958
|
+
* URL, `.myshopify.com` subdomain, and a globally-unique ID.
|
|
959
|
+
*/
|
|
858
960
|
export interface Shop {
|
|
859
961
|
/**
|
|
860
|
-
*
|
|
962
|
+
* A globally-unique identifier for the shop in the format `gid://shopify/Shop/<id>`.
|
|
963
|
+
*
|
|
861
964
|
* @example 'gid://shopify/Shop/123'
|
|
862
965
|
*/
|
|
863
966
|
id: string;
|
|
864
967
|
/**
|
|
865
|
-
* The name of the shop.
|
|
968
|
+
* The display name of the shop as configured by the merchant in Shopify admin.
|
|
866
969
|
*/
|
|
867
970
|
name: string;
|
|
868
971
|
/**
|
|
869
|
-
* The primary storefront URL.
|
|
870
|
-
*
|
|
871
|
-
* > Caution:
|
|
872
|
-
* > As of version `2024-04` this value will no longer have a trailing slash.
|
|
972
|
+
* 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.
|
|
873
973
|
*/
|
|
874
974
|
storefrontUrl?: string;
|
|
875
975
|
/**
|
|
876
|
-
* The shop's myshopify.com domain.
|
|
976
|
+
* 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.
|
|
877
977
|
*/
|
|
878
978
|
myshopifyDomain: string;
|
|
879
979
|
}
|
|
880
980
|
|
|
981
|
+
/** @publicDocs */
|
|
881
982
|
export interface CartCost {
|
|
882
983
|
/**
|
|
883
|
-
*
|
|
884
|
-
* step of checkout.
|
|
984
|
+
* The sum of all line item prices at the current step of checkout, before shipping and taxes are applied. Use this value to display the base cost of the items the buyer purchased.
|
|
885
985
|
*/
|
|
886
986
|
subtotalAmount: SubscribableSignalLike<Money>;
|
|
887
987
|
|
|
888
988
|
/**
|
|
889
|
-
*
|
|
890
|
-
* step of checkout. This value includes shipping discounts. Returns undefined if shipping
|
|
891
|
-
* has not been negotiated yet, such as on the information step.
|
|
989
|
+
* The total shipping cost after shipping discounts have been applied. The value is `undefined` if shipping hasn't been calculated yet, such as when the buyer is still on the information step.
|
|
892
990
|
*/
|
|
893
991
|
totalShippingAmount: SubscribableSignalLike<Money | undefined>;
|
|
894
992
|
|
|
895
993
|
/**
|
|
896
|
-
*
|
|
897
|
-
* step of checkout or the total tax included in product and shipping prices. Returns
|
|
898
|
-
* undefined if taxes are unavailable.
|
|
994
|
+
* The total tax the buyer can expect to pay, or the total tax already included in product and shipping prices (for tax-inclusive regions). The value is `undefined` if taxes haven't been calculated yet.
|
|
899
995
|
*/
|
|
900
996
|
totalTaxAmount: SubscribableSignalLike<Money | undefined>;
|
|
901
997
|
|
|
902
998
|
/**
|
|
903
|
-
*
|
|
904
|
-
* step of checkout. This value excludes amounts yet to be negotiated. For example,
|
|
905
|
-
* the information step might not have delivery costs calculated.
|
|
999
|
+
* The minimum total at the current step of checkout. Costs not yet calculated, such as shipping on the information step, aren't included. Gift cards and store credits are excluded from this total.
|
|
906
1000
|
*/
|
|
907
1001
|
totalAmount: SubscribableSignalLike<Money>;
|
|
908
1002
|
}
|
|
909
1003
|
|
|
1004
|
+
/** @publicDocs */
|
|
910
1005
|
export interface CartLine {
|
|
911
1006
|
/**
|
|
912
|
-
*
|
|
913
|
-
*
|
|
914
|
-
* ID before any call to `applyCartLinesChange` because you'll need the ID to
|
|
915
|
-
* create a `CartLineChange` object.
|
|
1007
|
+
* A unique identifier for the cart line in the format `gid://shopify/CartLine/<id>`. This ID isn't stable and can change after any cart operation, so avoid persisting it. Always look up the current ID before calling `applyCartLinesChange()`, because you'll need it to create a `CartLineChange` object.
|
|
1008
|
+
*
|
|
916
1009
|
* @example 'gid://shopify/CartLine/123'
|
|
917
1010
|
*/
|
|
918
1011
|
id: string;
|
|
919
1012
|
|
|
920
1013
|
/**
|
|
921
|
-
* The merchandise
|
|
1014
|
+
* 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.
|
|
922
1015
|
*/
|
|
923
1016
|
merchandise: Merchandise;
|
|
924
1017
|
|
|
925
1018
|
/**
|
|
926
|
-
* The
|
|
1019
|
+
* The number of units of this merchandise that the buyer purchased.
|
|
927
1020
|
*/
|
|
928
1021
|
quantity: number;
|
|
929
1022
|
|
|
930
1023
|
/**
|
|
931
|
-
* The
|
|
1024
|
+
* The cost breakdown for this line item, including the total price after any line-level discounts have been applied.
|
|
932
1025
|
*/
|
|
933
1026
|
cost: CartLineCost;
|
|
934
1027
|
|
|
935
1028
|
/**
|
|
936
|
-
*
|
|
1029
|
+
* Custom key-value attributes attached to this cart line, such as gift messages or engraving text. Use `applyCartLinesChange()` to update these values.
|
|
937
1030
|
*/
|
|
938
1031
|
attributes: Attribute[];
|
|
939
1032
|
|
|
940
1033
|
/**
|
|
941
|
-
* Discounts applied to
|
|
1034
|
+
* Discounts applied to this cart line, including code-based, automatic, and custom discounts. Each allocation shows the discounted amount and how the discount was triggered.
|
|
942
1035
|
*/
|
|
943
1036
|
discountAllocations: CartDiscountAllocation[];
|
|
944
1037
|
|
|
945
1038
|
/**
|
|
946
|
-
*
|
|
1039
|
+
* The individual components of a [bundle](https://shopify.dev/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.
|
|
947
1040
|
*/
|
|
948
1041
|
lineComponents: CartLineComponentType[];
|
|
949
1042
|
|
|
950
1043
|
/**
|
|
951
|
-
* The
|
|
1044
|
+
* The parent line item that this line belongs to, or `null` if this is a
|
|
1045
|
+
* top-level line item. Used to identify lines added as children of a bundle
|
|
1046
|
+
* or other grouped product.
|
|
952
1047
|
*/
|
|
953
1048
|
parentRelationship: CartLineParentRelationship | null;
|
|
954
1049
|
}
|
|
955
1050
|
|
|
1051
|
+
/** @publicDocs */
|
|
956
1052
|
export interface CartLineParentRelationship {
|
|
957
1053
|
/**
|
|
958
1054
|
* The parent cart line that a cart line is associated with.
|
|
959
1055
|
*/
|
|
960
1056
|
parent: {
|
|
961
1057
|
/**
|
|
962
|
-
* These line item IDs
|
|
963
|
-
* any operations on the line items.
|
|
1058
|
+
* These line item IDs aren't stable at the moment, and they might change after
|
|
1059
|
+
* any operations on the line items. Always look up an updated
|
|
964
1060
|
* ID before any call to `applyCartLinesChange` because you'll need the ID to
|
|
965
1061
|
* create a `CartLineChange` object.
|
|
966
1062
|
* @example 'gid://shopify/CartLine/123'
|
|
@@ -971,170 +1067,195 @@ export interface CartLineParentRelationship {
|
|
|
971
1067
|
|
|
972
1068
|
type CartLineComponentType = CartBundleLineComponent;
|
|
973
1069
|
|
|
1070
|
+
/**
|
|
1071
|
+
* An individual component within a bundled cart line. Each `CartLine` that represents a bundle has a `lineComponents` array containing these components.
|
|
1072
|
+
* @publicDocs
|
|
1073
|
+
*/
|
|
974
1074
|
export interface CartBundleLineComponent {
|
|
1075
|
+
/**
|
|
1076
|
+
* Identifies this as a bundle line component. This is currently the only component type.
|
|
1077
|
+
*/
|
|
975
1078
|
type: 'bundle';
|
|
976
1079
|
|
|
977
1080
|
/**
|
|
978
|
-
* A unique identifier for the bundle line
|
|
979
|
-
*
|
|
980
|
-
* This ID is not stable. If an operation updates the line items in any way, all IDs could change.
|
|
1081
|
+
* A unique identifier for this component within the bundle, in the format `gid://shopify/CartLineComponent/<id>`. This ID isn't stable and might change after any operation that updates the line items.
|
|
981
1082
|
*
|
|
982
1083
|
* @example 'gid://shopify/CartLineComponent/123'
|
|
983
1084
|
*/
|
|
984
1085
|
id: string;
|
|
985
1086
|
|
|
986
1087
|
/**
|
|
987
|
-
* The
|
|
1088
|
+
* The product variant included in this bundle component. Use this to display product details for individual items within a bundle.
|
|
988
1089
|
*/
|
|
989
1090
|
merchandise: Merchandise;
|
|
990
1091
|
|
|
991
1092
|
/**
|
|
992
|
-
* The
|
|
1093
|
+
* The number of units of this component included in the bundle.
|
|
993
1094
|
*/
|
|
994
1095
|
quantity: number;
|
|
995
1096
|
|
|
996
1097
|
/**
|
|
997
|
-
* The cost
|
|
1098
|
+
* The cost breakdown for this bundle component, including the total amount after any per-item discounts.
|
|
998
1099
|
*/
|
|
999
1100
|
cost: CartLineCost;
|
|
1000
1101
|
|
|
1001
1102
|
/**
|
|
1002
|
-
*
|
|
1103
|
+
* Custom key-value pairs attached to this bundle component, such as personalization options specific to this item within the bundle.
|
|
1003
1104
|
*
|
|
1004
1105
|
* @example [{key: 'engraving', value: 'hello world'}]
|
|
1005
1106
|
*/
|
|
1006
1107
|
attributes: Attribute[];
|
|
1007
1108
|
}
|
|
1008
1109
|
|
|
1110
|
+
/** @publicDocs */
|
|
1009
1111
|
export interface CartLineCost {
|
|
1010
1112
|
/**
|
|
1011
|
-
* The total
|
|
1012
|
-
* cart line.
|
|
1113
|
+
* 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.
|
|
1013
1114
|
*/
|
|
1014
1115
|
totalAmount: Money;
|
|
1015
1116
|
}
|
|
1016
1117
|
|
|
1118
|
+
/** @publicDocs */
|
|
1017
1119
|
export interface Money {
|
|
1018
1120
|
/**
|
|
1019
|
-
* The
|
|
1121
|
+
* The decimal amount of the price. For example, `29.99` represents twenty-nine dollars and ninety-nine cents.
|
|
1020
1122
|
*/
|
|
1021
1123
|
amount: number;
|
|
1022
1124
|
/**
|
|
1023
|
-
* The
|
|
1125
|
+
* The three-letter currency code in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format.
|
|
1126
|
+
*
|
|
1024
1127
|
* @example 'CAD' for Canadian dollar
|
|
1025
1128
|
*/
|
|
1026
1129
|
currencyCode: CurrencyCode;
|
|
1027
1130
|
}
|
|
1028
1131
|
|
|
1132
|
+
/** @publicDocs */
|
|
1029
1133
|
export type Merchandise = ProductVariant;
|
|
1030
1134
|
|
|
1135
|
+
/** @publicDocs */
|
|
1031
1136
|
export interface BaseMerchandise {
|
|
1032
1137
|
/**
|
|
1033
|
-
*
|
|
1138
|
+
* A globally unique identifier for the merchandise.
|
|
1139
|
+
*
|
|
1140
|
+
* @example 'gid://shopify/ProductVariant/123'
|
|
1034
1141
|
*/
|
|
1035
1142
|
id: string;
|
|
1036
1143
|
}
|
|
1037
1144
|
|
|
1145
|
+
/** @publicDocs */
|
|
1038
1146
|
export interface ProductVariant extends BaseMerchandise {
|
|
1147
|
+
/**
|
|
1148
|
+
* Identifies the merchandise as a product variant. This is currently the only merchandise type in checkout.
|
|
1149
|
+
*/
|
|
1039
1150
|
type: 'variant';
|
|
1040
1151
|
|
|
1041
1152
|
/**
|
|
1042
|
-
* A globally-unique identifier
|
|
1153
|
+
* A globally-unique identifier for the product variant in the format `gid://shopify/ProductVariant/<id>`.
|
|
1154
|
+
*
|
|
1043
1155
|
* @example 'gid://shopify/ProductVariant/123'
|
|
1044
1156
|
*/
|
|
1045
1157
|
id: string;
|
|
1046
1158
|
|
|
1047
1159
|
/**
|
|
1048
|
-
* The product variant
|
|
1160
|
+
* The display title of the product variant, such as "Small" or "Red / Large". This is the variant-specific label, not the parent product title.
|
|
1049
1161
|
*/
|
|
1050
1162
|
title: string;
|
|
1051
1163
|
|
|
1052
1164
|
/**
|
|
1053
|
-
*
|
|
1165
|
+
* 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.
|
|
1054
1166
|
*/
|
|
1055
1167
|
subtitle?: string;
|
|
1056
1168
|
|
|
1057
1169
|
/**
|
|
1058
|
-
*
|
|
1059
|
-
* image if no image is available.
|
|
1170
|
+
* The image associated with the product variant. Falls back to the product image if the variant doesn't have its own. The value is `undefined` if neither the variant nor the product has an image.
|
|
1060
1171
|
*/
|
|
1061
1172
|
image?: ImageDetails;
|
|
1062
1173
|
|
|
1063
1174
|
/**
|
|
1064
|
-
*
|
|
1175
|
+
* The product options applied to this variant, such as size, color, or material. Each entry contains the option name and the selected value.
|
|
1065
1176
|
*/
|
|
1066
1177
|
selectedOptions: SelectedOption[];
|
|
1067
1178
|
|
|
1068
1179
|
/**
|
|
1069
|
-
* The product
|
|
1180
|
+
* The parent product that this variant belongs to. Use this to access the product's ID, vendor, and type.
|
|
1070
1181
|
*/
|
|
1071
1182
|
product: Product;
|
|
1072
1183
|
|
|
1073
1184
|
/**
|
|
1074
|
-
* Whether
|
|
1185
|
+
* Whether this product variant requires physical shipping. When `true`, the buyer must provide a shipping address. Returns `false` for digital products, gift cards, and services.
|
|
1075
1186
|
*/
|
|
1076
1187
|
requiresShipping: boolean;
|
|
1077
1188
|
|
|
1078
1189
|
/**
|
|
1079
|
-
* The selling plan associated with the
|
|
1190
|
+
* The [selling plan](https://shopify.dev/docs/apps/build/purchase-options/subscriptions) associated with this variant, such as a subscription or pre-order plan. The value is `undefined` if the item isn't being purchased through a selling plan.
|
|
1080
1191
|
*/
|
|
1081
1192
|
sellingPlan?: SellingPlan;
|
|
1082
1193
|
|
|
1083
1194
|
/**
|
|
1084
|
-
* The
|
|
1195
|
+
* 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.
|
|
1085
1196
|
*/
|
|
1086
1197
|
sku?: string;
|
|
1087
1198
|
}
|
|
1088
1199
|
|
|
1200
|
+
/** @publicDocs */
|
|
1089
1201
|
export interface Product {
|
|
1090
1202
|
/**
|
|
1091
|
-
* A globally-unique identifier
|
|
1203
|
+
* A globally-unique identifier for the product in the format `gid://shopify/Product/<id>`.
|
|
1204
|
+
*
|
|
1205
|
+
* @example 'gid://shopify/Product/123'
|
|
1092
1206
|
*/
|
|
1093
1207
|
id: string;
|
|
1094
1208
|
|
|
1095
1209
|
/**
|
|
1096
|
-
* The product
|
|
1210
|
+
* The name of the product's vendor or manufacturer, as set by the merchant in Shopify admin.
|
|
1097
1211
|
*/
|
|
1098
1212
|
vendor: string;
|
|
1099
1213
|
|
|
1100
1214
|
/**
|
|
1101
|
-
* A categorization
|
|
1215
|
+
* A merchant-defined categorization for the product, such as "Accessories" or "Clothing". Commonly used for filtering and organizing products in a storefront.
|
|
1102
1216
|
*/
|
|
1103
1217
|
productType: string;
|
|
1104
1218
|
}
|
|
1105
1219
|
|
|
1220
|
+
/** @publicDocs */
|
|
1106
1221
|
export interface ImageDetails {
|
|
1107
1222
|
/**
|
|
1108
|
-
* The
|
|
1223
|
+
* The fully-qualified URL of the image. Use this to render the product or variant image in your extension.
|
|
1109
1224
|
*/
|
|
1110
1225
|
url: string;
|
|
1111
1226
|
|
|
1112
1227
|
/**
|
|
1113
|
-
* The alternative text for the image.
|
|
1228
|
+
* The alternative text for the image, used for accessibility. The value is `undefined` if the merchant hasn't provided alt text.
|
|
1114
1229
|
*/
|
|
1115
1230
|
altText?: string;
|
|
1116
1231
|
}
|
|
1117
1232
|
|
|
1233
|
+
/** @publicDocs */
|
|
1118
1234
|
export interface SelectedOption {
|
|
1119
1235
|
/**
|
|
1120
|
-
* The name of the
|
|
1236
|
+
* The name of the product option, such as "Color" or "Size".
|
|
1237
|
+
*
|
|
1238
|
+
* @example 'Size'
|
|
1121
1239
|
*/
|
|
1122
1240
|
name: string;
|
|
1123
1241
|
|
|
1124
1242
|
/**
|
|
1125
|
-
* The value
|
|
1243
|
+
* The selected value for the product option, such as "Red" or "Large".
|
|
1244
|
+
*
|
|
1245
|
+
* @example 'Large'
|
|
1126
1246
|
*/
|
|
1127
1247
|
value: string;
|
|
1128
1248
|
}
|
|
1129
1249
|
|
|
1130
1250
|
/**
|
|
1131
1251
|
* A payment option presented to the buyer.
|
|
1252
|
+
* @publicDocs
|
|
1132
1253
|
*/
|
|
1133
1254
|
export interface PaymentOption {
|
|
1134
1255
|
/**
|
|
1135
1256
|
* The type of the payment option.
|
|
1136
1257
|
*
|
|
1137
|
-
* Shops can be configured to support many different payment options. Some options are only
|
|
1258
|
+
* Shops can be configured to support many different payment options. Some options are available only to buyers in specific regions.
|
|
1138
1259
|
*
|
|
1139
1260
|
* | Type | Description |
|
|
1140
1261
|
* |---|---|
|
|
@@ -1144,10 +1265,10 @@ export interface PaymentOption {
|
|
|
1144
1265
|
* | `manualPayment` | A manual payment option such as an in-person retail transaction. |
|
|
1145
1266
|
* | `offsite` | A payment processed outside of Shopify's checkout, excluding integrated wallets. |
|
|
1146
1267
|
* | `other` | Another type of payment not defined here. |
|
|
1147
|
-
* | `paymentOnDelivery` | A payment
|
|
1268
|
+
* | `paymentOnDelivery` | A payment collected on delivery. |
|
|
1148
1269
|
* | `redeemable` | A redeemable payment option such as a gift card or store credit. |
|
|
1149
|
-
* | `wallet` | An integrated wallet such as PayPal, Google Pay, Apple Pay
|
|
1150
|
-
* | `customOnsite` | A custom payment option that
|
|
1270
|
+
* | `wallet` | An integrated wallet such as PayPal, Google Pay, or Apple Pay. |
|
|
1271
|
+
* | `customOnsite` | A custom payment option that's processed through a checkout extension with a payments app. |
|
|
1151
1272
|
*/
|
|
1152
1273
|
type:
|
|
1153
1274
|
| 'creditCard'
|
|
@@ -1162,67 +1283,82 @@ export interface PaymentOption {
|
|
|
1162
1283
|
| 'customOnsite';
|
|
1163
1284
|
|
|
1164
1285
|
/**
|
|
1165
|
-
*
|
|
1166
|
-
*
|
|
1167
|
-
* This is not a globally unique identifier. It may be an identifier specific to the given checkout session or the current shop.
|
|
1286
|
+
* A session-scoped identifier for this payment option. This handle isn't globally unique; it's specific to the current checkout session or the shop.
|
|
1168
1287
|
*/
|
|
1169
1288
|
handle: string;
|
|
1170
1289
|
}
|
|
1171
1290
|
|
|
1291
|
+
/**
|
|
1292
|
+
* A payment option that the buyer has actively selected. This is the same shape as `PaymentOption` and appears in `selectedPaymentOptions`.
|
|
1293
|
+
* @publicDocs
|
|
1294
|
+
*/
|
|
1172
1295
|
export type SelectedPaymentOption = PaymentOption;
|
|
1173
1296
|
|
|
1297
|
+
/** @publicDocs */
|
|
1174
1298
|
export interface CartDiscountCode {
|
|
1175
1299
|
/**
|
|
1176
|
-
* The code
|
|
1300
|
+
* The discount code string entered by the buyer during checkout or applied programmatically, such as `"SAVE10"` or `"FREESHIP"`. Use this to display which discount codes were applied.
|
|
1177
1301
|
*/
|
|
1178
1302
|
code: string;
|
|
1179
1303
|
}
|
|
1304
|
+
/**
|
|
1305
|
+
* A discount allocation applied to the cart. Use the `type` property to determine how the discount was triggered:
|
|
1306
|
+
*
|
|
1307
|
+
* - `CartCodeDiscountAllocation` (`type: 'code'`): Triggered by a discount code the buyer entered.
|
|
1308
|
+
* - `CartAutomaticDiscountAllocation` (`type: 'automatic'`): Applied automatically based on merchant-configured rules.
|
|
1309
|
+
* - `CartCustomDiscountAllocation` (`type: 'custom'`): Applied by a [Shopify Function](https://shopify.dev/docs/api/functions/latest/discount).
|
|
1310
|
+
* @publicDocs
|
|
1311
|
+
*/
|
|
1180
1312
|
export type CartDiscountAllocation =
|
|
1181
1313
|
| CartCodeDiscountAllocation
|
|
1182
1314
|
| CartAutomaticDiscountAllocation
|
|
1183
1315
|
| CartCustomDiscountAllocation;
|
|
1184
1316
|
|
|
1317
|
+
/** @publicDocs */
|
|
1185
1318
|
export interface CartDiscountAllocationBase {
|
|
1186
1319
|
/**
|
|
1187
|
-
* The
|
|
1320
|
+
* The monetary value that was deducted from the line item or order total by this discount allocation.
|
|
1188
1321
|
*/
|
|
1189
1322
|
discountedAmount: Money;
|
|
1190
1323
|
}
|
|
1191
1324
|
|
|
1325
|
+
/** @publicDocs */
|
|
1192
1326
|
export interface CartCodeDiscountAllocation extends CartDiscountAllocationBase {
|
|
1193
1327
|
/**
|
|
1194
|
-
* The code
|
|
1328
|
+
* The discount code string that the buyer entered during checkout, such as `"SAVE10"` or `"FREESHIP"`.
|
|
1195
1329
|
*/
|
|
1196
1330
|
code: string;
|
|
1197
1331
|
|
|
1198
1332
|
/**
|
|
1199
|
-
*
|
|
1333
|
+
* Identifies this as a code-based discount, triggered by a discount code the buyer entered at checkout.
|
|
1200
1334
|
*/
|
|
1201
1335
|
type: 'code';
|
|
1202
1336
|
}
|
|
1203
1337
|
|
|
1338
|
+
/** @publicDocs */
|
|
1204
1339
|
export interface CartAutomaticDiscountAllocation
|
|
1205
1340
|
extends CartDiscountAllocationBase {
|
|
1206
1341
|
/**
|
|
1207
|
-
* The title of the automatic discount
|
|
1342
|
+
* The merchant-defined title of the automatic discount as displayed to the buyer, such as "Summer Sale 10% Off".
|
|
1208
1343
|
*/
|
|
1209
1344
|
title: string;
|
|
1210
1345
|
|
|
1211
1346
|
/**
|
|
1212
|
-
*
|
|
1347
|
+
* Identifies this as an automatic discount, applied based on merchant-configured rules without a code.
|
|
1213
1348
|
*/
|
|
1214
1349
|
type: 'automatic';
|
|
1215
1350
|
}
|
|
1216
1351
|
|
|
1352
|
+
/** @publicDocs */
|
|
1217
1353
|
export interface CartCustomDiscountAllocation
|
|
1218
1354
|
extends CartDiscountAllocationBase {
|
|
1219
1355
|
/**
|
|
1220
|
-
* The title of the custom discount
|
|
1356
|
+
* The title of the custom discount, typically applied by a [Shopify Function](https://shopify.dev/docs/api/functions/latest/discount).
|
|
1221
1357
|
*/
|
|
1222
1358
|
title: string;
|
|
1223
1359
|
|
|
1224
1360
|
/**
|
|
1225
|
-
*
|
|
1361
|
+
* Identifies this as a custom discount applied by a [Shopify Function](https://shopify.dev/docs/api/functions/latest/discount).
|
|
1226
1362
|
*/
|
|
1227
1363
|
type: 'custom';
|
|
1228
1364
|
}
|
|
@@ -1239,19 +1375,20 @@ interface InterceptorResultAllow {
|
|
|
1239
1375
|
interface InterceptorResultBlock {
|
|
1240
1376
|
/**
|
|
1241
1377
|
* Indicates that some part of the checkout UI intercepted and prevented
|
|
1242
|
-
* the buyer
|
|
1378
|
+
* the buyer's progress. The buyer typically needs to take some action
|
|
1243
1379
|
* to resolve this issue and to move on to the next step.
|
|
1244
1380
|
*/
|
|
1245
1381
|
behavior: 'block';
|
|
1246
1382
|
}
|
|
1247
1383
|
|
|
1384
|
+
/** @publicDocs */
|
|
1248
1385
|
export type InterceptorRequest =
|
|
1249
1386
|
| InterceptorRequestAllow
|
|
1250
1387
|
| InterceptorRequestBlock;
|
|
1251
1388
|
|
|
1252
1389
|
interface InterceptorRequestAllow {
|
|
1253
1390
|
/**
|
|
1254
|
-
* Indicates that the interceptor
|
|
1391
|
+
* Indicates that the interceptor allows the buyer's journey to continue.
|
|
1255
1392
|
*/
|
|
1256
1393
|
behavior: 'allow';
|
|
1257
1394
|
|
|
@@ -1266,13 +1403,13 @@ interface InterceptorRequestAllow {
|
|
|
1266
1403
|
// The reason is used for tracing and debugging purposes.
|
|
1267
1404
|
interface InterceptorRequestBlock {
|
|
1268
1405
|
/**
|
|
1269
|
-
* Indicates that the interceptor
|
|
1406
|
+
* Indicates that the interceptor blocks the buyer's journey from continuing.
|
|
1270
1407
|
*/
|
|
1271
1408
|
behavior: 'block';
|
|
1272
1409
|
|
|
1273
1410
|
/**
|
|
1274
1411
|
* The reason for blocking the interceptor request. This value isn't presented to
|
|
1275
|
-
* the buyer, so it doesn't need to be localized. The value is used only for Shopify
|
|
1412
|
+
* the buyer, so it doesn't need to be localized. The value is used only for Shopify's
|
|
1276
1413
|
* own internal debugging and metrics.
|
|
1277
1414
|
*/
|
|
1278
1415
|
reason: string;
|
|
@@ -1291,10 +1428,10 @@ interface InterceptorRequestBlock {
|
|
|
1291
1428
|
perform?(result: InterceptorResult): void | Promise<void>;
|
|
1292
1429
|
}
|
|
1293
1430
|
|
|
1431
|
+
/** @publicDocs */
|
|
1294
1432
|
export interface InterceptorProps {
|
|
1295
1433
|
/**
|
|
1296
|
-
* Whether the interceptor has the capability
|
|
1297
|
-
* checkout. This ability might be granted by a merchant in differing checkout contexts.
|
|
1434
|
+
* Whether the interceptor can block the buyer's progress through checkout. When `true`, the merchant has granted your extension the `block_progress` capability. When `false`, you can still validate but can't prevent the buyer from continuing.
|
|
1298
1435
|
*/
|
|
1299
1436
|
canBlockProgress: boolean;
|
|
1300
1437
|
}
|
|
@@ -1302,9 +1439,10 @@ export interface InterceptorProps {
|
|
|
1302
1439
|
/**
|
|
1303
1440
|
* A function for intercepting and preventing navigation on checkout. You can block
|
|
1304
1441
|
* navigation by returning an object with
|
|
1305
|
-
* `{behavior: 'block', reason:
|
|
1442
|
+
* `{behavior: 'block', reason: 'your reason here', errors?: ValidationError[]}`.
|
|
1306
1443
|
* If you do, then you're expected to also update some part of your UI to reflect the reason why navigation
|
|
1307
|
-
* was blocked, either by targeting checkout UI fields, passing errors to the page level or rendering the errors in your extension.
|
|
1444
|
+
* was blocked, either by targeting checkout UI fields, passing errors to the page level, or rendering the errors in your extension.
|
|
1445
|
+
* @publicDocs
|
|
1308
1446
|
*/
|
|
1309
1447
|
export type Interceptor = (
|
|
1310
1448
|
interceptorProps: InterceptorProps,
|
|
@@ -1313,57 +1451,58 @@ export type Interceptor = (
|
|
|
1313
1451
|
/**
|
|
1314
1452
|
* Information about a customer who has previously purchased from this shop.
|
|
1315
1453
|
*
|
|
1316
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1454
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1455
|
+
* @publicDocs
|
|
1317
1456
|
*/
|
|
1318
1457
|
export interface Customer {
|
|
1319
1458
|
/**
|
|
1320
|
-
* Customer
|
|
1459
|
+
* An identifier for the customer in the format `gid://shopify/Customer/<id>`. This value is unique per shop.
|
|
1321
1460
|
*
|
|
1322
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1461
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1323
1462
|
*
|
|
1324
1463
|
* @example 'gid://shopify/Customer/123'
|
|
1325
1464
|
*/
|
|
1326
1465
|
id: string;
|
|
1327
1466
|
/**
|
|
1328
|
-
* The email
|
|
1467
|
+
* The email address associated with the customer's account. The value is `undefined` if the app doesn't have the required access level.
|
|
1329
1468
|
*
|
|
1330
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1469
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1331
1470
|
*/
|
|
1332
1471
|
email?: string;
|
|
1333
1472
|
/**
|
|
1334
|
-
* The phone number
|
|
1473
|
+
* 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.
|
|
1335
1474
|
*
|
|
1336
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1475
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1337
1476
|
*/
|
|
1338
1477
|
phone?: string;
|
|
1339
1478
|
/**
|
|
1340
|
-
* The full name of the
|
|
1479
|
+
* 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.
|
|
1341
1480
|
*
|
|
1342
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1481
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1343
1482
|
*/
|
|
1344
1483
|
fullName?: string;
|
|
1345
1484
|
/**
|
|
1346
|
-
* The first name
|
|
1485
|
+
* The customer's first name. The value is `undefined` if the app doesn't have the required access level.
|
|
1347
1486
|
*
|
|
1348
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1487
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1349
1488
|
*/
|
|
1350
1489
|
firstName?: string;
|
|
1351
1490
|
/**
|
|
1352
|
-
* The last name
|
|
1491
|
+
* The customer's last name. The value is `undefined` if the app doesn't have the required access level.
|
|
1353
1492
|
*
|
|
1354
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1493
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 2 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1355
1494
|
*/
|
|
1356
1495
|
lastName?: string;
|
|
1357
1496
|
/**
|
|
1358
|
-
* The image
|
|
1497
|
+
* The customer's profile image, such as a Gravatar avatar. Use this to personalize the extension UI for the logged-in buyer.
|
|
1359
1498
|
*
|
|
1360
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1499
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1361
1500
|
*/
|
|
1362
1501
|
image: ImageDetails;
|
|
1363
1502
|
/**
|
|
1364
|
-
*
|
|
1503
|
+
* Whether the customer has opted in to receiving marketing communications from the merchant, such as email campaigns and promotional offers.
|
|
1365
1504
|
*
|
|
1366
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1505
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1367
1506
|
*
|
|
1368
1507
|
* > Caution: This field is deprecated and will be removed in a future version. Use `acceptsEmailMarketing` or `acceptsSmsMarketing` instead.
|
|
1369
1508
|
*
|
|
@@ -1371,125 +1510,143 @@ export interface Customer {
|
|
|
1371
1510
|
*/
|
|
1372
1511
|
acceptsMarketing: boolean;
|
|
1373
1512
|
/**
|
|
1374
|
-
*
|
|
1513
|
+
* Whether the customer has opted in to email marketing.
|
|
1375
1514
|
*
|
|
1376
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1515
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1377
1516
|
*/
|
|
1378
1517
|
acceptsEmailMarketing: boolean;
|
|
1379
1518
|
/**
|
|
1380
|
-
*
|
|
1519
|
+
* Whether the customer has opted in to SMS marketing.
|
|
1381
1520
|
*
|
|
1382
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1521
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1383
1522
|
*/
|
|
1384
1523
|
acceptsSmsMarketing: boolean;
|
|
1385
1524
|
/**
|
|
1386
|
-
* The
|
|
1525
|
+
* 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.
|
|
1387
1526
|
*
|
|
1388
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1527
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1389
1528
|
*
|
|
1390
1529
|
* @private
|
|
1391
1530
|
*/
|
|
1392
1531
|
storeCreditAccounts: StoreCreditAccount[];
|
|
1393
1532
|
/**
|
|
1394
|
-
* The number of
|
|
1533
|
+
* The number of orders the customer has previously placed with this shop.
|
|
1395
1534
|
*
|
|
1396
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
1535
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1397
1536
|
*/
|
|
1398
1537
|
ordersCount: number;
|
|
1399
1538
|
}
|
|
1400
1539
|
|
|
1401
1540
|
/**
|
|
1402
1541
|
* Settings describing the behavior of the buyer's checkout.
|
|
1542
|
+
* @publicDocs
|
|
1403
1543
|
*/
|
|
1404
1544
|
export interface CheckoutSettings {
|
|
1405
1545
|
/**
|
|
1406
|
-
* The type of order
|
|
1546
|
+
* The type of order created when the buyer completes checkout.
|
|
1547
|
+
*
|
|
1548
|
+
* - `'DRAFT_ORDER'`: The checkout creates a draft order that the merchant must manually confirm before fulfillment. Common for B2B checkouts with deferred payment terms.
|
|
1549
|
+
* - `'ORDER'`: The checkout creates a confirmed order immediately upon completion.
|
|
1407
1550
|
*/
|
|
1408
1551
|
orderSubmission: 'DRAFT_ORDER' | 'ORDER';
|
|
1409
1552
|
/**
|
|
1410
|
-
*
|
|
1553
|
+
* 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.
|
|
1411
1554
|
*/
|
|
1412
1555
|
paymentTermsTemplate?: PaymentTermsTemplate;
|
|
1413
1556
|
/**
|
|
1414
|
-
* Settings
|
|
1557
|
+
* Settings that control how the shipping address behaves during checkout, such as whether the buyer can edit the address.
|
|
1415
1558
|
*/
|
|
1416
1559
|
shippingAddress: ShippingAddressSettings;
|
|
1417
1560
|
}
|
|
1418
1561
|
|
|
1419
1562
|
/**
|
|
1420
1563
|
* Settings describing the behavior of the shipping address.
|
|
1564
|
+
* @publicDocs
|
|
1421
1565
|
*/
|
|
1422
1566
|
export interface ShippingAddressSettings {
|
|
1423
1567
|
/**
|
|
1424
|
-
*
|
|
1568
|
+
* 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.
|
|
1425
1569
|
*/
|
|
1426
1570
|
isEditable: boolean;
|
|
1427
1571
|
}
|
|
1428
1572
|
|
|
1429
1573
|
/**
|
|
1430
|
-
*
|
|
1574
|
+
* 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".
|
|
1575
|
+
* @publicDocs
|
|
1431
1576
|
*/
|
|
1432
1577
|
export interface PaymentTermsTemplate {
|
|
1433
1578
|
/**
|
|
1434
|
-
* A globally-unique
|
|
1579
|
+
* A globally-unique identifier for the payment terms template in the format `gid://shopify/PaymentTermsTemplate/<id>`.
|
|
1580
|
+
*
|
|
1435
1581
|
* @example 'gid://shopify/PaymentTermsTemplate/1'
|
|
1436
1582
|
*/
|
|
1437
1583
|
id: string;
|
|
1438
1584
|
/**
|
|
1439
|
-
* The name of the payment terms translated to the buyer's current language
|
|
1585
|
+
* The name of the payment terms translated to the buyer's current language, such as "Net 30" or "Due on receipt".
|
|
1440
1586
|
*/
|
|
1441
1587
|
name: string;
|
|
1442
1588
|
/**
|
|
1443
|
-
* The due date for
|
|
1589
|
+
* 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.
|
|
1444
1590
|
*/
|
|
1445
1591
|
dueDate?: string;
|
|
1446
1592
|
/**
|
|
1447
|
-
* The number of days
|
|
1593
|
+
* 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 aren't net-based.
|
|
1448
1594
|
*/
|
|
1449
1595
|
dueInDays?: number;
|
|
1450
1596
|
}
|
|
1451
1597
|
|
|
1452
1598
|
/**
|
|
1453
|
-
*
|
|
1599
|
+
* 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.
|
|
1600
|
+
* @publicDocs
|
|
1454
1601
|
*/
|
|
1455
1602
|
export interface StoreCreditAccount {
|
|
1456
1603
|
/**
|
|
1457
|
-
* A globally-unique identifier
|
|
1604
|
+
* A globally-unique identifier for the store credit account in the format `gid://shopify/StoreCreditAccount/<id>`.
|
|
1605
|
+
*
|
|
1458
1606
|
* @example 'gid://shopify/StoreCreditAccount/1'
|
|
1459
1607
|
*/
|
|
1460
1608
|
id: string;
|
|
1461
1609
|
/**
|
|
1462
|
-
* The
|
|
1610
|
+
* The remaining balance available in this store credit account. This reflects the amount that can still be applied toward purchases.
|
|
1463
1611
|
*/
|
|
1464
1612
|
balance: Money;
|
|
1465
1613
|
}
|
|
1466
1614
|
|
|
1467
1615
|
/**
|
|
1468
1616
|
* The merchant-defined setting values for the extension.
|
|
1617
|
+
* @publicDocs
|
|
1469
1618
|
*/
|
|
1470
1619
|
export type ExtensionSettings = Record<
|
|
1471
1620
|
string,
|
|
1472
1621
|
string | number | boolean | undefined
|
|
1473
1622
|
>;
|
|
1474
1623
|
|
|
1624
|
+
/**
|
|
1625
|
+
* Tracks custom events and sends visitor information to
|
|
1626
|
+
* [Web Pixels](https://shopify.dev/docs/apps/marketing). Use `publish()` to emit events
|
|
1627
|
+
* and `visitor()` to submit buyer contact details.
|
|
1628
|
+
*/
|
|
1475
1629
|
export interface Analytics {
|
|
1476
1630
|
/**
|
|
1477
|
-
*
|
|
1631
|
+
* Publishes a custom event to [Web Pixels](https://shopify.dev/docs/apps/marketing).
|
|
1632
|
+
* Returns `true` when the event is successfully dispatched.
|
|
1478
1633
|
*/
|
|
1479
1634
|
publish(name: string, data: Record<string, unknown>): Promise<boolean>;
|
|
1480
1635
|
|
|
1481
1636
|
/**
|
|
1482
|
-
*
|
|
1637
|
+
* Submits buyer contact details for attribution and analytics purposes.
|
|
1483
1638
|
*/
|
|
1484
1639
|
visitor(data: {email?: string; phone?: string}): Promise<VisitorResult>;
|
|
1485
1640
|
}
|
|
1486
1641
|
/**
|
|
1487
1642
|
* Represents a visitor result.
|
|
1643
|
+
* @publicDocs
|
|
1488
1644
|
*/
|
|
1489
1645
|
export type VisitorResult = VisitorSuccess | VisitorError;
|
|
1490
1646
|
|
|
1491
1647
|
/**
|
|
1492
1648
|
* Represents a successful visitor result.
|
|
1649
|
+
* @publicDocs
|
|
1493
1650
|
*/
|
|
1494
1651
|
export interface VisitorSuccess {
|
|
1495
1652
|
/**
|
|
@@ -1500,82 +1657,98 @@ export interface VisitorSuccess {
|
|
|
1500
1657
|
|
|
1501
1658
|
/**
|
|
1502
1659
|
* Represents an unsuccessful visitor result.
|
|
1660
|
+
* @publicDocs
|
|
1503
1661
|
*/
|
|
1504
1662
|
export interface VisitorError {
|
|
1505
1663
|
/**
|
|
1506
1664
|
* Indicates that the visitor information is invalid and wasn't submitted.
|
|
1507
|
-
*
|
|
1665
|
+
* Common causes include using the wrong data type or omitting a required property.
|
|
1508
1666
|
*/
|
|
1509
1667
|
type: 'error';
|
|
1510
1668
|
|
|
1511
1669
|
/**
|
|
1512
1670
|
* A message that explains the error. This message is useful for debugging.
|
|
1513
|
-
* It'
|
|
1514
|
-
* to the buyer.
|
|
1671
|
+
* It isn't localized and shouldn't be displayed to the buyer.
|
|
1515
1672
|
*/
|
|
1516
1673
|
message: string;
|
|
1517
1674
|
}
|
|
1518
1675
|
|
|
1519
1676
|
/**
|
|
1520
|
-
*
|
|
1521
|
-
*
|
|
1677
|
+
* A group of cart lines that share the same set of delivery options. For example, physical items might form one delivery group while digital items form another.
|
|
1678
|
+
* @publicDocs
|
|
1522
1679
|
*/
|
|
1523
1680
|
export interface DeliveryGroup {
|
|
1524
1681
|
/**
|
|
1525
|
-
*
|
|
1682
|
+
* A unique identifier for the delivery group. The value is `undefined` if the underlying delivery line doesn't have an ID assigned.
|
|
1526
1683
|
*/
|
|
1527
1684
|
id?: string;
|
|
1528
1685
|
/**
|
|
1529
|
-
* The cart
|
|
1686
|
+
* The cart lines that belong to this delivery group. Each reference contains the cart line's `id`, which you can match against `lines` to get the full cart line details.
|
|
1530
1687
|
*/
|
|
1531
1688
|
targetedCartLines: CartLineReference[];
|
|
1532
1689
|
|
|
1533
1690
|
/**
|
|
1534
|
-
* The delivery options available for
|
|
1691
|
+
* The delivery options available for this group, including shipping, pickup point, and pickup location options. The buyer selects one of these to determine how their items are delivered.
|
|
1535
1692
|
*/
|
|
1536
1693
|
deliveryOptions: DeliveryOption[];
|
|
1537
1694
|
|
|
1538
1695
|
/**
|
|
1539
|
-
* The
|
|
1696
|
+
* The delivery option the buyer has selected for this group. The value is `undefined` if the buyer hasn't selected a delivery option yet. Contains a `handle` you can match against `deliveryOptions` entries.
|
|
1540
1697
|
*/
|
|
1541
1698
|
selectedDeliveryOption?: DeliveryOptionReference;
|
|
1542
1699
|
|
|
1543
1700
|
/**
|
|
1544
|
-
*
|
|
1701
|
+
* Whether this group contains items for a one-time purchase or a subscription.
|
|
1702
|
+
* Subscription delivery groups might have different shipping options. See `DeliveryGroupType` for possible values.
|
|
1545
1703
|
*/
|
|
1546
1704
|
groupType: DeliveryGroupType;
|
|
1547
1705
|
|
|
1548
1706
|
/**
|
|
1549
|
-
* Whether delivery is required for the
|
|
1707
|
+
* Whether physical delivery is required for the items in this group.
|
|
1708
|
+
* Digital-only groups don't require delivery.
|
|
1550
1709
|
*/
|
|
1551
1710
|
isDeliveryRequired: boolean;
|
|
1552
1711
|
}
|
|
1553
1712
|
|
|
1554
1713
|
/**
|
|
1555
1714
|
* The possible types of a delivery group.
|
|
1715
|
+
*
|
|
1716
|
+
* - `'oneTimePurchase'`: Items bought as a single, non-recurring purchase.
|
|
1717
|
+
* - `'subscription'`: Items bought through a [selling plan](https://shopify.dev/docs/apps/build/purchase-options/subscriptions) that results in recurring deliveries.
|
|
1718
|
+
* @publicDocs
|
|
1556
1719
|
*/
|
|
1557
1720
|
export type DeliveryGroupType = 'oneTimePurchase' | 'subscription';
|
|
1558
1721
|
|
|
1559
1722
|
/**
|
|
1560
|
-
*
|
|
1723
|
+
* A reference to a cart line within a delivery group, identified by the cart line's ID.
|
|
1724
|
+
* @publicDocs
|
|
1561
1725
|
*/
|
|
1562
1726
|
export interface CartLineReference {
|
|
1563
1727
|
/**
|
|
1564
|
-
* The unique identifier of the referenced cart line.
|
|
1728
|
+
* The unique identifier of the referenced cart line. Match this against `CartLine.id` from the `lines` property to get the full line item details.
|
|
1565
1729
|
*/
|
|
1566
1730
|
id: string;
|
|
1567
1731
|
}
|
|
1568
1732
|
|
|
1569
1733
|
/**
|
|
1570
|
-
*
|
|
1734
|
+
* A reference to the delivery option selected by the buyer for a delivery group.
|
|
1735
|
+
* @publicDocs
|
|
1571
1736
|
*/
|
|
1572
1737
|
export interface DeliveryOptionReference {
|
|
1573
1738
|
/**
|
|
1574
|
-
* The unique identifier of the referenced delivery option.
|
|
1739
|
+
* The unique identifier of the referenced delivery option. Match this against `DeliveryOption.handle` from the `deliveryOptions` array to get the full option details.
|
|
1575
1740
|
*/
|
|
1576
1741
|
handle: string;
|
|
1577
1742
|
}
|
|
1578
1743
|
|
|
1744
|
+
/**
|
|
1745
|
+
* A delivery option available to the buyer. Use the `type` property to determine which kind of option it is:
|
|
1746
|
+
*
|
|
1747
|
+
* - `ShippingOption` (`type: 'shipping' | 'local'`): Items shipped by a carrier or delivered locally by the merchant.
|
|
1748
|
+
* - `PickupPointOption` (`type: 'pickupPoint'`): Items shipped to a third-party collection point for the buyer to pick up.
|
|
1749
|
+
* - `PickupLocationOption` (`type: 'pickup'`): Items picked up directly from a merchant's store or warehouse.
|
|
1750
|
+
* @publicDocs
|
|
1751
|
+
*/
|
|
1579
1752
|
export type DeliveryOption =
|
|
1580
1753
|
| ShippingOption
|
|
1581
1754
|
| PickupPointOption
|
|
@@ -1583,132 +1756,145 @@ export type DeliveryOption =
|
|
|
1583
1756
|
|
|
1584
1757
|
/**
|
|
1585
1758
|
* Represents a base interface for a single delivery option.
|
|
1759
|
+
* @publicDocs
|
|
1586
1760
|
*/
|
|
1587
1761
|
export interface DeliveryOptionBase {
|
|
1588
1762
|
/**
|
|
1589
|
-
* The unique identifier of the delivery option.
|
|
1763
|
+
* The unique identifier of the delivery option. Use this to match against `DeliveryOptionReference.handle` or `DeliverySelectionGroup` entries.
|
|
1590
1764
|
*/
|
|
1591
1765
|
handle: string;
|
|
1592
1766
|
|
|
1593
1767
|
/**
|
|
1594
|
-
* The
|
|
1768
|
+
* The merchant-facing or carrier-provided display name for the delivery
|
|
1769
|
+
* option, such as "Standard Shipping" or "Express".
|
|
1595
1770
|
*/
|
|
1596
1771
|
title?: string;
|
|
1597
1772
|
|
|
1598
1773
|
/**
|
|
1599
|
-
*
|
|
1774
|
+
* Additional details about the delivery option provided by the carrier
|
|
1775
|
+
* or merchant, such as estimated delivery windows or service level notes.
|
|
1600
1776
|
*/
|
|
1601
1777
|
description?: string;
|
|
1602
1778
|
|
|
1603
1779
|
/**
|
|
1604
|
-
* The code
|
|
1780
|
+
* The carrier service code or rate identifier for this delivery option.
|
|
1605
1781
|
*/
|
|
1606
1782
|
code: string;
|
|
1607
1783
|
|
|
1608
1784
|
/**
|
|
1609
|
-
*
|
|
1785
|
+
* Custom [metafields](https://shopify.dev/docs/apps/build/custom-data/metafields) attached to this delivery option by the carrier or a [Shopify Function](https://shopify.dev/docs/apps/build/functions). Use these to display additional information about the option.
|
|
1610
1786
|
*/
|
|
1611
1787
|
metafields: Metafield[];
|
|
1612
1788
|
}
|
|
1613
1789
|
|
|
1614
1790
|
/**
|
|
1615
|
-
* Represents a delivery option that
|
|
1791
|
+
* Represents a delivery option that's a shipping option.
|
|
1792
|
+
* @publicDocs
|
|
1616
1793
|
*/
|
|
1617
1794
|
export interface ShippingOption extends DeliveryOptionBase {
|
|
1618
1795
|
/**
|
|
1619
|
-
*
|
|
1796
|
+
* Identifies the delivery method. `'shipping'` means items are shipped by a carrier. `'local'` means the merchant handles delivery themselves, for example same-day local delivery.
|
|
1620
1797
|
*/
|
|
1621
1798
|
type: 'shipping' | 'local';
|
|
1622
1799
|
|
|
1623
1800
|
/**
|
|
1624
|
-
* Information about the carrier.
|
|
1801
|
+
* Information about the carrier providing this shipping option, including the carrier's display name.
|
|
1625
1802
|
*/
|
|
1626
1803
|
carrier: ShippingOptionCarrier;
|
|
1627
1804
|
|
|
1628
1805
|
/**
|
|
1629
|
-
* The cost of
|
|
1806
|
+
* The cost of this delivery option before any shipping discounts are applied. Compare with `costAfterDiscounts` to show savings.
|
|
1630
1807
|
*/
|
|
1631
1808
|
cost: Money;
|
|
1632
1809
|
|
|
1633
1810
|
/**
|
|
1634
|
-
* The cost of
|
|
1811
|
+
* The cost of this delivery option after shipping discounts have been applied. This is the price the buyer actually pays for shipping.
|
|
1635
1812
|
*/
|
|
1636
1813
|
costAfterDiscounts: Money;
|
|
1637
1814
|
|
|
1638
1815
|
/**
|
|
1639
|
-
*
|
|
1816
|
+
* The estimated delivery time for this shipping option. Use the `timeInTransit` range to display an estimated arrival window to the buyer.
|
|
1640
1817
|
*/
|
|
1641
1818
|
deliveryEstimate: DeliveryEstimate;
|
|
1642
1819
|
}
|
|
1643
1820
|
|
|
1821
|
+
/** @publicDocs */
|
|
1644
1822
|
export interface DeliveryEstimate {
|
|
1645
1823
|
/**
|
|
1646
|
-
* The estimated time in transit for the delivery
|
|
1824
|
+
* The estimated time in transit for the delivery, expressed as a range
|
|
1825
|
+
* in seconds. Undefined when the carrier doesn't provide an estimate.
|
|
1826
|
+
* When present, either the lower or upper bound of the range might still
|
|
1827
|
+
* be omitted.
|
|
1647
1828
|
*/
|
|
1648
1829
|
timeInTransit?: NumberRange;
|
|
1649
1830
|
}
|
|
1650
1831
|
|
|
1832
|
+
/** @publicDocs */
|
|
1651
1833
|
export interface ShippingOptionCarrier {
|
|
1652
1834
|
/**
|
|
1653
|
-
* The name of the carrier.
|
|
1835
|
+
* The display name of the shipping carrier, such as "Canada Post" or "UPS". The value is `undefined` if the carrier name isn't available.
|
|
1654
1836
|
*/
|
|
1655
1837
|
name?: string;
|
|
1656
1838
|
}
|
|
1657
1839
|
|
|
1840
|
+
/** @publicDocs */
|
|
1658
1841
|
export interface PickupPointOption extends DeliveryOptionBase {
|
|
1659
1842
|
/**
|
|
1660
|
-
*
|
|
1843
|
+
* Identifies this as a pickup point option, where items are shipped to a third-party collection point for the buyer to pick up.
|
|
1661
1844
|
*/
|
|
1662
1845
|
type: 'pickupPoint';
|
|
1663
1846
|
|
|
1664
1847
|
/**
|
|
1665
|
-
* Information about the carrier that ships to
|
|
1848
|
+
* Information about the carrier that ships items to this pickup point, including the carrier's name and code.
|
|
1666
1849
|
*/
|
|
1667
1850
|
carrier: PickupPointCarrier;
|
|
1668
1851
|
|
|
1669
1852
|
/**
|
|
1670
|
-
* The cost
|
|
1853
|
+
* The cost of this delivery option before any shipping discounts are applied. Compare with `costAfterDiscounts` to show savings.
|
|
1671
1854
|
*/
|
|
1672
1855
|
cost: Money;
|
|
1673
1856
|
|
|
1674
1857
|
/**
|
|
1675
|
-
* The cost
|
|
1858
|
+
* The cost of this delivery option after shipping discounts have been applied. This is the price the buyer actually pays for shipping.
|
|
1676
1859
|
*/
|
|
1677
1860
|
costAfterDiscounts: Money;
|
|
1678
1861
|
|
|
1679
1862
|
/**
|
|
1680
|
-
* The location
|
|
1863
|
+
* The physical location where the buyer picks up their order, including the address and display name of the collection point.
|
|
1681
1864
|
*/
|
|
1682
1865
|
location: PickupPointLocation;
|
|
1683
1866
|
}
|
|
1684
1867
|
|
|
1868
|
+
/** @publicDocs */
|
|
1685
1869
|
export interface PickupLocationOption extends DeliveryOptionBase {
|
|
1686
1870
|
/**
|
|
1687
|
-
*
|
|
1871
|
+
* Identifies this as a pickup location option, where the buyer picks up items directly from a merchant's store or warehouse.
|
|
1688
1872
|
*/
|
|
1689
1873
|
type: 'pickup';
|
|
1690
1874
|
|
|
1691
1875
|
/**
|
|
1692
|
-
* The
|
|
1876
|
+
* The merchant's store or warehouse where the buyer picks up their order, including the address and display name.
|
|
1693
1877
|
*/
|
|
1694
1878
|
location: PickupLocation;
|
|
1695
1879
|
}
|
|
1696
1880
|
|
|
1697
1881
|
interface PickupLocation {
|
|
1698
1882
|
/**
|
|
1699
|
-
* The name of the pickup location
|
|
1883
|
+
* The merchant-defined display name of the pickup location, such as a
|
|
1884
|
+
* store name or warehouse label.
|
|
1700
1885
|
*/
|
|
1701
1886
|
name?: string;
|
|
1702
1887
|
|
|
1703
1888
|
/**
|
|
1704
|
-
* The address of the pickup location.
|
|
1889
|
+
* The physical address of the pickup location.
|
|
1705
1890
|
*/
|
|
1706
1891
|
address: MailingAddress;
|
|
1707
1892
|
}
|
|
1708
1893
|
|
|
1709
1894
|
interface PickupPointLocation {
|
|
1710
1895
|
/**
|
|
1711
|
-
* The name of the pickup point
|
|
1896
|
+
* The display name of the pickup point, such as the name of the locker
|
|
1897
|
+
* or collection point.
|
|
1712
1898
|
*/
|
|
1713
1899
|
name?: string;
|
|
1714
1900
|
|
|
@@ -1718,168 +1904,190 @@ interface PickupPointLocation {
|
|
|
1718
1904
|
handle: string;
|
|
1719
1905
|
|
|
1720
1906
|
/**
|
|
1721
|
-
* The address of the pickup point.
|
|
1907
|
+
* The physical address of the pickup point.
|
|
1722
1908
|
*/
|
|
1723
1909
|
address: MailingAddress;
|
|
1724
1910
|
}
|
|
1725
1911
|
|
|
1726
1912
|
interface PickupPointCarrier {
|
|
1727
1913
|
/**
|
|
1728
|
-
* The code
|
|
1914
|
+
* The carrier's unique identifier code, used to distinguish between
|
|
1915
|
+
* different carriers that deliver to pickup points.
|
|
1729
1916
|
*/
|
|
1730
1917
|
code?: string;
|
|
1731
1918
|
|
|
1732
1919
|
/**
|
|
1733
|
-
* The name of the carrier.
|
|
1920
|
+
* The display name of the carrier that delivers to this pickup point.
|
|
1734
1921
|
*/
|
|
1735
1922
|
name?: string;
|
|
1736
1923
|
}
|
|
1737
1924
|
|
|
1925
|
+
/** @publicDocs */
|
|
1738
1926
|
export interface NumberRange {
|
|
1739
1927
|
/**
|
|
1740
|
-
* The lower bound of the
|
|
1928
|
+
* The lower bound of the range. Undefined if only an upper bound is
|
|
1929
|
+
* provided.
|
|
1741
1930
|
*/
|
|
1742
1931
|
lower?: number;
|
|
1743
1932
|
|
|
1744
1933
|
/**
|
|
1745
|
-
* The upper bound of the
|
|
1934
|
+
* The upper bound of the range. Undefined if only a lower bound is
|
|
1935
|
+
* provided.
|
|
1746
1936
|
*/
|
|
1747
1937
|
upper?: number;
|
|
1748
1938
|
}
|
|
1749
1939
|
|
|
1750
1940
|
/**
|
|
1751
1941
|
* Represents a DeliveryGroup with expanded reference fields and full details.
|
|
1942
|
+
* @publicDocs
|
|
1752
1943
|
*/
|
|
1753
1944
|
export interface DeliveryGroupDetails extends DeliveryGroup {
|
|
1754
1945
|
/**
|
|
1755
|
-
* The
|
|
1946
|
+
* The full delivery option the buyer has selected for this group, with all cost and carrier details included. The value is `undefined` if the buyer hasn't selected an option yet. Unlike `DeliveryGroup.selectedDeliveryOption`, which is a reference, this contains the complete `DeliveryOption` object.
|
|
1756
1947
|
*/
|
|
1757
1948
|
selectedDeliveryOption?: DeliveryOption;
|
|
1758
1949
|
|
|
1759
1950
|
/**
|
|
1760
|
-
* The cart
|
|
1951
|
+
* The full cart line objects associated with this delivery group, with all merchandise and cost details included. Unlike `DeliveryGroup.targetedCartLines`, which contains references, this contains the complete `CartLine` objects.
|
|
1761
1952
|
*/
|
|
1762
1953
|
targetedCartLines: CartLine[];
|
|
1763
1954
|
}
|
|
1764
1955
|
|
|
1956
|
+
/** @publicDocs */
|
|
1765
1957
|
export interface AllowedProcessing {
|
|
1766
1958
|
/**
|
|
1767
|
-
*
|
|
1959
|
+
* Whether analytics data can be collected based on the visitor's consent,
|
|
1960
|
+
* the merchant's privacy configuration, and the visitor's region. Analytics
|
|
1961
|
+
* data includes how the shop was used and what interactions occurred.
|
|
1768
1962
|
*/
|
|
1769
1963
|
analytics: boolean;
|
|
1770
1964
|
/**
|
|
1771
|
-
*
|
|
1965
|
+
* Whether marketing data can be collected based on the visitor's consent,
|
|
1966
|
+
* the merchant's privacy configuration, and the visitor's region. Marketing
|
|
1967
|
+
* data includes attribution and targeted advertising preferences.
|
|
1772
1968
|
*/
|
|
1773
1969
|
marketing: boolean;
|
|
1774
1970
|
/**
|
|
1775
|
-
*
|
|
1971
|
+
* Whether preference data can be collected based on the visitor's consent,
|
|
1972
|
+
* the merchant's privacy configuration, and the visitor's region. Preference
|
|
1973
|
+
* data includes language, currency, and sizing choices.
|
|
1776
1974
|
*/
|
|
1777
1975
|
preferences: boolean;
|
|
1778
1976
|
/**
|
|
1779
|
-
*
|
|
1977
|
+
* Whether data can be shared with third parties based on the visitor's
|
|
1978
|
+
* consent, the merchant's privacy configuration, and the visitor's region.
|
|
1979
|
+
* This typically applies to behavioral advertising data.
|
|
1780
1980
|
*/
|
|
1781
1981
|
saleOfData: boolean;
|
|
1782
1982
|
}
|
|
1783
1983
|
|
|
1984
|
+
/** @publicDocs */
|
|
1784
1985
|
export interface VisitorConsent {
|
|
1785
1986
|
/**
|
|
1786
|
-
*
|
|
1987
|
+
* The visitor's consent for analytics tracking. `true` means the visitor
|
|
1988
|
+
* actively granted consent, `false` means actively denied, and `undefined`
|
|
1989
|
+
* means no decision has been made yet.
|
|
1787
1990
|
*/
|
|
1788
1991
|
analytics?: boolean;
|
|
1789
1992
|
/**
|
|
1790
|
-
*
|
|
1993
|
+
* The visitor's consent for marketing and targeted advertising. `true` means
|
|
1994
|
+
* the visitor actively granted consent, `false` means actively denied, and
|
|
1995
|
+
* `undefined` means no decision has been made yet.
|
|
1791
1996
|
*/
|
|
1792
1997
|
marketing?: boolean;
|
|
1793
1998
|
/**
|
|
1794
|
-
*
|
|
1999
|
+
* The visitor's consent for storing preferences such as language and currency.
|
|
2000
|
+
* `true` means the visitor actively granted consent, `false` means actively
|
|
2001
|
+
* denied, and `undefined` means no decision has been made yet.
|
|
1795
2002
|
*/
|
|
1796
2003
|
preferences?: boolean;
|
|
1797
2004
|
/**
|
|
1798
|
-
*
|
|
2005
|
+
* The visitor's consent for the sale or sharing of their personal data with
|
|
2006
|
+
* third parties. `true` means the visitor actively granted consent, `false`
|
|
2007
|
+
* means actively denied, and `undefined` means no decision has been made yet.
|
|
1799
2008
|
*/
|
|
1800
2009
|
saleOfData?: boolean;
|
|
1801
2010
|
}
|
|
1802
2011
|
|
|
2012
|
+
/** @publicDocs */
|
|
1803
2013
|
export interface TrackingConsentMetafield {
|
|
1804
2014
|
/**
|
|
1805
|
-
* The
|
|
1806
|
-
* length (inclusive).
|
|
2015
|
+
* The identifier for the tracking consent metafield, such as `'analyticsType'` or `'marketingType'`.
|
|
1807
2016
|
*/
|
|
1808
2017
|
key: string;
|
|
1809
2018
|
/**
|
|
1810
|
-
* The
|
|
1811
|
-
*
|
|
1812
|
-
* @example 'any string', '', or a stringified JSON object
|
|
2019
|
+
* The value stored in the tracking consent metafield, such as `'granular'` or a stringified JSON object.
|
|
1813
2020
|
*/
|
|
1814
2021
|
value: string;
|
|
1815
2022
|
}
|
|
1816
2023
|
|
|
2024
|
+
/** @publicDocs */
|
|
1817
2025
|
export interface TrackingConsentMetafieldChange {
|
|
1818
2026
|
/**
|
|
1819
|
-
* The
|
|
1820
|
-
* length (inclusive).
|
|
2027
|
+
* The identifier for the tracking consent metafield to update.
|
|
1821
2028
|
*/
|
|
1822
2029
|
key: string;
|
|
1823
2030
|
/**
|
|
1824
|
-
* The
|
|
1825
|
-
*
|
|
1826
|
-
* @example 'any string', `null`, or a stringified JSON object
|
|
2031
|
+
* The new value to store in the metafield. Set to `null` to delete the metafield.
|
|
1827
2032
|
*/
|
|
1828
2033
|
value: string | null;
|
|
1829
2034
|
}
|
|
1830
2035
|
|
|
2036
|
+
/** @publicDocs */
|
|
1831
2037
|
export interface VisitorConsentChange extends VisitorConsent {
|
|
1832
2038
|
/**
|
|
1833
2039
|
* Tracking consent metafield data to be saved.
|
|
1834
2040
|
*
|
|
1835
|
-
* If the value is `null`, the metafield
|
|
2041
|
+
* If the value is `null`, the metafield is deleted.
|
|
1836
2042
|
*
|
|
1837
2043
|
* @example `[{key: 'granularAnalytics', value: 'true'}, {key: 'granularMarketing', value: 'false'}]`
|
|
1838
2044
|
*/
|
|
1839
2045
|
metafields?: TrackingConsentMetafieldChange[];
|
|
2046
|
+
/**
|
|
2047
|
+
* Identifies this as a visitor consent change. This is the only supported change type for `applyTrackingConsentChange()`.
|
|
2048
|
+
*/
|
|
1840
2049
|
type: 'changeVisitorConsent';
|
|
1841
2050
|
}
|
|
1842
2051
|
|
|
2052
|
+
/** @publicDocs */
|
|
1843
2053
|
export type ApplyTrackingConsentChangeType = (
|
|
1844
2054
|
visitorConsent: VisitorConsentChange,
|
|
1845
2055
|
) => Promise<TrackingConsentChangeResult>;
|
|
1846
2056
|
|
|
2057
|
+
/** @publicDocs */
|
|
1847
2058
|
export interface CustomerPrivacyRegion {
|
|
1848
2059
|
/**
|
|
1849
|
-
* The [ISO 3166
|
|
2060
|
+
* The buyer's country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. The value is `undefined` if geolocation failed.
|
|
1850
2061
|
*
|
|
1851
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
2062
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1852
2063
|
*
|
|
1853
|
-
* @example 'CA' for Canada, 'US' for United States, 'GB' for Great Britain
|
|
2064
|
+
* @example 'CA' for Canada, 'US' for United States, 'GB' for Great Britain
|
|
1854
2065
|
*/
|
|
1855
2066
|
countryCode?: CountryCode;
|
|
1856
2067
|
/**
|
|
1857
|
-
* The buyer's province
|
|
1858
|
-
*
|
|
1859
|
-
* Province codes can be found by clicking on the `Subdivisions assigned codes` column for countries listed [here](https://en.wikipedia.org/wiki/ISO_3166-2).
|
|
2068
|
+
* The buyer's province, state, or region code in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. The value is `undefined` if geolocation failed or only the country was detected.
|
|
1860
2069
|
*
|
|
1861
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
2070
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1862
2071
|
*
|
|
1863
|
-
* @example 'ON' for Ontario, 'ENG' for England, 'CA' for California
|
|
2072
|
+
* @example 'ON' for Ontario, 'ENG' for England, 'CA' for California
|
|
1864
2073
|
*/
|
|
1865
2074
|
provinceCode?: string;
|
|
1866
2075
|
}
|
|
1867
2076
|
|
|
2077
|
+
/** @publicDocs */
|
|
1868
2078
|
export interface CustomerPrivacy {
|
|
1869
2079
|
/**
|
|
1870
|
-
*
|
|
2080
|
+
* Flags indicating whether each type of data processing is permitted, based on the visitor's consent, the merchant's privacy configuration, and the visitor's geographic location.
|
|
1871
2081
|
*/
|
|
1872
2082
|
allowedProcessing: AllowedProcessing;
|
|
1873
2083
|
/**
|
|
1874
|
-
*
|
|
2084
|
+
* The tracking consent metafields that have been stored for this visitor. These contain app-specific consent data beyond the standard categories.
|
|
1875
2085
|
*
|
|
1876
2086
|
* @example `[{key: 'analyticsType', value: 'granular'}, {key: 'marketingType', value: 'granular'}]`, or `[]`
|
|
1877
2087
|
*/
|
|
1878
2088
|
metafields: TrackingConsentMetafield[];
|
|
1879
2089
|
/**
|
|
1880
|
-
*
|
|
1881
|
-
* *
|
|
1882
|
-
* @example `true` — the customer has actively granted consent, `false` — the customer has actively denied consent, or `undefined` — the customer has not yet made a decision.
|
|
2090
|
+
* The visitor's current privacy consent settings. Each property represents a consent category and is `true` (actively granted), `false` (actively denied), or `undefined` (no decision made yet).
|
|
1883
2091
|
*/
|
|
1884
2092
|
visitorConsent: VisitorConsent;
|
|
1885
2093
|
/**
|
|
@@ -1889,29 +2097,31 @@ export interface CustomerPrivacy {
|
|
|
1889
2097
|
*/
|
|
1890
2098
|
shouldShowBanner: boolean;
|
|
1891
2099
|
/**
|
|
1892
|
-
* Whether the visitor is in a region
|
|
2100
|
+
* Whether the visitor is located in a region that requires an explicit opt-out option for the sale or sharing of personal data, such as California (CCPA) or other jurisdictions with similar regulations.
|
|
1893
2101
|
*/
|
|
1894
2102
|
saleOfDataRegion: boolean;
|
|
1895
2103
|
/**
|
|
1896
|
-
*
|
|
2104
|
+
* The visitor's geographic location, used to determine whether more granular consent controls should be displayed based on regional privacy regulations.
|
|
1897
2105
|
*
|
|
1898
2106
|
* @example `{countryCode: 'CA', provinceCode: 'ON'}` for a visitor in Ontario, Canada; `{countryCode: 'US', provinceCode: undefined}` for a visitor in the United States if geolocation fails to detect the state; or `undefined` if neither country nor province is detected or geolocation fails.
|
|
1899
2107
|
*
|
|
1900
|
-
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](/docs/apps/store/data-protection/protected-customer-data).
|
|
2108
|
+
* {% include /apps/checkout/privacy-icon.md %} Requires level 1 access to [protected customer data](https://shopify.dev/docs/apps/store/data-protection/protected-customer-data).
|
|
1901
2109
|
*/
|
|
1902
2110
|
region?: CustomerPrivacyRegion;
|
|
1903
2111
|
}
|
|
1904
2112
|
|
|
2113
|
+
/** @publicDocs */
|
|
1905
2114
|
export type TrackingConsentChangeResult =
|
|
1906
2115
|
| TrackingConsentChangeResultSuccess
|
|
1907
2116
|
| TrackingConsentChangeResultError;
|
|
1908
2117
|
|
|
1909
2118
|
/**
|
|
1910
2119
|
* The returned result of a successful tracking consent preference update.
|
|
2120
|
+
* @publicDocs
|
|
1911
2121
|
*/
|
|
1912
2122
|
export interface TrackingConsentChangeResultSuccess {
|
|
1913
2123
|
/**
|
|
1914
|
-
*
|
|
2124
|
+
* Indicates that the tracking consent update was applied successfully.
|
|
1915
2125
|
*/
|
|
1916
2126
|
type: 'success';
|
|
1917
2127
|
}
|
|
@@ -1919,108 +2129,134 @@ export interface TrackingConsentChangeResultSuccess {
|
|
|
1919
2129
|
/**
|
|
1920
2130
|
* The returned result of an unsuccessful tracking consent preference update
|
|
1921
2131
|
* with a message detailing the type of error that occurred.
|
|
2132
|
+
* @publicDocs
|
|
1922
2133
|
*/
|
|
1923
2134
|
export interface TrackingConsentChangeResultError {
|
|
1924
2135
|
/**
|
|
1925
|
-
*
|
|
2136
|
+
* Indicates that the tracking consent update couldn't be applied. Check the `message` property for details.
|
|
1926
2137
|
*/
|
|
1927
2138
|
type: 'error';
|
|
1928
2139
|
|
|
1929
2140
|
/**
|
|
1930
2141
|
* A message that explains the error. This message is useful for debugging.
|
|
1931
|
-
* It
|
|
1932
|
-
* to the buyer.
|
|
2142
|
+
* It isn't localized and shouldn't be displayed to the buyer.
|
|
1933
2143
|
*/
|
|
1934
2144
|
message: string;
|
|
1935
2145
|
}
|
|
1936
2146
|
|
|
2147
|
+
/** @publicDocs */
|
|
1937
2148
|
export interface CartInstructions {
|
|
1938
2149
|
/**
|
|
1939
|
-
*
|
|
2150
|
+
* Whether the extension can update custom attributes using `applyAttributeChange()`.
|
|
1940
2151
|
*/
|
|
1941
2152
|
attributes: AttributesCartInstructions;
|
|
1942
2153
|
|
|
1943
2154
|
/**
|
|
1944
|
-
*
|
|
2155
|
+
* Whether the extension can modify the shipping address using `applyShippingAddressChange()`.
|
|
1945
2156
|
*/
|
|
1946
2157
|
delivery: DeliveryCartInstructions;
|
|
1947
2158
|
|
|
1948
2159
|
/**
|
|
1949
|
-
*
|
|
2160
|
+
* Whether the extension can add or remove discount codes using `applyDiscountCodeChange()`.
|
|
1950
2161
|
*/
|
|
1951
2162
|
discounts: DiscountsCartInstructions;
|
|
1952
2163
|
|
|
1953
2164
|
/**
|
|
1954
|
-
*
|
|
2165
|
+
* Whether the extension can add, remove, or update cart lines using `applyCartLinesChange()`.
|
|
1955
2166
|
*/
|
|
1956
2167
|
lines: CartLinesCartInstructions;
|
|
1957
2168
|
|
|
1958
2169
|
/**
|
|
1959
|
-
*
|
|
2170
|
+
* Whether the extension can add, update, or delete cart metafields using `applyMetafieldChange()`.
|
|
1960
2171
|
*/
|
|
1961
2172
|
metafields: MetafieldsCartInstructions;
|
|
1962
2173
|
|
|
1963
2174
|
/**
|
|
1964
|
-
*
|
|
2175
|
+
* Whether the extension can update the order note using `applyNoteChange()`.
|
|
1965
2176
|
*/
|
|
1966
2177
|
notes: NotesCartInstructions;
|
|
1967
2178
|
}
|
|
1968
2179
|
|
|
2180
|
+
/** @publicDocs */
|
|
1969
2181
|
export interface AttributesCartInstructions {
|
|
1970
2182
|
/**
|
|
1971
|
-
*
|
|
2183
|
+
* Whether attributes can be updated using `applyAttributeChange()`. When
|
|
2184
|
+
* `false`, the checkout configuration doesn't allow attribute changes.
|
|
2185
|
+
* Even when `true`, calls to `applyAttributeChange()` can still fail
|
|
2186
|
+
* during accelerated checkout (Apple Pay, Google Pay).
|
|
1972
2187
|
*/
|
|
1973
2188
|
canUpdateAttributes: boolean;
|
|
1974
2189
|
}
|
|
1975
2190
|
|
|
2191
|
+
/** @publicDocs */
|
|
1976
2192
|
export interface DeliveryCartInstructions {
|
|
1977
2193
|
/**
|
|
1978
|
-
*
|
|
1979
|
-
*
|
|
1980
|
-
*
|
|
2194
|
+
* Whether the shipping address can be modified using
|
|
2195
|
+
* `applyShippingAddressChange()`. When `false`, the buyer is using an
|
|
2196
|
+
* accelerated checkout flow (Apple Pay, Google Pay) where the address
|
|
2197
|
+
* can't be changed.
|
|
1981
2198
|
*/
|
|
1982
2199
|
canSelectCustomAddress: boolean;
|
|
1983
2200
|
}
|
|
1984
2201
|
|
|
2202
|
+
/** @publicDocs */
|
|
1985
2203
|
export interface DiscountsCartInstructions {
|
|
1986
2204
|
/**
|
|
1987
|
-
*
|
|
2205
|
+
* Whether discount codes can be updated using `applyDiscountCodeChange()`.
|
|
2206
|
+
* When `false`, the checkout configuration doesn't allow discount code
|
|
2207
|
+
* changes. Even when `true`, calls to `applyDiscountCodeChange()` can
|
|
2208
|
+
* still fail during accelerated checkout (Apple Pay, Google Pay).
|
|
1988
2209
|
*/
|
|
1989
2210
|
canUpdateDiscountCodes: boolean;
|
|
1990
2211
|
}
|
|
1991
2212
|
|
|
2213
|
+
/** @publicDocs */
|
|
1992
2214
|
export interface CartLinesCartInstructions {
|
|
1993
2215
|
/**
|
|
1994
|
-
*
|
|
2216
|
+
* Whether new cart lines can be added using `applyCartLinesChange()`. When
|
|
2217
|
+
* `false`, the checkout configuration doesn't allow adding lines (for
|
|
2218
|
+
* example, draft orders). Even when `true`, calls can still fail during
|
|
2219
|
+
* accelerated checkout (Apple Pay, Google Pay).
|
|
1995
2220
|
*/
|
|
1996
2221
|
canAddCartLine: boolean;
|
|
1997
2222
|
|
|
1998
2223
|
/**
|
|
1999
|
-
*
|
|
2224
|
+
* Whether cart lines can be removed using `applyCartLinesChange()`. When
|
|
2225
|
+
* `false`, the checkout configuration doesn't allow removing lines.
|
|
2226
|
+
* Even when `true`, calls can still fail during accelerated checkout.
|
|
2000
2227
|
*/
|
|
2001
2228
|
canRemoveCartLine: boolean;
|
|
2002
2229
|
|
|
2003
2230
|
/**
|
|
2004
|
-
*
|
|
2231
|
+
* Whether cart lines can be updated using `applyCartLinesChange()`. When
|
|
2232
|
+
* `false`, the checkout configuration doesn't allow updating lines.
|
|
2233
|
+
* Even when `true`, calls can still fail during accelerated checkout.
|
|
2005
2234
|
*/
|
|
2006
2235
|
canUpdateCartLine: boolean;
|
|
2007
2236
|
}
|
|
2008
2237
|
|
|
2238
|
+
/** @publicDocs */
|
|
2009
2239
|
export interface MetafieldsCartInstructions {
|
|
2010
2240
|
/**
|
|
2011
|
-
*
|
|
2241
|
+
* Whether the extension can add or update cart metafields using
|
|
2242
|
+
* `applyMetafieldChange()`.
|
|
2012
2243
|
*/
|
|
2013
2244
|
canSetCartMetafields: boolean;
|
|
2014
2245
|
|
|
2015
2246
|
/**
|
|
2016
|
-
*
|
|
2247
|
+
* Whether the extension can delete cart metafields using
|
|
2248
|
+
* `applyMetafieldChange()`.
|
|
2017
2249
|
*/
|
|
2018
2250
|
canDeleteCartMetafield: boolean;
|
|
2019
2251
|
}
|
|
2020
2252
|
|
|
2253
|
+
/** @publicDocs */
|
|
2021
2254
|
export interface NotesCartInstructions {
|
|
2022
2255
|
/**
|
|
2023
|
-
*
|
|
2256
|
+
* Whether the order note can be updated using `applyNoteChange()`. When
|
|
2257
|
+
* `false`, the checkout configuration doesn't allow note changes. Even
|
|
2258
|
+
* when `true`, calls to `applyNoteChange()` can still fail during
|
|
2259
|
+
* accelerated checkout (Apple Pay, Google Pay).
|
|
2024
2260
|
*/
|
|
2025
2261
|
canUpdateNote: boolean;
|
|
2026
2262
|
}
|