@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.34
4
+
5
+ ### Patch Changes
6
+
7
+ - small tweak
8
+
9
+ ## 0.3.33
10
+
11
+ ### Patch Changes
12
+
13
+ - small change
14
+
3
15
  ## 0.3.32
4
16
 
5
17
  ### Patch Changes
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
- tax?: number;
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
- tax?: number;
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.32",
3
+ "version": "0.3.34",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {