@wix/auto_sdk_pricing-plans_orders 1.0.127 → 1.0.129
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 +133 -133
- package/build/cjs/index.js +625 -625
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +777 -777
- package/build/cjs/index.typings.js +499 -499
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +484 -484
- package/build/cjs/meta.js +389 -389
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +133 -133
- package/build/es/index.mjs +625 -625
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +777 -777
- package/build/es/index.typings.mjs +499 -499
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +484 -484
- package/build/es/meta.mjs +389 -389
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +133 -133
- package/build/internal/cjs/index.typings.d.ts +804 -804
- package/build/internal/cjs/meta.d.ts +500 -500
- package/build/internal/es/index.d.mts +133 -133
- package/build/internal/es/index.typings.d.mts +804 -804
- package/build/internal/es/meta.d.mts +500 -500
- package/package.json +2 -2
package/build/es/meta.mjs
CHANGED
|
@@ -96,323 +96,317 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
96
96
|
};
|
|
97
97
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
100
100
|
const domainToMappings = {
|
|
101
101
|
"api._api_base_domain_": [
|
|
102
102
|
{
|
|
103
|
-
srcPath: "/
|
|
103
|
+
srcPath: "/pricing-plans-checkout-proxy",
|
|
104
104
|
destPath: ""
|
|
105
105
|
}
|
|
106
106
|
],
|
|
107
107
|
"*.dev.wix-code.com": [
|
|
108
108
|
{
|
|
109
|
-
srcPath: "/_api/paid-plans/v2/
|
|
110
|
-
destPath: "/v2/
|
|
109
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
110
|
+
destPath: "/v2/checkout"
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
114
|
-
destPath: "/v2/
|
|
113
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
114
|
+
destPath: "/v2/checkout"
|
|
115
115
|
}
|
|
116
116
|
],
|
|
117
117
|
"*.wixapps.net": [
|
|
118
118
|
{
|
|
119
|
-
srcPath: "/_api/paid-plans/v2/
|
|
120
|
-
destPath: "/v2/
|
|
119
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
120
|
+
destPath: "/v2/checkout"
|
|
121
121
|
}
|
|
122
122
|
],
|
|
123
123
|
"editor-flow.wixapps.net": [
|
|
124
124
|
{
|
|
125
|
-
srcPath: "/_api/paid-plans/v2/
|
|
126
|
-
destPath: "/v2/
|
|
125
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
126
|
+
destPath: "/v2/checkout"
|
|
127
127
|
}
|
|
128
128
|
],
|
|
129
129
|
"editor._base_domain_": [
|
|
130
130
|
{
|
|
131
|
-
srcPath: "/_api/paid-plans/v2/
|
|
132
|
-
destPath: "/v2/
|
|
131
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
132
|
+
destPath: "/v2/checkout"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
136
|
-
destPath: "/v2/
|
|
135
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
136
|
+
destPath: "/v2/checkout"
|
|
137
137
|
}
|
|
138
138
|
],
|
|
139
139
|
"blocks._base_domain_": [
|
|
140
140
|
{
|
|
141
|
-
srcPath: "/_api/paid-plans/v2/
|
|
142
|
-
destPath: "/v2/
|
|
141
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
142
|
+
destPath: "/v2/checkout"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
146
|
-
destPath: "/v2/
|
|
145
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
146
|
+
destPath: "/v2/checkout"
|
|
147
147
|
}
|
|
148
148
|
],
|
|
149
149
|
"create.editorx": [
|
|
150
150
|
{
|
|
151
|
-
srcPath: "/_api/paid-plans/v2/
|
|
152
|
-
destPath: "/v2/
|
|
151
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
152
|
+
destPath: "/v2/checkout"
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
156
|
-
destPath: "/v2/
|
|
155
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
156
|
+
destPath: "/v2/checkout"
|
|
157
157
|
}
|
|
158
158
|
],
|
|
159
159
|
"editor.wixapps.net": [
|
|
160
160
|
{
|
|
161
|
-
srcPath: "/_api/paid-plans/v2/
|
|
162
|
-
destPath: "/v2/
|
|
161
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
162
|
+
destPath: "/v2/checkout"
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
166
|
-
destPath: "/v2/
|
|
165
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
166
|
+
destPath: "/v2/checkout"
|
|
167
167
|
}
|
|
168
168
|
],
|
|
169
169
|
"forums._base_domain_": [
|
|
170
170
|
{
|
|
171
|
-
srcPath: "/_api/paid-plans/v2/
|
|
172
|
-
destPath: "/v2/
|
|
171
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
172
|
+
destPath: "/v2/checkout"
|
|
173
173
|
}
|
|
174
174
|
],
|
|
175
175
|
"forums.wixapps.net": [
|
|
176
176
|
{
|
|
177
|
-
srcPath: "/_api/paid-plans/v2/
|
|
178
|
-
destPath: "/v2/
|
|
177
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
178
|
+
destPath: "/v2/checkout"
|
|
179
179
|
}
|
|
180
180
|
],
|
|
181
181
|
"manage._base_domain_": [
|
|
182
182
|
{
|
|
183
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
184
|
-
destPath: "/v2/
|
|
183
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
184
|
+
destPath: "/v2/checkout"
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
|
-
srcPath: "/_api/paid-plans/v2/
|
|
188
|
-
destPath: "/v2/
|
|
187
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
188
|
+
destPath: "/v2/checkout"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
192
|
+
destPath: "/v2/checkout"
|
|
189
193
|
}
|
|
190
194
|
],
|
|
191
195
|
"www.wixapis.com": [
|
|
192
196
|
{
|
|
193
|
-
srcPath: "/pricing-plans/v2/
|
|
194
|
-
destPath: "/v2/
|
|
197
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
198
|
+
destPath: "/v2/checkout"
|
|
195
199
|
}
|
|
196
200
|
],
|
|
197
201
|
_: [
|
|
198
202
|
{
|
|
199
|
-
srcPath: "/
|
|
200
|
-
destPath: "/v2/
|
|
203
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
204
|
+
destPath: "/v2/checkout"
|
|
201
205
|
},
|
|
202
206
|
{
|
|
203
|
-
srcPath: "/_api/
|
|
204
|
-
destPath: "/v2/
|
|
207
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
208
|
+
destPath: "/v2/checkout"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
212
|
+
destPath: "/v2/checkout"
|
|
205
213
|
}
|
|
206
214
|
],
|
|
207
215
|
"*.pub.wix-code.com": [
|
|
208
216
|
{
|
|
209
|
-
srcPath: "/_api/paid-plans/v2/
|
|
210
|
-
destPath: "/v2/
|
|
217
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
218
|
+
destPath: "/v2/checkout"
|
|
211
219
|
}
|
|
212
220
|
],
|
|
213
221
|
"www._base_domain_": [
|
|
214
222
|
{
|
|
215
|
-
srcPath: "/_api/paid-plans/v2/
|
|
216
|
-
destPath: "/v2/
|
|
223
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
224
|
+
destPath: "/v2/checkout"
|
|
217
225
|
}
|
|
218
226
|
],
|
|
219
227
|
"apps._base_domain_": [
|
|
220
228
|
{
|
|
221
|
-
srcPath: "/_api/paid-plans/v2/
|
|
222
|
-
destPath: "/v2/
|
|
229
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
230
|
+
destPath: "/v2/checkout"
|
|
223
231
|
},
|
|
224
232
|
{
|
|
225
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
226
|
-
destPath: "/v2/
|
|
233
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
234
|
+
destPath: "/v2/checkout"
|
|
227
235
|
}
|
|
228
236
|
],
|
|
229
237
|
"dev._base_domain_": [
|
|
230
238
|
{
|
|
231
|
-
srcPath: "/_api/paid-plans/v2/
|
|
232
|
-
destPath: "/v2/
|
|
239
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
240
|
+
destPath: "/v2/checkout"
|
|
233
241
|
},
|
|
234
242
|
{
|
|
235
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
236
|
-
destPath: "/v2/
|
|
243
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
244
|
+
destPath: "/v2/checkout"
|
|
237
245
|
}
|
|
238
246
|
]
|
|
239
247
|
};
|
|
240
248
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
241
249
|
}
|
|
242
|
-
function
|
|
250
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
243
251
|
const domainToMappings = {
|
|
244
252
|
"api._api_base_domain_": [
|
|
245
253
|
{
|
|
246
|
-
srcPath: "/
|
|
254
|
+
srcPath: "/order-management-service-proxy",
|
|
247
255
|
destPath: ""
|
|
248
256
|
}
|
|
249
257
|
],
|
|
250
258
|
"*.dev.wix-code.com": [
|
|
251
259
|
{
|
|
252
|
-
srcPath: "/_api/paid-plans/v2/
|
|
253
|
-
destPath: "/v2/
|
|
260
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
261
|
+
destPath: "/v2/orders"
|
|
254
262
|
},
|
|
255
263
|
{
|
|
256
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
257
|
-
destPath: "/v2/
|
|
264
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
265
|
+
destPath: "/v2/orders"
|
|
258
266
|
}
|
|
259
267
|
],
|
|
260
268
|
"*.wixapps.net": [
|
|
261
269
|
{
|
|
262
|
-
srcPath: "/_api/paid-plans/v2/
|
|
263
|
-
destPath: "/v2/
|
|
270
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
271
|
+
destPath: "/v2/orders"
|
|
264
272
|
}
|
|
265
273
|
],
|
|
266
274
|
"editor-flow.wixapps.net": [
|
|
267
275
|
{
|
|
268
|
-
srcPath: "/_api/paid-plans/v2/
|
|
269
|
-
destPath: "/v2/
|
|
276
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
277
|
+
destPath: "/v2/orders"
|
|
270
278
|
}
|
|
271
279
|
],
|
|
272
280
|
"editor._base_domain_": [
|
|
273
281
|
{
|
|
274
|
-
srcPath: "/_api/paid-plans/v2/
|
|
275
|
-
destPath: "/v2/
|
|
282
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
283
|
+
destPath: "/v2/orders"
|
|
276
284
|
},
|
|
277
285
|
{
|
|
278
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
279
|
-
destPath: "/v2/
|
|
286
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
287
|
+
destPath: "/v2/orders"
|
|
280
288
|
}
|
|
281
289
|
],
|
|
282
290
|
"blocks._base_domain_": [
|
|
283
291
|
{
|
|
284
|
-
srcPath: "/_api/paid-plans/v2/
|
|
285
|
-
destPath: "/v2/
|
|
292
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
293
|
+
destPath: "/v2/orders"
|
|
286
294
|
},
|
|
287
295
|
{
|
|
288
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
289
|
-
destPath: "/v2/
|
|
296
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
297
|
+
destPath: "/v2/orders"
|
|
290
298
|
}
|
|
291
299
|
],
|
|
292
300
|
"create.editorx": [
|
|
293
301
|
{
|
|
294
|
-
srcPath: "/_api/paid-plans/v2/
|
|
295
|
-
destPath: "/v2/
|
|
302
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
303
|
+
destPath: "/v2/orders"
|
|
296
304
|
},
|
|
297
305
|
{
|
|
298
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
299
|
-
destPath: "/v2/
|
|
306
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
307
|
+
destPath: "/v2/orders"
|
|
300
308
|
}
|
|
301
309
|
],
|
|
302
310
|
"editor.wixapps.net": [
|
|
303
311
|
{
|
|
304
|
-
srcPath: "/_api/paid-plans/v2/
|
|
305
|
-
destPath: "/v2/
|
|
312
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
313
|
+
destPath: "/v2/orders"
|
|
306
314
|
},
|
|
307
315
|
{
|
|
308
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
309
|
-
destPath: "/v2/
|
|
316
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
317
|
+
destPath: "/v2/orders"
|
|
310
318
|
}
|
|
311
319
|
],
|
|
312
320
|
"forums._base_domain_": [
|
|
313
321
|
{
|
|
314
|
-
srcPath: "/_api/paid-plans/v2/
|
|
315
|
-
destPath: "/v2/
|
|
322
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
323
|
+
destPath: "/v2/orders"
|
|
316
324
|
}
|
|
317
325
|
],
|
|
318
326
|
"forums.wixapps.net": [
|
|
319
327
|
{
|
|
320
|
-
srcPath: "/_api/paid-plans/v2/
|
|
321
|
-
destPath: "/v2/
|
|
328
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
329
|
+
destPath: "/v2/orders"
|
|
322
330
|
}
|
|
323
331
|
],
|
|
324
332
|
"manage._base_domain_": [
|
|
325
333
|
{
|
|
326
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
327
|
-
destPath: "/v2/
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
331
|
-
destPath: "/v2/checkout"
|
|
334
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
335
|
+
destPath: "/v2/orders"
|
|
332
336
|
},
|
|
333
337
|
{
|
|
334
|
-
srcPath: "/
|
|
335
|
-
destPath: "/v2/
|
|
338
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
339
|
+
destPath: "/v2/orders"
|
|
336
340
|
}
|
|
337
341
|
],
|
|
338
342
|
"www.wixapis.com": [
|
|
339
343
|
{
|
|
340
|
-
srcPath: "/pricing-plans/v2/
|
|
341
|
-
destPath: "/v2/
|
|
344
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
345
|
+
destPath: "/v2/orders"
|
|
342
346
|
}
|
|
343
347
|
],
|
|
344
348
|
_: [
|
|
345
349
|
{
|
|
346
|
-
srcPath: "/
|
|
347
|
-
destPath: "/v2/
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
351
|
-
destPath: "/v2/checkout"
|
|
350
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
351
|
+
destPath: "/v2/orders"
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
355
|
-
destPath: "/v2/
|
|
354
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
355
|
+
destPath: "/v2/orders"
|
|
356
356
|
}
|
|
357
357
|
],
|
|
358
358
|
"*.pub.wix-code.com": [
|
|
359
359
|
{
|
|
360
|
-
srcPath: "/_api/paid-plans/v2/
|
|
361
|
-
destPath: "/v2/
|
|
360
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
361
|
+
destPath: "/v2/orders"
|
|
362
362
|
}
|
|
363
363
|
],
|
|
364
364
|
"www._base_domain_": [
|
|
365
365
|
{
|
|
366
|
-
srcPath: "/_api/paid-plans/v2/
|
|
367
|
-
destPath: "/v2/
|
|
366
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
367
|
+
destPath: "/v2/orders"
|
|
368
368
|
}
|
|
369
369
|
],
|
|
370
370
|
"apps._base_domain_": [
|
|
371
371
|
{
|
|
372
|
-
srcPath: "/_api/paid-plans/v2/
|
|
373
|
-
destPath: "/v2/
|
|
372
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
373
|
+
destPath: "/v2/orders"
|
|
374
374
|
},
|
|
375
375
|
{
|
|
376
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
377
|
-
destPath: "/v2/
|
|
376
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
377
|
+
destPath: "/v2/orders"
|
|
378
378
|
}
|
|
379
379
|
],
|
|
380
380
|
"dev._base_domain_": [
|
|
381
381
|
{
|
|
382
|
-
srcPath: "/_api/paid-plans/v2/
|
|
383
|
-
destPath: "/v2/
|
|
382
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
383
|
+
destPath: "/v2/orders"
|
|
384
384
|
},
|
|
385
385
|
{
|
|
386
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
387
|
-
destPath: "/v2/
|
|
386
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
387
|
+
destPath: "/v2/orders"
|
|
388
388
|
}
|
|
389
389
|
]
|
|
390
390
|
};
|
|
391
391
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
392
392
|
}
|
|
393
393
|
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
394
|
-
function
|
|
395
|
-
function
|
|
396
|
-
const serializedData = transformPaths(payload, [
|
|
397
|
-
{
|
|
398
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
399
|
-
paths: [{ path: "startDate" }]
|
|
400
|
-
}
|
|
401
|
-
]);
|
|
394
|
+
function managementGetOrder(payload) {
|
|
395
|
+
function __managementGetOrder({ host }) {
|
|
402
396
|
const metadata = {
|
|
403
397
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
404
|
-
method: "
|
|
405
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
398
|
+
method: "GET",
|
|
399
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
406
400
|
packageName: PACKAGE_NAME,
|
|
407
401
|
migrationOptions: {
|
|
408
402
|
optInTransformResponse: true
|
|
409
403
|
},
|
|
410
|
-
url:
|
|
411
|
-
protoPath: "/v2/
|
|
412
|
-
data:
|
|
404
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
405
|
+
protoPath: "/v2/orders/{id}",
|
|
406
|
+
data: payload,
|
|
413
407
|
host
|
|
414
408
|
}),
|
|
415
|
-
|
|
409
|
+
params: toURLSearchParams(payload),
|
|
416
410
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
417
411
|
{
|
|
418
412
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -435,158 +429,117 @@ function createOnlineOrder(payload) {
|
|
|
435
429
|
};
|
|
436
430
|
return metadata;
|
|
437
431
|
}
|
|
438
|
-
return
|
|
432
|
+
return __managementGetOrder;
|
|
439
433
|
}
|
|
440
|
-
function
|
|
441
|
-
function
|
|
434
|
+
function managementListOrders(payload) {
|
|
435
|
+
function __managementListOrders({ host }) {
|
|
442
436
|
const serializedData = transformPaths(payload, [
|
|
443
437
|
{
|
|
444
|
-
transformFn:
|
|
445
|
-
paths: [
|
|
446
|
-
|
|
447
|
-
|
|
438
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
439
|
+
paths: [
|
|
440
|
+
{ path: "sorting.origin.latitude" },
|
|
441
|
+
{ path: "sorting.origin.longitude" }
|
|
442
|
+
]
|
|
443
|
+
}
|
|
444
|
+
]);
|
|
448
445
|
const metadata = {
|
|
449
446
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
450
|
-
method: "
|
|
451
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
447
|
+
method: "GET",
|
|
448
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
452
449
|
packageName: PACKAGE_NAME,
|
|
453
450
|
migrationOptions: {
|
|
454
451
|
optInTransformResponse: true
|
|
455
452
|
},
|
|
456
|
-
url:
|
|
457
|
-
protoPath: "/v2/
|
|
453
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
454
|
+
protoPath: "/v2/orders",
|
|
458
455
|
data: serializedData,
|
|
459
456
|
host
|
|
460
457
|
}),
|
|
461
|
-
|
|
458
|
+
params: toURLSearchParams(serializedData, true),
|
|
462
459
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
463
460
|
{
|
|
464
461
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
465
462
|
paths: [
|
|
466
|
-
{ path: "
|
|
467
|
-
{ path: "
|
|
468
|
-
{ path: "
|
|
469
|
-
{ path: "
|
|
470
|
-
{ path: "
|
|
471
|
-
{ path: "
|
|
472
|
-
{ path: "
|
|
473
|
-
{ path: "
|
|
474
|
-
{ path: "
|
|
475
|
-
{ path: "
|
|
476
|
-
{ path: "
|
|
477
|
-
{ path: "
|
|
463
|
+
{ path: "orders.startDate" },
|
|
464
|
+
{ path: "orders.endDate" },
|
|
465
|
+
{ path: "orders.earliestEndDate" },
|
|
466
|
+
{ path: "orders.createdDate" },
|
|
467
|
+
{ path: "orders.updatedDate" },
|
|
468
|
+
{ path: "orders.cancellation.requestedDate" },
|
|
469
|
+
{ path: "orders.pausePeriods.pauseDate" },
|
|
470
|
+
{ path: "orders.pausePeriods.resumeDate" },
|
|
471
|
+
{ path: "orders.currentCycle.startedDate" },
|
|
472
|
+
{ path: "orders.currentCycle.endedDate" },
|
|
473
|
+
{ path: "orders.cycles.startedDate" },
|
|
474
|
+
{ path: "orders.cycles.endedDate" }
|
|
478
475
|
]
|
|
479
476
|
}
|
|
480
477
|
])
|
|
481
478
|
};
|
|
482
479
|
return metadata;
|
|
483
480
|
}
|
|
484
|
-
return
|
|
481
|
+
return __managementListOrders;
|
|
485
482
|
}
|
|
486
|
-
function
|
|
487
|
-
function
|
|
483
|
+
function postponeEndDate(payload) {
|
|
484
|
+
function __postponeEndDate({ host }) {
|
|
488
485
|
const serializedData = transformPaths(payload, [
|
|
489
486
|
{
|
|
490
487
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
491
|
-
paths: [{ path: "
|
|
488
|
+
paths: [{ path: "endDate" }]
|
|
492
489
|
}
|
|
493
490
|
]);
|
|
494
491
|
const metadata = {
|
|
495
492
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
496
|
-
method: "
|
|
497
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
493
|
+
method: "PATCH",
|
|
494
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
498
495
|
packageName: PACKAGE_NAME,
|
|
499
496
|
migrationOptions: {
|
|
500
497
|
optInTransformResponse: true
|
|
501
498
|
},
|
|
502
|
-
url:
|
|
503
|
-
protoPath: "/v2/
|
|
499
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
500
|
+
protoPath: "/v2/orders/{id}",
|
|
504
501
|
data: serializedData,
|
|
505
502
|
host
|
|
506
503
|
}),
|
|
507
|
-
data: serializedData
|
|
508
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
509
|
-
{
|
|
510
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
511
|
-
paths: [
|
|
512
|
-
{ path: "order.startDate" },
|
|
513
|
-
{ path: "order.endDate" },
|
|
514
|
-
{ path: "order.earliestEndDate" },
|
|
515
|
-
{ path: "order.createdDate" },
|
|
516
|
-
{ path: "order.updatedDate" },
|
|
517
|
-
{ path: "order.cancellation.requestedDate" },
|
|
518
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
519
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
520
|
-
{ path: "order.currentCycle.startedDate" },
|
|
521
|
-
{ path: "order.currentCycle.endedDate" },
|
|
522
|
-
{ path: "order.cycles.startedDate" },
|
|
523
|
-
{ path: "order.cycles.endedDate" }
|
|
524
|
-
]
|
|
525
|
-
}
|
|
526
|
-
])
|
|
504
|
+
data: serializedData
|
|
527
505
|
};
|
|
528
506
|
return metadata;
|
|
529
507
|
}
|
|
530
|
-
return
|
|
508
|
+
return __postponeEndDate;
|
|
531
509
|
}
|
|
532
|
-
function
|
|
533
|
-
function
|
|
534
|
-
const serializedData = transformPaths(payload, [
|
|
535
|
-
{
|
|
536
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
537
|
-
paths: [{ path: "startDate" }]
|
|
538
|
-
}
|
|
539
|
-
]);
|
|
510
|
+
function cancelOrder(payload) {
|
|
511
|
+
function __cancelOrder({ host }) {
|
|
540
512
|
const metadata = {
|
|
541
513
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
542
514
|
method: "POST",
|
|
543
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
515
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
544
516
|
packageName: PACKAGE_NAME,
|
|
545
517
|
migrationOptions: {
|
|
546
518
|
optInTransformResponse: true
|
|
547
519
|
},
|
|
548
|
-
url:
|
|
549
|
-
protoPath: "/v2/
|
|
550
|
-
data:
|
|
520
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
521
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
522
|
+
data: payload,
|
|
551
523
|
host
|
|
552
524
|
}),
|
|
553
|
-
data:
|
|
554
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
555
|
-
{
|
|
556
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
557
|
-
paths: [
|
|
558
|
-
{ path: "order.startDate" },
|
|
559
|
-
{ path: "order.endDate" },
|
|
560
|
-
{ path: "order.earliestEndDate" },
|
|
561
|
-
{ path: "order.createdDate" },
|
|
562
|
-
{ path: "order.updatedDate" },
|
|
563
|
-
{ path: "order.cancellation.requestedDate" },
|
|
564
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
565
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
566
|
-
{ path: "order.currentCycle.startedDate" },
|
|
567
|
-
{ path: "order.currentCycle.endedDate" },
|
|
568
|
-
{ path: "order.cycles.startedDate" },
|
|
569
|
-
{ path: "order.cycles.endedDate" }
|
|
570
|
-
]
|
|
571
|
-
}
|
|
572
|
-
])
|
|
525
|
+
data: payload
|
|
573
526
|
};
|
|
574
527
|
return metadata;
|
|
575
528
|
}
|
|
576
|
-
return
|
|
529
|
+
return __cancelOrder;
|
|
577
530
|
}
|
|
578
|
-
function
|
|
579
|
-
function
|
|
531
|
+
function markAsPaid(payload) {
|
|
532
|
+
function __markAsPaid({ host }) {
|
|
580
533
|
const metadata = {
|
|
581
534
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
582
535
|
method: "POST",
|
|
583
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
536
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
584
537
|
packageName: PACKAGE_NAME,
|
|
585
538
|
migrationOptions: {
|
|
586
539
|
optInTransformResponse: true
|
|
587
540
|
},
|
|
588
|
-
url:
|
|
589
|
-
protoPath: "/v2/
|
|
541
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
542
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
590
543
|
data: payload,
|
|
591
544
|
host
|
|
592
545
|
}),
|
|
@@ -594,199 +547,246 @@ function getPricePreview(payload) {
|
|
|
594
547
|
};
|
|
595
548
|
return metadata;
|
|
596
549
|
}
|
|
597
|
-
return
|
|
550
|
+
return __markAsPaid;
|
|
598
551
|
}
|
|
599
|
-
function
|
|
600
|
-
function
|
|
552
|
+
function pauseOrder(payload) {
|
|
553
|
+
function __pauseOrder({ host }) {
|
|
601
554
|
const metadata = {
|
|
602
555
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
603
|
-
method: "
|
|
604
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.
|
|
556
|
+
method: "POST",
|
|
557
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
605
558
|
packageName: PACKAGE_NAME,
|
|
606
559
|
migrationOptions: {
|
|
607
560
|
optInTransformResponse: true
|
|
608
561
|
},
|
|
609
562
|
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
610
|
-
protoPath: "/v2/orders/{id}",
|
|
563
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
611
564
|
data: payload,
|
|
612
565
|
host
|
|
613
566
|
}),
|
|
614
|
-
|
|
615
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
616
|
-
{
|
|
617
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
618
|
-
paths: [
|
|
619
|
-
{ path: "order.startDate" },
|
|
620
|
-
{ path: "order.endDate" },
|
|
621
|
-
{ path: "order.earliestEndDate" },
|
|
622
|
-
{ path: "order.createdDate" },
|
|
623
|
-
{ path: "order.updatedDate" },
|
|
624
|
-
{ path: "order.cancellation.requestedDate" },
|
|
625
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
626
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
627
|
-
{ path: "order.currentCycle.startedDate" },
|
|
628
|
-
{ path: "order.currentCycle.endedDate" },
|
|
629
|
-
{ path: "order.cycles.startedDate" },
|
|
630
|
-
{ path: "order.cycles.endedDate" }
|
|
631
|
-
]
|
|
632
|
-
}
|
|
633
|
-
])
|
|
567
|
+
data: payload
|
|
634
568
|
};
|
|
635
569
|
return metadata;
|
|
636
570
|
}
|
|
637
|
-
return
|
|
571
|
+
return __pauseOrder;
|
|
638
572
|
}
|
|
639
|
-
function
|
|
640
|
-
function
|
|
641
|
-
const serializedData = transformPaths(payload, [
|
|
642
|
-
{
|
|
643
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
644
|
-
paths: [
|
|
645
|
-
{ path: "sorting.origin.latitude" },
|
|
646
|
-
{ path: "sorting.origin.longitude" }
|
|
647
|
-
]
|
|
648
|
-
}
|
|
649
|
-
]);
|
|
573
|
+
function resumeOrder(payload) {
|
|
574
|
+
function __resumeOrder({ host }) {
|
|
650
575
|
const metadata = {
|
|
651
576
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
652
|
-
method: "
|
|
653
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.
|
|
577
|
+
method: "POST",
|
|
578
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
654
579
|
packageName: PACKAGE_NAME,
|
|
655
580
|
migrationOptions: {
|
|
656
581
|
optInTransformResponse: true
|
|
657
582
|
},
|
|
658
583
|
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
659
|
-
protoPath: "/v2/orders",
|
|
660
|
-
data:
|
|
584
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
585
|
+
data: payload,
|
|
661
586
|
host
|
|
662
587
|
}),
|
|
663
|
-
|
|
664
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
665
|
-
{
|
|
666
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
667
|
-
paths: [
|
|
668
|
-
{ path: "orders.startDate" },
|
|
669
|
-
{ path: "orders.endDate" },
|
|
670
|
-
{ path: "orders.earliestEndDate" },
|
|
671
|
-
{ path: "orders.createdDate" },
|
|
672
|
-
{ path: "orders.updatedDate" },
|
|
673
|
-
{ path: "orders.cancellation.requestedDate" },
|
|
674
|
-
{ path: "orders.pausePeriods.pauseDate" },
|
|
675
|
-
{ path: "orders.pausePeriods.resumeDate" },
|
|
676
|
-
{ path: "orders.currentCycle.startedDate" },
|
|
677
|
-
{ path: "orders.currentCycle.endedDate" },
|
|
678
|
-
{ path: "orders.cycles.startedDate" },
|
|
679
|
-
{ path: "orders.cycles.endedDate" }
|
|
680
|
-
]
|
|
681
|
-
}
|
|
682
|
-
])
|
|
588
|
+
data: payload
|
|
683
589
|
};
|
|
684
590
|
return metadata;
|
|
685
591
|
}
|
|
686
|
-
return
|
|
592
|
+
return __resumeOrder;
|
|
687
593
|
}
|
|
688
|
-
function
|
|
689
|
-
function
|
|
594
|
+
function createOnlineOrder(payload) {
|
|
595
|
+
function __createOnlineOrder({ host }) {
|
|
690
596
|
const serializedData = transformPaths(payload, [
|
|
691
597
|
{
|
|
692
598
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
693
|
-
paths: [{ path: "
|
|
599
|
+
paths: [{ path: "startDate" }]
|
|
694
600
|
}
|
|
695
601
|
]);
|
|
696
602
|
const metadata = {
|
|
697
603
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
698
|
-
method: "
|
|
699
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
604
|
+
method: "POST",
|
|
605
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
700
606
|
packageName: PACKAGE_NAME,
|
|
701
607
|
migrationOptions: {
|
|
702
608
|
optInTransformResponse: true
|
|
703
609
|
},
|
|
704
|
-
url:
|
|
705
|
-
protoPath: "/v2/orders/
|
|
610
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
611
|
+
protoPath: "/v2/checkout/orders/online",
|
|
706
612
|
data: serializedData,
|
|
707
613
|
host
|
|
708
614
|
}),
|
|
709
|
-
data: serializedData
|
|
615
|
+
data: serializedData,
|
|
616
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
617
|
+
{
|
|
618
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
619
|
+
paths: [
|
|
620
|
+
{ path: "order.startDate" },
|
|
621
|
+
{ path: "order.endDate" },
|
|
622
|
+
{ path: "order.earliestEndDate" },
|
|
623
|
+
{ path: "order.createdDate" },
|
|
624
|
+
{ path: "order.updatedDate" },
|
|
625
|
+
{ path: "order.cancellation.requestedDate" },
|
|
626
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
627
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
628
|
+
{ path: "order.currentCycle.startedDate" },
|
|
629
|
+
{ path: "order.currentCycle.endedDate" },
|
|
630
|
+
{ path: "order.cycles.startedDate" },
|
|
631
|
+
{ path: "order.cycles.endedDate" }
|
|
632
|
+
]
|
|
633
|
+
}
|
|
634
|
+
])
|
|
710
635
|
};
|
|
711
636
|
return metadata;
|
|
712
637
|
}
|
|
713
|
-
return
|
|
638
|
+
return __createOnlineOrder;
|
|
714
639
|
}
|
|
715
|
-
function
|
|
716
|
-
function
|
|
640
|
+
function createOfflineOrder(payload) {
|
|
641
|
+
function __createOfflineOrder({ host }) {
|
|
642
|
+
const serializedData = transformPaths(payload, [
|
|
643
|
+
{
|
|
644
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
645
|
+
paths: [{ path: "startDate" }]
|
|
646
|
+
}
|
|
647
|
+
]);
|
|
717
648
|
const metadata = {
|
|
718
649
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
719
650
|
method: "POST",
|
|
720
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
651
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
721
652
|
packageName: PACKAGE_NAME,
|
|
722
653
|
migrationOptions: {
|
|
723
654
|
optInTransformResponse: true
|
|
724
655
|
},
|
|
725
|
-
url:
|
|
726
|
-
protoPath: "/v2/orders/
|
|
727
|
-
data:
|
|
656
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
657
|
+
protoPath: "/v2/checkout/orders/offline",
|
|
658
|
+
data: serializedData,
|
|
728
659
|
host
|
|
729
660
|
}),
|
|
730
|
-
data:
|
|
661
|
+
data: serializedData,
|
|
662
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
663
|
+
{
|
|
664
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
665
|
+
paths: [
|
|
666
|
+
{ path: "order.startDate" },
|
|
667
|
+
{ path: "order.endDate" },
|
|
668
|
+
{ path: "order.earliestEndDate" },
|
|
669
|
+
{ path: "order.createdDate" },
|
|
670
|
+
{ path: "order.updatedDate" },
|
|
671
|
+
{ path: "order.cancellation.requestedDate" },
|
|
672
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
673
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
674
|
+
{ path: "order.currentCycle.startedDate" },
|
|
675
|
+
{ path: "order.currentCycle.endedDate" },
|
|
676
|
+
{ path: "order.cycles.startedDate" },
|
|
677
|
+
{ path: "order.cycles.endedDate" }
|
|
678
|
+
]
|
|
679
|
+
}
|
|
680
|
+
])
|
|
731
681
|
};
|
|
732
682
|
return metadata;
|
|
733
683
|
}
|
|
734
|
-
return
|
|
684
|
+
return __createOfflineOrder;
|
|
735
685
|
}
|
|
736
|
-
function
|
|
737
|
-
function
|
|
686
|
+
function getOnlineOrderPreview(payload) {
|
|
687
|
+
function __getOnlineOrderPreview({ host }) {
|
|
688
|
+
const serializedData = transformPaths(payload, [
|
|
689
|
+
{
|
|
690
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
691
|
+
paths: [{ path: "startDate" }]
|
|
692
|
+
}
|
|
693
|
+
]);
|
|
738
694
|
const metadata = {
|
|
739
695
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
740
696
|
method: "POST",
|
|
741
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
697
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
|
|
742
698
|
packageName: PACKAGE_NAME,
|
|
743
699
|
migrationOptions: {
|
|
744
700
|
optInTransformResponse: true
|
|
745
701
|
},
|
|
746
|
-
url:
|
|
747
|
-
protoPath: "/v2/orders/
|
|
748
|
-
data:
|
|
702
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
703
|
+
protoPath: "/v2/checkout/orders/preview-online",
|
|
704
|
+
data: serializedData,
|
|
749
705
|
host
|
|
750
706
|
}),
|
|
751
|
-
data:
|
|
707
|
+
data: serializedData,
|
|
708
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
709
|
+
{
|
|
710
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
711
|
+
paths: [
|
|
712
|
+
{ path: "order.startDate" },
|
|
713
|
+
{ path: "order.endDate" },
|
|
714
|
+
{ path: "order.earliestEndDate" },
|
|
715
|
+
{ path: "order.createdDate" },
|
|
716
|
+
{ path: "order.updatedDate" },
|
|
717
|
+
{ path: "order.cancellation.requestedDate" },
|
|
718
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
719
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
720
|
+
{ path: "order.currentCycle.startedDate" },
|
|
721
|
+
{ path: "order.currentCycle.endedDate" },
|
|
722
|
+
{ path: "order.cycles.startedDate" },
|
|
723
|
+
{ path: "order.cycles.endedDate" }
|
|
724
|
+
]
|
|
725
|
+
}
|
|
726
|
+
])
|
|
752
727
|
};
|
|
753
728
|
return metadata;
|
|
754
729
|
}
|
|
755
|
-
return
|
|
730
|
+
return __getOnlineOrderPreview;
|
|
756
731
|
}
|
|
757
|
-
function
|
|
758
|
-
function
|
|
732
|
+
function getOfflineOrderPreview(payload) {
|
|
733
|
+
function __getOfflineOrderPreview({ host }) {
|
|
734
|
+
const serializedData = transformPaths(payload, [
|
|
735
|
+
{
|
|
736
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
737
|
+
paths: [{ path: "startDate" }]
|
|
738
|
+
}
|
|
739
|
+
]);
|
|
759
740
|
const metadata = {
|
|
760
741
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
761
742
|
method: "POST",
|
|
762
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
743
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
|
|
763
744
|
packageName: PACKAGE_NAME,
|
|
764
745
|
migrationOptions: {
|
|
765
746
|
optInTransformResponse: true
|
|
766
747
|
},
|
|
767
|
-
url:
|
|
768
|
-
protoPath: "/v2/orders/
|
|
769
|
-
data:
|
|
748
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
749
|
+
protoPath: "/v2/checkout/orders/preview-offline",
|
|
750
|
+
data: serializedData,
|
|
770
751
|
host
|
|
771
752
|
}),
|
|
772
|
-
data:
|
|
753
|
+
data: serializedData,
|
|
754
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
755
|
+
{
|
|
756
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
757
|
+
paths: [
|
|
758
|
+
{ path: "order.startDate" },
|
|
759
|
+
{ path: "order.endDate" },
|
|
760
|
+
{ path: "order.earliestEndDate" },
|
|
761
|
+
{ path: "order.createdDate" },
|
|
762
|
+
{ path: "order.updatedDate" },
|
|
763
|
+
{ path: "order.cancellation.requestedDate" },
|
|
764
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
765
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
766
|
+
{ path: "order.currentCycle.startedDate" },
|
|
767
|
+
{ path: "order.currentCycle.endedDate" },
|
|
768
|
+
{ path: "order.cycles.startedDate" },
|
|
769
|
+
{ path: "order.cycles.endedDate" }
|
|
770
|
+
]
|
|
771
|
+
}
|
|
772
|
+
])
|
|
773
773
|
};
|
|
774
774
|
return metadata;
|
|
775
775
|
}
|
|
776
|
-
return
|
|
776
|
+
return __getOfflineOrderPreview;
|
|
777
777
|
}
|
|
778
|
-
function
|
|
779
|
-
function
|
|
778
|
+
function getPricePreview(payload) {
|
|
779
|
+
function __getPricePreview({ host }) {
|
|
780
780
|
const metadata = {
|
|
781
781
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
782
782
|
method: "POST",
|
|
783
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
783
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
|
|
784
784
|
packageName: PACKAGE_NAME,
|
|
785
785
|
migrationOptions: {
|
|
786
786
|
optInTransformResponse: true
|
|
787
787
|
},
|
|
788
|
-
url:
|
|
789
|
-
protoPath: "/v2/orders/
|
|
788
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
789
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
790
790
|
data: payload,
|
|
791
791
|
host
|
|
792
792
|
}),
|
|
@@ -794,7 +794,7 @@ function resumeOrder(payload) {
|
|
|
794
794
|
};
|
|
795
795
|
return metadata;
|
|
796
796
|
}
|
|
797
|
-
return
|
|
797
|
+
return __getPricePreview;
|
|
798
798
|
}
|
|
799
799
|
function memberGetOrder(payload) {
|
|
800
800
|
function __memberGetOrder({ host }) {
|
|
@@ -970,14 +970,6 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
970
970
|
Status2["ENDED"] = "ENDED";
|
|
971
971
|
return Status2;
|
|
972
972
|
})(Status || {});
|
|
973
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
974
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
975
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
976
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
977
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
978
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
979
|
-
return WebhookIdentityType2;
|
|
980
|
-
})(WebhookIdentityType || {});
|
|
981
973
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
982
974
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
983
975
|
Set2["BASIC"] = "BASIC";
|
|
@@ -1000,37 +992,45 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
1000
992
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
1001
993
|
return ReasonNotSuspendable2;
|
|
1002
994
|
})(ReasonNotSuspendable || {});
|
|
995
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
996
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
997
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
998
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
999
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1000
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1001
|
+
return WebhookIdentityType2;
|
|
1002
|
+
})(WebhookIdentityType || {});
|
|
1003
1003
|
|
|
1004
1004
|
// src/pricing-plans-v2-order-orders.meta.ts
|
|
1005
|
-
function
|
|
1006
|
-
const payload = {};
|
|
1007
|
-
const getRequestOptions =
|
|
1005
|
+
function managementGetOrder2() {
|
|
1006
|
+
const payload = { id: ":id" };
|
|
1007
|
+
const getRequestOptions = managementGetOrder(payload);
|
|
1008
1008
|
const getUrl = (context) => {
|
|
1009
1009
|
const { url } = getRequestOptions(context);
|
|
1010
1010
|
return url;
|
|
1011
1011
|
};
|
|
1012
1012
|
return {
|
|
1013
1013
|
getUrl,
|
|
1014
|
-
httpMethod: "
|
|
1015
|
-
path: "/v2/
|
|
1016
|
-
pathParams: {},
|
|
1014
|
+
httpMethod: "GET",
|
|
1015
|
+
path: "/v2/orders/{id}",
|
|
1016
|
+
pathParams: { id: "id" },
|
|
1017
1017
|
__requestType: null,
|
|
1018
1018
|
__originalRequestType: null,
|
|
1019
1019
|
__responseType: null,
|
|
1020
1020
|
__originalResponseType: null
|
|
1021
1021
|
};
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function managementListOrders2() {
|
|
1024
1024
|
const payload = {};
|
|
1025
|
-
const getRequestOptions =
|
|
1025
|
+
const getRequestOptions = managementListOrders(payload);
|
|
1026
1026
|
const getUrl = (context) => {
|
|
1027
1027
|
const { url } = getRequestOptions(context);
|
|
1028
1028
|
return url;
|
|
1029
1029
|
};
|
|
1030
1030
|
return {
|
|
1031
1031
|
getUrl,
|
|
1032
|
-
httpMethod: "
|
|
1033
|
-
path: "/v2/
|
|
1032
|
+
httpMethod: "GET",
|
|
1033
|
+
path: "/v2/orders",
|
|
1034
1034
|
pathParams: {},
|
|
1035
1035
|
__requestType: null,
|
|
1036
1036
|
__originalRequestType: null,
|
|
@@ -1038,27 +1038,27 @@ function createOfflineOrder2() {
|
|
|
1038
1038
|
__originalResponseType: null
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
const payload = {};
|
|
1043
|
-
const getRequestOptions =
|
|
1041
|
+
function postponeEndDate2() {
|
|
1042
|
+
const payload = { id: ":id" };
|
|
1043
|
+
const getRequestOptions = postponeEndDate(payload);
|
|
1044
1044
|
const getUrl = (context) => {
|
|
1045
1045
|
const { url } = getRequestOptions(context);
|
|
1046
1046
|
return url;
|
|
1047
1047
|
};
|
|
1048
1048
|
return {
|
|
1049
1049
|
getUrl,
|
|
1050
|
-
httpMethod: "
|
|
1051
|
-
path: "/v2/
|
|
1052
|
-
pathParams: {},
|
|
1050
|
+
httpMethod: "PATCH",
|
|
1051
|
+
path: "/v2/orders/{id}",
|
|
1052
|
+
pathParams: { id: "id" },
|
|
1053
1053
|
__requestType: null,
|
|
1054
1054
|
__originalRequestType: null,
|
|
1055
1055
|
__responseType: null,
|
|
1056
1056
|
__originalResponseType: null
|
|
1057
1057
|
};
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1060
|
-
const payload = {};
|
|
1061
|
-
const getRequestOptions =
|
|
1059
|
+
function cancelOrder2() {
|
|
1060
|
+
const payload = { id: ":id" };
|
|
1061
|
+
const getRequestOptions = cancelOrder(payload);
|
|
1062
1062
|
const getUrl = (context) => {
|
|
1063
1063
|
const { url } = getRequestOptions(context);
|
|
1064
1064
|
return url;
|
|
@@ -1066,17 +1066,17 @@ function getOfflineOrderPreview2() {
|
|
|
1066
1066
|
return {
|
|
1067
1067
|
getUrl,
|
|
1068
1068
|
httpMethod: "POST",
|
|
1069
|
-
path: "/v2/
|
|
1070
|
-
pathParams: {},
|
|
1069
|
+
path: "/v2/orders/{id}/cancel",
|
|
1070
|
+
pathParams: { id: "id" },
|
|
1071
1071
|
__requestType: null,
|
|
1072
1072
|
__originalRequestType: null,
|
|
1073
1073
|
__responseType: null,
|
|
1074
1074
|
__originalResponseType: null
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1078
|
-
const payload = {};
|
|
1079
|
-
const getRequestOptions =
|
|
1077
|
+
function markAsPaid2() {
|
|
1078
|
+
const payload = { id: ":id" };
|
|
1079
|
+
const getRequestOptions = markAsPaid(payload);
|
|
1080
1080
|
const getUrl = (context) => {
|
|
1081
1081
|
const { url } = getRequestOptions(context);
|
|
1082
1082
|
return url;
|
|
@@ -1084,25 +1084,25 @@ function getPricePreview2() {
|
|
|
1084
1084
|
return {
|
|
1085
1085
|
getUrl,
|
|
1086
1086
|
httpMethod: "POST",
|
|
1087
|
-
path: "/v2/
|
|
1088
|
-
pathParams: {},
|
|
1087
|
+
path: "/v2/orders/{id}/mark-as-paid",
|
|
1088
|
+
pathParams: { id: "id" },
|
|
1089
1089
|
__requestType: null,
|
|
1090
1090
|
__originalRequestType: null,
|
|
1091
1091
|
__responseType: null,
|
|
1092
1092
|
__originalResponseType: null
|
|
1093
1093
|
};
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function pauseOrder2() {
|
|
1096
1096
|
const payload = { id: ":id" };
|
|
1097
|
-
const getRequestOptions =
|
|
1097
|
+
const getRequestOptions = pauseOrder(payload);
|
|
1098
1098
|
const getUrl = (context) => {
|
|
1099
1099
|
const { url } = getRequestOptions(context);
|
|
1100
1100
|
return url;
|
|
1101
1101
|
};
|
|
1102
1102
|
return {
|
|
1103
1103
|
getUrl,
|
|
1104
|
-
httpMethod: "
|
|
1105
|
-
path: "/v2/orders/{id}",
|
|
1104
|
+
httpMethod: "POST",
|
|
1105
|
+
path: "/v2/orders/{id}/pause",
|
|
1106
1106
|
pathParams: { id: "id" },
|
|
1107
1107
|
__requestType: null,
|
|
1108
1108
|
__originalRequestType: null,
|
|
@@ -1110,45 +1110,45 @@ function managementGetOrder2() {
|
|
|
1110
1110
|
__originalResponseType: null
|
|
1111
1111
|
};
|
|
1112
1112
|
}
|
|
1113
|
-
function
|
|
1114
|
-
const payload = {};
|
|
1115
|
-
const getRequestOptions =
|
|
1113
|
+
function resumeOrder2() {
|
|
1114
|
+
const payload = { id: ":id" };
|
|
1115
|
+
const getRequestOptions = resumeOrder(payload);
|
|
1116
1116
|
const getUrl = (context) => {
|
|
1117
1117
|
const { url } = getRequestOptions(context);
|
|
1118
1118
|
return url;
|
|
1119
1119
|
};
|
|
1120
1120
|
return {
|
|
1121
1121
|
getUrl,
|
|
1122
|
-
httpMethod: "
|
|
1123
|
-
path: "/v2/orders",
|
|
1124
|
-
pathParams: {},
|
|
1122
|
+
httpMethod: "POST",
|
|
1123
|
+
path: "/v2/orders/{id}/resume",
|
|
1124
|
+
pathParams: { id: "id" },
|
|
1125
1125
|
__requestType: null,
|
|
1126
1126
|
__originalRequestType: null,
|
|
1127
1127
|
__responseType: null,
|
|
1128
1128
|
__originalResponseType: null
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1132
|
-
const payload = {
|
|
1133
|
-
const getRequestOptions =
|
|
1131
|
+
function createOnlineOrder2() {
|
|
1132
|
+
const payload = {};
|
|
1133
|
+
const getRequestOptions = createOnlineOrder(payload);
|
|
1134
1134
|
const getUrl = (context) => {
|
|
1135
1135
|
const { url } = getRequestOptions(context);
|
|
1136
1136
|
return url;
|
|
1137
1137
|
};
|
|
1138
1138
|
return {
|
|
1139
1139
|
getUrl,
|
|
1140
|
-
httpMethod: "
|
|
1141
|
-
path: "/v2/orders/
|
|
1142
|
-
pathParams: {
|
|
1140
|
+
httpMethod: "POST",
|
|
1141
|
+
path: "/v2/checkout/orders/online",
|
|
1142
|
+
pathParams: {},
|
|
1143
1143
|
__requestType: null,
|
|
1144
1144
|
__originalRequestType: null,
|
|
1145
1145
|
__responseType: null,
|
|
1146
1146
|
__originalResponseType: null
|
|
1147
1147
|
};
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1150
|
-
const payload = {
|
|
1151
|
-
const getRequestOptions =
|
|
1149
|
+
function createOfflineOrder2() {
|
|
1150
|
+
const payload = {};
|
|
1151
|
+
const getRequestOptions = createOfflineOrder(payload);
|
|
1152
1152
|
const getUrl = (context) => {
|
|
1153
1153
|
const { url } = getRequestOptions(context);
|
|
1154
1154
|
return url;
|
|
@@ -1156,17 +1156,17 @@ function cancelOrder2() {
|
|
|
1156
1156
|
return {
|
|
1157
1157
|
getUrl,
|
|
1158
1158
|
httpMethod: "POST",
|
|
1159
|
-
path: "/v2/orders/
|
|
1160
|
-
pathParams: {
|
|
1159
|
+
path: "/v2/checkout/orders/offline",
|
|
1160
|
+
pathParams: {},
|
|
1161
1161
|
__requestType: null,
|
|
1162
1162
|
__originalRequestType: null,
|
|
1163
1163
|
__responseType: null,
|
|
1164
1164
|
__originalResponseType: null
|
|
1165
1165
|
};
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1168
|
-
const payload = {
|
|
1169
|
-
const getRequestOptions =
|
|
1167
|
+
function getOnlineOrderPreview2() {
|
|
1168
|
+
const payload = {};
|
|
1169
|
+
const getRequestOptions = getOnlineOrderPreview(payload);
|
|
1170
1170
|
const getUrl = (context) => {
|
|
1171
1171
|
const { url } = getRequestOptions(context);
|
|
1172
1172
|
return url;
|
|
@@ -1174,17 +1174,17 @@ function markAsPaid2() {
|
|
|
1174
1174
|
return {
|
|
1175
1175
|
getUrl,
|
|
1176
1176
|
httpMethod: "POST",
|
|
1177
|
-
path: "/v2/orders/
|
|
1178
|
-
pathParams: {
|
|
1177
|
+
path: "/v2/checkout/orders/preview-online",
|
|
1178
|
+
pathParams: {},
|
|
1179
1179
|
__requestType: null,
|
|
1180
1180
|
__originalRequestType: null,
|
|
1181
1181
|
__responseType: null,
|
|
1182
1182
|
__originalResponseType: null
|
|
1183
1183
|
};
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1186
|
-
const payload = {
|
|
1187
|
-
const getRequestOptions =
|
|
1185
|
+
function getOfflineOrderPreview2() {
|
|
1186
|
+
const payload = {};
|
|
1187
|
+
const getRequestOptions = getOfflineOrderPreview(payload);
|
|
1188
1188
|
const getUrl = (context) => {
|
|
1189
1189
|
const { url } = getRequestOptions(context);
|
|
1190
1190
|
return url;
|
|
@@ -1192,17 +1192,17 @@ function pauseOrder2() {
|
|
|
1192
1192
|
return {
|
|
1193
1193
|
getUrl,
|
|
1194
1194
|
httpMethod: "POST",
|
|
1195
|
-
path: "/v2/orders/
|
|
1196
|
-
pathParams: {
|
|
1195
|
+
path: "/v2/checkout/orders/preview-offline",
|
|
1196
|
+
pathParams: {},
|
|
1197
1197
|
__requestType: null,
|
|
1198
1198
|
__originalRequestType: null,
|
|
1199
1199
|
__responseType: null,
|
|
1200
1200
|
__originalResponseType: null
|
|
1201
1201
|
};
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1204
|
-
const payload = {
|
|
1205
|
-
const getRequestOptions =
|
|
1203
|
+
function getPricePreview2() {
|
|
1204
|
+
const payload = {};
|
|
1205
|
+
const getRequestOptions = getPricePreview(payload);
|
|
1206
1206
|
const getUrl = (context) => {
|
|
1207
1207
|
const { url } = getRequestOptions(context);
|
|
1208
1208
|
return url;
|
|
@@ -1210,8 +1210,8 @@ function resumeOrder2() {
|
|
|
1210
1210
|
return {
|
|
1211
1211
|
getUrl,
|
|
1212
1212
|
httpMethod: "POST",
|
|
1213
|
-
path: "/v2/orders/
|
|
1214
|
-
pathParams: {
|
|
1213
|
+
path: "/v2/checkout/orders/price-preview",
|
|
1214
|
+
pathParams: {},
|
|
1215
1215
|
__requestType: null,
|
|
1216
1216
|
__originalRequestType: null,
|
|
1217
1217
|
__responseType: null,
|