@thorprovider/types 5.7.5 → 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
@@ -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`,
@@ -4673,6 +4676,15 @@ interface DropshipperOrderFulfillment {
4673
4676
  items: DropshipperFulfillmentItem[];
4674
4677
  labels: DropshipperFulfillmentLabel[];
4675
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
+ }
4676
4688
  /**
4677
4689
  * Full order detail as returned by GET /admin/thor/dropshipper/orders/:id.
4678
4690
  *
@@ -4712,6 +4724,8 @@ interface DropshipperOrderDetail {
4712
4724
  fulfillments?: DropshipperOrderFulfillment[];
4713
4725
  transactions: DropshipperTransaction[];
4714
4726
  financial_summary: DropshipperFinancialSummary;
4727
+ /** Credit lines applied to the order (read-only; `[]` when none). */
4728
+ credit_lines?: DropshipperCreditLine[];
4715
4729
  timeline: DropshipperOrderTimelineEvent[];
4716
4730
  payment_collected_by: 'dropshipper' | 'provider' | null;
4717
4731
  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`,
@@ -4673,6 +4676,15 @@ interface DropshipperOrderFulfillment {
4673
4676
  items: DropshipperFulfillmentItem[];
4674
4677
  labels: DropshipperFulfillmentLabel[];
4675
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
+ }
4676
4688
  /**
4677
4689
  * Full order detail as returned by GET /admin/thor/dropshipper/orders/:id.
4678
4690
  *
@@ -4712,6 +4724,8 @@ interface DropshipperOrderDetail {
4712
4724
  fulfillments?: DropshipperOrderFulfillment[];
4713
4725
  transactions: DropshipperTransaction[];
4714
4726
  financial_summary: DropshipperFinancialSummary;
4727
+ /** Credit lines applied to the order (read-only; `[]` when none). */
4728
+ credit_lines?: DropshipperCreditLine[];
4715
4729
  timeline: DropshipperOrderTimelineEvent[];
4716
4730
  payment_collected_by: 'dropshipper' | 'provider' | null;
4717
4731
  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.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",
@@ -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`,
@@ -907,6 +910,16 @@ export interface DropshipperOrderFulfillment {
907
910
  labels: DropshipperFulfillmentLabel[];
908
911
  }
909
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
+
910
923
  /**
911
924
  * Full order detail as returned by GET /admin/thor/dropshipper/orders/:id.
912
925
  *
@@ -944,6 +957,8 @@ export interface DropshipperOrderDetail {
944
957
  fulfillments?: DropshipperOrderFulfillment[];
945
958
  transactions: DropshipperTransaction[];
946
959
  financial_summary: DropshipperFinancialSummary;
960
+ /** Credit lines applied to the order (read-only; `[]` when none). */
961
+ credit_lines?: DropshipperCreditLine[];
947
962
  timeline: DropshipperOrderTimelineEvent[];
948
963
  payment_collected_by: 'dropshipper' | 'provider' | null;
949
964
  payment_method?: { id: string; name: string } | null;