@thorprovider/types 5.7.2 → 5.7.3

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
@@ -4582,6 +4582,12 @@ interface DropshipperShippingMethod {
4582
4582
  products?: string[];
4583
4583
  shipping_profile_id?: string;
4584
4584
  stock_location_id?: string;
4585
+ /** Creation date of the shipping method (for ordering in the breakdown). */
4586
+ created_at?: string | null;
4587
+ /** The order-shipping link; return_id set when the method belongs to a return. */
4588
+ detail?: {
4589
+ return_id?: string | null;
4590
+ } | null;
4585
4591
  }
4586
4592
  /** An outbound item added to the order by an exchange or a claim */
4587
4593
  interface DropshipperOrderChangeItem {
@@ -4617,6 +4623,8 @@ interface DropshipperOrderClaim {
4617
4623
  refund_amount: number;
4618
4624
  created_at: string;
4619
4625
  canceled_at: string | null;
4626
+ /** Return with the inbound items being claimed, when the claim returns product */
4627
+ return_id?: string | null;
4620
4628
  /** Outbound items added by the claim (replacement items) */
4621
4629
  additional_items: DropshipperOrderChangeItem[];
4622
4630
  /** Inbound items being claimed */
@@ -4658,11 +4666,11 @@ interface DropshipperOrderFulfillment {
4658
4666
  *
4659
4667
  * All monetary fields across the payload (order totals, items, shipping
4660
4668
  * methods, payment collections, returns, exchanges/claims, transactions,
4661
- * financial summary, timeline `amount`) are expressed in MINOR units of the
4662
- * order's `currency_code` (e.g. cents for two-decimal currencies; the raw
4663
- * integer for zero-decimal currencies such as JPY). Consumers must NOT apply
4664
- * a fixed `/100`; divide by `10^minorDigits(currencyCode)` only at the
4665
- * presentation boundary.
4669
+ * financial summary, timeline `amount`) are expressed in MAJOR units of the
4670
+ * order's `currency_code` (e.g. USD 180 for `180`). Consumers render the
4671
+ * values directly with their currency formatter and must NOT apply any
4672
+ * `/100` or `10^minorDigits` conversion. (The catalog/pricing layer keeps
4673
+ * its own scale — that exception does not apply to this contract.)
4666
4674
  */
4667
4675
  interface DropshipperOrderDetail {
4668
4676
  id: string;
package/dist/index.d.ts CHANGED
@@ -4582,6 +4582,12 @@ interface DropshipperShippingMethod {
4582
4582
  products?: string[];
4583
4583
  shipping_profile_id?: string;
4584
4584
  stock_location_id?: string;
4585
+ /** Creation date of the shipping method (for ordering in the breakdown). */
4586
+ created_at?: string | null;
4587
+ /** The order-shipping link; return_id set when the method belongs to a return. */
4588
+ detail?: {
4589
+ return_id?: string | null;
4590
+ } | null;
4585
4591
  }
4586
4592
  /** An outbound item added to the order by an exchange or a claim */
4587
4593
  interface DropshipperOrderChangeItem {
@@ -4617,6 +4623,8 @@ interface DropshipperOrderClaim {
4617
4623
  refund_amount: number;
4618
4624
  created_at: string;
4619
4625
  canceled_at: string | null;
4626
+ /** Return with the inbound items being claimed, when the claim returns product */
4627
+ return_id?: string | null;
4620
4628
  /** Outbound items added by the claim (replacement items) */
4621
4629
  additional_items: DropshipperOrderChangeItem[];
4622
4630
  /** Inbound items being claimed */
@@ -4658,11 +4666,11 @@ interface DropshipperOrderFulfillment {
4658
4666
  *
4659
4667
  * All monetary fields across the payload (order totals, items, shipping
4660
4668
  * methods, payment collections, returns, exchanges/claims, transactions,
4661
- * financial summary, timeline `amount`) are expressed in MINOR units of the
4662
- * order's `currency_code` (e.g. cents for two-decimal currencies; the raw
4663
- * integer for zero-decimal currencies such as JPY). Consumers must NOT apply
4664
- * a fixed `/100`; divide by `10^minorDigits(currencyCode)` only at the
4665
- * presentation boundary.
4669
+ * financial summary, timeline `amount`) are expressed in MAJOR units of the
4670
+ * order's `currency_code` (e.g. USD 180 for `180`). Consumers render the
4671
+ * values directly with their currency formatter and must NOT apply any
4672
+ * `/100` or `10^minorDigits` conversion. (The catalog/pricing layer keeps
4673
+ * its own scale — that exception does not apply to this contract.)
4666
4674
  */
4667
4675
  interface DropshipperOrderDetail {
4668
4676
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/types",
3
- "version": "5.7.2",
3
+ "version": "5.7.3",
4
4
  "description": "Shared TypeScript types for Thor Commerce ecosystem - Framework-agnostic type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -810,6 +810,10 @@ export interface DropshipperShippingMethod {
810
810
  products?: string[];
811
811
  shipping_profile_id?: string;
812
812
  stock_location_id?: string;
813
+ /** Creation date of the shipping method (for ordering in the breakdown). */
814
+ created_at?: string | null;
815
+ /** The order-shipping link; return_id set when the method belongs to a return. */
816
+ detail?: { return_id?: string | null } | null;
813
817
  }
814
818
 
815
819
  /** An outbound item added to the order by an exchange or a claim */
@@ -849,6 +853,8 @@ export interface DropshipperOrderClaim {
849
853
  refund_amount: number;
850
854
  created_at: string;
851
855
  canceled_at: string | null;
856
+ /** Return with the inbound items being claimed, when the claim returns product */
857
+ return_id?: string | null;
852
858
  /** Outbound items added by the claim (replacement items) */
853
859
  additional_items: DropshipperOrderChangeItem[];
854
860
  /** Inbound items being claimed */
@@ -894,11 +900,11 @@ export interface DropshipperOrderFulfillment {
894
900
  *
895
901
  * All monetary fields across the payload (order totals, items, shipping
896
902
  * methods, payment collections, returns, exchanges/claims, transactions,
897
- * financial summary, timeline `amount`) are expressed in MINOR units of the
898
- * order's `currency_code` (e.g. cents for two-decimal currencies; the raw
899
- * integer for zero-decimal currencies such as JPY). Consumers must NOT apply
900
- * a fixed `/100`; divide by `10^minorDigits(currencyCode)` only at the
901
- * presentation boundary.
903
+ * financial summary, timeline `amount`) are expressed in MAJOR units of the
904
+ * order's `currency_code` (e.g. USD 180 for `180`). Consumers render the
905
+ * values directly with their currency formatter and must NOT apply any
906
+ * `/100` or `10^minorDigits` conversion. (The catalog/pricing layer keeps
907
+ * its own scale — that exception does not apply to this contract.)
902
908
  */
903
909
  export interface DropshipperOrderDetail {
904
910
  id: string;