@wix/auto_sdk_subscription_subscriptions 1.0.7 → 1.0.8

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