@wix/auto_sdk_pricing-plans_orders 1.0.57 → 1.0.59

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 (134) hide show
  1. package/build/index.d.mts +343 -0
  2. package/build/index.d.ts +343 -0
  3. package/build/index.js +1870 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +1807 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/internal/index.d.mts +343 -0
  8. package/build/internal/index.d.ts +343 -0
  9. package/build/internal/index.js +1870 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +1807 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/build/internal/meta.d.mts +982 -0
  14. package/build/internal/meta.d.ts +982 -0
  15. package/build/internal/meta.js +1057 -0
  16. package/build/internal/meta.js.map +1 -0
  17. package/build/internal/meta.mjs +1016 -0
  18. package/build/internal/meta.mjs.map +1 -0
  19. package/build/{es/src/pricing-plans-v2-order-orders.types.d.ts → internal/pricing-plans-v2-order-orders.universal-CxIXSY94.d.mts} +424 -157
  20. package/build/{cjs/src/pricing-plans-v2-order-orders.types.d.ts → internal/pricing-plans-v2-order-orders.universal-CxIXSY94.d.ts} +424 -157
  21. package/build/meta.d.mts +982 -0
  22. package/build/meta.d.ts +982 -0
  23. package/build/meta.js +1057 -0
  24. package/build/meta.js.map +1 -0
  25. package/build/meta.mjs +1016 -0
  26. package/build/meta.mjs.map +1 -0
  27. package/build/{internal/cjs/src/pricing-plans-v2-order-orders.types.d.ts → pricing-plans-v2-order-orders.universal-Bwx6oqbS.d.mts} +420 -170
  28. package/build/{internal/es/src/pricing-plans-v2-order-orders.types.d.ts → pricing-plans-v2-order-orders.universal-Bwx6oqbS.d.ts} +420 -170
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/pricing-plans-v2-order-orders.context.d.ts +0 -111
  40. package/build/cjs/src/pricing-plans-v2-order-orders.context.js +0 -126
  41. package/build/cjs/src/pricing-plans-v2-order-orders.context.js.map +0 -1
  42. package/build/cjs/src/pricing-plans-v2-order-orders.http.d.ts +0 -149
  43. package/build/cjs/src/pricing-plans-v2-order-orders.http.js +0 -877
  44. package/build/cjs/src/pricing-plans-v2-order-orders.http.js.map +0 -1
  45. package/build/cjs/src/pricing-plans-v2-order-orders.meta.d.ts +0 -43
  46. package/build/cjs/src/pricing-plans-v2-order-orders.meta.js +0 -313
  47. package/build/cjs/src/pricing-plans-v2-order-orders.meta.js.map +0 -1
  48. package/build/cjs/src/pricing-plans-v2-order-orders.public.d.ts +0 -249
  49. package/build/cjs/src/pricing-plans-v2-order-orders.public.js +0 -373
  50. package/build/cjs/src/pricing-plans-v2-order-orders.public.js.map +0 -1
  51. package/build/cjs/src/pricing-plans-v2-order-orders.types.js +0 -145
  52. package/build/cjs/src/pricing-plans-v2-order-orders.types.js.map +0 -1
  53. package/build/cjs/src/pricing-plans-v2-order-orders.universal.d.ts +0 -2317
  54. package/build/cjs/src/pricing-plans-v2-order-orders.universal.js +0 -930
  55. package/build/cjs/src/pricing-plans-v2-order-orders.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/pricing-plans-v2-order-orders.context.d.ts +0 -111
  67. package/build/es/src/pricing-plans-v2-order-orders.context.js +0 -111
  68. package/build/es/src/pricing-plans-v2-order-orders.context.js.map +0 -1
  69. package/build/es/src/pricing-plans-v2-order-orders.http.d.ts +0 -149
  70. package/build/es/src/pricing-plans-v2-order-orders.http.js +0 -859
  71. package/build/es/src/pricing-plans-v2-order-orders.http.js.map +0 -1
  72. package/build/es/src/pricing-plans-v2-order-orders.meta.d.ts +0 -43
  73. package/build/es/src/pricing-plans-v2-order-orders.meta.js +0 -272
  74. package/build/es/src/pricing-plans-v2-order-orders.meta.js.map +0 -1
  75. package/build/es/src/pricing-plans-v2-order-orders.public.d.ts +0 -249
  76. package/build/es/src/pricing-plans-v2-order-orders.public.js +0 -343
  77. package/build/es/src/pricing-plans-v2-order-orders.public.js.map +0 -1
  78. package/build/es/src/pricing-plans-v2-order-orders.types.js +0 -142
  79. package/build/es/src/pricing-plans-v2-order-orders.types.js.map +0 -1
  80. package/build/es/src/pricing-plans-v2-order-orders.universal.d.ts +0 -2317
  81. package/build/es/src/pricing-plans-v2-order-orders.universal.js +0 -889
  82. package/build/es/src/pricing-plans-v2-order-orders.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/pricing-plans-v2-order-orders.context.d.ts +0 -111
  93. package/build/internal/cjs/src/pricing-plans-v2-order-orders.context.js +0 -126
  94. package/build/internal/cjs/src/pricing-plans-v2-order-orders.context.js.map +0 -1
  95. package/build/internal/cjs/src/pricing-plans-v2-order-orders.http.d.ts +0 -149
  96. package/build/internal/cjs/src/pricing-plans-v2-order-orders.http.js +0 -877
  97. package/build/internal/cjs/src/pricing-plans-v2-order-orders.http.js.map +0 -1
  98. package/build/internal/cjs/src/pricing-plans-v2-order-orders.meta.d.ts +0 -43
  99. package/build/internal/cjs/src/pricing-plans-v2-order-orders.meta.js +0 -313
  100. package/build/internal/cjs/src/pricing-plans-v2-order-orders.meta.js.map +0 -1
  101. package/build/internal/cjs/src/pricing-plans-v2-order-orders.public.d.ts +0 -249
  102. package/build/internal/cjs/src/pricing-plans-v2-order-orders.public.js +0 -373
  103. package/build/internal/cjs/src/pricing-plans-v2-order-orders.public.js.map +0 -1
  104. package/build/internal/cjs/src/pricing-plans-v2-order-orders.types.js +0 -145
  105. package/build/internal/cjs/src/pricing-plans-v2-order-orders.types.js.map +0 -1
  106. package/build/internal/cjs/src/pricing-plans-v2-order-orders.universal.d.ts +0 -2334
  107. package/build/internal/cjs/src/pricing-plans-v2-order-orders.universal.js +0 -930
  108. package/build/internal/cjs/src/pricing-plans-v2-order-orders.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/pricing-plans-v2-order-orders.context.d.ts +0 -111
  119. package/build/internal/es/src/pricing-plans-v2-order-orders.context.js +0 -111
  120. package/build/internal/es/src/pricing-plans-v2-order-orders.context.js.map +0 -1
  121. package/build/internal/es/src/pricing-plans-v2-order-orders.http.d.ts +0 -149
  122. package/build/internal/es/src/pricing-plans-v2-order-orders.http.js +0 -859
  123. package/build/internal/es/src/pricing-plans-v2-order-orders.http.js.map +0 -1
  124. package/build/internal/es/src/pricing-plans-v2-order-orders.meta.d.ts +0 -43
  125. package/build/internal/es/src/pricing-plans-v2-order-orders.meta.js +0 -272
  126. package/build/internal/es/src/pricing-plans-v2-order-orders.meta.js.map +0 -1
  127. package/build/internal/es/src/pricing-plans-v2-order-orders.public.d.ts +0 -249
  128. package/build/internal/es/src/pricing-plans-v2-order-orders.public.js +0 -343
  129. package/build/internal/es/src/pricing-plans-v2-order-orders.public.js.map +0 -1
  130. package/build/internal/es/src/pricing-plans-v2-order-orders.types.js +0 -142
  131. package/build/internal/es/src/pricing-plans-v2-order-orders.types.js.map +0 -1
  132. package/build/internal/es/src/pricing-plans-v2-order-orders.universal.d.ts +0 -2334
  133. package/build/internal/es/src/pricing-plans-v2-order-orders.universal.js +0 -889
  134. package/build/internal/es/src/pricing-plans-v2-order-orders.universal.js.map +0 -1
package/build/meta.mjs ADDED
@@ -0,0 +1,1016 @@
1
+ // src/pricing-plans-v2-order-orders.http.ts
2
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
4
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
5
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
6
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
7
+ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
8
+ const domainToMappings = {
9
+ "api._api_base_domain_": [
10
+ {
11
+ srcPath: "/pricing-plans-checkout-proxy",
12
+ destPath: ""
13
+ }
14
+ ],
15
+ "*.dev.wix-code.com": [
16
+ {
17
+ srcPath: "/_api/paid-plans/v2/checkout",
18
+ destPath: "/v2/checkout"
19
+ }
20
+ ],
21
+ "*.pub.wix-code.com": [
22
+ {
23
+ srcPath: "/_api/paid-plans/v2/checkout",
24
+ destPath: "/v2/checkout"
25
+ }
26
+ ],
27
+ "*.wixapps.net": [
28
+ {
29
+ srcPath: "/_api/paid-plans/v2/checkout",
30
+ destPath: "/v2/checkout"
31
+ }
32
+ ],
33
+ _: [
34
+ {
35
+ srcPath: "/pricing-plans/v2/checkout",
36
+ destPath: "/v2/checkout"
37
+ },
38
+ {
39
+ srcPath: "/_api/paid-plans/v2/checkout",
40
+ destPath: "/v2/checkout"
41
+ },
42
+ {
43
+ srcPath: "/_api/pricing-plans/v2/checkout",
44
+ destPath: "/v2/checkout"
45
+ }
46
+ ],
47
+ "editor-flow.wixapps.net": [
48
+ {
49
+ srcPath: "/_api/paid-plans/v2/checkout",
50
+ destPath: "/v2/checkout"
51
+ }
52
+ ],
53
+ "editor._base_domain_": [
54
+ {
55
+ srcPath: "/_api/paid-plans/v2/checkout",
56
+ destPath: "/v2/checkout"
57
+ }
58
+ ],
59
+ "blocks._base_domain_": [
60
+ {
61
+ srcPath: "/_api/paid-plans/v2/checkout",
62
+ destPath: "/v2/checkout"
63
+ }
64
+ ],
65
+ "create.editorx": [
66
+ {
67
+ srcPath: "/_api/paid-plans/v2/checkout",
68
+ destPath: "/v2/checkout"
69
+ }
70
+ ],
71
+ "editor.wixapps.net": [
72
+ {
73
+ srcPath: "/_api/paid-plans/v2/checkout",
74
+ destPath: "/v2/checkout"
75
+ }
76
+ ],
77
+ "forums._base_domain_": [
78
+ {
79
+ srcPath: "/_api/paid-plans/v2/checkout",
80
+ destPath: "/v2/checkout"
81
+ }
82
+ ],
83
+ "forums.wixapps.net": [
84
+ {
85
+ srcPath: "/_api/paid-plans/v2/checkout",
86
+ destPath: "/v2/checkout"
87
+ }
88
+ ],
89
+ "manage._base_domain_": [
90
+ {
91
+ srcPath: "/_api/pricing-plans/v2/checkout",
92
+ destPath: "/v2/checkout"
93
+ },
94
+ {
95
+ srcPath: "/_api/paid-plans/v2/checkout",
96
+ destPath: "/v2/checkout"
97
+ }
98
+ ],
99
+ "www._base_domain_": [
100
+ {
101
+ srcPath: "/_api/paid-plans/v2/checkout",
102
+ destPath: "/v2/checkout"
103
+ }
104
+ ],
105
+ "www.wixapis.com": [
106
+ {
107
+ srcPath: "/pricing-plans/v2/checkout",
108
+ destPath: "/v2/checkout"
109
+ }
110
+ ]
111
+ };
112
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
113
+ }
114
+ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
115
+ const domainToMappings = {
116
+ "api._api_base_domain_": [
117
+ {
118
+ srcPath: "/member-orders-service-proxy",
119
+ destPath: ""
120
+ }
121
+ ],
122
+ "*.dev.wix-code.com": [
123
+ {
124
+ srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
125
+ destPath: "/v2/member/orders"
126
+ },
127
+ {
128
+ srcPath: "/_api/pricing-plans/v2/member/orders",
129
+ destPath: "/v2/member/orders"
130
+ }
131
+ ],
132
+ "*.pub.wix-code.com": [
133
+ {
134
+ srcPath: "/_api/pricing-plans-member-orders/v2/member/orders",
135
+ destPath: "/v2/member/orders"
136
+ },
137
+ {
138
+ srcPath: "/_api/pricing-plans/v2/member/orders",
139
+ destPath: "/v2/member/orders"
140
+ }
141
+ ],
142
+ _: [
143
+ {
144
+ srcPath: "/_api/pricing-plans/v2/member/orders",
145
+ destPath: "/v2/member/orders"
146
+ }
147
+ ],
148
+ "editor.wixapps.net": [
149
+ {
150
+ srcPath: "/_api/pricing-plans/v2/member/orders",
151
+ destPath: "/v2/member/orders"
152
+ }
153
+ ],
154
+ "manage._base_domain_": [
155
+ {
156
+ srcPath: "/_api/pricing-plans/v2/member/orders",
157
+ destPath: "/v2/member/orders"
158
+ }
159
+ ],
160
+ "www._base_domain_": [
161
+ {
162
+ srcPath: "/_api/pricing-plans/v2/member/orders",
163
+ destPath: "/v2/member/orders"
164
+ }
165
+ ],
166
+ "www.wixapis.com": [
167
+ {
168
+ srcPath: "/pricing-plans/v2/member/orders",
169
+ destPath: "/v2/member/orders"
170
+ }
171
+ ]
172
+ };
173
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
174
+ }
175
+ function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
176
+ const domainToMappings = {
177
+ "api._api_base_domain_": [
178
+ {
179
+ srcPath: "/order-management-service-proxy",
180
+ destPath: ""
181
+ }
182
+ ],
183
+ "*.dev.wix-code.com": [
184
+ {
185
+ srcPath: "/_api/paid-plans/v2/orders",
186
+ destPath: "/v2/orders"
187
+ }
188
+ ],
189
+ "*.pub.wix-code.com": [
190
+ {
191
+ srcPath: "/_api/paid-plans/v2/orders",
192
+ destPath: "/v2/orders"
193
+ }
194
+ ],
195
+ "*.wixapps.net": [
196
+ {
197
+ srcPath: "/_api/paid-plans/v2/orders",
198
+ destPath: "/v2/orders"
199
+ }
200
+ ],
201
+ _: [
202
+ {
203
+ srcPath: "/_api/paid-plans/v2/orders",
204
+ destPath: "/v2/orders"
205
+ }
206
+ ],
207
+ "editor-flow.wixapps.net": [
208
+ {
209
+ srcPath: "/_api/paid-plans/v2/orders",
210
+ destPath: "/v2/orders"
211
+ }
212
+ ],
213
+ "editor._base_domain_": [
214
+ {
215
+ srcPath: "/_api/paid-plans/v2/orders",
216
+ destPath: "/v2/orders"
217
+ }
218
+ ],
219
+ "blocks._base_domain_": [
220
+ {
221
+ srcPath: "/_api/paid-plans/v2/orders",
222
+ destPath: "/v2/orders"
223
+ }
224
+ ],
225
+ "create.editorx": [
226
+ {
227
+ srcPath: "/_api/paid-plans/v2/orders",
228
+ destPath: "/v2/orders"
229
+ }
230
+ ],
231
+ "editor.wixapps.net": [
232
+ {
233
+ srcPath: "/_api/paid-plans/v2/orders",
234
+ destPath: "/v2/orders"
235
+ }
236
+ ],
237
+ "forums._base_domain_": [
238
+ {
239
+ srcPath: "/_api/paid-plans/v2/orders",
240
+ destPath: "/v2/orders"
241
+ }
242
+ ],
243
+ "forums.wixapps.net": [
244
+ {
245
+ srcPath: "/_api/paid-plans/v2/orders",
246
+ destPath: "/v2/orders"
247
+ }
248
+ ],
249
+ "manage._base_domain_": [
250
+ {
251
+ srcPath: "/_api/pricing-plans/v2/orders",
252
+ destPath: "/v2/orders"
253
+ },
254
+ {
255
+ srcPath: "/_api/paid-plans/v2/orders",
256
+ destPath: "/v2/orders"
257
+ }
258
+ ],
259
+ "www._base_domain_": [
260
+ {
261
+ srcPath: "/_api/paid-plans/v2/orders",
262
+ destPath: "/v2/orders"
263
+ }
264
+ ],
265
+ "www.wixapis.com": [
266
+ {
267
+ srcPath: "/pricing-plans/v2/orders",
268
+ destPath: "/v2/orders"
269
+ }
270
+ ]
271
+ };
272
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
273
+ }
274
+ var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
275
+ function managementGetOrder(payload) {
276
+ function __managementGetOrder({ host }) {
277
+ const metadata = {
278
+ entityFqdn: "wix.pricing_plans.v2.order",
279
+ method: "GET",
280
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
281
+ packageName: PACKAGE_NAME,
282
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
283
+ protoPath: "/v2/orders/{id}",
284
+ data: payload,
285
+ host
286
+ }),
287
+ params: toURLSearchParams(payload),
288
+ transformResponse: (payload2) => transformPaths(payload2, [
289
+ {
290
+ transformFn: transformRESTTimestampToSDKTimestamp,
291
+ paths: [
292
+ { path: "order.startDate" },
293
+ { path: "order.endDate" },
294
+ { path: "order.earliestEndDate" },
295
+ { path: "order.createdDate" },
296
+ { path: "order.updatedDate" },
297
+ { path: "order.cancellation.requestedDate" },
298
+ { path: "order.pausePeriods.pauseDate" },
299
+ { path: "order.pausePeriods.resumeDate" },
300
+ { path: "order.currentCycle.startedDate" },
301
+ { path: "order.currentCycle.endedDate" },
302
+ { path: "order.cycles.startedDate" },
303
+ { path: "order.cycles.endedDate" }
304
+ ]
305
+ }
306
+ ])
307
+ };
308
+ return metadata;
309
+ }
310
+ return __managementGetOrder;
311
+ }
312
+ function managementListOrders(payload) {
313
+ function __managementListOrders({ host }) {
314
+ const metadata = {
315
+ entityFqdn: "wix.pricing_plans.v2.order",
316
+ method: "GET",
317
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
318
+ packageName: PACKAGE_NAME,
319
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
320
+ protoPath: "/v2/orders",
321
+ data: payload,
322
+ host
323
+ }),
324
+ params: toURLSearchParams(payload, true),
325
+ transformResponse: (payload2) => transformPaths(payload2, [
326
+ {
327
+ transformFn: transformRESTTimestampToSDKTimestamp,
328
+ paths: [
329
+ { path: "orders.startDate" },
330
+ { path: "orders.endDate" },
331
+ { path: "orders.earliestEndDate" },
332
+ { path: "orders.createdDate" },
333
+ { path: "orders.updatedDate" },
334
+ { path: "orders.cancellation.requestedDate" },
335
+ { path: "orders.pausePeriods.pauseDate" },
336
+ { path: "orders.pausePeriods.resumeDate" },
337
+ { path: "orders.currentCycle.startedDate" },
338
+ { path: "orders.currentCycle.endedDate" },
339
+ { path: "orders.cycles.startedDate" },
340
+ { path: "orders.cycles.endedDate" }
341
+ ]
342
+ }
343
+ ])
344
+ };
345
+ return metadata;
346
+ }
347
+ return __managementListOrders;
348
+ }
349
+ function postponeEndDate(payload) {
350
+ function __postponeEndDate({ host }) {
351
+ const serializedData = transformPaths(payload, [
352
+ {
353
+ transformFn: transformSDKTimestampToRESTTimestamp,
354
+ paths: [{ path: "endDate" }]
355
+ }
356
+ ]);
357
+ const metadata = {
358
+ entityFqdn: "wix.pricing_plans.v2.order",
359
+ method: "PATCH",
360
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
361
+ packageName: PACKAGE_NAME,
362
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
363
+ protoPath: "/v2/orders/{id}",
364
+ data: serializedData,
365
+ host
366
+ }),
367
+ data: serializedData
368
+ };
369
+ return metadata;
370
+ }
371
+ return __postponeEndDate;
372
+ }
373
+ function cancelOrder(payload) {
374
+ function __cancelOrder({ host }) {
375
+ const metadata = {
376
+ entityFqdn: "wix.pricing_plans.v2.order",
377
+ method: "POST",
378
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
379
+ packageName: PACKAGE_NAME,
380
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
381
+ protoPath: "/v2/orders/{id}/cancel",
382
+ data: payload,
383
+ host
384
+ }),
385
+ data: payload
386
+ };
387
+ return metadata;
388
+ }
389
+ return __cancelOrder;
390
+ }
391
+ function markAsPaid(payload) {
392
+ function __markAsPaid({ host }) {
393
+ const metadata = {
394
+ entityFqdn: "wix.pricing_plans.v2.order",
395
+ method: "POST",
396
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
397
+ packageName: PACKAGE_NAME,
398
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
399
+ protoPath: "/v2/orders/{id}/mark-as-paid",
400
+ data: payload,
401
+ host
402
+ }),
403
+ data: payload
404
+ };
405
+ return metadata;
406
+ }
407
+ return __markAsPaid;
408
+ }
409
+ function pauseOrder(payload) {
410
+ function __pauseOrder({ host }) {
411
+ const metadata = {
412
+ entityFqdn: "wix.pricing_plans.v2.order",
413
+ method: "POST",
414
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
415
+ packageName: PACKAGE_NAME,
416
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
417
+ protoPath: "/v2/orders/{id}/pause",
418
+ data: payload,
419
+ host
420
+ }),
421
+ data: payload
422
+ };
423
+ return metadata;
424
+ }
425
+ return __pauseOrder;
426
+ }
427
+ function resumeOrder(payload) {
428
+ function __resumeOrder({ host }) {
429
+ const metadata = {
430
+ entityFqdn: "wix.pricing_plans.v2.order",
431
+ method: "POST",
432
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
433
+ packageName: PACKAGE_NAME,
434
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
435
+ protoPath: "/v2/orders/{id}/resume",
436
+ data: payload,
437
+ host
438
+ }),
439
+ data: payload
440
+ };
441
+ return metadata;
442
+ }
443
+ return __resumeOrder;
444
+ }
445
+ function memberGetOrder(payload) {
446
+ function __memberGetOrder({ host }) {
447
+ const metadata = {
448
+ entityFqdn: "wix.pricing_plans.v2.order",
449
+ method: "GET",
450
+ methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder",
451
+ packageName: PACKAGE_NAME,
452
+ url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
453
+ protoPath: "/v2/member/orders/{id}",
454
+ data: payload,
455
+ host
456
+ }),
457
+ params: toURLSearchParams(payload),
458
+ transformResponse: (payload2) => transformPaths(payload2, [
459
+ {
460
+ transformFn: transformRESTTimestampToSDKTimestamp,
461
+ paths: [
462
+ { path: "order.startDate" },
463
+ { path: "order.endDate" },
464
+ { path: "order.earliestEndDate" },
465
+ { path: "order.createdDate" },
466
+ { path: "order.updatedDate" },
467
+ { path: "order.cancellation.requestedDate" },
468
+ { path: "order.pausePeriods.pauseDate" },
469
+ { path: "order.pausePeriods.resumeDate" },
470
+ { path: "order.currentCycle.startedDate" },
471
+ { path: "order.currentCycle.endedDate" },
472
+ { path: "order.cycles.startedDate" },
473
+ { path: "order.cycles.endedDate" }
474
+ ]
475
+ }
476
+ ])
477
+ };
478
+ return metadata;
479
+ }
480
+ return __memberGetOrder;
481
+ }
482
+ function memberListOrders(payload) {
483
+ function __memberListOrders({ host }) {
484
+ const metadata = {
485
+ entityFqdn: "wix.pricing_plans.v2.order",
486
+ method: "GET",
487
+ methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders",
488
+ packageName: PACKAGE_NAME,
489
+ url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
490
+ protoPath: "/v2/member/orders",
491
+ data: payload,
492
+ host
493
+ }),
494
+ params: toURLSearchParams(payload, true),
495
+ transformResponse: (payload2) => transformPaths(payload2, [
496
+ {
497
+ transformFn: transformRESTTimestampToSDKTimestamp,
498
+ paths: [
499
+ { path: "orders.startDate" },
500
+ { path: "orders.endDate" },
501
+ { path: "orders.earliestEndDate" },
502
+ { path: "orders.createdDate" },
503
+ { path: "orders.updatedDate" },
504
+ { path: "orders.cancellation.requestedDate" },
505
+ { path: "orders.pausePeriods.pauseDate" },
506
+ { path: "orders.pausePeriods.resumeDate" },
507
+ { path: "orders.currentCycle.startedDate" },
508
+ { path: "orders.currentCycle.endedDate" },
509
+ { path: "orders.cycles.startedDate" },
510
+ { path: "orders.cycles.endedDate" }
511
+ ]
512
+ }
513
+ ])
514
+ };
515
+ return metadata;
516
+ }
517
+ return __memberListOrders;
518
+ }
519
+ function requestCancellation(payload) {
520
+ function __requestCancellation({ host }) {
521
+ const metadata = {
522
+ entityFqdn: "wix.pricing_plans.v2.order",
523
+ method: "POST",
524
+ methodFqn: "com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation",
525
+ packageName: PACKAGE_NAME,
526
+ url: resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl({
527
+ protoPath: "/v2/member/orders/{id}/cancel",
528
+ data: payload,
529
+ host
530
+ }),
531
+ data: payload
532
+ };
533
+ return metadata;
534
+ }
535
+ return __requestCancellation;
536
+ }
537
+ function createOnlineOrder(payload) {
538
+ function __createOnlineOrder({ host }) {
539
+ const serializedData = transformPaths(payload, [
540
+ {
541
+ transformFn: transformSDKTimestampToRESTTimestamp,
542
+ paths: [{ path: "startDate" }]
543
+ }
544
+ ]);
545
+ const metadata = {
546
+ entityFqdn: "wix.pricing_plans.v2.order",
547
+ method: "POST",
548
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
549
+ packageName: PACKAGE_NAME,
550
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
551
+ protoPath: "/v2/checkout/orders/online",
552
+ data: serializedData,
553
+ host
554
+ }),
555
+ data: serializedData,
556
+ transformResponse: (payload2) => transformPaths(payload2, [
557
+ {
558
+ transformFn: transformRESTTimestampToSDKTimestamp,
559
+ paths: [
560
+ { path: "order.startDate" },
561
+ { path: "order.endDate" },
562
+ { path: "order.earliestEndDate" },
563
+ { path: "order.createdDate" },
564
+ { path: "order.updatedDate" },
565
+ { path: "order.cancellation.requestedDate" },
566
+ { path: "order.pausePeriods.pauseDate" },
567
+ { path: "order.pausePeriods.resumeDate" },
568
+ { path: "order.currentCycle.startedDate" },
569
+ { path: "order.currentCycle.endedDate" },
570
+ { path: "order.cycles.startedDate" },
571
+ { path: "order.cycles.endedDate" }
572
+ ]
573
+ }
574
+ ])
575
+ };
576
+ return metadata;
577
+ }
578
+ return __createOnlineOrder;
579
+ }
580
+ function createOfflineOrder(payload) {
581
+ function __createOfflineOrder({ host }) {
582
+ const serializedData = transformPaths(payload, [
583
+ {
584
+ transformFn: transformSDKTimestampToRESTTimestamp,
585
+ paths: [{ path: "startDate" }]
586
+ }
587
+ ]);
588
+ const metadata = {
589
+ entityFqdn: "wix.pricing_plans.v2.order",
590
+ method: "POST",
591
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
592
+ packageName: PACKAGE_NAME,
593
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
594
+ protoPath: "/v2/checkout/orders/offline",
595
+ data: serializedData,
596
+ host
597
+ }),
598
+ data: serializedData,
599
+ transformResponse: (payload2) => transformPaths(payload2, [
600
+ {
601
+ transformFn: transformRESTTimestampToSDKTimestamp,
602
+ paths: [
603
+ { path: "order.startDate" },
604
+ { path: "order.endDate" },
605
+ { path: "order.earliestEndDate" },
606
+ { path: "order.createdDate" },
607
+ { path: "order.updatedDate" },
608
+ { path: "order.cancellation.requestedDate" },
609
+ { path: "order.pausePeriods.pauseDate" },
610
+ { path: "order.pausePeriods.resumeDate" },
611
+ { path: "order.currentCycle.startedDate" },
612
+ { path: "order.currentCycle.endedDate" },
613
+ { path: "order.cycles.startedDate" },
614
+ { path: "order.cycles.endedDate" }
615
+ ]
616
+ }
617
+ ])
618
+ };
619
+ return metadata;
620
+ }
621
+ return __createOfflineOrder;
622
+ }
623
+ function getOnlineOrderPreview(payload) {
624
+ function __getOnlineOrderPreview({ host }) {
625
+ const serializedData = transformPaths(payload, [
626
+ {
627
+ transformFn: transformSDKTimestampToRESTTimestamp,
628
+ paths: [{ path: "startDate" }]
629
+ }
630
+ ]);
631
+ const metadata = {
632
+ entityFqdn: "wix.pricing_plans.v2.order",
633
+ method: "POST",
634
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
635
+ packageName: PACKAGE_NAME,
636
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
637
+ protoPath: "/v2/checkout/orders/preview-online",
638
+ data: serializedData,
639
+ host
640
+ }),
641
+ data: serializedData,
642
+ transformResponse: (payload2) => transformPaths(payload2, [
643
+ {
644
+ transformFn: transformRESTTimestampToSDKTimestamp,
645
+ paths: [
646
+ { path: "order.startDate" },
647
+ { path: "order.endDate" },
648
+ { path: "order.earliestEndDate" },
649
+ { path: "order.createdDate" },
650
+ { path: "order.updatedDate" },
651
+ { path: "order.cancellation.requestedDate" },
652
+ { path: "order.pausePeriods.pauseDate" },
653
+ { path: "order.pausePeriods.resumeDate" },
654
+ { path: "order.currentCycle.startedDate" },
655
+ { path: "order.currentCycle.endedDate" },
656
+ { path: "order.cycles.startedDate" },
657
+ { path: "order.cycles.endedDate" }
658
+ ]
659
+ }
660
+ ])
661
+ };
662
+ return metadata;
663
+ }
664
+ return __getOnlineOrderPreview;
665
+ }
666
+ function getOfflineOrderPreview(payload) {
667
+ function __getOfflineOrderPreview({ host }) {
668
+ const serializedData = transformPaths(payload, [
669
+ {
670
+ transformFn: transformSDKTimestampToRESTTimestamp,
671
+ paths: [{ path: "startDate" }]
672
+ }
673
+ ]);
674
+ const metadata = {
675
+ entityFqdn: "wix.pricing_plans.v2.order",
676
+ method: "POST",
677
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
678
+ packageName: PACKAGE_NAME,
679
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
680
+ protoPath: "/v2/checkout/orders/preview-offline",
681
+ data: serializedData,
682
+ host
683
+ }),
684
+ data: serializedData,
685
+ transformResponse: (payload2) => transformPaths(payload2, [
686
+ {
687
+ transformFn: transformRESTTimestampToSDKTimestamp,
688
+ paths: [
689
+ { path: "order.startDate" },
690
+ { path: "order.endDate" },
691
+ { path: "order.earliestEndDate" },
692
+ { path: "order.createdDate" },
693
+ { path: "order.updatedDate" },
694
+ { path: "order.cancellation.requestedDate" },
695
+ { path: "order.pausePeriods.pauseDate" },
696
+ { path: "order.pausePeriods.resumeDate" },
697
+ { path: "order.currentCycle.startedDate" },
698
+ { path: "order.currentCycle.endedDate" },
699
+ { path: "order.cycles.startedDate" },
700
+ { path: "order.cycles.endedDate" }
701
+ ]
702
+ }
703
+ ])
704
+ };
705
+ return metadata;
706
+ }
707
+ return __getOfflineOrderPreview;
708
+ }
709
+ function getPricePreview(payload) {
710
+ function __getPricePreview({ host }) {
711
+ const metadata = {
712
+ entityFqdn: "wix.pricing_plans.v2.order",
713
+ method: "POST",
714
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
715
+ packageName: PACKAGE_NAME,
716
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
717
+ protoPath: "/v2/checkout/orders/price-preview",
718
+ data: payload,
719
+ host
720
+ }),
721
+ data: payload
722
+ };
723
+ return metadata;
724
+ }
725
+ return __getPricePreview;
726
+ }
727
+
728
+ // src/pricing-plans-v2-order-orders.meta.ts
729
+ function managementGetOrder2() {
730
+ const payload = { id: ":id" };
731
+ const getRequestOptions = managementGetOrder(payload);
732
+ const getUrl = (context) => {
733
+ const { url } = getRequestOptions(context);
734
+ return url;
735
+ };
736
+ return {
737
+ getUrl,
738
+ httpMethod: "GET",
739
+ path: "/v2/orders/{id}",
740
+ pathParams: { id: "id" },
741
+ __requestType: null,
742
+ __originalRequestType: null,
743
+ __responseType: null,
744
+ __originalResponseType: null
745
+ };
746
+ }
747
+ function managementListOrders2() {
748
+ const payload = {};
749
+ const getRequestOptions = managementListOrders(payload);
750
+ const getUrl = (context) => {
751
+ const { url } = getRequestOptions(context);
752
+ return url;
753
+ };
754
+ return {
755
+ getUrl,
756
+ httpMethod: "GET",
757
+ path: "/v2/orders",
758
+ pathParams: {},
759
+ __requestType: null,
760
+ __originalRequestType: null,
761
+ __responseType: null,
762
+ __originalResponseType: null
763
+ };
764
+ }
765
+ function postponeEndDate2() {
766
+ const payload = { id: ":id" };
767
+ const getRequestOptions = postponeEndDate(payload);
768
+ const getUrl = (context) => {
769
+ const { url } = getRequestOptions(context);
770
+ return url;
771
+ };
772
+ return {
773
+ getUrl,
774
+ httpMethod: "PATCH",
775
+ path: "/v2/orders/{id}",
776
+ pathParams: { id: "id" },
777
+ __requestType: null,
778
+ __originalRequestType: null,
779
+ __responseType: null,
780
+ __originalResponseType: null
781
+ };
782
+ }
783
+ function cancelOrder2() {
784
+ const payload = { id: ":id" };
785
+ const getRequestOptions = cancelOrder(payload);
786
+ const getUrl = (context) => {
787
+ const { url } = getRequestOptions(context);
788
+ return url;
789
+ };
790
+ return {
791
+ getUrl,
792
+ httpMethod: "POST",
793
+ path: "/v2/orders/{id}/cancel",
794
+ pathParams: { id: "id" },
795
+ __requestType: null,
796
+ __originalRequestType: null,
797
+ __responseType: null,
798
+ __originalResponseType: null
799
+ };
800
+ }
801
+ function markAsPaid2() {
802
+ const payload = { id: ":id" };
803
+ const getRequestOptions = markAsPaid(payload);
804
+ const getUrl = (context) => {
805
+ const { url } = getRequestOptions(context);
806
+ return url;
807
+ };
808
+ return {
809
+ getUrl,
810
+ httpMethod: "POST",
811
+ path: "/v2/orders/{id}/mark-as-paid",
812
+ pathParams: { id: "id" },
813
+ __requestType: null,
814
+ __originalRequestType: null,
815
+ __responseType: null,
816
+ __originalResponseType: null
817
+ };
818
+ }
819
+ function pauseOrder2() {
820
+ const payload = { id: ":id" };
821
+ const getRequestOptions = pauseOrder(payload);
822
+ const getUrl = (context) => {
823
+ const { url } = getRequestOptions(context);
824
+ return url;
825
+ };
826
+ return {
827
+ getUrl,
828
+ httpMethod: "POST",
829
+ path: "/v2/orders/{id}/pause",
830
+ pathParams: { id: "id" },
831
+ __requestType: null,
832
+ __originalRequestType: null,
833
+ __responseType: null,
834
+ __originalResponseType: null
835
+ };
836
+ }
837
+ function resumeOrder2() {
838
+ const payload = { id: ":id" };
839
+ const getRequestOptions = resumeOrder(payload);
840
+ const getUrl = (context) => {
841
+ const { url } = getRequestOptions(context);
842
+ return url;
843
+ };
844
+ return {
845
+ getUrl,
846
+ httpMethod: "POST",
847
+ path: "/v2/orders/{id}/resume",
848
+ pathParams: { id: "id" },
849
+ __requestType: null,
850
+ __originalRequestType: null,
851
+ __responseType: null,
852
+ __originalResponseType: null
853
+ };
854
+ }
855
+ function memberGetOrder2() {
856
+ const payload = { id: ":id" };
857
+ const getRequestOptions = memberGetOrder(payload);
858
+ const getUrl = (context) => {
859
+ const { url } = getRequestOptions(context);
860
+ return url;
861
+ };
862
+ return {
863
+ getUrl,
864
+ httpMethod: "GET",
865
+ path: "/v2/member/orders/{id}",
866
+ pathParams: { id: "id" },
867
+ __requestType: null,
868
+ __originalRequestType: null,
869
+ __responseType: null,
870
+ __originalResponseType: null
871
+ };
872
+ }
873
+ function memberListOrders2() {
874
+ const payload = {};
875
+ const getRequestOptions = memberListOrders(payload);
876
+ const getUrl = (context) => {
877
+ const { url } = getRequestOptions(context);
878
+ return url;
879
+ };
880
+ return {
881
+ getUrl,
882
+ httpMethod: "GET",
883
+ path: "/v2/member/orders",
884
+ pathParams: {},
885
+ __requestType: null,
886
+ __originalRequestType: null,
887
+ __responseType: null,
888
+ __originalResponseType: null
889
+ };
890
+ }
891
+ function requestCancellation2() {
892
+ const payload = { id: ":id" };
893
+ const getRequestOptions = requestCancellation(payload);
894
+ const getUrl = (context) => {
895
+ const { url } = getRequestOptions(context);
896
+ return url;
897
+ };
898
+ return {
899
+ getUrl,
900
+ httpMethod: "POST",
901
+ path: "/v2/member/orders/{id}/cancel",
902
+ pathParams: { id: "id" },
903
+ __requestType: null,
904
+ __originalRequestType: null,
905
+ __responseType: null,
906
+ __originalResponseType: null
907
+ };
908
+ }
909
+ function createOnlineOrder2() {
910
+ const payload = {};
911
+ const getRequestOptions = createOnlineOrder(payload);
912
+ const getUrl = (context) => {
913
+ const { url } = getRequestOptions(context);
914
+ return url;
915
+ };
916
+ return {
917
+ getUrl,
918
+ httpMethod: "POST",
919
+ path: "/v2/checkout/orders/online",
920
+ pathParams: {},
921
+ __requestType: null,
922
+ __originalRequestType: null,
923
+ __responseType: null,
924
+ __originalResponseType: null
925
+ };
926
+ }
927
+ function createOfflineOrder2() {
928
+ const payload = {};
929
+ const getRequestOptions = createOfflineOrder(payload);
930
+ const getUrl = (context) => {
931
+ const { url } = getRequestOptions(context);
932
+ return url;
933
+ };
934
+ return {
935
+ getUrl,
936
+ httpMethod: "POST",
937
+ path: "/v2/checkout/orders/offline",
938
+ pathParams: {},
939
+ __requestType: null,
940
+ __originalRequestType: null,
941
+ __responseType: null,
942
+ __originalResponseType: null
943
+ };
944
+ }
945
+ function getOnlineOrderPreview2() {
946
+ const payload = {};
947
+ const getRequestOptions = getOnlineOrderPreview(payload);
948
+ const getUrl = (context) => {
949
+ const { url } = getRequestOptions(context);
950
+ return url;
951
+ };
952
+ return {
953
+ getUrl,
954
+ httpMethod: "POST",
955
+ path: "/v2/checkout/orders/preview-online",
956
+ pathParams: {},
957
+ __requestType: null,
958
+ __originalRequestType: null,
959
+ __responseType: null,
960
+ __originalResponseType: null
961
+ };
962
+ }
963
+ function getOfflineOrderPreview2() {
964
+ const payload = {};
965
+ const getRequestOptions = getOfflineOrderPreview(payload);
966
+ const getUrl = (context) => {
967
+ const { url } = getRequestOptions(context);
968
+ return url;
969
+ };
970
+ return {
971
+ getUrl,
972
+ httpMethod: "POST",
973
+ path: "/v2/checkout/orders/preview-offline",
974
+ pathParams: {},
975
+ __requestType: null,
976
+ __originalRequestType: null,
977
+ __responseType: null,
978
+ __originalResponseType: null
979
+ };
980
+ }
981
+ function getPricePreview2() {
982
+ const payload = {};
983
+ const getRequestOptions = getPricePreview(payload);
984
+ const getUrl = (context) => {
985
+ const { url } = getRequestOptions(context);
986
+ return url;
987
+ };
988
+ return {
989
+ getUrl,
990
+ httpMethod: "POST",
991
+ path: "/v2/checkout/orders/price-preview",
992
+ pathParams: {},
993
+ __requestType: null,
994
+ __originalRequestType: null,
995
+ __responseType: null,
996
+ __originalResponseType: null
997
+ };
998
+ }
999
+ export {
1000
+ cancelOrder2 as cancelOrder,
1001
+ createOfflineOrder2 as createOfflineOrder,
1002
+ createOnlineOrder2 as createOnlineOrder,
1003
+ getOfflineOrderPreview2 as getOfflineOrderPreview,
1004
+ getOnlineOrderPreview2 as getOnlineOrderPreview,
1005
+ getPricePreview2 as getPricePreview,
1006
+ managementGetOrder2 as managementGetOrder,
1007
+ managementListOrders2 as managementListOrders,
1008
+ markAsPaid2 as markAsPaid,
1009
+ memberGetOrder2 as memberGetOrder,
1010
+ memberListOrders2 as memberListOrders,
1011
+ pauseOrder2 as pauseOrder,
1012
+ postponeEndDate2 as postponeEndDate,
1013
+ requestCancellation2 as requestCancellation,
1014
+ resumeOrder2 as resumeOrder
1015
+ };
1016
+ //# sourceMappingURL=meta.mjs.map