@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
@@ -151,7 +151,7 @@ interface CreateOnlineOrderSignature {
151
151
  /**
152
152
  * Creates an online order for a site member.
153
153
  *
154
- * 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.
154
+ * 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.
155
155
  *
156
156
  * 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`.
157
157
  * @param - Plan ID.
@@ -197,7 +197,7 @@ interface GetOnlineOrderPreviewSignature {
197
197
  *
198
198
  * 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.
199
199
  *
200
- * 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.
200
+ * 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.
201
201
  * @param - Plan ID.
202
202
  */
203
203
  (planId: string, options?: GetOnlineOrderPreviewOptions): Promise<NonNullablePaths<GetOnlineOrderPreviewResponse, `order._id` | `order.planId` | `order.subscriptionId` | `order.buyer.memberId` | `order.buyer.contactId` | `order.priceDetails.subscription.cycleDuration.unit` | `order.priceDetails.subtotal` | `order.priceDetails.discount` | `order.priceDetails.tax.name` | `order.priceDetails.tax.includedInPrice` | `order.priceDetails.tax.rate` | `order.priceDetails.tax.amount` | `order.priceDetails.total` | `order.priceDetails.planPrice` | `order.priceDetails.currency` | `order.priceDetails.coupon.code` | `order.priceDetails.coupon.amount` | `order.priceDetails.coupon._id` | `order.pricing.prices` | `order.pricing.prices.${number}.duration.cycleFrom` | `order.pricing.prices.${number}.price.subtotal` | `order.pricing.prices.${number}.price.discount` | `order.pricing.prices.${number}.price.total` | `order.pricing.prices.${number}.price.currency` | `order.pricing.prices.${number}.price.proration` | `order.type` | `order.status` | `order.cancellation.cause` | `order.cancellation.effectiveAt` | `order.lastPaymentStatus` | `order.pausePeriods` | `order.pausePeriods.${number}.status` | `order.currentCycle.index` | `order.planName` | `order.planDescription` | `order.planPrice` | `purchaseLimitExceeded`, 7> & {
@@ -235,7 +235,7 @@ interface GetPricePreviewSignature {
235
235
  *
236
236
  * The price preview uses the same logic as purchasing a plan, but the preview is not saved. Tax is only applied if
237
237
  * the site [has it configured](https://support.wix.com/en/article/pricing-plans-setting-up-tax-collection). The price is returned
238
- * 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)).
238
+ * 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).
239
239
  *
240
240
  * Buyers do not have to be logged in to preview the price, and as such, the details returned are not buyer-specific. To
241
241
  * generate a preview of a purchase for a specific buyer, call Get Offline Order Preview.
@@ -19,104 +19,110 @@ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths
19
19
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
20
20
  function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
21
21
  const domainToMappings = {
22
- "www._base_domain_": [
23
- {
24
- srcPath: "/_api/paid-plans",
25
- destPath: ""
26
- }
27
- ],
28
- "forums.wixapps.net": [
22
+ "api._api_base_domain_": [
29
23
  {
30
- srcPath: "/_api/paid-plans",
24
+ srcPath: "/pricing-plans-checkout-proxy",
31
25
  destPath: ""
32
26
  }
33
27
  ],
34
- "editor._base_domain_": [
28
+ "*.dev.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
- "blocks._base_domain_": [
34
+ "*.pub.wix-code.com": [
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
- "create.editorx": [
40
+ "*.wixapps.net": [
47
41
  {
48
- srcPath: "/_api/paid-plans",
49
- destPath: ""
42
+ srcPath: "/_api/paid-plans/v2/checkout",
43
+ destPath: "/v2/checkout"
50
44
  }
51
45
  ],
52
46
  _: [
53
47
  {
54
- srcPath: "/_api/paid-plans",
55
- destPath: ""
48
+ srcPath: "/pricing-plans/v2/checkout",
49
+ destPath: "/v2/checkout"
50
+ },
51
+ {
52
+ srcPath: "/_api/paid-plans/v2/checkout",
53
+ destPath: "/v2/checkout"
56
54
  },
57
55
  {
58
- srcPath: "/paid-plans/v1/orders",
59
- destPath: "/v1/orders"
56
+ srcPath: "/_api/pricing-plans/v2/checkout",
57
+ destPath: "/v2/checkout"
60
58
  }
61
59
  ],
62
- "*.wixapps.net": [
60
+ "editor-flow.wixapps.net": [
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
- "*.pub.wix-code.com": [
66
+ "editor._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
- "*.dev.wix-code.com": [
72
+ "blocks._base_domain_": [
75
73
  {
76
- srcPath: "/_api/paid-plans",
77
- destPath: ""
74
+ srcPath: "/_api/paid-plans/v2/checkout",
75
+ destPath: "/v2/checkout"
78
76
  }
79
77
  ],
80
- "manage._base_domain_": [
81
- {
82
- srcPath: "/_api/paid-plans",
83
- destPath: ""
84
- },
78
+ "create.editorx": [
85
79
  {
86
- srcPath: "/_api/pricing-plans",
87
- destPath: ""
80
+ srcPath: "/_api/paid-plans/v2/checkout",
81
+ destPath: "/v2/checkout"
88
82
  }
89
83
  ],
90
- "forums._base_domain_": [
84
+ "editor.wixapps.net": [
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-flow.wixapps.net": [
90
+ "forums._base_domain_": [
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
- "editor.wixapps.net": [
96
+ "forums.wixapps.net": [
103
97
  {
104
- srcPath: "/_api/paid-plans",
105
- destPath: ""
98
+ srcPath: "/_api/paid-plans/v2/checkout",
99
+ destPath: "/v2/checkout"
106
100
  }
107
101
  ],
108
- "api._api_base_domain_": [
102
+ "manage._base_domain_": [
109
103
  {
110
- srcPath: "/membership-api",
111
- destPath: ""
104
+ srcPath: "/_api/pricing-plans/v2/checkout",
105
+ destPath: "/v2/checkout"
112
106
  },
113
107
  {
114
- srcPath: "/paid-plans",
115
- destPath: ""
108
+ srcPath: "/_api/paid-plans/v2/checkout",
109
+ destPath: "/v2/checkout"
116
110
  },
117
111
  {
118
- srcPath: "/_api/paid-plans",
119
- destPath: ""
112
+ srcPath: "/pricing-plans/v2/checkout",
113
+ destPath: "/v2/checkout"
114
+ }
115
+ ],
116
+ "www._base_domain_": [
117
+ {
118
+ srcPath: "/_api/paid-plans/v2/checkout",
119
+ destPath: "/v2/checkout"
120
+ }
121
+ ],
122
+ "www.wixapis.com": [
123
+ {
124
+ srcPath: "/pricing-plans/v2/checkout",
125
+ destPath: "/v2/checkout"
120
126
  }
121
127
  ]
122
128
  };
@@ -124,54 +130,60 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
124
130
  }
125
131
  function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
126
132
  const domainToMappings = {
127
- "*.dev.wix-code.com": [
133
+ "api._api_base_domain_": [
128
134
  {
129
- srcPath: "/_api/pricing-plans-member-orders",
135
+ srcPath: "/member-orders-service-proxy",
130
136
  destPath: ""
137
+ }
138
+ ],
139
+ "*.dev.wix-code.com": [
140
+ {
141
+ srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
142
+ destPath: "/v2/member/orders"
131
143
  },
132
144
  {
133
- srcPath: "/_api/pricing-plans/v2/member",
134
- destPath: "/v2/member"
145
+ srcPath: "/_api/pricing-plans/v2/member/orders",
146
+ destPath: "/v2/member/orders"
135
147
  }
136
148
  ],
137
149
  "*.pub.wix-code.com": [
138
150
  {
139
- srcPath: "/_api/pricing-plans-member-orders",
140
- destPath: ""
151
+ srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
152
+ destPath: "/v2/member/orders"
141
153
  },
142
154
  {
143
- srcPath: "/_api/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.wixapis.com": [
159
+ _: [
148
160
  {
149
- srcPath: "/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
- "www._base_domain_": [
165
+ "editor.wixapps.net": [
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
- _: [
171
+ "manage._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
- "manage._base_domain_": [
177
+ "www._base_domain_": [
166
178
  {
167
- srcPath: "/_api/pricing-plans/v2/member",
168
- destPath: "/v2/member"
179
+ srcPath: "/_api/pricing-plans/v2/member/orders",
180
+ destPath: "/v2/member/orders"
169
181
  }
170
182
  ],
171
- "editor.wixapps.net": [
183
+ "www.wixapis.com": [
172
184
  {
173
- srcPath: "/_api/pricing-plans/v2/member",
174
- destPath: "/v2/member"
185
+ srcPath: "/pricing-plans/v2/member/orders",
186
+ destPath: "/v2/member/orders"
175
187
  }
176
188
  ]
177
189
  };
@@ -179,104 +191,98 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
179
191
  }
180
192
  function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
181
193
  const domainToMappings = {
182
- "www._base_domain_": [
194
+ "api._api_base_domain_": [
183
195
  {
184
- srcPath: "/_api/paid-plans",
196
+ srcPath: "/order-management-service-proxy",
185
197
  destPath: ""
186
198
  }
187
199
  ],
188
- "forums.wixapps.net": [
200
+ "*.dev.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
- "editor._base_domain_": [
206
+ "*.pub.wix-code.com": [
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
- "blocks._base_domain_": [
212
+ "*.wixapps.net": [
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
- "create.editorx": [
218
+ _: [
207
219
  {
208
- srcPath: "/_api/paid-plans",
209
- destPath: ""
220
+ srcPath: "/_api/paid-plans/v2/orders",
221
+ destPath: "/v2/orders"
210
222
  }
211
223
  ],
212
- _: [
213
- {
214
- srcPath: "/_api/paid-plans",
215
- destPath: ""
216
- },
224
+ "editor-flow.wixapps.net": [
217
225
  {
218
- srcPath: "/paid-plans/v1/orders",
219
- destPath: "/v1/orders"
226
+ srcPath: "/_api/paid-plans/v2/orders",
227
+ destPath: "/v2/orders"
220
228
  }
221
229
  ],
222
- "*.wixapps.net": [
230
+ "editor._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
- "*.pub.wix-code.com": [
236
+ "blocks._base_domain_": [
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
- "*.dev.wix-code.com": [
242
+ "create.editorx": [
235
243
  {
236
- srcPath: "/_api/paid-plans",
237
- destPath: ""
244
+ srcPath: "/_api/paid-plans/v2/orders",
245
+ destPath: "/v2/orders"
238
246
  }
239
247
  ],
240
- "manage._base_domain_": [
241
- {
242
- srcPath: "/_api/paid-plans",
243
- destPath: ""
244
- },
248
+ "editor.wixapps.net": [
245
249
  {
246
- srcPath: "/_api/pricing-plans",
247
- destPath: ""
250
+ srcPath: "/_api/paid-plans/v2/orders",
251
+ destPath: "/v2/orders"
248
252
  }
249
253
  ],
250
254
  "forums._base_domain_": [
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-flow.wixapps.net": [
260
+ "forums.wixapps.net": [
257
261
  {
258
- srcPath: "/_api/paid-plans",
259
- destPath: ""
262
+ srcPath: "/_api/paid-plans/v2/orders",
263
+ destPath: "/v2/orders"
260
264
  }
261
265
  ],
262
- "editor.wixapps.net": [
266
+ "manage._base_domain_": [
263
267
  {
264
- srcPath: "/_api/paid-plans",
265
- destPath: ""
268
+ srcPath: "/_api/pricing-plans/v2/orders",
269
+ destPath: "/v2/orders"
270
+ },
271
+ {
272
+ srcPath: "/_api/paid-plans/v2/orders",
273
+ destPath: "/v2/orders"
266
274
  }
267
275
  ],
268
- "api._api_base_domain_": [
269
- {
270
- srcPath: "/membership-api",
271
- destPath: ""
272
- },
276
+ "www._base_domain_": [
273
277
  {
274
- srcPath: "/paid-plans",
275
- destPath: ""
276
- },
278
+ srcPath: "/_api/paid-plans/v2/orders",
279
+ destPath: "/v2/orders"
280
+ }
281
+ ],
282
+ "www.wixapis.com": [
277
283
  {
278
- srcPath: "/_api/paid-plans",
279
- destPath: ""
284
+ srcPath: "/pricing-plans/v2/orders",
285
+ destPath: "/v2/orders"
280
286
  }
281
287
  ]
282
288
  };