@wix/auto_sdk_pricing-plans_orders 1.0.80 → 1.0.82

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +3 -3
  2. package/build/cjs/index.js +137 -131
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +6 -6
  5. package/build/cjs/index.typings.js +137 -131
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +3 -3
  8. package/build/cjs/meta.js +137 -131
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +3 -3
  11. package/build/es/index.mjs +137 -131
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +6 -6
  14. package/build/es/index.typings.mjs +137 -131
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +3 -3
  17. package/build/es/meta.mjs +137 -131
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +3 -3
  20. package/build/internal/cjs/index.js +137 -131
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +6 -6
  23. package/build/internal/cjs/index.typings.js +137 -131
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +3 -3
  26. package/build/internal/cjs/meta.js +137 -131
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +3 -3
  29. package/build/internal/es/index.mjs +137 -131
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +6 -6
  32. package/build/internal/es/index.typings.mjs +137 -131
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +3 -3
  35. package/build/internal/es/meta.mjs +137 -131
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -5,7 +5,7 @@ import { NonNullablePaths } from '@wix/sdk-types';
5
5
  * You can manage existing orders, create offline orders, and preview orders not yet purchased.
6
6
  *
7
7
  * Orders are based on pricing models based on the payment and duration cycles for each plan.
8
- * Learn more about pricing models ([REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/introduction#wix-pricing-plans_pricing-plans_introduction_pricing-models)|[SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/introduction#pricing-models)).
8
+ * Learn more about [pricing models](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/introduction#wix-pricing-plans_pricing-plans_introduction_pricing-models).
9
9
  */
10
10
  interface Order {
11
11
  /**
@@ -48,7 +48,7 @@ interface Order {
48
48
  /**
49
49
  * Order pricing model, price, and payment schedule.
50
50
  *
51
- * Learn more about pricing models ([REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/introduction#wix-pricing-plans_pricing-plans_introduction_pricing-models) | [SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/introduction#pricing-models)).
51
+ * Learn more about [pricing models](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/introduction#wix-pricing-plans_pricing-plans_introduction_pricing-models).
52
52
  * @readonly
53
53
  */
54
54
  pricing?: PricingDetails;
@@ -547,7 +547,7 @@ interface OrderCycle {
547
547
  }
548
548
  interface FormData {
549
549
  /**
550
- * ID of the order form ([REST](https://dev.wix.com/docs/rest/api-reference/wix-forms/form-submissions/introduction)|[SDK](https://dev.wix.com/docs/sdk/backend-modules/forms/submissions/introduction)) associated with the plan at checkout.
550
+ * ID of the [order form](https://dev.wix.com/docs/rest/api-reference/wix-forms/form-submissions/introduction) associated with the plan at checkout.
551
551
  * @format GUID
552
552
  */
553
553
  formId?: string | null;
@@ -2364,7 +2364,7 @@ declare function requestCancellation(_id: string, effectiveAt: CancellationEffec
2364
2364
  /**
2365
2365
  * Creates an online order for a site member.
2366
2366
  *
2367
- * If this method is called by a site member ([SDK](https://dev.wix.com/docs/sdk/articles/get-started/about-identities#site-member) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#site-member)), the plan is automatically ordered on behalf of that site member. Otherwise, you must specify `onBehalf.memberId` in your call.
2367
+ * If this method is called by a [site member](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#site-member), the plan is automatically ordered on behalf of that site member. Otherwise, you must specify `onBehalf.memberId` in your call.
2368
2368
  *
2369
2369
  * When an online order is created, but payment hasn't been processed, its status is set to `DRAFT`. After the payment has been processed, if the start date is in the future the order's status is set to `PENDING`. Otherwise, it's set to `ACTIVE`.
2370
2370
  * @param planId - Plan ID.
@@ -2460,7 +2460,7 @@ interface CreateOfflineOrderOptions {
2460
2460
  *
2461
2461
  * You can use this method to show a site member a preview of an online order before [creating](https://dev.wix.com/docs/rest/business-solutions/pricing-plans/pricing-plans/orders/create-online-order) it.
2462
2462
  *
2463
- * This method must be called using the site member identity ([SDK](https://dev.wix.com/docs/sdk/articles/get-started/about-identities#site-member) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#site-member)). Therefore, [Wix apps](https://dev.wix.com/docs/build-apps) can't currently call this method using REST.
2463
+ * This method must be called using the [site member identity](https://dev.wix.com/docs/rest/articles/getting-started/about-identities#site-member). Therefore, [Wix apps](https://dev.wix.com/docs/build-apps) can't currently call this method using REST.
2464
2464
  * @param planId - Plan ID.
2465
2465
  * @public
2466
2466
  * @requiredField planId
@@ -2532,7 +2532,7 @@ interface GetOfflineOrderPreviewOptions {
2532
2532
  *
2533
2533
  * The price preview uses the same logic as purchasing a plan, but the preview is not saved. Tax is only applied if
2534
2534
  * the site [has it configured](https://support.wix.com/en/article/pricing-plans-setting-up-tax-collection). The price is returned
2535
- * in the pricing model format used for orders. Learn more about pricing models ([REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/introduction#wix-pricing-plans_pricing-plans_introduction_pricing-models)|[SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/introduction#pricing-models)).
2535
+ * in the pricing model format used for orders. Learn more about [pricing models](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/introduction#wix-pricing-plans_pricing-plans_introduction_pricing-models).
2536
2536
  *
2537
2537
  * Buyers do not have to be logged in to preview the price, and as such, the details returned are not buyer-specific. To
2538
2538
  * generate a preview of a purchase for a specific buyer, call Get Offline Order Preview.
@@ -62,104 +62,110 @@ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform
62
62
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
63
63
  function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
64
64
  const domainToMappings = {
65
- "www._base_domain_": [
66
- {
67
- srcPath: "/_api/paid-plans",
68
- destPath: ""
69
- }
70
- ],
71
- "forums.wixapps.net": [
65
+ "api._api_base_domain_": [
72
66
  {
73
- srcPath: "/_api/paid-plans",
67
+ srcPath: "/pricing-plans-checkout-proxy",
74
68
  destPath: ""
75
69
  }
76
70
  ],
77
- "editor._base_domain_": [
71
+ "*.dev.wix-code.com": [
78
72
  {
79
- srcPath: "/_api/paid-plans",
80
- destPath: ""
73
+ srcPath: "/_api/paid-plans/v2/checkout",
74
+ destPath: "/v2/checkout"
81
75
  }
82
76
  ],
83
- "blocks._base_domain_": [
77
+ "*.pub.wix-code.com": [
84
78
  {
85
- srcPath: "/_api/paid-plans",
86
- destPath: ""
79
+ srcPath: "/_api/paid-plans/v2/checkout",
80
+ destPath: "/v2/checkout"
87
81
  }
88
82
  ],
89
- "create.editorx": [
83
+ "*.wixapps.net": [
90
84
  {
91
- srcPath: "/_api/paid-plans",
92
- destPath: ""
85
+ srcPath: "/_api/paid-plans/v2/checkout",
86
+ destPath: "/v2/checkout"
93
87
  }
94
88
  ],
95
89
  _: [
96
90
  {
97
- srcPath: "/_api/paid-plans",
98
- destPath: ""
91
+ srcPath: "/pricing-plans/v2/checkout",
92
+ destPath: "/v2/checkout"
93
+ },
94
+ {
95
+ srcPath: "/_api/paid-plans/v2/checkout",
96
+ destPath: "/v2/checkout"
99
97
  },
100
98
  {
101
- srcPath: "/paid-plans/v1/orders",
102
- destPath: "/v1/orders"
99
+ srcPath: "/_api/pricing-plans/v2/checkout",
100
+ destPath: "/v2/checkout"
103
101
  }
104
102
  ],
105
- "*.wixapps.net": [
103
+ "editor-flow.wixapps.net": [
106
104
  {
107
- srcPath: "/_api/paid-plans",
108
- destPath: ""
105
+ srcPath: "/_api/paid-plans/v2/checkout",
106
+ destPath: "/v2/checkout"
109
107
  }
110
108
  ],
111
- "*.pub.wix-code.com": [
109
+ "editor._base_domain_": [
112
110
  {
113
- srcPath: "/_api/paid-plans",
114
- destPath: ""
111
+ srcPath: "/_api/paid-plans/v2/checkout",
112
+ destPath: "/v2/checkout"
115
113
  }
116
114
  ],
117
- "*.dev.wix-code.com": [
115
+ "blocks._base_domain_": [
118
116
  {
119
- srcPath: "/_api/paid-plans",
120
- destPath: ""
117
+ srcPath: "/_api/paid-plans/v2/checkout",
118
+ destPath: "/v2/checkout"
121
119
  }
122
120
  ],
123
- "manage._base_domain_": [
124
- {
125
- srcPath: "/_api/paid-plans",
126
- destPath: ""
127
- },
121
+ "create.editorx": [
128
122
  {
129
- srcPath: "/_api/pricing-plans",
130
- destPath: ""
123
+ srcPath: "/_api/paid-plans/v2/checkout",
124
+ destPath: "/v2/checkout"
131
125
  }
132
126
  ],
133
- "forums._base_domain_": [
127
+ "editor.wixapps.net": [
134
128
  {
135
- srcPath: "/_api/paid-plans",
136
- destPath: ""
129
+ srcPath: "/_api/paid-plans/v2/checkout",
130
+ destPath: "/v2/checkout"
137
131
  }
138
132
  ],
139
- "editor-flow.wixapps.net": [
133
+ "forums._base_domain_": [
140
134
  {
141
- srcPath: "/_api/paid-plans",
142
- destPath: ""
135
+ srcPath: "/_api/paid-plans/v2/checkout",
136
+ destPath: "/v2/checkout"
143
137
  }
144
138
  ],
145
- "editor.wixapps.net": [
139
+ "forums.wixapps.net": [
146
140
  {
147
- srcPath: "/_api/paid-plans",
148
- destPath: ""
141
+ srcPath: "/_api/paid-plans/v2/checkout",
142
+ destPath: "/v2/checkout"
149
143
  }
150
144
  ],
151
- "api._api_base_domain_": [
145
+ "manage._base_domain_": [
152
146
  {
153
- srcPath: "/membership-api",
154
- destPath: ""
147
+ srcPath: "/_api/pricing-plans/v2/checkout",
148
+ destPath: "/v2/checkout"
155
149
  },
156
150
  {
157
- srcPath: "/paid-plans",
158
- destPath: ""
151
+ srcPath: "/_api/paid-plans/v2/checkout",
152
+ destPath: "/v2/checkout"
159
153
  },
160
154
  {
161
- srcPath: "/_api/paid-plans",
162
- destPath: ""
155
+ srcPath: "/pricing-plans/v2/checkout",
156
+ destPath: "/v2/checkout"
157
+ }
158
+ ],
159
+ "www._base_domain_": [
160
+ {
161
+ srcPath: "/_api/paid-plans/v2/checkout",
162
+ destPath: "/v2/checkout"
163
+ }
164
+ ],
165
+ "www.wixapis.com": [
166
+ {
167
+ srcPath: "/pricing-plans/v2/checkout",
168
+ destPath: "/v2/checkout"
163
169
  }
164
170
  ]
165
171
  };
@@ -167,54 +173,60 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
167
173
  }
168
174
  function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
169
175
  const domainToMappings = {
170
- "*.dev.wix-code.com": [
176
+ "api._api_base_domain_": [
171
177
  {
172
- srcPath: "/_api/pricing-plans-member-orders",
178
+ srcPath: "/member-orders-service-proxy",
173
179
  destPath: ""
180
+ }
181
+ ],
182
+ "*.dev.wix-code.com": [
183
+ {
184
+ srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
185
+ destPath: "/v2/member/orders"
174
186
  },
175
187
  {
176
- srcPath: "/_api/pricing-plans/v2/member",
177
- destPath: "/v2/member"
188
+ srcPath: "/_api/pricing-plans/v2/member/orders",
189
+ destPath: "/v2/member/orders"
178
190
  }
179
191
  ],
180
192
  "*.pub.wix-code.com": [
181
193
  {
182
- srcPath: "/_api/pricing-plans-member-orders",
183
- destPath: ""
194
+ srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
195
+ destPath: "/v2/member/orders"
184
196
  },
185
197
  {
186
- srcPath: "/_api/pricing-plans/v2/member",
187
- destPath: "/v2/member"
198
+ srcPath: "/_api/pricing-plans/v2/member/orders",
199
+ destPath: "/v2/member/orders"
188
200
  }
189
201
  ],
190
- "www.wixapis.com": [
202
+ _: [
191
203
  {
192
- srcPath: "/pricing-plans/v2/member",
193
- destPath: "/v2/member"
204
+ srcPath: "/_api/pricing-plans/v2/member/orders",
205
+ destPath: "/v2/member/orders"
194
206
  }
195
207
  ],
196
- "www._base_domain_": [
208
+ "editor.wixapps.net": [
197
209
  {
198
- srcPath: "/_api/pricing-plans/v2/member",
199
- destPath: "/v2/member"
210
+ srcPath: "/_api/pricing-plans/v2/member/orders",
211
+ destPath: "/v2/member/orders"
200
212
  }
201
213
  ],
202
- _: [
214
+ "manage._base_domain_": [
203
215
  {
204
- srcPath: "/_api/pricing-plans/v2/member",
205
- destPath: "/v2/member"
216
+ srcPath: "/_api/pricing-plans/v2/member/orders",
217
+ destPath: "/v2/member/orders"
206
218
  }
207
219
  ],
208
- "manage._base_domain_": [
220
+ "www._base_domain_": [
209
221
  {
210
- srcPath: "/_api/pricing-plans/v2/member",
211
- destPath: "/v2/member"
222
+ srcPath: "/_api/pricing-plans/v2/member/orders",
223
+ destPath: "/v2/member/orders"
212
224
  }
213
225
  ],
214
- "editor.wixapps.net": [
226
+ "www.wixapis.com": [
215
227
  {
216
- srcPath: "/_api/pricing-plans/v2/member",
217
- destPath: "/v2/member"
228
+ srcPath: "/pricing-plans/v2/member/orders",
229
+ destPath: "/v2/member/orders"
218
230
  }
219
231
  ]
220
232
  };
@@ -222,104 +234,98 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
222
234
  }
223
235
  function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
224
236
  const domainToMappings = {
225
- "www._base_domain_": [
237
+ "api._api_base_domain_": [
226
238
  {
227
- srcPath: "/_api/paid-plans",
239
+ srcPath: "/order-management-service-proxy",
228
240
  destPath: ""
229
241
  }
230
242
  ],
231
- "forums.wixapps.net": [
243
+ "*.dev.wix-code.com": [
232
244
  {
233
- srcPath: "/_api/paid-plans",
234
- destPath: ""
245
+ srcPath: "/_api/paid-plans/v2/orders",
246
+ destPath: "/v2/orders"
235
247
  }
236
248
  ],
237
- "editor._base_domain_": [
249
+ "*.pub.wix-code.com": [
238
250
  {
239
- srcPath: "/_api/paid-plans",
240
- destPath: ""
251
+ srcPath: "/_api/paid-plans/v2/orders",
252
+ destPath: "/v2/orders"
241
253
  }
242
254
  ],
243
- "blocks._base_domain_": [
255
+ "*.wixapps.net": [
244
256
  {
245
- srcPath: "/_api/paid-plans",
246
- destPath: ""
257
+ srcPath: "/_api/paid-plans/v2/orders",
258
+ destPath: "/v2/orders"
247
259
  }
248
260
  ],
249
- "create.editorx": [
261
+ _: [
250
262
  {
251
- srcPath: "/_api/paid-plans",
252
- destPath: ""
263
+ srcPath: "/_api/paid-plans/v2/orders",
264
+ destPath: "/v2/orders"
253
265
  }
254
266
  ],
255
- _: [
256
- {
257
- srcPath: "/_api/paid-plans",
258
- destPath: ""
259
- },
267
+ "editor-flow.wixapps.net": [
260
268
  {
261
- srcPath: "/paid-plans/v1/orders",
262
- destPath: "/v1/orders"
269
+ srcPath: "/_api/paid-plans/v2/orders",
270
+ destPath: "/v2/orders"
263
271
  }
264
272
  ],
265
- "*.wixapps.net": [
273
+ "editor._base_domain_": [
266
274
  {
267
- srcPath: "/_api/paid-plans",
268
- destPath: ""
275
+ srcPath: "/_api/paid-plans/v2/orders",
276
+ destPath: "/v2/orders"
269
277
  }
270
278
  ],
271
- "*.pub.wix-code.com": [
279
+ "blocks._base_domain_": [
272
280
  {
273
- srcPath: "/_api/paid-plans",
274
- destPath: ""
281
+ srcPath: "/_api/paid-plans/v2/orders",
282
+ destPath: "/v2/orders"
275
283
  }
276
284
  ],
277
- "*.dev.wix-code.com": [
285
+ "create.editorx": [
278
286
  {
279
- srcPath: "/_api/paid-plans",
280
- destPath: ""
287
+ srcPath: "/_api/paid-plans/v2/orders",
288
+ destPath: "/v2/orders"
281
289
  }
282
290
  ],
283
- "manage._base_domain_": [
284
- {
285
- srcPath: "/_api/paid-plans",
286
- destPath: ""
287
- },
291
+ "editor.wixapps.net": [
288
292
  {
289
- srcPath: "/_api/pricing-plans",
290
- destPath: ""
293
+ srcPath: "/_api/paid-plans/v2/orders",
294
+ destPath: "/v2/orders"
291
295
  }
292
296
  ],
293
297
  "forums._base_domain_": [
294
298
  {
295
- srcPath: "/_api/paid-plans",
296
- destPath: ""
299
+ srcPath: "/_api/paid-plans/v2/orders",
300
+ destPath: "/v2/orders"
297
301
  }
298
302
  ],
299
- "editor-flow.wixapps.net": [
303
+ "forums.wixapps.net": [
300
304
  {
301
- srcPath: "/_api/paid-plans",
302
- destPath: ""
305
+ srcPath: "/_api/paid-plans/v2/orders",
306
+ destPath: "/v2/orders"
303
307
  }
304
308
  ],
305
- "editor.wixapps.net": [
309
+ "manage._base_domain_": [
306
310
  {
307
- srcPath: "/_api/paid-plans",
308
- destPath: ""
311
+ srcPath: "/_api/pricing-plans/v2/orders",
312
+ destPath: "/v2/orders"
313
+ },
314
+ {
315
+ srcPath: "/_api/paid-plans/v2/orders",
316
+ destPath: "/v2/orders"
309
317
  }
310
318
  ],
311
- "api._api_base_domain_": [
312
- {
313
- srcPath: "/membership-api",
314
- destPath: ""
315
- },
319
+ "www._base_domain_": [
316
320
  {
317
- srcPath: "/paid-plans",
318
- destPath: ""
319
- },
321
+ srcPath: "/_api/paid-plans/v2/orders",
322
+ destPath: "/v2/orders"
323
+ }
324
+ ],
325
+ "www.wixapis.com": [
320
326
  {
321
- srcPath: "/_api/paid-plans",
322
- destPath: ""
327
+ srcPath: "/pricing-plans/v2/orders",
328
+ destPath: "/v2/orders"
323
329
  }
324
330
  ]
325
331
  };