@wix/auto_sdk_subscription_subscriptions 1.0.47 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +3 -11
  2. package/build/cjs/index.js +402 -142
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2020 -1771
  5. package/build/cjs/index.typings.js +338 -97
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1991 -1762
  8. package/build/cjs/meta.js +291 -92
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +3 -11
  11. package/build/es/index.mjs +396 -141
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +2020 -1771
  14. package/build/es/index.typings.mjs +332 -96
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +1991 -1762
  17. package/build/es/meta.mjs +285 -91
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +28 -10
  20. package/build/internal/cjs/index.typings.d.ts +1713 -1383
  21. package/build/internal/cjs/meta.d.ts +2124 -1783
  22. package/build/internal/es/index.d.mts +28 -10
  23. package/build/internal/es/index.typings.d.mts +1713 -1383
  24. package/build/internal/es/meta.d.mts +2124 -1783
  25. package/package.json +4 -4
  26. package/build/internal/cjs/index.js +0 -6659
  27. package/build/internal/cjs/index.js.map +0 -1
  28. package/build/internal/cjs/index.typings.js +0 -5629
  29. package/build/internal/cjs/index.typings.js.map +0 -1
  30. package/build/internal/cjs/meta.js +0 -4712
  31. package/build/internal/cjs/meta.js.map +0 -1
  32. package/build/internal/es/index.mjs +0 -6543
  33. package/build/internal/es/index.mjs.map +0 -1
  34. package/build/internal/es/index.typings.mjs +0 -5526
  35. package/build/internal/es/index.typings.mjs.map +0 -1
  36. package/build/internal/es/meta.mjs +0 -4606
  37. package/build/internal/es/meta.mjs.map +0 -1
@@ -1,4606 +0,0 @@
1
- // src/billing-v1-subscription-subscriptions.http.ts
2
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
- import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
4
- import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
5
- import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
6
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
7
- function resolveComWixpressBillingSubscriptionsApiV1SubscriptionHistoryServiceUrl(opts) {
8
- const domainToMappings = {
9
- "www._base_domain_": [
10
- {
11
- srcPath: "/_api/billing-subscriptions",
12
- destPath: ""
13
- }
14
- ],
15
- _: [
16
- {
17
- srcPath: "/_api/billing-subscriptions",
18
- destPath: ""
19
- }
20
- ],
21
- "*.dev.wix-code.com": [
22
- {
23
- srcPath: "/_api/billing-subscriptions",
24
- destPath: ""
25
- }
26
- ],
27
- "*.pub.wix-code.com": [
28
- {
29
- srcPath: "/_api/billing-subscriptions",
30
- destPath: ""
31
- }
32
- ],
33
- "manage._base_domain_": [
34
- {
35
- srcPath: "/_api/billing-subscriptions",
36
- destPath: ""
37
- }
38
- ],
39
- "payments.base44.com": [
40
- {
41
- srcPath: "/_api/billing-subscriptions",
42
- destPath: ""
43
- }
44
- ]
45
- };
46
- return resolveUrl(Object.assign(opts, { domainToMappings }));
47
- }
48
- function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl(opts) {
49
- const domainToMappings = {
50
- "www._base_domain_": [
51
- {
52
- srcPath: "/_api/billing-subscriptions",
53
- destPath: ""
54
- }
55
- ],
56
- _: [
57
- {
58
- srcPath: "/_api/billing-subscriptions",
59
- destPath: ""
60
- }
61
- ],
62
- "*.dev.wix-code.com": [
63
- {
64
- srcPath: "/_api/billing-subscriptions",
65
- destPath: ""
66
- }
67
- ],
68
- "*.pub.wix-code.com": [
69
- {
70
- srcPath: "/_api/billing-subscriptions",
71
- destPath: ""
72
- }
73
- ],
74
- "manage._base_domain_": [
75
- {
76
- srcPath: "/_api/billing-subscriptions",
77
- destPath: ""
78
- }
79
- ],
80
- "payments.base44.com": [
81
- {
82
- srcPath: "/_api/billing-subscriptions",
83
- destPath: ""
84
- }
85
- ]
86
- };
87
- return resolveUrl(Object.assign(opts, { domainToMappings }));
88
- }
89
- function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(opts) {
90
- const domainToMappings = {
91
- "www._base_domain_": [
92
- {
93
- srcPath: "/_api/billing-subscriptions",
94
- destPath: ""
95
- }
96
- ],
97
- _: [
98
- {
99
- srcPath: "/_api/billing-subscriptions",
100
- destPath: ""
101
- }
102
- ],
103
- "*.dev.wix-code.com": [
104
- {
105
- srcPath: "/_api/billing-subscriptions",
106
- destPath: ""
107
- }
108
- ],
109
- "*.pub.wix-code.com": [
110
- {
111
- srcPath: "/_api/billing-subscriptions",
112
- destPath: ""
113
- }
114
- ],
115
- "manage._base_domain_": [
116
- {
117
- srcPath: "/_api/billing-subscriptions",
118
- destPath: ""
119
- }
120
- ],
121
- "payments.base44.com": [
122
- {
123
- srcPath: "/_api/billing-subscriptions",
124
- destPath: ""
125
- }
126
- ]
127
- };
128
- return resolveUrl(Object.assign(opts, { domainToMappings }));
129
- }
130
- function resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(opts) {
131
- const domainToMappings = {
132
- "www._base_domain_": [
133
- {
134
- srcPath: "/_api/billing-subscriptions",
135
- destPath: ""
136
- }
137
- ],
138
- _: [
139
- {
140
- srcPath: "/_api/billing-subscriptions",
141
- destPath: ""
142
- }
143
- ],
144
- "*.dev.wix-code.com": [
145
- {
146
- srcPath: "/_api/billing-subscriptions",
147
- destPath: ""
148
- }
149
- ],
150
- "*.pub.wix-code.com": [
151
- {
152
- srcPath: "/_api/billing-subscriptions",
153
- destPath: ""
154
- }
155
- ],
156
- "manage._base_domain_": [
157
- {
158
- srcPath: "/_api/billing-subscriptions",
159
- destPath: ""
160
- }
161
- ],
162
- "payments.base44.com": [
163
- {
164
- srcPath: "/_api/billing-subscriptions",
165
- destPath: ""
166
- }
167
- ]
168
- };
169
- return resolveUrl(Object.assign(opts, { domainToMappings }));
170
- }
171
- var PACKAGE_NAME = "@wix/auto_sdk_subscription_subscriptions";
172
- function customerGetSubscription(payload) {
173
- function __customerGetSubscription({ host }) {
174
- const metadata = {
175
- entityFqdn: "wix.billing.v1.subscription",
176
- method: "GET",
177
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.GetSubscription",
178
- packageName: PACKAGE_NAME,
179
- migrationOptions: {
180
- optInTransformResponse: true
181
- },
182
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
183
- { protoPath: "/v1/customer_subscriptions/{id}", data: payload, host }
184
- ),
185
- params: toURLSearchParams(payload),
186
- transformResponse: (payload2) => transformPaths(payload2, [
187
- {
188
- transformFn: transformRESTTimestampToSDKTimestamp,
189
- paths: [
190
- { path: "subscription.createdDate" },
191
- { path: "subscription.updatedDate" },
192
- { path: "subscription.startDate" },
193
- { path: "subscription.endDate" },
194
- { path: "subscription.billingStatus.nextBillingDate" },
195
- { path: "subscription.billingStatus.previousBillingDate" },
196
- {
197
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
198
- },
199
- { path: "subscription.billingStatus.freeTrialData.startDate" },
200
- { path: "subscription.billingStatus.freeTrialData.endDate" },
201
- {
202
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
203
- },
204
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
205
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
206
- { path: "subscription.pauseInfo.startDate" },
207
- { path: "subscription.pauseInfo.resumeDate" },
208
- { path: "subscription.cancellationInfo.cancellationDate" },
209
- {
210
- path: "subscription.specificDatePendingUpdateData.executionDate"
211
- }
212
- ]
213
- }
214
- ])
215
- };
216
- return metadata;
217
- }
218
- return __customerGetSubscription;
219
- }
220
- function customerCancelSubscription(payload) {
221
- function __customerCancelSubscription({ host }) {
222
- const metadata = {
223
- entityFqdn: "wix.billing.v1.subscription",
224
- method: "POST",
225
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CancelSubscription",
226
- packageName: PACKAGE_NAME,
227
- migrationOptions: {
228
- optInTransformResponse: true
229
- },
230
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
231
- {
232
- protoPath: "/v1/customer_subscriptions/{id}/cancel",
233
- data: payload,
234
- host
235
- }
236
- ),
237
- data: payload,
238
- transformResponse: (payload2) => transformPaths(payload2, [
239
- {
240
- transformFn: transformRESTTimestampToSDKTimestamp,
241
- paths: [
242
- { path: "subscription.createdDate" },
243
- { path: "subscription.updatedDate" },
244
- { path: "subscription.startDate" },
245
- { path: "subscription.endDate" },
246
- { path: "subscription.billingStatus.nextBillingDate" },
247
- { path: "subscription.billingStatus.previousBillingDate" },
248
- {
249
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
250
- },
251
- { path: "subscription.billingStatus.freeTrialData.startDate" },
252
- { path: "subscription.billingStatus.freeTrialData.endDate" },
253
- {
254
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
255
- },
256
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
257
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
258
- { path: "subscription.pauseInfo.startDate" },
259
- { path: "subscription.pauseInfo.resumeDate" },
260
- { path: "subscription.cancellationInfo.cancellationDate" },
261
- {
262
- path: "subscription.specificDatePendingUpdateData.executionDate"
263
- }
264
- ]
265
- }
266
- ])
267
- };
268
- return metadata;
269
- }
270
- return __customerCancelSubscription;
271
- }
272
- function customerTurnOnSubscriptionAutoRenewal(payload) {
273
- function __customerTurnOnSubscriptionAutoRenewal({ host }) {
274
- const metadata = {
275
- entityFqdn: "wix.billing.v1.subscription",
276
- method: "POST",
277
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.TurnOnSubscriptionAutoRenewal",
278
- packageName: PACKAGE_NAME,
279
- migrationOptions: {
280
- optInTransformResponse: true
281
- },
282
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
283
- {
284
- protoPath: "/v1/customer_subscriptions/{id}/turn_on_auto_renewal",
285
- data: payload,
286
- host
287
- }
288
- ),
289
- data: payload,
290
- transformResponse: (payload2) => transformPaths(payload2, [
291
- {
292
- transformFn: transformRESTTimestampToSDKTimestamp,
293
- paths: [
294
- { path: "subscription.createdDate" },
295
- { path: "subscription.updatedDate" },
296
- { path: "subscription.startDate" },
297
- { path: "subscription.endDate" },
298
- { path: "subscription.billingStatus.nextBillingDate" },
299
- { path: "subscription.billingStatus.previousBillingDate" },
300
- {
301
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
302
- },
303
- { path: "subscription.billingStatus.freeTrialData.startDate" },
304
- { path: "subscription.billingStatus.freeTrialData.endDate" },
305
- {
306
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
307
- },
308
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
309
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
310
- { path: "subscription.pauseInfo.startDate" },
311
- { path: "subscription.pauseInfo.resumeDate" },
312
- { path: "subscription.cancellationInfo.cancellationDate" },
313
- {
314
- path: "subscription.specificDatePendingUpdateData.executionDate"
315
- }
316
- ]
317
- }
318
- ])
319
- };
320
- return metadata;
321
- }
322
- return __customerTurnOnSubscriptionAutoRenewal;
323
- }
324
- function customerTurnOffSubscriptionAutoRenewal(payload) {
325
- function __customerTurnOffSubscriptionAutoRenewal({ host }) {
326
- const metadata = {
327
- entityFqdn: "wix.billing.v1.subscription",
328
- method: "POST",
329
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.TurnOffSubscriptionAutoRenewal",
330
- packageName: PACKAGE_NAME,
331
- migrationOptions: {
332
- optInTransformResponse: true
333
- },
334
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
335
- {
336
- protoPath: "/v1/customer_subscriptions/{id}/turn_off_auto_renewal",
337
- data: payload,
338
- host
339
- }
340
- ),
341
- data: payload,
342
- transformResponse: (payload2) => transformPaths(payload2, [
343
- {
344
- transformFn: transformRESTTimestampToSDKTimestamp,
345
- paths: [
346
- { path: "subscription.createdDate" },
347
- { path: "subscription.updatedDate" },
348
- { path: "subscription.startDate" },
349
- { path: "subscription.endDate" },
350
- { path: "subscription.billingStatus.nextBillingDate" },
351
- { path: "subscription.billingStatus.previousBillingDate" },
352
- {
353
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
354
- },
355
- { path: "subscription.billingStatus.freeTrialData.startDate" },
356
- { path: "subscription.billingStatus.freeTrialData.endDate" },
357
- {
358
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
359
- },
360
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
361
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
362
- { path: "subscription.pauseInfo.startDate" },
363
- { path: "subscription.pauseInfo.resumeDate" },
364
- { path: "subscription.cancellationInfo.cancellationDate" },
365
- {
366
- path: "subscription.specificDatePendingUpdateData.executionDate"
367
- }
368
- ]
369
- }
370
- ])
371
- };
372
- return metadata;
373
- }
374
- return __customerTurnOffSubscriptionAutoRenewal;
375
- }
376
- function customerExtendSubscription(payload) {
377
- function __customerExtendSubscription({ host }) {
378
- const metadata = {
379
- entityFqdn: "wix.billing.v1.subscription",
380
- method: "PATCH",
381
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.ExtendSubscription",
382
- packageName: PACKAGE_NAME,
383
- migrationOptions: {
384
- optInTransformResponse: true
385
- },
386
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
387
- {
388
- protoPath: "/v1/customer_subscriptions/{id}/extend",
389
- data: payload,
390
- host
391
- }
392
- ),
393
- data: payload,
394
- transformResponse: (payload2) => transformPaths(payload2, [
395
- {
396
- transformFn: transformRESTTimestampToSDKTimestamp,
397
- paths: [
398
- { path: "subscription.createdDate" },
399
- { path: "subscription.updatedDate" },
400
- { path: "subscription.startDate" },
401
- { path: "subscription.endDate" },
402
- { path: "subscription.billingStatus.nextBillingDate" },
403
- { path: "subscription.billingStatus.previousBillingDate" },
404
- {
405
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
406
- },
407
- { path: "subscription.billingStatus.freeTrialData.startDate" },
408
- { path: "subscription.billingStatus.freeTrialData.endDate" },
409
- {
410
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
411
- },
412
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
413
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
414
- { path: "subscription.pauseInfo.startDate" },
415
- { path: "subscription.pauseInfo.resumeDate" },
416
- { path: "subscription.cancellationInfo.cancellationDate" },
417
- {
418
- path: "subscription.specificDatePendingUpdateData.executionDate"
419
- }
420
- ]
421
- }
422
- ])
423
- };
424
- return metadata;
425
- }
426
- return __customerExtendSubscription;
427
- }
428
- function customerQuerySubscriptions(payload) {
429
- function __customerQuerySubscriptions({ host }) {
430
- const metadata = {
431
- entityFqdn: "wix.billing.v1.subscription",
432
- method: "POST",
433
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.QuerySubscriptions",
434
- packageName: PACKAGE_NAME,
435
- migrationOptions: {
436
- optInTransformResponse: true
437
- },
438
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
439
- { protoPath: "/v1/customer_subscriptions/query", data: payload, host }
440
- ),
441
- data: payload,
442
- transformResponse: (payload2) => transformPaths(payload2, [
443
- {
444
- transformFn: transformRESTTimestampToSDKTimestamp,
445
- paths: [
446
- { path: "subscriptions.createdDate" },
447
- { path: "subscriptions.updatedDate" },
448
- { path: "subscriptions.startDate" },
449
- { path: "subscriptions.endDate" },
450
- { path: "subscriptions.billingStatus.nextBillingDate" },
451
- { path: "subscriptions.billingStatus.previousBillingDate" },
452
- {
453
- path: "subscriptions.billingStatus.latestPaymentData.initialFailedPaymentDate"
454
- },
455
- { path: "subscriptions.billingStatus.freeTrialData.startDate" },
456
- { path: "subscriptions.billingStatus.freeTrialData.endDate" },
457
- {
458
- path: "subscriptions.billingStatus.updateBillingDateData.paidUntil"
459
- },
460
- { path: "subscriptions.billingStatus.gracePeriodData.startDate" },
461
- { path: "subscriptions.billingStatus.gracePeriodData.endDate" },
462
- { path: "subscriptions.pauseInfo.startDate" },
463
- { path: "subscriptions.pauseInfo.resumeDate" },
464
- { path: "subscriptions.cancellationInfo.cancellationDate" },
465
- {
466
- path: "subscriptions.specificDatePendingUpdateData.executionDate"
467
- }
468
- ]
469
- }
470
- ])
471
- };
472
- return metadata;
473
- }
474
- return __customerQuerySubscriptions;
475
- }
476
- function customerUpdateSubscriptionPaymentMethod(payload) {
477
- function __customerUpdateSubscriptionPaymentMethod({ host }) {
478
- const metadata = {
479
- entityFqdn: "wix.billing.v1.subscription",
480
- method: "PATCH",
481
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.UpdateSubscriptionPaymentMethod",
482
- packageName: PACKAGE_NAME,
483
- migrationOptions: {
484
- optInTransformResponse: true
485
- },
486
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
487
- {
488
- protoPath: "/v1/customer_subscriptions/{id}/payment_method",
489
- data: payload,
490
- host
491
- }
492
- ),
493
- data: payload,
494
- transformResponse: (payload2) => transformPaths(payload2, [
495
- {
496
- transformFn: transformRESTTimestampToSDKTimestamp,
497
- paths: [
498
- { path: "subscription.createdDate" },
499
- { path: "subscription.updatedDate" },
500
- { path: "subscription.startDate" },
501
- { path: "subscription.endDate" },
502
- { path: "subscription.billingStatus.nextBillingDate" },
503
- { path: "subscription.billingStatus.previousBillingDate" },
504
- {
505
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
506
- },
507
- { path: "subscription.billingStatus.freeTrialData.startDate" },
508
- { path: "subscription.billingStatus.freeTrialData.endDate" },
509
- {
510
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
511
- },
512
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
513
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
514
- { path: "subscription.pauseInfo.startDate" },
515
- { path: "subscription.pauseInfo.resumeDate" },
516
- { path: "subscription.cancellationInfo.cancellationDate" },
517
- {
518
- path: "subscription.specificDatePendingUpdateData.executionDate"
519
- }
520
- ]
521
- }
522
- ])
523
- };
524
- return metadata;
525
- }
526
- return __customerUpdateSubscriptionPaymentMethod;
527
- }
528
- function customerAllowedActions(payload) {
529
- function __customerAllowedActions({ host }) {
530
- const metadata = {
531
- entityFqdn: "wix.billing.v1.subscription",
532
- method: "GET",
533
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.AllowedActions",
534
- packageName: PACKAGE_NAME,
535
- migrationOptions: {
536
- optInTransformResponse: true
537
- },
538
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
539
- {
540
- protoPath: "/v1/customer_subscriptions/{id}/allowed_actions",
541
- data: payload,
542
- host
543
- }
544
- ),
545
- params: toURLSearchParams(payload)
546
- };
547
- return metadata;
548
- }
549
- return __customerAllowedActions;
550
- }
551
- function customerListUpcomingCharges(payload) {
552
- function __customerListUpcomingCharges({ host }) {
553
- const metadata = {
554
- entityFqdn: "wix.billing.v1.subscription",
555
- method: "GET",
556
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.ListUpcomingCharges",
557
- packageName: PACKAGE_NAME,
558
- migrationOptions: {
559
- optInTransformResponse: true
560
- },
561
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
562
- {
563
- protoPath: "/v1/customer_subscriptions/{id}/upcoming_charges",
564
- data: payload,
565
- host
566
- }
567
- ),
568
- params: toURLSearchParams(payload),
569
- transformResponse: (payload2) => transformPaths(payload2, [
570
- {
571
- transformFn: transformRESTTimestampToSDKTimestamp,
572
- paths: [{ path: "upcomingCharge.billingDate" }]
573
- }
574
- ])
575
- };
576
- return metadata;
577
- }
578
- return __customerListUpcomingCharges;
579
- }
580
- function customerInitiatePaymentMethodSetup(payload) {
581
- function __customerInitiatePaymentMethodSetup({ host }) {
582
- const metadata = {
583
- entityFqdn: "wix.billing.v1.subscription",
584
- method: "POST",
585
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.InitiatePaymentMethodSetup",
586
- packageName: PACKAGE_NAME,
587
- migrationOptions: {
588
- optInTransformResponse: true
589
- },
590
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
591
- {
592
- protoPath: "/v1/customer_subscriptions/{id}/payment_method_setup",
593
- data: payload,
594
- host
595
- }
596
- ),
597
- data: payload
598
- };
599
- return metadata;
600
- }
601
- return __customerInitiatePaymentMethodSetup;
602
- }
603
- function customerSkipCycle(payload) {
604
- function __customerSkipCycle({ host }) {
605
- const serializedData = transformPaths(payload, [
606
- {
607
- transformFn: transformSDKTimestampToRESTTimestamp,
608
- paths: [
609
- { path: "pauseAtSchedule.specificDate" },
610
- { path: "autoResumeAtSchedule.specificDate" }
611
- ]
612
- }
613
- ]);
614
- const metadata = {
615
- entityFqdn: "wix.billing.v1.subscription",
616
- method: "POST",
617
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerSkipCycle",
618
- packageName: PACKAGE_NAME,
619
- migrationOptions: {
620
- optInTransformResponse: true
621
- },
622
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
623
- {
624
- protoPath: "/v1/customer_subscriptions/{id}/skip_cycle",
625
- data: serializedData,
626
- host
627
- }
628
- ),
629
- data: serializedData,
630
- transformResponse: (payload2) => transformPaths(payload2, [
631
- {
632
- transformFn: transformRESTTimestampToSDKTimestamp,
633
- paths: [
634
- { path: "subscription.createdDate" },
635
- { path: "subscription.updatedDate" },
636
- { path: "subscription.startDate" },
637
- { path: "subscription.endDate" },
638
- { path: "subscription.billingStatus.nextBillingDate" },
639
- { path: "subscription.billingStatus.previousBillingDate" },
640
- {
641
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
642
- },
643
- { path: "subscription.billingStatus.freeTrialData.startDate" },
644
- { path: "subscription.billingStatus.freeTrialData.endDate" },
645
- {
646
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
647
- },
648
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
649
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
650
- { path: "subscription.pauseInfo.startDate" },
651
- { path: "subscription.pauseInfo.resumeDate" },
652
- { path: "subscription.cancellationInfo.cancellationDate" },
653
- {
654
- path: "subscription.specificDatePendingUpdateData.executionDate"
655
- }
656
- ]
657
- }
658
- ])
659
- };
660
- return metadata;
661
- }
662
- return __customerSkipCycle;
663
- }
664
- function customerCancelScheduledSkip(payload) {
665
- function __customerCancelScheduledSkip({ host }) {
666
- const metadata = {
667
- entityFqdn: "wix.billing.v1.subscription",
668
- method: "POST",
669
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelScheduledSkip",
670
- packageName: PACKAGE_NAME,
671
- migrationOptions: {
672
- optInTransformResponse: true
673
- },
674
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
675
- {
676
- protoPath: "/v1/customer_subscriptions/{id}/cancel_scheduled_skip",
677
- data: payload,
678
- host
679
- }
680
- ),
681
- data: payload,
682
- transformResponse: (payload2) => transformPaths(payload2, [
683
- {
684
- transformFn: transformRESTTimestampToSDKTimestamp,
685
- paths: [
686
- { path: "subscription.createdDate" },
687
- { path: "subscription.updatedDate" },
688
- { path: "subscription.startDate" },
689
- { path: "subscription.endDate" },
690
- { path: "subscription.billingStatus.nextBillingDate" },
691
- { path: "subscription.billingStatus.previousBillingDate" },
692
- {
693
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
694
- },
695
- { path: "subscription.billingStatus.freeTrialData.startDate" },
696
- { path: "subscription.billingStatus.freeTrialData.endDate" },
697
- {
698
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
699
- },
700
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
701
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
702
- { path: "subscription.pauseInfo.startDate" },
703
- { path: "subscription.pauseInfo.resumeDate" },
704
- { path: "subscription.cancellationInfo.cancellationDate" },
705
- {
706
- path: "subscription.specificDatePendingUpdateData.executionDate"
707
- }
708
- ]
709
- }
710
- ])
711
- };
712
- return metadata;
713
- }
714
- return __customerCancelScheduledSkip;
715
- }
716
- function customerPauseSubscription(payload) {
717
- function __customerPauseSubscription({ host }) {
718
- const serializedData = transformPaths(payload, [
719
- {
720
- transformFn: transformSDKTimestampToRESTTimestamp,
721
- paths: [
722
- { path: "pauseAtSchedule.specificDate" },
723
- { path: "autoResumeAtSchedule.specificDate" }
724
- ]
725
- }
726
- ]);
727
- const metadata = {
728
- entityFqdn: "wix.billing.v1.subscription",
729
- method: "POST",
730
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerPauseSubscription",
731
- packageName: PACKAGE_NAME,
732
- migrationOptions: {
733
- optInTransformResponse: true
734
- },
735
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
736
- {
737
- protoPath: "/v1/customer_subscriptions/{id}/pause",
738
- data: serializedData,
739
- host
740
- }
741
- ),
742
- data: serializedData,
743
- transformResponse: (payload2) => transformPaths(payload2, [
744
- {
745
- transformFn: transformRESTTimestampToSDKTimestamp,
746
- paths: [
747
- { path: "subscription.createdDate" },
748
- { path: "subscription.updatedDate" },
749
- { path: "subscription.startDate" },
750
- { path: "subscription.endDate" },
751
- { path: "subscription.billingStatus.nextBillingDate" },
752
- { path: "subscription.billingStatus.previousBillingDate" },
753
- {
754
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
755
- },
756
- { path: "subscription.billingStatus.freeTrialData.startDate" },
757
- { path: "subscription.billingStatus.freeTrialData.endDate" },
758
- {
759
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
760
- },
761
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
762
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
763
- { path: "subscription.pauseInfo.startDate" },
764
- { path: "subscription.pauseInfo.resumeDate" },
765
- { path: "subscription.cancellationInfo.cancellationDate" },
766
- {
767
- path: "subscription.specificDatePendingUpdateData.executionDate"
768
- }
769
- ]
770
- }
771
- ])
772
- };
773
- return metadata;
774
- }
775
- return __customerPauseSubscription;
776
- }
777
- function customerResumeSubscription(payload) {
778
- function __customerResumeSubscription({ host }) {
779
- const serializedData = transformPaths(payload, [
780
- {
781
- transformFn: transformSDKTimestampToRESTTimestamp,
782
- paths: [{ path: "resumeAtSchedule.specificDate" }]
783
- }
784
- ]);
785
- const metadata = {
786
- entityFqdn: "wix.billing.v1.subscription",
787
- method: "POST",
788
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerResumeSubscription",
789
- packageName: PACKAGE_NAME,
790
- migrationOptions: {
791
- optInTransformResponse: true
792
- },
793
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
794
- {
795
- protoPath: "/v1/customer_subscriptions/{id}/resume",
796
- data: serializedData,
797
- host
798
- }
799
- ),
800
- data: serializedData,
801
- transformResponse: (payload2) => transformPaths(payload2, [
802
- {
803
- transformFn: transformRESTTimestampToSDKTimestamp,
804
- paths: [
805
- { path: "subscription.createdDate" },
806
- { path: "subscription.updatedDate" },
807
- { path: "subscription.startDate" },
808
- { path: "subscription.endDate" },
809
- { path: "subscription.billingStatus.nextBillingDate" },
810
- { path: "subscription.billingStatus.previousBillingDate" },
811
- {
812
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
813
- },
814
- { path: "subscription.billingStatus.freeTrialData.startDate" },
815
- { path: "subscription.billingStatus.freeTrialData.endDate" },
816
- {
817
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
818
- },
819
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
820
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
821
- { path: "subscription.pauseInfo.startDate" },
822
- { path: "subscription.pauseInfo.resumeDate" },
823
- { path: "subscription.cancellationInfo.cancellationDate" },
824
- {
825
- path: "subscription.specificDatePendingUpdateData.executionDate"
826
- }
827
- ]
828
- }
829
- ])
830
- };
831
- return metadata;
832
- }
833
- return __customerResumeSubscription;
834
- }
835
- function customerCancelScheduledPause(payload) {
836
- function __customerCancelScheduledPause({ host }) {
837
- const metadata = {
838
- entityFqdn: "wix.billing.v1.subscription",
839
- method: "POST",
840
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelScheduledPause",
841
- packageName: PACKAGE_NAME,
842
- migrationOptions: {
843
- optInTransformResponse: true
844
- },
845
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
846
- {
847
- protoPath: "/v1/customer_subscriptions/{id}/cancel_scheduled_pause",
848
- data: payload,
849
- host
850
- }
851
- ),
852
- data: payload,
853
- transformResponse: (payload2) => transformPaths(payload2, [
854
- {
855
- transformFn: transformRESTTimestampToSDKTimestamp,
856
- paths: [
857
- { path: "subscription.createdDate" },
858
- { path: "subscription.updatedDate" },
859
- { path: "subscription.startDate" },
860
- { path: "subscription.endDate" },
861
- { path: "subscription.billingStatus.nextBillingDate" },
862
- { path: "subscription.billingStatus.previousBillingDate" },
863
- {
864
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
865
- },
866
- { path: "subscription.billingStatus.freeTrialData.startDate" },
867
- { path: "subscription.billingStatus.freeTrialData.endDate" },
868
- {
869
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
870
- },
871
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
872
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
873
- { path: "subscription.pauseInfo.startDate" },
874
- { path: "subscription.pauseInfo.resumeDate" },
875
- { path: "subscription.cancellationInfo.cancellationDate" },
876
- {
877
- path: "subscription.specificDatePendingUpdateData.executionDate"
878
- }
879
- ]
880
- }
881
- ])
882
- };
883
- return metadata;
884
- }
885
- return __customerCancelScheduledPause;
886
- }
887
- function customerUpdateBillingDate(payload) {
888
- function __customerUpdateBillingDate({ host }) {
889
- const serializedData = transformPaths(payload, [
890
- {
891
- transformFn: transformSDKTimestampToRESTTimestamp,
892
- paths: [{ path: "billingDate" }]
893
- }
894
- ]);
895
- const metadata = {
896
- entityFqdn: "wix.billing.v1.subscription",
897
- method: "POST",
898
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerUpdateBillingDate",
899
- packageName: PACKAGE_NAME,
900
- migrationOptions: {
901
- optInTransformResponse: true
902
- },
903
- url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
904
- {
905
- protoPath: "/v1/customer_subscriptions/{id}/update_billing_date",
906
- data: serializedData,
907
- host
908
- }
909
- ),
910
- data: serializedData,
911
- transformResponse: (payload2) => transformPaths(payload2, [
912
- {
913
- transformFn: transformRESTTimestampToSDKTimestamp,
914
- paths: [
915
- { path: "subscription.createdDate" },
916
- { path: "subscription.updatedDate" },
917
- { path: "subscription.startDate" },
918
- { path: "subscription.endDate" },
919
- { path: "subscription.billingStatus.nextBillingDate" },
920
- { path: "subscription.billingStatus.previousBillingDate" },
921
- {
922
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
923
- },
924
- { path: "subscription.billingStatus.freeTrialData.startDate" },
925
- { path: "subscription.billingStatus.freeTrialData.endDate" },
926
- {
927
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
928
- },
929
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
930
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
931
- { path: "subscription.pauseInfo.startDate" },
932
- { path: "subscription.pauseInfo.resumeDate" },
933
- { path: "subscription.cancellationInfo.cancellationDate" },
934
- {
935
- path: "subscription.specificDatePendingUpdateData.executionDate"
936
- }
937
- ]
938
- }
939
- ])
940
- };
941
- return metadata;
942
- }
943
- return __customerUpdateBillingDate;
944
- }
945
- function payCycle(payload) {
946
- function __payCycle({ host }) {
947
- const metadata = {
948
- entityFqdn: "wix.billing.v1.subscription",
949
- method: "POST",
950
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsBackOfficeService.PayCycle",
951
- packageName: PACKAGE_NAME,
952
- migrationOptions: {
953
- optInTransformResponse: true
954
- },
955
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(
956
- {
957
- protoPath: "/v1/subscriptions-bo/{subscriptionId}/pay-cycle",
958
- data: payload,
959
- host
960
- }
961
- ),
962
- data: payload,
963
- transformResponse: (payload2) => transformPaths(payload2, [
964
- {
965
- transformFn: transformRESTTimestampToSDKTimestamp,
966
- paths: [
967
- { path: "subscription.createdDate" },
968
- { path: "subscription.updatedDate" },
969
- { path: "subscription.startDate" },
970
- { path: "subscription.endDate" },
971
- { path: "subscription.billingStatus.nextBillingDate" },
972
- { path: "subscription.billingStatus.previousBillingDate" },
973
- {
974
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
975
- },
976
- { path: "subscription.billingStatus.freeTrialData.startDate" },
977
- { path: "subscription.billingStatus.freeTrialData.endDate" },
978
- {
979
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
980
- },
981
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
982
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
983
- { path: "subscription.pauseInfo.startDate" },
984
- { path: "subscription.pauseInfo.resumeDate" },
985
- { path: "subscription.cancellationInfo.cancellationDate" },
986
- {
987
- path: "subscription.specificDatePendingUpdateData.executionDate"
988
- }
989
- ]
990
- }
991
- ])
992
- };
993
- return metadata;
994
- }
995
- return __payCycle;
996
- }
997
- function getSubscription(payload) {
998
- function __getSubscription({ host }) {
999
- const metadata = {
1000
- entityFqdn: "wix.billing.v1.subscription",
1001
- method: "GET",
1002
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.GetSubscription",
1003
- packageName: PACKAGE_NAME,
1004
- migrationOptions: {
1005
- optInTransformResponse: true
1006
- },
1007
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1008
- protoPath: "/v1/subscriptions/{id}",
1009
- data: payload,
1010
- host
1011
- }),
1012
- params: toURLSearchParams(payload),
1013
- transformResponse: (payload2) => transformPaths(payload2, [
1014
- {
1015
- transformFn: transformRESTTimestampToSDKTimestamp,
1016
- paths: [
1017
- { path: "subscription.createdDate" },
1018
- { path: "subscription.updatedDate" },
1019
- { path: "subscription.startDate" },
1020
- { path: "subscription.endDate" },
1021
- { path: "subscription.billingStatus.nextBillingDate" },
1022
- { path: "subscription.billingStatus.previousBillingDate" },
1023
- {
1024
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1025
- },
1026
- { path: "subscription.billingStatus.freeTrialData.startDate" },
1027
- { path: "subscription.billingStatus.freeTrialData.endDate" },
1028
- {
1029
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1030
- },
1031
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
1032
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
1033
- { path: "subscription.pauseInfo.startDate" },
1034
- { path: "subscription.pauseInfo.resumeDate" },
1035
- { path: "subscription.cancellationInfo.cancellationDate" },
1036
- {
1037
- path: "subscription.specificDatePendingUpdateData.executionDate"
1038
- }
1039
- ]
1040
- }
1041
- ])
1042
- };
1043
- return metadata;
1044
- }
1045
- return __getSubscription;
1046
- }
1047
- function updateSubscriptionPaymentMethod(payload) {
1048
- function __updateSubscriptionPaymentMethod({ host }) {
1049
- const metadata = {
1050
- entityFqdn: "wix.billing.v1.subscription",
1051
- method: "PATCH",
1052
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.UpdateSubscriptionPaymentMethod",
1053
- packageName: PACKAGE_NAME,
1054
- migrationOptions: {
1055
- optInTransformResponse: true
1056
- },
1057
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1058
- protoPath: "/v1/subscriptions/{id}/payment_method",
1059
- data: payload,
1060
- host
1061
- }),
1062
- data: payload,
1063
- transformResponse: (payload2) => transformPaths(payload2, [
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 __updateSubscriptionPaymentMethod;
1096
- }
1097
- function updateSubscriptionBillingDate(payload) {
1098
- function __updateSubscriptionBillingDate({ host }) {
1099
- const serializedData = transformPaths(payload, [
1100
- {
1101
- transformFn: transformSDKTimestampToRESTTimestamp,
1102
- paths: [{ path: "billingDate" }]
1103
- }
1104
- ]);
1105
- const metadata = {
1106
- entityFqdn: "wix.billing.v1.subscription",
1107
- method: "PATCH",
1108
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.UpdateSubscriptionBillingDate",
1109
- packageName: PACKAGE_NAME,
1110
- migrationOptions: {
1111
- optInTransformResponse: true
1112
- },
1113
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1114
- protoPath: "/v1/subscriptions/{id}/update-billing-date",
1115
- data: serializedData,
1116
- host
1117
- }),
1118
- data: serializedData,
1119
- transformResponse: (payload2) => transformPaths(payload2, [
1120
- {
1121
- transformFn: transformRESTTimestampToSDKTimestamp,
1122
- paths: [
1123
- { path: "subscription.createdDate" },
1124
- { path: "subscription.updatedDate" },
1125
- { path: "subscription.startDate" },
1126
- { path: "subscription.endDate" },
1127
- { path: "subscription.billingStatus.nextBillingDate" },
1128
- { path: "subscription.billingStatus.previousBillingDate" },
1129
- {
1130
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1131
- },
1132
- { path: "subscription.billingStatus.freeTrialData.startDate" },
1133
- { path: "subscription.billingStatus.freeTrialData.endDate" },
1134
- {
1135
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1136
- },
1137
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
1138
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
1139
- { path: "subscription.pauseInfo.startDate" },
1140
- { path: "subscription.pauseInfo.resumeDate" },
1141
- { path: "subscription.cancellationInfo.cancellationDate" },
1142
- {
1143
- path: "subscription.specificDatePendingUpdateData.executionDate"
1144
- }
1145
- ]
1146
- }
1147
- ])
1148
- };
1149
- return metadata;
1150
- }
1151
- return __updateSubscriptionBillingDate;
1152
- }
1153
- function reviseSubscription(payload) {
1154
- function __reviseSubscription({ host }) {
1155
- const metadata = {
1156
- entityFqdn: "wix.billing.v1.subscription",
1157
- method: "POST",
1158
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.ReviseSubscription",
1159
- packageName: PACKAGE_NAME,
1160
- migrationOptions: {
1161
- optInTransformResponse: true
1162
- },
1163
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1164
- protoPath: "/v1/subscriptions/{id}",
1165
- data: payload,
1166
- host
1167
- }),
1168
- data: payload,
1169
- transformResponse: (payload2) => transformPaths(payload2, [
1170
- {
1171
- transformFn: transformRESTTimestampToSDKTimestamp,
1172
- paths: [
1173
- { path: "subscription.createdDate" },
1174
- { path: "subscription.updatedDate" },
1175
- { path: "subscription.startDate" },
1176
- { path: "subscription.endDate" },
1177
- { path: "subscription.billingStatus.nextBillingDate" },
1178
- { path: "subscription.billingStatus.previousBillingDate" },
1179
- {
1180
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1181
- },
1182
- { path: "subscription.billingStatus.freeTrialData.startDate" },
1183
- { path: "subscription.billingStatus.freeTrialData.endDate" },
1184
- {
1185
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1186
- },
1187
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
1188
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
1189
- { path: "subscription.pauseInfo.startDate" },
1190
- { path: "subscription.pauseInfo.resumeDate" },
1191
- { path: "subscription.cancellationInfo.cancellationDate" },
1192
- {
1193
- path: "subscription.specificDatePendingUpdateData.executionDate"
1194
- }
1195
- ]
1196
- }
1197
- ])
1198
- };
1199
- return metadata;
1200
- }
1201
- return __reviseSubscription;
1202
- }
1203
- function cancelSubscription(payload) {
1204
- function __cancelSubscription({ host }) {
1205
- const metadata = {
1206
- entityFqdn: "wix.billing.v1.subscription",
1207
- method: "POST",
1208
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.CancelSubscription",
1209
- packageName: PACKAGE_NAME,
1210
- migrationOptions: {
1211
- optInTransformResponse: true
1212
- },
1213
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1214
- protoPath: "/v1/subscriptions/{id}/cancel",
1215
- data: payload,
1216
- host
1217
- }),
1218
- data: payload,
1219
- transformResponse: (payload2) => transformPaths(payload2, [
1220
- {
1221
- transformFn: transformRESTTimestampToSDKTimestamp,
1222
- paths: [
1223
- { path: "subscription.createdDate" },
1224
- { path: "subscription.updatedDate" },
1225
- { path: "subscription.startDate" },
1226
- { path: "subscription.endDate" },
1227
- { path: "subscription.billingStatus.nextBillingDate" },
1228
- { path: "subscription.billingStatus.previousBillingDate" },
1229
- {
1230
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1231
- },
1232
- { path: "subscription.billingStatus.freeTrialData.startDate" },
1233
- { path: "subscription.billingStatus.freeTrialData.endDate" },
1234
- {
1235
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1236
- },
1237
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
1238
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
1239
- { path: "subscription.pauseInfo.startDate" },
1240
- { path: "subscription.pauseInfo.resumeDate" },
1241
- { path: "subscription.cancellationInfo.cancellationDate" },
1242
- {
1243
- path: "subscription.specificDatePendingUpdateData.executionDate"
1244
- }
1245
- ]
1246
- }
1247
- ])
1248
- };
1249
- return metadata;
1250
- }
1251
- return __cancelSubscription;
1252
- }
1253
- function pauseSubscription(payload) {
1254
- function __pauseSubscription({ host }) {
1255
- const serializedData = transformPaths(payload, [
1256
- {
1257
- transformFn: transformSDKTimestampToRESTTimestamp,
1258
- paths: [
1259
- { path: "pauseAtSchedule.specificDate" },
1260
- { path: "autoResumeAtSchedule.specificDate" }
1261
- ]
1262
- }
1263
- ]);
1264
- const metadata = {
1265
- entityFqdn: "wix.billing.v1.subscription",
1266
- method: "POST",
1267
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.PauseSubscription",
1268
- packageName: PACKAGE_NAME,
1269
- migrationOptions: {
1270
- optInTransformResponse: true
1271
- },
1272
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1273
- protoPath: "/v1/subscriptions/{id}/pause",
1274
- data: serializedData,
1275
- host
1276
- }),
1277
- data: serializedData,
1278
- transformResponse: (payload2) => transformPaths(payload2, [
1279
- {
1280
- transformFn: transformRESTTimestampToSDKTimestamp,
1281
- paths: [
1282
- { path: "subscription.createdDate" },
1283
- { path: "subscription.updatedDate" },
1284
- { path: "subscription.startDate" },
1285
- { path: "subscription.endDate" },
1286
- { path: "subscription.billingStatus.nextBillingDate" },
1287
- { path: "subscription.billingStatus.previousBillingDate" },
1288
- {
1289
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1290
- },
1291
- { path: "subscription.billingStatus.freeTrialData.startDate" },
1292
- { path: "subscription.billingStatus.freeTrialData.endDate" },
1293
- {
1294
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1295
- },
1296
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
1297
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
1298
- { path: "subscription.pauseInfo.startDate" },
1299
- { path: "subscription.pauseInfo.resumeDate" },
1300
- { path: "subscription.cancellationInfo.cancellationDate" },
1301
- {
1302
- path: "subscription.specificDatePendingUpdateData.executionDate"
1303
- }
1304
- ]
1305
- }
1306
- ])
1307
- };
1308
- return metadata;
1309
- }
1310
- return __pauseSubscription;
1311
- }
1312
- function resumeSubscription(payload) {
1313
- function __resumeSubscription({ host }) {
1314
- const serializedData = transformPaths(payload, [
1315
- {
1316
- transformFn: transformSDKTimestampToRESTTimestamp,
1317
- paths: [{ path: "resumeAtSchedule.specificDate" }]
1318
- }
1319
- ]);
1320
- const metadata = {
1321
- entityFqdn: "wix.billing.v1.subscription",
1322
- method: "POST",
1323
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.ResumeSubscription",
1324
- packageName: PACKAGE_NAME,
1325
- migrationOptions: {
1326
- optInTransformResponse: true
1327
- },
1328
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1329
- protoPath: "/v1/subscriptions/{id}/resume",
1330
- data: serializedData,
1331
- host
1332
- }),
1333
- data: serializedData,
1334
- transformResponse: (payload2) => transformPaths(payload2, [
1335
- {
1336
- transformFn: transformRESTTimestampToSDKTimestamp,
1337
- paths: [
1338
- { path: "subscription.createdDate" },
1339
- { path: "subscription.updatedDate" },
1340
- { path: "subscription.startDate" },
1341
- { path: "subscription.endDate" },
1342
- { path: "subscription.billingStatus.nextBillingDate" },
1343
- { path: "subscription.billingStatus.previousBillingDate" },
1344
- {
1345
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1346
- },
1347
- { path: "subscription.billingStatus.freeTrialData.startDate" },
1348
- { path: "subscription.billingStatus.freeTrialData.endDate" },
1349
- {
1350
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1351
- },
1352
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
1353
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
1354
- { path: "subscription.pauseInfo.startDate" },
1355
- { path: "subscription.pauseInfo.resumeDate" },
1356
- { path: "subscription.cancellationInfo.cancellationDate" },
1357
- {
1358
- path: "subscription.specificDatePendingUpdateData.executionDate"
1359
- }
1360
- ]
1361
- }
1362
- ])
1363
- };
1364
- return metadata;
1365
- }
1366
- return __resumeSubscription;
1367
- }
1368
- function querySubscriptions(payload) {
1369
- function __querySubscriptions({ host }) {
1370
- const metadata = {
1371
- entityFqdn: "wix.billing.v1.subscription",
1372
- method: "POST",
1373
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.QuerySubscriptions",
1374
- packageName: PACKAGE_NAME,
1375
- migrationOptions: {
1376
- optInTransformResponse: true
1377
- },
1378
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1379
- protoPath: "/v1/subscriptions/query",
1380
- data: payload,
1381
- host
1382
- }),
1383
- data: payload,
1384
- transformResponse: (payload2) => transformPaths(payload2, [
1385
- {
1386
- transformFn: transformRESTTimestampToSDKTimestamp,
1387
- paths: [
1388
- { path: "subscriptions.createdDate" },
1389
- { path: "subscriptions.updatedDate" },
1390
- { path: "subscriptions.startDate" },
1391
- { path: "subscriptions.endDate" },
1392
- { path: "subscriptions.billingStatus.nextBillingDate" },
1393
- { path: "subscriptions.billingStatus.previousBillingDate" },
1394
- {
1395
- path: "subscriptions.billingStatus.latestPaymentData.initialFailedPaymentDate"
1396
- },
1397
- { path: "subscriptions.billingStatus.freeTrialData.startDate" },
1398
- { path: "subscriptions.billingStatus.freeTrialData.endDate" },
1399
- {
1400
- path: "subscriptions.billingStatus.updateBillingDateData.paidUntil"
1401
- },
1402
- { path: "subscriptions.billingStatus.gracePeriodData.startDate" },
1403
- { path: "subscriptions.billingStatus.gracePeriodData.endDate" },
1404
- { path: "subscriptions.pauseInfo.startDate" },
1405
- { path: "subscriptions.pauseInfo.resumeDate" },
1406
- { path: "subscriptions.cancellationInfo.cancellationDate" },
1407
- {
1408
- path: "subscriptions.specificDatePendingUpdateData.executionDate"
1409
- }
1410
- ]
1411
- }
1412
- ])
1413
- };
1414
- return metadata;
1415
- }
1416
- return __querySubscriptions;
1417
- }
1418
- function searchSubscriptions(payload) {
1419
- function __searchSubscriptions({ host }) {
1420
- const metadata = {
1421
- entityFqdn: "wix.billing.v1.subscription",
1422
- method: "POST",
1423
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.SearchSubscriptions",
1424
- packageName: PACKAGE_NAME,
1425
- migrationOptions: {
1426
- optInTransformResponse: true
1427
- },
1428
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1429
- protoPath: "/v1/subscriptions/search",
1430
- data: payload,
1431
- host
1432
- }),
1433
- data: payload,
1434
- transformResponse: (payload2) => transformPaths(payload2, [
1435
- {
1436
- transformFn: transformRESTTimestampToSDKTimestamp,
1437
- paths: [
1438
- { path: "subscriptions.createdDate" },
1439
- { path: "subscriptions.updatedDate" },
1440
- { path: "subscriptions.startDate" },
1441
- { path: "subscriptions.endDate" },
1442
- { path: "subscriptions.billingStatus.nextBillingDate" },
1443
- { path: "subscriptions.billingStatus.previousBillingDate" },
1444
- {
1445
- path: "subscriptions.billingStatus.latestPaymentData.initialFailedPaymentDate"
1446
- },
1447
- { path: "subscriptions.billingStatus.freeTrialData.startDate" },
1448
- { path: "subscriptions.billingStatus.freeTrialData.endDate" },
1449
- {
1450
- path: "subscriptions.billingStatus.updateBillingDateData.paidUntil"
1451
- },
1452
- { path: "subscriptions.billingStatus.gracePeriodData.startDate" },
1453
- { path: "subscriptions.billingStatus.gracePeriodData.endDate" },
1454
- { path: "subscriptions.pauseInfo.startDate" },
1455
- { path: "subscriptions.pauseInfo.resumeDate" },
1456
- { path: "subscriptions.cancellationInfo.cancellationDate" },
1457
- {
1458
- path: "subscriptions.specificDatePendingUpdateData.executionDate"
1459
- }
1460
- ]
1461
- }
1462
- ])
1463
- };
1464
- return metadata;
1465
- }
1466
- return __searchSubscriptions;
1467
- }
1468
- function countSubscriptions(payload) {
1469
- function __countSubscriptions({ host }) {
1470
- const metadata = {
1471
- entityFqdn: "wix.billing.v1.subscription",
1472
- method: "POST",
1473
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.CountSubscriptions",
1474
- packageName: PACKAGE_NAME,
1475
- migrationOptions: {
1476
- optInTransformResponse: true
1477
- },
1478
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1479
- protoPath: "/v1/subscriptions/count",
1480
- data: payload,
1481
- host
1482
- }),
1483
- data: payload
1484
- };
1485
- return metadata;
1486
- }
1487
- return __countSubscriptions;
1488
- }
1489
- function turnOnSubscriptionAutoRenewal(payload) {
1490
- function __turnOnSubscriptionAutoRenewal({ host }) {
1491
- const metadata = {
1492
- entityFqdn: "wix.billing.v1.subscription",
1493
- method: "PATCH",
1494
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.TurnOnSubscriptionAutoRenewal",
1495
- packageName: PACKAGE_NAME,
1496
- migrationOptions: {
1497
- optInTransformResponse: true
1498
- },
1499
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1500
- protoPath: "/v1/subscriptions/{id}/turn_on_auto_renewal",
1501
- data: payload,
1502
- host
1503
- }),
1504
- data: payload,
1505
- transformResponse: (payload2) => transformPaths(payload2, [
1506
- {
1507
- transformFn: transformRESTTimestampToSDKTimestamp,
1508
- paths: [
1509
- { path: "subscription.createdDate" },
1510
- { path: "subscription.updatedDate" },
1511
- { path: "subscription.startDate" },
1512
- { path: "subscription.endDate" },
1513
- { path: "subscription.billingStatus.nextBillingDate" },
1514
- { path: "subscription.billingStatus.previousBillingDate" },
1515
- {
1516
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1517
- },
1518
- { path: "subscription.billingStatus.freeTrialData.startDate" },
1519
- { path: "subscription.billingStatus.freeTrialData.endDate" },
1520
- {
1521
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1522
- },
1523
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
1524
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
1525
- { path: "subscription.pauseInfo.startDate" },
1526
- { path: "subscription.pauseInfo.resumeDate" },
1527
- { path: "subscription.cancellationInfo.cancellationDate" },
1528
- {
1529
- path: "subscription.specificDatePendingUpdateData.executionDate"
1530
- }
1531
- ]
1532
- }
1533
- ])
1534
- };
1535
- return metadata;
1536
- }
1537
- return __turnOnSubscriptionAutoRenewal;
1538
- }
1539
- function turnOffSubscriptionAutoRenewal(payload) {
1540
- function __turnOffSubscriptionAutoRenewal({ host }) {
1541
- const metadata = {
1542
- entityFqdn: "wix.billing.v1.subscription",
1543
- method: "PATCH",
1544
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.TurnOffSubscriptionAutoRenewal",
1545
- packageName: PACKAGE_NAME,
1546
- migrationOptions: {
1547
- optInTransformResponse: true
1548
- },
1549
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1550
- protoPath: "/v1/subscriptions/{id}/turn_off_auto_renewal",
1551
- data: payload,
1552
- host
1553
- }),
1554
- data: payload,
1555
- transformResponse: (payload2) => transformPaths(payload2, [
1556
- {
1557
- transformFn: transformRESTTimestampToSDKTimestamp,
1558
- paths: [
1559
- { path: "subscription.createdDate" },
1560
- { path: "subscription.updatedDate" },
1561
- { path: "subscription.startDate" },
1562
- { path: "subscription.endDate" },
1563
- { path: "subscription.billingStatus.nextBillingDate" },
1564
- { path: "subscription.billingStatus.previousBillingDate" },
1565
- {
1566
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1567
- },
1568
- { path: "subscription.billingStatus.freeTrialData.startDate" },
1569
- { path: "subscription.billingStatus.freeTrialData.endDate" },
1570
- {
1571
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1572
- },
1573
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
1574
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
1575
- { path: "subscription.pauseInfo.startDate" },
1576
- { path: "subscription.pauseInfo.resumeDate" },
1577
- { path: "subscription.cancellationInfo.cancellationDate" },
1578
- {
1579
- path: "subscription.specificDatePendingUpdateData.executionDate"
1580
- }
1581
- ]
1582
- }
1583
- ])
1584
- };
1585
- return metadata;
1586
- }
1587
- return __turnOffSubscriptionAutoRenewal;
1588
- }
1589
- function markLatestInvoiceAsPaid(payload) {
1590
- function __markLatestInvoiceAsPaid({ host }) {
1591
- const metadata = {
1592
- entityFqdn: "wix.billing.v1.subscription",
1593
- method: "POST",
1594
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkLatestInvoiceAsPaid",
1595
- packageName: PACKAGE_NAME,
1596
- migrationOptions: {
1597
- optInTransformResponse: true
1598
- },
1599
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1600
- protoPath: "/v1/subscriptions/{subscriptionId}/mark-latest-invoice-as-paid",
1601
- data: payload,
1602
- host
1603
- }),
1604
- data: payload,
1605
- transformResponse: (payload2) => transformPaths(payload2, [
1606
- {
1607
- transformFn: transformRESTTimestampToSDKTimestamp,
1608
- paths: [
1609
- { path: "subscription.createdDate" },
1610
- { path: "subscription.updatedDate" },
1611
- { path: "subscription.startDate" },
1612
- { path: "subscription.endDate" },
1613
- { path: "subscription.billingStatus.nextBillingDate" },
1614
- { path: "subscription.billingStatus.previousBillingDate" },
1615
- {
1616
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1617
- },
1618
- { path: "subscription.billingStatus.freeTrialData.startDate" },
1619
- { path: "subscription.billingStatus.freeTrialData.endDate" },
1620
- {
1621
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1622
- },
1623
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
1624
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
1625
- { path: "subscription.pauseInfo.startDate" },
1626
- { path: "subscription.pauseInfo.resumeDate" },
1627
- { path: "subscription.cancellationInfo.cancellationDate" },
1628
- {
1629
- path: "subscription.specificDatePendingUpdateData.executionDate"
1630
- }
1631
- ]
1632
- }
1633
- ])
1634
- };
1635
- return metadata;
1636
- }
1637
- return __markLatestInvoiceAsPaid;
1638
- }
1639
- function markBillingCycleAsPaid(payload) {
1640
- function __markBillingCycleAsPaid({ host }) {
1641
- const metadata = {
1642
- entityFqdn: "wix.billing.v1.subscription",
1643
- method: "POST",
1644
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.MarkBillingCycleAsPaid",
1645
- packageName: PACKAGE_NAME,
1646
- migrationOptions: {
1647
- optInTransformResponse: true
1648
- },
1649
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1650
- protoPath: "/v1/subscriptions/{subscriptionId}/mark-cycle-as-paid",
1651
- data: payload,
1652
- host
1653
- }),
1654
- data: payload,
1655
- transformResponse: (payload2) => transformPaths(payload2, [
1656
- {
1657
- transformFn: transformRESTTimestampToSDKTimestamp,
1658
- paths: [
1659
- { path: "subscription.createdDate" },
1660
- { path: "subscription.updatedDate" },
1661
- { path: "subscription.startDate" },
1662
- { path: "subscription.endDate" },
1663
- { path: "subscription.billingStatus.nextBillingDate" },
1664
- { path: "subscription.billingStatus.previousBillingDate" },
1665
- {
1666
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1667
- },
1668
- { path: "subscription.billingStatus.freeTrialData.startDate" },
1669
- { path: "subscription.billingStatus.freeTrialData.endDate" },
1670
- {
1671
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1672
- },
1673
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
1674
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
1675
- { path: "subscription.pauseInfo.startDate" },
1676
- { path: "subscription.pauseInfo.resumeDate" },
1677
- { path: "subscription.cancellationInfo.cancellationDate" },
1678
- {
1679
- path: "subscription.specificDatePendingUpdateData.executionDate"
1680
- }
1681
- ]
1682
- }
1683
- ])
1684
- };
1685
- return metadata;
1686
- }
1687
- return __markBillingCycleAsPaid;
1688
- }
1689
- function getSubscriptionsStats(payload) {
1690
- function __getSubscriptionsStats({ host }) {
1691
- const metadata = {
1692
- entityFqdn: "wix.billing.v1.subscription",
1693
- method: "GET",
1694
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.GetSubscriptionsStats",
1695
- packageName: PACKAGE_NAME,
1696
- migrationOptions: {
1697
- optInTransformResponse: true
1698
- },
1699
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1700
- protoPath: "/v1/subscriptions/stats",
1701
- data: payload,
1702
- host
1703
- }),
1704
- params: toURLSearchParams(payload)
1705
- };
1706
- return metadata;
1707
- }
1708
- return __getSubscriptionsStats;
1709
- }
1710
- function extendSubscription(payload) {
1711
- function __extendSubscription({ host }) {
1712
- const metadata = {
1713
- entityFqdn: "wix.billing.v1.subscription",
1714
- method: "PATCH",
1715
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.ExtendSubscription",
1716
- packageName: PACKAGE_NAME,
1717
- migrationOptions: {
1718
- optInTransformResponse: true
1719
- },
1720
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1721
- protoPath: "/v1/subscriptions/{id}/extend",
1722
- data: payload,
1723
- host
1724
- }),
1725
- data: payload,
1726
- transformResponse: (payload2) => transformPaths(payload2, [
1727
- {
1728
- transformFn: transformRESTTimestampToSDKTimestamp,
1729
- paths: [
1730
- { path: "subscription.createdDate" },
1731
- { path: "subscription.updatedDate" },
1732
- { path: "subscription.startDate" },
1733
- { path: "subscription.endDate" },
1734
- { path: "subscription.billingStatus.nextBillingDate" },
1735
- { path: "subscription.billingStatus.previousBillingDate" },
1736
- {
1737
- path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1738
- },
1739
- { path: "subscription.billingStatus.freeTrialData.startDate" },
1740
- { path: "subscription.billingStatus.freeTrialData.endDate" },
1741
- {
1742
- path: "subscription.billingStatus.updateBillingDateData.paidUntil"
1743
- },
1744
- { path: "subscription.billingStatus.gracePeriodData.startDate" },
1745
- { path: "subscription.billingStatus.gracePeriodData.endDate" },
1746
- { path: "subscription.pauseInfo.startDate" },
1747
- { path: "subscription.pauseInfo.resumeDate" },
1748
- { path: "subscription.cancellationInfo.cancellationDate" },
1749
- {
1750
- path: "subscription.specificDatePendingUpdateData.executionDate"
1751
- }
1752
- ]
1753
- }
1754
- ])
1755
- };
1756
- return metadata;
1757
- }
1758
- return __extendSubscription;
1759
- }
1760
- function allowedActions(payload) {
1761
- function __allowedActions({ host }) {
1762
- const metadata = {
1763
- entityFqdn: "wix.billing.v1.subscription",
1764
- method: "GET",
1765
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.AllowedActions",
1766
- packageName: PACKAGE_NAME,
1767
- migrationOptions: {
1768
- optInTransformResponse: true
1769
- },
1770
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1771
- protoPath: "/v1/subscriptions/{id}/allowed_actions",
1772
- data: payload,
1773
- host
1774
- }),
1775
- params: toURLSearchParams(payload)
1776
- };
1777
- return metadata;
1778
- }
1779
- return __allowedActions;
1780
- }
1781
- function listUpcomingCharges(payload) {
1782
- function __listUpcomingCharges({ host }) {
1783
- const serializedData = transformPaths(payload, [
1784
- {
1785
- transformFn: transformSDKTimestampToRESTTimestamp,
1786
- paths: [{ path: "nextBillingDate" }]
1787
- }
1788
- ]);
1789
- const metadata = {
1790
- entityFqdn: "wix.billing.v1.subscription",
1791
- method: "GET",
1792
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.ListUpcomingCharges",
1793
- packageName: PACKAGE_NAME,
1794
- migrationOptions: {
1795
- optInTransformResponse: true
1796
- },
1797
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1798
- protoPath: "/v1/subscriptions/{subscriptionId}/upcoming_charges",
1799
- data: serializedData,
1800
- host
1801
- }),
1802
- params: toURLSearchParams(serializedData),
1803
- transformResponse: (payload2) => transformPaths(payload2, [
1804
- {
1805
- transformFn: transformRESTTimestampToSDKTimestamp,
1806
- paths: [{ path: "upcomingCharges.billingDate" }]
1807
- }
1808
- ])
1809
- };
1810
- return metadata;
1811
- }
1812
- return __listUpcomingCharges;
1813
- }
1814
- function previewSubscriptionCharges(payload) {
1815
- function __previewSubscriptionCharges({ host }) {
1816
- const serializedData = transformPaths(payload, [
1817
- {
1818
- transformFn: transformSDKTimestampToRESTTimestamp,
1819
- paths: [{ path: "subscriptionInfo.startDate" }]
1820
- }
1821
- ]);
1822
- const metadata = {
1823
- entityFqdn: "wix.billing.v1.subscription",
1824
- method: "GET",
1825
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.PreviewSubscriptionCharges",
1826
- packageName: PACKAGE_NAME,
1827
- migrationOptions: {
1828
- optInTransformResponse: true
1829
- },
1830
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1831
- protoPath: "/v1/subscriptions/preview_charges",
1832
- data: serializedData,
1833
- host
1834
- }),
1835
- params: toURLSearchParams(serializedData, true),
1836
- transformResponse: (payload2) => transformPaths(payload2, [
1837
- {
1838
- transformFn: transformRESTTimestampToSDKTimestamp,
1839
- paths: [{ path: "charges.cycleBillingDate" }]
1840
- }
1841
- ])
1842
- };
1843
- return metadata;
1844
- }
1845
- return __previewSubscriptionCharges;
1846
- }
1847
- function previewSubscriptionsCharges(payload) {
1848
- function __previewSubscriptionsCharges({ host }) {
1849
- const serializedData = transformPaths(payload, [
1850
- {
1851
- transformFn: transformSDKTimestampToRESTTimestamp,
1852
- paths: [{ path: "subscriptionsBillingDetails.startDate" }]
1853
- }
1854
- ]);
1855
- const metadata = {
1856
- entityFqdn: "wix.billing.v1.subscription",
1857
- method: "GET",
1858
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.PreviewSubscriptionsCharges",
1859
- packageName: PACKAGE_NAME,
1860
- migrationOptions: {
1861
- optInTransformResponse: true
1862
- },
1863
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1864
- protoPath: "/v1/subscriptions/preview-subscriptions-charges",
1865
- data: serializedData,
1866
- host
1867
- }),
1868
- params: toURLSearchParams(serializedData, true),
1869
- transformResponse: (payload2) => transformPaths(payload2, [
1870
- {
1871
- transformFn: transformRESTTimestampToSDKTimestamp,
1872
- paths: [{ path: "subscriptionsCharges.charges.cycleBillingDate" }]
1873
- }
1874
- ])
1875
- };
1876
- return metadata;
1877
- }
1878
- return __previewSubscriptionsCharges;
1879
- }
1880
- function initiatePaymentMethodSetup(payload) {
1881
- function __initiatePaymentMethodSetup({ host }) {
1882
- const metadata = {
1883
- entityFqdn: "wix.billing.v1.subscription",
1884
- method: "POST",
1885
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsService.InitiatePaymentMethodSetup",
1886
- packageName: PACKAGE_NAME,
1887
- migrationOptions: {
1888
- optInTransformResponse: true
1889
- },
1890
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
1891
- protoPath: "/v1/subscriptions/{id}/payment_method_setup",
1892
- data: payload,
1893
- host
1894
- }),
1895
- data: payload
1896
- };
1897
- return metadata;
1898
- }
1899
- return __initiatePaymentMethodSetup;
1900
- }
1901
- function listSubscriptionHistory(payload) {
1902
- function __listSubscriptionHistory({ host }) {
1903
- const metadata = {
1904
- entityFqdn: "wix.billing.v1.subscription",
1905
- method: "GET",
1906
- methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionHistoryService.ListSubscriptionHistory",
1907
- packageName: PACKAGE_NAME,
1908
- migrationOptions: {
1909
- optInTransformResponse: true
1910
- },
1911
- url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionHistoryServiceUrl(
1912
- {
1913
- protoPath: "/v1/subscriptions/{subscriptionId}/history",
1914
- data: payload,
1915
- host
1916
- }
1917
- ),
1918
- params: toURLSearchParams(payload),
1919
- transformResponse: (payload2) => transformPaths(payload2, [
1920
- {
1921
- transformFn: transformRESTTimestampToSDKTimestamp,
1922
- paths: [
1923
- { path: "historyEntries.entryTime" },
1924
- { path: "historyEntries.event.created.subscription.createdDate" },
1925
- { path: "historyEntries.event.created.subscription.updatedDate" },
1926
- { path: "historyEntries.event.created.subscription.startDate" },
1927
- { path: "historyEntries.event.created.subscription.endDate" },
1928
- {
1929
- path: "historyEntries.event.created.subscription.billingStatus.nextBillingDate"
1930
- },
1931
- {
1932
- path: "historyEntries.event.created.subscription.billingStatus.previousBillingDate"
1933
- },
1934
- {
1935
- path: "historyEntries.event.created.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
1936
- },
1937
- {
1938
- path: "historyEntries.event.created.subscription.billingStatus.freeTrialData.startDate"
1939
- },
1940
- {
1941
- path: "historyEntries.event.created.subscription.billingStatus.freeTrialData.endDate"
1942
- },
1943
- {
1944
- path: "historyEntries.event.created.subscription.billingStatus.updateBillingDateData.paidUntil"
1945
- },
1946
- {
1947
- path: "historyEntries.event.created.subscription.billingStatus.gracePeriodData.startDate"
1948
- },
1949
- {
1950
- path: "historyEntries.event.created.subscription.billingStatus.gracePeriodData.endDate"
1951
- },
1952
- {
1953
- path: "historyEntries.event.created.subscription.pauseInfo.startDate"
1954
- },
1955
- {
1956
- path: "historyEntries.event.created.subscription.pauseInfo.resumeDate"
1957
- },
1958
- {
1959
- path: "historyEntries.event.created.subscription.cancellationInfo.cancellationDate"
1960
- },
1961
- {
1962
- path: "historyEntries.event.created.subscription.specificDatePendingUpdateData.executionDate"
1963
- },
1964
- { path: "historyEntries.event.updated.current.createdDate" },
1965
- { path: "historyEntries.event.updated.current.updatedDate" },
1966
- { path: "historyEntries.event.updated.current.startDate" },
1967
- { path: "historyEntries.event.updated.current.endDate" },
1968
- {
1969
- path: "historyEntries.event.updated.current.billingStatus.nextBillingDate"
1970
- },
1971
- {
1972
- path: "historyEntries.event.updated.current.billingStatus.previousBillingDate"
1973
- },
1974
- {
1975
- path: "historyEntries.event.updated.current.billingStatus.latestPaymentData.initialFailedPaymentDate"
1976
- },
1977
- {
1978
- path: "historyEntries.event.updated.current.billingStatus.freeTrialData.startDate"
1979
- },
1980
- {
1981
- path: "historyEntries.event.updated.current.billingStatus.freeTrialData.endDate"
1982
- },
1983
- {
1984
- path: "historyEntries.event.updated.current.billingStatus.updateBillingDateData.paidUntil"
1985
- },
1986
- {
1987
- path: "historyEntries.event.updated.current.billingStatus.gracePeriodData.startDate"
1988
- },
1989
- {
1990
- path: "historyEntries.event.updated.current.billingStatus.gracePeriodData.endDate"
1991
- },
1992
- {
1993
- path: "historyEntries.event.updated.current.pauseInfo.startDate"
1994
- },
1995
- {
1996
- path: "historyEntries.event.updated.current.pauseInfo.resumeDate"
1997
- },
1998
- {
1999
- path: "historyEntries.event.updated.current.cancellationInfo.cancellationDate"
2000
- },
2001
- {
2002
- path: "historyEntries.event.updated.current.specificDatePendingUpdateData.executionDate"
2003
- },
2004
- { path: "historyEntries.event.updated.previous.createdDate" },
2005
- { path: "historyEntries.event.updated.previous.updatedDate" },
2006
- { path: "historyEntries.event.updated.previous.startDate" },
2007
- { path: "historyEntries.event.updated.previous.endDate" },
2008
- {
2009
- path: "historyEntries.event.updated.previous.billingStatus.nextBillingDate"
2010
- },
2011
- {
2012
- path: "historyEntries.event.updated.previous.billingStatus.previousBillingDate"
2013
- },
2014
- {
2015
- path: "historyEntries.event.updated.previous.billingStatus.latestPaymentData.initialFailedPaymentDate"
2016
- },
2017
- {
2018
- path: "historyEntries.event.updated.previous.billingStatus.freeTrialData.startDate"
2019
- },
2020
- {
2021
- path: "historyEntries.event.updated.previous.billingStatus.freeTrialData.endDate"
2022
- },
2023
- {
2024
- path: "historyEntries.event.updated.previous.billingStatus.updateBillingDateData.paidUntil"
2025
- },
2026
- {
2027
- path: "historyEntries.event.updated.previous.billingStatus.gracePeriodData.startDate"
2028
- },
2029
- {
2030
- path: "historyEntries.event.updated.previous.billingStatus.gracePeriodData.endDate"
2031
- },
2032
- {
2033
- path: "historyEntries.event.updated.previous.pauseInfo.startDate"
2034
- },
2035
- {
2036
- path: "historyEntries.event.updated.previous.pauseInfo.resumeDate"
2037
- },
2038
- {
2039
- path: "historyEntries.event.updated.previous.cancellationInfo.cancellationDate"
2040
- },
2041
- {
2042
- path: "historyEntries.event.updated.previous.specificDatePendingUpdateData.executionDate"
2043
- },
2044
- {
2045
- path: "historyEntries.event.activated.subscription.createdDate"
2046
- },
2047
- {
2048
- path: "historyEntries.event.activated.subscription.updatedDate"
2049
- },
2050
- { path: "historyEntries.event.activated.subscription.startDate" },
2051
- { path: "historyEntries.event.activated.subscription.endDate" },
2052
- {
2053
- path: "historyEntries.event.activated.subscription.billingStatus.nextBillingDate"
2054
- },
2055
- {
2056
- path: "historyEntries.event.activated.subscription.billingStatus.previousBillingDate"
2057
- },
2058
- {
2059
- path: "historyEntries.event.activated.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2060
- },
2061
- {
2062
- path: "historyEntries.event.activated.subscription.billingStatus.freeTrialData.startDate"
2063
- },
2064
- {
2065
- path: "historyEntries.event.activated.subscription.billingStatus.freeTrialData.endDate"
2066
- },
2067
- {
2068
- path: "historyEntries.event.activated.subscription.billingStatus.updateBillingDateData.paidUntil"
2069
- },
2070
- {
2071
- path: "historyEntries.event.activated.subscription.billingStatus.gracePeriodData.startDate"
2072
- },
2073
- {
2074
- path: "historyEntries.event.activated.subscription.billingStatus.gracePeriodData.endDate"
2075
- },
2076
- {
2077
- path: "historyEntries.event.activated.subscription.pauseInfo.startDate"
2078
- },
2079
- {
2080
- path: "historyEntries.event.activated.subscription.pauseInfo.resumeDate"
2081
- },
2082
- {
2083
- path: "historyEntries.event.activated.subscription.cancellationInfo.cancellationDate"
2084
- },
2085
- {
2086
- path: "historyEntries.event.activated.subscription.specificDatePendingUpdateData.executionDate"
2087
- },
2088
- { path: "historyEntries.event.ended.subscription.createdDate" },
2089
- { path: "historyEntries.event.ended.subscription.updatedDate" },
2090
- { path: "historyEntries.event.ended.subscription.startDate" },
2091
- { path: "historyEntries.event.ended.subscription.endDate" },
2092
- {
2093
- path: "historyEntries.event.ended.subscription.billingStatus.nextBillingDate"
2094
- },
2095
- {
2096
- path: "historyEntries.event.ended.subscription.billingStatus.previousBillingDate"
2097
- },
2098
- {
2099
- path: "historyEntries.event.ended.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2100
- },
2101
- {
2102
- path: "historyEntries.event.ended.subscription.billingStatus.freeTrialData.startDate"
2103
- },
2104
- {
2105
- path: "historyEntries.event.ended.subscription.billingStatus.freeTrialData.endDate"
2106
- },
2107
- {
2108
- path: "historyEntries.event.ended.subscription.billingStatus.updateBillingDateData.paidUntil"
2109
- },
2110
- {
2111
- path: "historyEntries.event.ended.subscription.billingStatus.gracePeriodData.startDate"
2112
- },
2113
- {
2114
- path: "historyEntries.event.ended.subscription.billingStatus.gracePeriodData.endDate"
2115
- },
2116
- {
2117
- path: "historyEntries.event.ended.subscription.pauseInfo.startDate"
2118
- },
2119
- {
2120
- path: "historyEntries.event.ended.subscription.pauseInfo.resumeDate"
2121
- },
2122
- {
2123
- path: "historyEntries.event.ended.subscription.cancellationInfo.cancellationDate"
2124
- },
2125
- {
2126
- path: "historyEntries.event.ended.subscription.specificDatePendingUpdateData.executionDate"
2127
- },
2128
- {
2129
- path: "historyEntries.event.canceled.subscription.createdDate"
2130
- },
2131
- {
2132
- path: "historyEntries.event.canceled.subscription.updatedDate"
2133
- },
2134
- { path: "historyEntries.event.canceled.subscription.startDate" },
2135
- { path: "historyEntries.event.canceled.subscription.endDate" },
2136
- {
2137
- path: "historyEntries.event.canceled.subscription.billingStatus.nextBillingDate"
2138
- },
2139
- {
2140
- path: "historyEntries.event.canceled.subscription.billingStatus.previousBillingDate"
2141
- },
2142
- {
2143
- path: "historyEntries.event.canceled.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2144
- },
2145
- {
2146
- path: "historyEntries.event.canceled.subscription.billingStatus.freeTrialData.startDate"
2147
- },
2148
- {
2149
- path: "historyEntries.event.canceled.subscription.billingStatus.freeTrialData.endDate"
2150
- },
2151
- {
2152
- path: "historyEntries.event.canceled.subscription.billingStatus.updateBillingDateData.paidUntil"
2153
- },
2154
- {
2155
- path: "historyEntries.event.canceled.subscription.billingStatus.gracePeriodData.startDate"
2156
- },
2157
- {
2158
- path: "historyEntries.event.canceled.subscription.billingStatus.gracePeriodData.endDate"
2159
- },
2160
- {
2161
- path: "historyEntries.event.canceled.subscription.pauseInfo.startDate"
2162
- },
2163
- {
2164
- path: "historyEntries.event.canceled.subscription.pauseInfo.resumeDate"
2165
- },
2166
- {
2167
- path: "historyEntries.event.canceled.subscription.cancellationInfo.cancellationDate"
2168
- },
2169
- {
2170
- path: "historyEntries.event.canceled.subscription.specificDatePendingUpdateData.executionDate"
2171
- },
2172
- { path: "historyEntries.event.paused.subscription.createdDate" },
2173
- { path: "historyEntries.event.paused.subscription.updatedDate" },
2174
- { path: "historyEntries.event.paused.subscription.startDate" },
2175
- { path: "historyEntries.event.paused.subscription.endDate" },
2176
- {
2177
- path: "historyEntries.event.paused.subscription.billingStatus.nextBillingDate"
2178
- },
2179
- {
2180
- path: "historyEntries.event.paused.subscription.billingStatus.previousBillingDate"
2181
- },
2182
- {
2183
- path: "historyEntries.event.paused.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2184
- },
2185
- {
2186
- path: "historyEntries.event.paused.subscription.billingStatus.freeTrialData.startDate"
2187
- },
2188
- {
2189
- path: "historyEntries.event.paused.subscription.billingStatus.freeTrialData.endDate"
2190
- },
2191
- {
2192
- path: "historyEntries.event.paused.subscription.billingStatus.updateBillingDateData.paidUntil"
2193
- },
2194
- {
2195
- path: "historyEntries.event.paused.subscription.billingStatus.gracePeriodData.startDate"
2196
- },
2197
- {
2198
- path: "historyEntries.event.paused.subscription.billingStatus.gracePeriodData.endDate"
2199
- },
2200
- {
2201
- path: "historyEntries.event.paused.subscription.pauseInfo.startDate"
2202
- },
2203
- {
2204
- path: "historyEntries.event.paused.subscription.pauseInfo.resumeDate"
2205
- },
2206
- {
2207
- path: "historyEntries.event.paused.subscription.cancellationInfo.cancellationDate"
2208
- },
2209
- {
2210
- path: "historyEntries.event.paused.subscription.specificDatePendingUpdateData.executionDate"
2211
- },
2212
- { path: "historyEntries.event.resumed.subscription.createdDate" },
2213
- { path: "historyEntries.event.resumed.subscription.updatedDate" },
2214
- { path: "historyEntries.event.resumed.subscription.startDate" },
2215
- { path: "historyEntries.event.resumed.subscription.endDate" },
2216
- {
2217
- path: "historyEntries.event.resumed.subscription.billingStatus.nextBillingDate"
2218
- },
2219
- {
2220
- path: "historyEntries.event.resumed.subscription.billingStatus.previousBillingDate"
2221
- },
2222
- {
2223
- path: "historyEntries.event.resumed.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2224
- },
2225
- {
2226
- path: "historyEntries.event.resumed.subscription.billingStatus.freeTrialData.startDate"
2227
- },
2228
- {
2229
- path: "historyEntries.event.resumed.subscription.billingStatus.freeTrialData.endDate"
2230
- },
2231
- {
2232
- path: "historyEntries.event.resumed.subscription.billingStatus.updateBillingDateData.paidUntil"
2233
- },
2234
- {
2235
- path: "historyEntries.event.resumed.subscription.billingStatus.gracePeriodData.startDate"
2236
- },
2237
- {
2238
- path: "historyEntries.event.resumed.subscription.billingStatus.gracePeriodData.endDate"
2239
- },
2240
- {
2241
- path: "historyEntries.event.resumed.subscription.pauseInfo.startDate"
2242
- },
2243
- {
2244
- path: "historyEntries.event.resumed.subscription.pauseInfo.resumeDate"
2245
- },
2246
- {
2247
- path: "historyEntries.event.resumed.subscription.cancellationInfo.cancellationDate"
2248
- },
2249
- {
2250
- path: "historyEntries.event.resumed.subscription.specificDatePendingUpdateData.executionDate"
2251
- },
2252
- { path: "historyEntries.event.resumed.pauseInfo.startDate" },
2253
- { path: "historyEntries.event.resumed.pauseInfo.resumeDate" },
2254
- {
2255
- path: "historyEntries.event.pauseRequested.subscription.createdDate"
2256
- },
2257
- {
2258
- path: "historyEntries.event.pauseRequested.subscription.updatedDate"
2259
- },
2260
- {
2261
- path: "historyEntries.event.pauseRequested.subscription.startDate"
2262
- },
2263
- {
2264
- path: "historyEntries.event.pauseRequested.subscription.endDate"
2265
- },
2266
- {
2267
- path: "historyEntries.event.pauseRequested.subscription.billingStatus.nextBillingDate"
2268
- },
2269
- {
2270
- path: "historyEntries.event.pauseRequested.subscription.billingStatus.previousBillingDate"
2271
- },
2272
- {
2273
- path: "historyEntries.event.pauseRequested.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2274
- },
2275
- {
2276
- path: "historyEntries.event.pauseRequested.subscription.billingStatus.freeTrialData.startDate"
2277
- },
2278
- {
2279
- path: "historyEntries.event.pauseRequested.subscription.billingStatus.freeTrialData.endDate"
2280
- },
2281
- {
2282
- path: "historyEntries.event.pauseRequested.subscription.billingStatus.updateBillingDateData.paidUntil"
2283
- },
2284
- {
2285
- path: "historyEntries.event.pauseRequested.subscription.billingStatus.gracePeriodData.startDate"
2286
- },
2287
- {
2288
- path: "historyEntries.event.pauseRequested.subscription.billingStatus.gracePeriodData.endDate"
2289
- },
2290
- {
2291
- path: "historyEntries.event.pauseRequested.subscription.pauseInfo.startDate"
2292
- },
2293
- {
2294
- path: "historyEntries.event.pauseRequested.subscription.pauseInfo.resumeDate"
2295
- },
2296
- {
2297
- path: "historyEntries.event.pauseRequested.subscription.cancellationInfo.cancellationDate"
2298
- },
2299
- {
2300
- path: "historyEntries.event.pauseRequested.subscription.specificDatePendingUpdateData.executionDate"
2301
- },
2302
- {
2303
- path: "historyEntries.event.resumeRequested.subscription.createdDate"
2304
- },
2305
- {
2306
- path: "historyEntries.event.resumeRequested.subscription.updatedDate"
2307
- },
2308
- {
2309
- path: "historyEntries.event.resumeRequested.subscription.startDate"
2310
- },
2311
- {
2312
- path: "historyEntries.event.resumeRequested.subscription.endDate"
2313
- },
2314
- {
2315
- path: "historyEntries.event.resumeRequested.subscription.billingStatus.nextBillingDate"
2316
- },
2317
- {
2318
- path: "historyEntries.event.resumeRequested.subscription.billingStatus.previousBillingDate"
2319
- },
2320
- {
2321
- path: "historyEntries.event.resumeRequested.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2322
- },
2323
- {
2324
- path: "historyEntries.event.resumeRequested.subscription.billingStatus.freeTrialData.startDate"
2325
- },
2326
- {
2327
- path: "historyEntries.event.resumeRequested.subscription.billingStatus.freeTrialData.endDate"
2328
- },
2329
- {
2330
- path: "historyEntries.event.resumeRequested.subscription.billingStatus.updateBillingDateData.paidUntil"
2331
- },
2332
- {
2333
- path: "historyEntries.event.resumeRequested.subscription.billingStatus.gracePeriodData.startDate"
2334
- },
2335
- {
2336
- path: "historyEntries.event.resumeRequested.subscription.billingStatus.gracePeriodData.endDate"
2337
- },
2338
- {
2339
- path: "historyEntries.event.resumeRequested.subscription.pauseInfo.startDate"
2340
- },
2341
- {
2342
- path: "historyEntries.event.resumeRequested.subscription.pauseInfo.resumeDate"
2343
- },
2344
- {
2345
- path: "historyEntries.event.resumeRequested.subscription.cancellationInfo.cancellationDate"
2346
- },
2347
- {
2348
- path: "historyEntries.event.resumeRequested.subscription.specificDatePendingUpdateData.executionDate"
2349
- },
2350
- {
2351
- path: "historyEntries.event.scheduledPauseCanceled.subscription.createdDate"
2352
- },
2353
- {
2354
- path: "historyEntries.event.scheduledPauseCanceled.subscription.updatedDate"
2355
- },
2356
- {
2357
- path: "historyEntries.event.scheduledPauseCanceled.subscription.startDate"
2358
- },
2359
- {
2360
- path: "historyEntries.event.scheduledPauseCanceled.subscription.endDate"
2361
- },
2362
- {
2363
- path: "historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.nextBillingDate"
2364
- },
2365
- {
2366
- path: "historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.previousBillingDate"
2367
- },
2368
- {
2369
- path: "historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2370
- },
2371
- {
2372
- path: "historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.freeTrialData.startDate"
2373
- },
2374
- {
2375
- path: "historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.freeTrialData.endDate"
2376
- },
2377
- {
2378
- path: "historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.updateBillingDateData.paidUntil"
2379
- },
2380
- {
2381
- path: "historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.gracePeriodData.startDate"
2382
- },
2383
- {
2384
- path: "historyEntries.event.scheduledPauseCanceled.subscription.billingStatus.gracePeriodData.endDate"
2385
- },
2386
- {
2387
- path: "historyEntries.event.scheduledPauseCanceled.subscription.pauseInfo.startDate"
2388
- },
2389
- {
2390
- path: "historyEntries.event.scheduledPauseCanceled.subscription.pauseInfo.resumeDate"
2391
- },
2392
- {
2393
- path: "historyEntries.event.scheduledPauseCanceled.subscription.cancellationInfo.cancellationDate"
2394
- },
2395
- {
2396
- path: "historyEntries.event.scheduledPauseCanceled.subscription.specificDatePendingUpdateData.executionDate"
2397
- },
2398
- {
2399
- path: "historyEntries.event.scheduledResumeCanceled.subscription.createdDate"
2400
- },
2401
- {
2402
- path: "historyEntries.event.scheduledResumeCanceled.subscription.updatedDate"
2403
- },
2404
- {
2405
- path: "historyEntries.event.scheduledResumeCanceled.subscription.startDate"
2406
- },
2407
- {
2408
- path: "historyEntries.event.scheduledResumeCanceled.subscription.endDate"
2409
- },
2410
- {
2411
- path: "historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.nextBillingDate"
2412
- },
2413
- {
2414
- path: "historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.previousBillingDate"
2415
- },
2416
- {
2417
- path: "historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2418
- },
2419
- {
2420
- path: "historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.freeTrialData.startDate"
2421
- },
2422
- {
2423
- path: "historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.freeTrialData.endDate"
2424
- },
2425
- {
2426
- path: "historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.updateBillingDateData.paidUntil"
2427
- },
2428
- {
2429
- path: "historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.gracePeriodData.startDate"
2430
- },
2431
- {
2432
- path: "historyEntries.event.scheduledResumeCanceled.subscription.billingStatus.gracePeriodData.endDate"
2433
- },
2434
- {
2435
- path: "historyEntries.event.scheduledResumeCanceled.subscription.pauseInfo.startDate"
2436
- },
2437
- {
2438
- path: "historyEntries.event.scheduledResumeCanceled.subscription.pauseInfo.resumeDate"
2439
- },
2440
- {
2441
- path: "historyEntries.event.scheduledResumeCanceled.subscription.cancellationInfo.cancellationDate"
2442
- },
2443
- {
2444
- path: "historyEntries.event.scheduledResumeCanceled.subscription.specificDatePendingUpdateData.executionDate"
2445
- },
2446
- {
2447
- path: "historyEntries.event.billingCycleStarted.subscription.createdDate"
2448
- },
2449
- {
2450
- path: "historyEntries.event.billingCycleStarted.subscription.updatedDate"
2451
- },
2452
- {
2453
- path: "historyEntries.event.billingCycleStarted.subscription.startDate"
2454
- },
2455
- {
2456
- path: "historyEntries.event.billingCycleStarted.subscription.endDate"
2457
- },
2458
- {
2459
- path: "historyEntries.event.billingCycleStarted.subscription.billingStatus.nextBillingDate"
2460
- },
2461
- {
2462
- path: "historyEntries.event.billingCycleStarted.subscription.billingStatus.previousBillingDate"
2463
- },
2464
- {
2465
- path: "historyEntries.event.billingCycleStarted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2466
- },
2467
- {
2468
- path: "historyEntries.event.billingCycleStarted.subscription.billingStatus.freeTrialData.startDate"
2469
- },
2470
- {
2471
- path: "historyEntries.event.billingCycleStarted.subscription.billingStatus.freeTrialData.endDate"
2472
- },
2473
- {
2474
- path: "historyEntries.event.billingCycleStarted.subscription.billingStatus.updateBillingDateData.paidUntil"
2475
- },
2476
- {
2477
- path: "historyEntries.event.billingCycleStarted.subscription.billingStatus.gracePeriodData.startDate"
2478
- },
2479
- {
2480
- path: "historyEntries.event.billingCycleStarted.subscription.billingStatus.gracePeriodData.endDate"
2481
- },
2482
- {
2483
- path: "historyEntries.event.billingCycleStarted.subscription.pauseInfo.startDate"
2484
- },
2485
- {
2486
- path: "historyEntries.event.billingCycleStarted.subscription.pauseInfo.resumeDate"
2487
- },
2488
- {
2489
- path: "historyEntries.event.billingCycleStarted.subscription.cancellationInfo.cancellationDate"
2490
- },
2491
- {
2492
- path: "historyEntries.event.billingCycleStarted.subscription.specificDatePendingUpdateData.executionDate"
2493
- },
2494
- {
2495
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.createdDate"
2496
- },
2497
- {
2498
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.updatedDate"
2499
- },
2500
- {
2501
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.startDate"
2502
- },
2503
- {
2504
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.endDate"
2505
- },
2506
- {
2507
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.nextBillingDate"
2508
- },
2509
- {
2510
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.previousBillingDate"
2511
- },
2512
- {
2513
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2514
- },
2515
- {
2516
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.freeTrialData.startDate"
2517
- },
2518
- {
2519
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.freeTrialData.endDate"
2520
- },
2521
- {
2522
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.updateBillingDateData.paidUntil"
2523
- },
2524
- {
2525
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.gracePeriodData.startDate"
2526
- },
2527
- {
2528
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.billingStatus.gracePeriodData.endDate"
2529
- },
2530
- {
2531
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.pauseInfo.startDate"
2532
- },
2533
- {
2534
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.pauseInfo.resumeDate"
2535
- },
2536
- {
2537
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.cancellationInfo.cancellationDate"
2538
- },
2539
- {
2540
- path: "historyEntries.event.autoRenewalTurnedOn.subscription.specificDatePendingUpdateData.executionDate"
2541
- },
2542
- {
2543
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.createdDate"
2544
- },
2545
- {
2546
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.updatedDate"
2547
- },
2548
- {
2549
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.startDate"
2550
- },
2551
- {
2552
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.endDate"
2553
- },
2554
- {
2555
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.nextBillingDate"
2556
- },
2557
- {
2558
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.previousBillingDate"
2559
- },
2560
- {
2561
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2562
- },
2563
- {
2564
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.freeTrialData.startDate"
2565
- },
2566
- {
2567
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.freeTrialData.endDate"
2568
- },
2569
- {
2570
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.updateBillingDateData.paidUntil"
2571
- },
2572
- {
2573
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.gracePeriodData.startDate"
2574
- },
2575
- {
2576
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.billingStatus.gracePeriodData.endDate"
2577
- },
2578
- {
2579
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.pauseInfo.startDate"
2580
- },
2581
- {
2582
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.pauseInfo.resumeDate"
2583
- },
2584
- {
2585
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.cancellationInfo.cancellationDate"
2586
- },
2587
- {
2588
- path: "historyEntries.event.autoRenewalTurnedOff.subscription.specificDatePendingUpdateData.executionDate"
2589
- },
2590
- {
2591
- path: "historyEntries.event.cycleReadyToPay.subscription.createdDate"
2592
- },
2593
- {
2594
- path: "historyEntries.event.cycleReadyToPay.subscription.updatedDate"
2595
- },
2596
- {
2597
- path: "historyEntries.event.cycleReadyToPay.subscription.startDate"
2598
- },
2599
- {
2600
- path: "historyEntries.event.cycleReadyToPay.subscription.endDate"
2601
- },
2602
- {
2603
- path: "historyEntries.event.cycleReadyToPay.subscription.billingStatus.nextBillingDate"
2604
- },
2605
- {
2606
- path: "historyEntries.event.cycleReadyToPay.subscription.billingStatus.previousBillingDate"
2607
- },
2608
- {
2609
- path: "historyEntries.event.cycleReadyToPay.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2610
- },
2611
- {
2612
- path: "historyEntries.event.cycleReadyToPay.subscription.billingStatus.freeTrialData.startDate"
2613
- },
2614
- {
2615
- path: "historyEntries.event.cycleReadyToPay.subscription.billingStatus.freeTrialData.endDate"
2616
- },
2617
- {
2618
- path: "historyEntries.event.cycleReadyToPay.subscription.billingStatus.updateBillingDateData.paidUntil"
2619
- },
2620
- {
2621
- path: "historyEntries.event.cycleReadyToPay.subscription.billingStatus.gracePeriodData.startDate"
2622
- },
2623
- {
2624
- path: "historyEntries.event.cycleReadyToPay.subscription.billingStatus.gracePeriodData.endDate"
2625
- },
2626
- {
2627
- path: "historyEntries.event.cycleReadyToPay.subscription.pauseInfo.startDate"
2628
- },
2629
- {
2630
- path: "historyEntries.event.cycleReadyToPay.subscription.pauseInfo.resumeDate"
2631
- },
2632
- {
2633
- path: "historyEntries.event.cycleReadyToPay.subscription.cancellationInfo.cancellationDate"
2634
- },
2635
- {
2636
- path: "historyEntries.event.cycleReadyToPay.subscription.specificDatePendingUpdateData.executionDate"
2637
- },
2638
- {
2639
- path: "historyEntries.event.extended.subscription.createdDate"
2640
- },
2641
- {
2642
- path: "historyEntries.event.extended.subscription.updatedDate"
2643
- },
2644
- { path: "historyEntries.event.extended.subscription.startDate" },
2645
- { path: "historyEntries.event.extended.subscription.endDate" },
2646
- {
2647
- path: "historyEntries.event.extended.subscription.billingStatus.nextBillingDate"
2648
- },
2649
- {
2650
- path: "historyEntries.event.extended.subscription.billingStatus.previousBillingDate"
2651
- },
2652
- {
2653
- path: "historyEntries.event.extended.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2654
- },
2655
- {
2656
- path: "historyEntries.event.extended.subscription.billingStatus.freeTrialData.startDate"
2657
- },
2658
- {
2659
- path: "historyEntries.event.extended.subscription.billingStatus.freeTrialData.endDate"
2660
- },
2661
- {
2662
- path: "historyEntries.event.extended.subscription.billingStatus.updateBillingDateData.paidUntil"
2663
- },
2664
- {
2665
- path: "historyEntries.event.extended.subscription.billingStatus.gracePeriodData.startDate"
2666
- },
2667
- {
2668
- path: "historyEntries.event.extended.subscription.billingStatus.gracePeriodData.endDate"
2669
- },
2670
- {
2671
- path: "historyEntries.event.extended.subscription.pauseInfo.startDate"
2672
- },
2673
- {
2674
- path: "historyEntries.event.extended.subscription.pauseInfo.resumeDate"
2675
- },
2676
- {
2677
- path: "historyEntries.event.extended.subscription.cancellationInfo.cancellationDate"
2678
- },
2679
- {
2680
- path: "historyEntries.event.extended.subscription.specificDatePendingUpdateData.executionDate"
2681
- },
2682
- {
2683
- path: "historyEntries.event.initialPurchaseCompleted.subscription.createdDate"
2684
- },
2685
- {
2686
- path: "historyEntries.event.initialPurchaseCompleted.subscription.updatedDate"
2687
- },
2688
- {
2689
- path: "historyEntries.event.initialPurchaseCompleted.subscription.startDate"
2690
- },
2691
- {
2692
- path: "historyEntries.event.initialPurchaseCompleted.subscription.endDate"
2693
- },
2694
- {
2695
- path: "historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.nextBillingDate"
2696
- },
2697
- {
2698
- path: "historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.previousBillingDate"
2699
- },
2700
- {
2701
- path: "historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2702
- },
2703
- {
2704
- path: "historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.freeTrialData.startDate"
2705
- },
2706
- {
2707
- path: "historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.freeTrialData.endDate"
2708
- },
2709
- {
2710
- path: "historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.updateBillingDateData.paidUntil"
2711
- },
2712
- {
2713
- path: "historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.gracePeriodData.startDate"
2714
- },
2715
- {
2716
- path: "historyEntries.event.initialPurchaseCompleted.subscription.billingStatus.gracePeriodData.endDate"
2717
- },
2718
- {
2719
- path: "historyEntries.event.initialPurchaseCompleted.subscription.pauseInfo.startDate"
2720
- },
2721
- {
2722
- path: "historyEntries.event.initialPurchaseCompleted.subscription.pauseInfo.resumeDate"
2723
- },
2724
- {
2725
- path: "historyEntries.event.initialPurchaseCompleted.subscription.cancellationInfo.cancellationDate"
2726
- },
2727
- {
2728
- path: "historyEntries.event.initialPurchaseCompleted.subscription.specificDatePendingUpdateData.executionDate"
2729
- },
2730
- {
2731
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.createdDate"
2732
- },
2733
- {
2734
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.updatedDate"
2735
- },
2736
- {
2737
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.startDate"
2738
- },
2739
- {
2740
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.endDate"
2741
- },
2742
- {
2743
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.nextBillingDate"
2744
- },
2745
- {
2746
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.previousBillingDate"
2747
- },
2748
- {
2749
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2750
- },
2751
- {
2752
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.freeTrialData.startDate"
2753
- },
2754
- {
2755
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.freeTrialData.endDate"
2756
- },
2757
- {
2758
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.updateBillingDateData.paidUntil"
2759
- },
2760
- {
2761
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.gracePeriodData.startDate"
2762
- },
2763
- {
2764
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.billingStatus.gracePeriodData.endDate"
2765
- },
2766
- {
2767
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.pauseInfo.startDate"
2768
- },
2769
- {
2770
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.pauseInfo.resumeDate"
2771
- },
2772
- {
2773
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.cancellationInfo.cancellationDate"
2774
- },
2775
- {
2776
- path: "historyEntries.event.latestInvoiceMarkedAsPaid.subscription.specificDatePendingUpdateData.executionDate"
2777
- },
2778
- { path: "historyEntries.event.revived.subscription.createdDate" },
2779
- { path: "historyEntries.event.revived.subscription.updatedDate" },
2780
- { path: "historyEntries.event.revived.subscription.startDate" },
2781
- { path: "historyEntries.event.revived.subscription.endDate" },
2782
- {
2783
- path: "historyEntries.event.revived.subscription.billingStatus.nextBillingDate"
2784
- },
2785
- {
2786
- path: "historyEntries.event.revived.subscription.billingStatus.previousBillingDate"
2787
- },
2788
- {
2789
- path: "historyEntries.event.revived.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2790
- },
2791
- {
2792
- path: "historyEntries.event.revived.subscription.billingStatus.freeTrialData.startDate"
2793
- },
2794
- {
2795
- path: "historyEntries.event.revived.subscription.billingStatus.freeTrialData.endDate"
2796
- },
2797
- {
2798
- path: "historyEntries.event.revived.subscription.billingStatus.updateBillingDateData.paidUntil"
2799
- },
2800
- {
2801
- path: "historyEntries.event.revived.subscription.billingStatus.gracePeriodData.startDate"
2802
- },
2803
- {
2804
- path: "historyEntries.event.revived.subscription.billingStatus.gracePeriodData.endDate"
2805
- },
2806
- {
2807
- path: "historyEntries.event.revived.subscription.pauseInfo.startDate"
2808
- },
2809
- {
2810
- path: "historyEntries.event.revived.subscription.pauseInfo.resumeDate"
2811
- },
2812
- {
2813
- path: "historyEntries.event.revived.subscription.cancellationInfo.cancellationDate"
2814
- },
2815
- {
2816
- path: "historyEntries.event.revived.subscription.specificDatePendingUpdateData.executionDate"
2817
- },
2818
- { path: "historyEntries.event.billingDateUpdated.billingDate" },
2819
- {
2820
- path: "historyEntries.event.billingDateUpdated.subscription.createdDate"
2821
- },
2822
- {
2823
- path: "historyEntries.event.billingDateUpdated.subscription.updatedDate"
2824
- },
2825
- {
2826
- path: "historyEntries.event.billingDateUpdated.subscription.startDate"
2827
- },
2828
- {
2829
- path: "historyEntries.event.billingDateUpdated.subscription.endDate"
2830
- },
2831
- {
2832
- path: "historyEntries.event.billingDateUpdated.subscription.billingStatus.nextBillingDate"
2833
- },
2834
- {
2835
- path: "historyEntries.event.billingDateUpdated.subscription.billingStatus.previousBillingDate"
2836
- },
2837
- {
2838
- path: "historyEntries.event.billingDateUpdated.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2839
- },
2840
- {
2841
- path: "historyEntries.event.billingDateUpdated.subscription.billingStatus.freeTrialData.startDate"
2842
- },
2843
- {
2844
- path: "historyEntries.event.billingDateUpdated.subscription.billingStatus.freeTrialData.endDate"
2845
- },
2846
- {
2847
- path: "historyEntries.event.billingDateUpdated.subscription.billingStatus.updateBillingDateData.paidUntil"
2848
- },
2849
- {
2850
- path: "historyEntries.event.billingDateUpdated.subscription.billingStatus.gracePeriodData.startDate"
2851
- },
2852
- {
2853
- path: "historyEntries.event.billingDateUpdated.subscription.billingStatus.gracePeriodData.endDate"
2854
- },
2855
- {
2856
- path: "historyEntries.event.billingDateUpdated.subscription.pauseInfo.startDate"
2857
- },
2858
- {
2859
- path: "historyEntries.event.billingDateUpdated.subscription.pauseInfo.resumeDate"
2860
- },
2861
- {
2862
- path: "historyEntries.event.billingDateUpdated.subscription.cancellationInfo.cancellationDate"
2863
- },
2864
- {
2865
- path: "historyEntries.event.billingDateUpdated.subscription.specificDatePendingUpdateData.executionDate"
2866
- },
2867
- {
2868
- path: "historyEntries.event.futureUpdatesRequested.subscription.createdDate"
2869
- },
2870
- {
2871
- path: "historyEntries.event.futureUpdatesRequested.subscription.updatedDate"
2872
- },
2873
- {
2874
- path: "historyEntries.event.futureUpdatesRequested.subscription.startDate"
2875
- },
2876
- {
2877
- path: "historyEntries.event.futureUpdatesRequested.subscription.endDate"
2878
- },
2879
- {
2880
- path: "historyEntries.event.futureUpdatesRequested.subscription.billingStatus.nextBillingDate"
2881
- },
2882
- {
2883
- path: "historyEntries.event.futureUpdatesRequested.subscription.billingStatus.previousBillingDate"
2884
- },
2885
- {
2886
- path: "historyEntries.event.futureUpdatesRequested.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2887
- },
2888
- {
2889
- path: "historyEntries.event.futureUpdatesRequested.subscription.billingStatus.freeTrialData.startDate"
2890
- },
2891
- {
2892
- path: "historyEntries.event.futureUpdatesRequested.subscription.billingStatus.freeTrialData.endDate"
2893
- },
2894
- {
2895
- path: "historyEntries.event.futureUpdatesRequested.subscription.billingStatus.updateBillingDateData.paidUntil"
2896
- },
2897
- {
2898
- path: "historyEntries.event.futureUpdatesRequested.subscription.billingStatus.gracePeriodData.startDate"
2899
- },
2900
- {
2901
- path: "historyEntries.event.futureUpdatesRequested.subscription.billingStatus.gracePeriodData.endDate"
2902
- },
2903
- {
2904
- path: "historyEntries.event.futureUpdatesRequested.subscription.pauseInfo.startDate"
2905
- },
2906
- {
2907
- path: "historyEntries.event.futureUpdatesRequested.subscription.pauseInfo.resumeDate"
2908
- },
2909
- {
2910
- path: "historyEntries.event.futureUpdatesRequested.subscription.cancellationInfo.cancellationDate"
2911
- },
2912
- {
2913
- path: "historyEntries.event.futureUpdatesRequested.subscription.specificDatePendingUpdateData.executionDate"
2914
- },
2915
- {
2916
- path: "historyEntries.event.updatesApplied.subscription.createdDate"
2917
- },
2918
- {
2919
- path: "historyEntries.event.updatesApplied.subscription.updatedDate"
2920
- },
2921
- {
2922
- path: "historyEntries.event.updatesApplied.subscription.startDate"
2923
- },
2924
- {
2925
- path: "historyEntries.event.updatesApplied.subscription.endDate"
2926
- },
2927
- {
2928
- path: "historyEntries.event.updatesApplied.subscription.billingStatus.nextBillingDate"
2929
- },
2930
- {
2931
- path: "historyEntries.event.updatesApplied.subscription.billingStatus.previousBillingDate"
2932
- },
2933
- {
2934
- path: "historyEntries.event.updatesApplied.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2935
- },
2936
- {
2937
- path: "historyEntries.event.updatesApplied.subscription.billingStatus.freeTrialData.startDate"
2938
- },
2939
- {
2940
- path: "historyEntries.event.updatesApplied.subscription.billingStatus.freeTrialData.endDate"
2941
- },
2942
- {
2943
- path: "historyEntries.event.updatesApplied.subscription.billingStatus.updateBillingDateData.paidUntil"
2944
- },
2945
- {
2946
- path: "historyEntries.event.updatesApplied.subscription.billingStatus.gracePeriodData.startDate"
2947
- },
2948
- {
2949
- path: "historyEntries.event.updatesApplied.subscription.billingStatus.gracePeriodData.endDate"
2950
- },
2951
- {
2952
- path: "historyEntries.event.updatesApplied.subscription.pauseInfo.startDate"
2953
- },
2954
- {
2955
- path: "historyEntries.event.updatesApplied.subscription.pauseInfo.resumeDate"
2956
- },
2957
- {
2958
- path: "historyEntries.event.updatesApplied.subscription.cancellationInfo.cancellationDate"
2959
- },
2960
- {
2961
- path: "historyEntries.event.updatesApplied.subscription.specificDatePendingUpdateData.executionDate"
2962
- },
2963
- {
2964
- path: "historyEntries.event.resetPendingUpdates.subscription.createdDate"
2965
- },
2966
- {
2967
- path: "historyEntries.event.resetPendingUpdates.subscription.updatedDate"
2968
- },
2969
- {
2970
- path: "historyEntries.event.resetPendingUpdates.subscription.startDate"
2971
- },
2972
- {
2973
- path: "historyEntries.event.resetPendingUpdates.subscription.endDate"
2974
- },
2975
- {
2976
- path: "historyEntries.event.resetPendingUpdates.subscription.billingStatus.nextBillingDate"
2977
- },
2978
- {
2979
- path: "historyEntries.event.resetPendingUpdates.subscription.billingStatus.previousBillingDate"
2980
- },
2981
- {
2982
- path: "historyEntries.event.resetPendingUpdates.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
2983
- },
2984
- {
2985
- path: "historyEntries.event.resetPendingUpdates.subscription.billingStatus.freeTrialData.startDate"
2986
- },
2987
- {
2988
- path: "historyEntries.event.resetPendingUpdates.subscription.billingStatus.freeTrialData.endDate"
2989
- },
2990
- {
2991
- path: "historyEntries.event.resetPendingUpdates.subscription.billingStatus.updateBillingDateData.paidUntil"
2992
- },
2993
- {
2994
- path: "historyEntries.event.resetPendingUpdates.subscription.billingStatus.gracePeriodData.startDate"
2995
- },
2996
- {
2997
- path: "historyEntries.event.resetPendingUpdates.subscription.billingStatus.gracePeriodData.endDate"
2998
- },
2999
- {
3000
- path: "historyEntries.event.resetPendingUpdates.subscription.pauseInfo.startDate"
3001
- },
3002
- {
3003
- path: "historyEntries.event.resetPendingUpdates.subscription.pauseInfo.resumeDate"
3004
- },
3005
- {
3006
- path: "historyEntries.event.resetPendingUpdates.subscription.cancellationInfo.cancellationDate"
3007
- },
3008
- {
3009
- path: "historyEntries.event.resetPendingUpdates.subscription.specificDatePendingUpdateData.executionDate"
3010
- },
3011
- {
3012
- path: "historyEntries.event.gracePeriodStarted.subscription.createdDate"
3013
- },
3014
- {
3015
- path: "historyEntries.event.gracePeriodStarted.subscription.updatedDate"
3016
- },
3017
- {
3018
- path: "historyEntries.event.gracePeriodStarted.subscription.startDate"
3019
- },
3020
- {
3021
- path: "historyEntries.event.gracePeriodStarted.subscription.endDate"
3022
- },
3023
- {
3024
- path: "historyEntries.event.gracePeriodStarted.subscription.billingStatus.nextBillingDate"
3025
- },
3026
- {
3027
- path: "historyEntries.event.gracePeriodStarted.subscription.billingStatus.previousBillingDate"
3028
- },
3029
- {
3030
- path: "historyEntries.event.gracePeriodStarted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
3031
- },
3032
- {
3033
- path: "historyEntries.event.gracePeriodStarted.subscription.billingStatus.freeTrialData.startDate"
3034
- },
3035
- {
3036
- path: "historyEntries.event.gracePeriodStarted.subscription.billingStatus.freeTrialData.endDate"
3037
- },
3038
- {
3039
- path: "historyEntries.event.gracePeriodStarted.subscription.billingStatus.updateBillingDateData.paidUntil"
3040
- },
3041
- {
3042
- path: "historyEntries.event.gracePeriodStarted.subscription.billingStatus.gracePeriodData.startDate"
3043
- },
3044
- {
3045
- path: "historyEntries.event.gracePeriodStarted.subscription.billingStatus.gracePeriodData.endDate"
3046
- },
3047
- {
3048
- path: "historyEntries.event.gracePeriodStarted.subscription.pauseInfo.startDate"
3049
- },
3050
- {
3051
- path: "historyEntries.event.gracePeriodStarted.subscription.pauseInfo.resumeDate"
3052
- },
3053
- {
3054
- path: "historyEntries.event.gracePeriodStarted.subscription.cancellationInfo.cancellationDate"
3055
- },
3056
- {
3057
- path: "historyEntries.event.gracePeriodStarted.subscription.specificDatePendingUpdateData.executionDate"
3058
- },
3059
- {
3060
- path: "historyEntries.event.gracePeriodEnded.subscription.createdDate"
3061
- },
3062
- {
3063
- path: "historyEntries.event.gracePeriodEnded.subscription.updatedDate"
3064
- },
3065
- {
3066
- path: "historyEntries.event.gracePeriodEnded.subscription.startDate"
3067
- },
3068
- {
3069
- path: "historyEntries.event.gracePeriodEnded.subscription.endDate"
3070
- },
3071
- {
3072
- path: "historyEntries.event.gracePeriodEnded.subscription.billingStatus.nextBillingDate"
3073
- },
3074
- {
3075
- path: "historyEntries.event.gracePeriodEnded.subscription.billingStatus.previousBillingDate"
3076
- },
3077
- {
3078
- path: "historyEntries.event.gracePeriodEnded.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
3079
- },
3080
- {
3081
- path: "historyEntries.event.gracePeriodEnded.subscription.billingStatus.freeTrialData.startDate"
3082
- },
3083
- {
3084
- path: "historyEntries.event.gracePeriodEnded.subscription.billingStatus.freeTrialData.endDate"
3085
- },
3086
- {
3087
- path: "historyEntries.event.gracePeriodEnded.subscription.billingStatus.updateBillingDateData.paidUntil"
3088
- },
3089
- {
3090
- path: "historyEntries.event.gracePeriodEnded.subscription.billingStatus.gracePeriodData.startDate"
3091
- },
3092
- {
3093
- path: "historyEntries.event.gracePeriodEnded.subscription.billingStatus.gracePeriodData.endDate"
3094
- },
3095
- {
3096
- path: "historyEntries.event.gracePeriodEnded.subscription.pauseInfo.startDate"
3097
- },
3098
- {
3099
- path: "historyEntries.event.gracePeriodEnded.subscription.pauseInfo.resumeDate"
3100
- },
3101
- {
3102
- path: "historyEntries.event.gracePeriodEnded.subscription.cancellationInfo.cancellationDate"
3103
- },
3104
- {
3105
- path: "historyEntries.event.gracePeriodEnded.subscription.specificDatePendingUpdateData.executionDate"
3106
- },
3107
- {
3108
- path: "historyEntries.event.paymentMethodUpdated.subscription.createdDate"
3109
- },
3110
- {
3111
- path: "historyEntries.event.paymentMethodUpdated.subscription.updatedDate"
3112
- },
3113
- {
3114
- path: "historyEntries.event.paymentMethodUpdated.subscription.startDate"
3115
- },
3116
- {
3117
- path: "historyEntries.event.paymentMethodUpdated.subscription.endDate"
3118
- },
3119
- {
3120
- path: "historyEntries.event.paymentMethodUpdated.subscription.billingStatus.nextBillingDate"
3121
- },
3122
- {
3123
- path: "historyEntries.event.paymentMethodUpdated.subscription.billingStatus.previousBillingDate"
3124
- },
3125
- {
3126
- path: "historyEntries.event.paymentMethodUpdated.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
3127
- },
3128
- {
3129
- path: "historyEntries.event.paymentMethodUpdated.subscription.billingStatus.freeTrialData.startDate"
3130
- },
3131
- {
3132
- path: "historyEntries.event.paymentMethodUpdated.subscription.billingStatus.freeTrialData.endDate"
3133
- },
3134
- {
3135
- path: "historyEntries.event.paymentMethodUpdated.subscription.billingStatus.updateBillingDateData.paidUntil"
3136
- },
3137
- {
3138
- path: "historyEntries.event.paymentMethodUpdated.subscription.billingStatus.gracePeriodData.startDate"
3139
- },
3140
- {
3141
- path: "historyEntries.event.paymentMethodUpdated.subscription.billingStatus.gracePeriodData.endDate"
3142
- },
3143
- {
3144
- path: "historyEntries.event.paymentMethodUpdated.subscription.pauseInfo.startDate"
3145
- },
3146
- {
3147
- path: "historyEntries.event.paymentMethodUpdated.subscription.pauseInfo.resumeDate"
3148
- },
3149
- {
3150
- path: "historyEntries.event.paymentMethodUpdated.subscription.cancellationInfo.cancellationDate"
3151
- },
3152
- {
3153
- path: "historyEntries.event.paymentMethodUpdated.subscription.specificDatePendingUpdateData.executionDate"
3154
- },
3155
- {
3156
- path: "historyEntries.event.collectionMethodUpdated.subscription.createdDate"
3157
- },
3158
- {
3159
- path: "historyEntries.event.collectionMethodUpdated.subscription.updatedDate"
3160
- },
3161
- {
3162
- path: "historyEntries.event.collectionMethodUpdated.subscription.startDate"
3163
- },
3164
- {
3165
- path: "historyEntries.event.collectionMethodUpdated.subscription.endDate"
3166
- },
3167
- {
3168
- path: "historyEntries.event.collectionMethodUpdated.subscription.billingStatus.nextBillingDate"
3169
- },
3170
- {
3171
- path: "historyEntries.event.collectionMethodUpdated.subscription.billingStatus.previousBillingDate"
3172
- },
3173
- {
3174
- path: "historyEntries.event.collectionMethodUpdated.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
3175
- },
3176
- {
3177
- path: "historyEntries.event.collectionMethodUpdated.subscription.billingStatus.freeTrialData.startDate"
3178
- },
3179
- {
3180
- path: "historyEntries.event.collectionMethodUpdated.subscription.billingStatus.freeTrialData.endDate"
3181
- },
3182
- {
3183
- path: "historyEntries.event.collectionMethodUpdated.subscription.billingStatus.updateBillingDateData.paidUntil"
3184
- },
3185
- {
3186
- path: "historyEntries.event.collectionMethodUpdated.subscription.billingStatus.gracePeriodData.startDate"
3187
- },
3188
- {
3189
- path: "historyEntries.event.collectionMethodUpdated.subscription.billingStatus.gracePeriodData.endDate"
3190
- },
3191
- {
3192
- path: "historyEntries.event.collectionMethodUpdated.subscription.pauseInfo.startDate"
3193
- },
3194
- {
3195
- path: "historyEntries.event.collectionMethodUpdated.subscription.pauseInfo.resumeDate"
3196
- },
3197
- {
3198
- path: "historyEntries.event.collectionMethodUpdated.subscription.cancellationInfo.cancellationDate"
3199
- },
3200
- {
3201
- path: "historyEntries.event.collectionMethodUpdated.subscription.specificDatePendingUpdateData.executionDate"
3202
- },
3203
- {
3204
- path: "historyEntries.event.freeTrailStarted.subscription.createdDate"
3205
- },
3206
- {
3207
- path: "historyEntries.event.freeTrailStarted.subscription.updatedDate"
3208
- },
3209
- {
3210
- path: "historyEntries.event.freeTrailStarted.subscription.startDate"
3211
- },
3212
- {
3213
- path: "historyEntries.event.freeTrailStarted.subscription.endDate"
3214
- },
3215
- {
3216
- path: "historyEntries.event.freeTrailStarted.subscription.billingStatus.nextBillingDate"
3217
- },
3218
- {
3219
- path: "historyEntries.event.freeTrailStarted.subscription.billingStatus.previousBillingDate"
3220
- },
3221
- {
3222
- path: "historyEntries.event.freeTrailStarted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
3223
- },
3224
- {
3225
- path: "historyEntries.event.freeTrailStarted.subscription.billingStatus.freeTrialData.startDate"
3226
- },
3227
- {
3228
- path: "historyEntries.event.freeTrailStarted.subscription.billingStatus.freeTrialData.endDate"
3229
- },
3230
- {
3231
- path: "historyEntries.event.freeTrailStarted.subscription.billingStatus.updateBillingDateData.paidUntil"
3232
- },
3233
- {
3234
- path: "historyEntries.event.freeTrailStarted.subscription.billingStatus.gracePeriodData.startDate"
3235
- },
3236
- {
3237
- path: "historyEntries.event.freeTrailStarted.subscription.billingStatus.gracePeriodData.endDate"
3238
- },
3239
- {
3240
- path: "historyEntries.event.freeTrailStarted.subscription.pauseInfo.startDate"
3241
- },
3242
- {
3243
- path: "historyEntries.event.freeTrailStarted.subscription.pauseInfo.resumeDate"
3244
- },
3245
- {
3246
- path: "historyEntries.event.freeTrailStarted.subscription.cancellationInfo.cancellationDate"
3247
- },
3248
- {
3249
- path: "historyEntries.event.freeTrailStarted.subscription.specificDatePendingUpdateData.executionDate"
3250
- },
3251
- {
3252
- path: "historyEntries.event.freeTrailEnded.subscription.createdDate"
3253
- },
3254
- {
3255
- path: "historyEntries.event.freeTrailEnded.subscription.updatedDate"
3256
- },
3257
- {
3258
- path: "historyEntries.event.freeTrailEnded.subscription.startDate"
3259
- },
3260
- {
3261
- path: "historyEntries.event.freeTrailEnded.subscription.endDate"
3262
- },
3263
- {
3264
- path: "historyEntries.event.freeTrailEnded.subscription.billingStatus.nextBillingDate"
3265
- },
3266
- {
3267
- path: "historyEntries.event.freeTrailEnded.subscription.billingStatus.previousBillingDate"
3268
- },
3269
- {
3270
- path: "historyEntries.event.freeTrailEnded.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
3271
- },
3272
- {
3273
- path: "historyEntries.event.freeTrailEnded.subscription.billingStatus.freeTrialData.startDate"
3274
- },
3275
- {
3276
- path: "historyEntries.event.freeTrailEnded.subscription.billingStatus.freeTrialData.endDate"
3277
- },
3278
- {
3279
- path: "historyEntries.event.freeTrailEnded.subscription.billingStatus.updateBillingDateData.paidUntil"
3280
- },
3281
- {
3282
- path: "historyEntries.event.freeTrailEnded.subscription.billingStatus.gracePeriodData.startDate"
3283
- },
3284
- {
3285
- path: "historyEntries.event.freeTrailEnded.subscription.billingStatus.gracePeriodData.endDate"
3286
- },
3287
- {
3288
- path: "historyEntries.event.freeTrailEnded.subscription.pauseInfo.startDate"
3289
- },
3290
- {
3291
- path: "historyEntries.event.freeTrailEnded.subscription.pauseInfo.resumeDate"
3292
- },
3293
- {
3294
- path: "historyEntries.event.freeTrailEnded.subscription.cancellationInfo.cancellationDate"
3295
- },
3296
- {
3297
- path: "historyEntries.event.freeTrailEnded.subscription.specificDatePendingUpdateData.executionDate"
3298
- },
3299
- {
3300
- path: "historyEntries.event.billingCyclePaid.subscription.createdDate"
3301
- },
3302
- {
3303
- path: "historyEntries.event.billingCyclePaid.subscription.updatedDate"
3304
- },
3305
- {
3306
- path: "historyEntries.event.billingCyclePaid.subscription.startDate"
3307
- },
3308
- {
3309
- path: "historyEntries.event.billingCyclePaid.subscription.endDate"
3310
- },
3311
- {
3312
- path: "historyEntries.event.billingCyclePaid.subscription.billingStatus.nextBillingDate"
3313
- },
3314
- {
3315
- path: "historyEntries.event.billingCyclePaid.subscription.billingStatus.previousBillingDate"
3316
- },
3317
- {
3318
- path: "historyEntries.event.billingCyclePaid.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
3319
- },
3320
- {
3321
- path: "historyEntries.event.billingCyclePaid.subscription.billingStatus.freeTrialData.startDate"
3322
- },
3323
- {
3324
- path: "historyEntries.event.billingCyclePaid.subscription.billingStatus.freeTrialData.endDate"
3325
- },
3326
- {
3327
- path: "historyEntries.event.billingCyclePaid.subscription.billingStatus.updateBillingDateData.paidUntil"
3328
- },
3329
- {
3330
- path: "historyEntries.event.billingCyclePaid.subscription.billingStatus.gracePeriodData.startDate"
3331
- },
3332
- {
3333
- path: "historyEntries.event.billingCyclePaid.subscription.billingStatus.gracePeriodData.endDate"
3334
- },
3335
- {
3336
- path: "historyEntries.event.billingCyclePaid.subscription.pauseInfo.startDate"
3337
- },
3338
- {
3339
- path: "historyEntries.event.billingCyclePaid.subscription.pauseInfo.resumeDate"
3340
- },
3341
- {
3342
- path: "historyEntries.event.billingCyclePaid.subscription.cancellationInfo.cancellationDate"
3343
- },
3344
- {
3345
- path: "historyEntries.event.billingCyclePaid.subscription.specificDatePendingUpdateData.executionDate"
3346
- },
3347
- {
3348
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.createdDate"
3349
- },
3350
- {
3351
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.updatedDate"
3352
- },
3353
- {
3354
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.startDate"
3355
- },
3356
- {
3357
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.endDate"
3358
- },
3359
- {
3360
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.nextBillingDate"
3361
- },
3362
- {
3363
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.previousBillingDate"
3364
- },
3365
- {
3366
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
3367
- },
3368
- {
3369
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.freeTrialData.startDate"
3370
- },
3371
- {
3372
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.freeTrialData.endDate"
3373
- },
3374
- {
3375
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.updateBillingDateData.paidUntil"
3376
- },
3377
- {
3378
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.gracePeriodData.startDate"
3379
- },
3380
- {
3381
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.billingStatus.gracePeriodData.endDate"
3382
- },
3383
- {
3384
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.pauseInfo.startDate"
3385
- },
3386
- {
3387
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.pauseInfo.resumeDate"
3388
- },
3389
- {
3390
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.cancellationInfo.cancellationDate"
3391
- },
3392
- {
3393
- path: "historyEntries.event.initiatePaymentMethodSetup.subscription.specificDatePendingUpdateData.executionDate"
3394
- },
3395
- {
3396
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.createdDate"
3397
- },
3398
- {
3399
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.updatedDate"
3400
- },
3401
- {
3402
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.startDate"
3403
- },
3404
- {
3405
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.endDate"
3406
- },
3407
- {
3408
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.nextBillingDate"
3409
- },
3410
- {
3411
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.previousBillingDate"
3412
- },
3413
- {
3414
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
3415
- },
3416
- {
3417
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.freeTrialData.startDate"
3418
- },
3419
- {
3420
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.freeTrialData.endDate"
3421
- },
3422
- {
3423
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.updateBillingDateData.paidUntil"
3424
- },
3425
- {
3426
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.gracePeriodData.startDate"
3427
- },
3428
- {
3429
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.billingStatus.gracePeriodData.endDate"
3430
- },
3431
- {
3432
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.pauseInfo.startDate"
3433
- },
3434
- {
3435
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.pauseInfo.resumeDate"
3436
- },
3437
- {
3438
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.cancellationInfo.cancellationDate"
3439
- },
3440
- {
3441
- path: "historyEntries.event.futurePriceUpdatesRequested.subscription.specificDatePendingUpdateData.executionDate"
3442
- },
3443
- {
3444
- path: "historyEntries.event.subscriptionBoAction.subscription.createdDate"
3445
- },
3446
- {
3447
- path: "historyEntries.event.subscriptionBoAction.subscription.updatedDate"
3448
- },
3449
- {
3450
- path: "historyEntries.event.subscriptionBoAction.subscription.startDate"
3451
- },
3452
- {
3453
- path: "historyEntries.event.subscriptionBoAction.subscription.endDate"
3454
- },
3455
- {
3456
- path: "historyEntries.event.subscriptionBoAction.subscription.billingStatus.nextBillingDate"
3457
- },
3458
- {
3459
- path: "historyEntries.event.subscriptionBoAction.subscription.billingStatus.previousBillingDate"
3460
- },
3461
- {
3462
- path: "historyEntries.event.subscriptionBoAction.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
3463
- },
3464
- {
3465
- path: "historyEntries.event.subscriptionBoAction.subscription.billingStatus.freeTrialData.startDate"
3466
- },
3467
- {
3468
- path: "historyEntries.event.subscriptionBoAction.subscription.billingStatus.freeTrialData.endDate"
3469
- },
3470
- {
3471
- path: "historyEntries.event.subscriptionBoAction.subscription.billingStatus.updateBillingDateData.paidUntil"
3472
- },
3473
- {
3474
- path: "historyEntries.event.subscriptionBoAction.subscription.billingStatus.gracePeriodData.startDate"
3475
- },
3476
- {
3477
- path: "historyEntries.event.subscriptionBoAction.subscription.billingStatus.gracePeriodData.endDate"
3478
- },
3479
- {
3480
- path: "historyEntries.event.subscriptionBoAction.subscription.pauseInfo.startDate"
3481
- },
3482
- {
3483
- path: "historyEntries.event.subscriptionBoAction.subscription.pauseInfo.resumeDate"
3484
- },
3485
- {
3486
- path: "historyEntries.event.subscriptionBoAction.subscription.cancellationInfo.cancellationDate"
3487
- },
3488
- {
3489
- path: "historyEntries.event.subscriptionBoAction.subscription.specificDatePendingUpdateData.executionDate"
3490
- }
3491
- ]
3492
- }
3493
- ])
3494
- };
3495
- return metadata;
3496
- }
3497
- return __listSubscriptionHistory;
3498
- }
3499
-
3500
- // src/billing-v1-subscription-subscriptions.types.ts
3501
- var SubscriptionStatusEnumSubscriptionStatus = /* @__PURE__ */ ((SubscriptionStatusEnumSubscriptionStatus2) => {
3502
- SubscriptionStatusEnumSubscriptionStatus2["UNKNOWN"] = "UNKNOWN";
3503
- SubscriptionStatusEnumSubscriptionStatus2["DRAFT"] = "DRAFT";
3504
- SubscriptionStatusEnumSubscriptionStatus2["PENDING"] = "PENDING";
3505
- SubscriptionStatusEnumSubscriptionStatus2["ACTIVE"] = "ACTIVE";
3506
- SubscriptionStatusEnumSubscriptionStatus2["PAUSED"] = "PAUSED";
3507
- SubscriptionStatusEnumSubscriptionStatus2["ENDED"] = "ENDED";
3508
- SubscriptionStatusEnumSubscriptionStatus2["CANCELED"] = "CANCELED";
3509
- return SubscriptionStatusEnumSubscriptionStatus2;
3510
- })(SubscriptionStatusEnumSubscriptionStatus || {});
3511
- var CollectionMethodEnumCollectionMethod = /* @__PURE__ */ ((CollectionMethodEnumCollectionMethod2) => {
3512
- CollectionMethodEnumCollectionMethod2["UNKNOWN"] = "UNKNOWN";
3513
- CollectionMethodEnumCollectionMethod2["AUTO_CHARGE"] = "AUTO_CHARGE";
3514
- CollectionMethodEnumCollectionMethod2["OFFLINE"] = "OFFLINE";
3515
- CollectionMethodEnumCollectionMethod2["SEND_INVOICE"] = "SEND_INVOICE";
3516
- CollectionMethodEnumCollectionMethod2["EXTERNAL"] = "EXTERNAL";
3517
- CollectionMethodEnumCollectionMethod2["FREE"] = "FREE";
3518
- return CollectionMethodEnumCollectionMethod2;
3519
- })(CollectionMethodEnumCollectionMethod || {});
3520
- var DurationUnit = /* @__PURE__ */ ((DurationUnit2) => {
3521
- DurationUnit2["UNKNOWN"] = "UNKNOWN";
3522
- DurationUnit2["DAY"] = "DAY";
3523
- DurationUnit2["WEEK"] = "WEEK";
3524
- DurationUnit2["MONTH"] = "MONTH";
3525
- DurationUnit2["YEAR"] = "YEAR";
3526
- return DurationUnit2;
3527
- })(DurationUnit || {});
3528
- var AdditionalFeeTrigger = /* @__PURE__ */ ((AdditionalFeeTrigger2) => {
3529
- AdditionalFeeTrigger2["UNKNOWN"] = "UNKNOWN";
3530
- AdditionalFeeTrigger2["FIRST_PAYMENT"] = "FIRST_PAYMENT";
3531
- return AdditionalFeeTrigger2;
3532
- })(AdditionalFeeTrigger || {});
3533
- var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
3534
- TaxableAddressType2["UNKNOWN"] = "UNKNOWN";
3535
- TaxableAddressType2["BUSINESS"] = "BUSINESS";
3536
- TaxableAddressType2["BILLING"] = "BILLING";
3537
- TaxableAddressType2["SHIPPING"] = "SHIPPING";
3538
- return TaxableAddressType2;
3539
- })(TaxableAddressType || {});
3540
- var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
3541
- PaymentStatus2["UNKNOWN"] = "UNKNOWN";
3542
- PaymentStatus2["UNPAID"] = "UNPAID";
3543
- PaymentStatus2["PAID"] = "PAID";
3544
- PaymentStatus2["FAILED"] = "FAILED";
3545
- return PaymentStatus2;
3546
- })(PaymentStatus || {});
3547
- var PausePolicy = /* @__PURE__ */ ((PausePolicy2) => {
3548
- PausePolicy2["NONE"] = "NONE";
3549
- PausePolicy2["SERVICE_AND_PAYMENTS"] = "SERVICE_AND_PAYMENTS";
3550
- PausePolicy2["SERVICE_ONLY"] = "SERVICE_ONLY";
3551
- return PausePolicy2;
3552
- })(PausePolicy || {});
3553
- var PauseAt = /* @__PURE__ */ ((PauseAt2) => {
3554
- PauseAt2["NONE"] = "NONE";
3555
- PauseAt2["IMMEDIATELY"] = "IMMEDIATELY";
3556
- PauseAt2["NEXT_BILLING_DATE"] = "NEXT_BILLING_DATE";
3557
- PauseAt2["SPECIFIC_DATE"] = "SPECIFIC_DATE";
3558
- PauseAt2["NUMBER_OF_CYCLES_FROM_TODAY"] = "NUMBER_OF_CYCLES_FROM_TODAY";
3559
- PauseAt2["NUMBER_OF_CYCLES_FROM_NEXT_BILLING_DATE"] = "NUMBER_OF_CYCLES_FROM_NEXT_BILLING_DATE";
3560
- return PauseAt2;
3561
- })(PauseAt || {});
3562
- var ResumeAt = /* @__PURE__ */ ((ResumeAt2) => {
3563
- ResumeAt2["NONE"] = "NONE";
3564
- ResumeAt2["IMMEDIATELY"] = "IMMEDIATELY";
3565
- ResumeAt2["NEXT_BILLING_DATE"] = "NEXT_BILLING_DATE";
3566
- ResumeAt2["SPECIFIC_DATE"] = "SPECIFIC_DATE";
3567
- ResumeAt2["NUMBER_OF_CYCLES_FROM_PAUSE_START"] = "NUMBER_OF_CYCLES_FROM_PAUSE_START";
3568
- return ResumeAt2;
3569
- })(ResumeAt || {});
3570
- var HistoryActionInitiator = /* @__PURE__ */ ((HistoryActionInitiator2) => {
3571
- HistoryActionInitiator2["UNDEFINED"] = "UNDEFINED";
3572
- HistoryActionInitiator2["BUSINESS"] = "BUSINESS";
3573
- HistoryActionInitiator2["CUSTOMER"] = "CUSTOMER";
3574
- HistoryActionInitiator2["SYSTEM"] = "SYSTEM";
3575
- HistoryActionInitiator2["PAYMENT_FAILURE"] = "PAYMENT_FAILURE";
3576
- return HistoryActionInitiator2;
3577
- })(HistoryActionInitiator || {});
3578
- var ItemCategory = /* @__PURE__ */ ((ItemCategory2) => {
3579
- ItemCategory2["UNKNOWN"] = "UNKNOWN";
3580
- ItemCategory2["PHYSICAL"] = "PHYSICAL";
3581
- ItemCategory2["DIGITAL"] = "DIGITAL";
3582
- return ItemCategory2;
3583
- })(ItemCategory || {});
3584
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
3585
- SortOrder2["ASC"] = "ASC";
3586
- SortOrder2["DESC"] = "DESC";
3587
- return SortOrder2;
3588
- })(SortOrder || {});
3589
- var SubscriptionStatusGroup = /* @__PURE__ */ ((SubscriptionStatusGroup2) => {
3590
- SubscriptionStatusGroup2["ALL"] = "ALL";
3591
- SubscriptionStatusGroup2["LIVE"] = "LIVE";
3592
- return SubscriptionStatusGroup2;
3593
- })(SubscriptionStatusGroup || {});
3594
- var ActionType = /* @__PURE__ */ ((ActionType2) => {
3595
- ActionType2["NONE"] = "NONE";
3596
- ActionType2["CREATION"] = "CREATION";
3597
- ActionType2["CANCEL"] = "CANCEL";
3598
- ActionType2["CYCLE_AUTO_RENEW_ON"] = "CYCLE_AUTO_RENEW_ON";
3599
- ActionType2["CYCLE_AUTO_RENEW_OFF"] = "CYCLE_AUTO_RENEW_OFF";
3600
- ActionType2["PAUSE"] = "PAUSE";
3601
- ActionType2["RESUME"] = "RESUME";
3602
- ActionType2["MARK_AS_PAID"] = "MARK_AS_PAID";
3603
- ActionType2["EXTEND"] = "EXTEND";
3604
- ActionType2["UPDATE"] = "UPDATE";
3605
- ActionType2["UPDATE_START_DATE"] = "UPDATE_START_DATE";
3606
- ActionType2["UPM"] = "UPM";
3607
- ActionType2["UPDATE_BILLING_DATE"] = "UPDATE_BILLING_DATE";
3608
- ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
3609
- ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
3610
- ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
3611
- return ActionType2;
3612
- })(ActionType || {});
3613
- var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
3614
- ExtendPolicyType2["PERIOD"] = "PERIOD";
3615
- ExtendPolicyType2["BILLING_CYCLE"] = "BILLING_CYCLE";
3616
- return ExtendPolicyType2;
3617
- })(ExtendPolicyType || {});
3618
- var PaymentMode = /* @__PURE__ */ ((PaymentMode2) => {
3619
- PaymentMode2["NONE"] = "NONE";
3620
- PaymentMode2["CHARGE"] = "CHARGE";
3621
- PaymentMode2["AUTHORIZATION"] = "AUTHORIZATION";
3622
- return PaymentMode2;
3623
- })(PaymentMode || {});
3624
- var OrderMethod = /* @__PURE__ */ ((OrderMethod2) => {
3625
- OrderMethod2["UNKNOWN"] = "UNKNOWN";
3626
- OrderMethod2["MOTO"] = "MOTO";
3627
- OrderMethod2["NOT_MOTO"] = "NOT_MOTO";
3628
- return OrderMethod2;
3629
- })(OrderMethod || {});
3630
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
3631
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
3632
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
3633
- WebhookIdentityType2["MEMBER"] = "MEMBER";
3634
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
3635
- WebhookIdentityType2["APP"] = "APP";
3636
- return WebhookIdentityType2;
3637
- })(WebhookIdentityType || {});
3638
- var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
3639
- PaymentTestMode2["REGULAR"] = "REGULAR";
3640
- PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
3641
- PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
3642
- PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
3643
- return PaymentTestMode2;
3644
- })(PaymentTestMode || {});
3645
- var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
3646
- RevivePolicy2["SIMPLE"] = "SIMPLE";
3647
- RevivePolicy2["RESUME"] = "RESUME";
3648
- return RevivePolicy2;
3649
- })(RevivePolicy || {});
3650
- var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
3651
- ActionInitiator2["UNDEFINED"] = "UNDEFINED";
3652
- ActionInitiator2["BUSINESS"] = "BUSINESS";
3653
- ActionInitiator2["CUSTOMER"] = "CUSTOMER";
3654
- ActionInitiator2["SYSTEM"] = "SYSTEM";
3655
- return ActionInitiator2;
3656
- })(ActionInitiator || {});
3657
- var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
3658
- UpdateAction2["NONE"] = "NONE";
3659
- UpdateAction2["IMMEDIATELY"] = "IMMEDIATELY";
3660
- UpdateAction2["NEXT_BILLING_CYCLE"] = "NEXT_BILLING_CYCLE";
3661
- UpdateAction2["RESET_PENDING_UPDATES"] = "RESET_PENDING_UPDATES";
3662
- UpdateAction2["SPECIFIC_DATE"] = "SPECIFIC_DATE";
3663
- return UpdateAction2;
3664
- })(UpdateAction || {});
3665
- var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
3666
- RequestedFields2["UNSUPPORTED_ACTION"] = "UNSUPPORTED_ACTION";
3667
- return RequestedFields2;
3668
- })(RequestedFields || {});
3669
- var InvoiceStatus = /* @__PURE__ */ ((InvoiceStatus2) => {
3670
- InvoiceStatus2["UNKNOWN"] = "UNKNOWN";
3671
- InvoiceStatus2["OPEN"] = "OPEN";
3672
- InvoiceStatus2["PAID"] = "PAID";
3673
- InvoiceStatus2["FAILED"] = "FAILED";
3674
- InvoiceStatus2["ATTEMPT_FAILED"] = "ATTEMPT_FAILED";
3675
- InvoiceStatus2["CANCELED"] = "CANCELED";
3676
- InvoiceStatus2["REFUNDED"] = "REFUNDED";
3677
- InvoiceStatus2["CHARGEBACKED"] = "CHARGEBACKED";
3678
- return InvoiceStatus2;
3679
- })(InvoiceStatus || {});
3680
- var CollectionMethod = /* @__PURE__ */ ((CollectionMethod2) => {
3681
- CollectionMethod2["UNKNOWN"] = "UNKNOWN";
3682
- CollectionMethod2["AUTO_CHARGE"] = "AUTO_CHARGE";
3683
- CollectionMethod2["OFFLINE"] = "OFFLINE";
3684
- CollectionMethod2["SEND_INVOICE"] = "SEND_INVOICE";
3685
- return CollectionMethod2;
3686
- })(CollectionMethod || {});
3687
- var CreationMode = /* @__PURE__ */ ((CreationMode2) => {
3688
- CreationMode2["UNKNOWN"] = "UNKNOWN";
3689
- CreationMode2["SYSTEM"] = "SYSTEM";
3690
- CreationMode2["MANUAL"] = "MANUAL";
3691
- return CreationMode2;
3692
- })(CreationMode || {});
3693
- var PaymentAttemptStatus = /* @__PURE__ */ ((PaymentAttemptStatus2) => {
3694
- PaymentAttemptStatus2["UNKNOWN"] = "UNKNOWN";
3695
- PaymentAttemptStatus2["SCHEDULED"] = "SCHEDULED";
3696
- PaymentAttemptStatus2["IN_PROGRESS"] = "IN_PROGRESS";
3697
- PaymentAttemptStatus2["PAID"] = "PAID";
3698
- PaymentAttemptStatus2["DECLINED"] = "DECLINED";
3699
- PaymentAttemptStatus2["TECHNICAL_FAILURE"] = "TECHNICAL_FAILURE";
3700
- PaymentAttemptStatus2["CANCELED"] = "CANCELED";
3701
- PaymentAttemptStatus2["PENDING"] = "PENDING";
3702
- PaymentAttemptStatus2["REFUNDED"] = "REFUNDED";
3703
- PaymentAttemptStatus2["CHARGEBACKED"] = "CHARGEBACKED";
3704
- return PaymentAttemptStatus2;
3705
- })(PaymentAttemptStatus || {});
3706
- var PriceAdjustmentReason = /* @__PURE__ */ ((PriceAdjustmentReason2) => {
3707
- PriceAdjustmentReason2["PRICE_ADJUSTMENT_REASON_UNSPECIFIED"] = "PRICE_ADJUSTMENT_REASON_UNSPECIFIED";
3708
- PriceAdjustmentReason2["BILLING_DATE_CHANGE"] = "BILLING_DATE_CHANGE";
3709
- PriceAdjustmentReason2["PLAN_CHANGE_PRORATION"] = "PLAN_CHANGE_PRORATION";
3710
- PriceAdjustmentReason2["CYCLE_CHANGE_PRORATION"] = "CYCLE_CHANGE_PRORATION";
3711
- PriceAdjustmentReason2["QUANTITY_CHANGE_PRORATION"] = "QUANTITY_CHANGE_PRORATION";
3712
- PriceAdjustmentReason2["CUSTOM_PRICE_ADJUSTMENT"] = "CUSTOM_PRICE_ADJUSTMENT";
3713
- return PriceAdjustmentReason2;
3714
- })(PriceAdjustmentReason || {});
3715
- var RefundReason = /* @__PURE__ */ ((RefundReason2) => {
3716
- RefundReason2["DUPLICATE_CHARGE"] = "DUPLICATE_CHARGE";
3717
- RefundReason2["FRAUDULENT"] = "FRAUDULENT";
3718
- RefundReason2["CUSTOMER_REQUEST"] = "CUSTOMER_REQUEST";
3719
- RefundReason2["PROVISION_FAILED"] = "PROVISION_FAILED";
3720
- RefundReason2["OTHER"] = "OTHER";
3721
- return RefundReason2;
3722
- })(RefundReason || {});
3723
- var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
3724
- ChangeEffectiveTime2["UNKNOWN"] = "UNKNOWN";
3725
- ChangeEffectiveTime2["IMMEDIATELY"] = "IMMEDIATELY";
3726
- ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
3727
- return ChangeEffectiveTime2;
3728
- })(ChangeEffectiveTime || {});
3729
- var ProrationBehavior = /* @__PURE__ */ ((ProrationBehavior2) => {
3730
- ProrationBehavior2["UNKNOWN"] = "UNKNOWN";
3731
- ProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
3732
- ProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
3733
- ProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
3734
- ProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
3735
- return ProrationBehavior2;
3736
- })(ProrationBehavior || {});
3737
- var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
3738
- ProrationAction2["UNKNOWN"] = "UNKNOWN";
3739
- ProrationAction2["CHARGE"] = "CHARGE";
3740
- ProrationAction2["REFUND"] = "REFUND";
3741
- ProrationAction2["EXTEND_PERIOD"] = "EXTEND_PERIOD";
3742
- ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
3743
- return ProrationAction2;
3744
- })(ProrationAction || {});
3745
- var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
3746
- IdentityType2["UNDEFINED"] = "UNDEFINED";
3747
- IdentityType2["MEMBER"] = "MEMBER";
3748
- IdentityType2["CONTACT"] = "CONTACT";
3749
- return IdentityType2;
3750
- })(IdentityType || {});
3751
- var SubscriptionType = /* @__PURE__ */ ((SubscriptionType2) => {
3752
- SubscriptionType2["UNDEFINED"] = "UNDEFINED";
3753
- SubscriptionType2["ONLINE"] = "ONLINE";
3754
- SubscriptionType2["OFFLINE"] = "OFFLINE";
3755
- return SubscriptionType2;
3756
- })(SubscriptionType || {});
3757
- var V1SubscriptionStatusEnumSubscriptionStatus = /* @__PURE__ */ ((V1SubscriptionStatusEnumSubscriptionStatus2) => {
3758
- V1SubscriptionStatusEnumSubscriptionStatus2["UNDEFINED"] = "UNDEFINED";
3759
- V1SubscriptionStatusEnumSubscriptionStatus2["DRAFT"] = "DRAFT";
3760
- V1SubscriptionStatusEnumSubscriptionStatus2["PENDING"] = "PENDING";
3761
- V1SubscriptionStatusEnumSubscriptionStatus2["ACTIVE"] = "ACTIVE";
3762
- V1SubscriptionStatusEnumSubscriptionStatus2["EXPIRED"] = "EXPIRED";
3763
- V1SubscriptionStatusEnumSubscriptionStatus2["CANCELED"] = "CANCELED";
3764
- V1SubscriptionStatusEnumSubscriptionStatus2["PENDING_CANCELLATION"] = "PENDING_CANCELLATION";
3765
- V1SubscriptionStatusEnumSubscriptionStatus2["SUSPENDED"] = "SUSPENDED";
3766
- return V1SubscriptionStatusEnumSubscriptionStatus2;
3767
- })(V1SubscriptionStatusEnumSubscriptionStatus || {});
3768
- var PaymentStatusEnumPaymentStatus = /* @__PURE__ */ ((PaymentStatusEnumPaymentStatus2) => {
3769
- PaymentStatusEnumPaymentStatus2["UNDEFINED"] = "UNDEFINED";
3770
- PaymentStatusEnumPaymentStatus2["PAID"] = "PAID";
3771
- PaymentStatusEnumPaymentStatus2["REFUNDED"] = "REFUNDED";
3772
- PaymentStatusEnumPaymentStatus2["FAILED"] = "FAILED";
3773
- PaymentStatusEnumPaymentStatus2["UNPAID"] = "UNPAID";
3774
- PaymentStatusEnumPaymentStatus2["PENDING"] = "PENDING";
3775
- return PaymentStatusEnumPaymentStatus2;
3776
- })(PaymentStatusEnumPaymentStatus || {});
3777
- var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
3778
- SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
3779
- SubscriptionFrequency2["DAY"] = "DAY";
3780
- SubscriptionFrequency2["WEEK"] = "WEEK";
3781
- SubscriptionFrequency2["MONTH"] = "MONTH";
3782
- SubscriptionFrequency2["YEAR"] = "YEAR";
3783
- return SubscriptionFrequency2;
3784
- })(SubscriptionFrequency || {});
3785
- var CancellationInitiator = /* @__PURE__ */ ((CancellationInitiator2) => {
3786
- CancellationInitiator2["UNDEFINED"] = "UNDEFINED";
3787
- CancellationInitiator2["OWNER"] = "OWNER";
3788
- CancellationInitiator2["MEMBER"] = "MEMBER";
3789
- CancellationInitiator2["PAYMENT_FAILURE"] = "PAYMENT_FAILURE";
3790
- CancellationInitiator2["SETUP_FAILURE"] = "SETUP_FAILURE";
3791
- return CancellationInitiator2;
3792
- })(CancellationInitiator || {});
3793
- var Status = /* @__PURE__ */ ((Status2) => {
3794
- Status2["UNDEFINED"] = "UNDEFINED";
3795
- Status2["ACTIVE"] = "ACTIVE";
3796
- Status2["ENDED"] = "ENDED";
3797
- return Status2;
3798
- })(Status || {});
3799
- var HistoryViewMode = /* @__PURE__ */ ((HistoryViewMode2) => {
3800
- HistoryViewMode2["UNKNOWN"] = "UNKNOWN";
3801
- HistoryViewMode2["BACKOFFICE"] = "BACKOFFICE";
3802
- HistoryViewMode2["USER"] = "USER";
3803
- return HistoryViewMode2;
3804
- })(HistoryViewMode || {});
3805
- var PaymentSettlementMethod = /* @__PURE__ */ ((PaymentSettlementMethod2) => {
3806
- PaymentSettlementMethod2["UNKNOWN"] = "UNKNOWN";
3807
- PaymentSettlementMethod2["SYSTEM"] = "SYSTEM";
3808
- PaymentSettlementMethod2["MARK_AS_PAID"] = "MARK_AS_PAID";
3809
- PaymentSettlementMethod2["CUSTOMER_PAY_NOW"] = "CUSTOMER_PAY_NOW";
3810
- return PaymentSettlementMethod2;
3811
- })(PaymentSettlementMethod || {});
3812
-
3813
- // src/billing-v1-subscription-subscriptions.meta.ts
3814
- function customerGetSubscription2() {
3815
- const payload = { id: ":id" };
3816
- const getRequestOptions = customerGetSubscription(payload);
3817
- const getUrl = (context) => {
3818
- const { url } = getRequestOptions(context);
3819
- return url;
3820
- };
3821
- return {
3822
- getUrl,
3823
- httpMethod: "GET",
3824
- path: "/v1/customer_subscriptions/{id}",
3825
- pathParams: { id: "id" },
3826
- __requestType: null,
3827
- __originalRequestType: null,
3828
- __responseType: null,
3829
- __originalResponseType: null
3830
- };
3831
- }
3832
- function customerCancelSubscription2() {
3833
- const payload = { id: ":id" };
3834
- const getRequestOptions = customerCancelSubscription(payload);
3835
- const getUrl = (context) => {
3836
- const { url } = getRequestOptions(context);
3837
- return url;
3838
- };
3839
- return {
3840
- getUrl,
3841
- httpMethod: "POST",
3842
- path: "/v1/customer_subscriptions/{id}/cancel",
3843
- pathParams: { id: "id" },
3844
- __requestType: null,
3845
- __originalRequestType: null,
3846
- __responseType: null,
3847
- __originalResponseType: null
3848
- };
3849
- }
3850
- function customerTurnOnSubscriptionAutoRenewal2() {
3851
- const payload = { id: ":id" };
3852
- const getRequestOptions = customerTurnOnSubscriptionAutoRenewal(
3853
- payload
3854
- );
3855
- const getUrl = (context) => {
3856
- const { url } = getRequestOptions(context);
3857
- return url;
3858
- };
3859
- return {
3860
- getUrl,
3861
- httpMethod: "POST",
3862
- path: "/v1/customer_subscriptions/{id}/turn_on_auto_renewal",
3863
- pathParams: { id: "id" },
3864
- __requestType: null,
3865
- __originalRequestType: null,
3866
- __responseType: null,
3867
- __originalResponseType: null
3868
- };
3869
- }
3870
- function customerTurnOffSubscriptionAutoRenewal2() {
3871
- const payload = { id: ":id" };
3872
- const getRequestOptions = customerTurnOffSubscriptionAutoRenewal(
3873
- payload
3874
- );
3875
- const getUrl = (context) => {
3876
- const { url } = getRequestOptions(context);
3877
- return url;
3878
- };
3879
- return {
3880
- getUrl,
3881
- httpMethod: "POST",
3882
- path: "/v1/customer_subscriptions/{id}/turn_off_auto_renewal",
3883
- pathParams: { id: "id" },
3884
- __requestType: null,
3885
- __originalRequestType: null,
3886
- __responseType: null,
3887
- __originalResponseType: null
3888
- };
3889
- }
3890
- function customerExtendSubscription2() {
3891
- const payload = { id: ":id" };
3892
- const getRequestOptions = customerExtendSubscription(payload);
3893
- const getUrl = (context) => {
3894
- const { url } = getRequestOptions(context);
3895
- return url;
3896
- };
3897
- return {
3898
- getUrl,
3899
- httpMethod: "PATCH",
3900
- path: "/v1/customer_subscriptions/{id}/extend",
3901
- pathParams: { id: "id" },
3902
- __requestType: null,
3903
- __originalRequestType: null,
3904
- __responseType: null,
3905
- __originalResponseType: null
3906
- };
3907
- }
3908
- function customerQuerySubscriptions2() {
3909
- const payload = {};
3910
- const getRequestOptions = customerQuerySubscriptions(payload);
3911
- const getUrl = (context) => {
3912
- const { url } = getRequestOptions(context);
3913
- return url;
3914
- };
3915
- return {
3916
- getUrl,
3917
- httpMethod: "POST",
3918
- path: "/v1/customer_subscriptions/query",
3919
- pathParams: {},
3920
- __requestType: null,
3921
- __originalRequestType: null,
3922
- __responseType: null,
3923
- __originalResponseType: null
3924
- };
3925
- }
3926
- function customerUpdateSubscriptionPaymentMethod2() {
3927
- const payload = { id: ":id" };
3928
- const getRequestOptions = customerUpdateSubscriptionPaymentMethod(
3929
- payload
3930
- );
3931
- const getUrl = (context) => {
3932
- const { url } = getRequestOptions(context);
3933
- return url;
3934
- };
3935
- return {
3936
- getUrl,
3937
- httpMethod: "PATCH",
3938
- path: "/v1/customer_subscriptions/{id}/payment_method",
3939
- pathParams: { id: "id" },
3940
- __requestType: null,
3941
- __originalRequestType: null,
3942
- __responseType: null,
3943
- __originalResponseType: null
3944
- };
3945
- }
3946
- function customerAllowedActions2() {
3947
- const payload = { id: ":id" };
3948
- const getRequestOptions = customerAllowedActions(payload);
3949
- const getUrl = (context) => {
3950
- const { url } = getRequestOptions(context);
3951
- return url;
3952
- };
3953
- return {
3954
- getUrl,
3955
- httpMethod: "GET",
3956
- path: "/v1/customer_subscriptions/{id}/allowed_actions",
3957
- pathParams: { id: "id" },
3958
- __requestType: null,
3959
- __originalRequestType: null,
3960
- __responseType: null,
3961
- __originalResponseType: null
3962
- };
3963
- }
3964
- function customerListUpcomingCharges2() {
3965
- const payload = { id: ":id" };
3966
- const getRequestOptions = customerListUpcomingCharges(payload);
3967
- const getUrl = (context) => {
3968
- const { url } = getRequestOptions(context);
3969
- return url;
3970
- };
3971
- return {
3972
- getUrl,
3973
- httpMethod: "GET",
3974
- path: "/v1/customer_subscriptions/{id}/upcoming_charges",
3975
- pathParams: { id: "id" },
3976
- __requestType: null,
3977
- __originalRequestType: null,
3978
- __responseType: null,
3979
- __originalResponseType: null
3980
- };
3981
- }
3982
- function customerInitiatePaymentMethodSetup2() {
3983
- const payload = { id: ":id" };
3984
- const getRequestOptions = customerInitiatePaymentMethodSetup(
3985
- payload
3986
- );
3987
- const getUrl = (context) => {
3988
- const { url } = getRequestOptions(context);
3989
- return url;
3990
- };
3991
- return {
3992
- getUrl,
3993
- httpMethod: "POST",
3994
- path: "/v1/customer_subscriptions/{id}/payment_method_setup",
3995
- pathParams: { id: "id" },
3996
- __requestType: null,
3997
- __originalRequestType: null,
3998
- __responseType: null,
3999
- __originalResponseType: null
4000
- };
4001
- }
4002
- function customerSkipCycle2() {
4003
- const payload = { id: ":id" };
4004
- const getRequestOptions = customerSkipCycle(payload);
4005
- const getUrl = (context) => {
4006
- const { url } = getRequestOptions(context);
4007
- return url;
4008
- };
4009
- return {
4010
- getUrl,
4011
- httpMethod: "POST",
4012
- path: "/v1/customer_subscriptions/{id}/skip_cycle",
4013
- pathParams: { id: "id" },
4014
- __requestType: null,
4015
- __originalRequestType: null,
4016
- __responseType: null,
4017
- __originalResponseType: null
4018
- };
4019
- }
4020
- function customerCancelScheduledSkip2() {
4021
- const payload = { id: ":id" };
4022
- const getRequestOptions = customerCancelScheduledSkip(payload);
4023
- const getUrl = (context) => {
4024
- const { url } = getRequestOptions(context);
4025
- return url;
4026
- };
4027
- return {
4028
- getUrl,
4029
- httpMethod: "POST",
4030
- path: "/v1/customer_subscriptions/{id}/cancel_scheduled_skip",
4031
- pathParams: { id: "id" },
4032
- __requestType: null,
4033
- __originalRequestType: null,
4034
- __responseType: null,
4035
- __originalResponseType: null
4036
- };
4037
- }
4038
- function customerPauseSubscription2() {
4039
- const payload = { id: ":id" };
4040
- const getRequestOptions = customerPauseSubscription(payload);
4041
- const getUrl = (context) => {
4042
- const { url } = getRequestOptions(context);
4043
- return url;
4044
- };
4045
- return {
4046
- getUrl,
4047
- httpMethod: "POST",
4048
- path: "/v1/customer_subscriptions/{id}/pause",
4049
- pathParams: { id: "id" },
4050
- __requestType: null,
4051
- __originalRequestType: null,
4052
- __responseType: null,
4053
- __originalResponseType: null
4054
- };
4055
- }
4056
- function customerResumeSubscription2() {
4057
- const payload = { id: ":id" };
4058
- const getRequestOptions = customerResumeSubscription(payload);
4059
- const getUrl = (context) => {
4060
- const { url } = getRequestOptions(context);
4061
- return url;
4062
- };
4063
- return {
4064
- getUrl,
4065
- httpMethod: "POST",
4066
- path: "/v1/customer_subscriptions/{id}/resume",
4067
- pathParams: { id: "id" },
4068
- __requestType: null,
4069
- __originalRequestType: null,
4070
- __responseType: null,
4071
- __originalResponseType: null
4072
- };
4073
- }
4074
- function customerCancelScheduledPause2() {
4075
- const payload = { id: ":id" };
4076
- const getRequestOptions = customerCancelScheduledPause(payload);
4077
- const getUrl = (context) => {
4078
- const { url } = getRequestOptions(context);
4079
- return url;
4080
- };
4081
- return {
4082
- getUrl,
4083
- httpMethod: "POST",
4084
- path: "/v1/customer_subscriptions/{id}/cancel_scheduled_pause",
4085
- pathParams: { id: "id" },
4086
- __requestType: null,
4087
- __originalRequestType: null,
4088
- __responseType: null,
4089
- __originalResponseType: null
4090
- };
4091
- }
4092
- function customerUpdateBillingDate2() {
4093
- const payload = { id: ":id" };
4094
- const getRequestOptions = customerUpdateBillingDate(payload);
4095
- const getUrl = (context) => {
4096
- const { url } = getRequestOptions(context);
4097
- return url;
4098
- };
4099
- return {
4100
- getUrl,
4101
- httpMethod: "POST",
4102
- path: "/v1/customer_subscriptions/{id}/update_billing_date",
4103
- pathParams: { id: "id" },
4104
- __requestType: null,
4105
- __originalRequestType: null,
4106
- __responseType: null,
4107
- __originalResponseType: null
4108
- };
4109
- }
4110
- function payCycle2() {
4111
- const payload = { subscriptionId: ":subscriptionId" };
4112
- const getRequestOptions = payCycle(payload);
4113
- const getUrl = (context) => {
4114
- const { url } = getRequestOptions(context);
4115
- return url;
4116
- };
4117
- return {
4118
- getUrl,
4119
- httpMethod: "POST",
4120
- path: "/v1/subscriptions-bo/{subscriptionId}/pay-cycle",
4121
- pathParams: { subscriptionId: "subscriptionId" },
4122
- __requestType: null,
4123
- __originalRequestType: null,
4124
- __responseType: null,
4125
- __originalResponseType: null
4126
- };
4127
- }
4128
- function getSubscription2() {
4129
- const payload = { id: ":id" };
4130
- const getRequestOptions = getSubscription(payload);
4131
- const getUrl = (context) => {
4132
- const { url } = getRequestOptions(context);
4133
- return url;
4134
- };
4135
- return {
4136
- getUrl,
4137
- httpMethod: "GET",
4138
- path: "/v1/subscriptions/{id}",
4139
- pathParams: { id: "id" },
4140
- __requestType: null,
4141
- __originalRequestType: null,
4142
- __responseType: null,
4143
- __originalResponseType: null
4144
- };
4145
- }
4146
- function updateSubscriptionPaymentMethod2() {
4147
- const payload = { id: ":id" };
4148
- const getRequestOptions = updateSubscriptionPaymentMethod(payload);
4149
- const getUrl = (context) => {
4150
- const { url } = getRequestOptions(context);
4151
- return url;
4152
- };
4153
- return {
4154
- getUrl,
4155
- httpMethod: "PATCH",
4156
- path: "/v1/subscriptions/{id}/payment_method",
4157
- pathParams: { id: "id" },
4158
- __requestType: null,
4159
- __originalRequestType: null,
4160
- __responseType: null,
4161
- __originalResponseType: null
4162
- };
4163
- }
4164
- function updateSubscriptionBillingDate2() {
4165
- const payload = { id: ":id" };
4166
- const getRequestOptions = updateSubscriptionBillingDate(payload);
4167
- const getUrl = (context) => {
4168
- const { url } = getRequestOptions(context);
4169
- return url;
4170
- };
4171
- return {
4172
- getUrl,
4173
- httpMethod: "PATCH",
4174
- path: "/v1/subscriptions/{id}/update-billing-date",
4175
- pathParams: { id: "id" },
4176
- __requestType: null,
4177
- __originalRequestType: null,
4178
- __responseType: null,
4179
- __originalResponseType: null
4180
- };
4181
- }
4182
- function reviseSubscription2() {
4183
- const payload = { id: ":id" };
4184
- const getRequestOptions = reviseSubscription(payload);
4185
- const getUrl = (context) => {
4186
- const { url } = getRequestOptions(context);
4187
- return url;
4188
- };
4189
- return {
4190
- getUrl,
4191
- httpMethod: "POST",
4192
- path: "/v1/subscriptions/{id}",
4193
- pathParams: { id: "id" },
4194
- __requestType: null,
4195
- __originalRequestType: null,
4196
- __responseType: null,
4197
- __originalResponseType: null
4198
- };
4199
- }
4200
- function cancelSubscription2() {
4201
- const payload = { id: ":id" };
4202
- const getRequestOptions = cancelSubscription(payload);
4203
- const getUrl = (context) => {
4204
- const { url } = getRequestOptions(context);
4205
- return url;
4206
- };
4207
- return {
4208
- getUrl,
4209
- httpMethod: "POST",
4210
- path: "/v1/subscriptions/{id}/cancel",
4211
- pathParams: { id: "id" },
4212
- __requestType: null,
4213
- __originalRequestType: null,
4214
- __responseType: null,
4215
- __originalResponseType: null
4216
- };
4217
- }
4218
- function pauseSubscription2() {
4219
- const payload = { id: ":id" };
4220
- const getRequestOptions = pauseSubscription(payload);
4221
- const getUrl = (context) => {
4222
- const { url } = getRequestOptions(context);
4223
- return url;
4224
- };
4225
- return {
4226
- getUrl,
4227
- httpMethod: "POST",
4228
- path: "/v1/subscriptions/{id}/pause",
4229
- pathParams: { id: "id" },
4230
- __requestType: null,
4231
- __originalRequestType: null,
4232
- __responseType: null,
4233
- __originalResponseType: null
4234
- };
4235
- }
4236
- function resumeSubscription2() {
4237
- const payload = { id: ":id" };
4238
- const getRequestOptions = resumeSubscription(payload);
4239
- const getUrl = (context) => {
4240
- const { url } = getRequestOptions(context);
4241
- return url;
4242
- };
4243
- return {
4244
- getUrl,
4245
- httpMethod: "POST",
4246
- path: "/v1/subscriptions/{id}/resume",
4247
- pathParams: { id: "id" },
4248
- __requestType: null,
4249
- __originalRequestType: null,
4250
- __responseType: null,
4251
- __originalResponseType: null
4252
- };
4253
- }
4254
- function querySubscriptions2() {
4255
- const payload = {};
4256
- const getRequestOptions = querySubscriptions(payload);
4257
- const getUrl = (context) => {
4258
- const { url } = getRequestOptions(context);
4259
- return url;
4260
- };
4261
- return {
4262
- getUrl,
4263
- httpMethod: "POST",
4264
- path: "/v1/subscriptions/query",
4265
- pathParams: {},
4266
- __requestType: null,
4267
- __originalRequestType: null,
4268
- __responseType: null,
4269
- __originalResponseType: null
4270
- };
4271
- }
4272
- function searchSubscriptions2() {
4273
- const payload = {};
4274
- const getRequestOptions = searchSubscriptions(payload);
4275
- const getUrl = (context) => {
4276
- const { url } = getRequestOptions(context);
4277
- return url;
4278
- };
4279
- return {
4280
- getUrl,
4281
- httpMethod: "POST",
4282
- path: "/v1/subscriptions/search",
4283
- pathParams: {},
4284
- __requestType: null,
4285
- __originalRequestType: null,
4286
- __responseType: null,
4287
- __originalResponseType: null
4288
- };
4289
- }
4290
- function countSubscriptions2() {
4291
- const payload = {};
4292
- const getRequestOptions = countSubscriptions(payload);
4293
- const getUrl = (context) => {
4294
- const { url } = getRequestOptions(context);
4295
- return url;
4296
- };
4297
- return {
4298
- getUrl,
4299
- httpMethod: "POST",
4300
- path: "/v1/subscriptions/count",
4301
- pathParams: {},
4302
- __requestType: null,
4303
- __originalRequestType: null,
4304
- __responseType: null,
4305
- __originalResponseType: null
4306
- };
4307
- }
4308
- function turnOnSubscriptionAutoRenewal2() {
4309
- const payload = { id: ":id" };
4310
- const getRequestOptions = turnOnSubscriptionAutoRenewal(payload);
4311
- const getUrl = (context) => {
4312
- const { url } = getRequestOptions(context);
4313
- return url;
4314
- };
4315
- return {
4316
- getUrl,
4317
- httpMethod: "PATCH",
4318
- path: "/v1/subscriptions/{id}/turn_on_auto_renewal",
4319
- pathParams: { id: "id" },
4320
- __requestType: null,
4321
- __originalRequestType: null,
4322
- __responseType: null,
4323
- __originalResponseType: null
4324
- };
4325
- }
4326
- function turnOffSubscriptionAutoRenewal2() {
4327
- const payload = { id: ":id" };
4328
- const getRequestOptions = turnOffSubscriptionAutoRenewal(payload);
4329
- const getUrl = (context) => {
4330
- const { url } = getRequestOptions(context);
4331
- return url;
4332
- };
4333
- return {
4334
- getUrl,
4335
- httpMethod: "PATCH",
4336
- path: "/v1/subscriptions/{id}/turn_off_auto_renewal",
4337
- pathParams: { id: "id" },
4338
- __requestType: null,
4339
- __originalRequestType: null,
4340
- __responseType: null,
4341
- __originalResponseType: null
4342
- };
4343
- }
4344
- function markLatestInvoiceAsPaid2() {
4345
- const payload = { subscriptionId: ":subscriptionId" };
4346
- const getRequestOptions = markLatestInvoiceAsPaid(payload);
4347
- const getUrl = (context) => {
4348
- const { url } = getRequestOptions(context);
4349
- return url;
4350
- };
4351
- return {
4352
- getUrl,
4353
- httpMethod: "POST",
4354
- path: "/v1/subscriptions/{subscriptionId}/mark-latest-invoice-as-paid",
4355
- pathParams: { subscriptionId: "subscriptionId" },
4356
- __requestType: null,
4357
- __originalRequestType: null,
4358
- __responseType: null,
4359
- __originalResponseType: null
4360
- };
4361
- }
4362
- function markBillingCycleAsPaid2() {
4363
- const payload = { subscriptionId: ":subscriptionId" };
4364
- const getRequestOptions = markBillingCycleAsPaid(payload);
4365
- const getUrl = (context) => {
4366
- const { url } = getRequestOptions(context);
4367
- return url;
4368
- };
4369
- return {
4370
- getUrl,
4371
- httpMethod: "POST",
4372
- path: "/v1/subscriptions/{subscriptionId}/mark-cycle-as-paid",
4373
- pathParams: { subscriptionId: "subscriptionId" },
4374
- __requestType: null,
4375
- __originalRequestType: null,
4376
- __responseType: null,
4377
- __originalResponseType: null
4378
- };
4379
- }
4380
- function getSubscriptionsStats2() {
4381
- const payload = {};
4382
- const getRequestOptions = getSubscriptionsStats(payload);
4383
- const getUrl = (context) => {
4384
- const { url } = getRequestOptions(context);
4385
- return url;
4386
- };
4387
- return {
4388
- getUrl,
4389
- httpMethod: "GET",
4390
- path: "/v1/subscriptions/stats",
4391
- pathParams: {},
4392
- __requestType: null,
4393
- __originalRequestType: null,
4394
- __responseType: null,
4395
- __originalResponseType: null
4396
- };
4397
- }
4398
- function extendSubscription2() {
4399
- const payload = { id: ":id" };
4400
- const getRequestOptions = extendSubscription(payload);
4401
- const getUrl = (context) => {
4402
- const { url } = getRequestOptions(context);
4403
- return url;
4404
- };
4405
- return {
4406
- getUrl,
4407
- httpMethod: "PATCH",
4408
- path: "/v1/subscriptions/{id}/extend",
4409
- pathParams: { id: "id" },
4410
- __requestType: null,
4411
- __originalRequestType: null,
4412
- __responseType: null,
4413
- __originalResponseType: null
4414
- };
4415
- }
4416
- function allowedActions2() {
4417
- const payload = { id: ":id" };
4418
- const getRequestOptions = allowedActions(payload);
4419
- const getUrl = (context) => {
4420
- const { url } = getRequestOptions(context);
4421
- return url;
4422
- };
4423
- return {
4424
- getUrl,
4425
- httpMethod: "GET",
4426
- path: "/v1/subscriptions/{id}/allowed_actions",
4427
- pathParams: { id: "id" },
4428
- __requestType: null,
4429
- __originalRequestType: null,
4430
- __responseType: null,
4431
- __originalResponseType: null
4432
- };
4433
- }
4434
- function listUpcomingCharges2() {
4435
- const payload = { subscriptionId: ":subscriptionId" };
4436
- const getRequestOptions = listUpcomingCharges(payload);
4437
- const getUrl = (context) => {
4438
- const { url } = getRequestOptions(context);
4439
- return url;
4440
- };
4441
- return {
4442
- getUrl,
4443
- httpMethod: "GET",
4444
- path: "/v1/subscriptions/{subscriptionId}/upcoming_charges",
4445
- pathParams: { subscriptionId: "subscriptionId" },
4446
- __requestType: null,
4447
- __originalRequestType: null,
4448
- __responseType: null,
4449
- __originalResponseType: null
4450
- };
4451
- }
4452
- function previewSubscriptionCharges2() {
4453
- const payload = {};
4454
- const getRequestOptions = previewSubscriptionCharges(payload);
4455
- const getUrl = (context) => {
4456
- const { url } = getRequestOptions(context);
4457
- return url;
4458
- };
4459
- return {
4460
- getUrl,
4461
- httpMethod: "GET",
4462
- path: "/v1/subscriptions/preview_charges",
4463
- pathParams: {},
4464
- __requestType: null,
4465
- __originalRequestType: null,
4466
- __responseType: null,
4467
- __originalResponseType: null
4468
- };
4469
- }
4470
- function previewSubscriptionsCharges2() {
4471
- const payload = {};
4472
- const getRequestOptions = previewSubscriptionsCharges(payload);
4473
- const getUrl = (context) => {
4474
- const { url } = getRequestOptions(context);
4475
- return url;
4476
- };
4477
- return {
4478
- getUrl,
4479
- httpMethod: "GET",
4480
- path: "/v1/subscriptions/preview-subscriptions-charges",
4481
- pathParams: {},
4482
- __requestType: null,
4483
- __originalRequestType: null,
4484
- __responseType: null,
4485
- __originalResponseType: null
4486
- };
4487
- }
4488
- function initiatePaymentMethodSetup2() {
4489
- const payload = { id: ":id" };
4490
- const getRequestOptions = initiatePaymentMethodSetup(payload);
4491
- const getUrl = (context) => {
4492
- const { url } = getRequestOptions(context);
4493
- return url;
4494
- };
4495
- return {
4496
- getUrl,
4497
- httpMethod: "POST",
4498
- path: "/v1/subscriptions/{id}/payment_method_setup",
4499
- pathParams: { id: "id" },
4500
- __requestType: null,
4501
- __originalRequestType: null,
4502
- __responseType: null,
4503
- __originalResponseType: null
4504
- };
4505
- }
4506
- function listSubscriptionHistory2() {
4507
- const payload = { subscriptionId: ":subscriptionId" };
4508
- const getRequestOptions = listSubscriptionHistory(payload);
4509
- const getUrl = (context) => {
4510
- const { url } = getRequestOptions(context);
4511
- return url;
4512
- };
4513
- return {
4514
- getUrl,
4515
- httpMethod: "GET",
4516
- path: "/v1/subscriptions/{subscriptionId}/history",
4517
- pathParams: { subscriptionId: "subscriptionId" },
4518
- __requestType: null,
4519
- __originalRequestType: null,
4520
- __responseType: null,
4521
- __originalResponseType: null
4522
- };
4523
- }
4524
- export {
4525
- ActionInitiator as ActionInitiatorOriginal,
4526
- ActionType as ActionTypeOriginal,
4527
- AdditionalFeeTrigger as AdditionalFeeTriggerOriginal,
4528
- CancellationInitiator as CancellationInitiatorOriginal,
4529
- ChangeEffectiveTime as ChangeEffectiveTimeOriginal,
4530
- CollectionMethodEnumCollectionMethod as CollectionMethodEnumCollectionMethodOriginal,
4531
- CollectionMethod as CollectionMethodOriginal,
4532
- CreationMode as CreationModeOriginal,
4533
- DurationUnit as DurationUnitOriginal,
4534
- ExtendPolicyType as ExtendPolicyTypeOriginal,
4535
- HistoryActionInitiator as HistoryActionInitiatorOriginal,
4536
- HistoryViewMode as HistoryViewModeOriginal,
4537
- IdentityType as IdentityTypeOriginal,
4538
- InvoiceStatus as InvoiceStatusOriginal,
4539
- ItemCategory as ItemCategoryOriginal,
4540
- OrderMethod as OrderMethodOriginal,
4541
- PauseAt as PauseAtOriginal,
4542
- PausePolicy as PausePolicyOriginal,
4543
- PaymentAttemptStatus as PaymentAttemptStatusOriginal,
4544
- PaymentMode as PaymentModeOriginal,
4545
- PaymentSettlementMethod as PaymentSettlementMethodOriginal,
4546
- PaymentStatusEnumPaymentStatus as PaymentStatusEnumPaymentStatusOriginal,
4547
- PaymentStatus as PaymentStatusOriginal,
4548
- PaymentTestMode as PaymentTestModeOriginal,
4549
- PriceAdjustmentReason as PriceAdjustmentReasonOriginal,
4550
- ProrationAction as ProrationActionOriginal,
4551
- ProrationBehavior as ProrationBehaviorOriginal,
4552
- RefundReason as RefundReasonOriginal,
4553
- RequestedFields as RequestedFieldsOriginal,
4554
- ResumeAt as ResumeAtOriginal,
4555
- RevivePolicy as RevivePolicyOriginal,
4556
- SortOrder as SortOrderOriginal,
4557
- Status as StatusOriginal,
4558
- SubscriptionFrequency as SubscriptionFrequencyOriginal,
4559
- SubscriptionStatusEnumSubscriptionStatus as SubscriptionStatusEnumSubscriptionStatusOriginal,
4560
- SubscriptionStatusGroup as SubscriptionStatusGroupOriginal,
4561
- SubscriptionType as SubscriptionTypeOriginal,
4562
- TaxableAddressType as TaxableAddressTypeOriginal,
4563
- UpdateAction as UpdateActionOriginal,
4564
- V1SubscriptionStatusEnumSubscriptionStatus as V1SubscriptionStatusEnumSubscriptionStatusOriginal,
4565
- WebhookIdentityType as WebhookIdentityTypeOriginal,
4566
- allowedActions2 as allowedActions,
4567
- cancelSubscription2 as cancelSubscription,
4568
- countSubscriptions2 as countSubscriptions,
4569
- customerAllowedActions2 as customerAllowedActions,
4570
- customerCancelScheduledPause2 as customerCancelScheduledPause,
4571
- customerCancelScheduledSkip2 as customerCancelScheduledSkip,
4572
- customerCancelSubscription2 as customerCancelSubscription,
4573
- customerExtendSubscription2 as customerExtendSubscription,
4574
- customerGetSubscription2 as customerGetSubscription,
4575
- customerInitiatePaymentMethodSetup2 as customerInitiatePaymentMethodSetup,
4576
- customerListUpcomingCharges2 as customerListUpcomingCharges,
4577
- customerPauseSubscription2 as customerPauseSubscription,
4578
- customerQuerySubscriptions2 as customerQuerySubscriptions,
4579
- customerResumeSubscription2 as customerResumeSubscription,
4580
- customerSkipCycle2 as customerSkipCycle,
4581
- customerTurnOffSubscriptionAutoRenewal2 as customerTurnOffSubscriptionAutoRenewal,
4582
- customerTurnOnSubscriptionAutoRenewal2 as customerTurnOnSubscriptionAutoRenewal,
4583
- customerUpdateBillingDate2 as customerUpdateBillingDate,
4584
- customerUpdateSubscriptionPaymentMethod2 as customerUpdateSubscriptionPaymentMethod,
4585
- extendSubscription2 as extendSubscription,
4586
- getSubscription2 as getSubscription,
4587
- getSubscriptionsStats2 as getSubscriptionsStats,
4588
- initiatePaymentMethodSetup2 as initiatePaymentMethodSetup,
4589
- listSubscriptionHistory2 as listSubscriptionHistory,
4590
- listUpcomingCharges2 as listUpcomingCharges,
4591
- markBillingCycleAsPaid2 as markBillingCycleAsPaid,
4592
- markLatestInvoiceAsPaid2 as markLatestInvoiceAsPaid,
4593
- pauseSubscription2 as pauseSubscription,
4594
- payCycle2 as payCycle,
4595
- previewSubscriptionCharges2 as previewSubscriptionCharges,
4596
- previewSubscriptionsCharges2 as previewSubscriptionsCharges,
4597
- querySubscriptions2 as querySubscriptions,
4598
- resumeSubscription2 as resumeSubscription,
4599
- reviseSubscription2 as reviseSubscription,
4600
- searchSubscriptions2 as searchSubscriptions,
4601
- turnOffSubscriptionAutoRenewal2 as turnOffSubscriptionAutoRenewal,
4602
- turnOnSubscriptionAutoRenewal2 as turnOnSubscriptionAutoRenewal,
4603
- updateSubscriptionBillingDate2 as updateSubscriptionBillingDate,
4604
- updateSubscriptionPaymentMethod2 as updateSubscriptionPaymentMethod
4605
- };
4606
- //# sourceMappingURL=meta.mjs.map