@thorprovider/types 7.7.0 → 7.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -82,6 +82,36 @@ interface Country {
82
82
  /** ISO 3166-1 numeric code (optional, e.g., "840", "724") */
83
83
  numCode?: string;
84
84
  }
85
+ /**
86
+ * How a promotion was applied.
87
+ *
88
+ * - `coupon`: the shopper entered a code.
89
+ * - `automatic`: the backend applied it without a code.
90
+ * - `discount`: an adjustment whose promotion identity is not available.
91
+ */
92
+ type PromotionKind = 'coupon' | 'automatic' | 'discount';
93
+ /**
94
+ * Where a promotion was applied, as far as the backend adjustments reveal.
95
+ *
96
+ * `items` and `shipping` are derived from the adjustment location. `order` is
97
+ * used when no adjustment location is available yet (for example a code applied
98
+ * before a shipping method exists).
99
+ */
100
+ type PromotionScope = 'order' | 'items' | 'shipping';
101
+ /**
102
+ * One promotion row from the backend's discount adjustments.
103
+ *
104
+ * `amount` is the sum of the adjustments attributed to this promotion, never a
105
+ * locally computed percentage or configured value.
106
+ */
107
+ interface PromotionSummary {
108
+ id: string;
109
+ code?: string;
110
+ label: string;
111
+ kind: PromotionKind;
112
+ scope: PromotionScope;
113
+ amount: Money;
114
+ }
85
115
 
86
116
  /**
87
117
  * @thorprovider/types — Commerce contracts (type-only)
@@ -213,6 +243,21 @@ interface CheckoutContactValues {
213
243
  lastName: string;
214
244
  phone: string;
215
245
  }
246
+ /**
247
+ * Guest contact stored on the cart/order (never on the Customer record).
248
+ *
249
+ * The email is authoritative on `Cart.email`; this shape carries the display
250
+ * name and phone the shopper entered for the order.
251
+ */
252
+ interface GuestContact {
253
+ firstName: string;
254
+ lastName: string;
255
+ phone: string;
256
+ }
257
+ /** Guest contact payload accepted by the checkout contact route. */
258
+ interface CheckoutGuestContact extends GuestContact {
259
+ email: string;
260
+ }
216
261
  /** Authenticated identity mapped by the host. No token or raw customer object. */
217
262
  interface CheckoutCustomerIdentity {
218
263
  id: string;
@@ -1413,6 +1458,40 @@ type CatalogQueryOutcome = {
1413
1458
  * Cart types - unified interface for all commerce providers
1414
1459
  */
1415
1460
 
1461
+ /**
1462
+ * One quantity-price tier for a cart line.
1463
+ *
1464
+ * `maxQuantity` is absent for an open-ended tier. The unit price is the
1465
+ * backend's effective price for that range; consumers render it and never
1466
+ * derive it from a percentage or a configured amount.
1467
+ */
1468
+ interface PriceTier {
1469
+ minQuantity: number;
1470
+ maxQuantity?: number;
1471
+ unitPrice: Money;
1472
+ }
1473
+ /**
1474
+ * Per-line checkout projection: stock and the effective quantity-price ladder.
1475
+ *
1476
+ * `availableQuantity` is the maximum number of complete units a single
1477
+ * sales-channel warehouse can serve, never the sum across warehouses.
1478
+ * `basePrice` is the effective group's base price when the backend reports one;
1479
+ * `tiers` is the quantity ladder. Both are omitted/empty when the backend does
1480
+ * not expose them.
1481
+ */
1482
+ interface CheckoutLineProjectionLine {
1483
+ lineId: string;
1484
+ variantId: string;
1485
+ availableQuantity?: number;
1486
+ stockStatus?: StockStatus;
1487
+ locationId?: string;
1488
+ basePrice?: Money;
1489
+ tiers: PriceTier[];
1490
+ }
1491
+ interface CheckoutLineProjection {
1492
+ lines: CheckoutLineProjectionLine[];
1493
+ stockValidation: StockValidation;
1494
+ }
1416
1495
  /**
1417
1496
  * Product reference in cart
1418
1497
  */
@@ -1429,6 +1508,15 @@ interface CartItem {
1429
1508
  id: string | undefined;
1430
1509
  quantity: number;
1431
1510
  stockStatus?: StockStatus;
1511
+ /**
1512
+ * Maximum complete units a single sales-channel warehouse can serve, when
1513
+ * the backend exposes stock. Absent for unmanaged inventory or backorder.
1514
+ */
1515
+ availableQuantity?: number;
1516
+ /** Effective quantity-price ladder, when the backend exposes one. */
1517
+ tiers?: PriceTier[];
1518
+ /** Effective price group's base price, when the backend reports one. */
1519
+ basePrice?: Money;
1432
1520
  cost: {
1433
1521
  totalAmount: Money;
1434
1522
  /**
@@ -1516,6 +1604,28 @@ interface Cart {
1516
1604
  * cart that belongs to another shopper.
1517
1605
  */
1518
1606
  customerId?: string;
1607
+ /**
1608
+ * Contact email stored on the cart.
1609
+ *
1610
+ * For a guest checkout the backend copies it to the order and uses it for the
1611
+ * confirmation email. It is the authoritative contact email; the name and
1612
+ * phone live in `guestContact`.
1613
+ */
1614
+ email?: string;
1615
+ /**
1616
+ * Whether the cart's customer is a registered account (`has_account=true`).
1617
+ *
1618
+ * A guest customer created natively by Medusa has `has_account=false`; the
1619
+ * runtime uses this flag to exclude registered-only instruments such as store
1620
+ * credit.
1621
+ */
1622
+ customerHasAccount?: boolean;
1623
+ /**
1624
+ * Guest contact carried in `cart.metadata.guest_contact`.
1625
+ *
1626
+ * Never written to the Customer record; the order inherits the metadata.
1627
+ */
1628
+ guestContact?: GuestContact;
1519
1629
  /** Backend id of the applied shipping method, when one is selected. */
1520
1630
  selectedShippingMethodId?: string;
1521
1631
  /**
@@ -1526,6 +1636,11 @@ interface Cart {
1526
1636
  * (the applied shipping-method record id). Absent when no method is applied.
1527
1637
  */
1528
1638
  selectedShippingOptionId?: string;
1639
+ /**
1640
+ * One row per promotion resolved from the backend's adjustments. Absent when
1641
+ * the provider does not expose a promotion breakdown.
1642
+ */
1643
+ promotions?: PromotionSummary[];
1529
1644
  /** Platform-specific backend metadata, carried through unchanged. */
1530
1645
  metadata?: Record<string, unknown>;
1531
1646
  }
@@ -1935,6 +2050,8 @@ interface OrderDeliveryGroup {
1935
2050
  /**
1936
2051
  * Order-line ids belonging to this group, only when the backend exposes the
1937
2052
  * membership. Consumers MUST NOT invent an assignment when it is absent.
2053
+ * A line whose allocations span more than one group is ambiguous and is
2054
+ * omitted from every group rather than assigned arbitrarily.
1938
2055
  */
1939
2056
  lineIds?: string[];
1940
2057
  }
@@ -1969,6 +2086,14 @@ interface Order {
1969
2086
  fulfillmentStatus: FulfillmentStatus;
1970
2087
  customerId?: string;
1971
2088
  customer?: Customer;
2089
+ /**
2090
+ * Sales channel the order belongs to (Medusa `sales_channel_id`).
2091
+ *
2092
+ * Carried so the runtime can prove a receipt belongs to the validated store
2093
+ * channel before rendering it; a provider that cannot expose it leaves it
2094
+ * absent and the receipt path fails closed.
2095
+ */
2096
+ salesChannelId?: string;
1972
2097
  items: OrderItem[];
1973
2098
  subtotal: Money;
1974
2099
  total: Money;
@@ -1998,6 +2123,11 @@ interface Order {
1998
2123
  * can render its breakdown after a reload without inventing amounts.
1999
2124
  */
2000
2125
  payments?: OrderPayment[];
2126
+ /**
2127
+ * One row per promotion resolved from the order's item and shipping
2128
+ * adjustments. Absent when the backend does not expose a breakdown.
2129
+ */
2130
+ promotions?: PromotionSummary[];
2001
2131
  /** Backend tax rate in basis points, when the order reports one rate. */
2002
2132
  taxRateBps?: number;
2003
2133
  /**
@@ -3465,6 +3595,7 @@ interface CommerceProvider {
3465
3595
  */
3466
3596
  createCart(options?: {
3467
3597
  regionId?: string;
3598
+ salesChannelId?: string;
3468
3599
  }): Promise<Cart>;
3469
3600
  /**
3470
3601
  * Get an existing cart by ID
@@ -3485,6 +3616,19 @@ interface CommerceProvider {
3485
3616
  * @throws {ProviderAPIError} If the cart cannot be transferred
3486
3617
  */
3487
3618
  assignCartToCustomer?(cartId: string): Promise<Cart>;
3619
+ /**
3620
+ * Persist the guest checkout contact (email + name + phone) on the cart.
3621
+ *
3622
+ * The backend writes `cart.email` and merges
3623
+ * `cart.metadata.guest_contact`; it never writes the Customer record. The
3624
+ * provider must carry no customer token: the cart id is the capability and
3625
+ * the backend enforces the guest/channel rules.
3626
+ *
3627
+ * @param cartId - Cart ID
3628
+ * @param contact - Guest contact values
3629
+ * @returns The updated cart with the contact stored
3630
+ */
3631
+ updateCheckoutGuestContact?(cartId: string, contact: CheckoutGuestContact): Promise<Cart>;
3488
3632
  /**
3489
3633
  * Add items to cart
3490
3634
  * @param cartId - Cart ID
@@ -3646,6 +3790,22 @@ interface CommerceProvider {
3646
3790
  * @throws {ProviderAPIError} If the backend rejects the selection set
3647
3791
  */
3648
3792
  applyCheckoutShippingGroups?(cartId: string, selections: ShippingGroupSelection[]): Promise<void>;
3793
+ /**
3794
+ * Project stock and the effective quantity-price ladder for each cart line
3795
+ * (OPTIONAL).
3796
+ *
3797
+ * The backend selects the effective price group with Medusa's pricing engine
3798
+ * and reports the maximum number of complete units a single sales-channel
3799
+ * warehouse can serve. Callers render the values; they never sum stock across
3800
+ * warehouses, mix price groups or derive a price locally.
3801
+ *
3802
+ * Optional for the same reason as `getCheckoutShippingGroups`; its absence
3803
+ * is an unsupported capability, not an empty projection.
3804
+ *
3805
+ * @param cartId - Cart ID
3806
+ * @throws {ProviderAPIError} If the backend fails or returns an invalid projection
3807
+ */
3808
+ getCheckoutLineProjection?(cartId: string): Promise<CheckoutLineProjection>;
3649
3809
  /**
3650
3810
  * Initiate payment session with provider
3651
3811
  *
@@ -3801,6 +3961,17 @@ interface CommerceProvider {
3801
3961
  * @returns Order or undefined if not found
3802
3962
  */
3803
3963
  getOrder?(orderId: string): Promise<Order | undefined>;
3964
+ /**
3965
+ * Read a single order through the channel-scoped guest receipt route
3966
+ * (OPTIONAL).
3967
+ *
3968
+ * Unlike `getOrder`, the backend resolves the sales channel from the
3969
+ * publishable key and returns 404 for an order from another channel. The
3970
+ * runtime uses it for the unauthenticated confirmation page; a provider
3971
+ * without it falls back to `getOrder` and must expose `Order.salesChannelId`
3972
+ * so the runtime can verify the channel itself.
3973
+ */
3974
+ getCheckoutOrder?(orderId: string): Promise<Order | undefined>;
3804
3975
  /**
3805
3976
  * Get all orders for a customer (optional)
3806
3977
  *
@@ -7345,4 +7516,4 @@ type UpdateBusinessPolicyResponse = {
7345
7516
  business_policy: string;
7346
7517
  };
7347
7518
 
7348
- export type { AccountDropdownConfig, AccountMenuItem, AcknowledgeCostPriceChangesResponse, ActiveFilter, AddOrderEditItemBody, AddOrderEditItemResponse, Address, AdminApiKey, AdminChannelCategory, AdminChannelCustomer, AdminDropshipperAccount, AdminDropshipperBalance, AdminProduct, AdminProductVariant, AdminSalesChannelRef, AdminSiteConfig, AdminSiteConfigHistoryEntry, AdminSiteConfigHistoryEntryFull, AdminStorefrontConfig, AdminStorefrontSeoDefaults, AdminUser, AdvancedSearchProductsOptions, AssignCategoriesToChannelsBody, AssignCategoriesToChannelsResponse, AssignCollectionsToChannelsBody, AssignCollectionsToChannelsResponse, AuditLog, AuditLogAdapter, AuthConfig, AuthMethod, AuthProvider, AuthResponse, AuthStorage, AuthorConfig, BackendCapabilities, BrandConfig, CachedPaymentMethods, CancelDropshipperOrderResponse, CancelMovementBody, CancelMovementResponse, CancelSettlementBody, Cart, CartCost, CartItem, CartLineInput, CartLineUpdate, CartProduct, CartSession, CatalogAppliedFilters, CatalogFacetDemonstrationSource, CatalogFacetId, CatalogQuery, CatalogQueryFailure, CatalogQueryFailureCode, CatalogQueryFailureRepair, CatalogQueryOutcome, CatalogResults, CatalogSortKey, CategoryMapping, ChartDataPoint, ChatAssistantHealthResponse, ChatIntent, ChatMessage, ChatRequest, ChatResponse, ChatSource, ChatSourceVariant, CheckoutAddressLevel, CheckoutAddressOption, CheckoutAddressValues, CheckoutAdjustmentPayment, CheckoutCapturePolicy, CheckoutContactValues, CheckoutCustomerIdentity, CheckoutInterruption, CheckoutInterruptionAction, CheckoutInterruptionKind, CheckoutLocationOptions, CheckoutPaymentPlanItem, CheckoutPaymentSummary, CheckoutPaymentSummaryPayment, CheckoutPaymentSummaryStatus, CheckoutReadState, CheckoutSavedAddress, CheckoutShippingGroup, CheckoutShippingGroupItem, CheckoutShippingOption, CheckoutSubmission, Collection, CollectionProductsOptions, CommerceProvider, CompareProduct, ConfigHistoryEntry, ConfirmMovementBody, ConfirmMovementResponse, ConfirmOrderEditResponse, ConfirmSettlementBody, Connection, ConvertDropshipperDraftOrderBody, ConvertDropshipperDraftOrderResponse, CostPriceChangeItem, CostPriceChangesCheckResponse, CostPriceChangesResponse, Country, CreateAddressData, CreateAjusteBody, CreateAjusteResponse, CreateCategoryMappingBody, CreateCategoryMappingResponse, CreateCobroBody, CreateCobroResponse, CreateCompensacionBody, CreateCompensacionResponse, CreateDropshipperCategoryBody, CreateDropshipperCustomerBody, CreateDropshipperCustomerResponse, CreateDropshipperDraftOrderBody, CreateDropshipperDraftOrderResponse, CreateDropshipperOrderBody, CreateDropshipperOrderResponse, CreateDropshipperPromotionBody, CreateOrderEditBody, CreateOrderEditResponse, CreateOrderItem, CreateOrderNoteBody, CreateOrderNoteResponse, CreatePagoBody, CreatePagoResponse, CreateReversoBody, CreateReversoResponse, CreateSettlementBody, CreateSettlementResponse, Customer, CustomerOrdersPage, DashboardChanges, DashboardConfig, DashboardMetrics, DashboardMetricsAdapter, DashboardOrdersAdapter, DashboardPeriodMetrics, DashboardProductsAdapter, DashboardStats, DashboardTopProduct, DeleteCategoryMappingResponse, DeleteDropshipperCategoryResponse, DeleteDropshipperDraftOrderResponse, DeleteDropshipperPromotionResponse, DeleteOrderNoteResponse, DesignerConfig, DesignerHistoryEntry, DesignerNavItem, DesignerThemeConfig, DesignerThemePreset, DiscountCode, DropshipperAccount, DropshipperAccountRef, DropshipperAddressBody, DropshipperAddressResponse, DropshipperAttributeDefinition, DropshipperAttributeDefinitionValue, DropshipperBalance, DropshipperCategory, DropshipperCostTier, DropshipperCustomer, DropshipperCustomerAddress, DropshipperCustomerDetail, DropshipperCustomerFinancial, DropshipperCustomerStats, DropshipperDashboardCapabilities, DropshipperDraftOrder, DropshipperDraftOrderItem, DropshipperNotificationEventType, DropshipperNotificationPreference, DropshipperOrder, DropshipperOrderCustomer, DropshipperOrderDetail, DropshipperOrderItem, DropshipperOrderShippingAddress, DropshipperOrderTaxLine, DropshipperOrderTimelineEvent, DropshipperOrderTotals, DropshipperPayableOrder, DropshipperPaymentMethodConfig, DropshipperPendingOrders, DropshipperPriceItem, DropshipperPriceTier, DropshipperProduct, DropshipperProductAttachment, DropshipperProductAttribute, DropshipperProductAttributeValue, DropshipperProductImage, DropshipperProductOption, DropshipperProductOptionValue, DropshipperProductPrivateMedia, DropshipperProfile, DropshipperPromotion, DropshipperReceivableOrder, DropshipperSaleTier, DropshipperShippingGroup, DropshipperShippingGroupOption, DropshipperShippingOption, DropshipperVariant, DynamicSource, Edge, ExtendedCreateDropshipperOrderBody, ExtendedCreateDropshipperOrderResponse, FacetSupport, FilterConfig, FilterOption, FilterSection, FulfillmentOption, FulfillmentSet, FulfillmentStatus, GeoCity, GeoCountry, GeoProvince, GetAdminAccountBalanceResponse, GetAdminDropshipperAccountOrdersResponse, GetAdminDropshipperAccountSettlementsOptions, GetAdminDropshipperAccountSettlementsResponse, GetAdminDropshipperAccountsResponse, GetAdminPriceListsResponse, GetAdminSiteConfigHistoryOptions, GetAdminSiteConfigHistoryResponse, GetAdminSiteConfigResponse, GetAdminStorefrontConfigResponse, GetBusinessPolicyResponse, GetCategoriesCallback, GetCategoriesOptions, GetCategoryMappingsOptions, GetCategoryMappingsResponse, GetCategorySalesChannelsResponse, GetChannelApiKeysResponse, GetChannelCategoriesOptions, GetChannelCategoriesResponse, GetChannelCustomersOptions, GetChannelCustomersResponse, GetCollectionSalesChannelsResponse, GetCollectionsOptions, GetCustomerOrdersPageOptions, GetCustomersCallback, GetCustomersOptions, GetDashboardStatsOptions, GetDashboardStatsResponse, GetDropshipperAccountBalanceResponse, GetDropshipperAccountOrdersOptions, GetDropshipperAccountOrdersResponse, GetDropshipperAccountResponse, GetDropshipperAddressesResponse, GetDropshipperAttributesResponse, GetDropshipperCategoriesOptions, GetDropshipperCategoriesResponse, GetDropshipperCustomerDetailResponse, GetDropshipperCustomersOptions, GetDropshipperCustomersResponse, GetDropshipperDraftOrderDetailResponse, GetDropshipperDraftOrdersOptions, GetDropshipperDraftOrdersResponse, GetDropshipperOrderDetailResponse, GetDropshipperOrdersOptions, GetDropshipperOrdersResponse, GetDropshipperPayableResponse, GetDropshipperProductsOptions, GetDropshipperProductsResponse, GetDropshipperPromotionsOptions, GetDropshipperPromotionsResponse, GetDropshipperReceivableResponse, GetDropshipperShippingOptionsBody, GetDropshipperShippingOptionsResponse, GetFinancialAnalysisResponse, GetGeoCitiesResponse, GetGeoCountriesResponse, GetGeoProvincesResponse, GetMyProfileResponse, GetNotificationPreferencesResponse, GetNotificationsOptions, GetNotificationsResponse, GetOrderNotesResponse, GetOrdersCallback, GetOrdersOptions, GetProductAttributesResponse, GetProductsOptions, GetProviderCategoriesResponse, GetSettlementDetailResponse, GetSettlementsOptions, GetSettlementsResponse, GetStorefrontDropshipperCategoriesResponse, GetUserChannelResponse, GiftCardValidationResult, HeaderLinkItem, HeaderNavigationConfig, IconConfig, Image, InterestCategory, InventoryLevel, LinkCustomerToChannelResponse, LoginCredentials, ManualAdminNotificationData, ModulesConfig, Money, NavigationCalloutItem, NavigationItem, NavigationLinkItem, NotificationData, OnboardDropshipperBody, OnboardDropshipperResponse, Order, OrderDeliveryGroup, OrderItem, OrderNote, OrderPayment, OrderPaymentStatus, OrderReceipt, OrderStatus, OrdersMetrics, PaginationOptions, PasswordResetConfirm, PasswordResetRequest, PaymentMethod$1 as PaymentMethod, PaymentMethodFeatures, PaymentMethodType, PaymentMethodsOptions, PaymentStatus, PreviewDropshipperOrderItem, PreviewDropshipperOrderTotalsBody, PreviewDropshipperOrderTotalsResponse, PriceRange, PriceUpdatedNotificationData, Product, ProductAssignedNotificationData, ProductCategory, ProductOption, ProductPreview, ProductVariant, ProductsMetrics, PromotionRule, ProviderCategory, ProviderConfig, ProviderTypeString, QueryEntitiesInput, QueryEntityInput, QueryErrors, QueryMeta, QueryResponse, QuerySortDirection, RawNotification, RecoveryConfirmResult, Region, RegisterData, RegisterPaymentBody, RegisterPaymentResponse, RequestedProfile, ResolveGuaranteeBody, ResolveGuaranteeResponse, RestoreSiteConfigResponse, Review, SEO, SalesChannelType, SalesMetrics, SearchBarConfig, SearchResultMeta, SelectedOption, SetPaymentCollectorBody, SetPaymentCollectorResponse, SetPaymentMethodBody, SetPaymentMethodResponse, SettlementRecord, SettlementStatus, ShippingGroup, ShippingGroupInput, ShippingGroupItem, ShippingGroupLocation, ShippingGroupOption, ShippingGroupQuote, ShippingGroupSelection, ShippingMethod, ShopperIdentity, SiteConfig, SiteConfigLabels, SiteConfigMetadata, SocialConfig, SortOption, SortOptions, StockChangeNotificationData, StockLocation, StockStatus, StockValidation, StoreContext, StoreCreditAccountSummary, StorefrontConfig, StorefrontContext, StorefrontPlatformType, StorefrontSeoDefaults, SubmitApplicationBody, SubmitApplicationConflictApplication, SubmitApplicationCreated, SubmitApplicationResponse, SubmitApplicationResult, SubmitApplicationSalesChannel, TokenVerifyResult, TokenVerifyState, UnassignCategoriesFromChannelsBody, UnassignCategoriesFromChannelsResponse, UnassignCollectionsFromChannelsBody, UnassignCollectionsFromChannelsResponse, UpdateBusinessPolicyBody, UpdateBusinessPolicyResponse, UpdateCustomerData, UpdateDropshipperCategoryBody, UpdateDropshipperCustomerBody, UpdateDropshipperCustomerResponse, UpdateDropshipperDraftOrderBody, UpdateDropshipperDraftOrderResponse, UpdateDropshipperPricesBody, UpdateDropshipperPricesResponse, UpdateDropshipperProductStatusBody, UpdateDropshipperProductStatusResponse, UpdateDropshipperPromotionBody, UpdateNotificationPreferencesBody, UpdateSettlementStatusResponse, UpdateSiteConfigBody, UpdateSiteConfigResponse, UpdateStorefrontConfigBody, UpdateStorefrontConfigResponse, ValidateCheckoutItemsRequest, ValidateCheckoutItemsResponse, ValidateGiftCardBody, ValidateGiftCardResponse, ValidatedCheckoutItem };
7519
+ export type { AccountDropdownConfig, AccountMenuItem, AcknowledgeCostPriceChangesResponse, ActiveFilter, AddOrderEditItemBody, AddOrderEditItemResponse, Address, AdminApiKey, AdminChannelCategory, AdminChannelCustomer, AdminDropshipperAccount, AdminDropshipperBalance, AdminProduct, AdminProductVariant, AdminSalesChannelRef, AdminSiteConfig, AdminSiteConfigHistoryEntry, AdminSiteConfigHistoryEntryFull, AdminStorefrontConfig, AdminStorefrontSeoDefaults, AdminUser, AdvancedSearchProductsOptions, AssignCategoriesToChannelsBody, AssignCategoriesToChannelsResponse, AssignCollectionsToChannelsBody, AssignCollectionsToChannelsResponse, AuditLog, AuditLogAdapter, AuthConfig, AuthMethod, AuthProvider, AuthResponse, AuthStorage, AuthorConfig, BackendCapabilities, BrandConfig, CachedPaymentMethods, CancelDropshipperOrderResponse, CancelMovementBody, CancelMovementResponse, CancelSettlementBody, Cart, CartCost, CartItem, CartLineInput, CartLineUpdate, CartProduct, CartSession, CatalogAppliedFilters, CatalogFacetDemonstrationSource, CatalogFacetId, CatalogQuery, CatalogQueryFailure, CatalogQueryFailureCode, CatalogQueryFailureRepair, CatalogQueryOutcome, CatalogResults, CatalogSortKey, CategoryMapping, ChartDataPoint, ChatAssistantHealthResponse, ChatIntent, ChatMessage, ChatRequest, ChatResponse, ChatSource, ChatSourceVariant, CheckoutAddressLevel, CheckoutAddressOption, CheckoutAddressValues, CheckoutAdjustmentPayment, CheckoutCapturePolicy, CheckoutContactValues, CheckoutCustomerIdentity, CheckoutGuestContact, CheckoutInterruption, CheckoutInterruptionAction, CheckoutInterruptionKind, CheckoutLineProjection, CheckoutLineProjectionLine, CheckoutLocationOptions, CheckoutPaymentPlanItem, CheckoutPaymentSummary, CheckoutPaymentSummaryPayment, CheckoutPaymentSummaryStatus, CheckoutReadState, CheckoutSavedAddress, CheckoutShippingGroup, CheckoutShippingGroupItem, CheckoutShippingOption, CheckoutSubmission, Collection, CollectionProductsOptions, CommerceProvider, CompareProduct, ConfigHistoryEntry, ConfirmMovementBody, ConfirmMovementResponse, ConfirmOrderEditResponse, ConfirmSettlementBody, Connection, ConvertDropshipperDraftOrderBody, ConvertDropshipperDraftOrderResponse, CostPriceChangeItem, CostPriceChangesCheckResponse, CostPriceChangesResponse, Country, CreateAddressData, CreateAjusteBody, CreateAjusteResponse, CreateCategoryMappingBody, CreateCategoryMappingResponse, CreateCobroBody, CreateCobroResponse, CreateCompensacionBody, CreateCompensacionResponse, CreateDropshipperCategoryBody, CreateDropshipperCustomerBody, CreateDropshipperCustomerResponse, CreateDropshipperDraftOrderBody, CreateDropshipperDraftOrderResponse, CreateDropshipperOrderBody, CreateDropshipperOrderResponse, CreateDropshipperPromotionBody, CreateOrderEditBody, CreateOrderEditResponse, CreateOrderItem, CreateOrderNoteBody, CreateOrderNoteResponse, CreatePagoBody, CreatePagoResponse, CreateReversoBody, CreateReversoResponse, CreateSettlementBody, CreateSettlementResponse, Customer, CustomerOrdersPage, DashboardChanges, DashboardConfig, DashboardMetrics, DashboardMetricsAdapter, DashboardOrdersAdapter, DashboardPeriodMetrics, DashboardProductsAdapter, DashboardStats, DashboardTopProduct, DeleteCategoryMappingResponse, DeleteDropshipperCategoryResponse, DeleteDropshipperDraftOrderResponse, DeleteDropshipperPromotionResponse, DeleteOrderNoteResponse, DesignerConfig, DesignerHistoryEntry, DesignerNavItem, DesignerThemeConfig, DesignerThemePreset, DiscountCode, DropshipperAccount, DropshipperAccountRef, DropshipperAddressBody, DropshipperAddressResponse, DropshipperAttributeDefinition, DropshipperAttributeDefinitionValue, DropshipperBalance, DropshipperCategory, DropshipperCostTier, DropshipperCustomer, DropshipperCustomerAddress, DropshipperCustomerDetail, DropshipperCustomerFinancial, DropshipperCustomerStats, DropshipperDashboardCapabilities, DropshipperDraftOrder, DropshipperDraftOrderItem, DropshipperNotificationEventType, DropshipperNotificationPreference, DropshipperOrder, DropshipperOrderCustomer, DropshipperOrderDetail, DropshipperOrderItem, DropshipperOrderShippingAddress, DropshipperOrderTaxLine, DropshipperOrderTimelineEvent, DropshipperOrderTotals, DropshipperPayableOrder, DropshipperPaymentMethodConfig, DropshipperPendingOrders, DropshipperPriceItem, DropshipperPriceTier, DropshipperProduct, DropshipperProductAttachment, DropshipperProductAttribute, DropshipperProductAttributeValue, DropshipperProductImage, DropshipperProductOption, DropshipperProductOptionValue, DropshipperProductPrivateMedia, DropshipperProfile, DropshipperPromotion, DropshipperReceivableOrder, DropshipperSaleTier, DropshipperShippingGroup, DropshipperShippingGroupOption, DropshipperShippingOption, DropshipperVariant, DynamicSource, Edge, ExtendedCreateDropshipperOrderBody, ExtendedCreateDropshipperOrderResponse, FacetSupport, FilterConfig, FilterOption, FilterSection, FulfillmentOption, FulfillmentSet, FulfillmentStatus, GeoCity, GeoCountry, GeoProvince, GetAdminAccountBalanceResponse, GetAdminDropshipperAccountOrdersResponse, GetAdminDropshipperAccountSettlementsOptions, GetAdminDropshipperAccountSettlementsResponse, GetAdminDropshipperAccountsResponse, GetAdminPriceListsResponse, GetAdminSiteConfigHistoryOptions, GetAdminSiteConfigHistoryResponse, GetAdminSiteConfigResponse, GetAdminStorefrontConfigResponse, GetBusinessPolicyResponse, GetCategoriesCallback, GetCategoriesOptions, GetCategoryMappingsOptions, GetCategoryMappingsResponse, GetCategorySalesChannelsResponse, GetChannelApiKeysResponse, GetChannelCategoriesOptions, GetChannelCategoriesResponse, GetChannelCustomersOptions, GetChannelCustomersResponse, GetCollectionSalesChannelsResponse, GetCollectionsOptions, GetCustomerOrdersPageOptions, GetCustomersCallback, GetCustomersOptions, GetDashboardStatsOptions, GetDashboardStatsResponse, GetDropshipperAccountBalanceResponse, GetDropshipperAccountOrdersOptions, GetDropshipperAccountOrdersResponse, GetDropshipperAccountResponse, GetDropshipperAddressesResponse, GetDropshipperAttributesResponse, GetDropshipperCategoriesOptions, GetDropshipperCategoriesResponse, GetDropshipperCustomerDetailResponse, GetDropshipperCustomersOptions, GetDropshipperCustomersResponse, GetDropshipperDraftOrderDetailResponse, GetDropshipperDraftOrdersOptions, GetDropshipperDraftOrdersResponse, GetDropshipperOrderDetailResponse, GetDropshipperOrdersOptions, GetDropshipperOrdersResponse, GetDropshipperPayableResponse, GetDropshipperProductsOptions, GetDropshipperProductsResponse, GetDropshipperPromotionsOptions, GetDropshipperPromotionsResponse, GetDropshipperReceivableResponse, GetDropshipperShippingOptionsBody, GetDropshipperShippingOptionsResponse, GetFinancialAnalysisResponse, GetGeoCitiesResponse, GetGeoCountriesResponse, GetGeoProvincesResponse, GetMyProfileResponse, GetNotificationPreferencesResponse, GetNotificationsOptions, GetNotificationsResponse, GetOrderNotesResponse, GetOrdersCallback, GetOrdersOptions, GetProductAttributesResponse, GetProductsOptions, GetProviderCategoriesResponse, GetSettlementDetailResponse, GetSettlementsOptions, GetSettlementsResponse, GetStorefrontDropshipperCategoriesResponse, GetUserChannelResponse, GiftCardValidationResult, GuestContact, HeaderLinkItem, HeaderNavigationConfig, IconConfig, Image, InterestCategory, InventoryLevel, LinkCustomerToChannelResponse, LoginCredentials, ManualAdminNotificationData, ModulesConfig, Money, NavigationCalloutItem, NavigationItem, NavigationLinkItem, NotificationData, OnboardDropshipperBody, OnboardDropshipperResponse, Order, OrderDeliveryGroup, OrderItem, OrderNote, OrderPayment, OrderPaymentStatus, OrderReceipt, OrderStatus, OrdersMetrics, PaginationOptions, PasswordResetConfirm, PasswordResetRequest, PaymentMethod$1 as PaymentMethod, PaymentMethodFeatures, PaymentMethodType, PaymentMethodsOptions, PaymentStatus, PreviewDropshipperOrderItem, PreviewDropshipperOrderTotalsBody, PreviewDropshipperOrderTotalsResponse, PriceRange, PriceTier, PriceUpdatedNotificationData, Product, ProductAssignedNotificationData, ProductCategory, ProductOption, ProductPreview, ProductVariant, ProductsMetrics, PromotionKind, PromotionRule, PromotionScope, PromotionSummary, ProviderCategory, ProviderConfig, ProviderTypeString, QueryEntitiesInput, QueryEntityInput, QueryErrors, QueryMeta, QueryResponse, QuerySortDirection, RawNotification, RecoveryConfirmResult, Region, RegisterData, RegisterPaymentBody, RegisterPaymentResponse, RequestedProfile, ResolveGuaranteeBody, ResolveGuaranteeResponse, RestoreSiteConfigResponse, Review, SEO, SalesChannelType, SalesMetrics, SearchBarConfig, SearchResultMeta, SelectedOption, SetPaymentCollectorBody, SetPaymentCollectorResponse, SetPaymentMethodBody, SetPaymentMethodResponse, SettlementRecord, SettlementStatus, ShippingGroup, ShippingGroupInput, ShippingGroupItem, ShippingGroupLocation, ShippingGroupOption, ShippingGroupQuote, ShippingGroupSelection, ShippingMethod, ShopperIdentity, SiteConfig, SiteConfigLabels, SiteConfigMetadata, SocialConfig, SortOption, SortOptions, StockChangeNotificationData, StockLocation, StockStatus, StockValidation, StoreContext, StoreCreditAccountSummary, StorefrontConfig, StorefrontContext, StorefrontPlatformType, StorefrontSeoDefaults, SubmitApplicationBody, SubmitApplicationConflictApplication, SubmitApplicationCreated, SubmitApplicationResponse, SubmitApplicationResult, SubmitApplicationSalesChannel, TokenVerifyResult, TokenVerifyState, UnassignCategoriesFromChannelsBody, UnassignCategoriesFromChannelsResponse, UnassignCollectionsFromChannelsBody, UnassignCollectionsFromChannelsResponse, UpdateBusinessPolicyBody, UpdateBusinessPolicyResponse, UpdateCustomerData, UpdateDropshipperCategoryBody, UpdateDropshipperCustomerBody, UpdateDropshipperCustomerResponse, UpdateDropshipperDraftOrderBody, UpdateDropshipperDraftOrderResponse, UpdateDropshipperPricesBody, UpdateDropshipperPricesResponse, UpdateDropshipperProductStatusBody, UpdateDropshipperProductStatusResponse, UpdateDropshipperPromotionBody, UpdateNotificationPreferencesBody, UpdateSettlementStatusResponse, UpdateSiteConfigBody, UpdateSiteConfigResponse, UpdateStorefrontConfigBody, UpdateStorefrontConfigResponse, ValidateCheckoutItemsRequest, ValidateCheckoutItemsResponse, ValidateGiftCardBody, ValidateGiftCardResponse, ValidatedCheckoutItem };
package/dist/index.d.ts CHANGED
@@ -82,6 +82,36 @@ interface Country {
82
82
  /** ISO 3166-1 numeric code (optional, e.g., "840", "724") */
83
83
  numCode?: string;
84
84
  }
85
+ /**
86
+ * How a promotion was applied.
87
+ *
88
+ * - `coupon`: the shopper entered a code.
89
+ * - `automatic`: the backend applied it without a code.
90
+ * - `discount`: an adjustment whose promotion identity is not available.
91
+ */
92
+ type PromotionKind = 'coupon' | 'automatic' | 'discount';
93
+ /**
94
+ * Where a promotion was applied, as far as the backend adjustments reveal.
95
+ *
96
+ * `items` and `shipping` are derived from the adjustment location. `order` is
97
+ * used when no adjustment location is available yet (for example a code applied
98
+ * before a shipping method exists).
99
+ */
100
+ type PromotionScope = 'order' | 'items' | 'shipping';
101
+ /**
102
+ * One promotion row from the backend's discount adjustments.
103
+ *
104
+ * `amount` is the sum of the adjustments attributed to this promotion, never a
105
+ * locally computed percentage or configured value.
106
+ */
107
+ interface PromotionSummary {
108
+ id: string;
109
+ code?: string;
110
+ label: string;
111
+ kind: PromotionKind;
112
+ scope: PromotionScope;
113
+ amount: Money;
114
+ }
85
115
 
86
116
  /**
87
117
  * @thorprovider/types — Commerce contracts (type-only)
@@ -213,6 +243,21 @@ interface CheckoutContactValues {
213
243
  lastName: string;
214
244
  phone: string;
215
245
  }
246
+ /**
247
+ * Guest contact stored on the cart/order (never on the Customer record).
248
+ *
249
+ * The email is authoritative on `Cart.email`; this shape carries the display
250
+ * name and phone the shopper entered for the order.
251
+ */
252
+ interface GuestContact {
253
+ firstName: string;
254
+ lastName: string;
255
+ phone: string;
256
+ }
257
+ /** Guest contact payload accepted by the checkout contact route. */
258
+ interface CheckoutGuestContact extends GuestContact {
259
+ email: string;
260
+ }
216
261
  /** Authenticated identity mapped by the host. No token or raw customer object. */
217
262
  interface CheckoutCustomerIdentity {
218
263
  id: string;
@@ -1413,6 +1458,40 @@ type CatalogQueryOutcome = {
1413
1458
  * Cart types - unified interface for all commerce providers
1414
1459
  */
1415
1460
 
1461
+ /**
1462
+ * One quantity-price tier for a cart line.
1463
+ *
1464
+ * `maxQuantity` is absent for an open-ended tier. The unit price is the
1465
+ * backend's effective price for that range; consumers render it and never
1466
+ * derive it from a percentage or a configured amount.
1467
+ */
1468
+ interface PriceTier {
1469
+ minQuantity: number;
1470
+ maxQuantity?: number;
1471
+ unitPrice: Money;
1472
+ }
1473
+ /**
1474
+ * Per-line checkout projection: stock and the effective quantity-price ladder.
1475
+ *
1476
+ * `availableQuantity` is the maximum number of complete units a single
1477
+ * sales-channel warehouse can serve, never the sum across warehouses.
1478
+ * `basePrice` is the effective group's base price when the backend reports one;
1479
+ * `tiers` is the quantity ladder. Both are omitted/empty when the backend does
1480
+ * not expose them.
1481
+ */
1482
+ interface CheckoutLineProjectionLine {
1483
+ lineId: string;
1484
+ variantId: string;
1485
+ availableQuantity?: number;
1486
+ stockStatus?: StockStatus;
1487
+ locationId?: string;
1488
+ basePrice?: Money;
1489
+ tiers: PriceTier[];
1490
+ }
1491
+ interface CheckoutLineProjection {
1492
+ lines: CheckoutLineProjectionLine[];
1493
+ stockValidation: StockValidation;
1494
+ }
1416
1495
  /**
1417
1496
  * Product reference in cart
1418
1497
  */
@@ -1429,6 +1508,15 @@ interface CartItem {
1429
1508
  id: string | undefined;
1430
1509
  quantity: number;
1431
1510
  stockStatus?: StockStatus;
1511
+ /**
1512
+ * Maximum complete units a single sales-channel warehouse can serve, when
1513
+ * the backend exposes stock. Absent for unmanaged inventory or backorder.
1514
+ */
1515
+ availableQuantity?: number;
1516
+ /** Effective quantity-price ladder, when the backend exposes one. */
1517
+ tiers?: PriceTier[];
1518
+ /** Effective price group's base price, when the backend reports one. */
1519
+ basePrice?: Money;
1432
1520
  cost: {
1433
1521
  totalAmount: Money;
1434
1522
  /**
@@ -1516,6 +1604,28 @@ interface Cart {
1516
1604
  * cart that belongs to another shopper.
1517
1605
  */
1518
1606
  customerId?: string;
1607
+ /**
1608
+ * Contact email stored on the cart.
1609
+ *
1610
+ * For a guest checkout the backend copies it to the order and uses it for the
1611
+ * confirmation email. It is the authoritative contact email; the name and
1612
+ * phone live in `guestContact`.
1613
+ */
1614
+ email?: string;
1615
+ /**
1616
+ * Whether the cart's customer is a registered account (`has_account=true`).
1617
+ *
1618
+ * A guest customer created natively by Medusa has `has_account=false`; the
1619
+ * runtime uses this flag to exclude registered-only instruments such as store
1620
+ * credit.
1621
+ */
1622
+ customerHasAccount?: boolean;
1623
+ /**
1624
+ * Guest contact carried in `cart.metadata.guest_contact`.
1625
+ *
1626
+ * Never written to the Customer record; the order inherits the metadata.
1627
+ */
1628
+ guestContact?: GuestContact;
1519
1629
  /** Backend id of the applied shipping method, when one is selected. */
1520
1630
  selectedShippingMethodId?: string;
1521
1631
  /**
@@ -1526,6 +1636,11 @@ interface Cart {
1526
1636
  * (the applied shipping-method record id). Absent when no method is applied.
1527
1637
  */
1528
1638
  selectedShippingOptionId?: string;
1639
+ /**
1640
+ * One row per promotion resolved from the backend's adjustments. Absent when
1641
+ * the provider does not expose a promotion breakdown.
1642
+ */
1643
+ promotions?: PromotionSummary[];
1529
1644
  /** Platform-specific backend metadata, carried through unchanged. */
1530
1645
  metadata?: Record<string, unknown>;
1531
1646
  }
@@ -1935,6 +2050,8 @@ interface OrderDeliveryGroup {
1935
2050
  /**
1936
2051
  * Order-line ids belonging to this group, only when the backend exposes the
1937
2052
  * membership. Consumers MUST NOT invent an assignment when it is absent.
2053
+ * A line whose allocations span more than one group is ambiguous and is
2054
+ * omitted from every group rather than assigned arbitrarily.
1938
2055
  */
1939
2056
  lineIds?: string[];
1940
2057
  }
@@ -1969,6 +2086,14 @@ interface Order {
1969
2086
  fulfillmentStatus: FulfillmentStatus;
1970
2087
  customerId?: string;
1971
2088
  customer?: Customer;
2089
+ /**
2090
+ * Sales channel the order belongs to (Medusa `sales_channel_id`).
2091
+ *
2092
+ * Carried so the runtime can prove a receipt belongs to the validated store
2093
+ * channel before rendering it; a provider that cannot expose it leaves it
2094
+ * absent and the receipt path fails closed.
2095
+ */
2096
+ salesChannelId?: string;
1972
2097
  items: OrderItem[];
1973
2098
  subtotal: Money;
1974
2099
  total: Money;
@@ -1998,6 +2123,11 @@ interface Order {
1998
2123
  * can render its breakdown after a reload without inventing amounts.
1999
2124
  */
2000
2125
  payments?: OrderPayment[];
2126
+ /**
2127
+ * One row per promotion resolved from the order's item and shipping
2128
+ * adjustments. Absent when the backend does not expose a breakdown.
2129
+ */
2130
+ promotions?: PromotionSummary[];
2001
2131
  /** Backend tax rate in basis points, when the order reports one rate. */
2002
2132
  taxRateBps?: number;
2003
2133
  /**
@@ -3465,6 +3595,7 @@ interface CommerceProvider {
3465
3595
  */
3466
3596
  createCart(options?: {
3467
3597
  regionId?: string;
3598
+ salesChannelId?: string;
3468
3599
  }): Promise<Cart>;
3469
3600
  /**
3470
3601
  * Get an existing cart by ID
@@ -3485,6 +3616,19 @@ interface CommerceProvider {
3485
3616
  * @throws {ProviderAPIError} If the cart cannot be transferred
3486
3617
  */
3487
3618
  assignCartToCustomer?(cartId: string): Promise<Cart>;
3619
+ /**
3620
+ * Persist the guest checkout contact (email + name + phone) on the cart.
3621
+ *
3622
+ * The backend writes `cart.email` and merges
3623
+ * `cart.metadata.guest_contact`; it never writes the Customer record. The
3624
+ * provider must carry no customer token: the cart id is the capability and
3625
+ * the backend enforces the guest/channel rules.
3626
+ *
3627
+ * @param cartId - Cart ID
3628
+ * @param contact - Guest contact values
3629
+ * @returns The updated cart with the contact stored
3630
+ */
3631
+ updateCheckoutGuestContact?(cartId: string, contact: CheckoutGuestContact): Promise<Cart>;
3488
3632
  /**
3489
3633
  * Add items to cart
3490
3634
  * @param cartId - Cart ID
@@ -3646,6 +3790,22 @@ interface CommerceProvider {
3646
3790
  * @throws {ProviderAPIError} If the backend rejects the selection set
3647
3791
  */
3648
3792
  applyCheckoutShippingGroups?(cartId: string, selections: ShippingGroupSelection[]): Promise<void>;
3793
+ /**
3794
+ * Project stock and the effective quantity-price ladder for each cart line
3795
+ * (OPTIONAL).
3796
+ *
3797
+ * The backend selects the effective price group with Medusa's pricing engine
3798
+ * and reports the maximum number of complete units a single sales-channel
3799
+ * warehouse can serve. Callers render the values; they never sum stock across
3800
+ * warehouses, mix price groups or derive a price locally.
3801
+ *
3802
+ * Optional for the same reason as `getCheckoutShippingGroups`; its absence
3803
+ * is an unsupported capability, not an empty projection.
3804
+ *
3805
+ * @param cartId - Cart ID
3806
+ * @throws {ProviderAPIError} If the backend fails or returns an invalid projection
3807
+ */
3808
+ getCheckoutLineProjection?(cartId: string): Promise<CheckoutLineProjection>;
3649
3809
  /**
3650
3810
  * Initiate payment session with provider
3651
3811
  *
@@ -3801,6 +3961,17 @@ interface CommerceProvider {
3801
3961
  * @returns Order or undefined if not found
3802
3962
  */
3803
3963
  getOrder?(orderId: string): Promise<Order | undefined>;
3964
+ /**
3965
+ * Read a single order through the channel-scoped guest receipt route
3966
+ * (OPTIONAL).
3967
+ *
3968
+ * Unlike `getOrder`, the backend resolves the sales channel from the
3969
+ * publishable key and returns 404 for an order from another channel. The
3970
+ * runtime uses it for the unauthenticated confirmation page; a provider
3971
+ * without it falls back to `getOrder` and must expose `Order.salesChannelId`
3972
+ * so the runtime can verify the channel itself.
3973
+ */
3974
+ getCheckoutOrder?(orderId: string): Promise<Order | undefined>;
3804
3975
  /**
3805
3976
  * Get all orders for a customer (optional)
3806
3977
  *
@@ -7345,4 +7516,4 @@ type UpdateBusinessPolicyResponse = {
7345
7516
  business_policy: string;
7346
7517
  };
7347
7518
 
7348
- export type { AccountDropdownConfig, AccountMenuItem, AcknowledgeCostPriceChangesResponse, ActiveFilter, AddOrderEditItemBody, AddOrderEditItemResponse, Address, AdminApiKey, AdminChannelCategory, AdminChannelCustomer, AdminDropshipperAccount, AdminDropshipperBalance, AdminProduct, AdminProductVariant, AdminSalesChannelRef, AdminSiteConfig, AdminSiteConfigHistoryEntry, AdminSiteConfigHistoryEntryFull, AdminStorefrontConfig, AdminStorefrontSeoDefaults, AdminUser, AdvancedSearchProductsOptions, AssignCategoriesToChannelsBody, AssignCategoriesToChannelsResponse, AssignCollectionsToChannelsBody, AssignCollectionsToChannelsResponse, AuditLog, AuditLogAdapter, AuthConfig, AuthMethod, AuthProvider, AuthResponse, AuthStorage, AuthorConfig, BackendCapabilities, BrandConfig, CachedPaymentMethods, CancelDropshipperOrderResponse, CancelMovementBody, CancelMovementResponse, CancelSettlementBody, Cart, CartCost, CartItem, CartLineInput, CartLineUpdate, CartProduct, CartSession, CatalogAppliedFilters, CatalogFacetDemonstrationSource, CatalogFacetId, CatalogQuery, CatalogQueryFailure, CatalogQueryFailureCode, CatalogQueryFailureRepair, CatalogQueryOutcome, CatalogResults, CatalogSortKey, CategoryMapping, ChartDataPoint, ChatAssistantHealthResponse, ChatIntent, ChatMessage, ChatRequest, ChatResponse, ChatSource, ChatSourceVariant, CheckoutAddressLevel, CheckoutAddressOption, CheckoutAddressValues, CheckoutAdjustmentPayment, CheckoutCapturePolicy, CheckoutContactValues, CheckoutCustomerIdentity, CheckoutInterruption, CheckoutInterruptionAction, CheckoutInterruptionKind, CheckoutLocationOptions, CheckoutPaymentPlanItem, CheckoutPaymentSummary, CheckoutPaymentSummaryPayment, CheckoutPaymentSummaryStatus, CheckoutReadState, CheckoutSavedAddress, CheckoutShippingGroup, CheckoutShippingGroupItem, CheckoutShippingOption, CheckoutSubmission, Collection, CollectionProductsOptions, CommerceProvider, CompareProduct, ConfigHistoryEntry, ConfirmMovementBody, ConfirmMovementResponse, ConfirmOrderEditResponse, ConfirmSettlementBody, Connection, ConvertDropshipperDraftOrderBody, ConvertDropshipperDraftOrderResponse, CostPriceChangeItem, CostPriceChangesCheckResponse, CostPriceChangesResponse, Country, CreateAddressData, CreateAjusteBody, CreateAjusteResponse, CreateCategoryMappingBody, CreateCategoryMappingResponse, CreateCobroBody, CreateCobroResponse, CreateCompensacionBody, CreateCompensacionResponse, CreateDropshipperCategoryBody, CreateDropshipperCustomerBody, CreateDropshipperCustomerResponse, CreateDropshipperDraftOrderBody, CreateDropshipperDraftOrderResponse, CreateDropshipperOrderBody, CreateDropshipperOrderResponse, CreateDropshipperPromotionBody, CreateOrderEditBody, CreateOrderEditResponse, CreateOrderItem, CreateOrderNoteBody, CreateOrderNoteResponse, CreatePagoBody, CreatePagoResponse, CreateReversoBody, CreateReversoResponse, CreateSettlementBody, CreateSettlementResponse, Customer, CustomerOrdersPage, DashboardChanges, DashboardConfig, DashboardMetrics, DashboardMetricsAdapter, DashboardOrdersAdapter, DashboardPeriodMetrics, DashboardProductsAdapter, DashboardStats, DashboardTopProduct, DeleteCategoryMappingResponse, DeleteDropshipperCategoryResponse, DeleteDropshipperDraftOrderResponse, DeleteDropshipperPromotionResponse, DeleteOrderNoteResponse, DesignerConfig, DesignerHistoryEntry, DesignerNavItem, DesignerThemeConfig, DesignerThemePreset, DiscountCode, DropshipperAccount, DropshipperAccountRef, DropshipperAddressBody, DropshipperAddressResponse, DropshipperAttributeDefinition, DropshipperAttributeDefinitionValue, DropshipperBalance, DropshipperCategory, DropshipperCostTier, DropshipperCustomer, DropshipperCustomerAddress, DropshipperCustomerDetail, DropshipperCustomerFinancial, DropshipperCustomerStats, DropshipperDashboardCapabilities, DropshipperDraftOrder, DropshipperDraftOrderItem, DropshipperNotificationEventType, DropshipperNotificationPreference, DropshipperOrder, DropshipperOrderCustomer, DropshipperOrderDetail, DropshipperOrderItem, DropshipperOrderShippingAddress, DropshipperOrderTaxLine, DropshipperOrderTimelineEvent, DropshipperOrderTotals, DropshipperPayableOrder, DropshipperPaymentMethodConfig, DropshipperPendingOrders, DropshipperPriceItem, DropshipperPriceTier, DropshipperProduct, DropshipperProductAttachment, DropshipperProductAttribute, DropshipperProductAttributeValue, DropshipperProductImage, DropshipperProductOption, DropshipperProductOptionValue, DropshipperProductPrivateMedia, DropshipperProfile, DropshipperPromotion, DropshipperReceivableOrder, DropshipperSaleTier, DropshipperShippingGroup, DropshipperShippingGroupOption, DropshipperShippingOption, DropshipperVariant, DynamicSource, Edge, ExtendedCreateDropshipperOrderBody, ExtendedCreateDropshipperOrderResponse, FacetSupport, FilterConfig, FilterOption, FilterSection, FulfillmentOption, FulfillmentSet, FulfillmentStatus, GeoCity, GeoCountry, GeoProvince, GetAdminAccountBalanceResponse, GetAdminDropshipperAccountOrdersResponse, GetAdminDropshipperAccountSettlementsOptions, GetAdminDropshipperAccountSettlementsResponse, GetAdminDropshipperAccountsResponse, GetAdminPriceListsResponse, GetAdminSiteConfigHistoryOptions, GetAdminSiteConfigHistoryResponse, GetAdminSiteConfigResponse, GetAdminStorefrontConfigResponse, GetBusinessPolicyResponse, GetCategoriesCallback, GetCategoriesOptions, GetCategoryMappingsOptions, GetCategoryMappingsResponse, GetCategorySalesChannelsResponse, GetChannelApiKeysResponse, GetChannelCategoriesOptions, GetChannelCategoriesResponse, GetChannelCustomersOptions, GetChannelCustomersResponse, GetCollectionSalesChannelsResponse, GetCollectionsOptions, GetCustomerOrdersPageOptions, GetCustomersCallback, GetCustomersOptions, GetDashboardStatsOptions, GetDashboardStatsResponse, GetDropshipperAccountBalanceResponse, GetDropshipperAccountOrdersOptions, GetDropshipperAccountOrdersResponse, GetDropshipperAccountResponse, GetDropshipperAddressesResponse, GetDropshipperAttributesResponse, GetDropshipperCategoriesOptions, GetDropshipperCategoriesResponse, GetDropshipperCustomerDetailResponse, GetDropshipperCustomersOptions, GetDropshipperCustomersResponse, GetDropshipperDraftOrderDetailResponse, GetDropshipperDraftOrdersOptions, GetDropshipperDraftOrdersResponse, GetDropshipperOrderDetailResponse, GetDropshipperOrdersOptions, GetDropshipperOrdersResponse, GetDropshipperPayableResponse, GetDropshipperProductsOptions, GetDropshipperProductsResponse, GetDropshipperPromotionsOptions, GetDropshipperPromotionsResponse, GetDropshipperReceivableResponse, GetDropshipperShippingOptionsBody, GetDropshipperShippingOptionsResponse, GetFinancialAnalysisResponse, GetGeoCitiesResponse, GetGeoCountriesResponse, GetGeoProvincesResponse, GetMyProfileResponse, GetNotificationPreferencesResponse, GetNotificationsOptions, GetNotificationsResponse, GetOrderNotesResponse, GetOrdersCallback, GetOrdersOptions, GetProductAttributesResponse, GetProductsOptions, GetProviderCategoriesResponse, GetSettlementDetailResponse, GetSettlementsOptions, GetSettlementsResponse, GetStorefrontDropshipperCategoriesResponse, GetUserChannelResponse, GiftCardValidationResult, HeaderLinkItem, HeaderNavigationConfig, IconConfig, Image, InterestCategory, InventoryLevel, LinkCustomerToChannelResponse, LoginCredentials, ManualAdminNotificationData, ModulesConfig, Money, NavigationCalloutItem, NavigationItem, NavigationLinkItem, NotificationData, OnboardDropshipperBody, OnboardDropshipperResponse, Order, OrderDeliveryGroup, OrderItem, OrderNote, OrderPayment, OrderPaymentStatus, OrderReceipt, OrderStatus, OrdersMetrics, PaginationOptions, PasswordResetConfirm, PasswordResetRequest, PaymentMethod$1 as PaymentMethod, PaymentMethodFeatures, PaymentMethodType, PaymentMethodsOptions, PaymentStatus, PreviewDropshipperOrderItem, PreviewDropshipperOrderTotalsBody, PreviewDropshipperOrderTotalsResponse, PriceRange, PriceUpdatedNotificationData, Product, ProductAssignedNotificationData, ProductCategory, ProductOption, ProductPreview, ProductVariant, ProductsMetrics, PromotionRule, ProviderCategory, ProviderConfig, ProviderTypeString, QueryEntitiesInput, QueryEntityInput, QueryErrors, QueryMeta, QueryResponse, QuerySortDirection, RawNotification, RecoveryConfirmResult, Region, RegisterData, RegisterPaymentBody, RegisterPaymentResponse, RequestedProfile, ResolveGuaranteeBody, ResolveGuaranteeResponse, RestoreSiteConfigResponse, Review, SEO, SalesChannelType, SalesMetrics, SearchBarConfig, SearchResultMeta, SelectedOption, SetPaymentCollectorBody, SetPaymentCollectorResponse, SetPaymentMethodBody, SetPaymentMethodResponse, SettlementRecord, SettlementStatus, ShippingGroup, ShippingGroupInput, ShippingGroupItem, ShippingGroupLocation, ShippingGroupOption, ShippingGroupQuote, ShippingGroupSelection, ShippingMethod, ShopperIdentity, SiteConfig, SiteConfigLabels, SiteConfigMetadata, SocialConfig, SortOption, SortOptions, StockChangeNotificationData, StockLocation, StockStatus, StockValidation, StoreContext, StoreCreditAccountSummary, StorefrontConfig, StorefrontContext, StorefrontPlatformType, StorefrontSeoDefaults, SubmitApplicationBody, SubmitApplicationConflictApplication, SubmitApplicationCreated, SubmitApplicationResponse, SubmitApplicationResult, SubmitApplicationSalesChannel, TokenVerifyResult, TokenVerifyState, UnassignCategoriesFromChannelsBody, UnassignCategoriesFromChannelsResponse, UnassignCollectionsFromChannelsBody, UnassignCollectionsFromChannelsResponse, UpdateBusinessPolicyBody, UpdateBusinessPolicyResponse, UpdateCustomerData, UpdateDropshipperCategoryBody, UpdateDropshipperCustomerBody, UpdateDropshipperCustomerResponse, UpdateDropshipperDraftOrderBody, UpdateDropshipperDraftOrderResponse, UpdateDropshipperPricesBody, UpdateDropshipperPricesResponse, UpdateDropshipperProductStatusBody, UpdateDropshipperProductStatusResponse, UpdateDropshipperPromotionBody, UpdateNotificationPreferencesBody, UpdateSettlementStatusResponse, UpdateSiteConfigBody, UpdateSiteConfigResponse, UpdateStorefrontConfigBody, UpdateStorefrontConfigResponse, ValidateCheckoutItemsRequest, ValidateCheckoutItemsResponse, ValidateGiftCardBody, ValidateGiftCardResponse, ValidatedCheckoutItem };
7519
+ export type { AccountDropdownConfig, AccountMenuItem, AcknowledgeCostPriceChangesResponse, ActiveFilter, AddOrderEditItemBody, AddOrderEditItemResponse, Address, AdminApiKey, AdminChannelCategory, AdminChannelCustomer, AdminDropshipperAccount, AdminDropshipperBalance, AdminProduct, AdminProductVariant, AdminSalesChannelRef, AdminSiteConfig, AdminSiteConfigHistoryEntry, AdminSiteConfigHistoryEntryFull, AdminStorefrontConfig, AdminStorefrontSeoDefaults, AdminUser, AdvancedSearchProductsOptions, AssignCategoriesToChannelsBody, AssignCategoriesToChannelsResponse, AssignCollectionsToChannelsBody, AssignCollectionsToChannelsResponse, AuditLog, AuditLogAdapter, AuthConfig, AuthMethod, AuthProvider, AuthResponse, AuthStorage, AuthorConfig, BackendCapabilities, BrandConfig, CachedPaymentMethods, CancelDropshipperOrderResponse, CancelMovementBody, CancelMovementResponse, CancelSettlementBody, Cart, CartCost, CartItem, CartLineInput, CartLineUpdate, CartProduct, CartSession, CatalogAppliedFilters, CatalogFacetDemonstrationSource, CatalogFacetId, CatalogQuery, CatalogQueryFailure, CatalogQueryFailureCode, CatalogQueryFailureRepair, CatalogQueryOutcome, CatalogResults, CatalogSortKey, CategoryMapping, ChartDataPoint, ChatAssistantHealthResponse, ChatIntent, ChatMessage, ChatRequest, ChatResponse, ChatSource, ChatSourceVariant, CheckoutAddressLevel, CheckoutAddressOption, CheckoutAddressValues, CheckoutAdjustmentPayment, CheckoutCapturePolicy, CheckoutContactValues, CheckoutCustomerIdentity, CheckoutGuestContact, CheckoutInterruption, CheckoutInterruptionAction, CheckoutInterruptionKind, CheckoutLineProjection, CheckoutLineProjectionLine, CheckoutLocationOptions, CheckoutPaymentPlanItem, CheckoutPaymentSummary, CheckoutPaymentSummaryPayment, CheckoutPaymentSummaryStatus, CheckoutReadState, CheckoutSavedAddress, CheckoutShippingGroup, CheckoutShippingGroupItem, CheckoutShippingOption, CheckoutSubmission, Collection, CollectionProductsOptions, CommerceProvider, CompareProduct, ConfigHistoryEntry, ConfirmMovementBody, ConfirmMovementResponse, ConfirmOrderEditResponse, ConfirmSettlementBody, Connection, ConvertDropshipperDraftOrderBody, ConvertDropshipperDraftOrderResponse, CostPriceChangeItem, CostPriceChangesCheckResponse, CostPriceChangesResponse, Country, CreateAddressData, CreateAjusteBody, CreateAjusteResponse, CreateCategoryMappingBody, CreateCategoryMappingResponse, CreateCobroBody, CreateCobroResponse, CreateCompensacionBody, CreateCompensacionResponse, CreateDropshipperCategoryBody, CreateDropshipperCustomerBody, CreateDropshipperCustomerResponse, CreateDropshipperDraftOrderBody, CreateDropshipperDraftOrderResponse, CreateDropshipperOrderBody, CreateDropshipperOrderResponse, CreateDropshipperPromotionBody, CreateOrderEditBody, CreateOrderEditResponse, CreateOrderItem, CreateOrderNoteBody, CreateOrderNoteResponse, CreatePagoBody, CreatePagoResponse, CreateReversoBody, CreateReversoResponse, CreateSettlementBody, CreateSettlementResponse, Customer, CustomerOrdersPage, DashboardChanges, DashboardConfig, DashboardMetrics, DashboardMetricsAdapter, DashboardOrdersAdapter, DashboardPeriodMetrics, DashboardProductsAdapter, DashboardStats, DashboardTopProduct, DeleteCategoryMappingResponse, DeleteDropshipperCategoryResponse, DeleteDropshipperDraftOrderResponse, DeleteDropshipperPromotionResponse, DeleteOrderNoteResponse, DesignerConfig, DesignerHistoryEntry, DesignerNavItem, DesignerThemeConfig, DesignerThemePreset, DiscountCode, DropshipperAccount, DropshipperAccountRef, DropshipperAddressBody, DropshipperAddressResponse, DropshipperAttributeDefinition, DropshipperAttributeDefinitionValue, DropshipperBalance, DropshipperCategory, DropshipperCostTier, DropshipperCustomer, DropshipperCustomerAddress, DropshipperCustomerDetail, DropshipperCustomerFinancial, DropshipperCustomerStats, DropshipperDashboardCapabilities, DropshipperDraftOrder, DropshipperDraftOrderItem, DropshipperNotificationEventType, DropshipperNotificationPreference, DropshipperOrder, DropshipperOrderCustomer, DropshipperOrderDetail, DropshipperOrderItem, DropshipperOrderShippingAddress, DropshipperOrderTaxLine, DropshipperOrderTimelineEvent, DropshipperOrderTotals, DropshipperPayableOrder, DropshipperPaymentMethodConfig, DropshipperPendingOrders, DropshipperPriceItem, DropshipperPriceTier, DropshipperProduct, DropshipperProductAttachment, DropshipperProductAttribute, DropshipperProductAttributeValue, DropshipperProductImage, DropshipperProductOption, DropshipperProductOptionValue, DropshipperProductPrivateMedia, DropshipperProfile, DropshipperPromotion, DropshipperReceivableOrder, DropshipperSaleTier, DropshipperShippingGroup, DropshipperShippingGroupOption, DropshipperShippingOption, DropshipperVariant, DynamicSource, Edge, ExtendedCreateDropshipperOrderBody, ExtendedCreateDropshipperOrderResponse, FacetSupport, FilterConfig, FilterOption, FilterSection, FulfillmentOption, FulfillmentSet, FulfillmentStatus, GeoCity, GeoCountry, GeoProvince, GetAdminAccountBalanceResponse, GetAdminDropshipperAccountOrdersResponse, GetAdminDropshipperAccountSettlementsOptions, GetAdminDropshipperAccountSettlementsResponse, GetAdminDropshipperAccountsResponse, GetAdminPriceListsResponse, GetAdminSiteConfigHistoryOptions, GetAdminSiteConfigHistoryResponse, GetAdminSiteConfigResponse, GetAdminStorefrontConfigResponse, GetBusinessPolicyResponse, GetCategoriesCallback, GetCategoriesOptions, GetCategoryMappingsOptions, GetCategoryMappingsResponse, GetCategorySalesChannelsResponse, GetChannelApiKeysResponse, GetChannelCategoriesOptions, GetChannelCategoriesResponse, GetChannelCustomersOptions, GetChannelCustomersResponse, GetCollectionSalesChannelsResponse, GetCollectionsOptions, GetCustomerOrdersPageOptions, GetCustomersCallback, GetCustomersOptions, GetDashboardStatsOptions, GetDashboardStatsResponse, GetDropshipperAccountBalanceResponse, GetDropshipperAccountOrdersOptions, GetDropshipperAccountOrdersResponse, GetDropshipperAccountResponse, GetDropshipperAddressesResponse, GetDropshipperAttributesResponse, GetDropshipperCategoriesOptions, GetDropshipperCategoriesResponse, GetDropshipperCustomerDetailResponse, GetDropshipperCustomersOptions, GetDropshipperCustomersResponse, GetDropshipperDraftOrderDetailResponse, GetDropshipperDraftOrdersOptions, GetDropshipperDraftOrdersResponse, GetDropshipperOrderDetailResponse, GetDropshipperOrdersOptions, GetDropshipperOrdersResponse, GetDropshipperPayableResponse, GetDropshipperProductsOptions, GetDropshipperProductsResponse, GetDropshipperPromotionsOptions, GetDropshipperPromotionsResponse, GetDropshipperReceivableResponse, GetDropshipperShippingOptionsBody, GetDropshipperShippingOptionsResponse, GetFinancialAnalysisResponse, GetGeoCitiesResponse, GetGeoCountriesResponse, GetGeoProvincesResponse, GetMyProfileResponse, GetNotificationPreferencesResponse, GetNotificationsOptions, GetNotificationsResponse, GetOrderNotesResponse, GetOrdersCallback, GetOrdersOptions, GetProductAttributesResponse, GetProductsOptions, GetProviderCategoriesResponse, GetSettlementDetailResponse, GetSettlementsOptions, GetSettlementsResponse, GetStorefrontDropshipperCategoriesResponse, GetUserChannelResponse, GiftCardValidationResult, GuestContact, HeaderLinkItem, HeaderNavigationConfig, IconConfig, Image, InterestCategory, InventoryLevel, LinkCustomerToChannelResponse, LoginCredentials, ManualAdminNotificationData, ModulesConfig, Money, NavigationCalloutItem, NavigationItem, NavigationLinkItem, NotificationData, OnboardDropshipperBody, OnboardDropshipperResponse, Order, OrderDeliveryGroup, OrderItem, OrderNote, OrderPayment, OrderPaymentStatus, OrderReceipt, OrderStatus, OrdersMetrics, PaginationOptions, PasswordResetConfirm, PasswordResetRequest, PaymentMethod$1 as PaymentMethod, PaymentMethodFeatures, PaymentMethodType, PaymentMethodsOptions, PaymentStatus, PreviewDropshipperOrderItem, PreviewDropshipperOrderTotalsBody, PreviewDropshipperOrderTotalsResponse, PriceRange, PriceTier, PriceUpdatedNotificationData, Product, ProductAssignedNotificationData, ProductCategory, ProductOption, ProductPreview, ProductVariant, ProductsMetrics, PromotionKind, PromotionRule, PromotionScope, PromotionSummary, ProviderCategory, ProviderConfig, ProviderTypeString, QueryEntitiesInput, QueryEntityInput, QueryErrors, QueryMeta, QueryResponse, QuerySortDirection, RawNotification, RecoveryConfirmResult, Region, RegisterData, RegisterPaymentBody, RegisterPaymentResponse, RequestedProfile, ResolveGuaranteeBody, ResolveGuaranteeResponse, RestoreSiteConfigResponse, Review, SEO, SalesChannelType, SalesMetrics, SearchBarConfig, SearchResultMeta, SelectedOption, SetPaymentCollectorBody, SetPaymentCollectorResponse, SetPaymentMethodBody, SetPaymentMethodResponse, SettlementRecord, SettlementStatus, ShippingGroup, ShippingGroupInput, ShippingGroupItem, ShippingGroupLocation, ShippingGroupOption, ShippingGroupQuote, ShippingGroupSelection, ShippingMethod, ShopperIdentity, SiteConfig, SiteConfigLabels, SiteConfigMetadata, SocialConfig, SortOption, SortOptions, StockChangeNotificationData, StockLocation, StockStatus, StockValidation, StoreContext, StoreCreditAccountSummary, StorefrontConfig, StorefrontContext, StorefrontPlatformType, StorefrontSeoDefaults, SubmitApplicationBody, SubmitApplicationConflictApplication, SubmitApplicationCreated, SubmitApplicationResponse, SubmitApplicationResult, SubmitApplicationSalesChannel, TokenVerifyResult, TokenVerifyState, UnassignCategoriesFromChannelsBody, UnassignCategoriesFromChannelsResponse, UnassignCollectionsFromChannelsBody, UnassignCollectionsFromChannelsResponse, UpdateBusinessPolicyBody, UpdateBusinessPolicyResponse, UpdateCustomerData, UpdateDropshipperCategoryBody, UpdateDropshipperCustomerBody, UpdateDropshipperCustomerResponse, UpdateDropshipperDraftOrderBody, UpdateDropshipperDraftOrderResponse, UpdateDropshipperPricesBody, UpdateDropshipperPricesResponse, UpdateDropshipperProductStatusBody, UpdateDropshipperProductStatusResponse, UpdateDropshipperPromotionBody, UpdateNotificationPreferencesBody, UpdateSettlementStatusResponse, UpdateSiteConfigBody, UpdateSiteConfigResponse, UpdateStorefrontConfigBody, UpdateStorefrontConfigResponse, ValidateCheckoutItemsRequest, ValidateCheckoutItemsResponse, ValidateGiftCardBody, ValidateGiftCardResponse, ValidatedCheckoutItem };