@betterstore/sdk 0.3.59 → 0.3.61
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 +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -118,6 +118,7 @@ interface ZasilkovnaRate extends BaseRate {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "sku" | "barcode" | "vendor" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents"> & {
|
|
121
|
+
productId: string;
|
|
121
122
|
selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "variantOptions">;
|
|
122
123
|
};
|
|
123
124
|
interface LineItem {
|
|
@@ -238,9 +239,9 @@ declare class Checkout {
|
|
|
238
239
|
*/
|
|
239
240
|
applyDiscountCode(checkoutId: string, discountCode: string): Promise<CheckoutSession>;
|
|
240
241
|
/**
|
|
241
|
-
* Remove a discount
|
|
242
|
+
* Remove a discount from a checkout session
|
|
242
243
|
*/
|
|
243
|
-
|
|
244
|
+
removeDiscount(checkoutId: string, discountId: string): Promise<CheckoutSession>;
|
|
244
245
|
/**
|
|
245
246
|
* Revalidate a checkout session
|
|
246
247
|
*/
|
|
@@ -277,7 +278,7 @@ declare class Client {
|
|
|
277
278
|
/**
|
|
278
279
|
* Remove a discount code from a checkout session
|
|
279
280
|
*/
|
|
280
|
-
|
|
281
|
+
removeDiscount(clientSecret: string, checkoutId: string, discountId: string): Promise<CheckoutSession>;
|
|
281
282
|
/**
|
|
282
283
|
* Revalidate a checkout session
|
|
283
284
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ interface ZasilkovnaRate extends BaseRate {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
type ProductData = Pick<Product, "title" | "description" | "images" | "category" | "tags" | "sku" | "barcode" | "vendor" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents"> & {
|
|
121
|
+
productId: string;
|
|
121
122
|
selectedVariant: Pick<ProductVariant, "title" | "sku" | "barcode" | "images" | "isPhysical" | "weightInGrams" | "heightInCm" | "widthInCm" | "lengthInCm" | "priceInCents" | "variantOptions">;
|
|
122
123
|
};
|
|
123
124
|
interface LineItem {
|
|
@@ -238,9 +239,9 @@ declare class Checkout {
|
|
|
238
239
|
*/
|
|
239
240
|
applyDiscountCode(checkoutId: string, discountCode: string): Promise<CheckoutSession>;
|
|
240
241
|
/**
|
|
241
|
-
* Remove a discount
|
|
242
|
+
* Remove a discount from a checkout session
|
|
242
243
|
*/
|
|
243
|
-
|
|
244
|
+
removeDiscount(checkoutId: string, discountId: string): Promise<CheckoutSession>;
|
|
244
245
|
/**
|
|
245
246
|
* Revalidate a checkout session
|
|
246
247
|
*/
|
|
@@ -277,7 +278,7 @@ declare class Client {
|
|
|
277
278
|
/**
|
|
278
279
|
* Remove a discount code from a checkout session
|
|
279
280
|
*/
|
|
280
|
-
|
|
281
|
+
removeDiscount(clientSecret: string, checkoutId: string, discountId: string): Promise<CheckoutSession>;
|
|
281
282
|
/**
|
|
282
283
|
* Revalidate a checkout session
|
|
283
284
|
*/
|
package/dist/index.js
CHANGED
|
@@ -176,9 +176,9 @@ var Checkout = class {
|
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
|
-
* Remove a discount
|
|
179
|
+
* Remove a discount from a checkout session
|
|
180
180
|
*/
|
|
181
|
-
|
|
181
|
+
removeDiscount(checkoutId, discountId) {
|
|
182
182
|
return __async(this, null, function* () {
|
|
183
183
|
const data = yield this.apiClient.delete(
|
|
184
184
|
`/checkout/${checkoutId}/discounts/${discountId}`
|
|
@@ -271,7 +271,7 @@ var Client = class {
|
|
|
271
271
|
/**
|
|
272
272
|
* Remove a discount code from a checkout session
|
|
273
273
|
*/
|
|
274
|
-
|
|
274
|
+
removeDiscount(clientSecret, checkoutId, discountId) {
|
|
275
275
|
return __async(this, null, function* () {
|
|
276
276
|
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
277
277
|
const data = yield apiClient.delete(
|
package/dist/index.mjs
CHANGED
|
@@ -140,9 +140,9 @@ var Checkout = class {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
|
-
* Remove a discount
|
|
143
|
+
* Remove a discount from a checkout session
|
|
144
144
|
*/
|
|
145
|
-
|
|
145
|
+
removeDiscount(checkoutId, discountId) {
|
|
146
146
|
return __async(this, null, function* () {
|
|
147
147
|
const data = yield this.apiClient.delete(
|
|
148
148
|
`/checkout/${checkoutId}/discounts/${discountId}`
|
|
@@ -235,7 +235,7 @@ var Client = class {
|
|
|
235
235
|
/**
|
|
236
236
|
* Remove a discount code from a checkout session
|
|
237
237
|
*/
|
|
238
|
-
|
|
238
|
+
removeDiscount(clientSecret, checkoutId, discountId) {
|
|
239
239
|
return __async(this, null, function* () {
|
|
240
240
|
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
241
241
|
const data = yield apiClient.delete(
|