@thorprovider/types 5.7.2 → 5.7.4

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
@@ -4552,6 +4552,14 @@ interface DropshipperFinancialSummary {
4552
4552
  original_order_total: number;
4553
4553
  transaction_total: number;
4554
4554
  accounting_total: number;
4555
+ /** Valores reconciliados por el backend: incorpora las capturas de Medusa
4556
+ * (`paid_total`) y los cobros confirmados por el dropshipper fuera del
4557
+ * backend (`metadata.paid_amount`). `paid_amount` nunca supera `paid_total`,
4558
+ * por lo que `effective.paid_total = max(paid_total, paid_amount)`. */
4559
+ effective: {
4560
+ paid_total: number;
4561
+ pending_difference: number;
4562
+ };
4555
4563
  }
4556
4564
  /** Pickup location */
4557
4565
  interface DropshipperPickupLocation {
@@ -4582,6 +4590,12 @@ interface DropshipperShippingMethod {
4582
4590
  products?: string[];
4583
4591
  shipping_profile_id?: string;
4584
4592
  stock_location_id?: string;
4593
+ /** Creation date of the shipping method (for ordering in the breakdown). */
4594
+ created_at?: string | null;
4595
+ /** The order-shipping link; return_id set when the method belongs to a return. */
4596
+ detail?: {
4597
+ return_id?: string | null;
4598
+ } | null;
4585
4599
  }
4586
4600
  /** An outbound item added to the order by an exchange or a claim */
4587
4601
  interface DropshipperOrderChangeItem {
@@ -4617,6 +4631,8 @@ interface DropshipperOrderClaim {
4617
4631
  refund_amount: number;
4618
4632
  created_at: string;
4619
4633
  canceled_at: string | null;
4634
+ /** Return with the inbound items being claimed, when the claim returns product */
4635
+ return_id?: string | null;
4620
4636
  /** Outbound items added by the claim (replacement items) */
4621
4637
  additional_items: DropshipperOrderChangeItem[];
4622
4638
  /** Inbound items being claimed */
@@ -4658,11 +4674,11 @@ interface DropshipperOrderFulfillment {
4658
4674
  *
4659
4675
  * All monetary fields across the payload (order totals, items, shipping
4660
4676
  * 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.
4677
+ * financial summary, timeline `amount`) are expressed in MAJOR units of the
4678
+ * order's `currency_code` (e.g. USD 180 for `180`). Consumers render the
4679
+ * values directly with their currency formatter and must NOT apply any
4680
+ * `/100` or `10^minorDigits` conversion. (The catalog/pricing layer keeps
4681
+ * its own scale — that exception does not apply to this contract.)
4666
4682
  */
4667
4683
  interface DropshipperOrderDetail {
4668
4684
  id: string;
package/dist/index.d.ts CHANGED
@@ -4552,6 +4552,14 @@ interface DropshipperFinancialSummary {
4552
4552
  original_order_total: number;
4553
4553
  transaction_total: number;
4554
4554
  accounting_total: number;
4555
+ /** Valores reconciliados por el backend: incorpora las capturas de Medusa
4556
+ * (`paid_total`) y los cobros confirmados por el dropshipper fuera del
4557
+ * backend (`metadata.paid_amount`). `paid_amount` nunca supera `paid_total`,
4558
+ * por lo que `effective.paid_total = max(paid_total, paid_amount)`. */
4559
+ effective: {
4560
+ paid_total: number;
4561
+ pending_difference: number;
4562
+ };
4555
4563
  }
4556
4564
  /** Pickup location */
4557
4565
  interface DropshipperPickupLocation {
@@ -4582,6 +4590,12 @@ interface DropshipperShippingMethod {
4582
4590
  products?: string[];
4583
4591
  shipping_profile_id?: string;
4584
4592
  stock_location_id?: string;
4593
+ /** Creation date of the shipping method (for ordering in the breakdown). */
4594
+ created_at?: string | null;
4595
+ /** The order-shipping link; return_id set when the method belongs to a return. */
4596
+ detail?: {
4597
+ return_id?: string | null;
4598
+ } | null;
4585
4599
  }
4586
4600
  /** An outbound item added to the order by an exchange or a claim */
4587
4601
  interface DropshipperOrderChangeItem {
@@ -4617,6 +4631,8 @@ interface DropshipperOrderClaim {
4617
4631
  refund_amount: number;
4618
4632
  created_at: string;
4619
4633
  canceled_at: string | null;
4634
+ /** Return with the inbound items being claimed, when the claim returns product */
4635
+ return_id?: string | null;
4620
4636
  /** Outbound items added by the claim (replacement items) */
4621
4637
  additional_items: DropshipperOrderChangeItem[];
4622
4638
  /** Inbound items being claimed */
@@ -4658,11 +4674,11 @@ interface DropshipperOrderFulfillment {
4658
4674
  *
4659
4675
  * All monetary fields across the payload (order totals, items, shipping
4660
4676
  * 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.
4677
+ * financial summary, timeline `amount`) are expressed in MAJOR units of the
4678
+ * order's `currency_code` (e.g. USD 180 for `180`). Consumers render the
4679
+ * values directly with their currency formatter and must NOT apply any
4680
+ * `/100` or `10^minorDigits` conversion. (The catalog/pricing layer keeps
4681
+ * its own scale — that exception does not apply to this contract.)
4666
4682
  */
4667
4683
  interface DropshipperOrderDetail {
4668
4684
  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.4",
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",
@@ -778,6 +778,14 @@ export interface DropshipperFinancialSummary {
778
778
  original_order_total: number;
779
779
  transaction_total: number;
780
780
  accounting_total: number;
781
+ /** Valores reconciliados por el backend: incorpora las capturas de Medusa
782
+ * (`paid_total`) y los cobros confirmados por el dropshipper fuera del
783
+ * backend (`metadata.paid_amount`). `paid_amount` nunca supera `paid_total`,
784
+ * por lo que `effective.paid_total = max(paid_total, paid_amount)`. */
785
+ effective: {
786
+ paid_total: number;
787
+ pending_difference: number;
788
+ };
781
789
  }
782
790
 
783
791
  /** Pickup location */
@@ -810,6 +818,10 @@ export interface DropshipperShippingMethod {
810
818
  products?: string[];
811
819
  shipping_profile_id?: string;
812
820
  stock_location_id?: string;
821
+ /** Creation date of the shipping method (for ordering in the breakdown). */
822
+ created_at?: string | null;
823
+ /** The order-shipping link; return_id set when the method belongs to a return. */
824
+ detail?: { return_id?: string | null } | null;
813
825
  }
814
826
 
815
827
  /** An outbound item added to the order by an exchange or a claim */
@@ -849,6 +861,8 @@ export interface DropshipperOrderClaim {
849
861
  refund_amount: number;
850
862
  created_at: string;
851
863
  canceled_at: string | null;
864
+ /** Return with the inbound items being claimed, when the claim returns product */
865
+ return_id?: string | null;
852
866
  /** Outbound items added by the claim (replacement items) */
853
867
  additional_items: DropshipperOrderChangeItem[];
854
868
  /** Inbound items being claimed */
@@ -894,11 +908,11 @@ export interface DropshipperOrderFulfillment {
894
908
  *
895
909
  * All monetary fields across the payload (order totals, items, shipping
896
910
  * 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.
911
+ * financial summary, timeline `amount`) are expressed in MAJOR units of the
912
+ * order's `currency_code` (e.g. USD 180 for `180`). Consumers render the
913
+ * values directly with their currency formatter and must NOT apply any
914
+ * `/100` or `10^minorDigits` conversion. (The catalog/pricing layer keeps
915
+ * its own scale — that exception does not apply to this contract.)
902
916
  */
903
917
  export interface DropshipperOrderDetail {
904
918
  id: string;