@betterstore/sdk 0.3.32 → 0.3.34
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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +2 -5
- package/dist/index.d.ts +2 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -110,11 +110,8 @@ interface CheckoutCreateParams {
|
|
|
110
110
|
currency?: Currency;
|
|
111
111
|
}
|
|
112
112
|
interface CheckoutUpdateParams {
|
|
113
|
-
lineItems?: LineItem[];
|
|
114
113
|
customerId?: string;
|
|
115
|
-
|
|
116
|
-
shipping?: number;
|
|
117
|
-
shipmentInfo?: {
|
|
114
|
+
shipmentData?: {
|
|
118
115
|
provider: string;
|
|
119
116
|
name?: string;
|
|
120
117
|
pickupPointId?: string;
|
|
@@ -225,7 +222,7 @@ declare class Customer {
|
|
|
225
222
|
declare class Helpers {
|
|
226
223
|
proxy?: string;
|
|
227
224
|
constructor(proxy?: string);
|
|
228
|
-
formatPrice(priceInCents: number, currency: string, exchangeRate?: number): string;
|
|
225
|
+
formatPrice(priceInCents: number, currency: string, exchangeRate?: number | null): string;
|
|
229
226
|
getExchangeRate(baseCurrency: string, targetCurrency: string): Promise<number>;
|
|
230
227
|
}
|
|
231
228
|
|
package/dist/index.d.ts
CHANGED
|
@@ -110,11 +110,8 @@ interface CheckoutCreateParams {
|
|
|
110
110
|
currency?: Currency;
|
|
111
111
|
}
|
|
112
112
|
interface CheckoutUpdateParams {
|
|
113
|
-
lineItems?: LineItem[];
|
|
114
113
|
customerId?: string;
|
|
115
|
-
|
|
116
|
-
shipping?: number;
|
|
117
|
-
shipmentInfo?: {
|
|
114
|
+
shipmentData?: {
|
|
118
115
|
provider: string;
|
|
119
116
|
name?: string;
|
|
120
117
|
pickupPointId?: string;
|
|
@@ -225,7 +222,7 @@ declare class Customer {
|
|
|
225
222
|
declare class Helpers {
|
|
226
223
|
proxy?: string;
|
|
227
224
|
constructor(proxy?: string);
|
|
228
|
-
formatPrice(priceInCents: number, currency: string, exchangeRate?: number): string;
|
|
225
|
+
formatPrice(priceInCents: number, currency: string, exchangeRate?: number | null): string;
|
|
229
226
|
getExchangeRate(baseCurrency: string, targetCurrency: string): Promise<number>;
|
|
230
227
|
}
|
|
231
228
|
|