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