@wix/auto_sdk_pricing-plans_orders 1.0.120 → 1.0.121
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 +129 -129
- package/build/cjs/index.js +548 -548
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +787 -787
- package/build/cjs/index.typings.js +421 -421
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +484 -484
- package/build/cjs/meta.js +352 -352
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +199 -199
- package/build/cjs/schemas.js +885 -885
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +129 -129
- package/build/es/index.mjs +548 -548
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +787 -787
- package/build/es/index.typings.mjs +421 -421
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +484 -484
- package/build/es/meta.mjs +352 -352
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +199 -199
- package/build/es/schemas.mjs +885 -885
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +129 -129
- package/build/internal/cjs/index.js +548 -548
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +845 -786
- package/build/internal/cjs/index.typings.js +421 -421
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +578 -477
- package/build/internal/cjs/meta.js +352 -352
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +199 -199
- package/build/internal/cjs/schemas.js +885 -885
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +129 -129
- package/build/internal/es/index.mjs +548 -548
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +845 -786
- package/build/internal/es/index.typings.mjs +421 -421
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +578 -477
- package/build/internal/es/meta.mjs +352 -352
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +199 -199
- package/build/internal/es/schemas.mjs +885 -885
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -66,233 +66,239 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
66
66
|
};
|
|
67
67
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
70
70
|
const domainToMappings = {
|
|
71
71
|
"api._api_base_domain_": [
|
|
72
72
|
{
|
|
73
|
-
srcPath: "/
|
|
73
|
+
srcPath: "/order-management-service-proxy",
|
|
74
74
|
destPath: ""
|
|
75
75
|
}
|
|
76
76
|
],
|
|
77
77
|
"*.dev.wix-code.com": [
|
|
78
78
|
{
|
|
79
|
-
srcPath: "/_api/paid-plans/v2/
|
|
80
|
-
destPath: "/v2/
|
|
79
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
80
|
+
destPath: "/v2/orders"
|
|
81
81
|
}
|
|
82
82
|
],
|
|
83
83
|
"*.pub.wix-code.com": [
|
|
84
84
|
{
|
|
85
|
-
srcPath: "/_api/paid-plans/v2/
|
|
86
|
-
destPath: "/v2/
|
|
85
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
86
|
+
destPath: "/v2/orders"
|
|
87
87
|
}
|
|
88
88
|
],
|
|
89
89
|
"*.wixapps.net": [
|
|
90
90
|
{
|
|
91
|
-
srcPath: "/_api/paid-plans/v2/
|
|
92
|
-
destPath: "/v2/
|
|
91
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
92
|
+
destPath: "/v2/orders"
|
|
93
93
|
}
|
|
94
94
|
],
|
|
95
95
|
_: [
|
|
96
96
|
{
|
|
97
|
-
srcPath: "/
|
|
98
|
-
destPath: "/v2/
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
102
|
-
destPath: "/v2/checkout"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
106
|
-
destPath: "/v2/checkout"
|
|
97
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
98
|
+
destPath: "/v2/orders"
|
|
107
99
|
}
|
|
108
100
|
],
|
|
109
101
|
"editor-flow.wixapps.net": [
|
|
110
102
|
{
|
|
111
|
-
srcPath: "/_api/paid-plans/v2/
|
|
112
|
-
destPath: "/v2/
|
|
103
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
104
|
+
destPath: "/v2/orders"
|
|
113
105
|
}
|
|
114
106
|
],
|
|
115
107
|
"editor._base_domain_": [
|
|
116
108
|
{
|
|
117
|
-
srcPath: "/_api/paid-plans/v2/
|
|
118
|
-
destPath: "/v2/
|
|
109
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
110
|
+
destPath: "/v2/orders"
|
|
119
111
|
}
|
|
120
112
|
],
|
|
121
113
|
"blocks._base_domain_": [
|
|
122
114
|
{
|
|
123
|
-
srcPath: "/_api/paid-plans/v2/
|
|
124
|
-
destPath: "/v2/
|
|
115
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
116
|
+
destPath: "/v2/orders"
|
|
125
117
|
}
|
|
126
118
|
],
|
|
127
119
|
"create.editorx": [
|
|
128
120
|
{
|
|
129
|
-
srcPath: "/_api/paid-plans/v2/
|
|
130
|
-
destPath: "/v2/
|
|
121
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
122
|
+
destPath: "/v2/orders"
|
|
131
123
|
}
|
|
132
124
|
],
|
|
133
125
|
"editor.wixapps.net": [
|
|
134
126
|
{
|
|
135
|
-
srcPath: "/_api/paid-plans/v2/
|
|
136
|
-
destPath: "/v2/
|
|
127
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
128
|
+
destPath: "/v2/orders"
|
|
137
129
|
}
|
|
138
130
|
],
|
|
139
131
|
"forums._base_domain_": [
|
|
140
132
|
{
|
|
141
|
-
srcPath: "/_api/paid-plans/v2/
|
|
142
|
-
destPath: "/v2/
|
|
133
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
134
|
+
destPath: "/v2/orders"
|
|
143
135
|
}
|
|
144
136
|
],
|
|
145
137
|
"forums.wixapps.net": [
|
|
146
138
|
{
|
|
147
|
-
srcPath: "/_api/paid-plans/v2/
|
|
148
|
-
destPath: "/v2/
|
|
139
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
140
|
+
destPath: "/v2/orders"
|
|
149
141
|
}
|
|
150
142
|
],
|
|
151
143
|
"manage._base_domain_": [
|
|
152
144
|
{
|
|
153
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
154
|
-
destPath: "/v2/
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
158
|
-
destPath: "/v2/checkout"
|
|
145
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
146
|
+
destPath: "/v2/orders"
|
|
159
147
|
},
|
|
160
148
|
{
|
|
161
|
-
srcPath: "/
|
|
162
|
-
destPath: "/v2/
|
|
149
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
150
|
+
destPath: "/v2/orders"
|
|
163
151
|
}
|
|
164
152
|
],
|
|
165
153
|
"www._base_domain_": [
|
|
166
154
|
{
|
|
167
|
-
srcPath: "/_api/paid-plans/v2/
|
|
168
|
-
destPath: "/v2/
|
|
155
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
156
|
+
destPath: "/v2/orders"
|
|
169
157
|
}
|
|
170
158
|
],
|
|
171
159
|
"www.wixapis.com": [
|
|
172
160
|
{
|
|
173
|
-
srcPath: "/pricing-plans/v2/
|
|
174
|
-
destPath: "/v2/
|
|
161
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
162
|
+
destPath: "/v2/orders"
|
|
175
163
|
}
|
|
176
164
|
]
|
|
177
165
|
};
|
|
178
166
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
179
167
|
}
|
|
180
|
-
function
|
|
168
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
181
169
|
const domainToMappings = {
|
|
182
170
|
"api._api_base_domain_": [
|
|
183
171
|
{
|
|
184
|
-
srcPath: "/
|
|
172
|
+
srcPath: "/pricing-plans-checkout-proxy",
|
|
185
173
|
destPath: ""
|
|
186
174
|
}
|
|
187
175
|
],
|
|
188
176
|
"*.dev.wix-code.com": [
|
|
189
177
|
{
|
|
190
|
-
srcPath: "/_api/paid-plans/v2/
|
|
191
|
-
destPath: "/v2/
|
|
178
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
179
|
+
destPath: "/v2/checkout"
|
|
192
180
|
}
|
|
193
181
|
],
|
|
194
182
|
"*.pub.wix-code.com": [
|
|
195
183
|
{
|
|
196
|
-
srcPath: "/_api/paid-plans/v2/
|
|
197
|
-
destPath: "/v2/
|
|
184
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
185
|
+
destPath: "/v2/checkout"
|
|
198
186
|
}
|
|
199
187
|
],
|
|
200
188
|
"*.wixapps.net": [
|
|
201
189
|
{
|
|
202
|
-
srcPath: "/_api/paid-plans/v2/
|
|
203
|
-
destPath: "/v2/
|
|
190
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
191
|
+
destPath: "/v2/checkout"
|
|
204
192
|
}
|
|
205
193
|
],
|
|
206
194
|
_: [
|
|
207
195
|
{
|
|
208
|
-
srcPath: "/
|
|
209
|
-
destPath: "/v2/
|
|
196
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
197
|
+
destPath: "/v2/checkout"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
201
|
+
destPath: "/v2/checkout"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
205
|
+
destPath: "/v2/checkout"
|
|
210
206
|
}
|
|
211
207
|
],
|
|
212
208
|
"editor-flow.wixapps.net": [
|
|
213
209
|
{
|
|
214
|
-
srcPath: "/_api/paid-plans/v2/
|
|
215
|
-
destPath: "/v2/
|
|
210
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
211
|
+
destPath: "/v2/checkout"
|
|
216
212
|
}
|
|
217
213
|
],
|
|
218
214
|
"editor._base_domain_": [
|
|
219
215
|
{
|
|
220
|
-
srcPath: "/_api/paid-plans/v2/
|
|
221
|
-
destPath: "/v2/
|
|
216
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
217
|
+
destPath: "/v2/checkout"
|
|
222
218
|
}
|
|
223
219
|
],
|
|
224
220
|
"blocks._base_domain_": [
|
|
225
221
|
{
|
|
226
|
-
srcPath: "/_api/paid-plans/v2/
|
|
227
|
-
destPath: "/v2/
|
|
222
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
223
|
+
destPath: "/v2/checkout"
|
|
228
224
|
}
|
|
229
225
|
],
|
|
230
226
|
"create.editorx": [
|
|
231
227
|
{
|
|
232
|
-
srcPath: "/_api/paid-plans/v2/
|
|
233
|
-
destPath: "/v2/
|
|
228
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
229
|
+
destPath: "/v2/checkout"
|
|
234
230
|
}
|
|
235
231
|
],
|
|
236
232
|
"editor.wixapps.net": [
|
|
237
233
|
{
|
|
238
|
-
srcPath: "/_api/paid-plans/v2/
|
|
239
|
-
destPath: "/v2/
|
|
234
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
235
|
+
destPath: "/v2/checkout"
|
|
240
236
|
}
|
|
241
237
|
],
|
|
242
238
|
"forums._base_domain_": [
|
|
243
239
|
{
|
|
244
|
-
srcPath: "/_api/paid-plans/v2/
|
|
245
|
-
destPath: "/v2/
|
|
240
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
241
|
+
destPath: "/v2/checkout"
|
|
246
242
|
}
|
|
247
243
|
],
|
|
248
244
|
"forums.wixapps.net": [
|
|
249
245
|
{
|
|
250
|
-
srcPath: "/_api/paid-plans/v2/
|
|
251
|
-
destPath: "/v2/
|
|
246
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
247
|
+
destPath: "/v2/checkout"
|
|
252
248
|
}
|
|
253
249
|
],
|
|
254
250
|
"manage._base_domain_": [
|
|
255
251
|
{
|
|
256
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
257
|
-
destPath: "/v2/
|
|
252
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
253
|
+
destPath: "/v2/checkout"
|
|
258
254
|
},
|
|
259
255
|
{
|
|
260
|
-
srcPath: "/_api/paid-plans/v2/
|
|
261
|
-
destPath: "/v2/
|
|
256
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
257
|
+
destPath: "/v2/checkout"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
261
|
+
destPath: "/v2/checkout"
|
|
262
262
|
}
|
|
263
263
|
],
|
|
264
264
|
"www._base_domain_": [
|
|
265
265
|
{
|
|
266
|
-
srcPath: "/_api/paid-plans/v2/
|
|
267
|
-
destPath: "/v2/
|
|
266
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
267
|
+
destPath: "/v2/checkout"
|
|
268
268
|
}
|
|
269
269
|
],
|
|
270
270
|
"www.wixapis.com": [
|
|
271
271
|
{
|
|
272
|
-
srcPath: "/pricing-plans/v2/
|
|
273
|
-
destPath: "/v2/
|
|
272
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
273
|
+
destPath: "/v2/checkout"
|
|
274
274
|
}
|
|
275
275
|
]
|
|
276
276
|
};
|
|
277
277
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
278
278
|
}
|
|
279
279
|
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
280
|
-
function
|
|
281
|
-
function
|
|
280
|
+
function createOnlineOrder(payload) {
|
|
281
|
+
function __createOnlineOrder({ host }) {
|
|
282
|
+
const serializedData = transformPaths(payload, [
|
|
283
|
+
{
|
|
284
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
285
|
+
paths: [{ path: "startDate" }]
|
|
286
|
+
}
|
|
287
|
+
]);
|
|
282
288
|
const metadata = {
|
|
283
289
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
284
|
-
method: "
|
|
285
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
290
|
+
method: "POST",
|
|
291
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
286
292
|
packageName: PACKAGE_NAME,
|
|
287
293
|
migrationOptions: {
|
|
288
294
|
optInTransformResponse: true
|
|
289
295
|
},
|
|
290
|
-
url:
|
|
291
|
-
protoPath: "/v2/orders/
|
|
292
|
-
data:
|
|
296
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
297
|
+
protoPath: "/v2/checkout/orders/online",
|
|
298
|
+
data: serializedData,
|
|
293
299
|
host
|
|
294
300
|
}),
|
|
295
|
-
|
|
301
|
+
data: serializedData,
|
|
296
302
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
297
303
|
{
|
|
298
304
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -315,138 +321,158 @@ function managementGetOrder(payload) {
|
|
|
315
321
|
};
|
|
316
322
|
return metadata;
|
|
317
323
|
}
|
|
318
|
-
return
|
|
324
|
+
return __createOnlineOrder;
|
|
319
325
|
}
|
|
320
|
-
function
|
|
321
|
-
function
|
|
326
|
+
function createOfflineOrder(payload) {
|
|
327
|
+
function __createOfflineOrder({ host }) {
|
|
322
328
|
const serializedData = transformPaths(payload, [
|
|
323
329
|
{
|
|
324
|
-
transformFn:
|
|
325
|
-
paths: [
|
|
326
|
-
{ path: "sorting.origin.latitude" },
|
|
327
|
-
{ path: "sorting.origin.longitude" }
|
|
328
|
-
]
|
|
330
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
331
|
+
paths: [{ path: "startDate" }]
|
|
329
332
|
}
|
|
330
333
|
]);
|
|
331
334
|
const metadata = {
|
|
332
335
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
333
|
-
method: "
|
|
334
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
336
|
+
method: "POST",
|
|
337
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
335
338
|
packageName: PACKAGE_NAME,
|
|
336
339
|
migrationOptions: {
|
|
337
340
|
optInTransformResponse: true
|
|
338
341
|
},
|
|
339
|
-
url:
|
|
340
|
-
protoPath: "/v2/orders",
|
|
342
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
343
|
+
protoPath: "/v2/checkout/orders/offline",
|
|
341
344
|
data: serializedData,
|
|
342
345
|
host
|
|
343
346
|
}),
|
|
344
|
-
|
|
347
|
+
data: serializedData,
|
|
345
348
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
346
349
|
{
|
|
347
350
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
348
351
|
paths: [
|
|
349
|
-
{ path: "
|
|
350
|
-
{ path: "
|
|
351
|
-
{ path: "
|
|
352
|
-
{ path: "
|
|
353
|
-
{ path: "
|
|
354
|
-
{ path: "
|
|
355
|
-
{ path: "
|
|
356
|
-
{ path: "
|
|
357
|
-
{ path: "
|
|
358
|
-
{ path: "
|
|
359
|
-
{ path: "
|
|
360
|
-
{ path: "
|
|
352
|
+
{ path: "order.startDate" },
|
|
353
|
+
{ path: "order.endDate" },
|
|
354
|
+
{ path: "order.earliestEndDate" },
|
|
355
|
+
{ path: "order.createdDate" },
|
|
356
|
+
{ path: "order.updatedDate" },
|
|
357
|
+
{ path: "order.cancellation.requestedDate" },
|
|
358
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
359
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
360
|
+
{ path: "order.currentCycle.startedDate" },
|
|
361
|
+
{ path: "order.currentCycle.endedDate" },
|
|
362
|
+
{ path: "order.cycles.startedDate" },
|
|
363
|
+
{ path: "order.cycles.endedDate" }
|
|
361
364
|
]
|
|
362
365
|
}
|
|
363
366
|
])
|
|
364
367
|
};
|
|
365
368
|
return metadata;
|
|
366
369
|
}
|
|
367
|
-
return
|
|
370
|
+
return __createOfflineOrder;
|
|
368
371
|
}
|
|
369
|
-
function
|
|
370
|
-
function
|
|
372
|
+
function getOnlineOrderPreview(payload) {
|
|
373
|
+
function __getOnlineOrderPreview({ host }) {
|
|
371
374
|
const serializedData = transformPaths(payload, [
|
|
372
375
|
{
|
|
373
376
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
374
|
-
paths: [{ path: "
|
|
377
|
+
paths: [{ path: "startDate" }]
|
|
375
378
|
}
|
|
376
379
|
]);
|
|
377
|
-
const metadata = {
|
|
378
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
379
|
-
method: "PATCH",
|
|
380
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
381
|
-
packageName: PACKAGE_NAME,
|
|
382
|
-
migrationOptions: {
|
|
383
|
-
optInTransformResponse: true
|
|
384
|
-
},
|
|
385
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
386
|
-
protoPath: "/v2/orders/{id}",
|
|
387
|
-
data: serializedData,
|
|
388
|
-
host
|
|
389
|
-
}),
|
|
390
|
-
data: serializedData
|
|
391
|
-
};
|
|
392
|
-
return metadata;
|
|
393
|
-
}
|
|
394
|
-
return __postponeEndDate;
|
|
395
|
-
}
|
|
396
|
-
function cancelOrder(payload) {
|
|
397
|
-
function __cancelOrder({ host }) {
|
|
398
380
|
const metadata = {
|
|
399
381
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
400
382
|
method: "POST",
|
|
401
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
383
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
|
|
402
384
|
packageName: PACKAGE_NAME,
|
|
403
385
|
migrationOptions: {
|
|
404
386
|
optInTransformResponse: true
|
|
405
387
|
},
|
|
406
|
-
url:
|
|
407
|
-
protoPath: "/v2/orders/
|
|
408
|
-
data:
|
|
388
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
389
|
+
protoPath: "/v2/checkout/orders/preview-online",
|
|
390
|
+
data: serializedData,
|
|
409
391
|
host
|
|
410
392
|
}),
|
|
411
|
-
data:
|
|
393
|
+
data: serializedData,
|
|
394
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
395
|
+
{
|
|
396
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
397
|
+
paths: [
|
|
398
|
+
{ path: "order.startDate" },
|
|
399
|
+
{ path: "order.endDate" },
|
|
400
|
+
{ path: "order.earliestEndDate" },
|
|
401
|
+
{ path: "order.createdDate" },
|
|
402
|
+
{ path: "order.updatedDate" },
|
|
403
|
+
{ path: "order.cancellation.requestedDate" },
|
|
404
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
405
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
406
|
+
{ path: "order.currentCycle.startedDate" },
|
|
407
|
+
{ path: "order.currentCycle.endedDate" },
|
|
408
|
+
{ path: "order.cycles.startedDate" },
|
|
409
|
+
{ path: "order.cycles.endedDate" }
|
|
410
|
+
]
|
|
411
|
+
}
|
|
412
|
+
])
|
|
412
413
|
};
|
|
413
414
|
return metadata;
|
|
414
415
|
}
|
|
415
|
-
return
|
|
416
|
+
return __getOnlineOrderPreview;
|
|
416
417
|
}
|
|
417
|
-
function
|
|
418
|
-
function
|
|
418
|
+
function getOfflineOrderPreview(payload) {
|
|
419
|
+
function __getOfflineOrderPreview({ host }) {
|
|
420
|
+
const serializedData = transformPaths(payload, [
|
|
421
|
+
{
|
|
422
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
423
|
+
paths: [{ path: "startDate" }]
|
|
424
|
+
}
|
|
425
|
+
]);
|
|
419
426
|
const metadata = {
|
|
420
427
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
421
428
|
method: "POST",
|
|
422
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
429
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
|
|
423
430
|
packageName: PACKAGE_NAME,
|
|
424
431
|
migrationOptions: {
|
|
425
432
|
optInTransformResponse: true
|
|
426
433
|
},
|
|
427
|
-
url:
|
|
428
|
-
protoPath: "/v2/orders/
|
|
429
|
-
data:
|
|
434
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
435
|
+
protoPath: "/v2/checkout/orders/preview-offline",
|
|
436
|
+
data: serializedData,
|
|
430
437
|
host
|
|
431
438
|
}),
|
|
432
|
-
data:
|
|
439
|
+
data: serializedData,
|
|
440
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
441
|
+
{
|
|
442
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
443
|
+
paths: [
|
|
444
|
+
{ path: "order.startDate" },
|
|
445
|
+
{ path: "order.endDate" },
|
|
446
|
+
{ path: "order.earliestEndDate" },
|
|
447
|
+
{ path: "order.createdDate" },
|
|
448
|
+
{ path: "order.updatedDate" },
|
|
449
|
+
{ path: "order.cancellation.requestedDate" },
|
|
450
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
451
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
452
|
+
{ path: "order.currentCycle.startedDate" },
|
|
453
|
+
{ path: "order.currentCycle.endedDate" },
|
|
454
|
+
{ path: "order.cycles.startedDate" },
|
|
455
|
+
{ path: "order.cycles.endedDate" }
|
|
456
|
+
]
|
|
457
|
+
}
|
|
458
|
+
])
|
|
433
459
|
};
|
|
434
460
|
return metadata;
|
|
435
461
|
}
|
|
436
|
-
return
|
|
462
|
+
return __getOfflineOrderPreview;
|
|
437
463
|
}
|
|
438
|
-
function
|
|
439
|
-
function
|
|
464
|
+
function getPricePreview(payload) {
|
|
465
|
+
function __getPricePreview({ host }) {
|
|
440
466
|
const metadata = {
|
|
441
467
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
442
468
|
method: "POST",
|
|
443
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
469
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
|
|
444
470
|
packageName: PACKAGE_NAME,
|
|
445
471
|
migrationOptions: {
|
|
446
472
|
optInTransformResponse: true
|
|
447
473
|
},
|
|
448
|
-
url:
|
|
449
|
-
protoPath: "/v2/orders/
|
|
474
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
475
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
450
476
|
data: payload,
|
|
451
477
|
host
|
|
452
478
|
}),
|
|
@@ -454,51 +480,24 @@ function pauseOrder(payload) {
|
|
|
454
480
|
};
|
|
455
481
|
return metadata;
|
|
456
482
|
}
|
|
457
|
-
return
|
|
483
|
+
return __getPricePreview;
|
|
458
484
|
}
|
|
459
|
-
function
|
|
460
|
-
function
|
|
485
|
+
function managementGetOrder(payload) {
|
|
486
|
+
function __managementGetOrder({ host }) {
|
|
461
487
|
const metadata = {
|
|
462
488
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
463
|
-
method: "
|
|
464
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.
|
|
489
|
+
method: "GET",
|
|
490
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
465
491
|
packageName: PACKAGE_NAME,
|
|
466
492
|
migrationOptions: {
|
|
467
493
|
optInTransformResponse: true
|
|
468
494
|
},
|
|
469
495
|
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
470
|
-
protoPath: "/v2/orders/{id}
|
|
496
|
+
protoPath: "/v2/orders/{id}",
|
|
471
497
|
data: payload,
|
|
472
498
|
host
|
|
473
499
|
}),
|
|
474
|
-
|
|
475
|
-
};
|
|
476
|
-
return metadata;
|
|
477
|
-
}
|
|
478
|
-
return __resumeOrder;
|
|
479
|
-
}
|
|
480
|
-
function createOnlineOrder(payload) {
|
|
481
|
-
function __createOnlineOrder({ host }) {
|
|
482
|
-
const serializedData = transformPaths(payload, [
|
|
483
|
-
{
|
|
484
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
485
|
-
paths: [{ path: "startDate" }]
|
|
486
|
-
}
|
|
487
|
-
]);
|
|
488
|
-
const metadata = {
|
|
489
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
490
|
-
method: "POST",
|
|
491
|
-
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
492
|
-
packageName: PACKAGE_NAME,
|
|
493
|
-
migrationOptions: {
|
|
494
|
-
optInTransformResponse: true
|
|
495
|
-
},
|
|
496
|
-
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
497
|
-
protoPath: "/v2/checkout/orders/online",
|
|
498
|
-
data: serializedData,
|
|
499
|
-
host
|
|
500
|
-
}),
|
|
501
|
-
data: serializedData,
|
|
500
|
+
params: toURLSearchParams(payload),
|
|
502
501
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
503
502
|
{
|
|
504
503
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -521,158 +520,159 @@ function createOnlineOrder(payload) {
|
|
|
521
520
|
};
|
|
522
521
|
return metadata;
|
|
523
522
|
}
|
|
524
|
-
return
|
|
523
|
+
return __managementGetOrder;
|
|
525
524
|
}
|
|
526
|
-
function
|
|
527
|
-
function
|
|
525
|
+
function managementListOrders(payload) {
|
|
526
|
+
function __managementListOrders({ host }) {
|
|
528
527
|
const serializedData = transformPaths(payload, [
|
|
529
528
|
{
|
|
530
|
-
transformFn:
|
|
531
|
-
paths: [
|
|
529
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
530
|
+
paths: [
|
|
531
|
+
{ path: "sorting.origin.latitude" },
|
|
532
|
+
{ path: "sorting.origin.longitude" }
|
|
533
|
+
]
|
|
532
534
|
}
|
|
533
535
|
]);
|
|
534
536
|
const metadata = {
|
|
535
537
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
536
|
-
method: "
|
|
537
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
538
|
+
method: "GET",
|
|
539
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
538
540
|
packageName: PACKAGE_NAME,
|
|
539
541
|
migrationOptions: {
|
|
540
542
|
optInTransformResponse: true
|
|
541
543
|
},
|
|
542
|
-
url:
|
|
543
|
-
protoPath: "/v2/
|
|
544
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
545
|
+
protoPath: "/v2/orders",
|
|
544
546
|
data: serializedData,
|
|
545
547
|
host
|
|
546
548
|
}),
|
|
547
|
-
|
|
549
|
+
params: toURLSearchParams(serializedData, true),
|
|
548
550
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
549
551
|
{
|
|
550
552
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
551
553
|
paths: [
|
|
552
|
-
{ path: "
|
|
553
|
-
{ path: "
|
|
554
|
-
{ path: "
|
|
555
|
-
{ path: "
|
|
556
|
-
{ path: "
|
|
557
|
-
{ path: "
|
|
558
|
-
{ path: "
|
|
559
|
-
{ path: "
|
|
560
|
-
{ path: "
|
|
561
|
-
{ path: "
|
|
562
|
-
{ path: "
|
|
563
|
-
{ path: "
|
|
554
|
+
{ path: "orders.startDate" },
|
|
555
|
+
{ path: "orders.endDate" },
|
|
556
|
+
{ path: "orders.earliestEndDate" },
|
|
557
|
+
{ path: "orders.createdDate" },
|
|
558
|
+
{ path: "orders.updatedDate" },
|
|
559
|
+
{ path: "orders.cancellation.requestedDate" },
|
|
560
|
+
{ path: "orders.pausePeriods.pauseDate" },
|
|
561
|
+
{ path: "orders.pausePeriods.resumeDate" },
|
|
562
|
+
{ path: "orders.currentCycle.startedDate" },
|
|
563
|
+
{ path: "orders.currentCycle.endedDate" },
|
|
564
|
+
{ path: "orders.cycles.startedDate" },
|
|
565
|
+
{ path: "orders.cycles.endedDate" }
|
|
564
566
|
]
|
|
565
567
|
}
|
|
566
568
|
])
|
|
567
569
|
};
|
|
568
570
|
return metadata;
|
|
569
571
|
}
|
|
570
|
-
return
|
|
572
|
+
return __managementListOrders;
|
|
573
|
+
}
|
|
574
|
+
function postponeEndDate(payload) {
|
|
575
|
+
function __postponeEndDate({ host }) {
|
|
576
|
+
const serializedData = transformPaths(payload, [
|
|
577
|
+
{
|
|
578
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
579
|
+
paths: [{ path: "endDate" }]
|
|
580
|
+
}
|
|
581
|
+
]);
|
|
582
|
+
const metadata = {
|
|
583
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
584
|
+
method: "PATCH",
|
|
585
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
586
|
+
packageName: PACKAGE_NAME,
|
|
587
|
+
migrationOptions: {
|
|
588
|
+
optInTransformResponse: true
|
|
589
|
+
},
|
|
590
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
591
|
+
protoPath: "/v2/orders/{id}",
|
|
592
|
+
data: serializedData,
|
|
593
|
+
host
|
|
594
|
+
}),
|
|
595
|
+
data: serializedData
|
|
596
|
+
};
|
|
597
|
+
return metadata;
|
|
598
|
+
}
|
|
599
|
+
return __postponeEndDate;
|
|
600
|
+
}
|
|
601
|
+
function cancelOrder(payload) {
|
|
602
|
+
function __cancelOrder({ host }) {
|
|
603
|
+
const metadata = {
|
|
604
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
605
|
+
method: "POST",
|
|
606
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
607
|
+
packageName: PACKAGE_NAME,
|
|
608
|
+
migrationOptions: {
|
|
609
|
+
optInTransformResponse: true
|
|
610
|
+
},
|
|
611
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
612
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
613
|
+
data: payload,
|
|
614
|
+
host
|
|
615
|
+
}),
|
|
616
|
+
data: payload
|
|
617
|
+
};
|
|
618
|
+
return metadata;
|
|
619
|
+
}
|
|
620
|
+
return __cancelOrder;
|
|
571
621
|
}
|
|
572
|
-
function
|
|
573
|
-
function
|
|
574
|
-
const serializedData = transformPaths(payload, [
|
|
575
|
-
{
|
|
576
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
577
|
-
paths: [{ path: "startDate" }]
|
|
578
|
-
}
|
|
579
|
-
]);
|
|
622
|
+
function markAsPaid(payload) {
|
|
623
|
+
function __markAsPaid({ host }) {
|
|
580
624
|
const metadata = {
|
|
581
625
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
582
626
|
method: "POST",
|
|
583
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
627
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
584
628
|
packageName: PACKAGE_NAME,
|
|
585
629
|
migrationOptions: {
|
|
586
630
|
optInTransformResponse: true
|
|
587
631
|
},
|
|
588
|
-
url:
|
|
589
|
-
protoPath: "/v2/
|
|
590
|
-
data:
|
|
632
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
633
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
634
|
+
data: payload,
|
|
591
635
|
host
|
|
592
636
|
}),
|
|
593
|
-
data:
|
|
594
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
595
|
-
{
|
|
596
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
597
|
-
paths: [
|
|
598
|
-
{ path: "order.startDate" },
|
|
599
|
-
{ path: "order.endDate" },
|
|
600
|
-
{ path: "order.earliestEndDate" },
|
|
601
|
-
{ path: "order.createdDate" },
|
|
602
|
-
{ path: "order.updatedDate" },
|
|
603
|
-
{ path: "order.cancellation.requestedDate" },
|
|
604
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
605
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
606
|
-
{ path: "order.currentCycle.startedDate" },
|
|
607
|
-
{ path: "order.currentCycle.endedDate" },
|
|
608
|
-
{ path: "order.cycles.startedDate" },
|
|
609
|
-
{ path: "order.cycles.endedDate" }
|
|
610
|
-
]
|
|
611
|
-
}
|
|
612
|
-
])
|
|
637
|
+
data: payload
|
|
613
638
|
};
|
|
614
639
|
return metadata;
|
|
615
640
|
}
|
|
616
|
-
return
|
|
641
|
+
return __markAsPaid;
|
|
617
642
|
}
|
|
618
|
-
function
|
|
619
|
-
function
|
|
620
|
-
const serializedData = transformPaths(payload, [
|
|
621
|
-
{
|
|
622
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
623
|
-
paths: [{ path: "startDate" }]
|
|
624
|
-
}
|
|
625
|
-
]);
|
|
643
|
+
function pauseOrder(payload) {
|
|
644
|
+
function __pauseOrder({ host }) {
|
|
626
645
|
const metadata = {
|
|
627
646
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
628
647
|
method: "POST",
|
|
629
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
648
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
630
649
|
packageName: PACKAGE_NAME,
|
|
631
650
|
migrationOptions: {
|
|
632
651
|
optInTransformResponse: true
|
|
633
652
|
},
|
|
634
|
-
url:
|
|
635
|
-
protoPath: "/v2/
|
|
636
|
-
data:
|
|
653
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
654
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
655
|
+
data: payload,
|
|
637
656
|
host
|
|
638
657
|
}),
|
|
639
|
-
data:
|
|
640
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
641
|
-
{
|
|
642
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
643
|
-
paths: [
|
|
644
|
-
{ path: "order.startDate" },
|
|
645
|
-
{ path: "order.endDate" },
|
|
646
|
-
{ path: "order.earliestEndDate" },
|
|
647
|
-
{ path: "order.createdDate" },
|
|
648
|
-
{ path: "order.updatedDate" },
|
|
649
|
-
{ path: "order.cancellation.requestedDate" },
|
|
650
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
651
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
652
|
-
{ path: "order.currentCycle.startedDate" },
|
|
653
|
-
{ path: "order.currentCycle.endedDate" },
|
|
654
|
-
{ path: "order.cycles.startedDate" },
|
|
655
|
-
{ path: "order.cycles.endedDate" }
|
|
656
|
-
]
|
|
657
|
-
}
|
|
658
|
-
])
|
|
658
|
+
data: payload
|
|
659
659
|
};
|
|
660
660
|
return metadata;
|
|
661
661
|
}
|
|
662
|
-
return
|
|
662
|
+
return __pauseOrder;
|
|
663
663
|
}
|
|
664
|
-
function
|
|
665
|
-
function
|
|
664
|
+
function resumeOrder(payload) {
|
|
665
|
+
function __resumeOrder({ host }) {
|
|
666
666
|
const metadata = {
|
|
667
667
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
668
668
|
method: "POST",
|
|
669
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
669
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
670
670
|
packageName: PACKAGE_NAME,
|
|
671
671
|
migrationOptions: {
|
|
672
672
|
optInTransformResponse: true
|
|
673
673
|
},
|
|
674
|
-
url:
|
|
675
|
-
protoPath: "/v2/
|
|
674
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
675
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
676
676
|
data: payload,
|
|
677
677
|
host
|
|
678
678
|
}),
|
|
@@ -680,7 +680,7 @@ function getPricePreview(payload) {
|
|
|
680
680
|
};
|
|
681
681
|
return metadata;
|
|
682
682
|
}
|
|
683
|
-
return
|
|
683
|
+
return __resumeOrder;
|
|
684
684
|
}
|
|
685
685
|
function memberGetOrder(payload) {
|
|
686
686
|
function __memberGetOrder({ host }) {
|
|
@@ -856,6 +856,14 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
856
856
|
Status2["ENDED"] = "ENDED";
|
|
857
857
|
return Status2;
|
|
858
858
|
})(Status || {});
|
|
859
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
860
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
861
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
862
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
863
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
864
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
865
|
+
return WebhookIdentityType2;
|
|
866
|
+
})(WebhookIdentityType || {});
|
|
859
867
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
860
868
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
861
869
|
Set2["BASIC"] = "BASIC";
|
|
@@ -878,45 +886,37 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
878
886
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
879
887
|
return ReasonNotSuspendable2;
|
|
880
888
|
})(ReasonNotSuspendable || {});
|
|
881
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
882
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
883
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
884
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
885
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
886
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
887
|
-
return WebhookIdentityType2;
|
|
888
|
-
})(WebhookIdentityType || {});
|
|
889
889
|
|
|
890
890
|
// src/pricing-plans-v2-order-orders.meta.ts
|
|
891
|
-
function
|
|
892
|
-
const payload = {
|
|
893
|
-
const getRequestOptions =
|
|
891
|
+
function createOnlineOrder2() {
|
|
892
|
+
const payload = {};
|
|
893
|
+
const getRequestOptions = createOnlineOrder(payload);
|
|
894
894
|
const getUrl = (context) => {
|
|
895
895
|
const { url } = getRequestOptions(context);
|
|
896
896
|
return url;
|
|
897
897
|
};
|
|
898
898
|
return {
|
|
899
899
|
getUrl,
|
|
900
|
-
httpMethod: "
|
|
901
|
-
path: "/v2/orders/
|
|
902
|
-
pathParams: {
|
|
900
|
+
httpMethod: "POST",
|
|
901
|
+
path: "/v2/checkout/orders/online",
|
|
902
|
+
pathParams: {},
|
|
903
903
|
__requestType: null,
|
|
904
904
|
__originalRequestType: null,
|
|
905
905
|
__responseType: null,
|
|
906
906
|
__originalResponseType: null
|
|
907
907
|
};
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function createOfflineOrder2() {
|
|
910
910
|
const payload = {};
|
|
911
|
-
const getRequestOptions =
|
|
911
|
+
const getRequestOptions = createOfflineOrder(payload);
|
|
912
912
|
const getUrl = (context) => {
|
|
913
913
|
const { url } = getRequestOptions(context);
|
|
914
914
|
return url;
|
|
915
915
|
};
|
|
916
916
|
return {
|
|
917
917
|
getUrl,
|
|
918
|
-
httpMethod: "
|
|
919
|
-
path: "/v2/orders",
|
|
918
|
+
httpMethod: "POST",
|
|
919
|
+
path: "/v2/checkout/orders/offline",
|
|
920
920
|
pathParams: {},
|
|
921
921
|
__requestType: null,
|
|
922
922
|
__originalRequestType: null,
|
|
@@ -924,27 +924,27 @@ function managementListOrders2() {
|
|
|
924
924
|
__originalResponseType: null
|
|
925
925
|
};
|
|
926
926
|
}
|
|
927
|
-
function
|
|
928
|
-
const payload = {
|
|
929
|
-
const getRequestOptions =
|
|
927
|
+
function getOnlineOrderPreview2() {
|
|
928
|
+
const payload = {};
|
|
929
|
+
const getRequestOptions = getOnlineOrderPreview(payload);
|
|
930
930
|
const getUrl = (context) => {
|
|
931
931
|
const { url } = getRequestOptions(context);
|
|
932
932
|
return url;
|
|
933
933
|
};
|
|
934
934
|
return {
|
|
935
935
|
getUrl,
|
|
936
|
-
httpMethod: "
|
|
937
|
-
path: "/v2/orders/
|
|
938
|
-
pathParams: {
|
|
936
|
+
httpMethod: "POST",
|
|
937
|
+
path: "/v2/checkout/orders/preview-online",
|
|
938
|
+
pathParams: {},
|
|
939
939
|
__requestType: null,
|
|
940
940
|
__originalRequestType: null,
|
|
941
941
|
__responseType: null,
|
|
942
942
|
__originalResponseType: null
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
|
-
function
|
|
946
|
-
const payload = {
|
|
947
|
-
const getRequestOptions =
|
|
945
|
+
function getOfflineOrderPreview2() {
|
|
946
|
+
const payload = {};
|
|
947
|
+
const getRequestOptions = getOfflineOrderPreview(payload);
|
|
948
948
|
const getUrl = (context) => {
|
|
949
949
|
const { url } = getRequestOptions(context);
|
|
950
950
|
return url;
|
|
@@ -952,17 +952,17 @@ function cancelOrder2() {
|
|
|
952
952
|
return {
|
|
953
953
|
getUrl,
|
|
954
954
|
httpMethod: "POST",
|
|
955
|
-
path: "/v2/orders/
|
|
956
|
-
pathParams: {
|
|
955
|
+
path: "/v2/checkout/orders/preview-offline",
|
|
956
|
+
pathParams: {},
|
|
957
957
|
__requestType: null,
|
|
958
958
|
__originalRequestType: null,
|
|
959
959
|
__responseType: null,
|
|
960
960
|
__originalResponseType: null
|
|
961
961
|
};
|
|
962
962
|
}
|
|
963
|
-
function
|
|
964
|
-
const payload = {
|
|
965
|
-
const getRequestOptions =
|
|
963
|
+
function getPricePreview2() {
|
|
964
|
+
const payload = {};
|
|
965
|
+
const getRequestOptions = getPricePreview(payload);
|
|
966
966
|
const getUrl = (context) => {
|
|
967
967
|
const { url } = getRequestOptions(context);
|
|
968
968
|
return url;
|
|
@@ -970,25 +970,25 @@ function markAsPaid2() {
|
|
|
970
970
|
return {
|
|
971
971
|
getUrl,
|
|
972
972
|
httpMethod: "POST",
|
|
973
|
-
path: "/v2/orders/
|
|
974
|
-
pathParams: {
|
|
973
|
+
path: "/v2/checkout/orders/price-preview",
|
|
974
|
+
pathParams: {},
|
|
975
975
|
__requestType: null,
|
|
976
976
|
__originalRequestType: null,
|
|
977
977
|
__responseType: null,
|
|
978
978
|
__originalResponseType: null
|
|
979
979
|
};
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function managementGetOrder2() {
|
|
982
982
|
const payload = { id: ":id" };
|
|
983
|
-
const getRequestOptions =
|
|
983
|
+
const getRequestOptions = managementGetOrder(payload);
|
|
984
984
|
const getUrl = (context) => {
|
|
985
985
|
const { url } = getRequestOptions(context);
|
|
986
986
|
return url;
|
|
987
987
|
};
|
|
988
988
|
return {
|
|
989
989
|
getUrl,
|
|
990
|
-
httpMethod: "
|
|
991
|
-
path: "/v2/orders/{id}
|
|
990
|
+
httpMethod: "GET",
|
|
991
|
+
path: "/v2/orders/{id}",
|
|
992
992
|
pathParams: { id: "id" },
|
|
993
993
|
__requestType: null,
|
|
994
994
|
__originalRequestType: null,
|
|
@@ -996,45 +996,45 @@ function pauseOrder2() {
|
|
|
996
996
|
__originalResponseType: null
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
|
-
function
|
|
1000
|
-
const payload = {
|
|
1001
|
-
const getRequestOptions =
|
|
999
|
+
function managementListOrders2() {
|
|
1000
|
+
const payload = {};
|
|
1001
|
+
const getRequestOptions = managementListOrders(payload);
|
|
1002
1002
|
const getUrl = (context) => {
|
|
1003
1003
|
const { url } = getRequestOptions(context);
|
|
1004
1004
|
return url;
|
|
1005
1005
|
};
|
|
1006
1006
|
return {
|
|
1007
1007
|
getUrl,
|
|
1008
|
-
httpMethod: "
|
|
1009
|
-
path: "/v2/orders
|
|
1010
|
-
pathParams: {
|
|
1008
|
+
httpMethod: "GET",
|
|
1009
|
+
path: "/v2/orders",
|
|
1010
|
+
pathParams: {},
|
|
1011
1011
|
__requestType: null,
|
|
1012
1012
|
__originalRequestType: null,
|
|
1013
1013
|
__responseType: null,
|
|
1014
1014
|
__originalResponseType: null
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
const payload = {};
|
|
1019
|
-
const getRequestOptions =
|
|
1017
|
+
function postponeEndDate2() {
|
|
1018
|
+
const payload = { id: ":id" };
|
|
1019
|
+
const getRequestOptions = postponeEndDate(payload);
|
|
1020
1020
|
const getUrl = (context) => {
|
|
1021
1021
|
const { url } = getRequestOptions(context);
|
|
1022
1022
|
return url;
|
|
1023
1023
|
};
|
|
1024
1024
|
return {
|
|
1025
1025
|
getUrl,
|
|
1026
|
-
httpMethod: "
|
|
1027
|
-
path: "/v2/
|
|
1028
|
-
pathParams: {},
|
|
1026
|
+
httpMethod: "PATCH",
|
|
1027
|
+
path: "/v2/orders/{id}",
|
|
1028
|
+
pathParams: { id: "id" },
|
|
1029
1029
|
__requestType: null,
|
|
1030
1030
|
__originalRequestType: null,
|
|
1031
1031
|
__responseType: null,
|
|
1032
1032
|
__originalResponseType: null
|
|
1033
1033
|
};
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1036
|
-
const payload = {};
|
|
1037
|
-
const getRequestOptions =
|
|
1035
|
+
function cancelOrder2() {
|
|
1036
|
+
const payload = { id: ":id" };
|
|
1037
|
+
const getRequestOptions = cancelOrder(payload);
|
|
1038
1038
|
const getUrl = (context) => {
|
|
1039
1039
|
const { url } = getRequestOptions(context);
|
|
1040
1040
|
return url;
|
|
@@ -1042,17 +1042,17 @@ function createOfflineOrder2() {
|
|
|
1042
1042
|
return {
|
|
1043
1043
|
getUrl,
|
|
1044
1044
|
httpMethod: "POST",
|
|
1045
|
-
path: "/v2/
|
|
1046
|
-
pathParams: {},
|
|
1045
|
+
path: "/v2/orders/{id}/cancel",
|
|
1046
|
+
pathParams: { id: "id" },
|
|
1047
1047
|
__requestType: null,
|
|
1048
1048
|
__originalRequestType: null,
|
|
1049
1049
|
__responseType: null,
|
|
1050
1050
|
__originalResponseType: null
|
|
1051
1051
|
};
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1054
|
-
const payload = {};
|
|
1055
|
-
const getRequestOptions =
|
|
1053
|
+
function markAsPaid2() {
|
|
1054
|
+
const payload = { id: ":id" };
|
|
1055
|
+
const getRequestOptions = markAsPaid(payload);
|
|
1056
1056
|
const getUrl = (context) => {
|
|
1057
1057
|
const { url } = getRequestOptions(context);
|
|
1058
1058
|
return url;
|
|
@@ -1060,17 +1060,17 @@ function getOnlineOrderPreview2() {
|
|
|
1060
1060
|
return {
|
|
1061
1061
|
getUrl,
|
|
1062
1062
|
httpMethod: "POST",
|
|
1063
|
-
path: "/v2/
|
|
1064
|
-
pathParams: {},
|
|
1063
|
+
path: "/v2/orders/{id}/mark-as-paid",
|
|
1064
|
+
pathParams: { id: "id" },
|
|
1065
1065
|
__requestType: null,
|
|
1066
1066
|
__originalRequestType: null,
|
|
1067
1067
|
__responseType: null,
|
|
1068
1068
|
__originalResponseType: null
|
|
1069
1069
|
};
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1072
|
-
const payload = {};
|
|
1073
|
-
const getRequestOptions =
|
|
1071
|
+
function pauseOrder2() {
|
|
1072
|
+
const payload = { id: ":id" };
|
|
1073
|
+
const getRequestOptions = pauseOrder(payload);
|
|
1074
1074
|
const getUrl = (context) => {
|
|
1075
1075
|
const { url } = getRequestOptions(context);
|
|
1076
1076
|
return url;
|
|
@@ -1078,17 +1078,17 @@ function getOfflineOrderPreview2() {
|
|
|
1078
1078
|
return {
|
|
1079
1079
|
getUrl,
|
|
1080
1080
|
httpMethod: "POST",
|
|
1081
|
-
path: "/v2/
|
|
1082
|
-
pathParams: {},
|
|
1081
|
+
path: "/v2/orders/{id}/pause",
|
|
1082
|
+
pathParams: { id: "id" },
|
|
1083
1083
|
__requestType: null,
|
|
1084
1084
|
__originalRequestType: null,
|
|
1085
1085
|
__responseType: null,
|
|
1086
1086
|
__originalResponseType: null
|
|
1087
1087
|
};
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1090
|
-
const payload = {};
|
|
1091
|
-
const getRequestOptions =
|
|
1089
|
+
function resumeOrder2() {
|
|
1090
|
+
const payload = { id: ":id" };
|
|
1091
|
+
const getRequestOptions = resumeOrder(payload);
|
|
1092
1092
|
const getUrl = (context) => {
|
|
1093
1093
|
const { url } = getRequestOptions(context);
|
|
1094
1094
|
return url;
|
|
@@ -1096,8 +1096,8 @@ function getPricePreview2() {
|
|
|
1096
1096
|
return {
|
|
1097
1097
|
getUrl,
|
|
1098
1098
|
httpMethod: "POST",
|
|
1099
|
-
path: "/v2/
|
|
1100
|
-
pathParams: {},
|
|
1099
|
+
path: "/v2/orders/{id}/resume",
|
|
1100
|
+
pathParams: { id: "id" },
|
|
1101
1101
|
__requestType: null,
|
|
1102
1102
|
__originalRequestType: null,
|
|
1103
1103
|
__responseType: null,
|