@wix/auto_sdk_subscription_subscriptions 1.0.7 → 1.0.9

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