@betterstore/sdk 0.5.18 → 0.5.21
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 +6 -8
- package/dist/index.d.ts +6 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -45,13 +45,7 @@ interface CheckoutCreateParams {
|
|
|
45
45
|
}
|
|
46
46
|
interface CheckoutUpdateParams {
|
|
47
47
|
customerId?: string;
|
|
48
|
-
|
|
49
|
-
provider: string;
|
|
50
|
-
name?: string;
|
|
51
|
-
pickupPointId?: string;
|
|
52
|
-
trackingNumber?: string;
|
|
53
|
-
trackingUrl?: string;
|
|
54
|
-
};
|
|
48
|
+
shipments: CheckoutShipment[];
|
|
55
49
|
}
|
|
56
50
|
|
|
57
51
|
type ShipmentData = {
|
|
@@ -62,6 +56,10 @@ type ShipmentData = {
|
|
|
62
56
|
trackingId?: string;
|
|
63
57
|
trackingUrl?: string;
|
|
64
58
|
};
|
|
59
|
+
type CheckoutShipment = {
|
|
60
|
+
id: string;
|
|
61
|
+
shipmentData?: ShipmentData | null;
|
|
62
|
+
};
|
|
65
63
|
interface CheckoutSession {
|
|
66
64
|
id: string;
|
|
67
65
|
testmode: boolean;
|
|
@@ -86,7 +84,7 @@ interface CheckoutSession {
|
|
|
86
84
|
}[];
|
|
87
85
|
currency: string;
|
|
88
86
|
exchangeRate: number | null;
|
|
89
|
-
|
|
87
|
+
shipments: CheckoutShipment[];
|
|
90
88
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
91
89
|
}
|
|
92
90
|
|
package/dist/index.d.ts
CHANGED
|
@@ -45,13 +45,7 @@ interface CheckoutCreateParams {
|
|
|
45
45
|
}
|
|
46
46
|
interface CheckoutUpdateParams {
|
|
47
47
|
customerId?: string;
|
|
48
|
-
|
|
49
|
-
provider: string;
|
|
50
|
-
name?: string;
|
|
51
|
-
pickupPointId?: string;
|
|
52
|
-
trackingNumber?: string;
|
|
53
|
-
trackingUrl?: string;
|
|
54
|
-
};
|
|
48
|
+
shipments: CheckoutShipment[];
|
|
55
49
|
}
|
|
56
50
|
|
|
57
51
|
type ShipmentData = {
|
|
@@ -62,6 +56,10 @@ type ShipmentData = {
|
|
|
62
56
|
trackingId?: string;
|
|
63
57
|
trackingUrl?: string;
|
|
64
58
|
};
|
|
59
|
+
type CheckoutShipment = {
|
|
60
|
+
id: string;
|
|
61
|
+
shipmentData?: ShipmentData | null;
|
|
62
|
+
};
|
|
65
63
|
interface CheckoutSession {
|
|
66
64
|
id: string;
|
|
67
65
|
testmode: boolean;
|
|
@@ -86,7 +84,7 @@ interface CheckoutSession {
|
|
|
86
84
|
}[];
|
|
87
85
|
currency: string;
|
|
88
86
|
exchangeRate: number | null;
|
|
89
|
-
|
|
87
|
+
shipments: CheckoutShipment[];
|
|
90
88
|
status: "IN_PROGRESS" | "PAYMENT_PENDING" | "ABANDONED" | "CANCELED" | "FAILED";
|
|
91
89
|
}
|
|
92
90
|
|