@thorprovider/types 5.7.5 → 5.7.7

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
@@ -4556,6 +4556,9 @@ interface DropshipperFinancialSummary {
4556
4556
  original_order_total: number;
4557
4557
  transaction_total: number;
4558
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;
4559
4562
  /** Valores reconciliados por el backend: incorpora las capturas de Medusa
4560
4563
  * (`paid_total`) y los cobros confirmados por el dropshipper fuera del
4561
4564
  * backend (`metadata.paid_amount`). `paid_amount` nunca supera `paid_total`,
@@ -4587,6 +4590,8 @@ interface DropshipperShippingMethod {
4587
4590
  total: number;
4588
4591
  tax_total: number;
4589
4592
  discount_total: number;
4593
+ /** Discount adjustments applied to this shipping method (read-only; [] when none). */
4594
+ adjustments?: DropshipperItemAdjustment[];
4590
4595
  shipping_option_id: string | null;
4591
4596
  fulfillment_set_type: string | null;
4592
4597
  pickup_location: DropshipperPickupLocation | null;
@@ -4673,6 +4678,15 @@ interface DropshipperOrderFulfillment {
4673
4678
  items: DropshipperFulfillmentItem[];
4674
4679
  labels: DropshipperFulfillmentLabel[];
4675
4680
  }
4681
+ /** A credit line applied to an order (read-only; generated from a gift card,
4682
+ * store credit or payment collection). `amount` is in major units of
4683
+ * `currency_code`. */
4684
+ interface DropshipperCreditLine {
4685
+ id: string;
4686
+ amount: number;
4687
+ reference: string | null;
4688
+ reference_id: string | null;
4689
+ }
4676
4690
  /**
4677
4691
  * Full order detail as returned by GET /admin/thor/dropshipper/orders/:id.
4678
4692
  *
@@ -4712,6 +4726,8 @@ interface DropshipperOrderDetail {
4712
4726
  fulfillments?: DropshipperOrderFulfillment[];
4713
4727
  transactions: DropshipperTransaction[];
4714
4728
  financial_summary: DropshipperFinancialSummary;
4729
+ /** Credit lines applied to the order (read-only; `[]` when none). */
4730
+ credit_lines?: DropshipperCreditLine[];
4715
4731
  timeline: DropshipperOrderTimelineEvent[];
4716
4732
  payment_collected_by: 'dropshipper' | 'provider' | null;
4717
4733
  payment_method?: {
package/dist/index.d.ts CHANGED
@@ -4556,6 +4556,9 @@ interface DropshipperFinancialSummary {
4556
4556
  original_order_total: number;
4557
4557
  transaction_total: number;
4558
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;
4559
4562
  /** Valores reconciliados por el backend: incorpora las capturas de Medusa
4560
4563
  * (`paid_total`) y los cobros confirmados por el dropshipper fuera del
4561
4564
  * backend (`metadata.paid_amount`). `paid_amount` nunca supera `paid_total`,
@@ -4587,6 +4590,8 @@ interface DropshipperShippingMethod {
4587
4590
  total: number;
4588
4591
  tax_total: number;
4589
4592
  discount_total: number;
4593
+ /** Discount adjustments applied to this shipping method (read-only; [] when none). */
4594
+ adjustments?: DropshipperItemAdjustment[];
4590
4595
  shipping_option_id: string | null;
4591
4596
  fulfillment_set_type: string | null;
4592
4597
  pickup_location: DropshipperPickupLocation | null;
@@ -4673,6 +4678,15 @@ interface DropshipperOrderFulfillment {
4673
4678
  items: DropshipperFulfillmentItem[];
4674
4679
  labels: DropshipperFulfillmentLabel[];
4675
4680
  }
4681
+ /** A credit line applied to an order (read-only; generated from a gift card,
4682
+ * store credit or payment collection). `amount` is in major units of
4683
+ * `currency_code`. */
4684
+ interface DropshipperCreditLine {
4685
+ id: string;
4686
+ amount: number;
4687
+ reference: string | null;
4688
+ reference_id: string | null;
4689
+ }
4676
4690
  /**
4677
4691
  * Full order detail as returned by GET /admin/thor/dropshipper/orders/:id.
4678
4692
  *
@@ -4712,6 +4726,8 @@ interface DropshipperOrderDetail {
4712
4726
  fulfillments?: DropshipperOrderFulfillment[];
4713
4727
  transactions: DropshipperTransaction[];
4714
4728
  financial_summary: DropshipperFinancialSummary;
4729
+ /** Credit lines applied to the order (read-only; `[]` when none). */
4730
+ credit_lines?: DropshipperCreditLine[];
4715
4731
  timeline: DropshipperOrderTimelineEvent[];
4716
4732
  payment_collected_by: 'dropshipper' | 'provider' | null;
4717
4733
  payment_method?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/types",
3
- "version": "5.7.5",
3
+ "version": "5.7.7",
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",
@@ -782,6 +782,9 @@ export interface DropshipperFinancialSummary {
782
782
  original_order_total: number;
783
783
  transaction_total: number;
784
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;
785
788
  /** Valores reconciliados por el backend: incorpora las capturas de Medusa
786
789
  * (`paid_total`) y los cobros confirmados por el dropshipper fuera del
787
790
  * backend (`metadata.paid_amount`). `paid_amount` nunca supera `paid_total`,
@@ -815,6 +818,8 @@ export interface DropshipperShippingMethod {
815
818
  total: number;
816
819
  tax_total: number;
817
820
  discount_total: number;
821
+ /** Discount adjustments applied to this shipping method (read-only; [] when none). */
822
+ adjustments?: DropshipperItemAdjustment[];
818
823
  shipping_option_id: string | null;
819
824
  fulfillment_set_type: string | null;
820
825
  pickup_location: DropshipperPickupLocation | null;
@@ -907,6 +912,16 @@ export interface DropshipperOrderFulfillment {
907
912
  labels: DropshipperFulfillmentLabel[];
908
913
  }
909
914
 
915
+ /** A credit line applied to an order (read-only; generated from a gift card,
916
+ * store credit or payment collection). `amount` is in major units of
917
+ * `currency_code`. */
918
+ export interface DropshipperCreditLine {
919
+ id: string;
920
+ amount: number;
921
+ reference: string | null;
922
+ reference_id: string | null;
923
+ }
924
+
910
925
  /**
911
926
  * Full order detail as returned by GET /admin/thor/dropshipper/orders/:id.
912
927
  *
@@ -944,6 +959,8 @@ export interface DropshipperOrderDetail {
944
959
  fulfillments?: DropshipperOrderFulfillment[];
945
960
  transactions: DropshipperTransaction[];
946
961
  financial_summary: DropshipperFinancialSummary;
962
+ /** Credit lines applied to the order (read-only; `[]` when none). */
963
+ credit_lines?: DropshipperCreditLine[];
947
964
  timeline: DropshipperOrderTimelineEvent[];
948
965
  payment_collected_by: 'dropshipper' | 'provider' | null;
949
966
  payment_method?: { id: string; name: string } | null;