@thorprovider/types 5.7.4 → 5.7.6

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
@@ -4414,6 +4414,10 @@ interface DropshipperOrderItem {
4414
4414
  */
4415
4415
  interface DropshipperOrderTotals {
4416
4416
  subtotal: number;
4417
+ /** Item subtotal (line items only, without shipping). */
4418
+ item_subtotal: number;
4419
+ /** Shipping subtotal aggregated across all shipping methods. */
4420
+ shipping_subtotal: number;
4417
4421
  tax_total: number;
4418
4422
  shipping_total: number;
4419
4423
  discount_total: number;
@@ -4552,6 +4556,9 @@ interface DropshipperFinancialSummary {
4552
4556
  original_order_total: number;
4553
4557
  transaction_total: number;
4554
4558
  accounting_total: number;
4559
+ /** Total credit-line amount applied to the order (gift cards, store
4560
+ * credit, payment collections), in major units of `currency_code`. */
4561
+ credit_line_total: number;
4555
4562
  /** Valores reconciliados por el backend: incorpora las capturas de Medusa
4556
4563
  * (`paid_total`) y los cobros confirmados por el dropshipper fuera del
4557
4564
  * backend (`metadata.paid_amount`). `paid_amount` nunca supera `paid_total`,
@@ -4669,6 +4676,15 @@ interface DropshipperOrderFulfillment {
4669
4676
  items: DropshipperFulfillmentItem[];
4670
4677
  labels: DropshipperFulfillmentLabel[];
4671
4678
  }
4679
+ /** A credit line applied to an order (read-only; generated from a gift card,
4680
+ * store credit or payment collection). `amount` is in major units of
4681
+ * `currency_code`. */
4682
+ interface DropshipperCreditLine {
4683
+ id: string;
4684
+ amount: number;
4685
+ reference: string | null;
4686
+ reference_id: string | null;
4687
+ }
4672
4688
  /**
4673
4689
  * Full order detail as returned by GET /admin/thor/dropshipper/orders/:id.
4674
4690
  *
@@ -4708,6 +4724,8 @@ interface DropshipperOrderDetail {
4708
4724
  fulfillments?: DropshipperOrderFulfillment[];
4709
4725
  transactions: DropshipperTransaction[];
4710
4726
  financial_summary: DropshipperFinancialSummary;
4727
+ /** Credit lines applied to the order (read-only; `[]` when none). */
4728
+ credit_lines?: DropshipperCreditLine[];
4711
4729
  timeline: DropshipperOrderTimelineEvent[];
4712
4730
  payment_collected_by: 'dropshipper' | 'provider' | null;
4713
4731
  payment_method?: {
package/dist/index.d.ts CHANGED
@@ -4414,6 +4414,10 @@ interface DropshipperOrderItem {
4414
4414
  */
4415
4415
  interface DropshipperOrderTotals {
4416
4416
  subtotal: number;
4417
+ /** Item subtotal (line items only, without shipping). */
4418
+ item_subtotal: number;
4419
+ /** Shipping subtotal aggregated across all shipping methods. */
4420
+ shipping_subtotal: number;
4417
4421
  tax_total: number;
4418
4422
  shipping_total: number;
4419
4423
  discount_total: number;
@@ -4552,6 +4556,9 @@ interface DropshipperFinancialSummary {
4552
4556
  original_order_total: number;
4553
4557
  transaction_total: number;
4554
4558
  accounting_total: number;
4559
+ /** Total credit-line amount applied to the order (gift cards, store
4560
+ * credit, payment collections), in major units of `currency_code`. */
4561
+ credit_line_total: number;
4555
4562
  /** Valores reconciliados por el backend: incorpora las capturas de Medusa
4556
4563
  * (`paid_total`) y los cobros confirmados por el dropshipper fuera del
4557
4564
  * backend (`metadata.paid_amount`). `paid_amount` nunca supera `paid_total`,
@@ -4669,6 +4676,15 @@ interface DropshipperOrderFulfillment {
4669
4676
  items: DropshipperFulfillmentItem[];
4670
4677
  labels: DropshipperFulfillmentLabel[];
4671
4678
  }
4679
+ /** A credit line applied to an order (read-only; generated from a gift card,
4680
+ * store credit or payment collection). `amount` is in major units of
4681
+ * `currency_code`. */
4682
+ interface DropshipperCreditLine {
4683
+ id: string;
4684
+ amount: number;
4685
+ reference: string | null;
4686
+ reference_id: string | null;
4687
+ }
4672
4688
  /**
4673
4689
  * Full order detail as returned by GET /admin/thor/dropshipper/orders/:id.
4674
4690
  *
@@ -4708,6 +4724,8 @@ interface DropshipperOrderDetail {
4708
4724
  fulfillments?: DropshipperOrderFulfillment[];
4709
4725
  transactions: DropshipperTransaction[];
4710
4726
  financial_summary: DropshipperFinancialSummary;
4727
+ /** Credit lines applied to the order (read-only; `[]` when none). */
4728
+ credit_lines?: DropshipperCreditLine[];
4711
4729
  timeline: DropshipperOrderTimelineEvent[];
4712
4730
  payment_collected_by: 'dropshipper' | 'provider' | null;
4713
4731
  payment_method?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/types",
3
- "version": "5.7.4",
3
+ "version": "5.7.6",
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",
@@ -629,6 +629,10 @@ export interface DropshipperOrderItem {
629
629
  */
630
630
  export interface DropshipperOrderTotals {
631
631
  subtotal: number;
632
+ /** Item subtotal (line items only, without shipping). */
633
+ item_subtotal: number;
634
+ /** Shipping subtotal aggregated across all shipping methods. */
635
+ shipping_subtotal: number;
632
636
  tax_total: number;
633
637
  shipping_total: number;
634
638
  discount_total: number;
@@ -778,6 +782,9 @@ export interface DropshipperFinancialSummary {
778
782
  original_order_total: number;
779
783
  transaction_total: number;
780
784
  accounting_total: number;
785
+ /** Total credit-line amount applied to the order (gift cards, store
786
+ * credit, payment collections), in major units of `currency_code`. */
787
+ credit_line_total: number;
781
788
  /** Valores reconciliados por el backend: incorpora las capturas de Medusa
782
789
  * (`paid_total`) y los cobros confirmados por el dropshipper fuera del
783
790
  * backend (`metadata.paid_amount`). `paid_amount` nunca supera `paid_total`,
@@ -903,6 +910,16 @@ export interface DropshipperOrderFulfillment {
903
910
  labels: DropshipperFulfillmentLabel[];
904
911
  }
905
912
 
913
+ /** A credit line applied to an order (read-only; generated from a gift card,
914
+ * store credit or payment collection). `amount` is in major units of
915
+ * `currency_code`. */
916
+ export interface DropshipperCreditLine {
917
+ id: string;
918
+ amount: number;
919
+ reference: string | null;
920
+ reference_id: string | null;
921
+ }
922
+
906
923
  /**
907
924
  * Full order detail as returned by GET /admin/thor/dropshipper/orders/:id.
908
925
  *
@@ -940,6 +957,8 @@ export interface DropshipperOrderDetail {
940
957
  fulfillments?: DropshipperOrderFulfillment[];
941
958
  transactions: DropshipperTransaction[];
942
959
  financial_summary: DropshipperFinancialSummary;
960
+ /** Credit lines applied to the order (read-only; `[]` when none). */
961
+ credit_lines?: DropshipperCreditLine[];
943
962
  timeline: DropshipperOrderTimelineEvent[];
944
963
  payment_collected_by: 'dropshipper' | 'provider' | null;
945
964
  payment_method?: { id: string; name: string } | null;