@thorprovider/types 5.7.1 → 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 +17 -8
- package/dist/index.d.ts +17 -8
- package/package.json +1 -1
- package/src/admin/DropshippingAdmin.ts +15 -8
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
|
|
4662
|
-
* order's `currency_code` (e.g.
|
|
4663
|
-
*
|
|
4664
|
-
*
|
|
4665
|
-
*
|
|
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;
|
|
@@ -5963,7 +5971,10 @@ interface FinancialAnalysisSettlementDetails {
|
|
|
5963
5971
|
interface FinancialAnalysisSummary {
|
|
5964
5972
|
ds_owes_to_thor: number;
|
|
5965
5973
|
thor_owes_to_ds: number;
|
|
5966
|
-
|
|
5974
|
+
item_total: number;
|
|
5975
|
+
shipping_total: number;
|
|
5976
|
+
tax_total: number;
|
|
5977
|
+
order_total: number;
|
|
5967
5978
|
total_cost_thor: number;
|
|
5968
5979
|
total_commission_ds: number;
|
|
5969
5980
|
total_margin: number;
|
|
@@ -5998,8 +6009,6 @@ interface GetFinancialAnalysisResponse {
|
|
|
5998
6009
|
interface RegisterPaymentBody {
|
|
5999
6010
|
paid_amount: number;
|
|
6000
6011
|
due_date?: string;
|
|
6001
|
-
payment_provider_id?: string;
|
|
6002
|
-
force_collector?: boolean;
|
|
6003
6012
|
}
|
|
6004
6013
|
/** Payment record in the register payment response */
|
|
6005
6014
|
interface RegisterPaymentRecord {
|
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
|
|
4662
|
-
* order's `currency_code` (e.g.
|
|
4663
|
-
*
|
|
4664
|
-
*
|
|
4665
|
-
*
|
|
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;
|
|
@@ -5963,7 +5971,10 @@ interface FinancialAnalysisSettlementDetails {
|
|
|
5963
5971
|
interface FinancialAnalysisSummary {
|
|
5964
5972
|
ds_owes_to_thor: number;
|
|
5965
5973
|
thor_owes_to_ds: number;
|
|
5966
|
-
|
|
5974
|
+
item_total: number;
|
|
5975
|
+
shipping_total: number;
|
|
5976
|
+
tax_total: number;
|
|
5977
|
+
order_total: number;
|
|
5967
5978
|
total_cost_thor: number;
|
|
5968
5979
|
total_commission_ds: number;
|
|
5969
5980
|
total_margin: number;
|
|
@@ -5998,8 +6009,6 @@ interface GetFinancialAnalysisResponse {
|
|
|
5998
6009
|
interface RegisterPaymentBody {
|
|
5999
6010
|
paid_amount: number;
|
|
6000
6011
|
due_date?: string;
|
|
6001
|
-
payment_provider_id?: string;
|
|
6002
|
-
force_collector?: boolean;
|
|
6003
6012
|
}
|
|
6004
6013
|
/** Payment record in the register payment response */
|
|
6005
6014
|
interface RegisterPaymentRecord {
|
package/package.json
CHANGED
|
@@ -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
|
|
898
|
-
* order's `currency_code` (e.g.
|
|
899
|
-
*
|
|
900
|
-
*
|
|
901
|
-
*
|
|
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;
|
|
@@ -2458,7 +2464,10 @@ export interface FinancialAnalysisSettlementDetails {
|
|
|
2458
2464
|
export interface FinancialAnalysisSummary {
|
|
2459
2465
|
ds_owes_to_thor: number;
|
|
2460
2466
|
thor_owes_to_ds: number;
|
|
2461
|
-
|
|
2467
|
+
item_total: number;
|
|
2468
|
+
shipping_total: number;
|
|
2469
|
+
tax_total: number;
|
|
2470
|
+
order_total: number;
|
|
2462
2471
|
total_cost_thor: number;
|
|
2463
2472
|
total_commission_ds: number;
|
|
2464
2473
|
total_margin: number;
|
|
@@ -2501,8 +2510,6 @@ export interface GetFinancialAnalysisResponse {
|
|
|
2501
2510
|
export interface RegisterPaymentBody {
|
|
2502
2511
|
paid_amount: number;
|
|
2503
2512
|
due_date?: string;
|
|
2504
|
-
payment_provider_id?: string;
|
|
2505
|
-
force_collector?: boolean;
|
|
2506
2513
|
}
|
|
2507
2514
|
|
|
2508
2515
|
/** Payment record in the register payment response */
|