@thorprovider/types 7.8.0 → 7.10.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
@@ -301,6 +301,17 @@ interface CheckoutShippingGroupItem {
301
301
  /** Quantity in this group when a line is split across groups. */
302
302
  quantity?: number;
303
303
  }
304
+ /** Outcome of requesting a guest-order claim (transfer) for a registered customer. */
305
+ interface CheckoutOrderClaimRequestResult {
306
+ /** True once the backend accepted the transfer request. */
307
+ requested: boolean;
308
+ }
309
+ /** Outcome of accepting a guest-order claim with the email token. */
310
+ interface CheckoutOrderClaimAcceptResult {
311
+ accepted: boolean;
312
+ /** The order the transfer was applied to. */
313
+ orderId: string;
314
+ }
304
315
  interface CheckoutAdjustmentPayment {
305
316
  id: string;
306
317
  kind: 'gift-card' | 'store-credit';
@@ -976,6 +987,7 @@ interface ProductVariant {
976
987
  stockStatus?: StockStatus;
977
988
  inventoryLevels?: InventoryLevel[];
978
989
  image?: Image;
990
+ attributes?: ProductAttributeGroup[];
979
991
  }
980
992
  /**
981
993
  * Price range for product
@@ -984,6 +996,41 @@ interface PriceRange {
984
996
  minVariantPrice: Money;
985
997
  maxVariantPrice: Money;
986
998
  }
999
+ /**
1000
+ * One merchandising highlight, rendered as a label/value pair (e.g.
1001
+ * "Pantalla" / "14 pulgadas") above the description.
1002
+ */
1003
+ interface ProductHighlight {
1004
+ label: string;
1005
+ value: string;
1006
+ }
1007
+ /** One row inside an attribute group. */
1008
+ interface ProductAttribute {
1009
+ id?: string;
1010
+ label: string;
1011
+ value: string;
1012
+ }
1013
+ /**
1014
+ * A titled block of specifications (e.g. "Peso y medidas"). Grouped rather than
1015
+ * flat so the product detail can render several tables without inventing titles.
1016
+ */
1017
+ interface ProductAttributeGroup {
1018
+ id?: string;
1019
+ title: string;
1020
+ items: ProductAttribute[];
1021
+ }
1022
+ /** A document attached to the product (datasheet, manual, care guide). */
1023
+ interface ProductAttachment {
1024
+ id: string;
1025
+ name: string;
1026
+ kind?: string;
1027
+ language?: string;
1028
+ size?: string;
1029
+ version?: string;
1030
+ url?: string;
1031
+ /** Empty or absent means the attachment applies to every variant. */
1032
+ variantIds?: string[];
1033
+ }
987
1034
  /**
988
1035
  * Main product type - normalized across all providers
989
1036
  *
@@ -1021,6 +1068,12 @@ interface Product {
1021
1068
  productType?: string;
1022
1069
  vendor?: string;
1023
1070
  tags?: string[];
1071
+ brand?: string;
1072
+ model?: string;
1073
+ shortDescription?: string;
1074
+ highlights?: ProductHighlight[];
1075
+ attributes?: ProductAttributeGroup[];
1076
+ attachments?: ProductAttachment[];
1024
1077
  seo?: SEO;
1025
1078
  createdAt: string;
1026
1079
  updatedAt: string;
@@ -1627,8 +1680,7 @@ interface Cart {
1627
1680
  */
1628
1681
  guestContact?: GuestContact;
1629
1682
  /** Backend id of the applied shipping method, when one is selected. */
1630
- selectedShippingMethodId?: string;
1631
- /**
1683
+ selectedShippingMethodId?: string; /**
1632
1684
  * Backend id of the shipping option the applied method was created from.
1633
1685
  *
1634
1686
  * This is the identity the checkout shipping UI selects (the value passed to
@@ -1643,6 +1695,14 @@ interface Cart {
1643
1695
  promotions?: PromotionSummary[];
1644
1696
  /** Platform-specific backend metadata, carried through unchanged. */
1645
1697
  metadata?: Record<string, unknown>;
1698
+ /**
1699
+ * Buyer email the backend holds on the cart.
1700
+ *
1701
+ * Authoritative for the guest checkout: the backend requires `cart.email`
1702
+ * before a guest order can be completed. Absent when the cart has no contact
1703
+ * email yet, which is the state the host must resolve before payment.
1704
+ */
1705
+ contactEmail?: string;
1646
1706
  }
1647
1707
  /**
1648
1708
  * Input for adding items to cart
@@ -1851,6 +1911,37 @@ interface Address {
1851
1911
  isDefaultBilling?: boolean;
1852
1912
  isDefaultShipping?: boolean;
1853
1913
  metadata?: Record<string, unknown>;
1914
+ createdAt?: string;
1915
+ updatedAt?: string;
1916
+ }
1917
+ /** Filters the address book can request from the provider. */
1918
+ type AddressFilter = 'all' | 'personal' | 'business' | 'default-shipping' | 'default-billing' | 'verified' | 'needs-review' | 'delivery-available';
1919
+ /** Server-side ordering supported by the address book. */
1920
+ type AddressSort = 'default-first' | 'recent' | 'oldest' | 'alphabetical' | 'city' | 'country' | 'company';
1921
+ /**
1922
+ * One page of the authenticated customer's address book.
1923
+ *
1924
+ * `total` is the filtered total of the customer's scope, never the page
1925
+ * length. `serverQuery` is intentionally absent: it is a presentation fact the
1926
+ * host knows, not a domain field.
1927
+ */
1928
+ interface AddressListQuery {
1929
+ /** Free-text match over label, recipient, company, postal lines and phone. */
1930
+ search?: string;
1931
+ filter?: AddressFilter;
1932
+ sort?: AddressSort;
1933
+ /** 1-based page index. */
1934
+ page?: number;
1935
+ /** Page size requested from the provider. */
1936
+ pageSize?: number;
1937
+ }
1938
+ /** Result of a server-side address list query. */
1939
+ interface AddressListResult {
1940
+ items: Address[];
1941
+ total: number;
1942
+ page: number;
1943
+ pageSize: number;
1944
+ hasMore: boolean;
1854
1945
  }
1855
1946
  /**
1856
1947
  * Customer
@@ -2204,6 +2295,131 @@ interface GetOrdersOptions {
2204
2295
  * @see {@link GetOrdersCallback} for callback signature
2205
2296
  */
2206
2297
  customFetcher?: GetOrdersCallback;
2298
+ /**
2299
+ * Optional server-side history query. Additive: omitted callers keep the
2300
+ * legacy array-returning behaviour.
2301
+ */
2302
+ query?: CustomerOrderHistoryQuery;
2303
+ }
2304
+ /**
2305
+ * Native Medusa payment status shared by Order Detail and Order History.
2306
+ *
2307
+ * Kept wider than {@link PaymentStatus} because neither surface may collapse
2308
+ * `partially_captured`, `partially_authorized`, `awaiting` or `requires_action`
2309
+ * without lying about the financial state. The host maps it to its own view.
2310
+ */
2311
+ type CustomerOrderPaymentStatus = 'not_paid' | 'awaiting' | 'authorized' | 'partially_authorized' | 'captured' | 'partially_captured' | 'partially_refunded' | 'refunded' | 'canceled' | 'requires_action';
2312
+ /** Native Medusa fulfillment status shared by Order Detail and Order History. */
2313
+ type CustomerOrderFulfillmentStatus = 'not_fulfilled' | 'partially_fulfilled' | 'fulfilled' | 'partially_shipped' | 'shipped' | 'partially_delivered' | 'delivered' | 'canceled';
2314
+ /** Surface-level status of one fulfillment, shared with Order Detail. */
2315
+ type CustomerOrderFulfillmentItemStatus = 'pending' | 'preparing' | 'shipped' | 'delivered' | 'partially_delivered' | 'ready_for_pickup' | 'picked_up' | 'cancelled';
2316
+ /** Actions the backend can prove from the order state. */
2317
+ type CustomerOrderAction = 'reorder' | 'invoice' | 'track' | 'return' | 'exchange' | 'problem' | 'cancel' | 'pay-balance' | 'support';
2318
+ type CustomerOrderHistoryQuick = 'all' | 'in-progress' | 'completed' | 'cancelled' | 'attention';
2319
+ type CustomerOrderHistorySort = 'newest' | 'oldest' | 'total-desc' | 'total-asc' | 'updated';
2320
+ type CustomerOrderHistoryDatePreset = 'today' | '7d' | '30d' | '90d' | 'year' | 'custom';
2321
+ type CustomerOrderHistoryCommercialStatus = 'pending' | 'processing' | 'completed' | 'cancelled';
2322
+ type CustomerOrderHistoryCommercialFilter = CustomerOrderHistoryCommercialStatus | 'requires-action';
2323
+ type CustomerOrderHistoryPaymentFilter = 'unpaid' | 'authorized' | 'partially_paid' | 'paid';
2324
+ type CustomerOrderHistoryRefundFilter = 'none' | 'partial' | 'full';
2325
+ type CustomerOrderHistoryFulfilmentFilter = 'unfulfilled' | 'preparing' | 'shipped' | 'partially_delivered' | 'delivered' | 'delayed' | 'ready_for_pickup';
2326
+ type CustomerOrderHistoryDeliveryMode = 'shipping' | 'pickup' | 'mixed';
2327
+ type CustomerOrderHistoryReturnStatus = 'none' | 'requested' | 'in_progress' | 'completed';
2328
+ /**
2329
+ * Server-side history filter selection. OR inside a group, AND between groups.
2330
+ *
2331
+ * The B2B groups intentionally have no fields: buyer, company, branch, payment
2332
+ * terms and purchase order have no real source yet and are rejected by the
2333
+ * backend instead of being silently ignored.
2334
+ */
2335
+ interface CustomerOrderHistoryFilters {
2336
+ commercial?: CustomerOrderHistoryCommercialFilter[];
2337
+ payment?: CustomerOrderHistoryPaymentFilter[];
2338
+ refund?: CustomerOrderHistoryRefundFilter[];
2339
+ fulfilment?: CustomerOrderHistoryFulfilmentFilter[];
2340
+ mode?: CustomerOrderHistoryDeliveryMode[];
2341
+ returns?: CustomerOrderHistoryReturnStatus[];
2342
+ products?: string;
2343
+ }
2344
+ /** One server-side Order History query. */
2345
+ interface CustomerOrderHistoryQuery {
2346
+ search?: string;
2347
+ quick?: CustomerOrderHistoryQuick;
2348
+ filters?: CustomerOrderHistoryFilters;
2349
+ date?: {
2350
+ preset: CustomerOrderHistoryDatePreset;
2351
+ from?: string;
2352
+ to?: string;
2353
+ };
2354
+ /** Integer minor units in `currency`; never converted. */
2355
+ amount?: {
2356
+ min?: number;
2357
+ max?: number;
2358
+ currency: string;
2359
+ };
2360
+ sort?: CustomerOrderHistorySort;
2361
+ page?: number;
2362
+ pageSize?: number;
2363
+ }
2364
+ /** Options for one authenticated customer history read. */
2365
+ interface CustomerOrderHistoryOptions extends CustomerOrderHistoryQuery {
2366
+ salesChannelId?: string;
2367
+ signal?: AbortSignal;
2368
+ }
2369
+ /** One shipment summary inside an Order History record. */
2370
+ interface CustomerOrderHistoryShipment {
2371
+ id: string;
2372
+ mode: 'shipping' | 'pickup';
2373
+ status: CustomerOrderFulfillmentItemStatus;
2374
+ itemCount: number;
2375
+ shippedAt?: string;
2376
+ deliveredAt?: string;
2377
+ trackingNumber?: string;
2378
+ trackingUrl?: string;
2379
+ }
2380
+ /**
2381
+ * One normalised Order History row.
2382
+ *
2383
+ * Native payment and fulfillment statuses are preserved. The host maps them to
2384
+ * the block contract; this type never invents credit terms, buyer context or
2385
+ * partial cancellations.
2386
+ */
2387
+ interface CustomerOrderHistoryRecord {
2388
+ id: string;
2389
+ orderNumber: string;
2390
+ placedAt: string;
2391
+ updatedAt: string;
2392
+ total: Money;
2393
+ items: OrderItem[];
2394
+ itemCount: number;
2395
+ commercial: OrderStatus;
2396
+ payment: {
2397
+ status: CustomerOrderPaymentStatus;
2398
+ due: Money;
2399
+ paid: Money;
2400
+ refunded: Money;
2401
+ credit?: Money;
2402
+ creditTerms: boolean;
2403
+ };
2404
+ refund: 'none' | 'partial' | 'full';
2405
+ fulfilment: {
2406
+ status: CustomerOrderFulfillmentStatus;
2407
+ shipments: CustomerOrderHistoryShipment[];
2408
+ };
2409
+ deliveryMode: CustomerOrderHistoryDeliveryMode;
2410
+ returns: CustomerOrderHistoryReturnStatus;
2411
+ availableActions: CustomerOrderAction[];
2412
+ }
2413
+ /** One server-side Order History page. */
2414
+ interface CustomerOrderHistoryPage {
2415
+ items: CustomerOrderHistoryRecord[];
2416
+ total: number;
2417
+ totalAll: number;
2418
+ pageCount: number;
2419
+ counts?: Record<CustomerOrderHistoryQuick, number>;
2420
+ warning?: boolean;
2421
+ limit: number;
2422
+ offset: number;
2207
2423
  }
2208
2424
  /**
2209
2425
  * Options for the additive paginated order-history contract.
@@ -2221,6 +2437,8 @@ interface GetCustomerOrdersPageOptions {
2221
2437
  pageSize?: number;
2222
2438
  /** The store's configured sales channel id (explicit; never a blind first id). */
2223
2439
  salesChannelId?: string;
2440
+ /** Optional server-side history filters. Additive. */
2441
+ query?: CustomerOrderHistoryQuery;
2224
2442
  }
2225
2443
  /**
2226
2444
  * The additive paginated order-history result.
@@ -2236,6 +2454,355 @@ interface CustomerOrdersPage {
2236
2454
  limit: number;
2237
2455
  offset: number;
2238
2456
  }
2457
+ /**
2458
+ * Sections of one authenticated customer order detail.
2459
+ *
2460
+ * The identifiers match the `OrderDetailPort` section ids so a host can map a
2461
+ * per-section issue without translating names.
2462
+ */
2463
+ type CustomerOrderDetailSection = 'logistics' | 'items' | 'pricing' | 'payments' | 'afterSales' | 'documents' | 'b2b' | 'revisions';
2464
+ /** Why one section of a detail read could not be delivered. */
2465
+ type CustomerOrderDetailIssue = 'unavailable' | 'error' | 'forbidden';
2466
+ /** Native Medusa payment status for a detail read (shared with history). */
2467
+ type CustomerOrderDetailPaymentStatus = CustomerOrderPaymentStatus;
2468
+ /** Native Medusa fulfillment status for a detail read (shared with history). */
2469
+ type CustomerOrderDetailFulfillmentStatus = CustomerOrderFulfillmentStatus;
2470
+ type CustomerOrderDetailAdjustmentScope = 'product' | 'order' | 'shipping' | 'payment';
2471
+ type CustomerOrderDetailAdjustmentDirection = 'discount' | 'surcharge';
2472
+ type CustomerOrderDetailAdjustmentSource = 'promotion' | 'manual' | 'contract' | 'tax';
2473
+ /**
2474
+ * One persisted adjustment as read from the order.
2475
+ *
2476
+ * `amount` is the backend's historical amount. A discount is never re-derived
2477
+ * from the current catalog or from a promotion's nominal value.
2478
+ */
2479
+ interface CustomerOrderDetailAdjustment {
2480
+ id: string;
2481
+ label: string;
2482
+ scope: CustomerOrderDetailAdjustmentScope;
2483
+ direction: CustomerOrderDetailAdjustmentDirection;
2484
+ amount: Money;
2485
+ source: CustomerOrderDetailAdjustmentSource;
2486
+ promotionId?: string;
2487
+ code?: string;
2488
+ }
2489
+ /** One persisted tax line attached to a product line or a shipping method. */
2490
+ interface CustomerOrderDetailTaxLine {
2491
+ id: string;
2492
+ label: string;
2493
+ /** Display-only rate (percent). Never used to recalculate the amount. */
2494
+ rate?: number;
2495
+ amount: Money;
2496
+ included?: boolean;
2497
+ exemption?: boolean;
2498
+ }
2499
+ type CustomerOrderDetailAttributeKind = 'variant' | 'commercial' | 'custom';
2500
+ /** One product attribute captured on the order line. */
2501
+ interface CustomerOrderDetailAttribute {
2502
+ id: string;
2503
+ label: string;
2504
+ value: string;
2505
+ kind: CustomerOrderDetailAttributeKind;
2506
+ }
2507
+ type CustomerOrderDetailPriceKind = 'list' | 'volume' | 'contract' | 'customer' | 'promotion';
2508
+ /** Historical unit price: list/original and applied, with its price kind. */
2509
+ interface CustomerOrderDetailLinePrice {
2510
+ original: Money;
2511
+ applied: Money;
2512
+ kind: CustomerOrderDetailPriceKind;
2513
+ }
2514
+ type CustomerOrderDetailProductKind = 'physical' | 'digital' | 'bundle' | 'service' | 'configured' | 'custom' | 'serialized' | 'warranty' | 'measured';
2515
+ /** A file linked to the product variant (manual, warranty, spec sheet). */
2516
+ interface CustomerOrderDetailAttachment {
2517
+ id: string;
2518
+ name: string;
2519
+ url: string;
2520
+ mimeType?: string;
2521
+ size?: number;
2522
+ }
2523
+ /** Units of one line attributed to one fulfillment. */
2524
+ interface CustomerOrderDetailAllocation {
2525
+ fulfillmentId: string;
2526
+ quantity: number;
2527
+ }
2528
+ /**
2529
+ * One historical order line.
2530
+ *
2531
+ * `quantity` is the ordered quantity; `cancelledQuantity` is only non-zero when
2532
+ * Medusa cancelled the whole order, and excludes units already delivered.
2533
+ */
2534
+ interface CustomerOrderDetailLine {
2535
+ id: string;
2536
+ productId?: string;
2537
+ variantId?: string;
2538
+ title: string;
2539
+ variantTitle?: string;
2540
+ sku?: string;
2541
+ image?: Image;
2542
+ quantity: number;
2543
+ cancelledQuantity: number;
2544
+ unitPrice: CustomerOrderDetailLinePrice;
2545
+ subtotal: Money;
2546
+ total: Money;
2547
+ discounts: CustomerOrderDetailAdjustment[];
2548
+ taxes: CustomerOrderDetailTaxLine[];
2549
+ attributes: CustomerOrderDetailAttribute[];
2550
+ attachments?: CustomerOrderDetailAttachment[];
2551
+ kind: CustomerOrderDetailProductKind;
2552
+ serialNumber?: string;
2553
+ warranty?: string;
2554
+ measure?: {
2555
+ quantity: number;
2556
+ unit: string;
2557
+ };
2558
+ bundle?: {
2559
+ name: string;
2560
+ sku: string;
2561
+ quantity: number;
2562
+ }[];
2563
+ note?: string;
2564
+ allocations?: CustomerOrderDetailAllocation[];
2565
+ }
2566
+ /** The selected method of one logistics group. */
2567
+ interface CustomerOrderDetailShippingMethod {
2568
+ id: string;
2569
+ name: string;
2570
+ description?: string;
2571
+ /** Internal warehouse/profile id; never rendered by the surface. */
2572
+ profileId?: string;
2573
+ }
2574
+ type CustomerOrderDetailPickupStatus = 'scheduled' | 'ready' | 'picked_up' | 'expired';
2575
+ /**
2576
+ * Pickup point details the backend can prove.
2577
+ *
2578
+ * Schedule, instructions and evidence are absent when the backend does not
2579
+ * report them; the host must not invent them.
2580
+ */
2581
+ interface CustomerOrderDetailPickup {
2582
+ locationName: string;
2583
+ address?: Address;
2584
+ status: CustomerOrderDetailPickupStatus;
2585
+ code?: string;
2586
+ availableFrom?: string;
2587
+ expiresAt?: string;
2588
+ }
2589
+ /** One confirmed logistics group on the order. */
2590
+ interface CustomerOrderDetailGroup {
2591
+ id: string;
2592
+ mode: 'shipping' | 'pickup';
2593
+ method: CustomerOrderDetailShippingMethod;
2594
+ shippingSubtotal: Money;
2595
+ discounts: CustomerOrderDetailAdjustment[];
2596
+ taxes: CustomerOrderDetailTaxLine[];
2597
+ total: Money;
2598
+ etaLabel?: string;
2599
+ pickup?: CustomerOrderDetailPickup;
2600
+ }
2601
+ /** Surface-level status of one fulfillment (shared with history). */
2602
+ type CustomerOrderDetailFulfillmentItemStatus = CustomerOrderFulfillmentItemStatus;
2603
+ /** One package/label attached to a fulfillment. */
2604
+ interface CustomerOrderDetailPackage {
2605
+ id: string;
2606
+ label?: string;
2607
+ }
2608
+ /** One fulfillment with its allocations, packages and tracking. */
2609
+ interface CustomerOrderDetailFulfillment {
2610
+ id: string;
2611
+ groupId: string;
2612
+ status: CustomerOrderDetailFulfillmentItemStatus;
2613
+ providerId?: string;
2614
+ carrier?: string;
2615
+ trackingNumber?: string;
2616
+ trackingUrl?: string;
2617
+ packedAt?: string;
2618
+ shippedAt?: string;
2619
+ deliveredAt?: string;
2620
+ canceledAt?: string;
2621
+ packages: CustomerOrderDetailPackage[];
2622
+ allocations: CustomerOrderDetailAllocation[];
2623
+ pickup?: CustomerOrderDetailPickup;
2624
+ }
2625
+ type CustomerOrderDetailPromotionScope = 'product' | 'order' | 'shipping' | 'payment';
2626
+ type CustomerOrderDetailPromotionApplication = 'automatic' | 'code';
2627
+ type CustomerOrderDetailPromotionNominal = {
2628
+ kind: 'percent';
2629
+ percent: number;
2630
+ } | {
2631
+ kind: 'fixed';
2632
+ money: Money;
2633
+ };
2634
+ /**
2635
+ * One promotion aggregated from the order's persisted adjustments.
2636
+ *
2637
+ * `discounted` is the sum of the unique adjustment ids in `adjustmentIds`;
2638
+ * `nominal` is display context only and never the charged amount.
2639
+ */
2640
+ interface CustomerOrderDetailPromotion {
2641
+ id: string;
2642
+ code?: string;
2643
+ name?: string;
2644
+ type?: 'standard' | 'buyget';
2645
+ scope: CustomerOrderDetailPromotionScope;
2646
+ application: CustomerOrderDetailPromotionApplication;
2647
+ nominal?: CustomerOrderDetailPromotionNominal;
2648
+ discounted: Money;
2649
+ adjustmentIds: string[];
2650
+ lineIds: string[];
2651
+ groupIds?: string[];
2652
+ buyXGetY?: {
2653
+ conditionLineIds: string[];
2654
+ rewardLineIds: string[];
2655
+ rewardQuantity?: number;
2656
+ freeQuantity?: number;
2657
+ partial?: boolean;
2658
+ };
2659
+ }
2660
+ type CustomerOrderDetailTransactionKind = 'payment' | 'authorization' | 'refund' | 'credit';
2661
+ type CustomerOrderDetailTransactionStatus = 'pending' | 'authorized' | 'captured' | 'refunded' | 'failed' | 'canceled';
2662
+ type CustomerOrderDetailTransactionMethod = 'card' | 'wallet' | 'transfer' | 'credit' | 'cash' | 'system' | 'gift_card' | 'store_credit' | 'other';
2663
+ /** One financial movement (payment, authorization, refund or credit). */
2664
+ interface CustomerOrderDetailTransaction {
2665
+ id: string;
2666
+ kind: CustomerOrderDetailTransactionKind;
2667
+ status: CustomerOrderDetailTransactionStatus;
2668
+ amount: Money;
2669
+ at: string;
2670
+ providerId?: string;
2671
+ method?: CustomerOrderDetailTransactionMethod;
2672
+ reference?: string;
2673
+ }
2674
+ type CustomerOrderDetailCaseType = 'return' | 'exchange' | 'claim';
2675
+ type CustomerOrderDetailCaseStatus = 'requested' | 'approved' | 'in_transit' | 'received' | 'partially_received' | 'completed' | 'rejected' | 'canceled';
2676
+ interface CustomerOrderDetailCaseLine {
2677
+ lineId: string;
2678
+ quantity: number;
2679
+ receivedQuantity?: number;
2680
+ }
2681
+ /** One basic after-sales case (native return, exchange or claim). */
2682
+ interface CustomerOrderDetailCase {
2683
+ id: string;
2684
+ type: CustomerOrderDetailCaseType;
2685
+ status: CustomerOrderDetailCaseStatus;
2686
+ createdAt: string;
2687
+ reason?: string;
2688
+ lines: CustomerOrderDetailCaseLine[];
2689
+ refund?: Money;
2690
+ differenceDue?: Money;
2691
+ replacement?: {
2692
+ name: string;
2693
+ sku: string;
2694
+ quantity: number;
2695
+ }[];
2696
+ shipment?: {
2697
+ carrier?: string;
2698
+ trackingNumber?: string;
2699
+ trackingUrl?: string;
2700
+ status?: string;
2701
+ };
2702
+ }
2703
+ type CustomerOrderDetailDocumentKind = 'invoice' | 'receipt' | 'payment-proof' | 'credit-note' | 'shipping' | 'business';
2704
+ /** One document the store can actually issue. Absent when none exists. */
2705
+ interface CustomerOrderDetailDocument {
2706
+ id: string;
2707
+ kind: CustomerOrderDetailDocumentKind;
2708
+ label: string;
2709
+ issuedAt?: string;
2710
+ available: boolean;
2711
+ }
2712
+ type CustomerOrderDetailInvoiceStatus = 'not_issued' | 'pending' | 'issued' | 'overdue';
2713
+ type CustomerOrderDetailApprovalStatus = 'pending' | 'approved' | 'rejected';
2714
+ /** B2B extension. Not produced by the current backend. */
2715
+ interface CustomerOrderDetailBusiness {
2716
+ company: string;
2717
+ buyer: string;
2718
+ branch?: string;
2719
+ purchaseOrder?: string;
2720
+ internalReference?: string;
2721
+ costCenter?: string;
2722
+ paymentTerms?: string;
2723
+ creditLimit?: Money;
2724
+ creditUsed?: Money;
2725
+ dueAt?: string;
2726
+ invoiceStatus?: CustomerOrderDetailInvoiceStatus;
2727
+ approval?: {
2728
+ status: CustomerOrderDetailApprovalStatus;
2729
+ by?: string;
2730
+ at?: string;
2731
+ };
2732
+ }
2733
+ type CustomerOrderDetailRevisionKind = 'item-added' | 'item-removed' | 'quantity' | 'price' | 'shipping' | 'tax' | 'cancel';
2734
+ /** Post-creation revision extension. Not produced by the current backend. */
2735
+ interface CustomerOrderDetailRevision {
2736
+ id: string;
2737
+ at: string;
2738
+ kind: CustomerOrderDetailRevisionKind;
2739
+ summary: string;
2740
+ delta?: Money;
2741
+ }
2742
+ /** Actions the backend can prove from the order state (shared with history). */
2743
+ type CustomerOrderDetailAction = CustomerOrderAction;
2744
+ /**
2745
+ * The authoritative economic summary of the detail.
2746
+ *
2747
+ * `paid`, `refunded`, `due` and `credit` are computed by the backend from the
2748
+ * payment collections; no consumer recalculates them from transactions.
2749
+ */
2750
+ interface CustomerOrderDetailTotals {
2751
+ itemsSubtotal: Money;
2752
+ itemDiscounts: Money;
2753
+ orderDiscounts: Money;
2754
+ shippingSubtotal: Money;
2755
+ shippingDiscounts: Money;
2756
+ tax: Money;
2757
+ adjustments: Money;
2758
+ total: Money;
2759
+ authorized?: Money;
2760
+ paid: Money;
2761
+ refunded: Money;
2762
+ due: Money;
2763
+ credit?: Money;
2764
+ }
2765
+ /** One authenticated customer order detail. */
2766
+ interface CustomerOrderDetailOrder {
2767
+ id: string;
2768
+ orderNumber: string;
2769
+ status: OrderStatus;
2770
+ paymentStatus: CustomerOrderDetailPaymentStatus;
2771
+ fulfillmentStatus: CustomerOrderDetailFulfillmentStatus;
2772
+ currencyCode: string;
2773
+ salesChannelId?: string;
2774
+ createdAt: string;
2775
+ updatedAt: string;
2776
+ completedAt?: string;
2777
+ cancelledAt?: string;
2778
+ shippingAddress?: Address;
2779
+ billingAddress?: Address;
2780
+ lines: CustomerOrderDetailLine[];
2781
+ groups: CustomerOrderDetailGroup[];
2782
+ fulfillments: CustomerOrderDetailFulfillment[];
2783
+ promotions: CustomerOrderDetailPromotion[];
2784
+ adjustments: CustomerOrderDetailAdjustment[];
2785
+ payments: OrderPayment[];
2786
+ transactions: CustomerOrderDetailTransaction[];
2787
+ cases: CustomerOrderDetailCase[];
2788
+ documents: CustomerOrderDetailDocument[];
2789
+ business?: CustomerOrderDetailBusiness;
2790
+ revisions: CustomerOrderDetailRevision[];
2791
+ totals: CustomerOrderDetailTotals;
2792
+ availableActions: CustomerOrderDetailAction[];
2793
+ }
2794
+ /**
2795
+ * The detail read snapshot: one order plus truthful per-section issues and a
2796
+ * non-blocking partial-load warning. Absent `issues` means every section is
2797
+ * valid; an affected section must not invalidate the rest of the order.
2798
+ */
2799
+ interface CustomerOrderDetailSnapshot {
2800
+ order: CustomerOrderDetailOrder;
2801
+ issues?: Partial<Record<CustomerOrderDetailSection, CustomerOrderDetailIssue>>;
2802
+ warning?: boolean;
2803
+ }
2804
+ /** Alias kept for the backend/OpenSpec contract name. */
2805
+ type CustomerOrderDetail = CustomerOrderDetailSnapshot;
2239
2806
 
2240
2807
  /**
2241
2808
  * @thorprovider/types — Supported Providers (type-only)
@@ -2814,6 +3381,23 @@ interface AuthProvider {
2814
3381
  * @param metadata - Optional metadata for provider-specific requirements
2815
3382
  */
2816
3383
  resetPassword(token: string, password: string, metadata?: Record<string, unknown>): Promise<void>;
3384
+ /**
3385
+ * Request a verification code for the authenticated customer's email.
3386
+ * Optional: providers that cannot verify omit it, and their
3387
+ * `BackendCapabilities.verifyEmail` stays false.
3388
+ */
3389
+ requestEmailVerification?(): Promise<void>;
3390
+ /**
3391
+ * Verify the authenticated customer's email with a provider-issued code.
3392
+ * Optional, paired with `requestEmailVerification`.
3393
+ */
3394
+ verifyEmail?(code: string): Promise<void>;
3395
+ /**
3396
+ * Check a reset code without consuming it, so a multi-step form can keep the
3397
+ * shopper on the code step. Optional: providers without it validate the code
3398
+ * only when `resetPassword` runs.
3399
+ */
3400
+ verifyPasswordResetCode?(code: string): Promise<boolean>;
2817
3401
  /**
2818
3402
  * Get current authenticated customer
2819
3403
  * @returns Customer object or null if not authenticated
@@ -2847,6 +3431,14 @@ interface AuthProvider {
2847
3431
  * @returns List of customer addresses
2848
3432
  */
2849
3433
  getAddresses(): Promise<Address[]>;
3434
+ /**
3435
+ * Read one server-filtered page of the customer's address book.
3436
+ *
3437
+ * Optional so existing providers keep compiling; a provider that cannot
3438
+ * serve the query must omit it rather than return a partial or locally
3439
+ * filtered page.
3440
+ */
3441
+ listAddresses?(query: AddressListQuery): Promise<AddressListResult>;
2850
3442
  /**
2851
3443
  * Create new address for current customer
2852
3444
  * @param data - Address data
@@ -3210,6 +3802,8 @@ interface BackendCapabilities {
3210
3802
  changePasswordDirect: boolean;
3211
3803
  /** Can request password reset via email */
3212
3804
  changePasswordViaEmail: boolean;
3805
+ /** Can verify a customer's email address (code or link) */
3806
+ verifyEmail: boolean;
3213
3807
  /** Can delete customer account (self-service) */
3214
3808
  deleteAccount: boolean;
3215
3809
  /**
@@ -3806,6 +4400,27 @@ interface CommerceProvider {
3806
4400
  * @throws {ProviderAPIError} If the backend fails or returns an invalid projection
3807
4401
  */
3808
4402
  getCheckoutLineProjection?(cartId: string): Promise<CheckoutLineProjection>;
4403
+ /**
4404
+ * Read the backend's own capability flags, awaited (OPTIONAL).
4405
+ *
4406
+ * The synchronous `capabilities` property is a snapshot that returns static
4407
+ * defaults until a provider's discovery fetch resolves, and those defaults are
4408
+ * not authoritative. A caller that gates behaviour on a flag (guest checkout,
4409
+ * for example) must use this method so an unread or failed flag can be treated
4410
+ * as off.
4411
+ */
4412
+ getCapabilities?(): Promise<BackendCapabilities>;
4413
+ /**
4414
+ * Request the transfer of a guest order to the authenticated customer
4415
+ * (OPTIONAL). The backend emails an acceptance token; nothing moves until it
4416
+ * is accepted.
4417
+ */
4418
+ requestOrderClaim?(orderId: string): Promise<CheckoutOrderClaimRequestResult>;
4419
+ /**
4420
+ * Accept a previously requested guest-order transfer with its email token
4421
+ * (OPTIONAL). Requires no customer session.
4422
+ */
4423
+ acceptOrderClaim?(orderId: string, token: string): Promise<CheckoutOrderClaimAcceptResult>;
3809
4424
  /**
3810
4425
  * Initiate payment session with provider
3811
4426
  *
@@ -3995,22 +4610,39 @@ interface CommerceProvider {
3995
4610
  */
3996
4611
  customerOrdersPage?(options: GetCustomerOrdersPageOptions): Promise<CustomerOrdersPage>;
3997
4612
  /**
3998
- * Resolve ONE order for the authenticated customer (OPTIONAL, additive).
4613
+ * Resolve ONE order for the authenticated customer (OPTIONAL, legacy/mock).
3999
4614
  *
4000
4615
  * Ownership is enforced by the provider: an order that belongs to another
4001
4616
  * customer, another channel, or no customer resolves as `undefined` — the
4002
- * caller must not learn whether it exists. A provider that does not implement
4003
- * this method (a backend without a customer detail endpoint) fails closed at
4004
- * the runtime boundary; the storefront never derives the detail from the
4005
- * order-list payload.
4006
- *
4007
- * `options.salesChannelId` is the store's explicitly configured channel. A
4008
- * provider that can scope by channel MUST reject a foreign order as
4009
- * `undefined`.
4617
+ * caller must not learn whether it exists.
4010
4618
  */
4011
4619
  customerOrderDetail?(orderId: string, options?: {
4012
4620
  salesChannelId?: string;
4013
4621
  }): Promise<Order | undefined>;
4622
+ /**
4623
+ * Read one server-side Order History page (OPTIONAL, additive).
4624
+ *
4625
+ * The backend applies search, filters, date, amount, sort and pagination to
4626
+ * the authenticated customer + sales channel set and returns the real total,
4627
+ * `totalAll`, `pageCount` and optional quick-filter counts. Native payment and
4628
+ * fulfillment statuses are preserved; the host maps them to the block
4629
+ * contract.
4630
+ */
4631
+ customerOrderHistory?(options: CustomerOrderHistoryOptions): Promise<CustomerOrderHistoryPage>;
4632
+ /**
4633
+ * Read one authenticated customer's order detail snapshot (OPTIONAL).
4634
+ *
4635
+ * The backend enforces customer ownership and sales-channel scope before
4636
+ * returning any data. A foreign, unknown or other-channel order must fail
4637
+ * closed; the provider never receives a partial payload for those cases.
4638
+ *
4639
+ * The snapshot carries a per-section `issues` map and a non-blocking
4640
+ * `warning` for a partial load. A provider without this method (for example
4641
+ * the mock data source) fails closed at the runtime boundary.
4642
+ */
4643
+ customerOrderDetailSnapshot?(orderId: string, options?: {
4644
+ signal?: AbortSignal;
4645
+ }): Promise<CustomerOrderDetailSnapshot>;
4014
4646
  /**
4015
4647
  * Get available payment methods
4016
4648
  *
@@ -7516,4 +8148,4 @@ type UpdateBusinessPolicyResponse = {
7516
8148
  business_policy: string;
7517
8149
  };
7518
8150
 
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 };
8151
+ export type { AccountDropdownConfig, AccountMenuItem, AcknowledgeCostPriceChangesResponse, ActiveFilter, AddOrderEditItemBody, AddOrderEditItemResponse, Address, AddressFilter, AddressListQuery, AddressListResult, AddressSort, 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, CheckoutOrderClaimAcceptResult, CheckoutOrderClaimRequestResult, 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, CustomerOrderAction, CustomerOrderDetail, CustomerOrderDetailAction, CustomerOrderDetailAdjustment, CustomerOrderDetailAdjustmentDirection, CustomerOrderDetailAdjustmentScope, CustomerOrderDetailAdjustmentSource, CustomerOrderDetailAllocation, CustomerOrderDetailApprovalStatus, CustomerOrderDetailAttachment, CustomerOrderDetailAttribute, CustomerOrderDetailAttributeKind, CustomerOrderDetailBusiness, CustomerOrderDetailCase, CustomerOrderDetailCaseLine, CustomerOrderDetailCaseStatus, CustomerOrderDetailCaseType, CustomerOrderDetailDocument, CustomerOrderDetailDocumentKind, CustomerOrderDetailFulfillment, CustomerOrderDetailFulfillmentItemStatus, CustomerOrderDetailFulfillmentStatus, CustomerOrderDetailGroup, CustomerOrderDetailInvoiceStatus, CustomerOrderDetailIssue, CustomerOrderDetailLine, CustomerOrderDetailLinePrice, CustomerOrderDetailOrder, CustomerOrderDetailPackage, CustomerOrderDetailPaymentStatus, CustomerOrderDetailPickup, CustomerOrderDetailPickupStatus, CustomerOrderDetailPriceKind, CustomerOrderDetailProductKind, CustomerOrderDetailPromotion, CustomerOrderDetailPromotionApplication, CustomerOrderDetailPromotionNominal, CustomerOrderDetailPromotionScope, CustomerOrderDetailRevision, CustomerOrderDetailRevisionKind, CustomerOrderDetailSection, CustomerOrderDetailShippingMethod, CustomerOrderDetailSnapshot, CustomerOrderDetailTaxLine, CustomerOrderDetailTotals, CustomerOrderDetailTransaction, CustomerOrderDetailTransactionKind, CustomerOrderDetailTransactionMethod, CustomerOrderDetailTransactionStatus, CustomerOrderFulfillmentItemStatus, CustomerOrderFulfillmentStatus, CustomerOrderHistoryCommercialFilter, CustomerOrderHistoryCommercialStatus, CustomerOrderHistoryDatePreset, CustomerOrderHistoryDeliveryMode, CustomerOrderHistoryFilters, CustomerOrderHistoryFulfilmentFilter, CustomerOrderHistoryOptions, CustomerOrderHistoryPage, CustomerOrderHistoryPaymentFilter, CustomerOrderHistoryQuery, CustomerOrderHistoryQuick, CustomerOrderHistoryRecord, CustomerOrderHistoryRefundFilter, CustomerOrderHistoryReturnStatus, CustomerOrderHistoryShipment, CustomerOrderHistorySort, CustomerOrderPaymentStatus, 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, ProductAttachment, ProductAttribute, ProductAttributeGroup, ProductCategory, ProductHighlight, 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 };