@thorprovider/types 5.7.3 → 5.7.5
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 +12 -0
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
- package/src/admin/DropshippingAdmin.ts +12 -0
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,14 @@ interface DropshipperFinancialSummary {
|
|
|
4552
4556
|
original_order_total: number;
|
|
4553
4557
|
transaction_total: number;
|
|
4554
4558
|
accounting_total: number;
|
|
4559
|
+
/** Valores reconciliados por el backend: incorpora las capturas de Medusa
|
|
4560
|
+
* (`paid_total`) y los cobros confirmados por el dropshipper fuera del
|
|
4561
|
+
* backend (`metadata.paid_amount`). `paid_amount` nunca supera `paid_total`,
|
|
4562
|
+
* por lo que `effective.paid_total = max(paid_total, paid_amount)`. */
|
|
4563
|
+
effective: {
|
|
4564
|
+
paid_total: number;
|
|
4565
|
+
pending_difference: number;
|
|
4566
|
+
};
|
|
4555
4567
|
}
|
|
4556
4568
|
/** Pickup location */
|
|
4557
4569
|
interface DropshipperPickupLocation {
|
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,14 @@ interface DropshipperFinancialSummary {
|
|
|
4552
4556
|
original_order_total: number;
|
|
4553
4557
|
transaction_total: number;
|
|
4554
4558
|
accounting_total: number;
|
|
4559
|
+
/** Valores reconciliados por el backend: incorpora las capturas de Medusa
|
|
4560
|
+
* (`paid_total`) y los cobros confirmados por el dropshipper fuera del
|
|
4561
|
+
* backend (`metadata.paid_amount`). `paid_amount` nunca supera `paid_total`,
|
|
4562
|
+
* por lo que `effective.paid_total = max(paid_total, paid_amount)`. */
|
|
4563
|
+
effective: {
|
|
4564
|
+
paid_total: number;
|
|
4565
|
+
pending_difference: number;
|
|
4566
|
+
};
|
|
4555
4567
|
}
|
|
4556
4568
|
/** Pickup location */
|
|
4557
4569
|
interface DropshipperPickupLocation {
|
package/package.json
CHANGED
|
@@ -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,14 @@ export interface DropshipperFinancialSummary {
|
|
|
778
782
|
original_order_total: number;
|
|
779
783
|
transaction_total: number;
|
|
780
784
|
accounting_total: number;
|
|
785
|
+
/** Valores reconciliados por el backend: incorpora las capturas de Medusa
|
|
786
|
+
* (`paid_total`) y los cobros confirmados por el dropshipper fuera del
|
|
787
|
+
* backend (`metadata.paid_amount`). `paid_amount` nunca supera `paid_total`,
|
|
788
|
+
* por lo que `effective.paid_total = max(paid_total, paid_amount)`. */
|
|
789
|
+
effective: {
|
|
790
|
+
paid_total: number;
|
|
791
|
+
pending_difference: number;
|
|
792
|
+
};
|
|
781
793
|
}
|
|
782
794
|
|
|
783
795
|
/** Pickup location */
|