@wix/auto_sdk_ecom_current-cart 1.0.0
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/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.context.d.ts +27 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.context.js +55 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.context.js.map +1 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.http.d.ts +77 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.http.js +653 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.http.js.map +1 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.meta.d.ts +21 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.meta.js +199 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.meta.js.map +1 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.public.d.ts +123 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.public.js +208 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.public.js.map +1 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.types.d.ts +2497 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.types.js +255 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.types.js.map +1 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.universal.d.ts +2813 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.universal.js +895 -0
- package/build/cjs/src/ecom-v1-cart-current-cart.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/ecom-v1-cart-current-cart.context.d.ts +27 -0
- package/build/es/src/ecom-v1-cart-current-cart.context.js +27 -0
- package/build/es/src/ecom-v1-cart-current-cart.context.js.map +1 -0
- package/build/es/src/ecom-v1-cart-current-cart.http.d.ts +77 -0
- package/build/es/src/ecom-v1-cart-current-cart.http.js +641 -0
- package/build/es/src/ecom-v1-cart-current-cart.http.js.map +1 -0
- package/build/es/src/ecom-v1-cart-current-cart.meta.d.ts +21 -0
- package/build/es/src/ecom-v1-cart-current-cart.meta.js +164 -0
- package/build/es/src/ecom-v1-cart-current-cart.meta.js.map +1 -0
- package/build/es/src/ecom-v1-cart-current-cart.public.d.ts +123 -0
- package/build/es/src/ecom-v1-cart-current-cart.public.js +171 -0
- package/build/es/src/ecom-v1-cart-current-cart.public.js.map +1 -0
- package/build/es/src/ecom-v1-cart-current-cart.types.d.ts +2497 -0
- package/build/es/src/ecom-v1-cart-current-cart.types.js +252 -0
- package/build/es/src/ecom-v1-cart-current-cart.types.js.map +1 -0
- package/build/es/src/ecom-v1-cart-current-cart.universal.d.ts +2813 -0
- package/build/es/src/ecom-v1-cart-current-cart.universal.js +860 -0
- package/build/es/src/ecom-v1-cart-current-cart.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.context.d.ts +27 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.context.js +55 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.context.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.http.d.ts +77 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.http.js +653 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.http.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.meta.d.ts +21 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.meta.js +199 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.meta.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.public.d.ts +123 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.public.js +208 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.public.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.types.d.ts +2556 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.types.js +255 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.types.js.map +1 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.universal.d.ts +3030 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.universal.js +895 -0
- package/build/internal/cjs/src/ecom-v1-cart-current-cart.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.context.d.ts +27 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.context.js +27 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.context.js.map +1 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.http.d.ts +77 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.http.js +641 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.http.js.map +1 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.meta.d.ts +21 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.meta.js +164 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.meta.js.map +1 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.public.d.ts +123 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.public.js +171 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.public.js.map +1 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.types.d.ts +2556 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.types.js +252 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.types.js.map +1 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.universal.d.ts +3030 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.universal.js +860 -0
- package/build/internal/es/src/ecom-v1-cart-current-cart.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as ambassadorWixEcomV1CartTypes from './ecom-v1-cart-current-cart.types.js';
|
|
2
|
+
import * as ambassadorWixEcomV1CartUniversalTypes from './ecom-v1-cart-current-cart.universal.js';
|
|
3
|
+
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
+
getUrl: (context: any) => string;
|
|
5
|
+
httpMethod: K;
|
|
6
|
+
path: string;
|
|
7
|
+
pathParams: M;
|
|
8
|
+
__requestType: T;
|
|
9
|
+
__originalRequestType: S;
|
|
10
|
+
__responseType: Q;
|
|
11
|
+
__originalResponseType: R;
|
|
12
|
+
};
|
|
13
|
+
export declare function getCurrentCart(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixEcomV1CartUniversalTypes.GetCurrentCartRequest, ambassadorWixEcomV1CartTypes.GetCurrentCartRequest, ambassadorWixEcomV1CartUniversalTypes.GetCurrentCartResponse & ambassadorWixEcomV1CartUniversalTypes.GetCurrentCartResponseNonNullableFields, ambassadorWixEcomV1CartTypes.GetCurrentCartResponse & ambassadorWixEcomV1CartTypes.GetCurrentCartResponseNonNullableFields>;
|
|
14
|
+
export declare function updateCurrentCart(): __PublicMethodMetaInfo<'PATCH', {}, ambassadorWixEcomV1CartUniversalTypes.UpdateCartRequest, ambassadorWixEcomV1CartTypes.UpdateCartRequest, ambassadorWixEcomV1CartUniversalTypes.UpdateCartResponse & ambassadorWixEcomV1CartUniversalTypes.UpdateCartResponseNonNullableFields, ambassadorWixEcomV1CartTypes.UpdateCartResponse & ambassadorWixEcomV1CartTypes.UpdateCartResponseNonNullableFields>;
|
|
15
|
+
export declare function addToCurrentCart(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomV1CartUniversalTypes.AddToCurrentCartRequest, ambassadorWixEcomV1CartTypes.AddToCurrentCartRequest, ambassadorWixEcomV1CartUniversalTypes.AddToCartResponse & ambassadorWixEcomV1CartUniversalTypes.AddToCartResponseNonNullableFields, ambassadorWixEcomV1CartTypes.AddToCartResponse & ambassadorWixEcomV1CartTypes.AddToCartResponseNonNullableFields>;
|
|
16
|
+
export declare function removeLineItemsFromCurrentCart(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomV1CartUniversalTypes.RemoveLineItemsFromCurrentCartRequest, ambassadorWixEcomV1CartTypes.RemoveLineItemsFromCurrentCartRequest, ambassadorWixEcomV1CartUniversalTypes.RemoveLineItemsResponse & ambassadorWixEcomV1CartUniversalTypes.RemoveLineItemsResponseNonNullableFields, ambassadorWixEcomV1CartTypes.RemoveLineItemsResponse & ambassadorWixEcomV1CartTypes.RemoveLineItemsResponseNonNullableFields>;
|
|
17
|
+
export declare function createCheckoutFromCurrentCart(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomV1CartUniversalTypes.CreateCheckoutFromCurrentCartRequest, ambassadorWixEcomV1CartTypes.CreateCheckoutFromCurrentCartRequest, ambassadorWixEcomV1CartUniversalTypes.CreateCheckoutResponse & ambassadorWixEcomV1CartUniversalTypes.CreateCheckoutResponseNonNullableFields, ambassadorWixEcomV1CartTypes.CreateCheckoutResponse & ambassadorWixEcomV1CartTypes.CreateCheckoutResponseNonNullableFields>;
|
|
18
|
+
export declare function removeCouponFromCurrentCart(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomV1CartUniversalTypes.RemoveCouponFromCurrentCartRequest, ambassadorWixEcomV1CartTypes.RemoveCouponFromCurrentCartRequest, ambassadorWixEcomV1CartUniversalTypes.RemoveCouponResponse & ambassadorWixEcomV1CartUniversalTypes.RemoveCouponResponseNonNullableFields, ambassadorWixEcomV1CartTypes.RemoveCouponResponse & ambassadorWixEcomV1CartTypes.RemoveCouponResponseNonNullableFields>;
|
|
19
|
+
export declare function updateCurrentCartLineItemQuantity(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomV1CartUniversalTypes.UpdateCurrentCartLineItemQuantityRequest, ambassadorWixEcomV1CartTypes.UpdateCurrentCartLineItemQuantityRequest, ambassadorWixEcomV1CartUniversalTypes.UpdateLineItemsQuantityResponse & ambassadorWixEcomV1CartUniversalTypes.UpdateLineItemsQuantityResponseNonNullableFields, ambassadorWixEcomV1CartTypes.UpdateLineItemsQuantityResponse & ambassadorWixEcomV1CartTypes.UpdateLineItemsQuantityResponseNonNullableFields>;
|
|
20
|
+
export declare function estimateCurrentCartTotals(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEcomV1CartUniversalTypes.EstimateCurrentCartTotalsRequest, ambassadorWixEcomV1CartTypes.EstimateCurrentCartTotalsRequest, ambassadorWixEcomV1CartUniversalTypes.EstimateTotalsResponse & ambassadorWixEcomV1CartUniversalTypes.EstimateTotalsResponseNonNullableFields, ambassadorWixEcomV1CartTypes.EstimateTotalsResponse & ambassadorWixEcomV1CartTypes.EstimateTotalsResponseNonNullableFields>;
|
|
21
|
+
export declare function deleteCurrentCart(): __PublicMethodMetaInfo<'DELETE', {}, ambassadorWixEcomV1CartUniversalTypes.DeleteCurrentCartRequest, ambassadorWixEcomV1CartTypes.DeleteCurrentCartRequest, ambassadorWixEcomV1CartUniversalTypes.DeleteCartResponse, ambassadorWixEcomV1CartTypes.DeleteCartResponse>;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.deleteCurrentCart = exports.estimateCurrentCartTotals = exports.updateCurrentCartLineItemQuantity = exports.removeCouponFromCurrentCart = exports.createCheckoutFromCurrentCart = exports.removeLineItemsFromCurrentCart = exports.addToCurrentCart = exports.updateCurrentCart = exports.getCurrentCart = void 0;
|
|
27
|
+
const ambassadorWixEcomV1Cart = __importStar(require("./ecom-v1-cart-current-cart.http.js"));
|
|
28
|
+
function getCurrentCart() {
|
|
29
|
+
const payload = {};
|
|
30
|
+
const getRequestOptions = ambassadorWixEcomV1Cart.currentCartGetCurrentCart(payload);
|
|
31
|
+
const getUrl = (context) => {
|
|
32
|
+
const { url } = getRequestOptions(context);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
getUrl,
|
|
37
|
+
httpMethod: 'GET',
|
|
38
|
+
path: '/v1/carts/current',
|
|
39
|
+
pathParams: {},
|
|
40
|
+
__requestType: null,
|
|
41
|
+
__originalRequestType: null,
|
|
42
|
+
__responseType: null,
|
|
43
|
+
__originalResponseType: null,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.getCurrentCart = getCurrentCart;
|
|
47
|
+
function updateCurrentCart() {
|
|
48
|
+
const payload = {};
|
|
49
|
+
const getRequestOptions = ambassadorWixEcomV1Cart.updateCurrentCart(payload);
|
|
50
|
+
const getUrl = (context) => {
|
|
51
|
+
const { url } = getRequestOptions(context);
|
|
52
|
+
return url;
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
getUrl,
|
|
56
|
+
httpMethod: 'PATCH',
|
|
57
|
+
path: '/v1/carts/current',
|
|
58
|
+
pathParams: {},
|
|
59
|
+
__requestType: null,
|
|
60
|
+
__originalRequestType: null,
|
|
61
|
+
__responseType: null,
|
|
62
|
+
__originalResponseType: null,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.updateCurrentCart = updateCurrentCart;
|
|
66
|
+
function addToCurrentCart() {
|
|
67
|
+
const payload = {};
|
|
68
|
+
const getRequestOptions = ambassadorWixEcomV1Cart.addToCurrentCart(payload);
|
|
69
|
+
const getUrl = (context) => {
|
|
70
|
+
const { url } = getRequestOptions(context);
|
|
71
|
+
return url;
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
getUrl,
|
|
75
|
+
httpMethod: 'POST',
|
|
76
|
+
path: '/v1/carts/current/add-to-cart',
|
|
77
|
+
pathParams: {},
|
|
78
|
+
__requestType: null,
|
|
79
|
+
__originalRequestType: null,
|
|
80
|
+
__responseType: null,
|
|
81
|
+
__originalResponseType: null,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
exports.addToCurrentCart = addToCurrentCart;
|
|
85
|
+
function removeLineItemsFromCurrentCart() {
|
|
86
|
+
const payload = {};
|
|
87
|
+
const getRequestOptions = ambassadorWixEcomV1Cart.removeLineItemsFromCurrentCart(payload);
|
|
88
|
+
const getUrl = (context) => {
|
|
89
|
+
const { url } = getRequestOptions(context);
|
|
90
|
+
return url;
|
|
91
|
+
};
|
|
92
|
+
return {
|
|
93
|
+
getUrl,
|
|
94
|
+
httpMethod: 'POST',
|
|
95
|
+
path: '/v1/carts/current/remove-line-items',
|
|
96
|
+
pathParams: {},
|
|
97
|
+
__requestType: null,
|
|
98
|
+
__originalRequestType: null,
|
|
99
|
+
__responseType: null,
|
|
100
|
+
__originalResponseType: null,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
exports.removeLineItemsFromCurrentCart = removeLineItemsFromCurrentCart;
|
|
104
|
+
function createCheckoutFromCurrentCart() {
|
|
105
|
+
const payload = {};
|
|
106
|
+
const getRequestOptions = ambassadorWixEcomV1Cart.createCheckoutFromCurrentCart(payload);
|
|
107
|
+
const getUrl = (context) => {
|
|
108
|
+
const { url } = getRequestOptions(context);
|
|
109
|
+
return url;
|
|
110
|
+
};
|
|
111
|
+
return {
|
|
112
|
+
getUrl,
|
|
113
|
+
httpMethod: 'POST',
|
|
114
|
+
path: '/v1/carts/current/create-checkout',
|
|
115
|
+
pathParams: {},
|
|
116
|
+
__requestType: null,
|
|
117
|
+
__originalRequestType: null,
|
|
118
|
+
__responseType: null,
|
|
119
|
+
__originalResponseType: null,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
exports.createCheckoutFromCurrentCart = createCheckoutFromCurrentCart;
|
|
123
|
+
function removeCouponFromCurrentCart() {
|
|
124
|
+
const payload = {};
|
|
125
|
+
const getRequestOptions = ambassadorWixEcomV1Cart.removeCouponFromCurrentCart(payload);
|
|
126
|
+
const getUrl = (context) => {
|
|
127
|
+
const { url } = getRequestOptions(context);
|
|
128
|
+
return url;
|
|
129
|
+
};
|
|
130
|
+
return {
|
|
131
|
+
getUrl,
|
|
132
|
+
httpMethod: 'POST',
|
|
133
|
+
path: '/v1/carts/current/remove-coupon',
|
|
134
|
+
pathParams: {},
|
|
135
|
+
__requestType: null,
|
|
136
|
+
__originalRequestType: null,
|
|
137
|
+
__responseType: null,
|
|
138
|
+
__originalResponseType: null,
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
exports.removeCouponFromCurrentCart = removeCouponFromCurrentCart;
|
|
142
|
+
function updateCurrentCartLineItemQuantity() {
|
|
143
|
+
const payload = {};
|
|
144
|
+
const getRequestOptions = ambassadorWixEcomV1Cart.updateCurrentCartLineItemQuantity(payload);
|
|
145
|
+
const getUrl = (context) => {
|
|
146
|
+
const { url } = getRequestOptions(context);
|
|
147
|
+
return url;
|
|
148
|
+
};
|
|
149
|
+
return {
|
|
150
|
+
getUrl,
|
|
151
|
+
httpMethod: 'POST',
|
|
152
|
+
path: '/v1/carts/current/update-line-items-quantity',
|
|
153
|
+
pathParams: {},
|
|
154
|
+
__requestType: null,
|
|
155
|
+
__originalRequestType: null,
|
|
156
|
+
__responseType: null,
|
|
157
|
+
__originalResponseType: null,
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
exports.updateCurrentCartLineItemQuantity = updateCurrentCartLineItemQuantity;
|
|
161
|
+
function estimateCurrentCartTotals() {
|
|
162
|
+
const payload = {};
|
|
163
|
+
const getRequestOptions = ambassadorWixEcomV1Cart.estimateCurrentCartTotals(payload);
|
|
164
|
+
const getUrl = (context) => {
|
|
165
|
+
const { url } = getRequestOptions(context);
|
|
166
|
+
return url;
|
|
167
|
+
};
|
|
168
|
+
return {
|
|
169
|
+
getUrl,
|
|
170
|
+
httpMethod: 'POST',
|
|
171
|
+
path: '/v1/carts/current/estimate-totals',
|
|
172
|
+
pathParams: {},
|
|
173
|
+
__requestType: null,
|
|
174
|
+
__originalRequestType: null,
|
|
175
|
+
__responseType: null,
|
|
176
|
+
__originalResponseType: null,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
exports.estimateCurrentCartTotals = estimateCurrentCartTotals;
|
|
180
|
+
function deleteCurrentCart() {
|
|
181
|
+
const payload = {};
|
|
182
|
+
const getRequestOptions = ambassadorWixEcomV1Cart.deleteCurrentCart(payload);
|
|
183
|
+
const getUrl = (context) => {
|
|
184
|
+
const { url } = getRequestOptions(context);
|
|
185
|
+
return url;
|
|
186
|
+
};
|
|
187
|
+
return {
|
|
188
|
+
getUrl,
|
|
189
|
+
httpMethod: 'DELETE',
|
|
190
|
+
path: '/v1/carts/current',
|
|
191
|
+
pathParams: {},
|
|
192
|
+
__requestType: null,
|
|
193
|
+
__originalRequestType: null,
|
|
194
|
+
__responseType: null,
|
|
195
|
+
__originalResponseType: null,
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
exports.deleteCurrentCart = deleteCurrentCart;
|
|
199
|
+
//# sourceMappingURL=ecom-v1-cart-current-cart.meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecom-v1-cart-current-cart.meta.js","sourceRoot":"","sources":["../../../src/ecom-v1-cart-current-cart.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6FAA+E;AAsB/E,SAAgB,cAAc;IAU5B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,uBAAuB,CAAC,yBAAyB,CAAC,OAAO,CAAC,CAAC;IAE7D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GA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E,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,mCAAmC;QACzC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,8DA8BC;AAED,SAAgB,iBAAiB;IAQ/B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GAAG,uBAAuB,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAE7E,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,QAAQ;QACpB,IAAI,EAAE,mBAAmB;QACzB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA3BD,8CA2BC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
+
import { AddToCartResponse, AddToCartResponseNonNullableFields, AddToCurrentCartOptions, Cart, CartCreatedEnvelope, CartDeletedEnvelope, CartNonNullableFields, CartUpdatedEnvelope, CreateCheckoutFromCurrentCartOptions, CreateCheckoutResponse, CreateCheckoutResponseNonNullableFields, EstimateCurrentCartTotalsOptions, EstimateTotalsResponse, EstimateTotalsResponseNonNullableFields, LineItemQuantityUpdate, RemoveCouponResponse, RemoveCouponResponseNonNullableFields, RemoveLineItemsResponse, RemoveLineItemsResponseNonNullableFields, UpdateCurrentCartOptions, UpdateLineItemsQuantityResponse, UpdateLineItemsQuantityResponseNonNullableFields } from './ecom-v1-cart-current-cart.universal.js';
|
|
3
|
+
export declare const __metadata: {
|
|
4
|
+
PACKAGE_NAME: string;
|
|
5
|
+
};
|
|
6
|
+
export declare function getCurrentCart(httpClient: HttpClient): GetCurrentCartSignature;
|
|
7
|
+
interface GetCurrentCartSignature {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieves the current site visitor's cart.
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* The `getCurrentCart()` function returns a Promise that resolves when the current cart is retrieved.
|
|
13
|
+
* @returns Current session's active cart.
|
|
14
|
+
*/
|
|
15
|
+
(): Promise<Cart & CartNonNullableFields>;
|
|
16
|
+
}
|
|
17
|
+
export declare function updateCurrentCart(httpClient: HttpClient): UpdateCurrentCartSignature;
|
|
18
|
+
interface UpdateCurrentCartSignature {
|
|
19
|
+
/**
|
|
20
|
+
* Updates the current site visitor's cart.
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* The `updateCurrentCart()` function returns a Promise that resolves when the current cart's properties are updated.
|
|
24
|
+
*
|
|
25
|
+
* > **Note:** When updating catalog items, `options.lineItems.catalogReference` is required.
|
|
26
|
+
* @param - Current cart update options.
|
|
27
|
+
* @returns Fulfilled - The updated current cart.
|
|
28
|
+
*/
|
|
29
|
+
(options?: UpdateCurrentCartOptions | undefined): Promise<Cart & CartNonNullableFields>;
|
|
30
|
+
}
|
|
31
|
+
export declare function addToCurrentCart(httpClient: HttpClient): AddToCurrentCartSignature;
|
|
32
|
+
interface AddToCurrentCartSignature {
|
|
33
|
+
/**
|
|
34
|
+
* Adds catalog line items to the current site visitor's cart.
|
|
35
|
+
*
|
|
36
|
+
*
|
|
37
|
+
* The `addToCurrentCart()` function returns a Promise that resolves to the updated current cart when the specified items have been added.
|
|
38
|
+
*
|
|
39
|
+
* > **Note:** When adding catalog items, `options.lineItems.catalogReference` is required.
|
|
40
|
+
* @param - Items to be added to the current cart.
|
|
41
|
+
*/
|
|
42
|
+
(options?: AddToCurrentCartOptions | undefined): Promise<AddToCartResponse & AddToCartResponseNonNullableFields>;
|
|
43
|
+
}
|
|
44
|
+
export declare function removeLineItemsFromCurrentCart(httpClient: HttpClient): RemoveLineItemsFromCurrentCartSignature;
|
|
45
|
+
interface RemoveLineItemsFromCurrentCartSignature {
|
|
46
|
+
/**
|
|
47
|
+
* Removes line items from the current site visitor's cart.
|
|
48
|
+
*
|
|
49
|
+
*
|
|
50
|
+
* The `removeLineItemsFromCurrentCart()` function returns a Promise that resolves to the updated current cart when the line items are removed.
|
|
51
|
+
* @param - IDs of the line items to remove from the cart.
|
|
52
|
+
*/
|
|
53
|
+
(lineItemIds: string[]): Promise<RemoveLineItemsResponse & RemoveLineItemsResponseNonNullableFields>;
|
|
54
|
+
}
|
|
55
|
+
export declare function createCheckoutFromCurrentCart(httpClient: HttpClient): CreateCheckoutFromCurrentCartSignature;
|
|
56
|
+
interface CreateCheckoutFromCurrentCartSignature {
|
|
57
|
+
/**
|
|
58
|
+
* Creates a checkout from the current site visitor’s cart.
|
|
59
|
+
*
|
|
60
|
+
*
|
|
61
|
+
* The `createCheckoutFromCurrentCart()` function returns a Promise that resolves to the new checkout's ID when it's created.
|
|
62
|
+
*
|
|
63
|
+
* If a checkout was already created from the current cart, that checkout will be updated with any new information from the cart.
|
|
64
|
+
*
|
|
65
|
+
* > **Note:** `options.channelType` is a required field.
|
|
66
|
+
* @param - Checkout creation options.
|
|
67
|
+
*/
|
|
68
|
+
(options?: CreateCheckoutFromCurrentCartOptions | undefined): Promise<CreateCheckoutResponse & CreateCheckoutResponseNonNullableFields>;
|
|
69
|
+
}
|
|
70
|
+
export declare function removeCouponFromCurrentCart(httpClient: HttpClient): RemoveCouponFromCurrentCartSignature;
|
|
71
|
+
interface RemoveCouponFromCurrentCartSignature {
|
|
72
|
+
/**
|
|
73
|
+
* Removes the coupon from the current site visitor's cart.
|
|
74
|
+
*
|
|
75
|
+
*
|
|
76
|
+
* The `removeCouponFromCurrentCart()` function returns a Promise that resolves to the updated current cart when the coupon is removed.
|
|
77
|
+
* @returns Fulfilled - Updated current cart.
|
|
78
|
+
*/
|
|
79
|
+
(): Promise<RemoveCouponResponse & RemoveCouponResponseNonNullableFields>;
|
|
80
|
+
}
|
|
81
|
+
export declare function updateCurrentCartLineItemQuantity(httpClient: HttpClient): UpdateCurrentCartLineItemQuantitySignature;
|
|
82
|
+
interface UpdateCurrentCartLineItemQuantitySignature {
|
|
83
|
+
/**
|
|
84
|
+
* Updates the quantity of one or more line items in the current site visitor's cart.
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* The `updateCurrentCartLineItemQuantity()` function returns a Promise that resolves when the quantities of the current cart's line items are updated. This endpoint is only for updating the quantity of line items. To entirely remove a line item from the current cart, use [`removeLineItemsFromCurrentCart()`](#removelineitemsfromcurrentcart).
|
|
88
|
+
* To add a new line item to the current cart, use [`addToCurrentCart()`](#addtocurrentcart).
|
|
89
|
+
*
|
|
90
|
+
* This endpoint checks the amount of stock remaining for this line item. If the specified `quantity` is greater than the remaining stock, then the `quantity` returned in the response is the total amount of remaining stock.
|
|
91
|
+
* @param - Line item IDs and their new quantity.
|
|
92
|
+
* @returns Fulfilled - The updated current cart.
|
|
93
|
+
*/
|
|
94
|
+
(lineItems: LineItemQuantityUpdate[]): Promise<UpdateLineItemsQuantityResponse & UpdateLineItemsQuantityResponseNonNullableFields>;
|
|
95
|
+
}
|
|
96
|
+
export declare function estimateCurrentCartTotals(httpClient: HttpClient): EstimateCurrentCartTotalsSignature;
|
|
97
|
+
interface EstimateCurrentCartTotalsSignature {
|
|
98
|
+
/**
|
|
99
|
+
* Estimates the current cart's price totals (including tax), based on a selected carrier service, shipping address, and billing information.
|
|
100
|
+
*
|
|
101
|
+
*
|
|
102
|
+
* The `estimateCurrentCartTotals()` function returns a Promise that resolves when the estimated totals are generated.
|
|
103
|
+
*
|
|
104
|
+
* > **Note:** Not passing any `options` properties will only estimate the cart items price totals.
|
|
105
|
+
* @param - Total estimation options.
|
|
106
|
+
*/
|
|
107
|
+
(options?: EstimateCurrentCartTotalsOptions | undefined): Promise<EstimateTotalsResponse & EstimateTotalsResponseNonNullableFields>;
|
|
108
|
+
}
|
|
109
|
+
export declare function deleteCurrentCart(httpClient: HttpClient): DeleteCurrentCartSignature;
|
|
110
|
+
interface DeleteCurrentCartSignature {
|
|
111
|
+
/**
|
|
112
|
+
* Deletes the current site visitor's cart.
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
* The `deleteCurrentCart()` function returns a Promise that resolves when the current cart is deleted.
|
|
116
|
+
* @returns Fulfilled - When the current cart is deleted. Rejected - Error message.
|
|
117
|
+
*/
|
|
118
|
+
(): Promise<void>;
|
|
119
|
+
}
|
|
120
|
+
export declare const onCartDeleted: EventDefinition<CartDeletedEnvelope, "wix.ecom.v1.cart_deleted">;
|
|
121
|
+
export declare const onCartUpdated: EventDefinition<CartUpdatedEnvelope, "wix.ecom.v1.cart_updated">;
|
|
122
|
+
export declare const onCartCreated: EventDefinition<CartCreatedEnvelope, "wix.ecom.v1.cart_created">;
|
|
123
|
+
export { ActionEvent, AddToCartRequest, AddToCartResponse, AddToCartResponseNonNullableFields, AddToCurrentCartAndEstimateTotalsRequest, AddToCurrentCartOptions, AddToCurrentCartRequest, AdditionalFee, AdditionalFeeSource, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, AutoTaxFallbackCalculationDetails, BaseEventMetadata, BuyerInfo, BuyerInfoIdOneOf, CalculatedLineItem, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, Cart, CartCreatedEnvelope, CartDeletedEnvelope, CartDiscount, CartDiscountDiscountSourceOneOf, CartNonNullableFields, CartUpdatedEnvelope, CatalogOverrideFields, CatalogReference, ChannelType, ChargeType, Color, Coupon, CreateCartRequest, CreateCartResponse, CreateCheckoutFromCurrentCartOptions, CreateCheckoutFromCurrentCartRequest, CreateCheckoutRequest, CreateCheckoutResponse, CreateCheckoutResponseNonNullableFields, CustomLineItem, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineValueOneOf, Details, DetailsKindOneOf, DiscountRule, DiscountRuleName, DiscountType, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCurrentCartTotalsOptions, EstimateCurrentCartTotalsRequest, EstimateTotalsRequest, EstimateTotalsResponse, EstimateTotalsResponseNonNullableFields, EventMetadata, ExtendedFields, FallbackReason, FieldViolation, FileType, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCartByCheckoutIdRequest, GetCartByCheckoutIdResponse, GetCartRequest, GetCartResponse, GetCurrentCartRequest, GetCurrentCartResponse, GetCurrentCartResponseNonNullableFields, GiftCard, Group, HostSelectedMembership, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemTaxFullDetails, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, JurisdictionType, LineItem, LineItemDiscount, LineItemPricesData, LineItemQuantityUpdate, ManualCalculationReason, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MerchantDiscountInput, MessageEnvelope, MultiCurrencyPrice, NameInLineItem, NameInOther, Other, OtherCharge, PaymentOption, PaymentOptionType, PhysicalProperties, PickupDetails, PickupMethod, PlainTextValue, Policy, PriceDescription, PriceSummary, ProductName, RateType, Region, RemoveBusinessLocationRequest, RemoveBusinessLocationResponse, RemoveCouponFromCurrentCartRequest, RemoveCouponRequest, RemoveCouponResponse, RemoveCouponResponseNonNullableFields, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsRequest, RemoveLineItemsResponse, RemoveLineItemsResponseNonNullableFields, RestoreInfo, RuleType, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, SelectedShippingOption, ServiceProperties, Severity, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SubscriptionFrequency, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, Title, UpdateCartRequest, UpdateCartResponse, UpdateCartResponseNonNullableFields, UpdateCurrentCartLineItemQuantityRequest, UpdateCurrentCartOptions, UpdateLineItemsQuantityRequest, UpdateLineItemsQuantityResponse, UpdateLineItemsQuantityResponseNonNullableFields, V1Coupon, V1DiscountRule, V1DiscountRuleName, V1MerchantDiscount, ValidationError, VatId, VatType, Violation, WebhookIdentityType, WeightUnit, } from './ecom-v1-cart-current-cart.universal.js';
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WeightUnit = exports.WebhookIdentityType = exports.VatType = exports.TaxableAddressType = exports.SuggestedFix = exports.SubscriptionFrequency = exports.Severity = exports.RuleType = exports.RateType = exports.PickupMethod = exports.PaymentOptionType = exports.NameInOther = exports.NameInLineItem = exports.ManualCalculationReason = exports.JurisdictionType = exports.ItemTypeItemType = exports.ItemAvailabilityStatus = exports.FileType = exports.FallbackReason = exports.DiscountType = exports.DescriptionLineType = exports.ChargeType = exports.ChannelType = exports.AppliedDiscountDiscountType = exports.AdditionalFeeSource = exports.onCartCreated = exports.onCartUpdated = exports.onCartDeleted = exports.deleteCurrentCart = exports.estimateCurrentCartTotals = exports.updateCurrentCartLineItemQuantity = exports.removeCouponFromCurrentCart = exports.createCheckoutFromCurrentCart = exports.removeLineItemsFromCurrentCart = exports.addToCurrentCart = exports.updateCurrentCart = exports.getCurrentCart = exports.__metadata = void 0;
|
|
4
|
+
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
5
|
+
const address_1 = require("@wix/sdk-runtime/transformations/address");
|
|
6
|
+
const float_1 = require("@wix/sdk-runtime/transformations/float");
|
|
7
|
+
const image_1 = require("@wix/sdk-runtime/transformations/image");
|
|
8
|
+
const page_url_v2_1 = require("@wix/sdk-runtime/transformations/page-url-v2");
|
|
9
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
10
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
11
|
+
const sdk_types_1 = require("@wix/sdk-types");
|
|
12
|
+
const ecom_v1_cart_current_cart_universal_js_1 = require("./ecom-v1-cart-current-cart.universal.js");
|
|
13
|
+
exports.__metadata = { PACKAGE_NAME: '@wix/ecom' };
|
|
14
|
+
function getCurrentCart(httpClient) {
|
|
15
|
+
return () => (0, ecom_v1_cart_current_cart_universal_js_1.getCurrentCart)(
|
|
16
|
+
// @ts-ignore
|
|
17
|
+
{ httpClient });
|
|
18
|
+
}
|
|
19
|
+
exports.getCurrentCart = getCurrentCart;
|
|
20
|
+
function updateCurrentCart(httpClient) {
|
|
21
|
+
return (options) => (0, ecom_v1_cart_current_cart_universal_js_1.updateCurrentCart)(options,
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
{ httpClient });
|
|
24
|
+
}
|
|
25
|
+
exports.updateCurrentCart = updateCurrentCart;
|
|
26
|
+
function addToCurrentCart(httpClient) {
|
|
27
|
+
return (options) => (0, ecom_v1_cart_current_cart_universal_js_1.addToCurrentCart)(options,
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
{ httpClient });
|
|
30
|
+
}
|
|
31
|
+
exports.addToCurrentCart = addToCurrentCart;
|
|
32
|
+
function removeLineItemsFromCurrentCart(httpClient) {
|
|
33
|
+
return (lineItemIds) => (0, ecom_v1_cart_current_cart_universal_js_1.removeLineItemsFromCurrentCart)(lineItemIds,
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
{ httpClient });
|
|
36
|
+
}
|
|
37
|
+
exports.removeLineItemsFromCurrentCart = removeLineItemsFromCurrentCart;
|
|
38
|
+
function createCheckoutFromCurrentCart(httpClient) {
|
|
39
|
+
return (options) => (0, ecom_v1_cart_current_cart_universal_js_1.createCheckoutFromCurrentCart)(options,
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
{ httpClient });
|
|
42
|
+
}
|
|
43
|
+
exports.createCheckoutFromCurrentCart = createCheckoutFromCurrentCart;
|
|
44
|
+
function removeCouponFromCurrentCart(httpClient) {
|
|
45
|
+
return () => (0, ecom_v1_cart_current_cart_universal_js_1.removeCouponFromCurrentCart)(
|
|
46
|
+
// @ts-ignore
|
|
47
|
+
{ httpClient });
|
|
48
|
+
}
|
|
49
|
+
exports.removeCouponFromCurrentCart = removeCouponFromCurrentCart;
|
|
50
|
+
function updateCurrentCartLineItemQuantity(httpClient) {
|
|
51
|
+
return (lineItems) => (0, ecom_v1_cart_current_cart_universal_js_1.updateCurrentCartLineItemQuantity)(lineItems,
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
{ httpClient });
|
|
54
|
+
}
|
|
55
|
+
exports.updateCurrentCartLineItemQuantity = updateCurrentCartLineItemQuantity;
|
|
56
|
+
function estimateCurrentCartTotals(httpClient) {
|
|
57
|
+
return (options) => (0, ecom_v1_cart_current_cart_universal_js_1.estimateCurrentCartTotals)(options,
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
{ httpClient });
|
|
60
|
+
}
|
|
61
|
+
exports.estimateCurrentCartTotals = estimateCurrentCartTotals;
|
|
62
|
+
function deleteCurrentCart(httpClient) {
|
|
63
|
+
return () => (0, ecom_v1_cart_current_cart_universal_js_1.deleteCurrentCart)(
|
|
64
|
+
// @ts-ignore
|
|
65
|
+
{ httpClient });
|
|
66
|
+
}
|
|
67
|
+
exports.deleteCurrentCart = deleteCurrentCart;
|
|
68
|
+
exports.onCartDeleted = (0, sdk_types_1.EventDefinition)('wix.ecom.v1.cart_deleted', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
69
|
+
{
|
|
70
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
71
|
+
paths: [
|
|
72
|
+
{ path: 'undefined.createdDate' },
|
|
73
|
+
{ path: 'undefined.updatedDate' },
|
|
74
|
+
{
|
|
75
|
+
path: 'undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
|
|
76
|
+
},
|
|
77
|
+
{ path: 'undefined.lineItems.serviceProperties.scheduledDate' },
|
|
78
|
+
{ path: 'metadata.eventTime' },
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
transformFn: page_url_v2_1.transformRESTPageURLV2ToSDKPageURLV2,
|
|
83
|
+
paths: [{ path: 'undefined.lineItems.url' }],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
transformFn: image_1.transformRESTImageToSDKImage,
|
|
87
|
+
paths: [
|
|
88
|
+
{ path: 'undefined.lineItems.image' },
|
|
89
|
+
{ path: 'undefined.lineItems.catalogOverrideFields.image' },
|
|
90
|
+
],
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
transformFn: float_1.transformRESTFloatToSDKFloat,
|
|
94
|
+
paths: [
|
|
95
|
+
{ path: 'undefined.lineItems.physicalProperties.weight' },
|
|
96
|
+
{
|
|
97
|
+
path: 'undefined.lineItems.catalogOverrideFields.physicalProperties.weight',
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
transformFn: address_1.transformRESTAddressToSDKAddress,
|
|
103
|
+
paths: [{ path: 'undefined.contactInfo.address' }],
|
|
104
|
+
},
|
|
105
|
+
])))();
|
|
106
|
+
exports.onCartUpdated = (0, sdk_types_1.EventDefinition)('wix.ecom.v1.cart_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
107
|
+
{
|
|
108
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
109
|
+
paths: [
|
|
110
|
+
{ path: 'entity.createdDate' },
|
|
111
|
+
{ path: 'entity.updatedDate' },
|
|
112
|
+
{
|
|
113
|
+
path: 'entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
|
|
114
|
+
},
|
|
115
|
+
{ path: 'entity.lineItems.serviceProperties.scheduledDate' },
|
|
116
|
+
{ path: 'metadata.eventTime' },
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
transformFn: page_url_v2_1.transformRESTPageURLV2ToSDKPageURLV2,
|
|
121
|
+
paths: [{ path: 'entity.lineItems.url' }],
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
transformFn: image_1.transformRESTImageToSDKImage,
|
|
125
|
+
paths: [
|
|
126
|
+
{ path: 'entity.lineItems.image' },
|
|
127
|
+
{ path: 'entity.lineItems.catalogOverrideFields.image' },
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
transformFn: float_1.transformRESTFloatToSDKFloat,
|
|
132
|
+
paths: [
|
|
133
|
+
{ path: 'entity.lineItems.physicalProperties.weight' },
|
|
134
|
+
{
|
|
135
|
+
path: 'entity.lineItems.catalogOverrideFields.physicalProperties.weight',
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
transformFn: address_1.transformRESTAddressToSDKAddress,
|
|
141
|
+
paths: [{ path: 'entity.contactInfo.address' }],
|
|
142
|
+
},
|
|
143
|
+
])))();
|
|
144
|
+
exports.onCartCreated = (0, sdk_types_1.EventDefinition)('wix.ecom.v1.cart_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
145
|
+
{
|
|
146
|
+
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
147
|
+
paths: [
|
|
148
|
+
{ path: 'entity.createdDate' },
|
|
149
|
+
{ path: 'entity.updatedDate' },
|
|
150
|
+
{
|
|
151
|
+
path: 'entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
|
|
152
|
+
},
|
|
153
|
+
{ path: 'entity.lineItems.serviceProperties.scheduledDate' },
|
|
154
|
+
{ path: 'metadata.eventTime' },
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
transformFn: page_url_v2_1.transformRESTPageURLV2ToSDKPageURLV2,
|
|
159
|
+
paths: [{ path: 'entity.lineItems.url' }],
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
transformFn: image_1.transformRESTImageToSDKImage,
|
|
163
|
+
paths: [
|
|
164
|
+
{ path: 'entity.lineItems.image' },
|
|
165
|
+
{ path: 'entity.lineItems.catalogOverrideFields.image' },
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
transformFn: float_1.transformRESTFloatToSDKFloat,
|
|
170
|
+
paths: [
|
|
171
|
+
{ path: 'entity.lineItems.physicalProperties.weight' },
|
|
172
|
+
{
|
|
173
|
+
path: 'entity.lineItems.catalogOverrideFields.physicalProperties.weight',
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
transformFn: address_1.transformRESTAddressToSDKAddress,
|
|
179
|
+
paths: [{ path: 'entity.contactInfo.address' }],
|
|
180
|
+
},
|
|
181
|
+
])))();
|
|
182
|
+
var ecom_v1_cart_current_cart_universal_js_2 = require("./ecom-v1-cart-current-cart.universal.js");
|
|
183
|
+
Object.defineProperty(exports, "AdditionalFeeSource", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.AdditionalFeeSource; } });
|
|
184
|
+
Object.defineProperty(exports, "AppliedDiscountDiscountType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.AppliedDiscountDiscountType; } });
|
|
185
|
+
Object.defineProperty(exports, "ChannelType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.ChannelType; } });
|
|
186
|
+
Object.defineProperty(exports, "ChargeType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.ChargeType; } });
|
|
187
|
+
Object.defineProperty(exports, "DescriptionLineType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.DescriptionLineType; } });
|
|
188
|
+
Object.defineProperty(exports, "DiscountType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.DiscountType; } });
|
|
189
|
+
Object.defineProperty(exports, "FallbackReason", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.FallbackReason; } });
|
|
190
|
+
Object.defineProperty(exports, "FileType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.FileType; } });
|
|
191
|
+
Object.defineProperty(exports, "ItemAvailabilityStatus", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.ItemAvailabilityStatus; } });
|
|
192
|
+
Object.defineProperty(exports, "ItemTypeItemType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.ItemTypeItemType; } });
|
|
193
|
+
Object.defineProperty(exports, "JurisdictionType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.JurisdictionType; } });
|
|
194
|
+
Object.defineProperty(exports, "ManualCalculationReason", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.ManualCalculationReason; } });
|
|
195
|
+
Object.defineProperty(exports, "NameInLineItem", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.NameInLineItem; } });
|
|
196
|
+
Object.defineProperty(exports, "NameInOther", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.NameInOther; } });
|
|
197
|
+
Object.defineProperty(exports, "PaymentOptionType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.PaymentOptionType; } });
|
|
198
|
+
Object.defineProperty(exports, "PickupMethod", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.PickupMethod; } });
|
|
199
|
+
Object.defineProperty(exports, "RateType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.RateType; } });
|
|
200
|
+
Object.defineProperty(exports, "RuleType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.RuleType; } });
|
|
201
|
+
Object.defineProperty(exports, "Severity", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.Severity; } });
|
|
202
|
+
Object.defineProperty(exports, "SubscriptionFrequency", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.SubscriptionFrequency; } });
|
|
203
|
+
Object.defineProperty(exports, "SuggestedFix", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.SuggestedFix; } });
|
|
204
|
+
Object.defineProperty(exports, "TaxableAddressType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.TaxableAddressType; } });
|
|
205
|
+
Object.defineProperty(exports, "VatType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.VatType; } });
|
|
206
|
+
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.WebhookIdentityType; } });
|
|
207
|
+
Object.defineProperty(exports, "WeightUnit", { enumerable: true, get: function () { return ecom_v1_cart_current_cart_universal_js_2.WeightUnit; } });
|
|
208
|
+
//# sourceMappingURL=ecom-v1-cart-current-cart.public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ecom-v1-cart-current-cart.public.js","sourceRoot":"","sources":["../../../src/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