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