@wix/auto_sdk_subscription_subscriptions 1.0.0

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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/billing-v1-subscription-subscriptions.context.d.ts +99 -0
  11. package/build/cjs/src/billing-v1-subscription-subscriptions.context.js +141 -0
  12. package/build/cjs/src/billing-v1-subscription-subscriptions.context.js.map +1 -0
  13. package/build/cjs/src/billing-v1-subscription-subscriptions.http.d.ts +134 -0
  14. package/build/cjs/src/billing-v1-subscription-subscriptions.http.js +3048 -0
  15. package/build/cjs/src/billing-v1-subscription-subscriptions.http.js.map +1 -0
  16. package/build/cjs/src/billing-v1-subscription-subscriptions.meta.d.ts +94 -0
  17. package/build/cjs/src/billing-v1-subscription-subscriptions.meta.js +636 -0
  18. package/build/cjs/src/billing-v1-subscription-subscriptions.meta.js.map +1 -0
  19. package/build/cjs/src/billing-v1-subscription-subscriptions.public.d.ts +273 -0
  20. package/build/cjs/src/billing-v1-subscription-subscriptions.public.js +768 -0
  21. package/build/cjs/src/billing-v1-subscription-subscriptions.public.js.map +1 -0
  22. package/build/cjs/src/billing-v1-subscription-subscriptions.types.d.ts +3618 -0
  23. package/build/cjs/src/billing-v1-subscription-subscriptions.types.js +337 -0
  24. package/build/cjs/src/billing-v1-subscription-subscriptions.types.js.map +1 -0
  25. package/build/cjs/src/billing-v1-subscription-subscriptions.universal.d.ts +4355 -0
  26. package/build/cjs/src/billing-v1-subscription-subscriptions.universal.js +1985 -0
  27. package/build/cjs/src/billing-v1-subscription-subscriptions.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/billing-v1-subscription-subscriptions.context.d.ts +99 -0
  39. package/build/es/src/billing-v1-subscription-subscriptions.context.js +101 -0
  40. package/build/es/src/billing-v1-subscription-subscriptions.context.js.map +1 -0
  41. package/build/es/src/billing-v1-subscription-subscriptions.http.d.ts +134 -0
  42. package/build/es/src/billing-v1-subscription-subscriptions.http.js +3013 -0
  43. package/build/es/src/billing-v1-subscription-subscriptions.http.js.map +1 -0
  44. package/build/es/src/billing-v1-subscription-subscriptions.meta.d.ts +94 -0
  45. package/build/es/src/billing-v1-subscription-subscriptions.meta.js +578 -0
  46. package/build/es/src/billing-v1-subscription-subscriptions.meta.js.map +1 -0
  47. package/build/es/src/billing-v1-subscription-subscriptions.public.d.ts +273 -0
  48. package/build/es/src/billing-v1-subscription-subscriptions.public.js +696 -0
  49. package/build/es/src/billing-v1-subscription-subscriptions.public.js.map +1 -0
  50. package/build/es/src/billing-v1-subscription-subscriptions.types.d.ts +3618 -0
  51. package/build/es/src/billing-v1-subscription-subscriptions.types.js +334 -0
  52. package/build/es/src/billing-v1-subscription-subscriptions.types.js.map +1 -0
  53. package/build/es/src/billing-v1-subscription-subscriptions.universal.d.ts +4355 -0
  54. package/build/es/src/billing-v1-subscription-subscriptions.universal.js +1926 -0
  55. package/build/es/src/billing-v1-subscription-subscriptions.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.context.d.ts +101 -0
  66. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.context.js +141 -0
  67. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.context.js.map +1 -0
  68. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.http.d.ts +134 -0
  69. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.http.js +3048 -0
  70. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.http.js.map +1 -0
  71. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.meta.d.ts +94 -0
  72. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.meta.js +636 -0
  73. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.meta.js.map +1 -0
  74. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.public.d.ts +293 -0
  75. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.public.js +768 -0
  76. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.public.js.map +1 -0
  77. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.types.d.ts +3618 -0
  78. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.types.js +337 -0
  79. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.types.js.map +1 -0
  80. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.universal.d.ts +4379 -0
  81. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.universal.js +1985 -0
  82. package/build/internal/cjs/src/billing-v1-subscription-subscriptions.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/billing-v1-subscription-subscriptions.context.d.ts +101 -0
  93. package/build/internal/es/src/billing-v1-subscription-subscriptions.context.js +101 -0
  94. package/build/internal/es/src/billing-v1-subscription-subscriptions.context.js.map +1 -0
  95. package/build/internal/es/src/billing-v1-subscription-subscriptions.http.d.ts +134 -0
  96. package/build/internal/es/src/billing-v1-subscription-subscriptions.http.js +3013 -0
  97. package/build/internal/es/src/billing-v1-subscription-subscriptions.http.js.map +1 -0
  98. package/build/internal/es/src/billing-v1-subscription-subscriptions.meta.d.ts +94 -0
  99. package/build/internal/es/src/billing-v1-subscription-subscriptions.meta.js +578 -0
  100. package/build/internal/es/src/billing-v1-subscription-subscriptions.meta.js.map +1 -0
  101. package/build/internal/es/src/billing-v1-subscription-subscriptions.public.d.ts +293 -0
  102. package/build/internal/es/src/billing-v1-subscription-subscriptions.public.js +696 -0
  103. package/build/internal/es/src/billing-v1-subscription-subscriptions.public.js.map +1 -0
  104. package/build/internal/es/src/billing-v1-subscription-subscriptions.types.d.ts +3618 -0
  105. package/build/internal/es/src/billing-v1-subscription-subscriptions.types.js +334 -0
  106. package/build/internal/es/src/billing-v1-subscription-subscriptions.types.js.map +1 -0
  107. package/build/internal/es/src/billing-v1-subscription-subscriptions.universal.d.ts +4379 -0
  108. package/build/internal/es/src/billing-v1-subscription-subscriptions.universal.js +1926 -0
  109. package/build/internal/es/src/billing-v1-subscription-subscriptions.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,3013 @@
1
+ import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
2
+ import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
3
+ import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
4
+ import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
5
+ import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
6
+ function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(opts) {
7
+ const domainToMappings = {
8
+ 'www._base_domain_': [
9
+ {
10
+ srcPath: '/_api/billing-subscriptions',
11
+ destPath: '',
12
+ },
13
+ ],
14
+ _: [
15
+ {
16
+ srcPath: '/_api/billing-subscriptions',
17
+ destPath: '',
18
+ },
19
+ ],
20
+ '*.dev.wix-code.com': [
21
+ {
22
+ srcPath: '/_api/billing-subscriptions',
23
+ destPath: '',
24
+ },
25
+ ],
26
+ '*.pub.wix-code.com': [
27
+ {
28
+ srcPath: '/_api/billing-subscriptions',
29
+ destPath: '',
30
+ },
31
+ ],
32
+ 'manage._base_domain_': [
33
+ {
34
+ srcPath: '/_api/billing-subscriptions',
35
+ destPath: '',
36
+ },
37
+ ],
38
+ };
39
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
40
+ }
41
+ function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl(opts) {
42
+ const domainToMappings = {
43
+ 'www._base_domain_': [
44
+ {
45
+ srcPath: '/_api/billing-subscriptions',
46
+ destPath: '',
47
+ },
48
+ ],
49
+ _: [
50
+ {
51
+ srcPath: '/_api/billing-subscriptions',
52
+ destPath: '',
53
+ },
54
+ ],
55
+ '*.dev.wix-code.com': [
56
+ {
57
+ srcPath: '/_api/billing-subscriptions',
58
+ destPath: '',
59
+ },
60
+ ],
61
+ '*.pub.wix-code.com': [
62
+ {
63
+ srcPath: '/_api/billing-subscriptions',
64
+ destPath: '',
65
+ },
66
+ ],
67
+ 'manage._base_domain_': [
68
+ {
69
+ srcPath: '/_api/billing-subscriptions',
70
+ destPath: '',
71
+ },
72
+ ],
73
+ };
74
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
75
+ }
76
+ function resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(opts) {
77
+ const domainToMappings = {
78
+ 'www._base_domain_': [
79
+ {
80
+ srcPath: '/_api/billing-subscriptions',
81
+ destPath: '',
82
+ },
83
+ ],
84
+ _: [
85
+ {
86
+ srcPath: '/_api/billing-subscriptions',
87
+ destPath: '',
88
+ },
89
+ ],
90
+ '*.dev.wix-code.com': [
91
+ {
92
+ srcPath: '/_api/billing-subscriptions',
93
+ destPath: '',
94
+ },
95
+ ],
96
+ '*.pub.wix-code.com': [
97
+ {
98
+ srcPath: '/_api/billing-subscriptions',
99
+ destPath: '',
100
+ },
101
+ ],
102
+ 'manage._base_domain_': [
103
+ {
104
+ srcPath: '/_api/billing-subscriptions',
105
+ destPath: '',
106
+ },
107
+ ],
108
+ };
109
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
110
+ }
111
+ function resolveComWixpressBillingSubscriptionsApiV1SubscriptionHistoryServiceUrl(opts) {
112
+ const domainToMappings = {
113
+ 'www._base_domain_': [
114
+ {
115
+ srcPath: '/_api/billing-subscriptions',
116
+ destPath: '',
117
+ },
118
+ ],
119
+ _: [
120
+ {
121
+ srcPath: '/_api/billing-subscriptions',
122
+ destPath: '',
123
+ },
124
+ ],
125
+ '*.dev.wix-code.com': [
126
+ {
127
+ srcPath: '/_api/billing-subscriptions',
128
+ destPath: '',
129
+ },
130
+ ],
131
+ '*.pub.wix-code.com': [
132
+ {
133
+ srcPath: '/_api/billing-subscriptions',
134
+ destPath: '',
135
+ },
136
+ ],
137
+ 'manage._base_domain_': [
138
+ {
139
+ srcPath: '/_api/billing-subscriptions',
140
+ destPath: '',
141
+ },
142
+ ],
143
+ };
144
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
145
+ }
146
+ const PACKAGE_NAME = '@wix/auto_sdk_subscription_subscriptions';
147
+ export function listSubscriptionHistory(payload) {
148
+ function __listSubscriptionHistory({ host }) {
149
+ const metadata = {
150
+ entityFqdn: 'wix.billing.v1.subscription',
151
+ method: 'GET',
152
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionHistoryService.ListSubscriptionHistory',
153
+ packageName: PACKAGE_NAME,
154
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionHistoryServiceUrl({
155
+ protoPath: '/v1/subscriptions/{subscriptionId}/history',
156
+ data: payload,
157
+ host,
158
+ }),
159
+ params: toURLSearchParams(payload),
160
+ transformResponse: (payload) => transformPaths(payload, [
161
+ {
162
+ transformFn: transformRESTTimestampToSDKTimestamp,
163
+ paths: [
164
+ { path: 'historyEntries.entryTime' },
165
+ { path: 'historyEntries.event.created.subscription.createdDate' },
166
+ { path: 'historyEntries.event.created.subscription.updatedDate' },
167
+ { path: 'historyEntries.event.created.subscription.startDate' },
168
+ { path: 'historyEntries.event.created.subscription.endDate' },
169
+ {
170
+ path: 'historyEntries.event.created.subscription.billingStatus.nextBillingDate',
171
+ },
172
+ {
173
+ path: 'historyEntries.event.created.subscription.billingStatus.previousBillingDate',
174
+ },
175
+ {
176
+ path: 'historyEntries.event.created.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
177
+ },
178
+ {
179
+ path: 'historyEntries.event.created.subscription.billingStatus.freeTrialData.startDate',
180
+ },
181
+ {
182
+ path: 'historyEntries.event.created.subscription.billingStatus.freeTrialData.endDate',
183
+ },
184
+ {
185
+ path: 'historyEntries.event.created.subscription.billingStatus.updateBillingDateData.paidUntil',
186
+ },
187
+ {
188
+ path: 'historyEntries.event.created.subscription.billingStatus.gracePeriodData.startDate',
189
+ },
190
+ {
191
+ path: 'historyEntries.event.created.subscription.billingStatus.gracePeriodData.endDate',
192
+ },
193
+ {
194
+ path: 'historyEntries.event.created.subscription.pauseInfo.startDate',
195
+ },
196
+ {
197
+ path: 'historyEntries.event.created.subscription.pauseInfo.resumeDate',
198
+ },
199
+ {
200
+ path: 'historyEntries.event.created.subscription.cancellationInfo.cancellationDate',
201
+ },
202
+ {
203
+ path: 'historyEntries.event.created.subscription.specificDatePendingUpdateData.executionDate',
204
+ },
205
+ { path: 'historyEntries.event.updated.current.createdDate' },
206
+ { path: 'historyEntries.event.updated.current.updatedDate' },
207
+ { path: 'historyEntries.event.updated.current.startDate' },
208
+ { path: 'historyEntries.event.updated.current.endDate' },
209
+ {
210
+ path: 'historyEntries.event.updated.current.billingStatus.nextBillingDate',
211
+ },
212
+ {
213
+ path: 'historyEntries.event.updated.current.billingStatus.previousBillingDate',
214
+ },
215
+ {
216
+ path: 'historyEntries.event.updated.current.billingStatus.latestPaymentData.initialFailedPaymentDate',
217
+ },
218
+ {
219
+ path: 'historyEntries.event.updated.current.billingStatus.freeTrialData.startDate',
220
+ },
221
+ {
222
+ path: 'historyEntries.event.updated.current.billingStatus.freeTrialData.endDate',
223
+ },
224
+ {
225
+ path: 'historyEntries.event.updated.current.billingStatus.updateBillingDateData.paidUntil',
226
+ },
227
+ {
228
+ path: 'historyEntries.event.updated.current.billingStatus.gracePeriodData.startDate',
229
+ },
230
+ {
231
+ path: 'historyEntries.event.updated.current.billingStatus.gracePeriodData.endDate',
232
+ },
233
+ {
234
+ path: 'historyEntries.event.updated.current.pauseInfo.startDate',
235
+ },
236
+ {
237
+ path: 'historyEntries.event.updated.current.pauseInfo.resumeDate',
238
+ },
239
+ {
240
+ path: 'historyEntries.event.updated.current.cancellationInfo.cancellationDate',
241
+ },
242
+ {
243
+ path: 'historyEntries.event.updated.current.specificDatePendingUpdateData.executionDate',
244
+ },
245
+ { path: 'historyEntries.event.updated.previous.createdDate' },
246
+ { path: 'historyEntries.event.updated.previous.updatedDate' },
247
+ { path: 'historyEntries.event.updated.previous.startDate' },
248
+ { path: 'historyEntries.event.updated.previous.endDate' },
249
+ {
250
+ path: 'historyEntries.event.updated.previous.billingStatus.nextBillingDate',
251
+ },
252
+ {
253
+ path: 'historyEntries.event.updated.previous.billingStatus.previousBillingDate',
254
+ },
255
+ {
256
+ path: 'historyEntries.event.updated.previous.billingStatus.latestPaymentData.initialFailedPaymentDate',
257
+ },
258
+ {
259
+ path: 'historyEntries.event.updated.previous.billingStatus.freeTrialData.startDate',
260
+ },
261
+ {
262
+ path: 'historyEntries.event.updated.previous.billingStatus.freeTrialData.endDate',
263
+ },
264
+ {
265
+ path: 'historyEntries.event.updated.previous.billingStatus.updateBillingDateData.paidUntil',
266
+ },
267
+ {
268
+ path: 'historyEntries.event.updated.previous.billingStatus.gracePeriodData.startDate',
269
+ },
270
+ {
271
+ path: 'historyEntries.event.updated.previous.billingStatus.gracePeriodData.endDate',
272
+ },
273
+ {
274
+ path: 'historyEntries.event.updated.previous.pauseInfo.startDate',
275
+ },
276
+ {
277
+ path: 'historyEntries.event.updated.previous.pauseInfo.resumeDate',
278
+ },
279
+ {
280
+ path: 'historyEntries.event.updated.previous.cancellationInfo.cancellationDate',
281
+ },
282
+ {
283
+ path: 'historyEntries.event.updated.previous.specificDatePendingUpdateData.executionDate',
284
+ },
285
+ {
286
+ path: 'historyEntries.event.activated.subscription.createdDate',
287
+ },
288
+ {
289
+ path: 'historyEntries.event.activated.subscription.updatedDate',
290
+ },
291
+ { path: 'historyEntries.event.activated.subscription.startDate' },
292
+ { path: 'historyEntries.event.activated.subscription.endDate' },
293
+ {
294
+ path: 'historyEntries.event.activated.subscription.billingStatus.nextBillingDate',
295
+ },
296
+ {
297
+ path: 'historyEntries.event.activated.subscription.billingStatus.previousBillingDate',
298
+ },
299
+ {
300
+ path: 'historyEntries.event.activated.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
301
+ },
302
+ {
303
+ path: 'historyEntries.event.activated.subscription.billingStatus.freeTrialData.startDate',
304
+ },
305
+ {
306
+ path: 'historyEntries.event.activated.subscription.billingStatus.freeTrialData.endDate',
307
+ },
308
+ {
309
+ path: 'historyEntries.event.activated.subscription.billingStatus.updateBillingDateData.paidUntil',
310
+ },
311
+ {
312
+ path: 'historyEntries.event.activated.subscription.billingStatus.gracePeriodData.startDate',
313
+ },
314
+ {
315
+ path: 'historyEntries.event.activated.subscription.billingStatus.gracePeriodData.endDate',
316
+ },
317
+ {
318
+ path: 'historyEntries.event.activated.subscription.pauseInfo.startDate',
319
+ },
320
+ {
321
+ path: 'historyEntries.event.activated.subscription.pauseInfo.resumeDate',
322
+ },
323
+ {
324
+ path: 'historyEntries.event.activated.subscription.cancellationInfo.cancellationDate',
325
+ },
326
+ {
327
+ path: 'historyEntries.event.activated.subscription.specificDatePendingUpdateData.executionDate',
328
+ },
329
+ { path: 'historyEntries.event.ended.subscription.createdDate' },
330
+ { path: 'historyEntries.event.ended.subscription.updatedDate' },
331
+ { path: 'historyEntries.event.ended.subscription.startDate' },
332
+ { path: 'historyEntries.event.ended.subscription.endDate' },
333
+ {
334
+ path: 'historyEntries.event.ended.subscription.billingStatus.nextBillingDate',
335
+ },
336
+ {
337
+ path: 'historyEntries.event.ended.subscription.billingStatus.previousBillingDate',
338
+ },
339
+ {
340
+ path: 'historyEntries.event.ended.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
341
+ },
342
+ {
343
+ path: 'historyEntries.event.ended.subscription.billingStatus.freeTrialData.startDate',
344
+ },
345
+ {
346
+ path: 'historyEntries.event.ended.subscription.billingStatus.freeTrialData.endDate',
347
+ },
348
+ {
349
+ path: 'historyEntries.event.ended.subscription.billingStatus.updateBillingDateData.paidUntil',
350
+ },
351
+ {
352
+ path: 'historyEntries.event.ended.subscription.billingStatus.gracePeriodData.startDate',
353
+ },
354
+ {
355
+ path: 'historyEntries.event.ended.subscription.billingStatus.gracePeriodData.endDate',
356
+ },
357
+ {
358
+ path: 'historyEntries.event.ended.subscription.pauseInfo.startDate',
359
+ },
360
+ {
361
+ path: 'historyEntries.event.ended.subscription.pauseInfo.resumeDate',
362
+ },
363
+ {
364
+ path: 'historyEntries.event.ended.subscription.cancellationInfo.cancellationDate',
365
+ },
366
+ {
367
+ path: 'historyEntries.event.ended.subscription.specificDatePendingUpdateData.executionDate',
368
+ },
369
+ {
370
+ path: 'historyEntries.event.canceled.subscription.createdDate',
371
+ },
372
+ {
373
+ path: 'historyEntries.event.canceled.subscription.updatedDate',
374
+ },
375
+ { path: 'historyEntries.event.canceled.subscription.startDate' },
376
+ { path: 'historyEntries.event.canceled.subscription.endDate' },
377
+ {
378
+ path: 'historyEntries.event.canceled.subscription.billingStatus.nextBillingDate',
379
+ },
380
+ {
381
+ path: 'historyEntries.event.canceled.subscription.billingStatus.previousBillingDate',
382
+ },
383
+ {
384
+ path: 'historyEntries.event.canceled.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
385
+ },
386
+ {
387
+ path: 'historyEntries.event.canceled.subscription.billingStatus.freeTrialData.startDate',
388
+ },
389
+ {
390
+ path: 'historyEntries.event.canceled.subscription.billingStatus.freeTrialData.endDate',
391
+ },
392
+ {
393
+ path: 'historyEntries.event.canceled.subscription.billingStatus.updateBillingDateData.paidUntil',
394
+ },
395
+ {
396
+ path: 'historyEntries.event.canceled.subscription.billingStatus.gracePeriodData.startDate',
397
+ },
398
+ {
399
+ path: 'historyEntries.event.canceled.subscription.billingStatus.gracePeriodData.endDate',
400
+ },
401
+ {
402
+ path: 'historyEntries.event.canceled.subscription.pauseInfo.startDate',
403
+ },
404
+ {
405
+ path: 'historyEntries.event.canceled.subscription.pauseInfo.resumeDate',
406
+ },
407
+ {
408
+ path: 'historyEntries.event.canceled.subscription.cancellationInfo.cancellationDate',
409
+ },
410
+ {
411
+ path: 'historyEntries.event.canceled.subscription.specificDatePendingUpdateData.executionDate',
412
+ },
413
+ { path: 'historyEntries.event.paused.subscription.createdDate' },
414
+ { path: 'historyEntries.event.paused.subscription.updatedDate' },
415
+ { path: 'historyEntries.event.paused.subscription.startDate' },
416
+ { path: 'historyEntries.event.paused.subscription.endDate' },
417
+ {
418
+ path: 'historyEntries.event.paused.subscription.billingStatus.nextBillingDate',
419
+ },
420
+ {
421
+ path: 'historyEntries.event.paused.subscription.billingStatus.previousBillingDate',
422
+ },
423
+ {
424
+ path: 'historyEntries.event.paused.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
425
+ },
426
+ {
427
+ path: 'historyEntries.event.paused.subscription.billingStatus.freeTrialData.startDate',
428
+ },
429
+ {
430
+ path: 'historyEntries.event.paused.subscription.billingStatus.freeTrialData.endDate',
431
+ },
432
+ {
433
+ path: 'historyEntries.event.paused.subscription.billingStatus.updateBillingDateData.paidUntil',
434
+ },
435
+ {
436
+ path: 'historyEntries.event.paused.subscription.billingStatus.gracePeriodData.startDate',
437
+ },
438
+ {
439
+ path: 'historyEntries.event.paused.subscription.billingStatus.gracePeriodData.endDate',
440
+ },
441
+ {
442
+ path: 'historyEntries.event.paused.subscription.pauseInfo.startDate',
443
+ },
444
+ {
445
+ path: 'historyEntries.event.paused.subscription.pauseInfo.resumeDate',
446
+ },
447
+ {
448
+ path: 'historyEntries.event.paused.subscription.cancellationInfo.cancellationDate',
449
+ },
450
+ {
451
+ path: 'historyEntries.event.paused.subscription.specificDatePendingUpdateData.executionDate',
452
+ },
453
+ { path: 'historyEntries.event.resumed.subscription.createdDate' },
454
+ { path: 'historyEntries.event.resumed.subscription.updatedDate' },
455
+ { path: 'historyEntries.event.resumed.subscription.startDate' },
456
+ { path: 'historyEntries.event.resumed.subscription.endDate' },
457
+ {
458
+ path: 'historyEntries.event.resumed.subscription.billingStatus.nextBillingDate',
459
+ },
460
+ {
461
+ path: 'historyEntries.event.resumed.subscription.billingStatus.previousBillingDate',
462
+ },
463
+ {
464
+ path: 'historyEntries.event.resumed.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
465
+ },
466
+ {
467
+ path: 'historyEntries.event.resumed.subscription.billingStatus.freeTrialData.startDate',
468
+ },
469
+ {
470
+ path: 'historyEntries.event.resumed.subscription.billingStatus.freeTrialData.endDate',
471
+ },
472
+ {
473
+ path: 'historyEntries.event.resumed.subscription.billingStatus.updateBillingDateData.paidUntil',
474
+ },
475
+ {
476
+ path: 'historyEntries.event.resumed.subscription.billingStatus.gracePeriodData.startDate',
477
+ },
478
+ {
479
+ path: 'historyEntries.event.resumed.subscription.billingStatus.gracePeriodData.endDate',
480
+ },
481
+ {
482
+ path: 'historyEntries.event.resumed.subscription.pauseInfo.startDate',
483
+ },
484
+ {
485
+ path: 'historyEntries.event.resumed.subscription.pauseInfo.resumeDate',
486
+ },
487
+ {
488
+ path: 'historyEntries.event.resumed.subscription.cancellationInfo.cancellationDate',
489
+ },
490
+ {
491
+ path: 'historyEntries.event.resumed.subscription.specificDatePendingUpdateData.executionDate',
492
+ },
493
+ {
494
+ path: 'historyEntries.event.pauseRequested.subscription.createdDate',
495
+ },
496
+ {
497
+ path: 'historyEntries.event.pauseRequested.subscription.updatedDate',
498
+ },
499
+ {
500
+ path: 'historyEntries.event.pauseRequested.subscription.startDate',
501
+ },
502
+ {
503
+ path: 'historyEntries.event.pauseRequested.subscription.endDate',
504
+ },
505
+ {
506
+ path: 'historyEntries.event.pauseRequested.subscription.billingStatus.nextBillingDate',
507
+ },
508
+ {
509
+ path: 'historyEntries.event.pauseRequested.subscription.billingStatus.previousBillingDate',
510
+ },
511
+ {
512
+ path: 'historyEntries.event.pauseRequested.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
513
+ },
514
+ {
515
+ path: 'historyEntries.event.pauseRequested.subscription.billingStatus.freeTrialData.startDate',
516
+ },
517
+ {
518
+ path: 'historyEntries.event.pauseRequested.subscription.billingStatus.freeTrialData.endDate',
519
+ },
520
+ {
521
+ path: 'historyEntries.event.pauseRequested.subscription.billingStatus.updateBillingDateData.paidUntil',
522
+ },
523
+ {
524
+ path: 'historyEntries.event.pauseRequested.subscription.billingStatus.gracePeriodData.startDate',
525
+ },
526
+ {
527
+ path: 'historyEntries.event.pauseRequested.subscription.billingStatus.gracePeriodData.endDate',
528
+ },
529
+ {
530
+ path: 'historyEntries.event.pauseRequested.subscription.pauseInfo.startDate',
531
+ },
532
+ {
533
+ path: 'historyEntries.event.pauseRequested.subscription.pauseInfo.resumeDate',
534
+ },
535
+ {
536
+ path: 'historyEntries.event.pauseRequested.subscription.cancellationInfo.cancellationDate',
537
+ },
538
+ {
539
+ path: 'historyEntries.event.pauseRequested.subscription.specificDatePendingUpdateData.executionDate',
540
+ },
541
+ {
542
+ path: 'historyEntries.event.resumeRequested.subscription.createdDate',
543
+ },
544
+ {
545
+ path: 'historyEntries.event.resumeRequested.subscription.updatedDate',
546
+ },
547
+ {
548
+ path: 'historyEntries.event.resumeRequested.subscription.startDate',
549
+ },
550
+ {
551
+ path: 'historyEntries.event.resumeRequested.subscription.endDate',
552
+ },
553
+ {
554
+ path: 'historyEntries.event.resumeRequested.subscription.billingStatus.nextBillingDate',
555
+ },
556
+ {
557
+ path: 'historyEntries.event.resumeRequested.subscription.billingStatus.previousBillingDate',
558
+ },
559
+ {
560
+ path: 'historyEntries.event.resumeRequested.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
561
+ },
562
+ {
563
+ path: 'historyEntries.event.resumeRequested.subscription.billingStatus.freeTrialData.startDate',
564
+ },
565
+ {
566
+ path: 'historyEntries.event.resumeRequested.subscription.billingStatus.freeTrialData.endDate',
567
+ },
568
+ {
569
+ path: 'historyEntries.event.resumeRequested.subscription.billingStatus.updateBillingDateData.paidUntil',
570
+ },
571
+ {
572
+ path: 'historyEntries.event.resumeRequested.subscription.billingStatus.gracePeriodData.startDate',
573
+ },
574
+ {
575
+ path: 'historyEntries.event.resumeRequested.subscription.billingStatus.gracePeriodData.endDate',
576
+ },
577
+ {
578
+ path: 'historyEntries.event.resumeRequested.subscription.pauseInfo.startDate',
579
+ },
580
+ {
581
+ path: 'historyEntries.event.resumeRequested.subscription.pauseInfo.resumeDate',
582
+ },
583
+ {
584
+ path: 'historyEntries.event.resumeRequested.subscription.cancellationInfo.cancellationDate',
585
+ },
586
+ {
587
+ path: 'historyEntries.event.resumeRequested.subscription.specificDatePendingUpdateData.executionDate',
588
+ },
589
+ {
590
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.createdDate',
591
+ },
592
+ {
593
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.updatedDate',
594
+ },
595
+ {
596
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.startDate',
597
+ },
598
+ {
599
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.endDate',
600
+ },
601
+ {
602
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.nextBillingDate',
603
+ },
604
+ {
605
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.previousBillingDate',
606
+ },
607
+ {
608
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
609
+ },
610
+ {
611
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.freeTrialData.startDate',
612
+ },
613
+ {
614
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.freeTrialData.endDate',
615
+ },
616
+ {
617
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.updateBillingDateData.paidUntil',
618
+ },
619
+ {
620
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.gracePeriodData.startDate',
621
+ },
622
+ {
623
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.gracePeriodData.endDate',
624
+ },
625
+ {
626
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.pauseInfo.startDate',
627
+ },
628
+ {
629
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.pauseInfo.resumeDate',
630
+ },
631
+ {
632
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.cancellationInfo.cancellationDate',
633
+ },
634
+ {
635
+ path: 'historyEntries.event.scheduledPauseCanceled.subscription.specificDatePendingUpdateData.executionDate',
636
+ },
637
+ {
638
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.createdDate',
639
+ },
640
+ {
641
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.updatedDate',
642
+ },
643
+ {
644
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.startDate',
645
+ },
646
+ {
647
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.endDate',
648
+ },
649
+ {
650
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.nextBillingDate',
651
+ },
652
+ {
653
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.previousBillingDate',
654
+ },
655
+ {
656
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
657
+ },
658
+ {
659
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.freeTrialData.startDate',
660
+ },
661
+ {
662
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.freeTrialData.endDate',
663
+ },
664
+ {
665
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.updateBillingDateData.paidUntil',
666
+ },
667
+ {
668
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.gracePeriodData.startDate',
669
+ },
670
+ {
671
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.gracePeriodData.endDate',
672
+ },
673
+ {
674
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.pauseInfo.startDate',
675
+ },
676
+ {
677
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.pauseInfo.resumeDate',
678
+ },
679
+ {
680
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.cancellationInfo.cancellationDate',
681
+ },
682
+ {
683
+ path: 'historyEntries.event.scheduledResumeCanceled.subscription.specificDatePendingUpdateData.executionDate',
684
+ },
685
+ {
686
+ path: 'historyEntries.event.billingCycleStarted.subscription.createdDate',
687
+ },
688
+ {
689
+ path: 'historyEntries.event.billingCycleStarted.subscription.updatedDate',
690
+ },
691
+ {
692
+ path: 'historyEntries.event.billingCycleStarted.subscription.startDate',
693
+ },
694
+ {
695
+ path: 'historyEntries.event.billingCycleStarted.subscription.endDate',
696
+ },
697
+ {
698
+ path: 'historyEntries.event.billingCycleStarted.subscription.billingStatus.nextBillingDate',
699
+ },
700
+ {
701
+ path: 'historyEntries.event.billingCycleStarted.subscription.billingStatus.previousBillingDate',
702
+ },
703
+ {
704
+ path: 'historyEntries.event.billingCycleStarted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
705
+ },
706
+ {
707
+ path: 'historyEntries.event.billingCycleStarted.subscription.billingStatus.freeTrialData.startDate',
708
+ },
709
+ {
710
+ path: 'historyEntries.event.billingCycleStarted.subscription.billingStatus.freeTrialData.endDate',
711
+ },
712
+ {
713
+ path: 'historyEntries.event.billingCycleStarted.subscription.billingStatus.updateBillingDateData.paidUntil',
714
+ },
715
+ {
716
+ path: 'historyEntries.event.billingCycleStarted.subscription.billingStatus.gracePeriodData.startDate',
717
+ },
718
+ {
719
+ path: 'historyEntries.event.billingCycleStarted.subscription.billingStatus.gracePeriodData.endDate',
720
+ },
721
+ {
722
+ path: 'historyEntries.event.billingCycleStarted.subscription.pauseInfo.startDate',
723
+ },
724
+ {
725
+ path: 'historyEntries.event.billingCycleStarted.subscription.pauseInfo.resumeDate',
726
+ },
727
+ {
728
+ path: 'historyEntries.event.billingCycleStarted.subscription.cancellationInfo.cancellationDate',
729
+ },
730
+ {
731
+ path: 'historyEntries.event.billingCycleStarted.subscription.specificDatePendingUpdateData.executionDate',
732
+ },
733
+ {
734
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.createdDate',
735
+ },
736
+ {
737
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.updatedDate',
738
+ },
739
+ {
740
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.startDate',
741
+ },
742
+ {
743
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.endDate',
744
+ },
745
+ {
746
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.nextBillingDate',
747
+ },
748
+ {
749
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.previousBillingDate',
750
+ },
751
+ {
752
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
753
+ },
754
+ {
755
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.freeTrialData.startDate',
756
+ },
757
+ {
758
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.freeTrialData.endDate',
759
+ },
760
+ {
761
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.updateBillingDateData.paidUntil',
762
+ },
763
+ {
764
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.gracePeriodData.startDate',
765
+ },
766
+ {
767
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.gracePeriodData.endDate',
768
+ },
769
+ {
770
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.pauseInfo.startDate',
771
+ },
772
+ {
773
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.pauseInfo.resumeDate',
774
+ },
775
+ {
776
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.cancellationInfo.cancellationDate',
777
+ },
778
+ {
779
+ path: 'historyEntries.event.autoRenewalTurnedOn.subscription.specificDatePendingUpdateData.executionDate',
780
+ },
781
+ {
782
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.createdDate',
783
+ },
784
+ {
785
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.updatedDate',
786
+ },
787
+ {
788
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.startDate',
789
+ },
790
+ {
791
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.endDate',
792
+ },
793
+ {
794
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.nextBillingDate',
795
+ },
796
+ {
797
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.previousBillingDate',
798
+ },
799
+ {
800
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
801
+ },
802
+ {
803
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.freeTrialData.startDate',
804
+ },
805
+ {
806
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.freeTrialData.endDate',
807
+ },
808
+ {
809
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.updateBillingDateData.paidUntil',
810
+ },
811
+ {
812
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.gracePeriodData.startDate',
813
+ },
814
+ {
815
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.gracePeriodData.endDate',
816
+ },
817
+ {
818
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.pauseInfo.startDate',
819
+ },
820
+ {
821
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.pauseInfo.resumeDate',
822
+ },
823
+ {
824
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.cancellationInfo.cancellationDate',
825
+ },
826
+ {
827
+ path: 'historyEntries.event.autoRenewalTurnedOff.subscription.specificDatePendingUpdateData.executionDate',
828
+ },
829
+ {
830
+ path: 'historyEntries.event.cycleReadyToPay.subscription.createdDate',
831
+ },
832
+ {
833
+ path: 'historyEntries.event.cycleReadyToPay.subscription.updatedDate',
834
+ },
835
+ {
836
+ path: 'historyEntries.event.cycleReadyToPay.subscription.startDate',
837
+ },
838
+ {
839
+ path: 'historyEntries.event.cycleReadyToPay.subscription.endDate',
840
+ },
841
+ {
842
+ path: 'historyEntries.event.cycleReadyToPay.subscription.billingStatus.nextBillingDate',
843
+ },
844
+ {
845
+ path: 'historyEntries.event.cycleReadyToPay.subscription.billingStatus.previousBillingDate',
846
+ },
847
+ {
848
+ path: 'historyEntries.event.cycleReadyToPay.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
849
+ },
850
+ {
851
+ path: 'historyEntries.event.cycleReadyToPay.subscription.billingStatus.freeTrialData.startDate',
852
+ },
853
+ {
854
+ path: 'historyEntries.event.cycleReadyToPay.subscription.billingStatus.freeTrialData.endDate',
855
+ },
856
+ {
857
+ path: 'historyEntries.event.cycleReadyToPay.subscription.billingStatus.updateBillingDateData.paidUntil',
858
+ },
859
+ {
860
+ path: 'historyEntries.event.cycleReadyToPay.subscription.billingStatus.gracePeriodData.startDate',
861
+ },
862
+ {
863
+ path: 'historyEntries.event.cycleReadyToPay.subscription.billingStatus.gracePeriodData.endDate',
864
+ },
865
+ {
866
+ path: 'historyEntries.event.cycleReadyToPay.subscription.pauseInfo.startDate',
867
+ },
868
+ {
869
+ path: 'historyEntries.event.cycleReadyToPay.subscription.pauseInfo.resumeDate',
870
+ },
871
+ {
872
+ path: 'historyEntries.event.cycleReadyToPay.subscription.cancellationInfo.cancellationDate',
873
+ },
874
+ {
875
+ path: 'historyEntries.event.cycleReadyToPay.subscription.specificDatePendingUpdateData.executionDate',
876
+ },
877
+ {
878
+ path: 'historyEntries.event.extended.subscription.createdDate',
879
+ },
880
+ {
881
+ path: 'historyEntries.event.extended.subscription.updatedDate',
882
+ },
883
+ { path: 'historyEntries.event.extended.subscription.startDate' },
884
+ { path: 'historyEntries.event.extended.subscription.endDate' },
885
+ {
886
+ path: 'historyEntries.event.extended.subscription.billingStatus.nextBillingDate',
887
+ },
888
+ {
889
+ path: 'historyEntries.event.extended.subscription.billingStatus.previousBillingDate',
890
+ },
891
+ {
892
+ path: 'historyEntries.event.extended.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
893
+ },
894
+ {
895
+ path: 'historyEntries.event.extended.subscription.billingStatus.freeTrialData.startDate',
896
+ },
897
+ {
898
+ path: 'historyEntries.event.extended.subscription.billingStatus.freeTrialData.endDate',
899
+ },
900
+ {
901
+ path: 'historyEntries.event.extended.subscription.billingStatus.updateBillingDateData.paidUntil',
902
+ },
903
+ {
904
+ path: 'historyEntries.event.extended.subscription.billingStatus.gracePeriodData.startDate',
905
+ },
906
+ {
907
+ path: 'historyEntries.event.extended.subscription.billingStatus.gracePeriodData.endDate',
908
+ },
909
+ {
910
+ path: 'historyEntries.event.extended.subscription.pauseInfo.startDate',
911
+ },
912
+ {
913
+ path: 'historyEntries.event.extended.subscription.pauseInfo.resumeDate',
914
+ },
915
+ {
916
+ path: 'historyEntries.event.extended.subscription.cancellationInfo.cancellationDate',
917
+ },
918
+ {
919
+ path: 'historyEntries.event.extended.subscription.specificDatePendingUpdateData.executionDate',
920
+ },
921
+ {
922
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.createdDate',
923
+ },
924
+ {
925
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.updatedDate',
926
+ },
927
+ {
928
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.startDate',
929
+ },
930
+ {
931
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.endDate',
932
+ },
933
+ {
934
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.nextBillingDate',
935
+ },
936
+ {
937
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.previousBillingDate',
938
+ },
939
+ {
940
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
941
+ },
942
+ {
943
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.freeTrialData.startDate',
944
+ },
945
+ {
946
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.freeTrialData.endDate',
947
+ },
948
+ {
949
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.updateBillingDateData.paidUntil',
950
+ },
951
+ {
952
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.gracePeriodData.startDate',
953
+ },
954
+ {
955
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.gracePeriodData.endDate',
956
+ },
957
+ {
958
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.pauseInfo.startDate',
959
+ },
960
+ {
961
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.pauseInfo.resumeDate',
962
+ },
963
+ {
964
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.cancellationInfo.cancellationDate',
965
+ },
966
+ {
967
+ path: 'historyEntries.event.initialPurchaseCompleted.subscription.specificDatePendingUpdateData.executionDate',
968
+ },
969
+ {
970
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.createdDate',
971
+ },
972
+ {
973
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.updatedDate',
974
+ },
975
+ {
976
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.startDate',
977
+ },
978
+ {
979
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.endDate',
980
+ },
981
+ {
982
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.nextBillingDate',
983
+ },
984
+ {
985
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.previousBillingDate',
986
+ },
987
+ {
988
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
989
+ },
990
+ {
991
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.freeTrialData.startDate',
992
+ },
993
+ {
994
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.freeTrialData.endDate',
995
+ },
996
+ {
997
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.updateBillingDateData.paidUntil',
998
+ },
999
+ {
1000
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.gracePeriodData.startDate',
1001
+ },
1002
+ {
1003
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.gracePeriodData.endDate',
1004
+ },
1005
+ {
1006
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.pauseInfo.startDate',
1007
+ },
1008
+ {
1009
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.pauseInfo.resumeDate',
1010
+ },
1011
+ {
1012
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.cancellationInfo.cancellationDate',
1013
+ },
1014
+ {
1015
+ path: 'historyEntries.event.latestInvoiceMarkedAsPaid.subscription.specificDatePendingUpdateData.executionDate',
1016
+ },
1017
+ { path: 'historyEntries.event.revived.subscription.createdDate' },
1018
+ { path: 'historyEntries.event.revived.subscription.updatedDate' },
1019
+ { path: 'historyEntries.event.revived.subscription.startDate' },
1020
+ { path: 'historyEntries.event.revived.subscription.endDate' },
1021
+ {
1022
+ path: 'historyEntries.event.revived.subscription.billingStatus.nextBillingDate',
1023
+ },
1024
+ {
1025
+ path: 'historyEntries.event.revived.subscription.billingStatus.previousBillingDate',
1026
+ },
1027
+ {
1028
+ path: 'historyEntries.event.revived.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1029
+ },
1030
+ {
1031
+ path: 'historyEntries.event.revived.subscription.billingStatus.freeTrialData.startDate',
1032
+ },
1033
+ {
1034
+ path: 'historyEntries.event.revived.subscription.billingStatus.freeTrialData.endDate',
1035
+ },
1036
+ {
1037
+ path: 'historyEntries.event.revived.subscription.billingStatus.updateBillingDateData.paidUntil',
1038
+ },
1039
+ {
1040
+ path: 'historyEntries.event.revived.subscription.billingStatus.gracePeriodData.startDate',
1041
+ },
1042
+ {
1043
+ path: 'historyEntries.event.revived.subscription.billingStatus.gracePeriodData.endDate',
1044
+ },
1045
+ {
1046
+ path: 'historyEntries.event.revived.subscription.pauseInfo.startDate',
1047
+ },
1048
+ {
1049
+ path: 'historyEntries.event.revived.subscription.pauseInfo.resumeDate',
1050
+ },
1051
+ {
1052
+ path: 'historyEntries.event.revived.subscription.cancellationInfo.cancellationDate',
1053
+ },
1054
+ {
1055
+ path: 'historyEntries.event.revived.subscription.specificDatePendingUpdateData.executionDate',
1056
+ },
1057
+ { path: 'historyEntries.event.billingDateUpdated.billingDate' },
1058
+ {
1059
+ path: 'historyEntries.event.billingDateUpdated.subscription.createdDate',
1060
+ },
1061
+ {
1062
+ path: 'historyEntries.event.billingDateUpdated.subscription.updatedDate',
1063
+ },
1064
+ {
1065
+ path: 'historyEntries.event.billingDateUpdated.subscription.startDate',
1066
+ },
1067
+ {
1068
+ path: 'historyEntries.event.billingDateUpdated.subscription.endDate',
1069
+ },
1070
+ {
1071
+ path: 'historyEntries.event.billingDateUpdated.subscription.billingStatus.nextBillingDate',
1072
+ },
1073
+ {
1074
+ path: 'historyEntries.event.billingDateUpdated.subscription.billingStatus.previousBillingDate',
1075
+ },
1076
+ {
1077
+ path: 'historyEntries.event.billingDateUpdated.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1078
+ },
1079
+ {
1080
+ path: 'historyEntries.event.billingDateUpdated.subscription.billingStatus.freeTrialData.startDate',
1081
+ },
1082
+ {
1083
+ path: 'historyEntries.event.billingDateUpdated.subscription.billingStatus.freeTrialData.endDate',
1084
+ },
1085
+ {
1086
+ path: 'historyEntries.event.billingDateUpdated.subscription.billingStatus.updateBillingDateData.paidUntil',
1087
+ },
1088
+ {
1089
+ path: 'historyEntries.event.billingDateUpdated.subscription.billingStatus.gracePeriodData.startDate',
1090
+ },
1091
+ {
1092
+ path: 'historyEntries.event.billingDateUpdated.subscription.billingStatus.gracePeriodData.endDate',
1093
+ },
1094
+ {
1095
+ path: 'historyEntries.event.billingDateUpdated.subscription.pauseInfo.startDate',
1096
+ },
1097
+ {
1098
+ path: 'historyEntries.event.billingDateUpdated.subscription.pauseInfo.resumeDate',
1099
+ },
1100
+ {
1101
+ path: 'historyEntries.event.billingDateUpdated.subscription.cancellationInfo.cancellationDate',
1102
+ },
1103
+ {
1104
+ path: 'historyEntries.event.billingDateUpdated.subscription.specificDatePendingUpdateData.executionDate',
1105
+ },
1106
+ {
1107
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.createdDate',
1108
+ },
1109
+ {
1110
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.updatedDate',
1111
+ },
1112
+ {
1113
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.startDate',
1114
+ },
1115
+ {
1116
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.endDate',
1117
+ },
1118
+ {
1119
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.billingStatus.nextBillingDate',
1120
+ },
1121
+ {
1122
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.billingStatus.previousBillingDate',
1123
+ },
1124
+ {
1125
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1126
+ },
1127
+ {
1128
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.billingStatus.freeTrialData.startDate',
1129
+ },
1130
+ {
1131
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.billingStatus.freeTrialData.endDate',
1132
+ },
1133
+ {
1134
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.billingStatus.updateBillingDateData.paidUntil',
1135
+ },
1136
+ {
1137
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.billingStatus.gracePeriodData.startDate',
1138
+ },
1139
+ {
1140
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.billingStatus.gracePeriodData.endDate',
1141
+ },
1142
+ {
1143
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.pauseInfo.startDate',
1144
+ },
1145
+ {
1146
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.pauseInfo.resumeDate',
1147
+ },
1148
+ {
1149
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.cancellationInfo.cancellationDate',
1150
+ },
1151
+ {
1152
+ path: 'historyEntries.event.futureUpdatesRequested.subscription.specificDatePendingUpdateData.executionDate',
1153
+ },
1154
+ {
1155
+ path: 'historyEntries.event.updatesApplied.subscription.createdDate',
1156
+ },
1157
+ {
1158
+ path: 'historyEntries.event.updatesApplied.subscription.updatedDate',
1159
+ },
1160
+ {
1161
+ path: 'historyEntries.event.updatesApplied.subscription.startDate',
1162
+ },
1163
+ {
1164
+ path: 'historyEntries.event.updatesApplied.subscription.endDate',
1165
+ },
1166
+ {
1167
+ path: 'historyEntries.event.updatesApplied.subscription.billingStatus.nextBillingDate',
1168
+ },
1169
+ {
1170
+ path: 'historyEntries.event.updatesApplied.subscription.billingStatus.previousBillingDate',
1171
+ },
1172
+ {
1173
+ path: 'historyEntries.event.updatesApplied.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1174
+ },
1175
+ {
1176
+ path: 'historyEntries.event.updatesApplied.subscription.billingStatus.freeTrialData.startDate',
1177
+ },
1178
+ {
1179
+ path: 'historyEntries.event.updatesApplied.subscription.billingStatus.freeTrialData.endDate',
1180
+ },
1181
+ {
1182
+ path: 'historyEntries.event.updatesApplied.subscription.billingStatus.updateBillingDateData.paidUntil',
1183
+ },
1184
+ {
1185
+ path: 'historyEntries.event.updatesApplied.subscription.billingStatus.gracePeriodData.startDate',
1186
+ },
1187
+ {
1188
+ path: 'historyEntries.event.updatesApplied.subscription.billingStatus.gracePeriodData.endDate',
1189
+ },
1190
+ {
1191
+ path: 'historyEntries.event.updatesApplied.subscription.pauseInfo.startDate',
1192
+ },
1193
+ {
1194
+ path: 'historyEntries.event.updatesApplied.subscription.pauseInfo.resumeDate',
1195
+ },
1196
+ {
1197
+ path: 'historyEntries.event.updatesApplied.subscription.cancellationInfo.cancellationDate',
1198
+ },
1199
+ {
1200
+ path: 'historyEntries.event.updatesApplied.subscription.specificDatePendingUpdateData.executionDate',
1201
+ },
1202
+ {
1203
+ path: 'historyEntries.event.resetPendingUpdates.subscription.createdDate',
1204
+ },
1205
+ {
1206
+ path: 'historyEntries.event.resetPendingUpdates.subscription.updatedDate',
1207
+ },
1208
+ {
1209
+ path: 'historyEntries.event.resetPendingUpdates.subscription.startDate',
1210
+ },
1211
+ {
1212
+ path: 'historyEntries.event.resetPendingUpdates.subscription.endDate',
1213
+ },
1214
+ {
1215
+ path: 'historyEntries.event.resetPendingUpdates.subscription.billingStatus.nextBillingDate',
1216
+ },
1217
+ {
1218
+ path: 'historyEntries.event.resetPendingUpdates.subscription.billingStatus.previousBillingDate',
1219
+ },
1220
+ {
1221
+ path: 'historyEntries.event.resetPendingUpdates.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1222
+ },
1223
+ {
1224
+ path: 'historyEntries.event.resetPendingUpdates.subscription.billingStatus.freeTrialData.startDate',
1225
+ },
1226
+ {
1227
+ path: 'historyEntries.event.resetPendingUpdates.subscription.billingStatus.freeTrialData.endDate',
1228
+ },
1229
+ {
1230
+ path: 'historyEntries.event.resetPendingUpdates.subscription.billingStatus.updateBillingDateData.paidUntil',
1231
+ },
1232
+ {
1233
+ path: 'historyEntries.event.resetPendingUpdates.subscription.billingStatus.gracePeriodData.startDate',
1234
+ },
1235
+ {
1236
+ path: 'historyEntries.event.resetPendingUpdates.subscription.billingStatus.gracePeriodData.endDate',
1237
+ },
1238
+ {
1239
+ path: 'historyEntries.event.resetPendingUpdates.subscription.pauseInfo.startDate',
1240
+ },
1241
+ {
1242
+ path: 'historyEntries.event.resetPendingUpdates.subscription.pauseInfo.resumeDate',
1243
+ },
1244
+ {
1245
+ path: 'historyEntries.event.resetPendingUpdates.subscription.cancellationInfo.cancellationDate',
1246
+ },
1247
+ {
1248
+ path: 'historyEntries.event.resetPendingUpdates.subscription.specificDatePendingUpdateData.executionDate',
1249
+ },
1250
+ {
1251
+ path: 'historyEntries.event.gracePeriodStarted.subscription.createdDate',
1252
+ },
1253
+ {
1254
+ path: 'historyEntries.event.gracePeriodStarted.subscription.updatedDate',
1255
+ },
1256
+ {
1257
+ path: 'historyEntries.event.gracePeriodStarted.subscription.startDate',
1258
+ },
1259
+ {
1260
+ path: 'historyEntries.event.gracePeriodStarted.subscription.endDate',
1261
+ },
1262
+ {
1263
+ path: 'historyEntries.event.gracePeriodStarted.subscription.billingStatus.nextBillingDate',
1264
+ },
1265
+ {
1266
+ path: 'historyEntries.event.gracePeriodStarted.subscription.billingStatus.previousBillingDate',
1267
+ },
1268
+ {
1269
+ path: 'historyEntries.event.gracePeriodStarted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1270
+ },
1271
+ {
1272
+ path: 'historyEntries.event.gracePeriodStarted.subscription.billingStatus.freeTrialData.startDate',
1273
+ },
1274
+ {
1275
+ path: 'historyEntries.event.gracePeriodStarted.subscription.billingStatus.freeTrialData.endDate',
1276
+ },
1277
+ {
1278
+ path: 'historyEntries.event.gracePeriodStarted.subscription.billingStatus.updateBillingDateData.paidUntil',
1279
+ },
1280
+ {
1281
+ path: 'historyEntries.event.gracePeriodStarted.subscription.billingStatus.gracePeriodData.startDate',
1282
+ },
1283
+ {
1284
+ path: 'historyEntries.event.gracePeriodStarted.subscription.billingStatus.gracePeriodData.endDate',
1285
+ },
1286
+ {
1287
+ path: 'historyEntries.event.gracePeriodStarted.subscription.pauseInfo.startDate',
1288
+ },
1289
+ {
1290
+ path: 'historyEntries.event.gracePeriodStarted.subscription.pauseInfo.resumeDate',
1291
+ },
1292
+ {
1293
+ path: 'historyEntries.event.gracePeriodStarted.subscription.cancellationInfo.cancellationDate',
1294
+ },
1295
+ {
1296
+ path: 'historyEntries.event.gracePeriodStarted.subscription.specificDatePendingUpdateData.executionDate',
1297
+ },
1298
+ {
1299
+ path: 'historyEntries.event.gracePeriodEnded.subscription.createdDate',
1300
+ },
1301
+ {
1302
+ path: 'historyEntries.event.gracePeriodEnded.subscription.updatedDate',
1303
+ },
1304
+ {
1305
+ path: 'historyEntries.event.gracePeriodEnded.subscription.startDate',
1306
+ },
1307
+ {
1308
+ path: 'historyEntries.event.gracePeriodEnded.subscription.endDate',
1309
+ },
1310
+ {
1311
+ path: 'historyEntries.event.gracePeriodEnded.subscription.billingStatus.nextBillingDate',
1312
+ },
1313
+ {
1314
+ path: 'historyEntries.event.gracePeriodEnded.subscription.billingStatus.previousBillingDate',
1315
+ },
1316
+ {
1317
+ path: 'historyEntries.event.gracePeriodEnded.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1318
+ },
1319
+ {
1320
+ path: 'historyEntries.event.gracePeriodEnded.subscription.billingStatus.freeTrialData.startDate',
1321
+ },
1322
+ {
1323
+ path: 'historyEntries.event.gracePeriodEnded.subscription.billingStatus.freeTrialData.endDate',
1324
+ },
1325
+ {
1326
+ path: 'historyEntries.event.gracePeriodEnded.subscription.billingStatus.updateBillingDateData.paidUntil',
1327
+ },
1328
+ {
1329
+ path: 'historyEntries.event.gracePeriodEnded.subscription.billingStatus.gracePeriodData.startDate',
1330
+ },
1331
+ {
1332
+ path: 'historyEntries.event.gracePeriodEnded.subscription.billingStatus.gracePeriodData.endDate',
1333
+ },
1334
+ {
1335
+ path: 'historyEntries.event.gracePeriodEnded.subscription.pauseInfo.startDate',
1336
+ },
1337
+ {
1338
+ path: 'historyEntries.event.gracePeriodEnded.subscription.pauseInfo.resumeDate',
1339
+ },
1340
+ {
1341
+ path: 'historyEntries.event.gracePeriodEnded.subscription.cancellationInfo.cancellationDate',
1342
+ },
1343
+ {
1344
+ path: 'historyEntries.event.gracePeriodEnded.subscription.specificDatePendingUpdateData.executionDate',
1345
+ },
1346
+ {
1347
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.createdDate',
1348
+ },
1349
+ {
1350
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.updatedDate',
1351
+ },
1352
+ {
1353
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.startDate',
1354
+ },
1355
+ {
1356
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.endDate',
1357
+ },
1358
+ {
1359
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.billingStatus.nextBillingDate',
1360
+ },
1361
+ {
1362
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.billingStatus.previousBillingDate',
1363
+ },
1364
+ {
1365
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1366
+ },
1367
+ {
1368
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.billingStatus.freeTrialData.startDate',
1369
+ },
1370
+ {
1371
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.billingStatus.freeTrialData.endDate',
1372
+ },
1373
+ {
1374
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.billingStatus.updateBillingDateData.paidUntil',
1375
+ },
1376
+ {
1377
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.billingStatus.gracePeriodData.startDate',
1378
+ },
1379
+ {
1380
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.billingStatus.gracePeriodData.endDate',
1381
+ },
1382
+ {
1383
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.pauseInfo.startDate',
1384
+ },
1385
+ {
1386
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.pauseInfo.resumeDate',
1387
+ },
1388
+ {
1389
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.cancellationInfo.cancellationDate',
1390
+ },
1391
+ {
1392
+ path: 'historyEntries.event.paymentMethodUpdated.subscription.specificDatePendingUpdateData.executionDate',
1393
+ },
1394
+ {
1395
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.createdDate',
1396
+ },
1397
+ {
1398
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.updatedDate',
1399
+ },
1400
+ {
1401
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.startDate',
1402
+ },
1403
+ {
1404
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.endDate',
1405
+ },
1406
+ {
1407
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.billingStatus.nextBillingDate',
1408
+ },
1409
+ {
1410
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.billingStatus.previousBillingDate',
1411
+ },
1412
+ {
1413
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1414
+ },
1415
+ {
1416
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.billingStatus.freeTrialData.startDate',
1417
+ },
1418
+ {
1419
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.billingStatus.freeTrialData.endDate',
1420
+ },
1421
+ {
1422
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.billingStatus.updateBillingDateData.paidUntil',
1423
+ },
1424
+ {
1425
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.billingStatus.gracePeriodData.startDate',
1426
+ },
1427
+ {
1428
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.billingStatus.gracePeriodData.endDate',
1429
+ },
1430
+ {
1431
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.pauseInfo.startDate',
1432
+ },
1433
+ {
1434
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.pauseInfo.resumeDate',
1435
+ },
1436
+ {
1437
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.cancellationInfo.cancellationDate',
1438
+ },
1439
+ {
1440
+ path: 'historyEntries.event.collectionMethodUpdated.subscription.specificDatePendingUpdateData.executionDate',
1441
+ },
1442
+ {
1443
+ path: 'historyEntries.event.freeTrailStarted.subscription.createdDate',
1444
+ },
1445
+ {
1446
+ path: 'historyEntries.event.freeTrailStarted.subscription.updatedDate',
1447
+ },
1448
+ {
1449
+ path: 'historyEntries.event.freeTrailStarted.subscription.startDate',
1450
+ },
1451
+ {
1452
+ path: 'historyEntries.event.freeTrailStarted.subscription.endDate',
1453
+ },
1454
+ {
1455
+ path: 'historyEntries.event.freeTrailStarted.subscription.billingStatus.nextBillingDate',
1456
+ },
1457
+ {
1458
+ path: 'historyEntries.event.freeTrailStarted.subscription.billingStatus.previousBillingDate',
1459
+ },
1460
+ {
1461
+ path: 'historyEntries.event.freeTrailStarted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1462
+ },
1463
+ {
1464
+ path: 'historyEntries.event.freeTrailStarted.subscription.billingStatus.freeTrialData.startDate',
1465
+ },
1466
+ {
1467
+ path: 'historyEntries.event.freeTrailStarted.subscription.billingStatus.freeTrialData.endDate',
1468
+ },
1469
+ {
1470
+ path: 'historyEntries.event.freeTrailStarted.subscription.billingStatus.updateBillingDateData.paidUntil',
1471
+ },
1472
+ {
1473
+ path: 'historyEntries.event.freeTrailStarted.subscription.billingStatus.gracePeriodData.startDate',
1474
+ },
1475
+ {
1476
+ path: 'historyEntries.event.freeTrailStarted.subscription.billingStatus.gracePeriodData.endDate',
1477
+ },
1478
+ {
1479
+ path: 'historyEntries.event.freeTrailStarted.subscription.pauseInfo.startDate',
1480
+ },
1481
+ {
1482
+ path: 'historyEntries.event.freeTrailStarted.subscription.pauseInfo.resumeDate',
1483
+ },
1484
+ {
1485
+ path: 'historyEntries.event.freeTrailStarted.subscription.cancellationInfo.cancellationDate',
1486
+ },
1487
+ {
1488
+ path: 'historyEntries.event.freeTrailStarted.subscription.specificDatePendingUpdateData.executionDate',
1489
+ },
1490
+ {
1491
+ path: 'historyEntries.event.freeTrailEnded.subscription.createdDate',
1492
+ },
1493
+ {
1494
+ path: 'historyEntries.event.freeTrailEnded.subscription.updatedDate',
1495
+ },
1496
+ {
1497
+ path: 'historyEntries.event.freeTrailEnded.subscription.startDate',
1498
+ },
1499
+ {
1500
+ path: 'historyEntries.event.freeTrailEnded.subscription.endDate',
1501
+ },
1502
+ {
1503
+ path: 'historyEntries.event.freeTrailEnded.subscription.billingStatus.nextBillingDate',
1504
+ },
1505
+ {
1506
+ path: 'historyEntries.event.freeTrailEnded.subscription.billingStatus.previousBillingDate',
1507
+ },
1508
+ {
1509
+ path: 'historyEntries.event.freeTrailEnded.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1510
+ },
1511
+ {
1512
+ path: 'historyEntries.event.freeTrailEnded.subscription.billingStatus.freeTrialData.startDate',
1513
+ },
1514
+ {
1515
+ path: 'historyEntries.event.freeTrailEnded.subscription.billingStatus.freeTrialData.endDate',
1516
+ },
1517
+ {
1518
+ path: 'historyEntries.event.freeTrailEnded.subscription.billingStatus.updateBillingDateData.paidUntil',
1519
+ },
1520
+ {
1521
+ path: 'historyEntries.event.freeTrailEnded.subscription.billingStatus.gracePeriodData.startDate',
1522
+ },
1523
+ {
1524
+ path: 'historyEntries.event.freeTrailEnded.subscription.billingStatus.gracePeriodData.endDate',
1525
+ },
1526
+ {
1527
+ path: 'historyEntries.event.freeTrailEnded.subscription.pauseInfo.startDate',
1528
+ },
1529
+ {
1530
+ path: 'historyEntries.event.freeTrailEnded.subscription.pauseInfo.resumeDate',
1531
+ },
1532
+ {
1533
+ path: 'historyEntries.event.freeTrailEnded.subscription.cancellationInfo.cancellationDate',
1534
+ },
1535
+ {
1536
+ path: 'historyEntries.event.freeTrailEnded.subscription.specificDatePendingUpdateData.executionDate',
1537
+ },
1538
+ {
1539
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.createdDate',
1540
+ },
1541
+ {
1542
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.updatedDate',
1543
+ },
1544
+ {
1545
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.startDate',
1546
+ },
1547
+ {
1548
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.endDate',
1549
+ },
1550
+ {
1551
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.billingStatus.nextBillingDate',
1552
+ },
1553
+ {
1554
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.billingStatus.previousBillingDate',
1555
+ },
1556
+ {
1557
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1558
+ },
1559
+ {
1560
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.billingStatus.freeTrialData.startDate',
1561
+ },
1562
+ {
1563
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.billingStatus.freeTrialData.endDate',
1564
+ },
1565
+ {
1566
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.billingStatus.updateBillingDateData.paidUntil',
1567
+ },
1568
+ {
1569
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.billingStatus.gracePeriodData.startDate',
1570
+ },
1571
+ {
1572
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.billingStatus.gracePeriodData.endDate',
1573
+ },
1574
+ {
1575
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.pauseInfo.startDate',
1576
+ },
1577
+ {
1578
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.pauseInfo.resumeDate',
1579
+ },
1580
+ {
1581
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.cancellationInfo.cancellationDate',
1582
+ },
1583
+ {
1584
+ path: 'historyEntries.event.invoiceMarkedAsPaid.subscription.specificDatePendingUpdateData.executionDate',
1585
+ },
1586
+ {
1587
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.createdDate',
1588
+ },
1589
+ {
1590
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.updatedDate',
1591
+ },
1592
+ {
1593
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.startDate',
1594
+ },
1595
+ {
1596
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.endDate',
1597
+ },
1598
+ {
1599
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.nextBillingDate',
1600
+ },
1601
+ {
1602
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.previousBillingDate',
1603
+ },
1604
+ {
1605
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1606
+ },
1607
+ {
1608
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.freeTrialData.startDate',
1609
+ },
1610
+ {
1611
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.freeTrialData.endDate',
1612
+ },
1613
+ {
1614
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.updateBillingDateData.paidUntil',
1615
+ },
1616
+ {
1617
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.gracePeriodData.startDate',
1618
+ },
1619
+ {
1620
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.gracePeriodData.endDate',
1621
+ },
1622
+ {
1623
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.pauseInfo.startDate',
1624
+ },
1625
+ {
1626
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.pauseInfo.resumeDate',
1627
+ },
1628
+ {
1629
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.cancellationInfo.cancellationDate',
1630
+ },
1631
+ {
1632
+ path: 'historyEntries.event.initiatePaymentMethodSetup.subscription.specificDatePendingUpdateData.executionDate',
1633
+ },
1634
+ {
1635
+ path: 'historyEntries.event.subscriptionBoAction.subscription.createdDate',
1636
+ },
1637
+ {
1638
+ path: 'historyEntries.event.subscriptionBoAction.subscription.updatedDate',
1639
+ },
1640
+ {
1641
+ path: 'historyEntries.event.subscriptionBoAction.subscription.startDate',
1642
+ },
1643
+ {
1644
+ path: 'historyEntries.event.subscriptionBoAction.subscription.endDate',
1645
+ },
1646
+ {
1647
+ path: 'historyEntries.event.subscriptionBoAction.subscription.billingStatus.nextBillingDate',
1648
+ },
1649
+ {
1650
+ path: 'historyEntries.event.subscriptionBoAction.subscription.billingStatus.previousBillingDate',
1651
+ },
1652
+ {
1653
+ path: 'historyEntries.event.subscriptionBoAction.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1654
+ },
1655
+ {
1656
+ path: 'historyEntries.event.subscriptionBoAction.subscription.billingStatus.freeTrialData.startDate',
1657
+ },
1658
+ {
1659
+ path: 'historyEntries.event.subscriptionBoAction.subscription.billingStatus.freeTrialData.endDate',
1660
+ },
1661
+ {
1662
+ path: 'historyEntries.event.subscriptionBoAction.subscription.billingStatus.updateBillingDateData.paidUntil',
1663
+ },
1664
+ {
1665
+ path: 'historyEntries.event.subscriptionBoAction.subscription.billingStatus.gracePeriodData.startDate',
1666
+ },
1667
+ {
1668
+ path: 'historyEntries.event.subscriptionBoAction.subscription.billingStatus.gracePeriodData.endDate',
1669
+ },
1670
+ {
1671
+ path: 'historyEntries.event.subscriptionBoAction.subscription.pauseInfo.startDate',
1672
+ },
1673
+ {
1674
+ path: 'historyEntries.event.subscriptionBoAction.subscription.pauseInfo.resumeDate',
1675
+ },
1676
+ {
1677
+ path: 'historyEntries.event.subscriptionBoAction.subscription.cancellationInfo.cancellationDate',
1678
+ },
1679
+ {
1680
+ path: 'historyEntries.event.subscriptionBoAction.subscription.specificDatePendingUpdateData.executionDate',
1681
+ },
1682
+ ],
1683
+ },
1684
+ ]),
1685
+ };
1686
+ return metadata;
1687
+ }
1688
+ return __listSubscriptionHistory;
1689
+ }
1690
+ /** Identity must be a site member and customer subscription belongs to */
1691
+ export function customerGetSubscription(payload) {
1692
+ function __customerGetSubscription({ host }) {
1693
+ const metadata = {
1694
+ entityFqdn: 'wix.billing.v1.subscription',
1695
+ method: 'GET',
1696
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.GetSubscription',
1697
+ packageName: PACKAGE_NAME,
1698
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl({ protoPath: '/v1/customer_subscriptions/{id}', data: payload, host }),
1699
+ params: toURLSearchParams(payload),
1700
+ transformResponse: (payload) => transformPaths(payload, [
1701
+ {
1702
+ transformFn: transformRESTTimestampToSDKTimestamp,
1703
+ paths: [
1704
+ { path: 'subscription.createdDate' },
1705
+ { path: 'subscription.updatedDate' },
1706
+ { path: 'subscription.startDate' },
1707
+ { path: 'subscription.endDate' },
1708
+ { path: 'subscription.billingStatus.nextBillingDate' },
1709
+ { path: 'subscription.billingStatus.previousBillingDate' },
1710
+ {
1711
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1712
+ },
1713
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
1714
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
1715
+ {
1716
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
1717
+ },
1718
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
1719
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
1720
+ { path: 'subscription.pauseInfo.startDate' },
1721
+ { path: 'subscription.pauseInfo.resumeDate' },
1722
+ { path: 'subscription.cancellationInfo.cancellationDate' },
1723
+ {
1724
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
1725
+ },
1726
+ ],
1727
+ },
1728
+ ]),
1729
+ };
1730
+ return metadata;
1731
+ }
1732
+ return __customerGetSubscription;
1733
+ }
1734
+ /** Identity must be a site member and customer subscription belongs to */
1735
+ export function customerCancelSubscription(payload) {
1736
+ function __customerCancelSubscription({ host }) {
1737
+ const metadata = {
1738
+ entityFqdn: 'wix.billing.v1.subscription',
1739
+ method: 'POST',
1740
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CancelSubscription',
1741
+ packageName: PACKAGE_NAME,
1742
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl({
1743
+ protoPath: '/v1/customer_subscriptions/{id}/cancel',
1744
+ data: payload,
1745
+ host,
1746
+ }),
1747
+ data: payload,
1748
+ transformResponse: (payload) => transformPaths(payload, [
1749
+ {
1750
+ transformFn: transformRESTTimestampToSDKTimestamp,
1751
+ paths: [
1752
+ { path: 'subscription.createdDate' },
1753
+ { path: 'subscription.updatedDate' },
1754
+ { path: 'subscription.startDate' },
1755
+ { path: 'subscription.endDate' },
1756
+ { path: 'subscription.billingStatus.nextBillingDate' },
1757
+ { path: 'subscription.billingStatus.previousBillingDate' },
1758
+ {
1759
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1760
+ },
1761
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
1762
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
1763
+ {
1764
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
1765
+ },
1766
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
1767
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
1768
+ { path: 'subscription.pauseInfo.startDate' },
1769
+ { path: 'subscription.pauseInfo.resumeDate' },
1770
+ { path: 'subscription.cancellationInfo.cancellationDate' },
1771
+ {
1772
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
1773
+ },
1774
+ ],
1775
+ },
1776
+ ]),
1777
+ };
1778
+ return metadata;
1779
+ }
1780
+ return __customerCancelSubscription;
1781
+ }
1782
+ /** Identity must be a site member and customer subscription belongs to */
1783
+ export function customerTurnOnSubscriptionAutoRenewal(payload) {
1784
+ function __customerTurnOnSubscriptionAutoRenewal({ host }) {
1785
+ const metadata = {
1786
+ entityFqdn: 'wix.billing.v1.subscription',
1787
+ method: 'POST',
1788
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.TurnOnSubscriptionAutoRenewal',
1789
+ packageName: PACKAGE_NAME,
1790
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl({
1791
+ protoPath: '/v1/customer_subscriptions/{id}/turn_on_auto_renewal',
1792
+ data: payload,
1793
+ host,
1794
+ }),
1795
+ data: payload,
1796
+ transformResponse: (payload) => transformPaths(payload, [
1797
+ {
1798
+ transformFn: transformRESTTimestampToSDKTimestamp,
1799
+ paths: [
1800
+ { path: 'subscription.createdDate' },
1801
+ { path: 'subscription.updatedDate' },
1802
+ { path: 'subscription.startDate' },
1803
+ { path: 'subscription.endDate' },
1804
+ { path: 'subscription.billingStatus.nextBillingDate' },
1805
+ { path: 'subscription.billingStatus.previousBillingDate' },
1806
+ {
1807
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1808
+ },
1809
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
1810
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
1811
+ {
1812
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
1813
+ },
1814
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
1815
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
1816
+ { path: 'subscription.pauseInfo.startDate' },
1817
+ { path: 'subscription.pauseInfo.resumeDate' },
1818
+ { path: 'subscription.cancellationInfo.cancellationDate' },
1819
+ {
1820
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
1821
+ },
1822
+ ],
1823
+ },
1824
+ ]),
1825
+ };
1826
+ return metadata;
1827
+ }
1828
+ return __customerTurnOnSubscriptionAutoRenewal;
1829
+ }
1830
+ /** Identity must be a site member and customer subscription belongs to */
1831
+ export function customerTurnOffSubscriptionAutoRenewal(payload) {
1832
+ function __customerTurnOffSubscriptionAutoRenewal({ host }) {
1833
+ const metadata = {
1834
+ entityFqdn: 'wix.billing.v1.subscription',
1835
+ method: 'POST',
1836
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.TurnOffSubscriptionAutoRenewal',
1837
+ packageName: PACKAGE_NAME,
1838
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl({
1839
+ protoPath: '/v1/customer_subscriptions/{id}/turn_off_auto_renewal',
1840
+ data: payload,
1841
+ host,
1842
+ }),
1843
+ data: payload,
1844
+ transformResponse: (payload) => transformPaths(payload, [
1845
+ {
1846
+ transformFn: transformRESTTimestampToSDKTimestamp,
1847
+ paths: [
1848
+ { path: 'subscription.createdDate' },
1849
+ { path: 'subscription.updatedDate' },
1850
+ { path: 'subscription.startDate' },
1851
+ { path: 'subscription.endDate' },
1852
+ { path: 'subscription.billingStatus.nextBillingDate' },
1853
+ { path: 'subscription.billingStatus.previousBillingDate' },
1854
+ {
1855
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1856
+ },
1857
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
1858
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
1859
+ {
1860
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
1861
+ },
1862
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
1863
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
1864
+ { path: 'subscription.pauseInfo.startDate' },
1865
+ { path: 'subscription.pauseInfo.resumeDate' },
1866
+ { path: 'subscription.cancellationInfo.cancellationDate' },
1867
+ {
1868
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
1869
+ },
1870
+ ],
1871
+ },
1872
+ ]),
1873
+ };
1874
+ return metadata;
1875
+ }
1876
+ return __customerTurnOffSubscriptionAutoRenewal;
1877
+ }
1878
+ export function customerExtendSubscription(payload) {
1879
+ function __customerExtendSubscription({ host }) {
1880
+ const metadata = {
1881
+ entityFqdn: 'wix.billing.v1.subscription',
1882
+ method: 'PATCH',
1883
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.ExtendSubscription',
1884
+ packageName: PACKAGE_NAME,
1885
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl({
1886
+ protoPath: '/v1/customer_subscriptions/{id}/extend',
1887
+ data: payload,
1888
+ host,
1889
+ }),
1890
+ data: payload,
1891
+ transformResponse: (payload) => transformPaths(payload, [
1892
+ {
1893
+ transformFn: transformRESTTimestampToSDKTimestamp,
1894
+ paths: [
1895
+ { path: 'subscription.createdDate' },
1896
+ { path: 'subscription.updatedDate' },
1897
+ { path: 'subscription.startDate' },
1898
+ { path: 'subscription.endDate' },
1899
+ { path: 'subscription.billingStatus.nextBillingDate' },
1900
+ { path: 'subscription.billingStatus.previousBillingDate' },
1901
+ {
1902
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1903
+ },
1904
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
1905
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
1906
+ {
1907
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
1908
+ },
1909
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
1910
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
1911
+ { path: 'subscription.pauseInfo.startDate' },
1912
+ { path: 'subscription.pauseInfo.resumeDate' },
1913
+ { path: 'subscription.cancellationInfo.cancellationDate' },
1914
+ {
1915
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
1916
+ },
1917
+ ],
1918
+ },
1919
+ ]),
1920
+ };
1921
+ return metadata;
1922
+ }
1923
+ return __customerExtendSubscription;
1924
+ }
1925
+ /** identity must be a site member */
1926
+ export function customerQuerySubscriptions(payload) {
1927
+ function __customerQuerySubscriptions({ host }) {
1928
+ const metadata = {
1929
+ entityFqdn: 'wix.billing.v1.subscription',
1930
+ method: 'POST',
1931
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.QuerySubscriptions',
1932
+ packageName: PACKAGE_NAME,
1933
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl({ protoPath: '/v1/customer_subscriptions/query', data: payload, host }),
1934
+ data: payload,
1935
+ transformResponse: (payload) => transformPaths(payload, [
1936
+ {
1937
+ transformFn: transformRESTTimestampToSDKTimestamp,
1938
+ paths: [
1939
+ { path: 'subscriptions.createdDate' },
1940
+ { path: 'subscriptions.updatedDate' },
1941
+ { path: 'subscriptions.startDate' },
1942
+ { path: 'subscriptions.endDate' },
1943
+ { path: 'subscriptions.billingStatus.nextBillingDate' },
1944
+ { path: 'subscriptions.billingStatus.previousBillingDate' },
1945
+ {
1946
+ path: 'subscriptions.billingStatus.latestPaymentData.initialFailedPaymentDate',
1947
+ },
1948
+ { path: 'subscriptions.billingStatus.freeTrialData.startDate' },
1949
+ { path: 'subscriptions.billingStatus.freeTrialData.endDate' },
1950
+ {
1951
+ path: 'subscriptions.billingStatus.updateBillingDateData.paidUntil',
1952
+ },
1953
+ { path: 'subscriptions.billingStatus.gracePeriodData.startDate' },
1954
+ { path: 'subscriptions.billingStatus.gracePeriodData.endDate' },
1955
+ { path: 'subscriptions.pauseInfo.startDate' },
1956
+ { path: 'subscriptions.pauseInfo.resumeDate' },
1957
+ { path: 'subscriptions.cancellationInfo.cancellationDate' },
1958
+ {
1959
+ path: 'subscriptions.specificDatePendingUpdateData.executionDate',
1960
+ },
1961
+ ],
1962
+ },
1963
+ ]),
1964
+ };
1965
+ return metadata;
1966
+ }
1967
+ return __customerQuerySubscriptions;
1968
+ }
1969
+ /**
1970
+ * Update subscription's payment method.
1971
+ * Supported only for recurring subscriptions or one time subscriptions during free trial.
1972
+ */
1973
+ export function customerUpdateSubscriptionPaymentMethod(payload) {
1974
+ function __customerUpdateSubscriptionPaymentMethod({ host }) {
1975
+ const metadata = {
1976
+ entityFqdn: 'wix.billing.v1.subscription',
1977
+ method: 'PATCH',
1978
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.UpdateSubscriptionPaymentMethod',
1979
+ packageName: PACKAGE_NAME,
1980
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl({
1981
+ protoPath: '/v1/customer_subscriptions/{id}/payment_method',
1982
+ data: payload,
1983
+ host,
1984
+ }),
1985
+ data: payload,
1986
+ transformResponse: (payload) => transformPaths(payload, [
1987
+ {
1988
+ transformFn: transformRESTTimestampToSDKTimestamp,
1989
+ paths: [
1990
+ { path: 'subscription.createdDate' },
1991
+ { path: 'subscription.updatedDate' },
1992
+ { path: 'subscription.startDate' },
1993
+ { path: 'subscription.endDate' },
1994
+ { path: 'subscription.billingStatus.nextBillingDate' },
1995
+ { path: 'subscription.billingStatus.previousBillingDate' },
1996
+ {
1997
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
1998
+ },
1999
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2000
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2001
+ {
2002
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2003
+ },
2004
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2005
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2006
+ { path: 'subscription.pauseInfo.startDate' },
2007
+ { path: 'subscription.pauseInfo.resumeDate' },
2008
+ { path: 'subscription.cancellationInfo.cancellationDate' },
2009
+ {
2010
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
2011
+ },
2012
+ ],
2013
+ },
2014
+ ]),
2015
+ };
2016
+ return metadata;
2017
+ }
2018
+ return __customerUpdateSubscriptionPaymentMethod;
2019
+ }
2020
+ export function customerAllowedActions(payload) {
2021
+ function __customerAllowedActions({ host }) {
2022
+ const metadata = {
2023
+ entityFqdn: 'wix.billing.v1.subscription',
2024
+ method: 'GET',
2025
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.AllowedActions',
2026
+ packageName: PACKAGE_NAME,
2027
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl({
2028
+ protoPath: '/v1/customer_subscriptions/{id}/allowed_actions',
2029
+ data: payload,
2030
+ host,
2031
+ }),
2032
+ params: toURLSearchParams(payload),
2033
+ };
2034
+ return metadata;
2035
+ }
2036
+ return __customerAllowedActions;
2037
+ }
2038
+ /** List future subscriptions charges. */
2039
+ export function customerListUpcomingCharges(payload) {
2040
+ function __customerListUpcomingCharges({ host }) {
2041
+ const metadata = {
2042
+ entityFqdn: 'wix.billing.v1.subscription',
2043
+ method: 'GET',
2044
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.ListUpcomingCharges',
2045
+ packageName: PACKAGE_NAME,
2046
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl({
2047
+ protoPath: '/v1/customer_subscriptions/{id}/upcoming_charges',
2048
+ data: payload,
2049
+ host,
2050
+ }),
2051
+ params: toURLSearchParams(payload),
2052
+ transformResponse: (payload) => transformPaths(payload, [
2053
+ {
2054
+ transformFn: transformRESTTimestampToSDKTimestamp,
2055
+ paths: [{ path: 'upcomingCharge.billingDate' }],
2056
+ },
2057
+ ]),
2058
+ };
2059
+ return metadata;
2060
+ }
2061
+ return __customerListUpcomingCharges;
2062
+ }
2063
+ /** Creates auto-charge order that can be paid by customer */
2064
+ export function customerInitiatePaymentMethodSetup(payload) {
2065
+ function __customerInitiatePaymentMethodSetup({ host }) {
2066
+ const metadata = {
2067
+ entityFqdn: 'wix.billing.v1.subscription',
2068
+ method: 'POST',
2069
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.InitiatePaymentMethodSetup',
2070
+ packageName: PACKAGE_NAME,
2071
+ url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl({
2072
+ protoPath: '/v1/customer_subscriptions/{id}/payment_method_setup',
2073
+ data: payload,
2074
+ host,
2075
+ }),
2076
+ data: payload,
2077
+ };
2078
+ return metadata;
2079
+ }
2080
+ return __customerInitiatePaymentMethodSetup;
2081
+ }
2082
+ /** Returns a single subscription by its id */
2083
+ export function getSubscription(payload) {
2084
+ function __getSubscription({ host }) {
2085
+ const metadata = {
2086
+ entityFqdn: 'wix.billing.v1.subscription',
2087
+ method: 'GET',
2088
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.GetSubscription',
2089
+ packageName: PACKAGE_NAME,
2090
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2091
+ protoPath: '/v1/subscriptions/{id}',
2092
+ data: payload,
2093
+ host,
2094
+ }),
2095
+ params: toURLSearchParams(payload),
2096
+ transformResponse: (payload) => transformPaths(payload, [
2097
+ {
2098
+ transformFn: transformRESTTimestampToSDKTimestamp,
2099
+ paths: [
2100
+ { path: 'subscription.createdDate' },
2101
+ { path: 'subscription.updatedDate' },
2102
+ { path: 'subscription.startDate' },
2103
+ { path: 'subscription.endDate' },
2104
+ { path: 'subscription.billingStatus.nextBillingDate' },
2105
+ { path: 'subscription.billingStatus.previousBillingDate' },
2106
+ {
2107
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
2108
+ },
2109
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2110
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2111
+ {
2112
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2113
+ },
2114
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2115
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2116
+ { path: 'subscription.pauseInfo.startDate' },
2117
+ { path: 'subscription.pauseInfo.resumeDate' },
2118
+ { path: 'subscription.cancellationInfo.cancellationDate' },
2119
+ {
2120
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
2121
+ },
2122
+ ],
2123
+ },
2124
+ ]),
2125
+ };
2126
+ return metadata;
2127
+ }
2128
+ return __getSubscription;
2129
+ }
2130
+ /**
2131
+ * Update subscription's payment method.
2132
+ * Supported only for recurring subscriptions or one time subscriptions during free trial.
2133
+ */
2134
+ export function updateSubscriptionPaymentMethod(payload) {
2135
+ function __updateSubscriptionPaymentMethod({ host }) {
2136
+ const metadata = {
2137
+ entityFqdn: 'wix.billing.v1.subscription',
2138
+ method: 'PATCH',
2139
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.UpdateSubscriptionPaymentMethod',
2140
+ packageName: PACKAGE_NAME,
2141
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2142
+ protoPath: '/v1/subscriptions/{id}/payment_method',
2143
+ data: payload,
2144
+ host,
2145
+ }),
2146
+ data: payload,
2147
+ transformResponse: (payload) => transformPaths(payload, [
2148
+ {
2149
+ transformFn: transformRESTTimestampToSDKTimestamp,
2150
+ paths: [
2151
+ { path: 'subscription.createdDate' },
2152
+ { path: 'subscription.updatedDate' },
2153
+ { path: 'subscription.startDate' },
2154
+ { path: 'subscription.endDate' },
2155
+ { path: 'subscription.billingStatus.nextBillingDate' },
2156
+ { path: 'subscription.billingStatus.previousBillingDate' },
2157
+ {
2158
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
2159
+ },
2160
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2161
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2162
+ {
2163
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2164
+ },
2165
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2166
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2167
+ { path: 'subscription.pauseInfo.startDate' },
2168
+ { path: 'subscription.pauseInfo.resumeDate' },
2169
+ { path: 'subscription.cancellationInfo.cancellationDate' },
2170
+ {
2171
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
2172
+ },
2173
+ ],
2174
+ },
2175
+ ]),
2176
+ };
2177
+ return metadata;
2178
+ }
2179
+ return __updateSubscriptionPaymentMethod;
2180
+ }
2181
+ /**
2182
+ * Updates the next billing date for a subscription.
2183
+ *
2184
+ *
2185
+ * Updating the billing date may add a proration charge or credit to the next
2186
+ * invoice. The customer must pay more in case you extend the current billing
2187
+ * cycle. They pay less in case you shorten the current billing cycle. You can
2188
+ * choose whether BASS automatically calculates the proration amount based on
2189
+ * the number of days added to or removed from the current billing cycle.
2190
+ * Alternatively, you can pass a proration amount based on your own custom
2191
+ * calculation. The custom proration amount can't exceed the total of the
2192
+ * current billing cycle.
2193
+ */
2194
+ export function updateSubscriptionBillingDate(payload) {
2195
+ function __updateSubscriptionBillingDate({ host }) {
2196
+ const serializedData = transformPaths(payload, [
2197
+ {
2198
+ transformFn: transformSDKTimestampToRESTTimestamp,
2199
+ paths: [{ path: 'billingDate' }],
2200
+ },
2201
+ ]);
2202
+ const metadata = {
2203
+ entityFqdn: 'wix.billing.v1.subscription',
2204
+ method: 'PATCH',
2205
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.UpdateSubscriptionBillingDate',
2206
+ packageName: PACKAGE_NAME,
2207
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2208
+ protoPath: '/v1/subscriptions/{id}/update-billing-date',
2209
+ data: serializedData,
2210
+ host,
2211
+ }),
2212
+ data: serializedData,
2213
+ transformResponse: (payload) => transformPaths(payload, [
2214
+ {
2215
+ transformFn: transformRESTTimestampToSDKTimestamp,
2216
+ paths: [
2217
+ { path: 'subscription.createdDate' },
2218
+ { path: 'subscription.updatedDate' },
2219
+ { path: 'subscription.startDate' },
2220
+ { path: 'subscription.endDate' },
2221
+ { path: 'subscription.billingStatus.nextBillingDate' },
2222
+ { path: 'subscription.billingStatus.previousBillingDate' },
2223
+ {
2224
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
2225
+ },
2226
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2227
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2228
+ {
2229
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2230
+ },
2231
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2232
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2233
+ { path: 'subscription.pauseInfo.startDate' },
2234
+ { path: 'subscription.pauseInfo.resumeDate' },
2235
+ { path: 'subscription.cancellationInfo.cancellationDate' },
2236
+ {
2237
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
2238
+ },
2239
+ ],
2240
+ },
2241
+ ]),
2242
+ };
2243
+ return metadata;
2244
+ }
2245
+ return __updateSubscriptionBillingDate;
2246
+ }
2247
+ /**
2248
+ * Cancels subscription immediately. Can be canceled by member if subscription policy allows it
2249
+ * Only PENDING, ACTIVE or PAUSED subscriptions can be canceled
2250
+ */
2251
+ export function cancelSubscription(payload) {
2252
+ function __cancelSubscription({ host }) {
2253
+ const metadata = {
2254
+ entityFqdn: 'wix.billing.v1.subscription',
2255
+ method: 'POST',
2256
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.CancelSubscription',
2257
+ packageName: PACKAGE_NAME,
2258
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2259
+ protoPath: '/v1/subscriptions/{id}/cancel',
2260
+ data: payload,
2261
+ host,
2262
+ }),
2263
+ data: payload,
2264
+ transformResponse: (payload) => transformPaths(payload, [
2265
+ {
2266
+ transformFn: transformRESTTimestampToSDKTimestamp,
2267
+ paths: [
2268
+ { path: 'subscription.createdDate' },
2269
+ { path: 'subscription.updatedDate' },
2270
+ { path: 'subscription.startDate' },
2271
+ { path: 'subscription.endDate' },
2272
+ { path: 'subscription.billingStatus.nextBillingDate' },
2273
+ { path: 'subscription.billingStatus.previousBillingDate' },
2274
+ {
2275
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
2276
+ },
2277
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2278
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2279
+ {
2280
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2281
+ },
2282
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2283
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2284
+ { path: 'subscription.pauseInfo.startDate' },
2285
+ { path: 'subscription.pauseInfo.resumeDate' },
2286
+ { path: 'subscription.cancellationInfo.cancellationDate' },
2287
+ {
2288
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
2289
+ },
2290
+ ],
2291
+ },
2292
+ ]),
2293
+ };
2294
+ return metadata;
2295
+ }
2296
+ return __cancelSubscription;
2297
+ }
2298
+ /** Pauses subscription now or in future. Possible to pause also payments schedule. */
2299
+ export function pauseSubscription(payload) {
2300
+ function __pauseSubscription({ host }) {
2301
+ const serializedData = transformPaths(payload, [
2302
+ {
2303
+ transformFn: transformSDKTimestampToRESTTimestamp,
2304
+ paths: [
2305
+ { path: 'pauseAtSchedule.specificDate' },
2306
+ { path: 'autoResumeAtSchedule.specificDate' },
2307
+ ],
2308
+ },
2309
+ ]);
2310
+ const metadata = {
2311
+ entityFqdn: 'wix.billing.v1.subscription',
2312
+ method: 'POST',
2313
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.PauseSubscription',
2314
+ packageName: PACKAGE_NAME,
2315
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2316
+ protoPath: '/v1/subscriptions/{id}/pause',
2317
+ data: serializedData,
2318
+ host,
2319
+ }),
2320
+ data: serializedData,
2321
+ transformResponse: (payload) => transformPaths(payload, [
2322
+ {
2323
+ transformFn: transformRESTTimestampToSDKTimestamp,
2324
+ paths: [
2325
+ { path: 'subscription.createdDate' },
2326
+ { path: 'subscription.updatedDate' },
2327
+ { path: 'subscription.startDate' },
2328
+ { path: 'subscription.endDate' },
2329
+ { path: 'subscription.billingStatus.nextBillingDate' },
2330
+ { path: 'subscription.billingStatus.previousBillingDate' },
2331
+ {
2332
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
2333
+ },
2334
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2335
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2336
+ {
2337
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2338
+ },
2339
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2340
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2341
+ { path: 'subscription.pauseInfo.startDate' },
2342
+ { path: 'subscription.pauseInfo.resumeDate' },
2343
+ { path: 'subscription.cancellationInfo.cancellationDate' },
2344
+ {
2345
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
2346
+ },
2347
+ ],
2348
+ },
2349
+ ]),
2350
+ };
2351
+ return metadata;
2352
+ }
2353
+ return __pauseSubscription;
2354
+ }
2355
+ /** Resumes paused subscription now or in future. */
2356
+ export function resumeSubscription(payload) {
2357
+ function __resumeSubscription({ host }) {
2358
+ const serializedData = transformPaths(payload, [
2359
+ {
2360
+ transformFn: transformSDKTimestampToRESTTimestamp,
2361
+ paths: [{ path: 'resumeAtSchedule.specificDate' }],
2362
+ },
2363
+ ]);
2364
+ const metadata = {
2365
+ entityFqdn: 'wix.billing.v1.subscription',
2366
+ method: 'POST',
2367
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.ResumeSubscription',
2368
+ packageName: PACKAGE_NAME,
2369
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2370
+ protoPath: '/v1/subscriptions/{id}/resume',
2371
+ data: serializedData,
2372
+ host,
2373
+ }),
2374
+ data: serializedData,
2375
+ transformResponse: (payload) => transformPaths(payload, [
2376
+ {
2377
+ transformFn: transformRESTTimestampToSDKTimestamp,
2378
+ paths: [
2379
+ { path: 'subscription.createdDate' },
2380
+ { path: 'subscription.updatedDate' },
2381
+ { path: 'subscription.startDate' },
2382
+ { path: 'subscription.endDate' },
2383
+ { path: 'subscription.billingStatus.nextBillingDate' },
2384
+ { path: 'subscription.billingStatus.previousBillingDate' },
2385
+ {
2386
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
2387
+ },
2388
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2389
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2390
+ {
2391
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2392
+ },
2393
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2394
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2395
+ { path: 'subscription.pauseInfo.startDate' },
2396
+ { path: 'subscription.pauseInfo.resumeDate' },
2397
+ { path: 'subscription.cancellationInfo.cancellationDate' },
2398
+ {
2399
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
2400
+ },
2401
+ ],
2402
+ },
2403
+ ]),
2404
+ };
2405
+ return metadata;
2406
+ }
2407
+ return __resumeSubscription;
2408
+ }
2409
+ /**
2410
+ * Lists subscriptions based on specified filters.
2411
+ * By default non-draft subscriptions returned.
2412
+ */
2413
+ export function querySubscriptions(payload) {
2414
+ function __querySubscriptions({ host }) {
2415
+ const metadata = {
2416
+ entityFqdn: 'wix.billing.v1.subscription',
2417
+ method: 'POST',
2418
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.QuerySubscriptions',
2419
+ packageName: PACKAGE_NAME,
2420
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2421
+ protoPath: '/v1/subscriptions/query',
2422
+ data: payload,
2423
+ host,
2424
+ }),
2425
+ data: payload,
2426
+ transformResponse: (payload) => transformPaths(payload, [
2427
+ {
2428
+ transformFn: transformRESTTimestampToSDKTimestamp,
2429
+ paths: [
2430
+ { path: 'subscriptions.createdDate' },
2431
+ { path: 'subscriptions.updatedDate' },
2432
+ { path: 'subscriptions.startDate' },
2433
+ { path: 'subscriptions.endDate' },
2434
+ { path: 'subscriptions.billingStatus.nextBillingDate' },
2435
+ { path: 'subscriptions.billingStatus.previousBillingDate' },
2436
+ {
2437
+ path: 'subscriptions.billingStatus.latestPaymentData.initialFailedPaymentDate',
2438
+ },
2439
+ { path: 'subscriptions.billingStatus.freeTrialData.startDate' },
2440
+ { path: 'subscriptions.billingStatus.freeTrialData.endDate' },
2441
+ {
2442
+ path: 'subscriptions.billingStatus.updateBillingDateData.paidUntil',
2443
+ },
2444
+ { path: 'subscriptions.billingStatus.gracePeriodData.startDate' },
2445
+ { path: 'subscriptions.billingStatus.gracePeriodData.endDate' },
2446
+ { path: 'subscriptions.pauseInfo.startDate' },
2447
+ { path: 'subscriptions.pauseInfo.resumeDate' },
2448
+ { path: 'subscriptions.cancellationInfo.cancellationDate' },
2449
+ {
2450
+ path: 'subscriptions.specificDatePendingUpdateData.executionDate',
2451
+ },
2452
+ ],
2453
+ },
2454
+ ]),
2455
+ };
2456
+ return metadata;
2457
+ }
2458
+ return __querySubscriptions;
2459
+ }
2460
+ export function searchSubscriptions(payload) {
2461
+ function __searchSubscriptions({ host }) {
2462
+ const metadata = {
2463
+ entityFqdn: 'wix.billing.v1.subscription',
2464
+ method: 'POST',
2465
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.SearchSubscriptions',
2466
+ packageName: PACKAGE_NAME,
2467
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2468
+ protoPath: '/v1/subscriptions/search',
2469
+ data: payload,
2470
+ host,
2471
+ }),
2472
+ data: payload,
2473
+ transformResponse: (payload) => transformPaths(payload, [
2474
+ {
2475
+ transformFn: transformRESTTimestampToSDKTimestamp,
2476
+ paths: [
2477
+ { path: 'subscriptions.createdDate' },
2478
+ { path: 'subscriptions.updatedDate' },
2479
+ { path: 'subscriptions.startDate' },
2480
+ { path: 'subscriptions.endDate' },
2481
+ { path: 'subscriptions.billingStatus.nextBillingDate' },
2482
+ { path: 'subscriptions.billingStatus.previousBillingDate' },
2483
+ {
2484
+ path: 'subscriptions.billingStatus.latestPaymentData.initialFailedPaymentDate',
2485
+ },
2486
+ { path: 'subscriptions.billingStatus.freeTrialData.startDate' },
2487
+ { path: 'subscriptions.billingStatus.freeTrialData.endDate' },
2488
+ {
2489
+ path: 'subscriptions.billingStatus.updateBillingDateData.paidUntil',
2490
+ },
2491
+ { path: 'subscriptions.billingStatus.gracePeriodData.startDate' },
2492
+ { path: 'subscriptions.billingStatus.gracePeriodData.endDate' },
2493
+ { path: 'subscriptions.pauseInfo.startDate' },
2494
+ { path: 'subscriptions.pauseInfo.resumeDate' },
2495
+ { path: 'subscriptions.cancellationInfo.cancellationDate' },
2496
+ {
2497
+ path: 'subscriptions.specificDatePendingUpdateData.executionDate',
2498
+ },
2499
+ ],
2500
+ },
2501
+ ]),
2502
+ };
2503
+ return metadata;
2504
+ }
2505
+ return __searchSubscriptions;
2506
+ }
2507
+ /**
2508
+ * Counts subscriptions given the provided filters. Returns the total number
2509
+ * of subscriptions matching the filters and a count per status.
2510
+ *
2511
+ *
2512
+ * You can either pass a list of statuses or a `statusGroup`, which is a
2513
+ * pre-defined combination of statuses.
2514
+ *
2515
+ * If you don't provide any filters, all subscription statuses with the
2516
+ * exception of `"DRAFT"` are counted.
2517
+ *
2518
+ * You may also specify a `customerId` as filter. Then, only subscriptions for
2519
+ * this customer are counted. When providing a `customerId`, you must also
2520
+ * specify a `paymentMethodId`.
2521
+ */
2522
+ export function countSubscriptions(payload) {
2523
+ function __countSubscriptions({ host }) {
2524
+ const metadata = {
2525
+ entityFqdn: 'wix.billing.v1.subscription',
2526
+ method: 'POST',
2527
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.CountSubscriptions',
2528
+ packageName: PACKAGE_NAME,
2529
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2530
+ protoPath: '/v1/subscriptions/count',
2531
+ data: payload,
2532
+ host,
2533
+ }),
2534
+ data: payload,
2535
+ };
2536
+ return metadata;
2537
+ }
2538
+ return __countSubscriptions;
2539
+ }
2540
+ /**
2541
+ * Turn on auto-renew subscription in case auto-renew was turned off. The operation changes back cycle_auto_renew
2542
+ * to true, which will ensure subscription billing will continue. Also cancellation info holding information about
2543
+ * auto renew off will be cleared.
2544
+ */
2545
+ export function turnOnSubscriptionAutoRenewal(payload) {
2546
+ function __turnOnSubscriptionAutoRenewal({ host }) {
2547
+ const metadata = {
2548
+ entityFqdn: 'wix.billing.v1.subscription',
2549
+ method: 'PATCH',
2550
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.TurnOnSubscriptionAutoRenewal',
2551
+ packageName: PACKAGE_NAME,
2552
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2553
+ protoPath: '/v1/subscriptions/{id}/turn_on_auto_renewal',
2554
+ data: payload,
2555
+ host,
2556
+ }),
2557
+ data: payload,
2558
+ transformResponse: (payload) => transformPaths(payload, [
2559
+ {
2560
+ transformFn: transformRESTTimestampToSDKTimestamp,
2561
+ paths: [
2562
+ { path: 'subscription.createdDate' },
2563
+ { path: 'subscription.updatedDate' },
2564
+ { path: 'subscription.startDate' },
2565
+ { path: 'subscription.endDate' },
2566
+ { path: 'subscription.billingStatus.nextBillingDate' },
2567
+ { path: 'subscription.billingStatus.previousBillingDate' },
2568
+ {
2569
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
2570
+ },
2571
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2572
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2573
+ {
2574
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2575
+ },
2576
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2577
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2578
+ { path: 'subscription.pauseInfo.startDate' },
2579
+ { path: 'subscription.pauseInfo.resumeDate' },
2580
+ { path: 'subscription.cancellationInfo.cancellationDate' },
2581
+ {
2582
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
2583
+ },
2584
+ ],
2585
+ },
2586
+ ]),
2587
+ };
2588
+ return metadata;
2589
+ }
2590
+ return __turnOnSubscriptionAutoRenewal;
2591
+ }
2592
+ /**
2593
+ * Turn off auto-renew of subscription. At next billing date subscription will be canceled.
2594
+ * Billing settings flag cycle_auto_renew is set to false and information about this operation stored
2595
+ * in cancellation info for future usage in cancellation.
2596
+ */
2597
+ export function turnOffSubscriptionAutoRenewal(payload) {
2598
+ function __turnOffSubscriptionAutoRenewal({ host }) {
2599
+ const metadata = {
2600
+ entityFqdn: 'wix.billing.v1.subscription',
2601
+ method: 'PATCH',
2602
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.TurnOffSubscriptionAutoRenewal',
2603
+ packageName: PACKAGE_NAME,
2604
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2605
+ protoPath: '/v1/subscriptions/{id}/turn_off_auto_renewal',
2606
+ data: payload,
2607
+ host,
2608
+ }),
2609
+ data: payload,
2610
+ transformResponse: (payload) => transformPaths(payload, [
2611
+ {
2612
+ transformFn: transformRESTTimestampToSDKTimestamp,
2613
+ paths: [
2614
+ { path: 'subscription.createdDate' },
2615
+ { path: 'subscription.updatedDate' },
2616
+ { path: 'subscription.startDate' },
2617
+ { path: 'subscription.endDate' },
2618
+ { path: 'subscription.billingStatus.nextBillingDate' },
2619
+ { path: 'subscription.billingStatus.previousBillingDate' },
2620
+ {
2621
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
2622
+ },
2623
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2624
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2625
+ {
2626
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2627
+ },
2628
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2629
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2630
+ { path: 'subscription.pauseInfo.startDate' },
2631
+ { path: 'subscription.pauseInfo.resumeDate' },
2632
+ { path: 'subscription.cancellationInfo.cancellationDate' },
2633
+ {
2634
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
2635
+ },
2636
+ ],
2637
+ },
2638
+ ]),
2639
+ };
2640
+ return metadata;
2641
+ }
2642
+ return __turnOffSubscriptionAutoRenewal;
2643
+ }
2644
+ /**
2645
+ * Marks the last invoice as paid used for the following scenarios:
2646
+ * * Offline subscriptions.
2647
+ * * Online subscriptions during grace period. The operation will convert invoice to offline, remove grace period
2648
+ * and will send BillingCycleStarted event after invoice closing.
2649
+ * * Online one time payment subscription with total price of zero during purchase flow.
2650
+ * Activated event will be sent after invoice closing and subscription will be activated.
2651
+ * @deprecated It has been replaced with com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkInvoiceAsPaid(), and will be removed on 2025-09-30.
2652
+ */
2653
+ export function markLatestInvoiceAsPaid(payload) {
2654
+ function __markLatestInvoiceAsPaid({ host }) {
2655
+ const metadata = {
2656
+ entityFqdn: 'wix.billing.v1.subscription',
2657
+ method: 'POST',
2658
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkLatestInvoiceAsPaid',
2659
+ packageName: PACKAGE_NAME,
2660
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2661
+ protoPath: '/v1/subscriptions/{subscriptionId}/mark-latest-invoice-as-paid',
2662
+ data: payload,
2663
+ host,
2664
+ }),
2665
+ data: payload,
2666
+ transformResponse: (payload) => transformPaths(payload, [
2667
+ {
2668
+ transformFn: transformRESTTimestampToSDKTimestamp,
2669
+ paths: [
2670
+ { path: 'subscription.createdDate' },
2671
+ { path: 'subscription.updatedDate' },
2672
+ { path: 'subscription.startDate' },
2673
+ { path: 'subscription.endDate' },
2674
+ { path: 'subscription.billingStatus.nextBillingDate' },
2675
+ { path: 'subscription.billingStatus.previousBillingDate' },
2676
+ {
2677
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
2678
+ },
2679
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2680
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2681
+ {
2682
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2683
+ },
2684
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2685
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2686
+ { path: 'subscription.pauseInfo.startDate' },
2687
+ { path: 'subscription.pauseInfo.resumeDate' },
2688
+ { path: 'subscription.cancellationInfo.cancellationDate' },
2689
+ {
2690
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
2691
+ },
2692
+ ],
2693
+ },
2694
+ ]),
2695
+ };
2696
+ return metadata;
2697
+ }
2698
+ return __markLatestInvoiceAsPaid;
2699
+ }
2700
+ /**
2701
+ * Marks the invoice associated with the subscription in the specified cycle as paid.
2702
+ * If `paid_cycle` is left empty, the most recent invoice will be marked as paid.
2703
+ * If the invoice contains items other than subscription items, an error will be thrown.
2704
+ *
2705
+ * Marks the invoice as paid for the following scenarios:
2706
+ * 1. Offline subscriptions.
2707
+ * 2. Online subscriptions during the grace period.
2708
+ * This operation will convert the invoice to offline, remove the grace period,
2709
+ * and send a BillingCycleStarted event after the invoice is closed.
2710
+ * 3. Online one-time payment subscriptions with a total price of zero during the purchase flow.
2711
+ * An Activated event will be sent after the invoice is closed, and the subscription will be activated.
2712
+ * 4. For external subscriptions, where the payment occurs outside of BASS, an invoice is created and marked as paid
2713
+ */
2714
+ export function markInvoiceAsPaid(payload) {
2715
+ function __markInvoiceAsPaid({ host }) {
2716
+ const metadata = {
2717
+ entityFqdn: 'wix.billing.v1.subscription',
2718
+ method: 'POST',
2719
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkInvoiceAsPaid',
2720
+ packageName: PACKAGE_NAME,
2721
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2722
+ protoPath: '/v1/subscriptions/{subscriptionId}/mark-invoice-as-paid',
2723
+ data: payload,
2724
+ host,
2725
+ }),
2726
+ data: payload,
2727
+ transformResponse: (payload) => transformPaths(payload, [
2728
+ {
2729
+ transformFn: transformRESTTimestampToSDKTimestamp,
2730
+ paths: [
2731
+ { path: 'subscription.createdDate' },
2732
+ { path: 'subscription.updatedDate' },
2733
+ { path: 'subscription.startDate' },
2734
+ { path: 'subscription.endDate' },
2735
+ { path: 'subscription.billingStatus.nextBillingDate' },
2736
+ { path: 'subscription.billingStatus.previousBillingDate' },
2737
+ {
2738
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
2739
+ },
2740
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2741
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2742
+ {
2743
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2744
+ },
2745
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2746
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2747
+ { path: 'subscription.pauseInfo.startDate' },
2748
+ { path: 'subscription.pauseInfo.resumeDate' },
2749
+ { path: 'subscription.cancellationInfo.cancellationDate' },
2750
+ {
2751
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
2752
+ },
2753
+ ],
2754
+ },
2755
+ ]),
2756
+ };
2757
+ return metadata;
2758
+ }
2759
+ return __markInvoiceAsPaid;
2760
+ }
2761
+ /** Returns number of subscriptions in each state. */
2762
+ export function getSubscriptionsStats(payload) {
2763
+ function __getSubscriptionsStats({ host }) {
2764
+ const metadata = {
2765
+ entityFqdn: 'wix.billing.v1.subscription',
2766
+ method: 'GET',
2767
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.GetSubscriptionsStats',
2768
+ packageName: PACKAGE_NAME,
2769
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2770
+ protoPath: '/v1/subscriptions/stats',
2771
+ data: payload,
2772
+ host,
2773
+ }),
2774
+ params: toURLSearchParams(payload),
2775
+ };
2776
+ return metadata;
2777
+ }
2778
+ return __getSubscriptionsStats;
2779
+ }
2780
+ /** Extends subscription by moving end date with or without billing cycles addition. */
2781
+ export function extendSubscription(payload) {
2782
+ function __extendSubscription({ host }) {
2783
+ const metadata = {
2784
+ entityFqdn: 'wix.billing.v1.subscription',
2785
+ method: 'PATCH',
2786
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.ExtendSubscription',
2787
+ packageName: PACKAGE_NAME,
2788
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2789
+ protoPath: '/v1/subscriptions/{id}/extend',
2790
+ data: payload,
2791
+ host,
2792
+ }),
2793
+ data: payload,
2794
+ transformResponse: (payload) => transformPaths(payload, [
2795
+ {
2796
+ transformFn: transformRESTTimestampToSDKTimestamp,
2797
+ paths: [
2798
+ { path: 'subscription.createdDate' },
2799
+ { path: 'subscription.updatedDate' },
2800
+ { path: 'subscription.startDate' },
2801
+ { path: 'subscription.endDate' },
2802
+ { path: 'subscription.billingStatus.nextBillingDate' },
2803
+ { path: 'subscription.billingStatus.previousBillingDate' },
2804
+ {
2805
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
2806
+ },
2807
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2808
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2809
+ {
2810
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2811
+ },
2812
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2813
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2814
+ { path: 'subscription.pauseInfo.startDate' },
2815
+ { path: 'subscription.pauseInfo.resumeDate' },
2816
+ { path: 'subscription.cancellationInfo.cancellationDate' },
2817
+ {
2818
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
2819
+ },
2820
+ ],
2821
+ },
2822
+ ]),
2823
+ };
2824
+ return metadata;
2825
+ }
2826
+ return __extendSubscription;
2827
+ }
2828
+ export function allowedActions(payload) {
2829
+ function __allowedActions({ host }) {
2830
+ const metadata = {
2831
+ entityFqdn: 'wix.billing.v1.subscription',
2832
+ method: 'GET',
2833
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.AllowedActions',
2834
+ packageName: PACKAGE_NAME,
2835
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2836
+ protoPath: '/v1/subscriptions/{id}/allowed_actions',
2837
+ data: payload,
2838
+ host,
2839
+ }),
2840
+ params: toURLSearchParams(payload),
2841
+ };
2842
+ return metadata;
2843
+ }
2844
+ return __allowedActions;
2845
+ }
2846
+ /** List future subscriptions charges */
2847
+ export function listUpcomingCharges(payload) {
2848
+ function __listUpcomingCharges({ host }) {
2849
+ const serializedData = transformPaths(payload, [
2850
+ {
2851
+ transformFn: transformSDKTimestampToRESTTimestamp,
2852
+ paths: [{ path: 'nextBillingDate' }],
2853
+ },
2854
+ ]);
2855
+ const metadata = {
2856
+ entityFqdn: 'wix.billing.v1.subscription',
2857
+ method: 'GET',
2858
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.ListUpcomingCharges',
2859
+ packageName: PACKAGE_NAME,
2860
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2861
+ protoPath: '/v1/subscriptions/{subscriptionId}/upcoming_charges',
2862
+ data: serializedData,
2863
+ host,
2864
+ }),
2865
+ params: toURLSearchParams(serializedData),
2866
+ transformResponse: (payload) => transformPaths(payload, [
2867
+ {
2868
+ transformFn: transformRESTTimestampToSDKTimestamp,
2869
+ paths: [{ path: 'upcomingCharges.billingDate' }],
2870
+ },
2871
+ ]),
2872
+ };
2873
+ return metadata;
2874
+ }
2875
+ return __listUpcomingCharges;
2876
+ }
2877
+ /**
2878
+ * Retrieves the preview of subscription charges.
2879
+ * Returns all the charges applicable to a subscription based on the provided subscription information.
2880
+ * @deprecated It has been replaced with com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.PreviewSubscriptionsCharges(), and will be removed on 2025-06-30.
2881
+ */
2882
+ export function previewSubscriptionCharges(payload) {
2883
+ function __previewSubscriptionCharges({ host }) {
2884
+ const serializedData = transformPaths(payload, [
2885
+ {
2886
+ transformFn: transformSDKTimestampToRESTTimestamp,
2887
+ paths: [{ path: 'subscriptionInfo.startDate' }],
2888
+ },
2889
+ ]);
2890
+ const metadata = {
2891
+ entityFqdn: 'wix.billing.v1.subscription',
2892
+ method: 'GET',
2893
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.PreviewSubscriptionCharges',
2894
+ packageName: PACKAGE_NAME,
2895
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2896
+ protoPath: '/v1/subscriptions/preview_charges',
2897
+ data: serializedData,
2898
+ host,
2899
+ }),
2900
+ params: toURLSearchParams(serializedData),
2901
+ transformResponse: (payload) => transformPaths(payload, [
2902
+ {
2903
+ transformFn: transformRESTTimestampToSDKTimestamp,
2904
+ paths: [{ path: 'charges.cycleBillingDate' }],
2905
+ },
2906
+ ]),
2907
+ };
2908
+ return metadata;
2909
+ }
2910
+ return __previewSubscriptionCharges;
2911
+ }
2912
+ /**
2913
+ * Retrieves the preview of subscription charges for a bulk of subscriptions.
2914
+ * Returns all the charges applicable to all subscriptions, based on the provided subscriptions information.
2915
+ */
2916
+ export function previewSubscriptionsCharges(payload) {
2917
+ function __previewSubscriptionsCharges({ host }) {
2918
+ const serializedData = transformPaths(payload, [
2919
+ {
2920
+ transformFn: transformSDKTimestampToRESTTimestamp,
2921
+ paths: [{ path: 'subscriptionsBillingDetails.startDate' }],
2922
+ },
2923
+ ]);
2924
+ const metadata = {
2925
+ entityFqdn: 'wix.billing.v1.subscription',
2926
+ method: 'GET',
2927
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.PreviewSubscriptionsCharges',
2928
+ packageName: PACKAGE_NAME,
2929
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2930
+ protoPath: '/v1/subscriptions/preview-subscriptions-charges',
2931
+ data: serializedData,
2932
+ host,
2933
+ }),
2934
+ params: toURLSearchParams(serializedData),
2935
+ transformResponse: (payload) => transformPaths(payload, [
2936
+ {
2937
+ transformFn: transformRESTTimestampToSDKTimestamp,
2938
+ paths: [{ path: 'subscriptionsCharges.charges.cycleBillingDate' }],
2939
+ },
2940
+ ]),
2941
+ };
2942
+ return metadata;
2943
+ }
2944
+ return __previewSubscriptionsCharges;
2945
+ }
2946
+ /** Creates authorization invoice with Moto settings in order to create */
2947
+ export function initiatePaymentMethodSetup(payload) {
2948
+ function __initiatePaymentMethodSetup({ host }) {
2949
+ const metadata = {
2950
+ entityFqdn: 'wix.billing.v1.subscription',
2951
+ method: 'POST',
2952
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.InitiatePaymentMethodSetup',
2953
+ packageName: PACKAGE_NAME,
2954
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
2955
+ protoPath: '/v1/subscriptions/{id}/payment_method_setup',
2956
+ data: payload,
2957
+ host,
2958
+ }),
2959
+ data: payload,
2960
+ };
2961
+ return metadata;
2962
+ }
2963
+ return __initiatePaymentMethodSetup;
2964
+ }
2965
+ /** This used only for automation and permitted tenants (QA & testing) */
2966
+ export function payCycle(payload) {
2967
+ function __payCycle({ host }) {
2968
+ const metadata = {
2969
+ entityFqdn: 'wix.billing.v1.subscription',
2970
+ method: 'POST',
2971
+ methodFqn: 'com.wixpress.billing.subscriptions.api.v1.SubscriptionsBackOfficeService.PayCycle',
2972
+ packageName: PACKAGE_NAME,
2973
+ url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl({
2974
+ protoPath: '/v1/subscriptions-bo/{subscriptionId}/pay-cycle',
2975
+ data: payload,
2976
+ host,
2977
+ }),
2978
+ data: payload,
2979
+ transformResponse: (payload) => transformPaths(payload, [
2980
+ {
2981
+ transformFn: transformRESTTimestampToSDKTimestamp,
2982
+ paths: [
2983
+ { path: 'subscription.createdDate' },
2984
+ { path: 'subscription.updatedDate' },
2985
+ { path: 'subscription.startDate' },
2986
+ { path: 'subscription.endDate' },
2987
+ { path: 'subscription.billingStatus.nextBillingDate' },
2988
+ { path: 'subscription.billingStatus.previousBillingDate' },
2989
+ {
2990
+ path: 'subscription.billingStatus.latestPaymentData.initialFailedPaymentDate',
2991
+ },
2992
+ { path: 'subscription.billingStatus.freeTrialData.startDate' },
2993
+ { path: 'subscription.billingStatus.freeTrialData.endDate' },
2994
+ {
2995
+ path: 'subscription.billingStatus.updateBillingDateData.paidUntil',
2996
+ },
2997
+ { path: 'subscription.billingStatus.gracePeriodData.startDate' },
2998
+ { path: 'subscription.billingStatus.gracePeriodData.endDate' },
2999
+ { path: 'subscription.pauseInfo.startDate' },
3000
+ { path: 'subscription.pauseInfo.resumeDate' },
3001
+ { path: 'subscription.cancellationInfo.cancellationDate' },
3002
+ {
3003
+ path: 'subscription.specificDatePendingUpdateData.executionDate',
3004
+ },
3005
+ ],
3006
+ },
3007
+ ]),
3008
+ };
3009
+ return metadata;
3010
+ }
3011
+ return __payCycle;
3012
+ }
3013
+ //# sourceMappingURL=billing-v1-subscription-subscriptions.http.js.map