@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.
@@ -13,104 +13,110 @@ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths
13
13
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
14
14
  function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
15
15
  const domainToMappings = {
16
- "www._base_domain_": [
17
- {
18
- srcPath: "/_api/paid-plans",
19
- destPath: ""
20
- }
21
- ],
22
- "forums.wixapps.net": [
16
+ "api._api_base_domain_": [
23
17
  {
24
- srcPath: "/_api/paid-plans",
18
+ srcPath: "/pricing-plans-checkout-proxy",
25
19
  destPath: ""
26
20
  }
27
21
  ],
28
- "editor._base_domain_": [
22
+ "*.dev.wix-code.com": [
29
23
  {
30
- srcPath: "/_api/paid-plans",
31
- destPath: ""
24
+ srcPath: "/_api/paid-plans/v2/checkout",
25
+ destPath: "/v2/checkout"
32
26
  }
33
27
  ],
34
- "blocks._base_domain_": [
28
+ "*.pub.wix-code.com": [
35
29
  {
36
- srcPath: "/_api/paid-plans",
37
- destPath: ""
30
+ srcPath: "/_api/paid-plans/v2/checkout",
31
+ destPath: "/v2/checkout"
38
32
  }
39
33
  ],
40
- "create.editorx": [
34
+ "*.wixapps.net": [
41
35
  {
42
- srcPath: "/_api/paid-plans",
43
- destPath: ""
36
+ srcPath: "/_api/paid-plans/v2/checkout",
37
+ destPath: "/v2/checkout"
44
38
  }
45
39
  ],
46
40
  _: [
47
41
  {
48
- srcPath: "/_api/paid-plans",
49
- destPath: ""
42
+ srcPath: "/pricing-plans/v2/checkout",
43
+ destPath: "/v2/checkout"
44
+ },
45
+ {
46
+ srcPath: "/_api/paid-plans/v2/checkout",
47
+ destPath: "/v2/checkout"
50
48
  },
51
49
  {
52
- srcPath: "/paid-plans/v1/orders",
53
- destPath: "/v1/orders"
50
+ srcPath: "/_api/pricing-plans/v2/checkout",
51
+ destPath: "/v2/checkout"
54
52
  }
55
53
  ],
56
- "*.wixapps.net": [
54
+ "editor-flow.wixapps.net": [
57
55
  {
58
- srcPath: "/_api/paid-plans",
59
- destPath: ""
56
+ srcPath: "/_api/paid-plans/v2/checkout",
57
+ destPath: "/v2/checkout"
60
58
  }
61
59
  ],
62
- "*.pub.wix-code.com": [
60
+ "editor._base_domain_": [
63
61
  {
64
- srcPath: "/_api/paid-plans",
65
- destPath: ""
62
+ srcPath: "/_api/paid-plans/v2/checkout",
63
+ destPath: "/v2/checkout"
66
64
  }
67
65
  ],
68
- "*.dev.wix-code.com": [
66
+ "blocks._base_domain_": [
69
67
  {
70
- srcPath: "/_api/paid-plans",
71
- destPath: ""
68
+ srcPath: "/_api/paid-plans/v2/checkout",
69
+ destPath: "/v2/checkout"
72
70
  }
73
71
  ],
74
- "manage._base_domain_": [
75
- {
76
- srcPath: "/_api/paid-plans",
77
- destPath: ""
78
- },
72
+ "create.editorx": [
79
73
  {
80
- srcPath: "/_api/pricing-plans",
81
- destPath: ""
74
+ srcPath: "/_api/paid-plans/v2/checkout",
75
+ destPath: "/v2/checkout"
82
76
  }
83
77
  ],
84
- "forums._base_domain_": [
78
+ "editor.wixapps.net": [
85
79
  {
86
- srcPath: "/_api/paid-plans",
87
- destPath: ""
80
+ srcPath: "/_api/paid-plans/v2/checkout",
81
+ destPath: "/v2/checkout"
88
82
  }
89
83
  ],
90
- "editor-flow.wixapps.net": [
84
+ "forums._base_domain_": [
91
85
  {
92
- srcPath: "/_api/paid-plans",
93
- destPath: ""
86
+ srcPath: "/_api/paid-plans/v2/checkout",
87
+ destPath: "/v2/checkout"
94
88
  }
95
89
  ],
96
- "editor.wixapps.net": [
90
+ "forums.wixapps.net": [
97
91
  {
98
- srcPath: "/_api/paid-plans",
99
- destPath: ""
92
+ srcPath: "/_api/paid-plans/v2/checkout",
93
+ destPath: "/v2/checkout"
100
94
  }
101
95
  ],
102
- "api._api_base_domain_": [
96
+ "manage._base_domain_": [
103
97
  {
104
- srcPath: "/membership-api",
105
- destPath: ""
98
+ srcPath: "/_api/pricing-plans/v2/checkout",
99
+ destPath: "/v2/checkout"
106
100
  },
107
101
  {
108
- srcPath: "/paid-plans",
109
- destPath: ""
102
+ srcPath: "/_api/paid-plans/v2/checkout",
103
+ destPath: "/v2/checkout"
110
104
  },
111
105
  {
112
- srcPath: "/_api/paid-plans",
113
- destPath: ""
106
+ srcPath: "/pricing-plans/v2/checkout",
107
+ destPath: "/v2/checkout"
108
+ }
109
+ ],
110
+ "www._base_domain_": [
111
+ {
112
+ srcPath: "/_api/paid-plans/v2/checkout",
113
+ destPath: "/v2/checkout"
114
+ }
115
+ ],
116
+ "www.wixapis.com": [
117
+ {
118
+ srcPath: "/pricing-plans/v2/checkout",
119
+ destPath: "/v2/checkout"
114
120
  }
115
121
  ]
116
122
  };
@@ -118,54 +124,60 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
118
124
  }
119
125
  function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
120
126
  const domainToMappings = {
121
- "*.dev.wix-code.com": [
127
+ "api._api_base_domain_": [
122
128
  {
123
- srcPath: "/_api/pricing-plans-member-orders",
129
+ srcPath: "/member-orders-service-proxy",
124
130
  destPath: ""
131
+ }
132
+ ],
133
+ "*.dev.wix-code.com": [
134
+ {
135
+ srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
136
+ destPath: "/v2/member/orders"
125
137
  },
126
138
  {
127
- srcPath: "/_api/pricing-plans/v2/member",
128
- destPath: "/v2/member"
139
+ srcPath: "/_api/pricing-plans/v2/member/orders",
140
+ destPath: "/v2/member/orders"
129
141
  }
130
142
  ],
131
143
  "*.pub.wix-code.com": [
132
144
  {
133
- srcPath: "/_api/pricing-plans-member-orders",
134
- destPath: ""
145
+ srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
146
+ destPath: "/v2/member/orders"
135
147
  },
136
148
  {
137
- srcPath: "/_api/pricing-plans/v2/member",
138
- destPath: "/v2/member"
149
+ srcPath: "/_api/pricing-plans/v2/member/orders",
150
+ destPath: "/v2/member/orders"
139
151
  }
140
152
  ],
141
- "www.wixapis.com": [
153
+ _: [
142
154
  {
143
- srcPath: "/pricing-plans/v2/member",
144
- destPath: "/v2/member"
155
+ srcPath: "/_api/pricing-plans/v2/member/orders",
156
+ destPath: "/v2/member/orders"
145
157
  }
146
158
  ],
147
- "www._base_domain_": [
159
+ "editor.wixapps.net": [
148
160
  {
149
- srcPath: "/_api/pricing-plans/v2/member",
150
- destPath: "/v2/member"
161
+ srcPath: "/_api/pricing-plans/v2/member/orders",
162
+ destPath: "/v2/member/orders"
151
163
  }
152
164
  ],
153
- _: [
165
+ "manage._base_domain_": [
154
166
  {
155
- srcPath: "/_api/pricing-plans/v2/member",
156
- destPath: "/v2/member"
167
+ srcPath: "/_api/pricing-plans/v2/member/orders",
168
+ destPath: "/v2/member/orders"
157
169
  }
158
170
  ],
159
- "manage._base_domain_": [
171
+ "www._base_domain_": [
160
172
  {
161
- srcPath: "/_api/pricing-plans/v2/member",
162
- destPath: "/v2/member"
173
+ srcPath: "/_api/pricing-plans/v2/member/orders",
174
+ destPath: "/v2/member/orders"
163
175
  }
164
176
  ],
165
- "editor.wixapps.net": [
177
+ "www.wixapis.com": [
166
178
  {
167
- srcPath: "/_api/pricing-plans/v2/member",
168
- destPath: "/v2/member"
179
+ srcPath: "/pricing-plans/v2/member/orders",
180
+ destPath: "/v2/member/orders"
169
181
  }
170
182
  ]
171
183
  };
@@ -173,104 +185,98 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
173
185
  }
174
186
  function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
175
187
  const domainToMappings = {
176
- "www._base_domain_": [
188
+ "api._api_base_domain_": [
177
189
  {
178
- srcPath: "/_api/paid-plans",
190
+ srcPath: "/order-management-service-proxy",
179
191
  destPath: ""
180
192
  }
181
193
  ],
182
- "forums.wixapps.net": [
194
+ "*.dev.wix-code.com": [
183
195
  {
184
- srcPath: "/_api/paid-plans",
185
- destPath: ""
196
+ srcPath: "/_api/paid-plans/v2/orders",
197
+ destPath: "/v2/orders"
186
198
  }
187
199
  ],
188
- "editor._base_domain_": [
200
+ "*.pub.wix-code.com": [
189
201
  {
190
- srcPath: "/_api/paid-plans",
191
- destPath: ""
202
+ srcPath: "/_api/paid-plans/v2/orders",
203
+ destPath: "/v2/orders"
192
204
  }
193
205
  ],
194
- "blocks._base_domain_": [
206
+ "*.wixapps.net": [
195
207
  {
196
- srcPath: "/_api/paid-plans",
197
- destPath: ""
208
+ srcPath: "/_api/paid-plans/v2/orders",
209
+ destPath: "/v2/orders"
198
210
  }
199
211
  ],
200
- "create.editorx": [
212
+ _: [
201
213
  {
202
- srcPath: "/_api/paid-plans",
203
- destPath: ""
214
+ srcPath: "/_api/paid-plans/v2/orders",
215
+ destPath: "/v2/orders"
204
216
  }
205
217
  ],
206
- _: [
207
- {
208
- srcPath: "/_api/paid-plans",
209
- destPath: ""
210
- },
218
+ "editor-flow.wixapps.net": [
211
219
  {
212
- srcPath: "/paid-plans/v1/orders",
213
- destPath: "/v1/orders"
220
+ srcPath: "/_api/paid-plans/v2/orders",
221
+ destPath: "/v2/orders"
214
222
  }
215
223
  ],
216
- "*.wixapps.net": [
224
+ "editor._base_domain_": [
217
225
  {
218
- srcPath: "/_api/paid-plans",
219
- destPath: ""
226
+ srcPath: "/_api/paid-plans/v2/orders",
227
+ destPath: "/v2/orders"
220
228
  }
221
229
  ],
222
- "*.pub.wix-code.com": [
230
+ "blocks._base_domain_": [
223
231
  {
224
- srcPath: "/_api/paid-plans",
225
- destPath: ""
232
+ srcPath: "/_api/paid-plans/v2/orders",
233
+ destPath: "/v2/orders"
226
234
  }
227
235
  ],
228
- "*.dev.wix-code.com": [
236
+ "create.editorx": [
229
237
  {
230
- srcPath: "/_api/paid-plans",
231
- destPath: ""
238
+ srcPath: "/_api/paid-plans/v2/orders",
239
+ destPath: "/v2/orders"
232
240
  }
233
241
  ],
234
- "manage._base_domain_": [
235
- {
236
- srcPath: "/_api/paid-plans",
237
- destPath: ""
238
- },
242
+ "editor.wixapps.net": [
239
243
  {
240
- srcPath: "/_api/pricing-plans",
241
- destPath: ""
244
+ srcPath: "/_api/paid-plans/v2/orders",
245
+ destPath: "/v2/orders"
242
246
  }
243
247
  ],
244
248
  "forums._base_domain_": [
245
249
  {
246
- srcPath: "/_api/paid-plans",
247
- destPath: ""
250
+ srcPath: "/_api/paid-plans/v2/orders",
251
+ destPath: "/v2/orders"
248
252
  }
249
253
  ],
250
- "editor-flow.wixapps.net": [
254
+ "forums.wixapps.net": [
251
255
  {
252
- srcPath: "/_api/paid-plans",
253
- destPath: ""
256
+ srcPath: "/_api/paid-plans/v2/orders",
257
+ destPath: "/v2/orders"
254
258
  }
255
259
  ],
256
- "editor.wixapps.net": [
260
+ "manage._base_domain_": [
257
261
  {
258
- srcPath: "/_api/paid-plans",
259
- destPath: ""
262
+ srcPath: "/_api/pricing-plans/v2/orders",
263
+ destPath: "/v2/orders"
264
+ },
265
+ {
266
+ srcPath: "/_api/paid-plans/v2/orders",
267
+ destPath: "/v2/orders"
260
268
  }
261
269
  ],
262
- "api._api_base_domain_": [
263
- {
264
- srcPath: "/membership-api",
265
- destPath: ""
266
- },
270
+ "www._base_domain_": [
267
271
  {
268
- srcPath: "/paid-plans",
269
- destPath: ""
270
- },
272
+ srcPath: "/_api/paid-plans/v2/orders",
273
+ destPath: "/v2/orders"
274
+ }
275
+ ],
276
+ "www.wixapis.com": [
271
277
  {
272
- srcPath: "/_api/paid-plans",
273
- destPath: ""
278
+ srcPath: "/pricing-plans/v2/orders",
279
+ destPath: "/v2/orders"
274
280
  }
275
281
  ]
276
282
  };