@wix/auto_sdk_subscription_subscriptions 1.0.7 → 1.0.9

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