@deliverart/sdk-js-subscription 0.0.0-dev-20260721002647
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.
- package/README.md +294 -0
- package/dist/index.cjs +2871 -0
- package/dist/index.d.cts +9635 -0
- package/dist/index.d.ts +9635 -0
- package/dist/index.js +2556 -0
- package/package.json +33 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2871 @@
|
|
|
1
|
+
"use strict";
|
|
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 });
|
|
9
|
+
};
|
|
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
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
AdjustSubscriptionConsumptionCredits: () => AdjustSubscriptionConsumptionCredits,
|
|
24
|
+
AssignSubscriptionPlan: () => AssignSubscriptionPlan,
|
|
25
|
+
CalculateSubscriptionPlanPurchaseQuote: () => CalculateSubscriptionPlanPurchaseQuote,
|
|
26
|
+
CancelSubscriptionConsumptionRenewal: () => CancelSubscriptionConsumptionRenewal,
|
|
27
|
+
CancelSubscriptionPurchase: () => CancelSubscriptionPurchase,
|
|
28
|
+
CancelSubscriptionTimeBasedRenewal: () => CancelSubscriptionTimeBasedRenewal,
|
|
29
|
+
CreateSubscriptionConsumption: () => CreateSubscriptionConsumption,
|
|
30
|
+
CreateSubscriptionConsumptionRenewal: () => CreateSubscriptionConsumptionRenewal,
|
|
31
|
+
CreateSubscriptionInfinite: () => CreateSubscriptionInfinite,
|
|
32
|
+
CreateSubscriptionPlan: () => CreateSubscriptionPlan,
|
|
33
|
+
CreateSubscriptionPrice: () => CreateSubscriptionPrice,
|
|
34
|
+
CreateSubscriptionPurchase: () => CreateSubscriptionPurchase,
|
|
35
|
+
CreateSubscriptionTimeBased: () => CreateSubscriptionTimeBased,
|
|
36
|
+
CreateSubscriptionTimeBasedRenewal: () => CreateSubscriptionTimeBasedRenewal,
|
|
37
|
+
DeleteCreditUsageLog: () => DeleteCreditUsageLog,
|
|
38
|
+
DeleteSubscription: () => DeleteSubscription,
|
|
39
|
+
DeleteSubscriptionConsumption: () => DeleteSubscriptionConsumption,
|
|
40
|
+
DeleteSubscriptionConsumptionRenewal: () => DeleteSubscriptionConsumptionRenewal,
|
|
41
|
+
DeleteSubscriptionInfinite: () => DeleteSubscriptionInfinite,
|
|
42
|
+
DeleteSubscriptionPlan: () => DeleteSubscriptionPlan,
|
|
43
|
+
DeleteSubscriptionPrice: () => DeleteSubscriptionPrice,
|
|
44
|
+
DeleteSubscriptionTimeBased: () => DeleteSubscriptionTimeBased,
|
|
45
|
+
DeleteSubscriptionTimeBasedRenewal: () => DeleteSubscriptionTimeBasedRenewal,
|
|
46
|
+
GetCreditUsageLogDetails: () => GetCreditUsageLogDetails,
|
|
47
|
+
GetCreditUsageLogs: () => GetCreditUsageLogs,
|
|
48
|
+
GetCreditUsageLogsFromPointOfSale: () => GetCreditUsageLogsFromPointOfSale,
|
|
49
|
+
GetSubscriptionBillingOverview: () => GetSubscriptionBillingOverview,
|
|
50
|
+
GetSubscriptionBillingPendingVerification: () => GetSubscriptionBillingPendingVerification,
|
|
51
|
+
GetSubscriptionConsumptionDetails: () => GetSubscriptionConsumptionDetails,
|
|
52
|
+
GetSubscriptionConsumptionList: () => GetSubscriptionConsumptionList,
|
|
53
|
+
GetSubscriptionConsumptionRenewalDetails: () => GetSubscriptionConsumptionRenewalDetails,
|
|
54
|
+
GetSubscriptionConsumptionRenewals: () => GetSubscriptionConsumptionRenewals,
|
|
55
|
+
GetSubscriptionConsumptionRenewalsFromSubscriptionConsumption: () => GetSubscriptionConsumptionRenewalsFromSubscriptionConsumption,
|
|
56
|
+
GetSubscriptionDetails: () => GetSubscriptionDetails,
|
|
57
|
+
GetSubscriptionInfiniteDetails: () => GetSubscriptionInfiniteDetails,
|
|
58
|
+
GetSubscriptionInfiniteList: () => GetSubscriptionInfiniteList,
|
|
59
|
+
GetSubscriptionOverviewFromPointOfSale: () => GetSubscriptionOverviewFromPointOfSale,
|
|
60
|
+
GetSubscriptionPlanCatalog: () => GetSubscriptionPlanCatalog,
|
|
61
|
+
GetSubscriptionPlanCatalogDetails: () => GetSubscriptionPlanCatalogDetails,
|
|
62
|
+
GetSubscriptionPlanDetails: () => GetSubscriptionPlanDetails,
|
|
63
|
+
GetSubscriptionPlans: () => GetSubscriptionPlans,
|
|
64
|
+
GetSubscriptionPriceDetails: () => GetSubscriptionPriceDetails,
|
|
65
|
+
GetSubscriptionPrices: () => GetSubscriptionPrices,
|
|
66
|
+
GetSubscriptionPurchaseDetails: () => GetSubscriptionPurchaseDetails,
|
|
67
|
+
GetSubscriptionPurchases: () => GetSubscriptionPurchases,
|
|
68
|
+
GetSubscriptionPurchasesFromPointOfSale: () => GetSubscriptionPurchasesFromPointOfSale,
|
|
69
|
+
GetSubscriptionTimeBasedDetails: () => GetSubscriptionTimeBasedDetails,
|
|
70
|
+
GetSubscriptionTimeBasedList: () => GetSubscriptionTimeBasedList,
|
|
71
|
+
GetSubscriptionTimeBasedRenewalDetails: () => GetSubscriptionTimeBasedRenewalDetails,
|
|
72
|
+
GetSubscriptionTimeBasedRenewals: () => GetSubscriptionTimeBasedRenewals,
|
|
73
|
+
GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased: () => GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased,
|
|
74
|
+
GetSubscriptions: () => GetSubscriptions,
|
|
75
|
+
GetSubscriptionsFromPointOfSale: () => GetSubscriptionsFromPointOfSale,
|
|
76
|
+
PaySubscriptionConsumptionRenewal: () => PaySubscriptionConsumptionRenewal,
|
|
77
|
+
PaySubscriptionPurchase: () => PaySubscriptionPurchase,
|
|
78
|
+
PaySubscriptionTimeBasedRenewal: () => PaySubscriptionTimeBasedRenewal,
|
|
79
|
+
RefundSubscriptionConsumptionRenewal: () => RefundSubscriptionConsumptionRenewal,
|
|
80
|
+
RefundSubscriptionPurchase: () => RefundSubscriptionPurchase,
|
|
81
|
+
RefundSubscriptionTimeBasedRenewal: () => RefundSubscriptionTimeBasedRenewal,
|
|
82
|
+
ResolveSubscriptionConsumptionRenewalPayment: () => ResolveSubscriptionConsumptionRenewalPayment,
|
|
83
|
+
ResolveSubscriptionPurchasePayment: () => ResolveSubscriptionPurchasePayment,
|
|
84
|
+
ResolveSubscriptionTimeBasedRenewalPayment: () => ResolveSubscriptionTimeBasedRenewalPayment,
|
|
85
|
+
RetrySubscriptionConsumptionRenewalPayment: () => RetrySubscriptionConsumptionRenewalPayment,
|
|
86
|
+
RetrySubscriptionPurchasePayment: () => RetrySubscriptionPurchasePayment,
|
|
87
|
+
RetrySubscriptionTimeBasedRenewalPayment: () => RetrySubscriptionTimeBasedRenewalPayment,
|
|
88
|
+
UpdateSubscription: () => UpdateSubscription,
|
|
89
|
+
UpdateSubscriptionConsumption: () => UpdateSubscriptionConsumption,
|
|
90
|
+
UpdateSubscriptionPlan: () => UpdateSubscriptionPlan,
|
|
91
|
+
UpdateSubscriptionPrice: () => UpdateSubscriptionPrice,
|
|
92
|
+
UpdateSubscriptionTimeBased: () => UpdateSubscriptionTimeBased,
|
|
93
|
+
adjustSubscriptionConsumptionCreditsInputSchema: () => adjustSubscriptionConsumptionCreditsInputSchema,
|
|
94
|
+
adjustSubscriptionConsumptionCreditsResponseSchema: () => adjustSubscriptionConsumptionCreditsResponseSchema,
|
|
95
|
+
adjustableCreditTransactionTypeSchema: () => adjustableCreditTransactionTypeSchema,
|
|
96
|
+
adjustableCreditTransactionTypes: () => adjustableCreditTransactionTypes,
|
|
97
|
+
assignSubscriptionPlanInputSchema: () => assignSubscriptionPlanInputSchema,
|
|
98
|
+
assignSubscriptionPlanResponseSchema: () => assignSubscriptionPlanResponseSchema,
|
|
99
|
+
calculateSubscriptionPlanPurchaseQuoteInputSchema: () => calculateSubscriptionPlanPurchaseQuoteInputSchema,
|
|
100
|
+
calculateSubscriptionPlanPurchaseQuoteResponseSchema: () => calculateSubscriptionPlanPurchaseQuoteResponseSchema,
|
|
101
|
+
cancelSubscriptionConsumptionRenewalInputSchema: () => cancelSubscriptionConsumptionRenewalInputSchema,
|
|
102
|
+
cancelSubscriptionConsumptionRenewalResponseSchema: () => cancelSubscriptionConsumptionRenewalResponseSchema,
|
|
103
|
+
cancelSubscriptionPurchaseInputSchema: () => cancelSubscriptionPurchaseInputSchema,
|
|
104
|
+
cancelSubscriptionPurchaseResponseSchema: () => cancelSubscriptionPurchaseResponseSchema,
|
|
105
|
+
cancelSubscriptionTimeBasedRenewalInputSchema: () => cancelSubscriptionTimeBasedRenewalInputSchema,
|
|
106
|
+
cancelSubscriptionTimeBasedRenewalResponseSchema: () => cancelSubscriptionTimeBasedRenewalResponseSchema,
|
|
107
|
+
createSubscriptionConsumptionInputSchema: () => createSubscriptionConsumptionInputSchema,
|
|
108
|
+
createSubscriptionConsumptionRenewalInputSchema: () => createSubscriptionConsumptionRenewalInputSchema,
|
|
109
|
+
createSubscriptionConsumptionRenewalResponseSchema: () => createSubscriptionConsumptionRenewalResponseSchema,
|
|
110
|
+
createSubscriptionConsumptionResponseSchema: () => createSubscriptionConsumptionResponseSchema,
|
|
111
|
+
createSubscriptionInfiniteInputSchema: () => createSubscriptionInfiniteInputSchema,
|
|
112
|
+
createSubscriptionInfiniteResponseSchema: () => createSubscriptionInfiniteResponseSchema,
|
|
113
|
+
createSubscriptionPlanInputSchema: () => createSubscriptionPlanInputSchema,
|
|
114
|
+
createSubscriptionPlanResponseSchema: () => createSubscriptionPlanResponseSchema,
|
|
115
|
+
createSubscriptionPriceInputSchema: () => createSubscriptionPriceInputSchema,
|
|
116
|
+
createSubscriptionPriceResponseSchema: () => createSubscriptionPriceResponseSchema,
|
|
117
|
+
createSubscriptionPurchaseInputSchema: () => createSubscriptionPurchaseInputSchema,
|
|
118
|
+
createSubscriptionPurchaseResponseSchema: () => createSubscriptionPurchaseResponseSchema,
|
|
119
|
+
createSubscriptionTimeBasedInputSchema: () => createSubscriptionTimeBasedInputSchema,
|
|
120
|
+
createSubscriptionTimeBasedRenewalInputSchema: () => createSubscriptionTimeBasedRenewalInputSchema,
|
|
121
|
+
createSubscriptionTimeBasedRenewalResponseSchema: () => createSubscriptionTimeBasedRenewalResponseSchema,
|
|
122
|
+
createSubscriptionTimeBasedResponseSchema: () => createSubscriptionTimeBasedResponseSchema,
|
|
123
|
+
creditTransactionTypeSchema: () => import_sdk_js_global_types2.creditTransactionTypeSchema,
|
|
124
|
+
creditTransactionTypes: () => import_sdk_js_global_types2.creditTransactionTypes,
|
|
125
|
+
creditUsageLogDetailsSchema: () => creditUsageLogDetailsSchema,
|
|
126
|
+
creditUsageLogIriSchema: () => creditUsageLogIriSchema,
|
|
127
|
+
creditUsageLogNullableIriSchema: () => creditUsageLogNullableIriSchema,
|
|
128
|
+
creditUsageLogSchema: () => creditUsageLogSchema,
|
|
129
|
+
creditUsageLogsQuerySchema: () => creditUsageLogsQuerySchema,
|
|
130
|
+
deleteCreditUsageLogInputSchema: () => deleteCreditUsageLogInputSchema,
|
|
131
|
+
deleteCreditUsageLogResponseSchema: () => deleteCreditUsageLogResponseSchema,
|
|
132
|
+
deleteSubscriptionConsumptionInputSchema: () => deleteSubscriptionConsumptionInputSchema,
|
|
133
|
+
deleteSubscriptionConsumptionRenewalInputSchema: () => deleteSubscriptionConsumptionRenewalInputSchema,
|
|
134
|
+
deleteSubscriptionConsumptionRenewalResponseSchema: () => deleteSubscriptionConsumptionRenewalResponseSchema,
|
|
135
|
+
deleteSubscriptionConsumptionResponseSchema: () => deleteSubscriptionConsumptionResponseSchema,
|
|
136
|
+
deleteSubscriptionInfiniteInputSchema: () => deleteSubscriptionInfiniteInputSchema,
|
|
137
|
+
deleteSubscriptionInfiniteResponseSchema: () => deleteSubscriptionInfiniteResponseSchema,
|
|
138
|
+
deleteSubscriptionInputSchema: () => deleteSubscriptionInputSchema,
|
|
139
|
+
deleteSubscriptionPlanInputSchema: () => deleteSubscriptionPlanInputSchema,
|
|
140
|
+
deleteSubscriptionPlanResponseSchema: () => deleteSubscriptionPlanResponseSchema,
|
|
141
|
+
deleteSubscriptionPriceInputSchema: () => deleteSubscriptionPriceInputSchema,
|
|
142
|
+
deleteSubscriptionPriceResponseSchema: () => deleteSubscriptionPriceResponseSchema,
|
|
143
|
+
deleteSubscriptionResponseSchema: () => deleteSubscriptionResponseSchema,
|
|
144
|
+
deleteSubscriptionTimeBasedInputSchema: () => deleteSubscriptionTimeBasedInputSchema,
|
|
145
|
+
deleteSubscriptionTimeBasedRenewalInputSchema: () => deleteSubscriptionTimeBasedRenewalInputSchema,
|
|
146
|
+
deleteSubscriptionTimeBasedRenewalResponseSchema: () => deleteSubscriptionTimeBasedRenewalResponseSchema,
|
|
147
|
+
deleteSubscriptionTimeBasedResponseSchema: () => deleteSubscriptionTimeBasedResponseSchema,
|
|
148
|
+
getCreditUsageLogDetailsInputSchema: () => getCreditUsageLogDetailsInputSchema,
|
|
149
|
+
getCreditUsageLogDetailsResponseSchema: () => getCreditUsageLogDetailsResponseSchema,
|
|
150
|
+
getCreditUsageLogsFromPointOfSaleInputSchema: () => getCreditUsageLogsFromPointOfSaleInputSchema,
|
|
151
|
+
getCreditUsageLogsFromPointOfSaleResponseSchema: () => getCreditUsageLogsFromPointOfSaleResponseSchema,
|
|
152
|
+
getCreditUsageLogsInputSchema: () => getCreditUsageLogsInputSchema,
|
|
153
|
+
getCreditUsageLogsResponseSchema: () => getCreditUsageLogsResponseSchema,
|
|
154
|
+
getSubscriptionBillingOverviewInputSchema: () => getSubscriptionBillingOverviewInputSchema,
|
|
155
|
+
getSubscriptionBillingOverviewResponseSchema: () => getSubscriptionBillingOverviewResponseSchema,
|
|
156
|
+
getSubscriptionBillingPendingVerificationInputSchema: () => getSubscriptionBillingPendingVerificationInputSchema,
|
|
157
|
+
getSubscriptionBillingPendingVerificationResponseSchema: () => getSubscriptionBillingPendingVerificationResponseSchema,
|
|
158
|
+
getSubscriptionConsumptionDetailsInputSchema: () => getSubscriptionConsumptionDetailsInputSchema,
|
|
159
|
+
getSubscriptionConsumptionDetailsResponseSchema: () => getSubscriptionConsumptionDetailsResponseSchema,
|
|
160
|
+
getSubscriptionConsumptionListInputSchema: () => getSubscriptionConsumptionListInputSchema,
|
|
161
|
+
getSubscriptionConsumptionListResponseSchema: () => getSubscriptionConsumptionListResponseSchema,
|
|
162
|
+
getSubscriptionConsumptionRenewalDetailsInputSchema: () => getSubscriptionConsumptionRenewalDetailsInputSchema,
|
|
163
|
+
getSubscriptionConsumptionRenewalDetailsResponseSchema: () => getSubscriptionConsumptionRenewalDetailsResponseSchema,
|
|
164
|
+
getSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInputSchema: () => getSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInputSchema,
|
|
165
|
+
getSubscriptionConsumptionRenewalsInputSchema: () => getSubscriptionConsumptionRenewalsInputSchema,
|
|
166
|
+
getSubscriptionConsumptionRenewalsResponseSchema: () => getSubscriptionConsumptionRenewalsResponseSchema,
|
|
167
|
+
getSubscriptionDetailsInputSchema: () => getSubscriptionDetailsInputSchema,
|
|
168
|
+
getSubscriptionDetailsResponseSchema: () => getSubscriptionDetailsResponseSchema,
|
|
169
|
+
getSubscriptionInfiniteDetailsInputSchema: () => getSubscriptionInfiniteDetailsInputSchema,
|
|
170
|
+
getSubscriptionInfiniteDetailsResponseSchema: () => getSubscriptionInfiniteDetailsResponseSchema,
|
|
171
|
+
getSubscriptionInfiniteListInputSchema: () => getSubscriptionInfiniteListInputSchema,
|
|
172
|
+
getSubscriptionInfiniteListResponseSchema: () => getSubscriptionInfiniteListResponseSchema,
|
|
173
|
+
getSubscriptionOverviewFromPointOfSaleInputSchema: () => getSubscriptionOverviewFromPointOfSaleInputSchema,
|
|
174
|
+
getSubscriptionOverviewFromPointOfSaleResponseSchema: () => getSubscriptionOverviewFromPointOfSaleResponseSchema,
|
|
175
|
+
getSubscriptionPlanCatalogDetailsInputSchema: () => getSubscriptionPlanCatalogDetailsInputSchema,
|
|
176
|
+
getSubscriptionPlanCatalogDetailsResponseSchema: () => getSubscriptionPlanCatalogDetailsResponseSchema,
|
|
177
|
+
getSubscriptionPlanCatalogInputSchema: () => getSubscriptionPlanCatalogInputSchema,
|
|
178
|
+
getSubscriptionPlanCatalogResponseSchema: () => getSubscriptionPlanCatalogResponseSchema,
|
|
179
|
+
getSubscriptionPlanDetailsInputSchema: () => getSubscriptionPlanDetailsInputSchema,
|
|
180
|
+
getSubscriptionPlanDetailsResponseSchema: () => getSubscriptionPlanDetailsResponseSchema,
|
|
181
|
+
getSubscriptionPlansInputSchema: () => getSubscriptionPlansInputSchema,
|
|
182
|
+
getSubscriptionPlansResponseSchema: () => getSubscriptionPlansResponseSchema,
|
|
183
|
+
getSubscriptionPriceDetailsInputSchema: () => getSubscriptionPriceDetailsInputSchema,
|
|
184
|
+
getSubscriptionPriceDetailsResponseSchema: () => getSubscriptionPriceDetailsResponseSchema,
|
|
185
|
+
getSubscriptionPricesInputSchema: () => getSubscriptionPricesInputSchema,
|
|
186
|
+
getSubscriptionPricesResponseSchema: () => getSubscriptionPricesResponseSchema,
|
|
187
|
+
getSubscriptionPurchaseDetailsInputSchema: () => getSubscriptionPurchaseDetailsInputSchema,
|
|
188
|
+
getSubscriptionPurchaseDetailsResponseSchema: () => getSubscriptionPurchaseDetailsResponseSchema,
|
|
189
|
+
getSubscriptionPurchasesFromPointOfSaleInputSchema: () => getSubscriptionPurchasesFromPointOfSaleInputSchema,
|
|
190
|
+
getSubscriptionPurchasesInputSchema: () => getSubscriptionPurchasesInputSchema,
|
|
191
|
+
getSubscriptionPurchasesResponseSchema: () => getSubscriptionPurchasesResponseSchema,
|
|
192
|
+
getSubscriptionTimeBasedDetailsInputSchema: () => getSubscriptionTimeBasedDetailsInputSchema,
|
|
193
|
+
getSubscriptionTimeBasedDetailsResponseSchema: () => getSubscriptionTimeBasedDetailsResponseSchema,
|
|
194
|
+
getSubscriptionTimeBasedListInputSchema: () => getSubscriptionTimeBasedListInputSchema,
|
|
195
|
+
getSubscriptionTimeBasedListResponseSchema: () => getSubscriptionTimeBasedListResponseSchema,
|
|
196
|
+
getSubscriptionTimeBasedRenewalDetailsInputSchema: () => getSubscriptionTimeBasedRenewalDetailsInputSchema,
|
|
197
|
+
getSubscriptionTimeBasedRenewalDetailsResponseSchema: () => getSubscriptionTimeBasedRenewalDetailsResponseSchema,
|
|
198
|
+
getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema: () => getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema,
|
|
199
|
+
getSubscriptionTimeBasedRenewalsInputSchema: () => getSubscriptionTimeBasedRenewalsInputSchema,
|
|
200
|
+
getSubscriptionTimeBasedRenewalsResponseSchema: () => getSubscriptionTimeBasedRenewalsResponseSchema,
|
|
201
|
+
getSubscriptionsFromPointOfSaleInputSchema: () => getSubscriptionsFromPointOfSaleInputSchema,
|
|
202
|
+
getSubscriptionsFromPointOfSaleResponseSchema: () => getSubscriptionsFromPointOfSaleResponseSchema,
|
|
203
|
+
getSubscriptionsInputSchema: () => getSubscriptionsInputSchema,
|
|
204
|
+
getSubscriptionsResponseSchema: () => getSubscriptionsResponseSchema,
|
|
205
|
+
manageSubscriptionBillingInputSchema: () => manageSubscriptionBillingInputSchema,
|
|
206
|
+
paySubscriptionConsumptionRenewalInputSchema: () => paySubscriptionConsumptionRenewalInputSchema,
|
|
207
|
+
paySubscriptionConsumptionRenewalResponseSchema: () => paySubscriptionConsumptionRenewalResponseSchema,
|
|
208
|
+
paySubscriptionPurchaseInputSchema: () => paySubscriptionPurchaseInputSchema,
|
|
209
|
+
paySubscriptionPurchaseResponseSchema: () => paySubscriptionPurchaseResponseSchema,
|
|
210
|
+
paySubscriptionRenewalInputSchema: () => paySubscriptionRenewalInputSchema,
|
|
211
|
+
paySubscriptionTimeBasedRenewalInputSchema: () => paySubscriptionTimeBasedRenewalInputSchema,
|
|
212
|
+
paySubscriptionTimeBasedRenewalResponseSchema: () => paySubscriptionTimeBasedRenewalResponseSchema,
|
|
213
|
+
paymentIriSchema: () => paymentIriSchema,
|
|
214
|
+
paymentNullableIriSchema: () => paymentNullableIriSchema,
|
|
215
|
+
paymentStatusSchema: () => import_sdk_js_global_types2.paymentStatusSchema,
|
|
216
|
+
paymentStatuses: () => import_sdk_js_global_types2.paymentStatuses,
|
|
217
|
+
refundSubscriptionConsumptionRenewalInputSchema: () => refundSubscriptionConsumptionRenewalInputSchema,
|
|
218
|
+
refundSubscriptionConsumptionRenewalResponseSchema: () => refundSubscriptionConsumptionRenewalResponseSchema,
|
|
219
|
+
refundSubscriptionPurchaseInputSchema: () => refundSubscriptionPurchaseInputSchema,
|
|
220
|
+
refundSubscriptionPurchaseResponseSchema: () => refundSubscriptionPurchaseResponseSchema,
|
|
221
|
+
refundSubscriptionTimeBasedRenewalInputSchema: () => refundSubscriptionTimeBasedRenewalInputSchema,
|
|
222
|
+
refundSubscriptionTimeBasedRenewalResponseSchema: () => refundSubscriptionTimeBasedRenewalResponseSchema,
|
|
223
|
+
renewalStatusSchema: () => import_sdk_js_global_types2.renewalStatusSchema,
|
|
224
|
+
renewalStatuses: () => import_sdk_js_global_types2.renewalStatuses,
|
|
225
|
+
resolvableRenewalPaymentStatusSchema: () => resolvableRenewalPaymentStatusSchema,
|
|
226
|
+
resolvableRenewalPaymentStatuses: () => resolvableRenewalPaymentStatuses,
|
|
227
|
+
resolveSubscriptionConsumptionRenewalPaymentInputSchema: () => resolveSubscriptionConsumptionRenewalPaymentInputSchema,
|
|
228
|
+
resolveSubscriptionConsumptionRenewalPaymentResponseSchema: () => resolveSubscriptionConsumptionRenewalPaymentResponseSchema,
|
|
229
|
+
resolveSubscriptionPurchasePaymentInputSchema: () => resolveSubscriptionPurchasePaymentInputSchema,
|
|
230
|
+
resolveSubscriptionPurchasePaymentResponseSchema: () => resolveSubscriptionPurchasePaymentResponseSchema,
|
|
231
|
+
resolveSubscriptionRenewalPaymentInputSchema: () => resolveSubscriptionRenewalPaymentInputSchema,
|
|
232
|
+
resolveSubscriptionTimeBasedRenewalPaymentInputSchema: () => resolveSubscriptionTimeBasedRenewalPaymentInputSchema,
|
|
233
|
+
resolveSubscriptionTimeBasedRenewalPaymentResponseSchema: () => resolveSubscriptionTimeBasedRenewalPaymentResponseSchema,
|
|
234
|
+
retrySubscriptionConsumptionRenewalPaymentInputSchema: () => retrySubscriptionConsumptionRenewalPaymentInputSchema,
|
|
235
|
+
retrySubscriptionConsumptionRenewalPaymentResponseSchema: () => retrySubscriptionConsumptionRenewalPaymentResponseSchema,
|
|
236
|
+
retrySubscriptionPurchasePaymentInputSchema: () => retrySubscriptionPurchasePaymentInputSchema,
|
|
237
|
+
retrySubscriptionPurchasePaymentResponseSchema: () => retrySubscriptionPurchasePaymentResponseSchema,
|
|
238
|
+
retrySubscriptionTimeBasedRenewalPaymentInputSchema: () => retrySubscriptionTimeBasedRenewalPaymentInputSchema,
|
|
239
|
+
retrySubscriptionTimeBasedRenewalPaymentResponseSchema: () => retrySubscriptionTimeBasedRenewalPaymentResponseSchema,
|
|
240
|
+
subscriptionAvailabilityReasonSchema: () => subscriptionAvailabilityReasonSchema,
|
|
241
|
+
subscriptionAvailabilityReasons: () => subscriptionAvailabilityReasons,
|
|
242
|
+
subscriptionBillingOverviewResponseSchema: () => subscriptionBillingOverviewResponseSchema,
|
|
243
|
+
subscriptionBillingPendingVerificationItemSchema: () => subscriptionBillingPendingVerificationItemSchema,
|
|
244
|
+
subscriptionBillingPendingVerificationKindSchema: () => subscriptionBillingPendingVerificationKindSchema,
|
|
245
|
+
subscriptionBillingPendingVerificationKinds: () => subscriptionBillingPendingVerificationKinds,
|
|
246
|
+
subscriptionBillingPendingVerificationPaymentSchema: () => subscriptionBillingPendingVerificationPaymentSchema,
|
|
247
|
+
subscriptionBillingPendingVerificationPlanSchema: () => subscriptionBillingPendingVerificationPlanSchema,
|
|
248
|
+
subscriptionBillingPendingVerificationPointOfSaleSchema: () => subscriptionBillingPendingVerificationPointOfSaleSchema,
|
|
249
|
+
subscriptionBillingPendingVerificationQuerySchema: () => subscriptionBillingPendingVerificationQuerySchema,
|
|
250
|
+
subscriptionBillingPendingVerificationResolvedBySchema: () => subscriptionBillingPendingVerificationResolvedBySchema,
|
|
251
|
+
subscriptionBillingPendingVerificationSubjectSchema: () => subscriptionBillingPendingVerificationSubjectSchema,
|
|
252
|
+
subscriptionBillingPendingVerificationSubscriptionSchema: () => subscriptionBillingPendingVerificationSubscriptionSchema,
|
|
253
|
+
subscriptionConsumptionDetailsSchema: () => subscriptionConsumptionDetailsSchema,
|
|
254
|
+
subscriptionConsumptionIriSchema: () => subscriptionConsumptionIriSchema,
|
|
255
|
+
subscriptionConsumptionNullableIriSchema: () => subscriptionConsumptionNullableIriSchema,
|
|
256
|
+
subscriptionConsumptionQuerySchema: () => subscriptionConsumptionQuerySchema,
|
|
257
|
+
subscriptionConsumptionRenewalDetailsSchema: () => subscriptionConsumptionRenewalDetailsSchema,
|
|
258
|
+
subscriptionConsumptionRenewalIriSchema: () => subscriptionConsumptionRenewalIriSchema,
|
|
259
|
+
subscriptionConsumptionRenewalNullableIriSchema: () => subscriptionConsumptionRenewalNullableIriSchema,
|
|
260
|
+
subscriptionConsumptionRenewalSchema: () => subscriptionConsumptionRenewalSchema,
|
|
261
|
+
subscriptionConsumptionRenewalsQuerySchema: () => subscriptionConsumptionRenewalsQuerySchema,
|
|
262
|
+
subscriptionConsumptionSchema: () => subscriptionConsumptionSchema,
|
|
263
|
+
subscriptionDetailsSchema: () => subscriptionDetailsSchema,
|
|
264
|
+
subscriptionInfiniteDetailsSchema: () => subscriptionInfiniteDetailsSchema,
|
|
265
|
+
subscriptionInfiniteIriSchema: () => subscriptionInfiniteIriSchema,
|
|
266
|
+
subscriptionInfiniteNullableIriSchema: () => subscriptionInfiniteNullableIriSchema,
|
|
267
|
+
subscriptionInfiniteSchema: () => subscriptionInfiniteSchema,
|
|
268
|
+
subscriptionIriSchema: () => subscriptionIriSchema,
|
|
269
|
+
subscriptionNullableIriSchema: () => subscriptionNullableIriSchema,
|
|
270
|
+
subscriptionOperationQuoteSchema: () => subscriptionOperationQuoteSchema,
|
|
271
|
+
subscriptionOverviewPlanSchema: () => subscriptionOverviewPlanSchema,
|
|
272
|
+
subscriptionOverviewResponseSchema: () => subscriptionOverviewResponseSchema,
|
|
273
|
+
subscriptionOverviewSubscriptionSchema: () => subscriptionOverviewSubscriptionSchema,
|
|
274
|
+
subscriptionPaymentMethodSchema: () => subscriptionPaymentMethodSchema,
|
|
275
|
+
subscriptionPaymentMethods: () => subscriptionPaymentMethods,
|
|
276
|
+
subscriptionPlanIriSchema: () => subscriptionPlanIriSchema,
|
|
277
|
+
subscriptionPlanNullableIriSchema: () => subscriptionPlanNullableIriSchema,
|
|
278
|
+
subscriptionPlanPriceOptionSchema: () => subscriptionPlanPriceOptionSchema,
|
|
279
|
+
subscriptionPlanSchema: () => subscriptionPlanSchema,
|
|
280
|
+
subscriptionPlanSummarySchema: () => subscriptionPlanSummarySchema,
|
|
281
|
+
subscriptionPlansQuerySchema: () => subscriptionPlansQuerySchema,
|
|
282
|
+
subscriptionPriceIriSchema: () => subscriptionPriceIriSchema,
|
|
283
|
+
subscriptionPriceNullableIriSchema: () => subscriptionPriceNullableIriSchema,
|
|
284
|
+
subscriptionPriceSchema: () => subscriptionPriceSchema,
|
|
285
|
+
subscriptionPricesQuerySchema: () => subscriptionPricesQuerySchema,
|
|
286
|
+
subscriptionPurchaseDetailsSchema: () => subscriptionPurchaseDetailsSchema,
|
|
287
|
+
subscriptionPurchaseIriSchema: () => subscriptionPurchaseIriSchema,
|
|
288
|
+
subscriptionPurchaseLifecycleResponseSchema: () => subscriptionPurchaseLifecycleResponseSchema,
|
|
289
|
+
subscriptionPurchaseLifecycleSubscriptionSchema: () => subscriptionPurchaseLifecycleSubscriptionSchema,
|
|
290
|
+
subscriptionPurchaseNullableIriSchema: () => subscriptionPurchaseNullableIriSchema,
|
|
291
|
+
subscriptionPurchaseQuoteSchema: () => subscriptionPurchaseQuoteSchema,
|
|
292
|
+
subscriptionPurchaseSchema: () => subscriptionPurchaseSchema,
|
|
293
|
+
subscriptionPurchaseStatusSchema: () => subscriptionPurchaseStatusSchema,
|
|
294
|
+
subscriptionPurchaseStatuses: () => subscriptionPurchaseStatuses,
|
|
295
|
+
subscriptionPurchasesQuerySchema: () => subscriptionPurchasesQuerySchema,
|
|
296
|
+
subscriptionQuerySchema: () => subscriptionQuerySchema,
|
|
297
|
+
subscriptionRenewalLifecycleResponseSchema: () => subscriptionRenewalLifecycleResponseSchema,
|
|
298
|
+
subscriptionRenewalLifecycleSubscriptionSchema: () => subscriptionRenewalLifecycleSubscriptionSchema,
|
|
299
|
+
subscriptionRenewalPaymentInfoSchema: () => subscriptionRenewalPaymentInfoSchema,
|
|
300
|
+
subscriptionSchema: () => subscriptionSchema,
|
|
301
|
+
subscriptionStatusSchema: () => import_sdk_js_global_types2.subscriptionStatusSchema,
|
|
302
|
+
subscriptionStatuses: () => import_sdk_js_global_types2.subscriptionStatuses,
|
|
303
|
+
subscriptionTimeBasedDetailsSchema: () => subscriptionTimeBasedDetailsSchema,
|
|
304
|
+
subscriptionTimeBasedIriSchema: () => subscriptionTimeBasedIriSchema,
|
|
305
|
+
subscriptionTimeBasedNullableIriSchema: () => subscriptionTimeBasedNullableIriSchema,
|
|
306
|
+
subscriptionTimeBasedQuerySchema: () => subscriptionTimeBasedQuerySchema,
|
|
307
|
+
subscriptionTimeBasedRenewalDetailsSchema: () => subscriptionTimeBasedRenewalDetailsSchema,
|
|
308
|
+
subscriptionTimeBasedRenewalIriSchema: () => subscriptionTimeBasedRenewalIriSchema,
|
|
309
|
+
subscriptionTimeBasedRenewalNullableIriSchema: () => subscriptionTimeBasedRenewalNullableIriSchema,
|
|
310
|
+
subscriptionTimeBasedRenewalSchema: () => subscriptionTimeBasedRenewalSchema,
|
|
311
|
+
subscriptionTimeBasedRenewalsQuerySchema: () => subscriptionTimeBasedRenewalsQuerySchema,
|
|
312
|
+
subscriptionTimeBasedSchema: () => subscriptionTimeBasedSchema,
|
|
313
|
+
subscriptionTypeSchema: () => import_sdk_js_global_types2.subscriptionTypeSchema,
|
|
314
|
+
subscriptionTypes: () => import_sdk_js_global_types2.subscriptionTypes,
|
|
315
|
+
updateSubscriptionConsumptionInputSchema: () => updateSubscriptionConsumptionInputSchema,
|
|
316
|
+
updateSubscriptionConsumptionResponseSchema: () => updateSubscriptionConsumptionResponseSchema,
|
|
317
|
+
updateSubscriptionInputSchema: () => updateSubscriptionInputSchema,
|
|
318
|
+
updateSubscriptionPlanInputSchema: () => updateSubscriptionPlanInputSchema,
|
|
319
|
+
updateSubscriptionPlanResponseSchema: () => updateSubscriptionPlanResponseSchema,
|
|
320
|
+
updateSubscriptionPriceInputSchema: () => updateSubscriptionPriceInputSchema,
|
|
321
|
+
updateSubscriptionPriceResponseSchema: () => updateSubscriptionPriceResponseSchema,
|
|
322
|
+
updateSubscriptionResponseSchema: () => updateSubscriptionResponseSchema,
|
|
323
|
+
updateSubscriptionTimeBasedInputSchema: () => updateSubscriptionTimeBasedInputSchema,
|
|
324
|
+
updateSubscriptionTimeBasedResponseSchema: () => updateSubscriptionTimeBasedResponseSchema,
|
|
325
|
+
writableSubscriptionCommonSchema: () => writableSubscriptionCommonSchema,
|
|
326
|
+
writableSubscriptionConsumptionRenewalSchema: () => writableSubscriptionConsumptionRenewalSchema,
|
|
327
|
+
writableSubscriptionConsumptionSchema: () => writableSubscriptionConsumptionSchema,
|
|
328
|
+
writableSubscriptionInfiniteSchema: () => writableSubscriptionInfiniteSchema,
|
|
329
|
+
writableSubscriptionPlanSchema: () => writableSubscriptionPlanSchema,
|
|
330
|
+
writableSubscriptionPriceSchema: () => writableSubscriptionPriceSchema,
|
|
331
|
+
writableSubscriptionPurchaseSchema: () => writableSubscriptionPurchaseSchema,
|
|
332
|
+
writableSubscriptionTimeBasedRenewalSchema: () => writableSubscriptionTimeBasedRenewalSchema,
|
|
333
|
+
writableSubscriptionTimeBasedSchema: () => writableSubscriptionTimeBasedSchema
|
|
334
|
+
});
|
|
335
|
+
module.exports = __toCommonJS(index_exports);
|
|
336
|
+
|
|
337
|
+
// src/models.ts
|
|
338
|
+
var import_sdk_js_global_types3 = require("@deliverart/sdk-js-global-types");
|
|
339
|
+
var import_sdk_js_point_of_sale = require("@deliverart/sdk-js-point-of-sale");
|
|
340
|
+
var import_zod2 = require("zod");
|
|
341
|
+
|
|
342
|
+
// src/types.ts
|
|
343
|
+
var import_sdk_js_global_types = require("@deliverart/sdk-js-global-types");
|
|
344
|
+
var import_zod = require("zod");
|
|
345
|
+
var import_sdk_js_global_types2 = require("@deliverart/sdk-js-global-types");
|
|
346
|
+
var subscriptionPaymentMethods = ["stripe", "bank_transfer"];
|
|
347
|
+
var subscriptionPaymentMethodSchema = import_zod.z.enum(subscriptionPaymentMethods);
|
|
348
|
+
var adjustableCreditTransactionTypes = [
|
|
349
|
+
"gift",
|
|
350
|
+
"bonus",
|
|
351
|
+
"refund",
|
|
352
|
+
"manual_adjustment"
|
|
353
|
+
];
|
|
354
|
+
var adjustableCreditTransactionTypeSchema = import_zod.z.enum(adjustableCreditTransactionTypes);
|
|
355
|
+
var subscriptionAvailabilityReasons = [
|
|
356
|
+
"available",
|
|
357
|
+
"no_active_subscription",
|
|
358
|
+
"expired",
|
|
359
|
+
"insufficient_credits",
|
|
360
|
+
"operation_not_allowed"
|
|
361
|
+
];
|
|
362
|
+
var subscriptionAvailabilityReasonSchema = import_zod.z.enum(subscriptionAvailabilityReasons);
|
|
363
|
+
var subscriptionPurchaseStatuses = [
|
|
364
|
+
"pending",
|
|
365
|
+
"pending_verification",
|
|
366
|
+
"completed",
|
|
367
|
+
"cancelled",
|
|
368
|
+
"failed"
|
|
369
|
+
];
|
|
370
|
+
var subscriptionPurchaseStatusSchema = import_zod.z.enum(subscriptionPurchaseStatuses);
|
|
371
|
+
var resolvableRenewalPaymentStatuses = ["paid", "failed", "canceled"];
|
|
372
|
+
var resolvableRenewalPaymentStatusSchema = import_zod.z.enum(resolvableRenewalPaymentStatuses);
|
|
373
|
+
var subscriptionBillingPendingVerificationKinds = [
|
|
374
|
+
"purchase",
|
|
375
|
+
"consumption_renewal",
|
|
376
|
+
"time_based_renewal"
|
|
377
|
+
];
|
|
378
|
+
var subscriptionBillingPendingVerificationKindSchema = import_zod.z.enum(
|
|
379
|
+
subscriptionBillingPendingVerificationKinds
|
|
380
|
+
);
|
|
381
|
+
var subscriptionIriSchema = (0, import_sdk_js_global_types.iriSchema)("/subscriptions/:id");
|
|
382
|
+
var subscriptionNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/subscriptions/:id");
|
|
383
|
+
var subscriptionInfiniteIriSchema = (0, import_sdk_js_global_types.iriSchema)("/subscriptions/infinite/:id");
|
|
384
|
+
var subscriptionInfiniteNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)(
|
|
385
|
+
"/subscriptions/infinite/:id"
|
|
386
|
+
);
|
|
387
|
+
var subscriptionConsumptionIriSchema = (0, import_sdk_js_global_types.iriSchema)("/subscriptions/consumption/:id");
|
|
388
|
+
var subscriptionConsumptionNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)(
|
|
389
|
+
"/subscriptions/consumption/:id"
|
|
390
|
+
);
|
|
391
|
+
var subscriptionTimeBasedIriSchema = (0, import_sdk_js_global_types.iriSchema)("/subscriptions/time_based/:id");
|
|
392
|
+
var subscriptionTimeBasedNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)(
|
|
393
|
+
"/subscriptions/time_based/:id"
|
|
394
|
+
);
|
|
395
|
+
var subscriptionPriceIriSchema = (0, import_sdk_js_global_types.iriSchema)("/subscriptions/prices/:id");
|
|
396
|
+
var subscriptionPriceNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/subscriptions/prices/:id");
|
|
397
|
+
var subscriptionPlanIriSchema = (0, import_sdk_js_global_types.iriSchema)("/subscription_plans/:id");
|
|
398
|
+
var subscriptionPlanNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/subscription_plans/:id");
|
|
399
|
+
var subscriptionPurchaseIriSchema = (0, import_sdk_js_global_types.iriSchema)("/subscriptions/purchases/:id");
|
|
400
|
+
var subscriptionPurchaseNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/subscriptions/purchases/:id");
|
|
401
|
+
var subscriptionConsumptionRenewalIriSchema = (0, import_sdk_js_global_types.iriSchema)(
|
|
402
|
+
"/subscriptions/consumption/renewals/:id"
|
|
403
|
+
);
|
|
404
|
+
var subscriptionConsumptionRenewalNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)(
|
|
405
|
+
"/subscriptions/consumption/renewals/:id"
|
|
406
|
+
);
|
|
407
|
+
var subscriptionTimeBasedRenewalIriSchema = (0, import_sdk_js_global_types.iriSchema)(
|
|
408
|
+
"/subscriptions/time_based/renewals/:id"
|
|
409
|
+
);
|
|
410
|
+
var subscriptionTimeBasedRenewalNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)(
|
|
411
|
+
"/subscriptions/time_based/renewals/:id"
|
|
412
|
+
);
|
|
413
|
+
var paymentIriSchema = (0, import_sdk_js_global_types.iriSchema)("/payments/:id");
|
|
414
|
+
var paymentNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/payments/:id");
|
|
415
|
+
var creditUsageLogIriSchema = (0, import_sdk_js_global_types.iriSchema)("/credit_usage_logs/:id");
|
|
416
|
+
var creditUsageLogNullableIriSchema = (0, import_sdk_js_global_types.iriNullableSchema)("/credit_usage_logs/:id");
|
|
417
|
+
|
|
418
|
+
// src/models.ts
|
|
419
|
+
var subscriptionDateSchema = import_zod2.z.union([import_zod2.z.string().regex(/^\d{4}-\d{2}-\d{2}$/), import_sdk_js_global_types3.datetimeSchema]);
|
|
420
|
+
var integerRangeFilterShape = {
|
|
421
|
+
"[between]": import_zod2.z.coerce.number().optional(),
|
|
422
|
+
"[gt]": import_zod2.z.coerce.number().optional(),
|
|
423
|
+
"[gte]": import_zod2.z.coerce.number().optional(),
|
|
424
|
+
"[lt]": import_zod2.z.coerce.number().optional(),
|
|
425
|
+
"[lte]": import_zod2.z.coerce.number().optional()
|
|
426
|
+
};
|
|
427
|
+
var jsonContextSchema = import_zod2.z.union([import_zod2.z.array(import_zod2.z.unknown()), import_zod2.z.record(import_zod2.z.string(), import_zod2.z.unknown())]);
|
|
428
|
+
var subscriptionPlanSummarySchema = import_zod2.z.object({
|
|
429
|
+
id: import_zod2.z.string(),
|
|
430
|
+
code: import_zod2.z.string(),
|
|
431
|
+
name: import_zod2.z.string(),
|
|
432
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
433
|
+
isActive: import_zod2.z.boolean(),
|
|
434
|
+
isPurchasable: import_zod2.z.boolean(),
|
|
435
|
+
isAdminOnly: import_zod2.z.boolean()
|
|
436
|
+
});
|
|
437
|
+
var subscriptionOverviewPlanSchema = import_zod2.z.object({
|
|
438
|
+
id: import_zod2.z.string(),
|
|
439
|
+
iri: subscriptionPlanIriSchema,
|
|
440
|
+
code: import_zod2.z.string(),
|
|
441
|
+
name: import_zod2.z.string(),
|
|
442
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
443
|
+
active: import_zod2.z.boolean(),
|
|
444
|
+
purchasable: import_zod2.z.boolean(),
|
|
445
|
+
adminOnly: import_zod2.z.boolean()
|
|
446
|
+
});
|
|
447
|
+
var subscriptionPlanPriceOptionSchema = import_zod2.z.object({
|
|
448
|
+
id: import_zod2.z.string(),
|
|
449
|
+
iri: subscriptionPriceIriSchema,
|
|
450
|
+
threshold: import_zod2.z.coerce.number().int().nonnegative(),
|
|
451
|
+
unitPrice: import_zod2.z.string()
|
|
452
|
+
});
|
|
453
|
+
var subscriptionPlanSchema = import_zod2.z.object({
|
|
454
|
+
id: import_zod2.z.string(),
|
|
455
|
+
code: import_zod2.z.string(),
|
|
456
|
+
name: import_zod2.z.string(),
|
|
457
|
+
description: import_zod2.z.string().nullable(),
|
|
458
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
459
|
+
isActive: import_zod2.z.boolean(),
|
|
460
|
+
isPurchasable: import_zod2.z.boolean(),
|
|
461
|
+
isAdminOnly: import_zod2.z.boolean(),
|
|
462
|
+
defaultAutoRenewal: import_zod2.z.boolean(),
|
|
463
|
+
includedCredits: import_zod2.z.coerce.number().int().positive().nullable(),
|
|
464
|
+
renewalCredits: import_zod2.z.coerce.number().int().positive().nullable(),
|
|
465
|
+
renewalThreshold: import_zod2.z.coerce.number().int().nonnegative().nullable(),
|
|
466
|
+
durationDays: import_zod2.z.coerce.number().int().positive().nullable(),
|
|
467
|
+
renewalDays: import_zod2.z.coerce.number().int().positive().nullable(),
|
|
468
|
+
renewalOffsetDays: import_zod2.z.coerce.number().int().nonnegative().nullable(),
|
|
469
|
+
operationCosts: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.coerce.number().int().nonnegative()),
|
|
470
|
+
priceOptions: import_zod2.z.array(subscriptionPlanPriceOptionSchema).default([]),
|
|
471
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
472
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
473
|
+
});
|
|
474
|
+
var subscriptionBaseSchema = import_zod2.z.object({
|
|
475
|
+
id: import_zod2.z.string(),
|
|
476
|
+
status: import_sdk_js_global_types3.subscriptionStatusSchema,
|
|
477
|
+
autoRenewal: import_zod2.z.boolean(),
|
|
478
|
+
startsAt: subscriptionDateSchema,
|
|
479
|
+
customUnitPrice: import_zod2.z.string().nullable(),
|
|
480
|
+
plan: subscriptionPlanSummarySchema.nullable().optional(),
|
|
481
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
482
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
483
|
+
});
|
|
484
|
+
var subscriptionDetailsBaseSchema = subscriptionBaseSchema.extend({
|
|
485
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema
|
|
486
|
+
});
|
|
487
|
+
var subscriptionInfiniteSchema = subscriptionBaseSchema.extend({
|
|
488
|
+
type: import_zod2.z.literal("infinite")
|
|
489
|
+
});
|
|
490
|
+
var subscriptionInfiniteDetailsSchema = subscriptionDetailsBaseSchema.extend({
|
|
491
|
+
type: import_zod2.z.literal("infinite")
|
|
492
|
+
});
|
|
493
|
+
var subscriptionConsumptionSchema = subscriptionBaseSchema.extend({
|
|
494
|
+
type: import_zod2.z.literal("consumption"),
|
|
495
|
+
credits: import_zod2.z.coerce.number().int(),
|
|
496
|
+
autoRenewalExtensionCredits: import_zod2.z.coerce.number().int().nullable(),
|
|
497
|
+
autoRenewalThreshold: import_zod2.z.coerce.number().int().nullable(),
|
|
498
|
+
availableCredits: import_zod2.z.boolean()
|
|
499
|
+
});
|
|
500
|
+
var subscriptionConsumptionDetailsSchema = subscriptionDetailsBaseSchema.extend({
|
|
501
|
+
type: import_zod2.z.literal("consumption"),
|
|
502
|
+
credits: import_zod2.z.coerce.number().int(),
|
|
503
|
+
autoRenewalExtensionCredits: import_zod2.z.coerce.number().int().nullable(),
|
|
504
|
+
autoRenewalThreshold: import_zod2.z.coerce.number().int().nullable(),
|
|
505
|
+
availableCredits: import_zod2.z.boolean()
|
|
506
|
+
});
|
|
507
|
+
var subscriptionTimeBasedSchema = subscriptionBaseSchema.extend({
|
|
508
|
+
type: import_zod2.z.literal("time_based"),
|
|
509
|
+
expiresAt: subscriptionDateSchema,
|
|
510
|
+
autoRenewalExtensionDays: import_zod2.z.coerce.number().int().nullable(),
|
|
511
|
+
autoRenewalOffsetDays: import_zod2.z.coerce.number().int().nullable()
|
|
512
|
+
});
|
|
513
|
+
var subscriptionTimeBasedDetailsSchema = subscriptionDetailsBaseSchema.extend({
|
|
514
|
+
type: import_zod2.z.literal("time_based"),
|
|
515
|
+
expiresAt: subscriptionDateSchema,
|
|
516
|
+
autoRenewalExtensionDays: import_zod2.z.coerce.number().int().nullable(),
|
|
517
|
+
autoRenewalOffsetDays: import_zod2.z.coerce.number().int().nullable(),
|
|
518
|
+
latestCompletedRenewal: subscriptionTimeBasedRenewalNullableIriSchema.nullable()
|
|
519
|
+
});
|
|
520
|
+
var subscriptionSchema = import_zod2.z.discriminatedUnion("type", [
|
|
521
|
+
subscriptionInfiniteSchema,
|
|
522
|
+
subscriptionConsumptionSchema,
|
|
523
|
+
subscriptionTimeBasedSchema
|
|
524
|
+
]);
|
|
525
|
+
var subscriptionDetailsSchema = import_zod2.z.discriminatedUnion("type", [
|
|
526
|
+
subscriptionInfiniteDetailsSchema,
|
|
527
|
+
subscriptionConsumptionDetailsSchema,
|
|
528
|
+
subscriptionTimeBasedDetailsSchema
|
|
529
|
+
]);
|
|
530
|
+
var renewalBaseSchema = import_zod2.z.object({
|
|
531
|
+
id: import_zod2.z.string(),
|
|
532
|
+
status: import_sdk_js_global_types3.renewalStatusSchema,
|
|
533
|
+
price: import_zod2.z.string(),
|
|
534
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
535
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
536
|
+
});
|
|
537
|
+
var subscriptionConsumptionRenewalSchema = renewalBaseSchema.extend({
|
|
538
|
+
payment: paymentNullableIriSchema,
|
|
539
|
+
credits: import_zod2.z.coerce.number().int(),
|
|
540
|
+
pricePerCredit: import_zod2.z.coerce.number()
|
|
541
|
+
});
|
|
542
|
+
var subscriptionConsumptionRenewalDetailsSchema = subscriptionConsumptionRenewalSchema.extend({
|
|
543
|
+
subscription: subscriptionConsumptionIriSchema
|
|
544
|
+
});
|
|
545
|
+
var subscriptionTimeBasedRenewalSchema = renewalBaseSchema.extend({
|
|
546
|
+
payment: paymentNullableIriSchema,
|
|
547
|
+
days: import_zod2.z.coerce.number().int(),
|
|
548
|
+
previousExpiresDate: subscriptionDateSchema,
|
|
549
|
+
newExpiresDate: subscriptionDateSchema,
|
|
550
|
+
pricePerDay: import_zod2.z.coerce.number()
|
|
551
|
+
});
|
|
552
|
+
var subscriptionTimeBasedRenewalDetailsSchema = subscriptionTimeBasedRenewalSchema.extend({
|
|
553
|
+
subscription: subscriptionTimeBasedIriSchema
|
|
554
|
+
});
|
|
555
|
+
var subscriptionPurchaseSchema = import_zod2.z.object({
|
|
556
|
+
id: import_zod2.z.string(),
|
|
557
|
+
plan: subscriptionPlanIriSchema,
|
|
558
|
+
status: subscriptionPurchaseStatusSchema,
|
|
559
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
560
|
+
autoRenewal: import_zod2.z.boolean().nullable(),
|
|
561
|
+
startsAt: subscriptionDateSchema,
|
|
562
|
+
threshold: import_zod2.z.coerce.number().int().nonnegative(),
|
|
563
|
+
amount: import_zod2.z.string(),
|
|
564
|
+
paymentMethod: subscriptionPaymentMethodSchema.nullable(),
|
|
565
|
+
paymentStatus: import_sdk_js_global_types3.paymentStatusSchema.nullable(),
|
|
566
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
567
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
568
|
+
});
|
|
569
|
+
var subscriptionPurchaseDetailsSchema = subscriptionPurchaseSchema.extend({
|
|
570
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
571
|
+
payment: paymentNullableIriSchema.nullable().optional(),
|
|
572
|
+
subscription: subscriptionNullableIriSchema.nullable().optional()
|
|
573
|
+
});
|
|
574
|
+
var subscriptionPriceSchema = import_zod2.z.object({
|
|
575
|
+
id: import_zod2.z.string(),
|
|
576
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
577
|
+
plan: subscriptionPlanNullableIriSchema.nullable().optional(),
|
|
578
|
+
threshold: import_zod2.z.coerce.number().int(),
|
|
579
|
+
unitPrice: import_zod2.z.string(),
|
|
580
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
581
|
+
updatedAt: import_sdk_js_global_types3.datetimeSchema
|
|
582
|
+
});
|
|
583
|
+
var creditUsageLogSchema = import_zod2.z.object({
|
|
584
|
+
id: import_zod2.z.string(),
|
|
585
|
+
type: import_sdk_js_global_types3.creditTransactionTypeSchema,
|
|
586
|
+
creditsUsed: import_zod2.z.coerce.number().int(),
|
|
587
|
+
creditsDelta: import_zod2.z.coerce.number().int(),
|
|
588
|
+
balanceBefore: import_zod2.z.coerce.number().int().nullable(),
|
|
589
|
+
balanceAfter: import_zod2.z.coerce.number().int().nullable(),
|
|
590
|
+
reference: import_zod2.z.string().nullable(),
|
|
591
|
+
context: jsonContextSchema,
|
|
592
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema
|
|
593
|
+
});
|
|
594
|
+
var creditUsageLogDetailsSchema = creditUsageLogSchema.extend({
|
|
595
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
596
|
+
subscription: subscriptionConsumptionIriSchema.nullable()
|
|
597
|
+
});
|
|
598
|
+
var adjustSubscriptionConsumptionCreditsInputSchema = import_zod2.z.object({
|
|
599
|
+
type: adjustableCreditTransactionTypeSchema,
|
|
600
|
+
creditsDelta: import_zod2.z.coerce.number().int().refine((value) => value !== 0, { message: "creditsDelta.cannot_be_zero" }),
|
|
601
|
+
reference: import_zod2.z.string().max(255).optional(),
|
|
602
|
+
note: import_zod2.z.string().max(1e3).optional()
|
|
603
|
+
}).superRefine((value, ctx) => {
|
|
604
|
+
if (value.creditsDelta < 0 && value.type !== "manual_adjustment") {
|
|
605
|
+
ctx.addIssue({
|
|
606
|
+
code: import_zod2.z.ZodIssueCode.custom,
|
|
607
|
+
message: "creditsDelta.negative_only_allowed_for_manual_adjustment",
|
|
608
|
+
path: ["creditsDelta"]
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
var paySubscriptionRenewalInputSchema = import_zod2.z.object({
|
|
613
|
+
method: subscriptionPaymentMethodSchema
|
|
614
|
+
});
|
|
615
|
+
var paymentInfoBaseSchema = import_zod2.z.object({
|
|
616
|
+
id: import_zod2.z.string(),
|
|
617
|
+
method: subscriptionPaymentMethodSchema,
|
|
618
|
+
status: import_sdk_js_global_types3.paymentStatusSchema,
|
|
619
|
+
amount: import_zod2.z.string()
|
|
620
|
+
});
|
|
621
|
+
var subscriptionRenewalPaymentInfoSchema = import_zod2.z.discriminatedUnion("method", [
|
|
622
|
+
paymentInfoBaseSchema.extend({
|
|
623
|
+
method: import_zod2.z.literal("stripe"),
|
|
624
|
+
sessionUrl: import_zod2.z.string().nullable(),
|
|
625
|
+
expiresAt: import_sdk_js_global_types3.datetimeSchema
|
|
626
|
+
}),
|
|
627
|
+
paymentInfoBaseSchema.extend({
|
|
628
|
+
method: import_zod2.z.literal("bank_transfer"),
|
|
629
|
+
iban: import_zod2.z.string(),
|
|
630
|
+
bic: import_zod2.z.string(),
|
|
631
|
+
accountHolder: import_zod2.z.string(),
|
|
632
|
+
bankName: import_zod2.z.string(),
|
|
633
|
+
bankAddress: import_zod2.z.string().nullable(),
|
|
634
|
+
currency: import_zod2.z.string(),
|
|
635
|
+
description: import_zod2.z.string()
|
|
636
|
+
})
|
|
637
|
+
]);
|
|
638
|
+
var resolveSubscriptionRenewalPaymentInputSchema = import_zod2.z.object({
|
|
639
|
+
status: resolvableRenewalPaymentStatusSchema,
|
|
640
|
+
response: import_zod2.z.string().max(65535).optional()
|
|
641
|
+
});
|
|
642
|
+
var manageSubscriptionBillingInputSchema = import_zod2.z.object({
|
|
643
|
+
response: import_zod2.z.string().max(65535).optional()
|
|
644
|
+
});
|
|
645
|
+
var subscriptionPurchaseLifecycleSubscriptionSchema = import_zod2.z.object({
|
|
646
|
+
id: import_zod2.z.string(),
|
|
647
|
+
status: import_sdk_js_global_types3.subscriptionStatusSchema,
|
|
648
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema.nullable().optional()
|
|
649
|
+
});
|
|
650
|
+
var subscriptionPurchaseLifecycleResponseSchema = import_zod2.z.object({
|
|
651
|
+
id: import_zod2.z.string(),
|
|
652
|
+
status: subscriptionPurchaseStatusSchema,
|
|
653
|
+
payment: subscriptionRenewalPaymentInfoSchema.nullable(),
|
|
654
|
+
subscription: subscriptionPurchaseLifecycleSubscriptionSchema.nullable()
|
|
655
|
+
});
|
|
656
|
+
var subscriptionRenewalLifecycleSubscriptionSchema = import_zod2.z.object({
|
|
657
|
+
id: import_zod2.z.string(),
|
|
658
|
+
status: import_sdk_js_global_types3.subscriptionStatusSchema,
|
|
659
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema.nullable().optional(),
|
|
660
|
+
credits: import_zod2.z.coerce.number().int().nullable(),
|
|
661
|
+
expiresAt: subscriptionDateSchema.nullable()
|
|
662
|
+
});
|
|
663
|
+
var subscriptionRenewalLifecycleResponseSchema = import_zod2.z.object({
|
|
664
|
+
id: import_zod2.z.string(),
|
|
665
|
+
status: import_sdk_js_global_types3.renewalStatusSchema,
|
|
666
|
+
payment: subscriptionRenewalPaymentInfoSchema.nullable(),
|
|
667
|
+
subscription: subscriptionRenewalLifecycleSubscriptionSchema
|
|
668
|
+
});
|
|
669
|
+
var writableSubscriptionPurchaseSchema = import_zod2.z.object({
|
|
670
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
671
|
+
plan: subscriptionPlanIriSchema,
|
|
672
|
+
autoRenewal: import_zod2.z.boolean().optional().nullable(),
|
|
673
|
+
startsAt: subscriptionDateSchema.optional()
|
|
674
|
+
});
|
|
675
|
+
var assignSubscriptionPlanInputSchema = import_zod2.z.object({
|
|
676
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
677
|
+
autoRenewal: import_zod2.z.boolean().optional().nullable(),
|
|
678
|
+
startsAt: subscriptionDateSchema.optional().nullable()
|
|
679
|
+
});
|
|
680
|
+
var calculateSubscriptionPlanPurchaseQuoteInputSchema = import_zod2.z.object({
|
|
681
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
682
|
+
autoRenewal: import_zod2.z.boolean().optional().nullable(),
|
|
683
|
+
startsAt: subscriptionDateSchema.optional().nullable()
|
|
684
|
+
});
|
|
685
|
+
var subscriptionPurchaseQuoteSchema = import_zod2.z.object({
|
|
686
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
687
|
+
plan: subscriptionPlanIriSchema,
|
|
688
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
689
|
+
startsAt: subscriptionDateSchema,
|
|
690
|
+
autoRenewal: import_zod2.z.boolean(),
|
|
691
|
+
threshold: import_zod2.z.coerce.number().int().nonnegative(),
|
|
692
|
+
unitPrice: import_zod2.z.string(),
|
|
693
|
+
amount: import_zod2.z.string()
|
|
694
|
+
});
|
|
695
|
+
var subscriptionOverviewSubscriptionIriSchema = import_zod2.z.union([
|
|
696
|
+
subscriptionInfiniteIriSchema,
|
|
697
|
+
subscriptionConsumptionIriSchema,
|
|
698
|
+
subscriptionTimeBasedIriSchema
|
|
699
|
+
]);
|
|
700
|
+
var subscriptionOverviewSubscriptionSchema = import_zod2.z.object({
|
|
701
|
+
id: import_zod2.z.string(),
|
|
702
|
+
iri: subscriptionOverviewSubscriptionIriSchema,
|
|
703
|
+
plan: subscriptionOverviewPlanSchema.nullable(),
|
|
704
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
705
|
+
status: import_sdk_js_global_types3.subscriptionStatusSchema,
|
|
706
|
+
startsAt: subscriptionDateSchema,
|
|
707
|
+
endsAt: subscriptionDateSchema.nullable(),
|
|
708
|
+
autoRenewal: import_zod2.z.boolean(),
|
|
709
|
+
active: import_zod2.z.boolean(),
|
|
710
|
+
expired: import_zod2.z.boolean(),
|
|
711
|
+
pendingRenewal: import_zod2.z.boolean(),
|
|
712
|
+
daysUntilExpiration: import_zod2.z.coerce.number().int().nullable(),
|
|
713
|
+
credits: import_zod2.z.coerce.number().int().nullable(),
|
|
714
|
+
hasAvailableCredits: import_zod2.z.boolean().nullable(),
|
|
715
|
+
reminderThresholdCredits: import_zod2.z.coerce.number().int().nullable(),
|
|
716
|
+
renewalExtensionCredits: import_zod2.z.coerce.number().int().nullable(),
|
|
717
|
+
reminderOffsetDays: import_zod2.z.coerce.number().int().nullable(),
|
|
718
|
+
renewalExtensionDays: import_zod2.z.coerce.number().int().nullable()
|
|
719
|
+
});
|
|
720
|
+
var subscriptionOperationQuoteSchema = import_zod2.z.object({
|
|
721
|
+
operation: import_zod2.z.string().min(1),
|
|
722
|
+
cost: import_zod2.z.coerce.number().int().nonnegative(),
|
|
723
|
+
allowed: import_zod2.z.boolean(),
|
|
724
|
+
reason: subscriptionAvailabilityReasonSchema,
|
|
725
|
+
requiredCredits: import_zod2.z.coerce.number().int().nonnegative(),
|
|
726
|
+
remainingCredits: import_zod2.z.coerce.number().int().nullable(),
|
|
727
|
+
remainingCreditsAfter: import_zod2.z.coerce.number().int().nullable()
|
|
728
|
+
});
|
|
729
|
+
var subscriptionOverviewResponseSchema = import_zod2.z.object({
|
|
730
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
731
|
+
subscription: subscriptionOverviewSubscriptionSchema.nullable(),
|
|
732
|
+
operationCosts: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.coerce.number().int().nonnegative()),
|
|
733
|
+
operationQuotes: import_zod2.z.array(subscriptionOperationQuoteSchema)
|
|
734
|
+
});
|
|
735
|
+
var subscriptionBillingPendingVerificationPointOfSaleSchema = import_zod2.z.object({
|
|
736
|
+
id: import_zod2.z.string(),
|
|
737
|
+
iri: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
738
|
+
name: import_zod2.z.string(),
|
|
739
|
+
timezone: import_zod2.z.string().nullable()
|
|
740
|
+
});
|
|
741
|
+
var subscriptionBillingPendingVerificationPlanSchema = import_zod2.z.object({
|
|
742
|
+
id: import_zod2.z.string(),
|
|
743
|
+
iri: subscriptionPlanIriSchema,
|
|
744
|
+
code: import_zod2.z.string(),
|
|
745
|
+
name: import_zod2.z.string(),
|
|
746
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema
|
|
747
|
+
});
|
|
748
|
+
var subscriptionBillingPendingVerificationSubscriptionSchema = import_zod2.z.object({
|
|
749
|
+
id: import_zod2.z.string(),
|
|
750
|
+
iri: import_zod2.z.union([subscriptionConsumptionIriSchema, subscriptionTimeBasedIriSchema]),
|
|
751
|
+
status: import_sdk_js_global_types3.subscriptionStatusSchema,
|
|
752
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema.nullable().optional()
|
|
753
|
+
});
|
|
754
|
+
var subscriptionBillingPendingVerificationSubjectSchema = import_zod2.z.object({
|
|
755
|
+
id: import_zod2.z.string(),
|
|
756
|
+
iri: import_zod2.z.string().min(1),
|
|
757
|
+
status: import_zod2.z.string().min(1),
|
|
758
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema.nullable().optional(),
|
|
759
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
760
|
+
startsAt: subscriptionDateSchema.optional()
|
|
761
|
+
});
|
|
762
|
+
var subscriptionBillingPendingVerificationResolvedBySchema = import_zod2.z.object({
|
|
763
|
+
id: import_zod2.z.string(),
|
|
764
|
+
email: import_zod2.z.string().email().nullable(),
|
|
765
|
+
firstName: import_zod2.z.string().nullable(),
|
|
766
|
+
lastName: import_zod2.z.string().nullable()
|
|
767
|
+
});
|
|
768
|
+
var subscriptionBillingPendingVerificationPaymentSchema = import_zod2.z.object({
|
|
769
|
+
id: import_zod2.z.string(),
|
|
770
|
+
iri: paymentNullableIriSchema,
|
|
771
|
+
method: subscriptionPaymentMethodSchema,
|
|
772
|
+
status: import_sdk_js_global_types3.paymentStatusSchema,
|
|
773
|
+
amount: import_zod2.z.string(),
|
|
774
|
+
createdAt: import_sdk_js_global_types3.datetimeSchema,
|
|
775
|
+
resolvedAt: import_sdk_js_global_types3.datetimeSchema.nullable(),
|
|
776
|
+
resolvedBy: subscriptionBillingPendingVerificationResolvedBySchema.nullable(),
|
|
777
|
+
response: import_zod2.z.string().nullable()
|
|
778
|
+
});
|
|
779
|
+
var subscriptionBillingPendingVerificationItemSchema = import_zod2.z.object({
|
|
780
|
+
kind: subscriptionBillingPendingVerificationKindSchema,
|
|
781
|
+
subject: subscriptionBillingPendingVerificationSubjectSchema,
|
|
782
|
+
pointOfSale: subscriptionBillingPendingVerificationPointOfSaleSchema,
|
|
783
|
+
plan: subscriptionBillingPendingVerificationPlanSchema.nullable(),
|
|
784
|
+
subscription: subscriptionBillingPendingVerificationSubscriptionSchema.nullable(),
|
|
785
|
+
payment: subscriptionBillingPendingVerificationPaymentSchema.nullable(),
|
|
786
|
+
resolvePaymentUri: import_zod2.z.string().nullable(),
|
|
787
|
+
ageHours: import_zod2.z.coerce.number().int().nullable()
|
|
788
|
+
});
|
|
789
|
+
var subscriptionBillingPendingVerificationQuerySchema = import_zod2.z.object({
|
|
790
|
+
kind: subscriptionBillingPendingVerificationKindSchema.optional(),
|
|
791
|
+
pointOfSaleId: import_zod2.z.string().optional(),
|
|
792
|
+
olderThanHours: import_zod2.z.coerce.number().int().positive().optional(),
|
|
793
|
+
limit: import_zod2.z.coerce.number().int().positive().optional()
|
|
794
|
+
});
|
|
795
|
+
var subscriptionBillingOverviewResponseSchema = import_zod2.z.object({
|
|
796
|
+
generatedAt: import_sdk_js_global_types3.datetimeSchema,
|
|
797
|
+
billingReminderThresholdHours: import_zod2.z.coerce.number().int().positive(),
|
|
798
|
+
pendingVerification: import_zod2.z.object({
|
|
799
|
+
payments: import_zod2.z.coerce.number().int().nonnegative(),
|
|
800
|
+
purchases: import_zod2.z.coerce.number().int().nonnegative(),
|
|
801
|
+
consumptionRenewals: import_zod2.z.coerce.number().int().nonnegative(),
|
|
802
|
+
timeBasedRenewals: import_zod2.z.coerce.number().int().nonnegative()
|
|
803
|
+
}),
|
|
804
|
+
failedPayments: import_zod2.z.object({
|
|
805
|
+
payments: import_zod2.z.coerce.number().int().nonnegative(),
|
|
806
|
+
purchases: import_zod2.z.coerce.number().int().nonnegative(),
|
|
807
|
+
consumptionRenewals: import_zod2.z.coerce.number().int().nonnegative(),
|
|
808
|
+
timeBasedRenewals: import_zod2.z.coerce.number().int().nonnegative()
|
|
809
|
+
}),
|
|
810
|
+
pendingPurchases: import_zod2.z.object({
|
|
811
|
+
pending: import_zod2.z.coerce.number().int().nonnegative(),
|
|
812
|
+
pendingVerification: import_zod2.z.coerce.number().int().nonnegative(),
|
|
813
|
+
openTotal: import_zod2.z.coerce.number().int().nonnegative()
|
|
814
|
+
}),
|
|
815
|
+
pendingRenewals: import_zod2.z.object({
|
|
816
|
+
consumption: import_zod2.z.coerce.number().int().nonnegative(),
|
|
817
|
+
timeBased: import_zod2.z.coerce.number().int().nonnegative(),
|
|
818
|
+
total: import_zod2.z.coerce.number().int().nonnegative()
|
|
819
|
+
}),
|
|
820
|
+
queuePreview: import_zod2.z.array(subscriptionBillingPendingVerificationItemSchema)
|
|
821
|
+
});
|
|
822
|
+
var writableSubscriptionCommonSchema = import_zod2.z.object({
|
|
823
|
+
pointOfSale: import_sdk_js_point_of_sale.pointOfSaleIriSchema,
|
|
824
|
+
autoRenewal: import_sdk_js_global_types3.booleanSchema.optional(),
|
|
825
|
+
startsAt: subscriptionDateSchema.optional()
|
|
826
|
+
});
|
|
827
|
+
var writableSubscriptionInfiniteSchema = writableSubscriptionCommonSchema;
|
|
828
|
+
var writableSubscriptionConsumptionSchema = writableSubscriptionCommonSchema.extend({
|
|
829
|
+
autoRenewalExtensionCredits: import_zod2.z.coerce.number().int().nonnegative().nullable().optional(),
|
|
830
|
+
autoRenewalThreshold: import_zod2.z.coerce.number().int().nonnegative().nullable().optional()
|
|
831
|
+
});
|
|
832
|
+
var writableSubscriptionTimeBasedSchema = writableSubscriptionCommonSchema.extend({
|
|
833
|
+
expiresAt: subscriptionDateSchema,
|
|
834
|
+
autoRenewalExtensionDays: import_zod2.z.coerce.number().int().positive().nullable().optional(),
|
|
835
|
+
autoRenewalOffsetDays: import_zod2.z.coerce.number().int().nonnegative().nullable().optional()
|
|
836
|
+
});
|
|
837
|
+
var writableSubscriptionPriceSchema = import_zod2.z.object({
|
|
838
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
839
|
+
plan: subscriptionPlanNullableIriSchema.nullable().optional(),
|
|
840
|
+
threshold: import_zod2.z.coerce.number().int().nonnegative(),
|
|
841
|
+
unitPrice: import_zod2.z.string()
|
|
842
|
+
});
|
|
843
|
+
var writableSubscriptionPlanSchema = import_zod2.z.object({
|
|
844
|
+
code: import_zod2.z.string().min(1).max(100),
|
|
845
|
+
name: import_zod2.z.string().min(1).max(255),
|
|
846
|
+
description: import_zod2.z.string().optional().nullable(),
|
|
847
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema,
|
|
848
|
+
isActive: import_zod2.z.boolean().optional(),
|
|
849
|
+
isPurchasable: import_zod2.z.boolean().optional(),
|
|
850
|
+
isAdminOnly: import_zod2.z.boolean().optional(),
|
|
851
|
+
defaultAutoRenewal: import_zod2.z.boolean().optional(),
|
|
852
|
+
includedCredits: import_zod2.z.coerce.number().int().positive().optional().nullable(),
|
|
853
|
+
renewalCredits: import_zod2.z.coerce.number().int().positive().optional().nullable(),
|
|
854
|
+
renewalThreshold: import_zod2.z.coerce.number().int().nonnegative().optional().nullable(),
|
|
855
|
+
durationDays: import_zod2.z.coerce.number().int().positive().optional().nullable(),
|
|
856
|
+
renewalDays: import_zod2.z.coerce.number().int().positive().optional().nullable(),
|
|
857
|
+
renewalOffsetDays: import_zod2.z.coerce.number().int().nonnegative().optional().nullable(),
|
|
858
|
+
operationCosts: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.coerce.number().int().nonnegative()).optional()
|
|
859
|
+
});
|
|
860
|
+
var writableSubscriptionConsumptionRenewalSchema = import_zod2.z.object({
|
|
861
|
+
subscription: subscriptionConsumptionIriSchema,
|
|
862
|
+
credits: import_zod2.z.coerce.number().int().positive()
|
|
863
|
+
});
|
|
864
|
+
var writableSubscriptionTimeBasedRenewalSchema = import_zod2.z.object({
|
|
865
|
+
subscription: subscriptionTimeBasedIriSchema,
|
|
866
|
+
days: import_zod2.z.coerce.number().int().positive()
|
|
867
|
+
});
|
|
868
|
+
var subscriptionQuerySchema = import_zod2.z.object({
|
|
869
|
+
id: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).optional(),
|
|
870
|
+
status: import_zod2.z.union([import_sdk_js_global_types3.subscriptionStatusSchema, import_zod2.z.array(import_sdk_js_global_types3.subscriptionStatusSchema)]).optional(),
|
|
871
|
+
type: import_sdk_js_global_types3.subscriptionTypeSchema.optional(),
|
|
872
|
+
autoRenewal: import_sdk_js_global_types3.booleanSchema.optional(),
|
|
873
|
+
"exists[customUnitPrice]": import_sdk_js_global_types3.booleanSchema.optional(),
|
|
874
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
875
|
+
"order[updatedAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
876
|
+
"startsAt[before]": import_zod2.z.string().optional(),
|
|
877
|
+
"startsAt[strictly_before]": import_zod2.z.string().optional(),
|
|
878
|
+
"startsAt[after]": import_zod2.z.string().optional(),
|
|
879
|
+
"startsAt[strictly_after]": import_zod2.z.string().optional(),
|
|
880
|
+
page: import_zod2.z.coerce.number().optional()
|
|
881
|
+
}).extend(import_sdk_js_global_types3.timestampsFilterSchema.shape);
|
|
882
|
+
var subscriptionConsumptionQuerySchema = subscriptionQuerySchema.extend({
|
|
883
|
+
"credits[between]": integerRangeFilterShape["[between]"],
|
|
884
|
+
"credits[gt]": integerRangeFilterShape["[gt]"],
|
|
885
|
+
"credits[gte]": integerRangeFilterShape["[gte]"],
|
|
886
|
+
"credits[lt]": integerRangeFilterShape["[lt]"],
|
|
887
|
+
"credits[lte]": integerRangeFilterShape["[lte]"],
|
|
888
|
+
"autoRenewalExtensionCredits[between]": integerRangeFilterShape["[between]"],
|
|
889
|
+
"autoRenewalExtensionCredits[gt]": integerRangeFilterShape["[gt]"],
|
|
890
|
+
"autoRenewalExtensionCredits[gte]": integerRangeFilterShape["[gte]"],
|
|
891
|
+
"autoRenewalExtensionCredits[lt]": integerRangeFilterShape["[lt]"],
|
|
892
|
+
"autoRenewalExtensionCredits[lte]": integerRangeFilterShape["[lte]"],
|
|
893
|
+
"autoRenewalThreshold[between]": integerRangeFilterShape["[between]"],
|
|
894
|
+
"autoRenewalThreshold[gt]": integerRangeFilterShape["[gt]"],
|
|
895
|
+
"autoRenewalThreshold[gte]": integerRangeFilterShape["[gte]"],
|
|
896
|
+
"autoRenewalThreshold[lt]": integerRangeFilterShape["[lt]"],
|
|
897
|
+
"autoRenewalThreshold[lte]": integerRangeFilterShape["[lte]"]
|
|
898
|
+
});
|
|
899
|
+
var subscriptionTimeBasedQuerySchema = subscriptionQuerySchema.extend({
|
|
900
|
+
"expiresAt[before]": import_zod2.z.string().optional(),
|
|
901
|
+
"expiresAt[strictly_before]": import_zod2.z.string().optional(),
|
|
902
|
+
"expiresAt[after]": import_zod2.z.string().optional(),
|
|
903
|
+
"expiresAt[strictly_after]": import_zod2.z.string().optional(),
|
|
904
|
+
"autoRenewalExtensionDays[between]": integerRangeFilterShape["[between]"],
|
|
905
|
+
"autoRenewalExtensionDays[gt]": integerRangeFilterShape["[gt]"],
|
|
906
|
+
"autoRenewalExtensionDays[gte]": integerRangeFilterShape["[gte]"],
|
|
907
|
+
"autoRenewalExtensionDays[lt]": integerRangeFilterShape["[lt]"],
|
|
908
|
+
"autoRenewalExtensionDays[lte]": integerRangeFilterShape["[lte]"],
|
|
909
|
+
"autoRenewalOffsetDays[between]": integerRangeFilterShape["[between]"],
|
|
910
|
+
"autoRenewalOffsetDays[gt]": integerRangeFilterShape["[gt]"],
|
|
911
|
+
"autoRenewalOffsetDays[gte]": integerRangeFilterShape["[gte]"],
|
|
912
|
+
"autoRenewalOffsetDays[lt]": integerRangeFilterShape["[lt]"],
|
|
913
|
+
"autoRenewalOffsetDays[lte]": integerRangeFilterShape["[lte]"]
|
|
914
|
+
});
|
|
915
|
+
var renewalQueryBaseSchema = import_zod2.z.object({
|
|
916
|
+
id: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).optional(),
|
|
917
|
+
status: import_zod2.z.union([import_sdk_js_global_types3.renewalStatusSchema, import_zod2.z.array(import_sdk_js_global_types3.renewalStatusSchema)]).optional(),
|
|
918
|
+
"price[between]": import_zod2.z.coerce.number().optional(),
|
|
919
|
+
"price[gt]": import_zod2.z.coerce.number().optional(),
|
|
920
|
+
"price[gte]": import_zod2.z.coerce.number().optional(),
|
|
921
|
+
"price[lt]": import_zod2.z.coerce.number().optional(),
|
|
922
|
+
"price[lte]": import_zod2.z.coerce.number().optional(),
|
|
923
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
924
|
+
"order[updatedAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
925
|
+
page: import_zod2.z.coerce.number().optional()
|
|
926
|
+
}).extend(import_sdk_js_global_types3.timestampsFilterSchema.shape);
|
|
927
|
+
var subscriptionConsumptionRenewalsQuerySchema = renewalQueryBaseSchema.extend({
|
|
928
|
+
"credits[between]": integerRangeFilterShape["[between]"],
|
|
929
|
+
"credits[gt]": integerRangeFilterShape["[gt]"],
|
|
930
|
+
"credits[gte]": integerRangeFilterShape["[gte]"],
|
|
931
|
+
"credits[lt]": integerRangeFilterShape["[lt]"],
|
|
932
|
+
"credits[lte]": integerRangeFilterShape["[lte]"]
|
|
933
|
+
});
|
|
934
|
+
var subscriptionTimeBasedRenewalsQuerySchema = renewalQueryBaseSchema.extend({
|
|
935
|
+
"days[between]": integerRangeFilterShape["[between]"],
|
|
936
|
+
"days[gt]": integerRangeFilterShape["[gt]"],
|
|
937
|
+
"days[gte]": integerRangeFilterShape["[gte]"],
|
|
938
|
+
"days[lt]": integerRangeFilterShape["[lt]"],
|
|
939
|
+
"days[lte]": integerRangeFilterShape["[lte]"]
|
|
940
|
+
});
|
|
941
|
+
var subscriptionPlansQuerySchema = import_zod2.z.object({
|
|
942
|
+
id: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).optional(),
|
|
943
|
+
code: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).optional(),
|
|
944
|
+
name: import_zod2.z.string().optional(),
|
|
945
|
+
type: import_zod2.z.union([import_sdk_js_global_types3.subscriptionTypeSchema, import_zod2.z.array(import_sdk_js_global_types3.subscriptionTypeSchema)]).optional(),
|
|
946
|
+
isActive: import_sdk_js_global_types3.booleanSchema.optional(),
|
|
947
|
+
isPurchasable: import_sdk_js_global_types3.booleanSchema.optional(),
|
|
948
|
+
isAdminOnly: import_sdk_js_global_types3.booleanSchema.optional(),
|
|
949
|
+
defaultAutoRenewal: import_sdk_js_global_types3.booleanSchema.optional(),
|
|
950
|
+
"order[name]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
951
|
+
"order[code]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
952
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
953
|
+
"order[updatedAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
954
|
+
page: import_zod2.z.coerce.number().optional()
|
|
955
|
+
}).extend(import_sdk_js_global_types3.timestampsFilterSchema.shape);
|
|
956
|
+
var subscriptionPricesQuerySchema = import_zod2.z.object({
|
|
957
|
+
id: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).optional(),
|
|
958
|
+
type: import_zod2.z.union([import_sdk_js_global_types3.subscriptionTypeSchema, import_zod2.z.array(import_sdk_js_global_types3.subscriptionTypeSchema)]).optional(),
|
|
959
|
+
"plan.id": import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).optional(),
|
|
960
|
+
"plan.code": import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).optional(),
|
|
961
|
+
"threshold[between]": import_zod2.z.coerce.number().optional(),
|
|
962
|
+
"threshold[gt]": import_zod2.z.coerce.number().optional(),
|
|
963
|
+
"threshold[gte]": import_zod2.z.coerce.number().optional(),
|
|
964
|
+
"threshold[lt]": import_zod2.z.coerce.number().optional(),
|
|
965
|
+
"threshold[lte]": import_zod2.z.coerce.number().optional(),
|
|
966
|
+
"unitPrice[between]": import_zod2.z.coerce.number().optional(),
|
|
967
|
+
"unitPrice[gt]": import_zod2.z.coerce.number().optional(),
|
|
968
|
+
"unitPrice[gte]": import_zod2.z.coerce.number().optional(),
|
|
969
|
+
"unitPrice[lt]": import_zod2.z.coerce.number().optional(),
|
|
970
|
+
"unitPrice[lte]": import_zod2.z.coerce.number().optional(),
|
|
971
|
+
"order[threshold]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
972
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
973
|
+
"order[updatedAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
974
|
+
page: import_zod2.z.coerce.number().optional()
|
|
975
|
+
}).extend(import_sdk_js_global_types3.timestampsFilterSchema.shape);
|
|
976
|
+
var subscriptionPurchasesQuerySchema = import_zod2.z.object({
|
|
977
|
+
id: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).optional(),
|
|
978
|
+
status: import_zod2.z.union([subscriptionPurchaseStatusSchema, import_zod2.z.array(subscriptionPurchaseStatusSchema)]).optional(),
|
|
979
|
+
type: import_zod2.z.union([import_sdk_js_global_types3.subscriptionTypeSchema, import_zod2.z.array(import_sdk_js_global_types3.subscriptionTypeSchema)]).optional(),
|
|
980
|
+
"pointOfSale.id": import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).optional(),
|
|
981
|
+
"plan.id": import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).optional(),
|
|
982
|
+
"plan.code": import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).optional(),
|
|
983
|
+
"startsAt[before]": import_zod2.z.string().optional(),
|
|
984
|
+
"startsAt[strictly_before]": import_zod2.z.string().optional(),
|
|
985
|
+
"startsAt[after]": import_zod2.z.string().optional(),
|
|
986
|
+
"startsAt[strictly_after]": import_zod2.z.string().optional(),
|
|
987
|
+
"threshold[between]": import_zod2.z.coerce.number().optional(),
|
|
988
|
+
"threshold[gt]": import_zod2.z.coerce.number().optional(),
|
|
989
|
+
"threshold[gte]": import_zod2.z.coerce.number().optional(),
|
|
990
|
+
"threshold[lt]": import_zod2.z.coerce.number().optional(),
|
|
991
|
+
"threshold[lte]": import_zod2.z.coerce.number().optional(),
|
|
992
|
+
"amount[between]": import_zod2.z.coerce.number().optional(),
|
|
993
|
+
"amount[gt]": import_zod2.z.coerce.number().optional(),
|
|
994
|
+
"amount[gte]": import_zod2.z.coerce.number().optional(),
|
|
995
|
+
"amount[lt]": import_zod2.z.coerce.number().optional(),
|
|
996
|
+
"amount[lte]": import_zod2.z.coerce.number().optional(),
|
|
997
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
998
|
+
"order[updatedAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
999
|
+
"order[startsAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
1000
|
+
"order[amount]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
1001
|
+
page: import_zod2.z.coerce.number().optional()
|
|
1002
|
+
}).extend(import_sdk_js_global_types3.timestampsFilterSchema.shape);
|
|
1003
|
+
var creditUsageLogsQuerySchema = import_zod2.z.object({
|
|
1004
|
+
id: import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]).optional(),
|
|
1005
|
+
type: import_zod2.z.union([import_sdk_js_global_types3.creditTransactionTypeSchema, import_zod2.z.array(import_sdk_js_global_types3.creditTransactionTypeSchema)]).optional(),
|
|
1006
|
+
"order[createdAt]": import_sdk_js_global_types3.sortDirSchema.optional(),
|
|
1007
|
+
page: import_zod2.z.coerce.number().optional()
|
|
1008
|
+
}).extend(
|
|
1009
|
+
import_zod2.z.object({
|
|
1010
|
+
"createdAt[before]": import_zod2.z.string().optional(),
|
|
1011
|
+
"createdAt[strictly_before]": import_zod2.z.string().optional(),
|
|
1012
|
+
"createdAt[after]": import_zod2.z.string().optional(),
|
|
1013
|
+
"createdAt[strictly_after]": import_zod2.z.string().optional()
|
|
1014
|
+
}).shape
|
|
1015
|
+
);
|
|
1016
|
+
var getSubscriptionsResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(subscriptionSchema);
|
|
1017
|
+
var getSubscriptionConsumptionListResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(
|
|
1018
|
+
subscriptionConsumptionSchema
|
|
1019
|
+
);
|
|
1020
|
+
var getSubscriptionTimeBasedListResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(
|
|
1021
|
+
subscriptionTimeBasedSchema
|
|
1022
|
+
);
|
|
1023
|
+
var getSubscriptionInfiniteListResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(
|
|
1024
|
+
subscriptionInfiniteSchema
|
|
1025
|
+
);
|
|
1026
|
+
var getSubscriptionPlansResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(subscriptionPlanSchema);
|
|
1027
|
+
var getSubscriptionPricesResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(subscriptionPriceSchema);
|
|
1028
|
+
var getSubscriptionPurchasesResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(subscriptionPurchaseSchema);
|
|
1029
|
+
var getCreditUsageLogsResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(creditUsageLogSchema);
|
|
1030
|
+
var getSubscriptionConsumptionRenewalsResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(
|
|
1031
|
+
subscriptionConsumptionRenewalSchema
|
|
1032
|
+
);
|
|
1033
|
+
var getSubscriptionTimeBasedRenewalsResponseSchema = (0, import_sdk_js_global_types3.createPaginatedSchema)(
|
|
1034
|
+
subscriptionTimeBasedRenewalSchema
|
|
1035
|
+
);
|
|
1036
|
+
var getSubscriptionPlanCatalogResponseSchema = import_zod2.z.array(subscriptionPlanSchema);
|
|
1037
|
+
var getSubscriptionBillingPendingVerificationResponseSchema = import_zod2.z.array(
|
|
1038
|
+
subscriptionBillingPendingVerificationItemSchema
|
|
1039
|
+
);
|
|
1040
|
+
|
|
1041
|
+
// src/requests/credit-usage-logs/DeleteCreditUsageLog.ts
|
|
1042
|
+
var import_sdk_js_core = require("@deliverart/sdk-js-core");
|
|
1043
|
+
var import_sdk_js_global_types4 = require("@deliverart/sdk-js-global-types");
|
|
1044
|
+
var import_zod3 = require("zod");
|
|
1045
|
+
var deleteCreditUsageLogInputSchema = import_zod3.z.undefined();
|
|
1046
|
+
var deleteCreditUsageLogResponseSchema = import_sdk_js_global_types4.emptyResponseSchema;
|
|
1047
|
+
var DeleteCreditUsageLog = class extends import_sdk_js_core.AbstractApiRequest {
|
|
1048
|
+
constructor(logId) {
|
|
1049
|
+
super(void 0);
|
|
1050
|
+
this.method = "DELETE";
|
|
1051
|
+
this.contentType = "application/json";
|
|
1052
|
+
this.accept = "application/json";
|
|
1053
|
+
this.inputSchema = deleteCreditUsageLogInputSchema;
|
|
1054
|
+
this.outputSchema = deleteCreditUsageLogResponseSchema;
|
|
1055
|
+
this.querySchema = void 0;
|
|
1056
|
+
this.headersSchema = void 0;
|
|
1057
|
+
this.logId = logId;
|
|
1058
|
+
}
|
|
1059
|
+
getPath() {
|
|
1060
|
+
return `/credit_usage_logs/${this.logId}`;
|
|
1061
|
+
}
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
// src/requests/credit-usage-logs/GetCreditUsageLogDetails.ts
|
|
1065
|
+
var import_sdk_js_core2 = require("@deliverart/sdk-js-core");
|
|
1066
|
+
var import_zod4 = require("zod");
|
|
1067
|
+
var getCreditUsageLogDetailsInputSchema = import_zod4.z.undefined();
|
|
1068
|
+
var getCreditUsageLogDetailsResponseSchema = creditUsageLogDetailsSchema;
|
|
1069
|
+
var GetCreditUsageLogDetails = class extends import_sdk_js_core2.AbstractApiRequest {
|
|
1070
|
+
constructor(logId) {
|
|
1071
|
+
super(void 0);
|
|
1072
|
+
this.method = "GET";
|
|
1073
|
+
this.contentType = "application/json";
|
|
1074
|
+
this.accept = "application/json";
|
|
1075
|
+
this.inputSchema = getCreditUsageLogDetailsInputSchema;
|
|
1076
|
+
this.outputSchema = getCreditUsageLogDetailsResponseSchema;
|
|
1077
|
+
this.querySchema = void 0;
|
|
1078
|
+
this.headersSchema = void 0;
|
|
1079
|
+
this.logId = logId;
|
|
1080
|
+
}
|
|
1081
|
+
getPath() {
|
|
1082
|
+
return `/credit_usage_logs/${this.logId}`;
|
|
1083
|
+
}
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
// src/requests/credit-usage-logs/GetCreditUsageLogs.ts
|
|
1087
|
+
var import_sdk_js_core3 = require("@deliverart/sdk-js-core");
|
|
1088
|
+
var import_zod5 = require("zod");
|
|
1089
|
+
var getCreditUsageLogsInputSchema = import_zod5.z.undefined();
|
|
1090
|
+
var GetCreditUsageLogs = class extends import_sdk_js_core3.AbstractApiRequest {
|
|
1091
|
+
constructor(options) {
|
|
1092
|
+
super(void 0, options);
|
|
1093
|
+
this.method = "GET";
|
|
1094
|
+
this.contentType = "application/json";
|
|
1095
|
+
this.accept = "application/json";
|
|
1096
|
+
this.inputSchema = getCreditUsageLogsInputSchema;
|
|
1097
|
+
this.outputSchema = getCreditUsageLogsResponseSchema;
|
|
1098
|
+
this.querySchema = creditUsageLogsQuerySchema;
|
|
1099
|
+
this.headersSchema = void 0;
|
|
1100
|
+
this.listItemSchema = creditUsageLogSchema;
|
|
1101
|
+
this.paginationDefaultEnabled = true;
|
|
1102
|
+
}
|
|
1103
|
+
getPath() {
|
|
1104
|
+
return "/credit_usage_logs";
|
|
1105
|
+
}
|
|
1106
|
+
};
|
|
1107
|
+
|
|
1108
|
+
// src/requests/credit-usage-logs/GetCreditUsageLogsFromPointOfSale.ts
|
|
1109
|
+
var import_sdk_js_core4 = require("@deliverart/sdk-js-core");
|
|
1110
|
+
var import_zod6 = require("zod");
|
|
1111
|
+
var getCreditUsageLogsFromPointOfSaleInputSchema = import_zod6.z.undefined();
|
|
1112
|
+
var getCreditUsageLogsFromPointOfSaleResponseSchema = import_zod6.z.array(creditUsageLogSchema);
|
|
1113
|
+
var GetCreditUsageLogsFromPointOfSale = class extends import_sdk_js_core4.AbstractApiRequest {
|
|
1114
|
+
constructor(pointOfSaleId, options) {
|
|
1115
|
+
super(void 0, options);
|
|
1116
|
+
this.method = "GET";
|
|
1117
|
+
this.contentType = "application/json";
|
|
1118
|
+
this.accept = "application/json";
|
|
1119
|
+
this.inputSchema = getCreditUsageLogsFromPointOfSaleInputSchema;
|
|
1120
|
+
this.outputSchema = getCreditUsageLogsFromPointOfSaleResponseSchema;
|
|
1121
|
+
this.querySchema = creditUsageLogsQuerySchema;
|
|
1122
|
+
this.headersSchema = void 0;
|
|
1123
|
+
this.listItemSchema = creditUsageLogSchema;
|
|
1124
|
+
this.paginationDefaultEnabled = false;
|
|
1125
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
1126
|
+
}
|
|
1127
|
+
getPath() {
|
|
1128
|
+
return `/point_of_sales/${this.pointOfSaleId}/credit_usage_logs`;
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
// src/requests/subscription-billing/GetSubscriptionBillingOverview.ts
|
|
1133
|
+
var import_sdk_js_core5 = require("@deliverart/sdk-js-core");
|
|
1134
|
+
var import_zod7 = require("zod");
|
|
1135
|
+
var getSubscriptionBillingOverviewInputSchema = import_zod7.z.undefined();
|
|
1136
|
+
var getSubscriptionBillingOverviewResponseSchema = subscriptionBillingOverviewResponseSchema;
|
|
1137
|
+
var GetSubscriptionBillingOverview = class extends import_sdk_js_core5.AbstractApiRequest {
|
|
1138
|
+
constructor() {
|
|
1139
|
+
super(void 0);
|
|
1140
|
+
this.method = "GET";
|
|
1141
|
+
this.contentType = "application/json";
|
|
1142
|
+
this.accept = "application/json";
|
|
1143
|
+
this.inputSchema = getSubscriptionBillingOverviewInputSchema;
|
|
1144
|
+
this.outputSchema = getSubscriptionBillingOverviewResponseSchema;
|
|
1145
|
+
this.querySchema = void 0;
|
|
1146
|
+
this.headersSchema = void 0;
|
|
1147
|
+
}
|
|
1148
|
+
getPath() {
|
|
1149
|
+
return "/subscriptions/billing/overview";
|
|
1150
|
+
}
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
// src/requests/subscription-billing/GetSubscriptionBillingPendingVerification.ts
|
|
1154
|
+
var import_sdk_js_core6 = require("@deliverart/sdk-js-core");
|
|
1155
|
+
var import_zod8 = require("zod");
|
|
1156
|
+
var getSubscriptionBillingPendingVerificationInputSchema = import_zod8.z.undefined();
|
|
1157
|
+
var GetSubscriptionBillingPendingVerification = class extends import_sdk_js_core6.AbstractApiRequest {
|
|
1158
|
+
constructor(options) {
|
|
1159
|
+
super(void 0, options);
|
|
1160
|
+
this.method = "GET";
|
|
1161
|
+
this.contentType = "application/json";
|
|
1162
|
+
this.accept = "application/json";
|
|
1163
|
+
this.inputSchema = getSubscriptionBillingPendingVerificationInputSchema;
|
|
1164
|
+
this.outputSchema = getSubscriptionBillingPendingVerificationResponseSchema;
|
|
1165
|
+
this.querySchema = subscriptionBillingPendingVerificationQuerySchema;
|
|
1166
|
+
this.headersSchema = void 0;
|
|
1167
|
+
this.listItemSchema = subscriptionBillingPendingVerificationItemSchema;
|
|
1168
|
+
this.paginationDefaultEnabled = false;
|
|
1169
|
+
}
|
|
1170
|
+
getPath() {
|
|
1171
|
+
return "/subscriptions/billing/pending_verification";
|
|
1172
|
+
}
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
// src/requests/subscription-consumption/AdjustSubscriptionConsumptionCredits.ts
|
|
1176
|
+
var import_sdk_js_core7 = require("@deliverart/sdk-js-core");
|
|
1177
|
+
var adjustSubscriptionConsumptionCreditsResponseSchema = creditUsageLogDetailsSchema;
|
|
1178
|
+
var AdjustSubscriptionConsumptionCredits = class extends import_sdk_js_core7.AbstractApiRequest {
|
|
1179
|
+
constructor(subscriptionId, input) {
|
|
1180
|
+
super(input);
|
|
1181
|
+
this.method = "POST";
|
|
1182
|
+
this.contentType = "application/json";
|
|
1183
|
+
this.accept = "application/json";
|
|
1184
|
+
this.inputSchema = adjustSubscriptionConsumptionCreditsInputSchema;
|
|
1185
|
+
this.outputSchema = adjustSubscriptionConsumptionCreditsResponseSchema;
|
|
1186
|
+
this.querySchema = void 0;
|
|
1187
|
+
this.headersSchema = void 0;
|
|
1188
|
+
this.subscriptionId = subscriptionId;
|
|
1189
|
+
}
|
|
1190
|
+
getPath() {
|
|
1191
|
+
return `/subscriptions/consumption/${this.subscriptionId}/credits/adjust`;
|
|
1192
|
+
}
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1195
|
+
// src/requests/subscription-consumption/CreateSubscriptionConsumption.ts
|
|
1196
|
+
var import_sdk_js_core8 = require("@deliverart/sdk-js-core");
|
|
1197
|
+
var createSubscriptionConsumptionInputSchema = writableSubscriptionConsumptionSchema;
|
|
1198
|
+
var createSubscriptionConsumptionResponseSchema = subscriptionConsumptionDetailsSchema;
|
|
1199
|
+
var CreateSubscriptionConsumption = class extends import_sdk_js_core8.AbstractApiRequest {
|
|
1200
|
+
constructor(input) {
|
|
1201
|
+
super(input);
|
|
1202
|
+
this.method = "POST";
|
|
1203
|
+
this.contentType = "application/json";
|
|
1204
|
+
this.accept = "application/json";
|
|
1205
|
+
this.inputSchema = createSubscriptionConsumptionInputSchema;
|
|
1206
|
+
this.outputSchema = createSubscriptionConsumptionResponseSchema;
|
|
1207
|
+
this.querySchema = void 0;
|
|
1208
|
+
this.headersSchema = void 0;
|
|
1209
|
+
}
|
|
1210
|
+
getPath() {
|
|
1211
|
+
return "/subscriptions/consumption";
|
|
1212
|
+
}
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
// src/requests/subscription-consumption/DeleteSubscriptionConsumption.ts
|
|
1216
|
+
var import_sdk_js_core9 = require("@deliverart/sdk-js-core");
|
|
1217
|
+
var import_sdk_js_global_types5 = require("@deliverart/sdk-js-global-types");
|
|
1218
|
+
var import_zod9 = require("zod");
|
|
1219
|
+
var deleteSubscriptionConsumptionInputSchema = import_zod9.z.undefined();
|
|
1220
|
+
var deleteSubscriptionConsumptionResponseSchema = import_sdk_js_global_types5.emptyResponseSchema;
|
|
1221
|
+
var DeleteSubscriptionConsumption = class extends import_sdk_js_core9.AbstractApiRequest {
|
|
1222
|
+
constructor(subscriptionId) {
|
|
1223
|
+
super(void 0);
|
|
1224
|
+
this.method = "DELETE";
|
|
1225
|
+
this.contentType = "application/json";
|
|
1226
|
+
this.accept = "application/json";
|
|
1227
|
+
this.inputSchema = deleteSubscriptionConsumptionInputSchema;
|
|
1228
|
+
this.outputSchema = deleteSubscriptionConsumptionResponseSchema;
|
|
1229
|
+
this.querySchema = void 0;
|
|
1230
|
+
this.headersSchema = void 0;
|
|
1231
|
+
this.subscriptionId = subscriptionId;
|
|
1232
|
+
}
|
|
1233
|
+
getPath() {
|
|
1234
|
+
return `/subscriptions/consumption/${this.subscriptionId}`;
|
|
1235
|
+
}
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
// src/requests/subscription-consumption/GetSubscriptionConsumptionDetails.ts
|
|
1239
|
+
var import_sdk_js_core10 = require("@deliverart/sdk-js-core");
|
|
1240
|
+
var import_zod10 = require("zod");
|
|
1241
|
+
var getSubscriptionConsumptionDetailsInputSchema = import_zod10.z.undefined();
|
|
1242
|
+
var getSubscriptionConsumptionDetailsResponseSchema = subscriptionConsumptionDetailsSchema;
|
|
1243
|
+
var GetSubscriptionConsumptionDetails = class extends import_sdk_js_core10.AbstractApiRequest {
|
|
1244
|
+
constructor(subscriptionId) {
|
|
1245
|
+
super(void 0);
|
|
1246
|
+
this.method = "GET";
|
|
1247
|
+
this.contentType = "application/json";
|
|
1248
|
+
this.accept = "application/json";
|
|
1249
|
+
this.inputSchema = getSubscriptionConsumptionDetailsInputSchema;
|
|
1250
|
+
this.outputSchema = getSubscriptionConsumptionDetailsResponseSchema;
|
|
1251
|
+
this.querySchema = void 0;
|
|
1252
|
+
this.headersSchema = void 0;
|
|
1253
|
+
this.subscriptionId = subscriptionId;
|
|
1254
|
+
}
|
|
1255
|
+
getPath() {
|
|
1256
|
+
return `/subscriptions/consumption/${this.subscriptionId}`;
|
|
1257
|
+
}
|
|
1258
|
+
};
|
|
1259
|
+
|
|
1260
|
+
// src/requests/subscription-consumption/GetSubscriptionConsumptionList.ts
|
|
1261
|
+
var import_sdk_js_core11 = require("@deliverart/sdk-js-core");
|
|
1262
|
+
var import_zod11 = require("zod");
|
|
1263
|
+
var getSubscriptionConsumptionListInputSchema = import_zod11.z.undefined();
|
|
1264
|
+
var GetSubscriptionConsumptionList = class extends import_sdk_js_core11.AbstractApiRequest {
|
|
1265
|
+
constructor(options) {
|
|
1266
|
+
super(void 0, options);
|
|
1267
|
+
this.method = "GET";
|
|
1268
|
+
this.contentType = "application/json";
|
|
1269
|
+
this.accept = "application/json";
|
|
1270
|
+
this.inputSchema = getSubscriptionConsumptionListInputSchema;
|
|
1271
|
+
this.outputSchema = getSubscriptionConsumptionListResponseSchema;
|
|
1272
|
+
this.querySchema = subscriptionConsumptionQuerySchema;
|
|
1273
|
+
this.headersSchema = void 0;
|
|
1274
|
+
this.listItemSchema = subscriptionConsumptionSchema;
|
|
1275
|
+
this.paginationDefaultEnabled = true;
|
|
1276
|
+
}
|
|
1277
|
+
getPath() {
|
|
1278
|
+
return "/subscriptions/consumption";
|
|
1279
|
+
}
|
|
1280
|
+
};
|
|
1281
|
+
|
|
1282
|
+
// src/requests/subscription-consumption/UpdateSubscriptionConsumption.ts
|
|
1283
|
+
var import_sdk_js_core12 = require("@deliverart/sdk-js-core");
|
|
1284
|
+
var updateSubscriptionConsumptionInputSchema = writableSubscriptionConsumptionSchema.omit({
|
|
1285
|
+
pointOfSale: true
|
|
1286
|
+
}).partial();
|
|
1287
|
+
var updateSubscriptionConsumptionResponseSchema = subscriptionConsumptionDetailsSchema;
|
|
1288
|
+
var UpdateSubscriptionConsumption = class extends import_sdk_js_core12.AbstractApiRequest {
|
|
1289
|
+
constructor(subscriptionId, input) {
|
|
1290
|
+
super(input);
|
|
1291
|
+
this.method = "PATCH";
|
|
1292
|
+
this.contentType = "application/merge-patch+json";
|
|
1293
|
+
this.accept = "application/json";
|
|
1294
|
+
this.inputSchema = updateSubscriptionConsumptionInputSchema;
|
|
1295
|
+
this.outputSchema = updateSubscriptionConsumptionResponseSchema;
|
|
1296
|
+
this.querySchema = void 0;
|
|
1297
|
+
this.headersSchema = void 0;
|
|
1298
|
+
this.subscriptionId = subscriptionId;
|
|
1299
|
+
}
|
|
1300
|
+
getPath() {
|
|
1301
|
+
return `/subscriptions/consumption/${this.subscriptionId}`;
|
|
1302
|
+
}
|
|
1303
|
+
};
|
|
1304
|
+
|
|
1305
|
+
// src/requests/subscription-consumption-renewals/CancelSubscriptionConsumptionRenewal.ts
|
|
1306
|
+
var import_sdk_js_core13 = require("@deliverart/sdk-js-core");
|
|
1307
|
+
var cancelSubscriptionConsumptionRenewalInputSchema = manageSubscriptionBillingInputSchema;
|
|
1308
|
+
var cancelSubscriptionConsumptionRenewalResponseSchema = subscriptionRenewalLifecycleResponseSchema;
|
|
1309
|
+
var CancelSubscriptionConsumptionRenewal = class extends import_sdk_js_core13.AbstractApiRequest {
|
|
1310
|
+
constructor(renewalId, input = {}) {
|
|
1311
|
+
super(input);
|
|
1312
|
+
this.method = "POST";
|
|
1313
|
+
this.contentType = "application/json";
|
|
1314
|
+
this.accept = "application/json";
|
|
1315
|
+
this.inputSchema = cancelSubscriptionConsumptionRenewalInputSchema;
|
|
1316
|
+
this.outputSchema = cancelSubscriptionConsumptionRenewalResponseSchema;
|
|
1317
|
+
this.querySchema = void 0;
|
|
1318
|
+
this.headersSchema = void 0;
|
|
1319
|
+
this.renewalId = renewalId;
|
|
1320
|
+
}
|
|
1321
|
+
getPath() {
|
|
1322
|
+
return `/subscriptions/consumption/renewals/${this.renewalId}/cancel`;
|
|
1323
|
+
}
|
|
1324
|
+
};
|
|
1325
|
+
|
|
1326
|
+
// src/requests/subscription-consumption-renewals/CreateSubscriptionConsumptionRenewal.ts
|
|
1327
|
+
var import_sdk_js_core14 = require("@deliverart/sdk-js-core");
|
|
1328
|
+
var createSubscriptionConsumptionRenewalInputSchema = writableSubscriptionConsumptionRenewalSchema.required();
|
|
1329
|
+
var createSubscriptionConsumptionRenewalResponseSchema = subscriptionConsumptionRenewalDetailsSchema;
|
|
1330
|
+
var CreateSubscriptionConsumptionRenewal = class extends import_sdk_js_core14.AbstractApiRequest {
|
|
1331
|
+
constructor(input) {
|
|
1332
|
+
super(input);
|
|
1333
|
+
this.method = "POST";
|
|
1334
|
+
this.contentType = "application/json";
|
|
1335
|
+
this.accept = "application/json";
|
|
1336
|
+
this.inputSchema = createSubscriptionConsumptionRenewalInputSchema;
|
|
1337
|
+
this.outputSchema = createSubscriptionConsumptionRenewalResponseSchema;
|
|
1338
|
+
this.querySchema = void 0;
|
|
1339
|
+
this.headersSchema = void 0;
|
|
1340
|
+
}
|
|
1341
|
+
getPath() {
|
|
1342
|
+
return "/subscriptions/consumption/renewals";
|
|
1343
|
+
}
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
// src/requests/subscription-consumption-renewals/DeleteSubscriptionConsumptionRenewal.ts
|
|
1347
|
+
var import_sdk_js_core15 = require("@deliverart/sdk-js-core");
|
|
1348
|
+
var import_sdk_js_global_types6 = require("@deliverart/sdk-js-global-types");
|
|
1349
|
+
var import_zod12 = require("zod");
|
|
1350
|
+
var deleteSubscriptionConsumptionRenewalInputSchema = import_zod12.z.undefined();
|
|
1351
|
+
var deleteSubscriptionConsumptionRenewalResponseSchema = import_sdk_js_global_types6.emptyResponseSchema;
|
|
1352
|
+
var DeleteSubscriptionConsumptionRenewal = class extends import_sdk_js_core15.AbstractApiRequest {
|
|
1353
|
+
constructor(renewalId) {
|
|
1354
|
+
super(void 0);
|
|
1355
|
+
this.method = "DELETE";
|
|
1356
|
+
this.contentType = "application/json";
|
|
1357
|
+
this.accept = "application/json";
|
|
1358
|
+
this.inputSchema = deleteSubscriptionConsumptionRenewalInputSchema;
|
|
1359
|
+
this.outputSchema = deleteSubscriptionConsumptionRenewalResponseSchema;
|
|
1360
|
+
this.querySchema = void 0;
|
|
1361
|
+
this.headersSchema = void 0;
|
|
1362
|
+
this.renewalId = renewalId;
|
|
1363
|
+
}
|
|
1364
|
+
getPath() {
|
|
1365
|
+
return `/subscriptions/consumption/renewals/${this.renewalId}`;
|
|
1366
|
+
}
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
// src/requests/subscription-consumption-renewals/GetSubscriptionConsumptionRenewalDetails.ts
|
|
1370
|
+
var import_sdk_js_core16 = require("@deliverart/sdk-js-core");
|
|
1371
|
+
var import_zod13 = require("zod");
|
|
1372
|
+
var getSubscriptionConsumptionRenewalDetailsInputSchema = import_zod13.z.undefined();
|
|
1373
|
+
var getSubscriptionConsumptionRenewalDetailsResponseSchema = subscriptionConsumptionRenewalDetailsSchema;
|
|
1374
|
+
var GetSubscriptionConsumptionRenewalDetails = class extends import_sdk_js_core16.AbstractApiRequest {
|
|
1375
|
+
constructor(renewalId) {
|
|
1376
|
+
super(void 0);
|
|
1377
|
+
this.method = "GET";
|
|
1378
|
+
this.contentType = "application/json";
|
|
1379
|
+
this.accept = "application/json";
|
|
1380
|
+
this.inputSchema = getSubscriptionConsumptionRenewalDetailsInputSchema;
|
|
1381
|
+
this.outputSchema = getSubscriptionConsumptionRenewalDetailsResponseSchema;
|
|
1382
|
+
this.querySchema = void 0;
|
|
1383
|
+
this.headersSchema = void 0;
|
|
1384
|
+
this.renewalId = renewalId;
|
|
1385
|
+
}
|
|
1386
|
+
getPath() {
|
|
1387
|
+
return `/subscriptions/consumption/renewals/${this.renewalId}`;
|
|
1388
|
+
}
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1391
|
+
// src/requests/subscription-consumption-renewals/GetSubscriptionConsumptionRenewals.ts
|
|
1392
|
+
var import_sdk_js_core17 = require("@deliverart/sdk-js-core");
|
|
1393
|
+
var import_zod14 = require("zod");
|
|
1394
|
+
var getSubscriptionConsumptionRenewalsInputSchema = import_zod14.z.undefined();
|
|
1395
|
+
var GetSubscriptionConsumptionRenewals = class extends import_sdk_js_core17.AbstractApiRequest {
|
|
1396
|
+
constructor(options) {
|
|
1397
|
+
super(void 0, options);
|
|
1398
|
+
this.method = "GET";
|
|
1399
|
+
this.contentType = "application/json";
|
|
1400
|
+
this.accept = "application/json";
|
|
1401
|
+
this.inputSchema = getSubscriptionConsumptionRenewalsInputSchema;
|
|
1402
|
+
this.outputSchema = getSubscriptionConsumptionRenewalsResponseSchema;
|
|
1403
|
+
this.querySchema = subscriptionConsumptionRenewalsQuerySchema;
|
|
1404
|
+
this.headersSchema = void 0;
|
|
1405
|
+
this.listItemSchema = subscriptionConsumptionRenewalSchema;
|
|
1406
|
+
this.paginationDefaultEnabled = true;
|
|
1407
|
+
}
|
|
1408
|
+
getPath() {
|
|
1409
|
+
return "/subscriptions/consumption/renewals";
|
|
1410
|
+
}
|
|
1411
|
+
};
|
|
1412
|
+
|
|
1413
|
+
// src/requests/subscription-consumption-renewals/GetSubscriptionConsumptionRenewalsFromSubscriptionConsumption.ts
|
|
1414
|
+
var import_sdk_js_core18 = require("@deliverart/sdk-js-core");
|
|
1415
|
+
var import_zod15 = require("zod");
|
|
1416
|
+
var getSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInputSchema = import_zod15.z.undefined();
|
|
1417
|
+
var GetSubscriptionConsumptionRenewalsFromSubscriptionConsumption = class extends import_sdk_js_core18.AbstractApiRequest {
|
|
1418
|
+
constructor(subscriptionId, options) {
|
|
1419
|
+
super(void 0, options);
|
|
1420
|
+
this.method = "GET";
|
|
1421
|
+
this.contentType = "application/json";
|
|
1422
|
+
this.accept = "application/json";
|
|
1423
|
+
this.inputSchema = getSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInputSchema;
|
|
1424
|
+
this.outputSchema = getSubscriptionConsumptionRenewalsResponseSchema;
|
|
1425
|
+
this.querySchema = subscriptionConsumptionRenewalsQuerySchema;
|
|
1426
|
+
this.headersSchema = void 0;
|
|
1427
|
+
this.listItemSchema = subscriptionConsumptionRenewalSchema;
|
|
1428
|
+
this.paginationDefaultEnabled = true;
|
|
1429
|
+
this.subscriptionId = subscriptionId;
|
|
1430
|
+
}
|
|
1431
|
+
getPath() {
|
|
1432
|
+
return `/subscriptions/consumption/${this.subscriptionId}/renewals`;
|
|
1433
|
+
}
|
|
1434
|
+
};
|
|
1435
|
+
|
|
1436
|
+
// src/requests/subscription-consumption-renewals/PaySubscriptionConsumptionRenewal.ts
|
|
1437
|
+
var import_sdk_js_core19 = require("@deliverart/sdk-js-core");
|
|
1438
|
+
var paySubscriptionConsumptionRenewalInputSchema = paySubscriptionRenewalInputSchema;
|
|
1439
|
+
var paySubscriptionConsumptionRenewalResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
1440
|
+
var PaySubscriptionConsumptionRenewal = class extends import_sdk_js_core19.AbstractApiRequest {
|
|
1441
|
+
constructor(renewalId, method) {
|
|
1442
|
+
super({ method });
|
|
1443
|
+
this.method = "POST";
|
|
1444
|
+
this.contentType = "application/json";
|
|
1445
|
+
this.accept = "application/json";
|
|
1446
|
+
this.inputSchema = paySubscriptionConsumptionRenewalInputSchema;
|
|
1447
|
+
this.outputSchema = paySubscriptionConsumptionRenewalResponseSchema;
|
|
1448
|
+
this.querySchema = void 0;
|
|
1449
|
+
this.headersSchema = void 0;
|
|
1450
|
+
this.renewalId = renewalId;
|
|
1451
|
+
}
|
|
1452
|
+
getPath() {
|
|
1453
|
+
return `/subscriptions/consumption/renewals/${this.renewalId}/pay`;
|
|
1454
|
+
}
|
|
1455
|
+
};
|
|
1456
|
+
|
|
1457
|
+
// src/requests/subscription-consumption-renewals/RefundSubscriptionConsumptionRenewal.ts
|
|
1458
|
+
var import_sdk_js_core20 = require("@deliverart/sdk-js-core");
|
|
1459
|
+
var refundSubscriptionConsumptionRenewalInputSchema = manageSubscriptionBillingInputSchema;
|
|
1460
|
+
var refundSubscriptionConsumptionRenewalResponseSchema = subscriptionRenewalLifecycleResponseSchema;
|
|
1461
|
+
var RefundSubscriptionConsumptionRenewal = class extends import_sdk_js_core20.AbstractApiRequest {
|
|
1462
|
+
constructor(renewalId, input = {}) {
|
|
1463
|
+
super(input);
|
|
1464
|
+
this.method = "POST";
|
|
1465
|
+
this.contentType = "application/json";
|
|
1466
|
+
this.accept = "application/json";
|
|
1467
|
+
this.inputSchema = refundSubscriptionConsumptionRenewalInputSchema;
|
|
1468
|
+
this.outputSchema = refundSubscriptionConsumptionRenewalResponseSchema;
|
|
1469
|
+
this.querySchema = void 0;
|
|
1470
|
+
this.headersSchema = void 0;
|
|
1471
|
+
this.renewalId = renewalId;
|
|
1472
|
+
}
|
|
1473
|
+
getPath() {
|
|
1474
|
+
return `/subscriptions/consumption/renewals/${this.renewalId}/refund`;
|
|
1475
|
+
}
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1478
|
+
// src/requests/subscription-consumption-renewals/ResolveSubscriptionConsumptionRenewalPayment.ts
|
|
1479
|
+
var import_sdk_js_core21 = require("@deliverart/sdk-js-core");
|
|
1480
|
+
var resolveSubscriptionConsumptionRenewalPaymentInputSchema = resolveSubscriptionRenewalPaymentInputSchema;
|
|
1481
|
+
var resolveSubscriptionConsumptionRenewalPaymentResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
1482
|
+
var ResolveSubscriptionConsumptionRenewalPayment = class extends import_sdk_js_core21.AbstractApiRequest {
|
|
1483
|
+
constructor(renewalId, input) {
|
|
1484
|
+
super(input);
|
|
1485
|
+
this.method = "POST";
|
|
1486
|
+
this.contentType = "application/json";
|
|
1487
|
+
this.accept = "application/json";
|
|
1488
|
+
this.inputSchema = resolveSubscriptionConsumptionRenewalPaymentInputSchema;
|
|
1489
|
+
this.outputSchema = resolveSubscriptionConsumptionRenewalPaymentResponseSchema;
|
|
1490
|
+
this.querySchema = void 0;
|
|
1491
|
+
this.headersSchema = void 0;
|
|
1492
|
+
this.renewalId = renewalId;
|
|
1493
|
+
}
|
|
1494
|
+
getPath() {
|
|
1495
|
+
return `/subscriptions/consumption/renewals/${this.renewalId}/resolve_payment`;
|
|
1496
|
+
}
|
|
1497
|
+
};
|
|
1498
|
+
|
|
1499
|
+
// src/requests/subscription-consumption-renewals/RetrySubscriptionConsumptionRenewalPayment.ts
|
|
1500
|
+
var import_sdk_js_core22 = require("@deliverart/sdk-js-core");
|
|
1501
|
+
var retrySubscriptionConsumptionRenewalPaymentInputSchema = paySubscriptionRenewalInputSchema;
|
|
1502
|
+
var retrySubscriptionConsumptionRenewalPaymentResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
1503
|
+
var RetrySubscriptionConsumptionRenewalPayment = class extends import_sdk_js_core22.AbstractApiRequest {
|
|
1504
|
+
constructor(renewalId, method) {
|
|
1505
|
+
super({ method });
|
|
1506
|
+
this.method = "POST";
|
|
1507
|
+
this.contentType = "application/json";
|
|
1508
|
+
this.accept = "application/json";
|
|
1509
|
+
this.inputSchema = retrySubscriptionConsumptionRenewalPaymentInputSchema;
|
|
1510
|
+
this.outputSchema = retrySubscriptionConsumptionRenewalPaymentResponseSchema;
|
|
1511
|
+
this.querySchema = void 0;
|
|
1512
|
+
this.headersSchema = void 0;
|
|
1513
|
+
this.renewalId = renewalId;
|
|
1514
|
+
}
|
|
1515
|
+
getPath() {
|
|
1516
|
+
return `/subscriptions/consumption/renewals/${this.renewalId}/retry_payment`;
|
|
1517
|
+
}
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
// src/requests/subscription-infinite/CreateSubscriptionInfinite.ts
|
|
1521
|
+
var import_sdk_js_core23 = require("@deliverart/sdk-js-core");
|
|
1522
|
+
var createSubscriptionInfiniteInputSchema = writableSubscriptionInfiniteSchema;
|
|
1523
|
+
var createSubscriptionInfiniteResponseSchema = subscriptionInfiniteDetailsSchema;
|
|
1524
|
+
var CreateSubscriptionInfinite = class extends import_sdk_js_core23.AbstractApiRequest {
|
|
1525
|
+
constructor(input) {
|
|
1526
|
+
super(input);
|
|
1527
|
+
this.method = "POST";
|
|
1528
|
+
this.contentType = "application/json";
|
|
1529
|
+
this.accept = "application/json";
|
|
1530
|
+
this.inputSchema = createSubscriptionInfiniteInputSchema;
|
|
1531
|
+
this.outputSchema = createSubscriptionInfiniteResponseSchema;
|
|
1532
|
+
this.querySchema = void 0;
|
|
1533
|
+
this.headersSchema = void 0;
|
|
1534
|
+
}
|
|
1535
|
+
getPath() {
|
|
1536
|
+
return "/subscriptions/infinite";
|
|
1537
|
+
}
|
|
1538
|
+
};
|
|
1539
|
+
|
|
1540
|
+
// src/requests/subscription-infinite/DeleteSubscriptionInfinite.ts
|
|
1541
|
+
var import_sdk_js_core24 = require("@deliverart/sdk-js-core");
|
|
1542
|
+
var import_sdk_js_global_types7 = require("@deliverart/sdk-js-global-types");
|
|
1543
|
+
var import_zod16 = require("zod");
|
|
1544
|
+
var deleteSubscriptionInfiniteInputSchema = import_zod16.z.undefined();
|
|
1545
|
+
var deleteSubscriptionInfiniteResponseSchema = import_sdk_js_global_types7.emptyResponseSchema;
|
|
1546
|
+
var DeleteSubscriptionInfinite = class extends import_sdk_js_core24.AbstractApiRequest {
|
|
1547
|
+
constructor(subscriptionId) {
|
|
1548
|
+
super(void 0);
|
|
1549
|
+
this.method = "DELETE";
|
|
1550
|
+
this.contentType = "application/json";
|
|
1551
|
+
this.accept = "application/json";
|
|
1552
|
+
this.inputSchema = deleteSubscriptionInfiniteInputSchema;
|
|
1553
|
+
this.outputSchema = deleteSubscriptionInfiniteResponseSchema;
|
|
1554
|
+
this.querySchema = void 0;
|
|
1555
|
+
this.headersSchema = void 0;
|
|
1556
|
+
this.subscriptionId = subscriptionId;
|
|
1557
|
+
}
|
|
1558
|
+
getPath() {
|
|
1559
|
+
return `/subscriptions/infinite/${this.subscriptionId}`;
|
|
1560
|
+
}
|
|
1561
|
+
};
|
|
1562
|
+
|
|
1563
|
+
// src/requests/subscription-infinite/GetSubscriptionInfiniteDetails.ts
|
|
1564
|
+
var import_sdk_js_core25 = require("@deliverart/sdk-js-core");
|
|
1565
|
+
var import_zod17 = require("zod");
|
|
1566
|
+
var getSubscriptionInfiniteDetailsInputSchema = import_zod17.z.undefined();
|
|
1567
|
+
var getSubscriptionInfiniteDetailsResponseSchema = subscriptionInfiniteDetailsSchema;
|
|
1568
|
+
var GetSubscriptionInfiniteDetails = class extends import_sdk_js_core25.AbstractApiRequest {
|
|
1569
|
+
constructor(subscriptionId) {
|
|
1570
|
+
super(void 0);
|
|
1571
|
+
this.method = "GET";
|
|
1572
|
+
this.contentType = "application/json";
|
|
1573
|
+
this.accept = "application/json";
|
|
1574
|
+
this.inputSchema = getSubscriptionInfiniteDetailsInputSchema;
|
|
1575
|
+
this.outputSchema = getSubscriptionInfiniteDetailsResponseSchema;
|
|
1576
|
+
this.querySchema = void 0;
|
|
1577
|
+
this.headersSchema = void 0;
|
|
1578
|
+
this.subscriptionId = subscriptionId;
|
|
1579
|
+
}
|
|
1580
|
+
getPath() {
|
|
1581
|
+
return `/subscriptions/infinite/${this.subscriptionId}`;
|
|
1582
|
+
}
|
|
1583
|
+
};
|
|
1584
|
+
|
|
1585
|
+
// src/requests/subscription-infinite/GetSubscriptionInfiniteList.ts
|
|
1586
|
+
var import_sdk_js_core26 = require("@deliverart/sdk-js-core");
|
|
1587
|
+
var import_zod18 = require("zod");
|
|
1588
|
+
var getSubscriptionInfiniteListInputSchema = import_zod18.z.undefined();
|
|
1589
|
+
var GetSubscriptionInfiniteList = class extends import_sdk_js_core26.AbstractApiRequest {
|
|
1590
|
+
constructor(options) {
|
|
1591
|
+
super(void 0, options);
|
|
1592
|
+
this.method = "GET";
|
|
1593
|
+
this.contentType = "application/json";
|
|
1594
|
+
this.accept = "application/json";
|
|
1595
|
+
this.inputSchema = getSubscriptionInfiniteListInputSchema;
|
|
1596
|
+
this.outputSchema = getSubscriptionInfiniteListResponseSchema;
|
|
1597
|
+
this.querySchema = subscriptionQuerySchema;
|
|
1598
|
+
this.headersSchema = void 0;
|
|
1599
|
+
this.listItemSchema = subscriptionInfiniteSchema;
|
|
1600
|
+
this.paginationDefaultEnabled = true;
|
|
1601
|
+
}
|
|
1602
|
+
getPath() {
|
|
1603
|
+
return "/subscriptions/infinite";
|
|
1604
|
+
}
|
|
1605
|
+
};
|
|
1606
|
+
|
|
1607
|
+
// src/requests/subscription-plans/AssignSubscriptionPlan.ts
|
|
1608
|
+
var import_sdk_js_core27 = require("@deliverart/sdk-js-core");
|
|
1609
|
+
var assignSubscriptionPlanResponseSchema = subscriptionDetailsSchema;
|
|
1610
|
+
var AssignSubscriptionPlan = class extends import_sdk_js_core27.AbstractApiRequest {
|
|
1611
|
+
constructor(subscriptionPlanId, input) {
|
|
1612
|
+
super(input);
|
|
1613
|
+
this.method = "POST";
|
|
1614
|
+
this.contentType = "application/json";
|
|
1615
|
+
this.accept = "application/json";
|
|
1616
|
+
this.inputSchema = assignSubscriptionPlanInputSchema;
|
|
1617
|
+
this.outputSchema = assignSubscriptionPlanResponseSchema;
|
|
1618
|
+
this.querySchema = void 0;
|
|
1619
|
+
this.headersSchema = void 0;
|
|
1620
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
1621
|
+
}
|
|
1622
|
+
getPath() {
|
|
1623
|
+
return `/subscription_plans/${this.subscriptionPlanId}/assign`;
|
|
1624
|
+
}
|
|
1625
|
+
};
|
|
1626
|
+
|
|
1627
|
+
// src/requests/subscription-plans/CalculateSubscriptionPlanPurchaseQuote.ts
|
|
1628
|
+
var import_sdk_js_core28 = require("@deliverart/sdk-js-core");
|
|
1629
|
+
var calculateSubscriptionPlanPurchaseQuoteResponseSchema = subscriptionPurchaseQuoteSchema;
|
|
1630
|
+
var CalculateSubscriptionPlanPurchaseQuote = class extends import_sdk_js_core28.AbstractApiRequest {
|
|
1631
|
+
constructor(subscriptionPlanId, input) {
|
|
1632
|
+
super(input);
|
|
1633
|
+
this.method = "POST";
|
|
1634
|
+
this.contentType = "application/json";
|
|
1635
|
+
this.accept = "application/json";
|
|
1636
|
+
this.inputSchema = calculateSubscriptionPlanPurchaseQuoteInputSchema;
|
|
1637
|
+
this.outputSchema = calculateSubscriptionPlanPurchaseQuoteResponseSchema;
|
|
1638
|
+
this.querySchema = void 0;
|
|
1639
|
+
this.headersSchema = void 0;
|
|
1640
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
1641
|
+
}
|
|
1642
|
+
getPath() {
|
|
1643
|
+
return `/subscriptions/catalog/plans/${this.subscriptionPlanId}/purchase_quote`;
|
|
1644
|
+
}
|
|
1645
|
+
};
|
|
1646
|
+
|
|
1647
|
+
// src/requests/subscription-plans/CreateSubscriptionPlan.ts
|
|
1648
|
+
var import_sdk_js_core29 = require("@deliverart/sdk-js-core");
|
|
1649
|
+
var createSubscriptionPlanInputSchema = writableSubscriptionPlanSchema.required();
|
|
1650
|
+
var createSubscriptionPlanResponseSchema = subscriptionPlanSchema;
|
|
1651
|
+
var CreateSubscriptionPlan = class extends import_sdk_js_core29.AbstractApiRequest {
|
|
1652
|
+
constructor(input) {
|
|
1653
|
+
super(input);
|
|
1654
|
+
this.method = "POST";
|
|
1655
|
+
this.contentType = "application/json";
|
|
1656
|
+
this.accept = "application/json";
|
|
1657
|
+
this.inputSchema = createSubscriptionPlanInputSchema;
|
|
1658
|
+
this.outputSchema = createSubscriptionPlanResponseSchema;
|
|
1659
|
+
this.querySchema = void 0;
|
|
1660
|
+
this.headersSchema = void 0;
|
|
1661
|
+
}
|
|
1662
|
+
getPath() {
|
|
1663
|
+
return "/subscription_plans";
|
|
1664
|
+
}
|
|
1665
|
+
};
|
|
1666
|
+
|
|
1667
|
+
// src/requests/subscription-plans/DeleteSubscriptionPlan.ts
|
|
1668
|
+
var import_sdk_js_core30 = require("@deliverart/sdk-js-core");
|
|
1669
|
+
var import_zod19 = require("zod");
|
|
1670
|
+
var deleteSubscriptionPlanInputSchema = import_zod19.z.undefined();
|
|
1671
|
+
var deleteSubscriptionPlanResponseSchema = import_zod19.z.undefined();
|
|
1672
|
+
var DeleteSubscriptionPlan = class extends import_sdk_js_core30.AbstractApiRequest {
|
|
1673
|
+
constructor(subscriptionPlanId) {
|
|
1674
|
+
super(void 0);
|
|
1675
|
+
this.method = "DELETE";
|
|
1676
|
+
this.contentType = "application/json";
|
|
1677
|
+
this.accept = "application/json";
|
|
1678
|
+
this.inputSchema = deleteSubscriptionPlanInputSchema;
|
|
1679
|
+
this.outputSchema = deleteSubscriptionPlanResponseSchema;
|
|
1680
|
+
this.querySchema = void 0;
|
|
1681
|
+
this.headersSchema = void 0;
|
|
1682
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
1683
|
+
}
|
|
1684
|
+
getPath() {
|
|
1685
|
+
return `/subscription_plans/${this.subscriptionPlanId}`;
|
|
1686
|
+
}
|
|
1687
|
+
};
|
|
1688
|
+
|
|
1689
|
+
// src/requests/subscription-plans/GetSubscriptionPlanCatalog.ts
|
|
1690
|
+
var import_sdk_js_core31 = require("@deliverart/sdk-js-core");
|
|
1691
|
+
var import_zod20 = require("zod");
|
|
1692
|
+
var getSubscriptionPlanCatalogInputSchema = import_zod20.z.undefined();
|
|
1693
|
+
var GetSubscriptionPlanCatalog = class extends import_sdk_js_core31.AbstractApiRequest {
|
|
1694
|
+
constructor() {
|
|
1695
|
+
super(void 0);
|
|
1696
|
+
this.method = "GET";
|
|
1697
|
+
this.contentType = "application/json";
|
|
1698
|
+
this.accept = "application/json";
|
|
1699
|
+
this.inputSchema = getSubscriptionPlanCatalogInputSchema;
|
|
1700
|
+
this.outputSchema = getSubscriptionPlanCatalogResponseSchema;
|
|
1701
|
+
this.querySchema = void 0;
|
|
1702
|
+
this.headersSchema = void 0;
|
|
1703
|
+
this.listItemSchema = subscriptionPlanSchema;
|
|
1704
|
+
this.paginationDefaultEnabled = false;
|
|
1705
|
+
}
|
|
1706
|
+
getPath() {
|
|
1707
|
+
return "/subscriptions/catalog/plans";
|
|
1708
|
+
}
|
|
1709
|
+
};
|
|
1710
|
+
|
|
1711
|
+
// src/requests/subscription-plans/GetSubscriptionPlanCatalogDetails.ts
|
|
1712
|
+
var import_sdk_js_core32 = require("@deliverart/sdk-js-core");
|
|
1713
|
+
var import_zod21 = require("zod");
|
|
1714
|
+
var getSubscriptionPlanCatalogDetailsInputSchema = import_zod21.z.undefined();
|
|
1715
|
+
var getSubscriptionPlanCatalogDetailsResponseSchema = subscriptionPlanSchema;
|
|
1716
|
+
var GetSubscriptionPlanCatalogDetails = class extends import_sdk_js_core32.AbstractApiRequest {
|
|
1717
|
+
constructor(subscriptionPlanId) {
|
|
1718
|
+
super(void 0);
|
|
1719
|
+
this.method = "GET";
|
|
1720
|
+
this.contentType = "application/json";
|
|
1721
|
+
this.accept = "application/json";
|
|
1722
|
+
this.inputSchema = getSubscriptionPlanCatalogDetailsInputSchema;
|
|
1723
|
+
this.outputSchema = getSubscriptionPlanCatalogDetailsResponseSchema;
|
|
1724
|
+
this.querySchema = void 0;
|
|
1725
|
+
this.headersSchema = void 0;
|
|
1726
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
1727
|
+
}
|
|
1728
|
+
getPath() {
|
|
1729
|
+
return `/subscriptions/catalog/plans/${this.subscriptionPlanId}`;
|
|
1730
|
+
}
|
|
1731
|
+
};
|
|
1732
|
+
|
|
1733
|
+
// src/requests/subscription-plans/GetSubscriptionPlanDetails.ts
|
|
1734
|
+
var import_sdk_js_core33 = require("@deliverart/sdk-js-core");
|
|
1735
|
+
var import_zod22 = require("zod");
|
|
1736
|
+
var getSubscriptionPlanDetailsInputSchema = import_zod22.z.undefined();
|
|
1737
|
+
var getSubscriptionPlanDetailsResponseSchema = subscriptionPlanSchema;
|
|
1738
|
+
var GetSubscriptionPlanDetails = class extends import_sdk_js_core33.AbstractApiRequest {
|
|
1739
|
+
constructor(subscriptionPlanId) {
|
|
1740
|
+
super(void 0);
|
|
1741
|
+
this.method = "GET";
|
|
1742
|
+
this.contentType = "application/json";
|
|
1743
|
+
this.accept = "application/json";
|
|
1744
|
+
this.inputSchema = getSubscriptionPlanDetailsInputSchema;
|
|
1745
|
+
this.outputSchema = getSubscriptionPlanDetailsResponseSchema;
|
|
1746
|
+
this.querySchema = void 0;
|
|
1747
|
+
this.headersSchema = void 0;
|
|
1748
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
1749
|
+
}
|
|
1750
|
+
getPath() {
|
|
1751
|
+
return `/subscription_plans/${this.subscriptionPlanId}`;
|
|
1752
|
+
}
|
|
1753
|
+
};
|
|
1754
|
+
|
|
1755
|
+
// src/requests/subscription-plans/GetSubscriptionPlans.ts
|
|
1756
|
+
var import_sdk_js_core34 = require("@deliverart/sdk-js-core");
|
|
1757
|
+
var import_zod23 = require("zod");
|
|
1758
|
+
var getSubscriptionPlansInputSchema = import_zod23.z.undefined();
|
|
1759
|
+
var GetSubscriptionPlans = class extends import_sdk_js_core34.AbstractApiRequest {
|
|
1760
|
+
constructor(options) {
|
|
1761
|
+
super(void 0, options);
|
|
1762
|
+
this.method = "GET";
|
|
1763
|
+
this.contentType = "application/json";
|
|
1764
|
+
this.accept = "application/json";
|
|
1765
|
+
this.inputSchema = getSubscriptionPlansInputSchema;
|
|
1766
|
+
this.outputSchema = getSubscriptionPlansResponseSchema;
|
|
1767
|
+
this.querySchema = subscriptionPlansQuerySchema;
|
|
1768
|
+
this.headersSchema = void 0;
|
|
1769
|
+
this.listItemSchema = subscriptionPlanSchema;
|
|
1770
|
+
this.paginationDefaultEnabled = true;
|
|
1771
|
+
}
|
|
1772
|
+
getPath() {
|
|
1773
|
+
return "/subscription_plans";
|
|
1774
|
+
}
|
|
1775
|
+
};
|
|
1776
|
+
|
|
1777
|
+
// src/requests/subscription-plans/UpdateSubscriptionPlan.ts
|
|
1778
|
+
var import_sdk_js_core35 = require("@deliverart/sdk-js-core");
|
|
1779
|
+
var updateSubscriptionPlanInputSchema = writableSubscriptionPlanSchema.partial();
|
|
1780
|
+
var updateSubscriptionPlanResponseSchema = subscriptionPlanSchema;
|
|
1781
|
+
var UpdateSubscriptionPlan = class extends import_sdk_js_core35.AbstractApiRequest {
|
|
1782
|
+
constructor(subscriptionPlanId, input) {
|
|
1783
|
+
super(input);
|
|
1784
|
+
this.method = "PATCH";
|
|
1785
|
+
this.contentType = "application/merge-patch+json";
|
|
1786
|
+
this.accept = "application/json";
|
|
1787
|
+
this.inputSchema = updateSubscriptionPlanInputSchema;
|
|
1788
|
+
this.outputSchema = updateSubscriptionPlanResponseSchema;
|
|
1789
|
+
this.querySchema = void 0;
|
|
1790
|
+
this.headersSchema = void 0;
|
|
1791
|
+
this.subscriptionPlanId = subscriptionPlanId;
|
|
1792
|
+
}
|
|
1793
|
+
getPath() {
|
|
1794
|
+
return `/subscription_plans/${this.subscriptionPlanId}`;
|
|
1795
|
+
}
|
|
1796
|
+
};
|
|
1797
|
+
|
|
1798
|
+
// src/requests/subscription-prices/CreateSubscriptionPrice.ts
|
|
1799
|
+
var import_sdk_js_core36 = require("@deliverart/sdk-js-core");
|
|
1800
|
+
var createSubscriptionPriceInputSchema = writableSubscriptionPriceSchema.required();
|
|
1801
|
+
var createSubscriptionPriceResponseSchema = subscriptionPriceSchema;
|
|
1802
|
+
var CreateSubscriptionPrice = class extends import_sdk_js_core36.AbstractApiRequest {
|
|
1803
|
+
constructor(input) {
|
|
1804
|
+
super(input);
|
|
1805
|
+
this.method = "POST";
|
|
1806
|
+
this.contentType = "application/json";
|
|
1807
|
+
this.accept = "application/json";
|
|
1808
|
+
this.inputSchema = createSubscriptionPriceInputSchema;
|
|
1809
|
+
this.outputSchema = createSubscriptionPriceResponseSchema;
|
|
1810
|
+
this.querySchema = void 0;
|
|
1811
|
+
this.headersSchema = void 0;
|
|
1812
|
+
}
|
|
1813
|
+
getPath() {
|
|
1814
|
+
return "/subscriptions/prices";
|
|
1815
|
+
}
|
|
1816
|
+
};
|
|
1817
|
+
|
|
1818
|
+
// src/requests/subscription-prices/DeleteSubscriptionPrice.ts
|
|
1819
|
+
var import_sdk_js_core37 = require("@deliverart/sdk-js-core");
|
|
1820
|
+
var import_sdk_js_global_types8 = require("@deliverart/sdk-js-global-types");
|
|
1821
|
+
var import_zod24 = require("zod");
|
|
1822
|
+
var deleteSubscriptionPriceInputSchema = import_zod24.z.undefined();
|
|
1823
|
+
var deleteSubscriptionPriceResponseSchema = import_sdk_js_global_types8.emptyResponseSchema;
|
|
1824
|
+
var DeleteSubscriptionPrice = class extends import_sdk_js_core37.AbstractApiRequest {
|
|
1825
|
+
constructor(priceId) {
|
|
1826
|
+
super(void 0);
|
|
1827
|
+
this.method = "DELETE";
|
|
1828
|
+
this.contentType = "application/json";
|
|
1829
|
+
this.accept = "application/json";
|
|
1830
|
+
this.inputSchema = deleteSubscriptionPriceInputSchema;
|
|
1831
|
+
this.outputSchema = deleteSubscriptionPriceResponseSchema;
|
|
1832
|
+
this.querySchema = void 0;
|
|
1833
|
+
this.headersSchema = void 0;
|
|
1834
|
+
this.priceId = priceId;
|
|
1835
|
+
}
|
|
1836
|
+
getPath() {
|
|
1837
|
+
return `/subscriptions/prices/${this.priceId}`;
|
|
1838
|
+
}
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1841
|
+
// src/requests/subscription-prices/GetSubscriptionPriceDetails.ts
|
|
1842
|
+
var import_sdk_js_core38 = require("@deliverart/sdk-js-core");
|
|
1843
|
+
var import_zod25 = require("zod");
|
|
1844
|
+
var getSubscriptionPriceDetailsInputSchema = import_zod25.z.undefined();
|
|
1845
|
+
var getSubscriptionPriceDetailsResponseSchema = subscriptionPriceSchema;
|
|
1846
|
+
var GetSubscriptionPriceDetails = class extends import_sdk_js_core38.AbstractApiRequest {
|
|
1847
|
+
constructor(priceId) {
|
|
1848
|
+
super(void 0);
|
|
1849
|
+
this.method = "GET";
|
|
1850
|
+
this.contentType = "application/json";
|
|
1851
|
+
this.accept = "application/json";
|
|
1852
|
+
this.inputSchema = getSubscriptionPriceDetailsInputSchema;
|
|
1853
|
+
this.outputSchema = getSubscriptionPriceDetailsResponseSchema;
|
|
1854
|
+
this.querySchema = void 0;
|
|
1855
|
+
this.headersSchema = void 0;
|
|
1856
|
+
this.priceId = priceId;
|
|
1857
|
+
}
|
|
1858
|
+
getPath() {
|
|
1859
|
+
return `/subscriptions/prices/${this.priceId}`;
|
|
1860
|
+
}
|
|
1861
|
+
};
|
|
1862
|
+
|
|
1863
|
+
// src/requests/subscription-prices/GetSubscriptionPrices.ts
|
|
1864
|
+
var import_sdk_js_core39 = require("@deliverart/sdk-js-core");
|
|
1865
|
+
var import_zod26 = require("zod");
|
|
1866
|
+
var getSubscriptionPricesInputSchema = import_zod26.z.undefined();
|
|
1867
|
+
var GetSubscriptionPrices = class extends import_sdk_js_core39.AbstractApiRequest {
|
|
1868
|
+
constructor(options) {
|
|
1869
|
+
super(void 0, options);
|
|
1870
|
+
this.method = "GET";
|
|
1871
|
+
this.contentType = "application/json";
|
|
1872
|
+
this.accept = "application/json";
|
|
1873
|
+
this.inputSchema = getSubscriptionPricesInputSchema;
|
|
1874
|
+
this.outputSchema = getSubscriptionPricesResponseSchema;
|
|
1875
|
+
this.querySchema = subscriptionPricesQuerySchema;
|
|
1876
|
+
this.headersSchema = void 0;
|
|
1877
|
+
this.listItemSchema = subscriptionPriceSchema;
|
|
1878
|
+
this.paginationDefaultEnabled = true;
|
|
1879
|
+
}
|
|
1880
|
+
getPath() {
|
|
1881
|
+
return "/subscriptions/prices";
|
|
1882
|
+
}
|
|
1883
|
+
};
|
|
1884
|
+
|
|
1885
|
+
// src/requests/subscription-prices/UpdateSubscriptionPrice.ts
|
|
1886
|
+
var import_sdk_js_core40 = require("@deliverart/sdk-js-core");
|
|
1887
|
+
var updateSubscriptionPriceInputSchema = writableSubscriptionPriceSchema.partial();
|
|
1888
|
+
var updateSubscriptionPriceResponseSchema = subscriptionPriceSchema;
|
|
1889
|
+
var UpdateSubscriptionPrice = class extends import_sdk_js_core40.AbstractApiRequest {
|
|
1890
|
+
constructor(priceId, input) {
|
|
1891
|
+
super(input);
|
|
1892
|
+
this.method = "PATCH";
|
|
1893
|
+
this.contentType = "application/merge-patch+json";
|
|
1894
|
+
this.accept = "application/json";
|
|
1895
|
+
this.inputSchema = updateSubscriptionPriceInputSchema;
|
|
1896
|
+
this.outputSchema = updateSubscriptionPriceResponseSchema;
|
|
1897
|
+
this.querySchema = void 0;
|
|
1898
|
+
this.headersSchema = void 0;
|
|
1899
|
+
this.priceId = priceId;
|
|
1900
|
+
}
|
|
1901
|
+
getPath() {
|
|
1902
|
+
return `/subscriptions/prices/${this.priceId}`;
|
|
1903
|
+
}
|
|
1904
|
+
};
|
|
1905
|
+
|
|
1906
|
+
// src/requests/subscription-purchases/CancelSubscriptionPurchase.ts
|
|
1907
|
+
var import_sdk_js_core41 = require("@deliverart/sdk-js-core");
|
|
1908
|
+
var cancelSubscriptionPurchaseInputSchema = manageSubscriptionBillingInputSchema;
|
|
1909
|
+
var cancelSubscriptionPurchaseResponseSchema = subscriptionPurchaseLifecycleResponseSchema;
|
|
1910
|
+
var CancelSubscriptionPurchase = class extends import_sdk_js_core41.AbstractApiRequest {
|
|
1911
|
+
constructor(purchaseId, input = {}) {
|
|
1912
|
+
super(input);
|
|
1913
|
+
this.method = "POST";
|
|
1914
|
+
this.contentType = "application/json";
|
|
1915
|
+
this.accept = "application/json";
|
|
1916
|
+
this.inputSchema = cancelSubscriptionPurchaseInputSchema;
|
|
1917
|
+
this.outputSchema = cancelSubscriptionPurchaseResponseSchema;
|
|
1918
|
+
this.querySchema = void 0;
|
|
1919
|
+
this.headersSchema = void 0;
|
|
1920
|
+
this.purchaseId = purchaseId;
|
|
1921
|
+
}
|
|
1922
|
+
getPath() {
|
|
1923
|
+
return `/subscriptions/purchases/${this.purchaseId}/cancel`;
|
|
1924
|
+
}
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1927
|
+
// src/requests/subscription-purchases/CreateSubscriptionPurchase.ts
|
|
1928
|
+
var import_sdk_js_core42 = require("@deliverart/sdk-js-core");
|
|
1929
|
+
var createSubscriptionPurchaseInputSchema = writableSubscriptionPurchaseSchema;
|
|
1930
|
+
var createSubscriptionPurchaseResponseSchema = subscriptionPurchaseDetailsSchema;
|
|
1931
|
+
var CreateSubscriptionPurchase = class extends import_sdk_js_core42.AbstractApiRequest {
|
|
1932
|
+
constructor(input) {
|
|
1933
|
+
super(input);
|
|
1934
|
+
this.method = "POST";
|
|
1935
|
+
this.contentType = "application/json";
|
|
1936
|
+
this.accept = "application/json";
|
|
1937
|
+
this.inputSchema = createSubscriptionPurchaseInputSchema;
|
|
1938
|
+
this.outputSchema = createSubscriptionPurchaseResponseSchema;
|
|
1939
|
+
this.querySchema = void 0;
|
|
1940
|
+
this.headersSchema = void 0;
|
|
1941
|
+
}
|
|
1942
|
+
getPath() {
|
|
1943
|
+
return "/subscriptions/purchases";
|
|
1944
|
+
}
|
|
1945
|
+
};
|
|
1946
|
+
|
|
1947
|
+
// src/requests/subscription-purchases/GetSubscriptionPurchaseDetails.ts
|
|
1948
|
+
var import_sdk_js_core43 = require("@deliverart/sdk-js-core");
|
|
1949
|
+
var import_zod27 = require("zod");
|
|
1950
|
+
var getSubscriptionPurchaseDetailsInputSchema = import_zod27.z.undefined();
|
|
1951
|
+
var getSubscriptionPurchaseDetailsResponseSchema = subscriptionPurchaseDetailsSchema;
|
|
1952
|
+
var GetSubscriptionPurchaseDetails = class extends import_sdk_js_core43.AbstractApiRequest {
|
|
1953
|
+
constructor(purchaseId) {
|
|
1954
|
+
super(void 0);
|
|
1955
|
+
this.method = "GET";
|
|
1956
|
+
this.contentType = "application/json";
|
|
1957
|
+
this.accept = "application/json";
|
|
1958
|
+
this.inputSchema = getSubscriptionPurchaseDetailsInputSchema;
|
|
1959
|
+
this.outputSchema = getSubscriptionPurchaseDetailsResponseSchema;
|
|
1960
|
+
this.querySchema = void 0;
|
|
1961
|
+
this.headersSchema = void 0;
|
|
1962
|
+
this.purchaseId = purchaseId;
|
|
1963
|
+
}
|
|
1964
|
+
getPath() {
|
|
1965
|
+
return `/subscriptions/purchases/${this.purchaseId}`;
|
|
1966
|
+
}
|
|
1967
|
+
};
|
|
1968
|
+
|
|
1969
|
+
// src/requests/subscription-purchases/GetSubscriptionPurchases.ts
|
|
1970
|
+
var import_sdk_js_core44 = require("@deliverart/sdk-js-core");
|
|
1971
|
+
var import_zod28 = require("zod");
|
|
1972
|
+
var getSubscriptionPurchasesInputSchema = import_zod28.z.undefined();
|
|
1973
|
+
var GetSubscriptionPurchases = class extends import_sdk_js_core44.AbstractApiRequest {
|
|
1974
|
+
constructor(options) {
|
|
1975
|
+
super(void 0, options);
|
|
1976
|
+
this.method = "GET";
|
|
1977
|
+
this.contentType = "application/json";
|
|
1978
|
+
this.accept = "application/json";
|
|
1979
|
+
this.inputSchema = getSubscriptionPurchasesInputSchema;
|
|
1980
|
+
this.outputSchema = getSubscriptionPurchasesResponseSchema;
|
|
1981
|
+
this.querySchema = subscriptionPurchasesQuerySchema;
|
|
1982
|
+
this.headersSchema = void 0;
|
|
1983
|
+
this.listItemSchema = subscriptionPurchaseSchema;
|
|
1984
|
+
this.paginationDefaultEnabled = true;
|
|
1985
|
+
}
|
|
1986
|
+
getPath() {
|
|
1987
|
+
return "/subscriptions/purchases";
|
|
1988
|
+
}
|
|
1989
|
+
};
|
|
1990
|
+
|
|
1991
|
+
// src/requests/subscription-purchases/GetSubscriptionPurchasesFromPointOfSale.ts
|
|
1992
|
+
var import_sdk_js_core45 = require("@deliverart/sdk-js-core");
|
|
1993
|
+
var import_zod29 = require("zod");
|
|
1994
|
+
var getSubscriptionPurchasesFromPointOfSaleInputSchema = import_zod29.z.undefined();
|
|
1995
|
+
var GetSubscriptionPurchasesFromPointOfSale = class extends import_sdk_js_core45.AbstractApiRequest {
|
|
1996
|
+
constructor(pointOfSaleId, options) {
|
|
1997
|
+
super(void 0, options);
|
|
1998
|
+
this.method = "GET";
|
|
1999
|
+
this.contentType = "application/json";
|
|
2000
|
+
this.accept = "application/json";
|
|
2001
|
+
this.inputSchema = getSubscriptionPurchasesFromPointOfSaleInputSchema;
|
|
2002
|
+
this.outputSchema = getSubscriptionPurchasesResponseSchema;
|
|
2003
|
+
this.querySchema = subscriptionPurchasesQuerySchema;
|
|
2004
|
+
this.headersSchema = void 0;
|
|
2005
|
+
this.listItemSchema = subscriptionPurchaseSchema;
|
|
2006
|
+
this.paginationDefaultEnabled = true;
|
|
2007
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
2008
|
+
}
|
|
2009
|
+
getPath() {
|
|
2010
|
+
return `/point_of_sales/${this.pointOfSaleId}/subscription_purchases`;
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
|
+
|
|
2014
|
+
// src/requests/subscription-purchases/PaySubscriptionPurchase.ts
|
|
2015
|
+
var import_sdk_js_core46 = require("@deliverart/sdk-js-core");
|
|
2016
|
+
var paySubscriptionPurchaseInputSchema = paySubscriptionRenewalInputSchema;
|
|
2017
|
+
var paySubscriptionPurchaseResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
2018
|
+
var PaySubscriptionPurchase = class extends import_sdk_js_core46.AbstractApiRequest {
|
|
2019
|
+
constructor(purchaseId, method) {
|
|
2020
|
+
super({ method });
|
|
2021
|
+
this.method = "POST";
|
|
2022
|
+
this.contentType = "application/json";
|
|
2023
|
+
this.accept = "application/json";
|
|
2024
|
+
this.inputSchema = paySubscriptionPurchaseInputSchema;
|
|
2025
|
+
this.outputSchema = paySubscriptionPurchaseResponseSchema;
|
|
2026
|
+
this.querySchema = void 0;
|
|
2027
|
+
this.headersSchema = void 0;
|
|
2028
|
+
this.purchaseId = purchaseId;
|
|
2029
|
+
}
|
|
2030
|
+
getPath() {
|
|
2031
|
+
return `/subscriptions/purchases/${this.purchaseId}/pay`;
|
|
2032
|
+
}
|
|
2033
|
+
};
|
|
2034
|
+
|
|
2035
|
+
// src/requests/subscription-purchases/RefundSubscriptionPurchase.ts
|
|
2036
|
+
var import_sdk_js_core47 = require("@deliverart/sdk-js-core");
|
|
2037
|
+
var refundSubscriptionPurchaseInputSchema = manageSubscriptionBillingInputSchema;
|
|
2038
|
+
var refundSubscriptionPurchaseResponseSchema = subscriptionPurchaseLifecycleResponseSchema;
|
|
2039
|
+
var RefundSubscriptionPurchase = class extends import_sdk_js_core47.AbstractApiRequest {
|
|
2040
|
+
constructor(purchaseId, input = {}) {
|
|
2041
|
+
super(input);
|
|
2042
|
+
this.method = "POST";
|
|
2043
|
+
this.contentType = "application/json";
|
|
2044
|
+
this.accept = "application/json";
|
|
2045
|
+
this.inputSchema = refundSubscriptionPurchaseInputSchema;
|
|
2046
|
+
this.outputSchema = refundSubscriptionPurchaseResponseSchema;
|
|
2047
|
+
this.querySchema = void 0;
|
|
2048
|
+
this.headersSchema = void 0;
|
|
2049
|
+
this.purchaseId = purchaseId;
|
|
2050
|
+
}
|
|
2051
|
+
getPath() {
|
|
2052
|
+
return `/subscriptions/purchases/${this.purchaseId}/refund`;
|
|
2053
|
+
}
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
// src/requests/subscription-purchases/ResolveSubscriptionPurchasePayment.ts
|
|
2057
|
+
var import_sdk_js_core48 = require("@deliverart/sdk-js-core");
|
|
2058
|
+
var resolveSubscriptionPurchasePaymentInputSchema = resolveSubscriptionRenewalPaymentInputSchema;
|
|
2059
|
+
var resolveSubscriptionPurchasePaymentResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
2060
|
+
var ResolveSubscriptionPurchasePayment = class extends import_sdk_js_core48.AbstractApiRequest {
|
|
2061
|
+
constructor(purchaseId, input) {
|
|
2062
|
+
super(input);
|
|
2063
|
+
this.method = "POST";
|
|
2064
|
+
this.contentType = "application/json";
|
|
2065
|
+
this.accept = "application/json";
|
|
2066
|
+
this.inputSchema = resolveSubscriptionPurchasePaymentInputSchema;
|
|
2067
|
+
this.outputSchema = resolveSubscriptionPurchasePaymentResponseSchema;
|
|
2068
|
+
this.querySchema = void 0;
|
|
2069
|
+
this.headersSchema = void 0;
|
|
2070
|
+
this.purchaseId = purchaseId;
|
|
2071
|
+
}
|
|
2072
|
+
getPath() {
|
|
2073
|
+
return `/subscriptions/purchases/${this.purchaseId}/resolve_payment`;
|
|
2074
|
+
}
|
|
2075
|
+
};
|
|
2076
|
+
|
|
2077
|
+
// src/requests/subscription-purchases/RetrySubscriptionPurchasePayment.ts
|
|
2078
|
+
var import_sdk_js_core49 = require("@deliverart/sdk-js-core");
|
|
2079
|
+
var retrySubscriptionPurchasePaymentInputSchema = paySubscriptionRenewalInputSchema;
|
|
2080
|
+
var retrySubscriptionPurchasePaymentResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
2081
|
+
var RetrySubscriptionPurchasePayment = class extends import_sdk_js_core49.AbstractApiRequest {
|
|
2082
|
+
constructor(purchaseId, method) {
|
|
2083
|
+
super({ method });
|
|
2084
|
+
this.method = "POST";
|
|
2085
|
+
this.contentType = "application/json";
|
|
2086
|
+
this.accept = "application/json";
|
|
2087
|
+
this.inputSchema = retrySubscriptionPurchasePaymentInputSchema;
|
|
2088
|
+
this.outputSchema = retrySubscriptionPurchasePaymentResponseSchema;
|
|
2089
|
+
this.querySchema = void 0;
|
|
2090
|
+
this.headersSchema = void 0;
|
|
2091
|
+
this.purchaseId = purchaseId;
|
|
2092
|
+
}
|
|
2093
|
+
getPath() {
|
|
2094
|
+
return `/subscriptions/purchases/${this.purchaseId}/retry_payment`;
|
|
2095
|
+
}
|
|
2096
|
+
};
|
|
2097
|
+
|
|
2098
|
+
// src/requests/subscription-time-based/CreateSubscriptionTimeBased.ts
|
|
2099
|
+
var import_sdk_js_core50 = require("@deliverart/sdk-js-core");
|
|
2100
|
+
var createSubscriptionTimeBasedInputSchema = writableSubscriptionTimeBasedSchema;
|
|
2101
|
+
var createSubscriptionTimeBasedResponseSchema = subscriptionTimeBasedDetailsSchema;
|
|
2102
|
+
var CreateSubscriptionTimeBased = class extends import_sdk_js_core50.AbstractApiRequest {
|
|
2103
|
+
constructor(input) {
|
|
2104
|
+
super(input);
|
|
2105
|
+
this.method = "POST";
|
|
2106
|
+
this.contentType = "application/json";
|
|
2107
|
+
this.accept = "application/json";
|
|
2108
|
+
this.inputSchema = createSubscriptionTimeBasedInputSchema;
|
|
2109
|
+
this.outputSchema = createSubscriptionTimeBasedResponseSchema;
|
|
2110
|
+
this.querySchema = void 0;
|
|
2111
|
+
this.headersSchema = void 0;
|
|
2112
|
+
}
|
|
2113
|
+
getPath() {
|
|
2114
|
+
return "/subscriptions/time_based";
|
|
2115
|
+
}
|
|
2116
|
+
};
|
|
2117
|
+
|
|
2118
|
+
// src/requests/subscription-time-based/DeleteSubscriptionTimeBased.ts
|
|
2119
|
+
var import_sdk_js_core51 = require("@deliverart/sdk-js-core");
|
|
2120
|
+
var import_sdk_js_global_types9 = require("@deliverart/sdk-js-global-types");
|
|
2121
|
+
var import_zod30 = require("zod");
|
|
2122
|
+
var deleteSubscriptionTimeBasedInputSchema = import_zod30.z.undefined();
|
|
2123
|
+
var deleteSubscriptionTimeBasedResponseSchema = import_sdk_js_global_types9.emptyResponseSchema;
|
|
2124
|
+
var DeleteSubscriptionTimeBased = class extends import_sdk_js_core51.AbstractApiRequest {
|
|
2125
|
+
constructor(subscriptionId) {
|
|
2126
|
+
super(void 0);
|
|
2127
|
+
this.method = "DELETE";
|
|
2128
|
+
this.contentType = "application/json";
|
|
2129
|
+
this.accept = "application/json";
|
|
2130
|
+
this.inputSchema = deleteSubscriptionTimeBasedInputSchema;
|
|
2131
|
+
this.outputSchema = deleteSubscriptionTimeBasedResponseSchema;
|
|
2132
|
+
this.querySchema = void 0;
|
|
2133
|
+
this.headersSchema = void 0;
|
|
2134
|
+
this.subscriptionId = subscriptionId;
|
|
2135
|
+
}
|
|
2136
|
+
getPath() {
|
|
2137
|
+
return `/subscriptions/time_based/${this.subscriptionId}`;
|
|
2138
|
+
}
|
|
2139
|
+
};
|
|
2140
|
+
|
|
2141
|
+
// src/requests/subscription-time-based/GetSubscriptionTimeBasedDetails.ts
|
|
2142
|
+
var import_sdk_js_core52 = require("@deliverart/sdk-js-core");
|
|
2143
|
+
var import_zod31 = require("zod");
|
|
2144
|
+
var getSubscriptionTimeBasedDetailsInputSchema = import_zod31.z.undefined();
|
|
2145
|
+
var getSubscriptionTimeBasedDetailsResponseSchema = subscriptionTimeBasedDetailsSchema;
|
|
2146
|
+
var GetSubscriptionTimeBasedDetails = class extends import_sdk_js_core52.AbstractApiRequest {
|
|
2147
|
+
constructor(subscriptionId) {
|
|
2148
|
+
super(void 0);
|
|
2149
|
+
this.method = "GET";
|
|
2150
|
+
this.contentType = "application/json";
|
|
2151
|
+
this.accept = "application/json";
|
|
2152
|
+
this.inputSchema = getSubscriptionTimeBasedDetailsInputSchema;
|
|
2153
|
+
this.outputSchema = getSubscriptionTimeBasedDetailsResponseSchema;
|
|
2154
|
+
this.querySchema = void 0;
|
|
2155
|
+
this.headersSchema = void 0;
|
|
2156
|
+
this.subscriptionId = subscriptionId;
|
|
2157
|
+
}
|
|
2158
|
+
getPath() {
|
|
2159
|
+
return `/subscriptions/time_based/${this.subscriptionId}`;
|
|
2160
|
+
}
|
|
2161
|
+
};
|
|
2162
|
+
|
|
2163
|
+
// src/requests/subscription-time-based/GetSubscriptionTimeBasedList.ts
|
|
2164
|
+
var import_sdk_js_core53 = require("@deliverart/sdk-js-core");
|
|
2165
|
+
var import_zod32 = require("zod");
|
|
2166
|
+
var getSubscriptionTimeBasedListInputSchema = import_zod32.z.undefined();
|
|
2167
|
+
var GetSubscriptionTimeBasedList = class extends import_sdk_js_core53.AbstractApiRequest {
|
|
2168
|
+
constructor(options) {
|
|
2169
|
+
super(void 0, options);
|
|
2170
|
+
this.method = "GET";
|
|
2171
|
+
this.contentType = "application/json";
|
|
2172
|
+
this.accept = "application/json";
|
|
2173
|
+
this.inputSchema = getSubscriptionTimeBasedListInputSchema;
|
|
2174
|
+
this.outputSchema = getSubscriptionTimeBasedListResponseSchema;
|
|
2175
|
+
this.querySchema = subscriptionTimeBasedQuerySchema;
|
|
2176
|
+
this.headersSchema = void 0;
|
|
2177
|
+
this.listItemSchema = subscriptionTimeBasedSchema;
|
|
2178
|
+
this.paginationDefaultEnabled = true;
|
|
2179
|
+
}
|
|
2180
|
+
getPath() {
|
|
2181
|
+
return "/subscriptions/time_based";
|
|
2182
|
+
}
|
|
2183
|
+
};
|
|
2184
|
+
|
|
2185
|
+
// src/requests/subscription-time-based/UpdateSubscriptionTimeBased.ts
|
|
2186
|
+
var import_sdk_js_core54 = require("@deliverart/sdk-js-core");
|
|
2187
|
+
var updateSubscriptionTimeBasedInputSchema = writableSubscriptionTimeBasedSchema.omit({
|
|
2188
|
+
pointOfSale: true
|
|
2189
|
+
}).partial();
|
|
2190
|
+
var updateSubscriptionTimeBasedResponseSchema = subscriptionTimeBasedDetailsSchema;
|
|
2191
|
+
var UpdateSubscriptionTimeBased = class extends import_sdk_js_core54.AbstractApiRequest {
|
|
2192
|
+
constructor(subscriptionId, input) {
|
|
2193
|
+
super(input);
|
|
2194
|
+
this.method = "PATCH";
|
|
2195
|
+
this.contentType = "application/merge-patch+json";
|
|
2196
|
+
this.accept = "application/json";
|
|
2197
|
+
this.inputSchema = updateSubscriptionTimeBasedInputSchema;
|
|
2198
|
+
this.outputSchema = updateSubscriptionTimeBasedResponseSchema;
|
|
2199
|
+
this.querySchema = void 0;
|
|
2200
|
+
this.headersSchema = void 0;
|
|
2201
|
+
this.subscriptionId = subscriptionId;
|
|
2202
|
+
}
|
|
2203
|
+
getPath() {
|
|
2204
|
+
return `/subscriptions/time_based/${this.subscriptionId}`;
|
|
2205
|
+
}
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
// src/requests/subscription-time-based-renewals/CancelSubscriptionTimeBasedRenewal.ts
|
|
2209
|
+
var import_sdk_js_core55 = require("@deliverart/sdk-js-core");
|
|
2210
|
+
var cancelSubscriptionTimeBasedRenewalInputSchema = manageSubscriptionBillingInputSchema;
|
|
2211
|
+
var cancelSubscriptionTimeBasedRenewalResponseSchema = subscriptionRenewalLifecycleResponseSchema;
|
|
2212
|
+
var CancelSubscriptionTimeBasedRenewal = class extends import_sdk_js_core55.AbstractApiRequest {
|
|
2213
|
+
constructor(renewalId, input = {}) {
|
|
2214
|
+
super(input);
|
|
2215
|
+
this.method = "POST";
|
|
2216
|
+
this.contentType = "application/json";
|
|
2217
|
+
this.accept = "application/json";
|
|
2218
|
+
this.inputSchema = cancelSubscriptionTimeBasedRenewalInputSchema;
|
|
2219
|
+
this.outputSchema = cancelSubscriptionTimeBasedRenewalResponseSchema;
|
|
2220
|
+
this.querySchema = void 0;
|
|
2221
|
+
this.headersSchema = void 0;
|
|
2222
|
+
this.renewalId = renewalId;
|
|
2223
|
+
}
|
|
2224
|
+
getPath() {
|
|
2225
|
+
return `/subscriptions/time_based/renewals/${this.renewalId}/cancel`;
|
|
2226
|
+
}
|
|
2227
|
+
};
|
|
2228
|
+
|
|
2229
|
+
// src/requests/subscription-time-based-renewals/CreateSubscriptionTimeBasedRenewal.ts
|
|
2230
|
+
var import_sdk_js_core56 = require("@deliverart/sdk-js-core");
|
|
2231
|
+
var createSubscriptionTimeBasedRenewalInputSchema = writableSubscriptionTimeBasedRenewalSchema.required();
|
|
2232
|
+
var createSubscriptionTimeBasedRenewalResponseSchema = subscriptionTimeBasedRenewalDetailsSchema;
|
|
2233
|
+
var CreateSubscriptionTimeBasedRenewal = class extends import_sdk_js_core56.AbstractApiRequest {
|
|
2234
|
+
constructor(input) {
|
|
2235
|
+
super(input);
|
|
2236
|
+
this.method = "POST";
|
|
2237
|
+
this.contentType = "application/json";
|
|
2238
|
+
this.accept = "application/json";
|
|
2239
|
+
this.inputSchema = createSubscriptionTimeBasedRenewalInputSchema;
|
|
2240
|
+
this.outputSchema = createSubscriptionTimeBasedRenewalResponseSchema;
|
|
2241
|
+
this.querySchema = void 0;
|
|
2242
|
+
this.headersSchema = void 0;
|
|
2243
|
+
}
|
|
2244
|
+
getPath() {
|
|
2245
|
+
return "/subscriptions/time_based/renewals";
|
|
2246
|
+
}
|
|
2247
|
+
};
|
|
2248
|
+
|
|
2249
|
+
// src/requests/subscription-time-based-renewals/DeleteSubscriptionTimeBasedRenewal.ts
|
|
2250
|
+
var import_sdk_js_core57 = require("@deliverart/sdk-js-core");
|
|
2251
|
+
var import_sdk_js_global_types10 = require("@deliverart/sdk-js-global-types");
|
|
2252
|
+
var import_zod33 = require("zod");
|
|
2253
|
+
var deleteSubscriptionTimeBasedRenewalInputSchema = import_zod33.z.undefined();
|
|
2254
|
+
var deleteSubscriptionTimeBasedRenewalResponseSchema = import_sdk_js_global_types10.emptyResponseSchema;
|
|
2255
|
+
var DeleteSubscriptionTimeBasedRenewal = class extends import_sdk_js_core57.AbstractApiRequest {
|
|
2256
|
+
constructor(renewalId) {
|
|
2257
|
+
super(void 0);
|
|
2258
|
+
this.method = "DELETE";
|
|
2259
|
+
this.contentType = "application/json";
|
|
2260
|
+
this.accept = "application/json";
|
|
2261
|
+
this.inputSchema = deleteSubscriptionTimeBasedRenewalInputSchema;
|
|
2262
|
+
this.outputSchema = deleteSubscriptionTimeBasedRenewalResponseSchema;
|
|
2263
|
+
this.querySchema = void 0;
|
|
2264
|
+
this.headersSchema = void 0;
|
|
2265
|
+
this.renewalId = renewalId;
|
|
2266
|
+
}
|
|
2267
|
+
getPath() {
|
|
2268
|
+
return `/subscriptions/time_based/renewals/${this.renewalId}`;
|
|
2269
|
+
}
|
|
2270
|
+
};
|
|
2271
|
+
|
|
2272
|
+
// src/requests/subscription-time-based-renewals/GetSubscriptionTimeBasedRenewalDetails.ts
|
|
2273
|
+
var import_sdk_js_core58 = require("@deliverart/sdk-js-core");
|
|
2274
|
+
var import_zod34 = require("zod");
|
|
2275
|
+
var getSubscriptionTimeBasedRenewalDetailsInputSchema = import_zod34.z.undefined();
|
|
2276
|
+
var getSubscriptionTimeBasedRenewalDetailsResponseSchema = subscriptionTimeBasedRenewalDetailsSchema;
|
|
2277
|
+
var GetSubscriptionTimeBasedRenewalDetails = class extends import_sdk_js_core58.AbstractApiRequest {
|
|
2278
|
+
constructor(renewalId) {
|
|
2279
|
+
super(void 0);
|
|
2280
|
+
this.method = "GET";
|
|
2281
|
+
this.contentType = "application/json";
|
|
2282
|
+
this.accept = "application/json";
|
|
2283
|
+
this.inputSchema = getSubscriptionTimeBasedRenewalDetailsInputSchema;
|
|
2284
|
+
this.outputSchema = getSubscriptionTimeBasedRenewalDetailsResponseSchema;
|
|
2285
|
+
this.querySchema = void 0;
|
|
2286
|
+
this.headersSchema = void 0;
|
|
2287
|
+
this.renewalId = renewalId;
|
|
2288
|
+
}
|
|
2289
|
+
getPath() {
|
|
2290
|
+
return `/subscriptions/time_based/renewals/${this.renewalId}`;
|
|
2291
|
+
}
|
|
2292
|
+
};
|
|
2293
|
+
|
|
2294
|
+
// src/requests/subscription-time-based-renewals/GetSubscriptionTimeBasedRenewals.ts
|
|
2295
|
+
var import_sdk_js_core59 = require("@deliverart/sdk-js-core");
|
|
2296
|
+
var import_zod35 = require("zod");
|
|
2297
|
+
var getSubscriptionTimeBasedRenewalsInputSchema = import_zod35.z.undefined();
|
|
2298
|
+
var GetSubscriptionTimeBasedRenewals = class extends import_sdk_js_core59.AbstractApiRequest {
|
|
2299
|
+
constructor(options) {
|
|
2300
|
+
super(void 0, options);
|
|
2301
|
+
this.method = "GET";
|
|
2302
|
+
this.contentType = "application/json";
|
|
2303
|
+
this.accept = "application/json";
|
|
2304
|
+
this.inputSchema = getSubscriptionTimeBasedRenewalsInputSchema;
|
|
2305
|
+
this.outputSchema = getSubscriptionTimeBasedRenewalsResponseSchema;
|
|
2306
|
+
this.querySchema = subscriptionTimeBasedRenewalsQuerySchema;
|
|
2307
|
+
this.headersSchema = void 0;
|
|
2308
|
+
this.listItemSchema = subscriptionTimeBasedRenewalSchema;
|
|
2309
|
+
this.paginationDefaultEnabled = true;
|
|
2310
|
+
}
|
|
2311
|
+
getPath() {
|
|
2312
|
+
return "/subscriptions/time_based/renewals";
|
|
2313
|
+
}
|
|
2314
|
+
};
|
|
2315
|
+
|
|
2316
|
+
// src/requests/subscription-time-based-renewals/GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased.ts
|
|
2317
|
+
var import_sdk_js_core60 = require("@deliverart/sdk-js-core");
|
|
2318
|
+
var import_zod36 = require("zod");
|
|
2319
|
+
var getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema = import_zod36.z.undefined();
|
|
2320
|
+
var GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased = class extends import_sdk_js_core60.AbstractApiRequest {
|
|
2321
|
+
constructor(subscriptionId, options) {
|
|
2322
|
+
super(void 0, options);
|
|
2323
|
+
this.method = "GET";
|
|
2324
|
+
this.contentType = "application/json";
|
|
2325
|
+
this.accept = "application/json";
|
|
2326
|
+
this.inputSchema = getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema;
|
|
2327
|
+
this.outputSchema = getSubscriptionTimeBasedRenewalsResponseSchema;
|
|
2328
|
+
this.querySchema = subscriptionTimeBasedRenewalsQuerySchema;
|
|
2329
|
+
this.headersSchema = void 0;
|
|
2330
|
+
this.listItemSchema = subscriptionTimeBasedRenewalSchema;
|
|
2331
|
+
this.paginationDefaultEnabled = true;
|
|
2332
|
+
this.subscriptionId = subscriptionId;
|
|
2333
|
+
}
|
|
2334
|
+
getPath() {
|
|
2335
|
+
return `/subscriptions/time_based/${this.subscriptionId}/renewals`;
|
|
2336
|
+
}
|
|
2337
|
+
};
|
|
2338
|
+
|
|
2339
|
+
// src/requests/subscription-time-based-renewals/PaySubscriptionTimeBasedRenewal.ts
|
|
2340
|
+
var import_sdk_js_core61 = require("@deliverart/sdk-js-core");
|
|
2341
|
+
var paySubscriptionTimeBasedRenewalInputSchema = paySubscriptionRenewalInputSchema;
|
|
2342
|
+
var paySubscriptionTimeBasedRenewalResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
2343
|
+
var PaySubscriptionTimeBasedRenewal = class extends import_sdk_js_core61.AbstractApiRequest {
|
|
2344
|
+
constructor(renewalId, method) {
|
|
2345
|
+
super({ method });
|
|
2346
|
+
this.method = "POST";
|
|
2347
|
+
this.contentType = "application/json";
|
|
2348
|
+
this.accept = "application/json";
|
|
2349
|
+
this.inputSchema = paySubscriptionTimeBasedRenewalInputSchema;
|
|
2350
|
+
this.outputSchema = paySubscriptionTimeBasedRenewalResponseSchema;
|
|
2351
|
+
this.querySchema = void 0;
|
|
2352
|
+
this.headersSchema = void 0;
|
|
2353
|
+
this.renewalId = renewalId;
|
|
2354
|
+
}
|
|
2355
|
+
getPath() {
|
|
2356
|
+
return `/subscriptions/time_based/renewals/${this.renewalId}/pay`;
|
|
2357
|
+
}
|
|
2358
|
+
};
|
|
2359
|
+
|
|
2360
|
+
// src/requests/subscription-time-based-renewals/RefundSubscriptionTimeBasedRenewal.ts
|
|
2361
|
+
var import_sdk_js_core62 = require("@deliverart/sdk-js-core");
|
|
2362
|
+
var refundSubscriptionTimeBasedRenewalInputSchema = manageSubscriptionBillingInputSchema;
|
|
2363
|
+
var refundSubscriptionTimeBasedRenewalResponseSchema = subscriptionRenewalLifecycleResponseSchema;
|
|
2364
|
+
var RefundSubscriptionTimeBasedRenewal = class extends import_sdk_js_core62.AbstractApiRequest {
|
|
2365
|
+
constructor(renewalId, input = {}) {
|
|
2366
|
+
super(input);
|
|
2367
|
+
this.method = "POST";
|
|
2368
|
+
this.contentType = "application/json";
|
|
2369
|
+
this.accept = "application/json";
|
|
2370
|
+
this.inputSchema = refundSubscriptionTimeBasedRenewalInputSchema;
|
|
2371
|
+
this.outputSchema = refundSubscriptionTimeBasedRenewalResponseSchema;
|
|
2372
|
+
this.querySchema = void 0;
|
|
2373
|
+
this.headersSchema = void 0;
|
|
2374
|
+
this.renewalId = renewalId;
|
|
2375
|
+
}
|
|
2376
|
+
getPath() {
|
|
2377
|
+
return `/subscriptions/time_based/renewals/${this.renewalId}/refund`;
|
|
2378
|
+
}
|
|
2379
|
+
};
|
|
2380
|
+
|
|
2381
|
+
// src/requests/subscription-time-based-renewals/ResolveSubscriptionTimeBasedRenewalPayment.ts
|
|
2382
|
+
var import_sdk_js_core63 = require("@deliverart/sdk-js-core");
|
|
2383
|
+
var resolveSubscriptionTimeBasedRenewalPaymentInputSchema = resolveSubscriptionRenewalPaymentInputSchema;
|
|
2384
|
+
var resolveSubscriptionTimeBasedRenewalPaymentResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
2385
|
+
var ResolveSubscriptionTimeBasedRenewalPayment = class extends import_sdk_js_core63.AbstractApiRequest {
|
|
2386
|
+
constructor(renewalId, input) {
|
|
2387
|
+
super(input);
|
|
2388
|
+
this.method = "POST";
|
|
2389
|
+
this.contentType = "application/json";
|
|
2390
|
+
this.accept = "application/json";
|
|
2391
|
+
this.inputSchema = resolveSubscriptionTimeBasedRenewalPaymentInputSchema;
|
|
2392
|
+
this.outputSchema = resolveSubscriptionTimeBasedRenewalPaymentResponseSchema;
|
|
2393
|
+
this.querySchema = void 0;
|
|
2394
|
+
this.headersSchema = void 0;
|
|
2395
|
+
this.renewalId = renewalId;
|
|
2396
|
+
}
|
|
2397
|
+
getPath() {
|
|
2398
|
+
return `/subscriptions/time_based/renewals/${this.renewalId}/resolve_payment`;
|
|
2399
|
+
}
|
|
2400
|
+
};
|
|
2401
|
+
|
|
2402
|
+
// src/requests/subscription-time-based-renewals/RetrySubscriptionTimeBasedRenewalPayment.ts
|
|
2403
|
+
var import_sdk_js_core64 = require("@deliverart/sdk-js-core");
|
|
2404
|
+
var retrySubscriptionTimeBasedRenewalPaymentInputSchema = paySubscriptionRenewalInputSchema;
|
|
2405
|
+
var retrySubscriptionTimeBasedRenewalPaymentResponseSchema = subscriptionRenewalPaymentInfoSchema;
|
|
2406
|
+
var RetrySubscriptionTimeBasedRenewalPayment = class extends import_sdk_js_core64.AbstractApiRequest {
|
|
2407
|
+
constructor(renewalId, method) {
|
|
2408
|
+
super({ method });
|
|
2409
|
+
this.method = "POST";
|
|
2410
|
+
this.contentType = "application/json";
|
|
2411
|
+
this.accept = "application/json";
|
|
2412
|
+
this.inputSchema = retrySubscriptionTimeBasedRenewalPaymentInputSchema;
|
|
2413
|
+
this.outputSchema = retrySubscriptionTimeBasedRenewalPaymentResponseSchema;
|
|
2414
|
+
this.querySchema = void 0;
|
|
2415
|
+
this.headersSchema = void 0;
|
|
2416
|
+
this.renewalId = renewalId;
|
|
2417
|
+
}
|
|
2418
|
+
getPath() {
|
|
2419
|
+
return `/subscriptions/time_based/renewals/${this.renewalId}/retry_payment`;
|
|
2420
|
+
}
|
|
2421
|
+
};
|
|
2422
|
+
|
|
2423
|
+
// src/requests/subscriptions/DeleteSubscription.ts
|
|
2424
|
+
var import_sdk_js_core65 = require("@deliverart/sdk-js-core");
|
|
2425
|
+
var import_sdk_js_global_types11 = require("@deliverart/sdk-js-global-types");
|
|
2426
|
+
var import_zod37 = require("zod");
|
|
2427
|
+
var deleteSubscriptionInputSchema = import_zod37.z.undefined();
|
|
2428
|
+
var deleteSubscriptionResponseSchema = import_sdk_js_global_types11.emptyResponseSchema;
|
|
2429
|
+
var DeleteSubscription = class extends import_sdk_js_core65.AbstractApiRequest {
|
|
2430
|
+
constructor(subscriptionId) {
|
|
2431
|
+
super(void 0);
|
|
2432
|
+
this.method = "DELETE";
|
|
2433
|
+
this.contentType = "application/json";
|
|
2434
|
+
this.accept = "application/json";
|
|
2435
|
+
this.inputSchema = deleteSubscriptionInputSchema;
|
|
2436
|
+
this.outputSchema = deleteSubscriptionResponseSchema;
|
|
2437
|
+
this.querySchema = void 0;
|
|
2438
|
+
this.headersSchema = void 0;
|
|
2439
|
+
this.subscriptionId = subscriptionId;
|
|
2440
|
+
}
|
|
2441
|
+
getPath() {
|
|
2442
|
+
return `/subscriptions/${this.subscriptionId}`;
|
|
2443
|
+
}
|
|
2444
|
+
};
|
|
2445
|
+
|
|
2446
|
+
// src/requests/subscriptions/GetSubscriptionDetails.ts
|
|
2447
|
+
var import_sdk_js_core66 = require("@deliverart/sdk-js-core");
|
|
2448
|
+
var import_zod38 = require("zod");
|
|
2449
|
+
var getSubscriptionDetailsInputSchema = import_zod38.z.undefined();
|
|
2450
|
+
var getSubscriptionDetailsResponseSchema = subscriptionDetailsSchema;
|
|
2451
|
+
var GetSubscriptionDetails = class extends import_sdk_js_core66.AbstractApiRequest {
|
|
2452
|
+
constructor(subscriptionId) {
|
|
2453
|
+
super(void 0);
|
|
2454
|
+
this.method = "GET";
|
|
2455
|
+
this.contentType = "application/json";
|
|
2456
|
+
this.accept = "application/json";
|
|
2457
|
+
this.inputSchema = getSubscriptionDetailsInputSchema;
|
|
2458
|
+
this.outputSchema = getSubscriptionDetailsResponseSchema;
|
|
2459
|
+
this.querySchema = void 0;
|
|
2460
|
+
this.headersSchema = void 0;
|
|
2461
|
+
this.subscriptionId = subscriptionId;
|
|
2462
|
+
}
|
|
2463
|
+
getPath() {
|
|
2464
|
+
return `/subscriptions/${this.subscriptionId}`;
|
|
2465
|
+
}
|
|
2466
|
+
};
|
|
2467
|
+
|
|
2468
|
+
// src/requests/subscriptions/GetSubscriptionOverviewFromPointOfSale.ts
|
|
2469
|
+
var import_sdk_js_core67 = require("@deliverart/sdk-js-core");
|
|
2470
|
+
var import_zod39 = require("zod");
|
|
2471
|
+
var getSubscriptionOverviewFromPointOfSaleInputSchema = import_zod39.z.undefined();
|
|
2472
|
+
var getSubscriptionOverviewFromPointOfSaleResponseSchema = subscriptionOverviewResponseSchema;
|
|
2473
|
+
var GetSubscriptionOverviewFromPointOfSale = class extends import_sdk_js_core67.AbstractApiRequest {
|
|
2474
|
+
constructor(pointOfSaleId) {
|
|
2475
|
+
super(void 0);
|
|
2476
|
+
this.method = "GET";
|
|
2477
|
+
this.contentType = "application/json";
|
|
2478
|
+
this.accept = "application/json";
|
|
2479
|
+
this.inputSchema = getSubscriptionOverviewFromPointOfSaleInputSchema;
|
|
2480
|
+
this.outputSchema = getSubscriptionOverviewFromPointOfSaleResponseSchema;
|
|
2481
|
+
this.querySchema = void 0;
|
|
2482
|
+
this.headersSchema = void 0;
|
|
2483
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
2484
|
+
}
|
|
2485
|
+
getPath() {
|
|
2486
|
+
return `/point_of_sales/${this.pointOfSaleId}/subscription_overview`;
|
|
2487
|
+
}
|
|
2488
|
+
};
|
|
2489
|
+
|
|
2490
|
+
// src/requests/subscriptions/GetSubscriptions.ts
|
|
2491
|
+
var import_sdk_js_core68 = require("@deliverart/sdk-js-core");
|
|
2492
|
+
var import_zod40 = require("zod");
|
|
2493
|
+
var getSubscriptionsInputSchema = import_zod40.z.undefined();
|
|
2494
|
+
var GetSubscriptions = class extends import_sdk_js_core68.AbstractApiRequest {
|
|
2495
|
+
constructor(options) {
|
|
2496
|
+
super(void 0, options);
|
|
2497
|
+
this.method = "GET";
|
|
2498
|
+
this.contentType = "application/json";
|
|
2499
|
+
this.accept = "application/json";
|
|
2500
|
+
this.inputSchema = getSubscriptionsInputSchema;
|
|
2501
|
+
this.outputSchema = getSubscriptionsResponseSchema;
|
|
2502
|
+
this.querySchema = subscriptionQuerySchema;
|
|
2503
|
+
this.headersSchema = void 0;
|
|
2504
|
+
this.listItemSchema = subscriptionSchema;
|
|
2505
|
+
this.paginationDefaultEnabled = true;
|
|
2506
|
+
}
|
|
2507
|
+
getPath() {
|
|
2508
|
+
return "/subscriptions";
|
|
2509
|
+
}
|
|
2510
|
+
};
|
|
2511
|
+
|
|
2512
|
+
// src/requests/subscriptions/GetSubscriptionsFromPointOfSale.ts
|
|
2513
|
+
var import_sdk_js_core69 = require("@deliverart/sdk-js-core");
|
|
2514
|
+
var import_zod41 = require("zod");
|
|
2515
|
+
var getSubscriptionsFromPointOfSaleInputSchema = import_zod41.z.undefined();
|
|
2516
|
+
var getSubscriptionsFromPointOfSaleResponseSchema = import_zod41.z.array(subscriptionSchema);
|
|
2517
|
+
var GetSubscriptionsFromPointOfSale = class extends import_sdk_js_core69.AbstractApiRequest {
|
|
2518
|
+
constructor(pointOfSaleId, options) {
|
|
2519
|
+
super(void 0, options);
|
|
2520
|
+
this.method = "GET";
|
|
2521
|
+
this.contentType = "application/json";
|
|
2522
|
+
this.accept = "application/json";
|
|
2523
|
+
this.inputSchema = getSubscriptionsFromPointOfSaleInputSchema;
|
|
2524
|
+
this.outputSchema = getSubscriptionsFromPointOfSaleResponseSchema;
|
|
2525
|
+
this.querySchema = subscriptionQuerySchema;
|
|
2526
|
+
this.headersSchema = void 0;
|
|
2527
|
+
this.listItemSchema = subscriptionSchema;
|
|
2528
|
+
this.paginationDefaultEnabled = false;
|
|
2529
|
+
this.pointOfSaleId = pointOfSaleId;
|
|
2530
|
+
}
|
|
2531
|
+
getPath() {
|
|
2532
|
+
return `/point_of_sales/${this.pointOfSaleId}/subscriptions`;
|
|
2533
|
+
}
|
|
2534
|
+
};
|
|
2535
|
+
|
|
2536
|
+
// src/requests/subscriptions/UpdateSubscription.ts
|
|
2537
|
+
var import_sdk_js_core70 = require("@deliverart/sdk-js-core");
|
|
2538
|
+
var updateSubscriptionInputSchema = writableSubscriptionCommonSchema.omit({
|
|
2539
|
+
pointOfSale: true
|
|
2540
|
+
}).partial();
|
|
2541
|
+
var updateSubscriptionResponseSchema = subscriptionDetailsSchema;
|
|
2542
|
+
var UpdateSubscription = class extends import_sdk_js_core70.AbstractApiRequest {
|
|
2543
|
+
constructor(subscriptionId, input) {
|
|
2544
|
+
super(input);
|
|
2545
|
+
this.method = "PATCH";
|
|
2546
|
+
this.contentType = "application/merge-patch+json";
|
|
2547
|
+
this.accept = "application/json";
|
|
2548
|
+
this.inputSchema = updateSubscriptionInputSchema;
|
|
2549
|
+
this.outputSchema = updateSubscriptionResponseSchema;
|
|
2550
|
+
this.querySchema = void 0;
|
|
2551
|
+
this.headersSchema = void 0;
|
|
2552
|
+
this.subscriptionId = subscriptionId;
|
|
2553
|
+
}
|
|
2554
|
+
getPath() {
|
|
2555
|
+
return `/subscriptions/${this.subscriptionId}`;
|
|
2556
|
+
}
|
|
2557
|
+
};
|
|
2558
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2559
|
+
0 && (module.exports = {
|
|
2560
|
+
AdjustSubscriptionConsumptionCredits,
|
|
2561
|
+
AssignSubscriptionPlan,
|
|
2562
|
+
CalculateSubscriptionPlanPurchaseQuote,
|
|
2563
|
+
CancelSubscriptionConsumptionRenewal,
|
|
2564
|
+
CancelSubscriptionPurchase,
|
|
2565
|
+
CancelSubscriptionTimeBasedRenewal,
|
|
2566
|
+
CreateSubscriptionConsumption,
|
|
2567
|
+
CreateSubscriptionConsumptionRenewal,
|
|
2568
|
+
CreateSubscriptionInfinite,
|
|
2569
|
+
CreateSubscriptionPlan,
|
|
2570
|
+
CreateSubscriptionPrice,
|
|
2571
|
+
CreateSubscriptionPurchase,
|
|
2572
|
+
CreateSubscriptionTimeBased,
|
|
2573
|
+
CreateSubscriptionTimeBasedRenewal,
|
|
2574
|
+
DeleteCreditUsageLog,
|
|
2575
|
+
DeleteSubscription,
|
|
2576
|
+
DeleteSubscriptionConsumption,
|
|
2577
|
+
DeleteSubscriptionConsumptionRenewal,
|
|
2578
|
+
DeleteSubscriptionInfinite,
|
|
2579
|
+
DeleteSubscriptionPlan,
|
|
2580
|
+
DeleteSubscriptionPrice,
|
|
2581
|
+
DeleteSubscriptionTimeBased,
|
|
2582
|
+
DeleteSubscriptionTimeBasedRenewal,
|
|
2583
|
+
GetCreditUsageLogDetails,
|
|
2584
|
+
GetCreditUsageLogs,
|
|
2585
|
+
GetCreditUsageLogsFromPointOfSale,
|
|
2586
|
+
GetSubscriptionBillingOverview,
|
|
2587
|
+
GetSubscriptionBillingPendingVerification,
|
|
2588
|
+
GetSubscriptionConsumptionDetails,
|
|
2589
|
+
GetSubscriptionConsumptionList,
|
|
2590
|
+
GetSubscriptionConsumptionRenewalDetails,
|
|
2591
|
+
GetSubscriptionConsumptionRenewals,
|
|
2592
|
+
GetSubscriptionConsumptionRenewalsFromSubscriptionConsumption,
|
|
2593
|
+
GetSubscriptionDetails,
|
|
2594
|
+
GetSubscriptionInfiniteDetails,
|
|
2595
|
+
GetSubscriptionInfiniteList,
|
|
2596
|
+
GetSubscriptionOverviewFromPointOfSale,
|
|
2597
|
+
GetSubscriptionPlanCatalog,
|
|
2598
|
+
GetSubscriptionPlanCatalogDetails,
|
|
2599
|
+
GetSubscriptionPlanDetails,
|
|
2600
|
+
GetSubscriptionPlans,
|
|
2601
|
+
GetSubscriptionPriceDetails,
|
|
2602
|
+
GetSubscriptionPrices,
|
|
2603
|
+
GetSubscriptionPurchaseDetails,
|
|
2604
|
+
GetSubscriptionPurchases,
|
|
2605
|
+
GetSubscriptionPurchasesFromPointOfSale,
|
|
2606
|
+
GetSubscriptionTimeBasedDetails,
|
|
2607
|
+
GetSubscriptionTimeBasedList,
|
|
2608
|
+
GetSubscriptionTimeBasedRenewalDetails,
|
|
2609
|
+
GetSubscriptionTimeBasedRenewals,
|
|
2610
|
+
GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased,
|
|
2611
|
+
GetSubscriptions,
|
|
2612
|
+
GetSubscriptionsFromPointOfSale,
|
|
2613
|
+
PaySubscriptionConsumptionRenewal,
|
|
2614
|
+
PaySubscriptionPurchase,
|
|
2615
|
+
PaySubscriptionTimeBasedRenewal,
|
|
2616
|
+
RefundSubscriptionConsumptionRenewal,
|
|
2617
|
+
RefundSubscriptionPurchase,
|
|
2618
|
+
RefundSubscriptionTimeBasedRenewal,
|
|
2619
|
+
ResolveSubscriptionConsumptionRenewalPayment,
|
|
2620
|
+
ResolveSubscriptionPurchasePayment,
|
|
2621
|
+
ResolveSubscriptionTimeBasedRenewalPayment,
|
|
2622
|
+
RetrySubscriptionConsumptionRenewalPayment,
|
|
2623
|
+
RetrySubscriptionPurchasePayment,
|
|
2624
|
+
RetrySubscriptionTimeBasedRenewalPayment,
|
|
2625
|
+
UpdateSubscription,
|
|
2626
|
+
UpdateSubscriptionConsumption,
|
|
2627
|
+
UpdateSubscriptionPlan,
|
|
2628
|
+
UpdateSubscriptionPrice,
|
|
2629
|
+
UpdateSubscriptionTimeBased,
|
|
2630
|
+
adjustSubscriptionConsumptionCreditsInputSchema,
|
|
2631
|
+
adjustSubscriptionConsumptionCreditsResponseSchema,
|
|
2632
|
+
adjustableCreditTransactionTypeSchema,
|
|
2633
|
+
adjustableCreditTransactionTypes,
|
|
2634
|
+
assignSubscriptionPlanInputSchema,
|
|
2635
|
+
assignSubscriptionPlanResponseSchema,
|
|
2636
|
+
calculateSubscriptionPlanPurchaseQuoteInputSchema,
|
|
2637
|
+
calculateSubscriptionPlanPurchaseQuoteResponseSchema,
|
|
2638
|
+
cancelSubscriptionConsumptionRenewalInputSchema,
|
|
2639
|
+
cancelSubscriptionConsumptionRenewalResponseSchema,
|
|
2640
|
+
cancelSubscriptionPurchaseInputSchema,
|
|
2641
|
+
cancelSubscriptionPurchaseResponseSchema,
|
|
2642
|
+
cancelSubscriptionTimeBasedRenewalInputSchema,
|
|
2643
|
+
cancelSubscriptionTimeBasedRenewalResponseSchema,
|
|
2644
|
+
createSubscriptionConsumptionInputSchema,
|
|
2645
|
+
createSubscriptionConsumptionRenewalInputSchema,
|
|
2646
|
+
createSubscriptionConsumptionRenewalResponseSchema,
|
|
2647
|
+
createSubscriptionConsumptionResponseSchema,
|
|
2648
|
+
createSubscriptionInfiniteInputSchema,
|
|
2649
|
+
createSubscriptionInfiniteResponseSchema,
|
|
2650
|
+
createSubscriptionPlanInputSchema,
|
|
2651
|
+
createSubscriptionPlanResponseSchema,
|
|
2652
|
+
createSubscriptionPriceInputSchema,
|
|
2653
|
+
createSubscriptionPriceResponseSchema,
|
|
2654
|
+
createSubscriptionPurchaseInputSchema,
|
|
2655
|
+
createSubscriptionPurchaseResponseSchema,
|
|
2656
|
+
createSubscriptionTimeBasedInputSchema,
|
|
2657
|
+
createSubscriptionTimeBasedRenewalInputSchema,
|
|
2658
|
+
createSubscriptionTimeBasedRenewalResponseSchema,
|
|
2659
|
+
createSubscriptionTimeBasedResponseSchema,
|
|
2660
|
+
creditTransactionTypeSchema,
|
|
2661
|
+
creditTransactionTypes,
|
|
2662
|
+
creditUsageLogDetailsSchema,
|
|
2663
|
+
creditUsageLogIriSchema,
|
|
2664
|
+
creditUsageLogNullableIriSchema,
|
|
2665
|
+
creditUsageLogSchema,
|
|
2666
|
+
creditUsageLogsQuerySchema,
|
|
2667
|
+
deleteCreditUsageLogInputSchema,
|
|
2668
|
+
deleteCreditUsageLogResponseSchema,
|
|
2669
|
+
deleteSubscriptionConsumptionInputSchema,
|
|
2670
|
+
deleteSubscriptionConsumptionRenewalInputSchema,
|
|
2671
|
+
deleteSubscriptionConsumptionRenewalResponseSchema,
|
|
2672
|
+
deleteSubscriptionConsumptionResponseSchema,
|
|
2673
|
+
deleteSubscriptionInfiniteInputSchema,
|
|
2674
|
+
deleteSubscriptionInfiniteResponseSchema,
|
|
2675
|
+
deleteSubscriptionInputSchema,
|
|
2676
|
+
deleteSubscriptionPlanInputSchema,
|
|
2677
|
+
deleteSubscriptionPlanResponseSchema,
|
|
2678
|
+
deleteSubscriptionPriceInputSchema,
|
|
2679
|
+
deleteSubscriptionPriceResponseSchema,
|
|
2680
|
+
deleteSubscriptionResponseSchema,
|
|
2681
|
+
deleteSubscriptionTimeBasedInputSchema,
|
|
2682
|
+
deleteSubscriptionTimeBasedRenewalInputSchema,
|
|
2683
|
+
deleteSubscriptionTimeBasedRenewalResponseSchema,
|
|
2684
|
+
deleteSubscriptionTimeBasedResponseSchema,
|
|
2685
|
+
getCreditUsageLogDetailsInputSchema,
|
|
2686
|
+
getCreditUsageLogDetailsResponseSchema,
|
|
2687
|
+
getCreditUsageLogsFromPointOfSaleInputSchema,
|
|
2688
|
+
getCreditUsageLogsFromPointOfSaleResponseSchema,
|
|
2689
|
+
getCreditUsageLogsInputSchema,
|
|
2690
|
+
getCreditUsageLogsResponseSchema,
|
|
2691
|
+
getSubscriptionBillingOverviewInputSchema,
|
|
2692
|
+
getSubscriptionBillingOverviewResponseSchema,
|
|
2693
|
+
getSubscriptionBillingPendingVerificationInputSchema,
|
|
2694
|
+
getSubscriptionBillingPendingVerificationResponseSchema,
|
|
2695
|
+
getSubscriptionConsumptionDetailsInputSchema,
|
|
2696
|
+
getSubscriptionConsumptionDetailsResponseSchema,
|
|
2697
|
+
getSubscriptionConsumptionListInputSchema,
|
|
2698
|
+
getSubscriptionConsumptionListResponseSchema,
|
|
2699
|
+
getSubscriptionConsumptionRenewalDetailsInputSchema,
|
|
2700
|
+
getSubscriptionConsumptionRenewalDetailsResponseSchema,
|
|
2701
|
+
getSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInputSchema,
|
|
2702
|
+
getSubscriptionConsumptionRenewalsInputSchema,
|
|
2703
|
+
getSubscriptionConsumptionRenewalsResponseSchema,
|
|
2704
|
+
getSubscriptionDetailsInputSchema,
|
|
2705
|
+
getSubscriptionDetailsResponseSchema,
|
|
2706
|
+
getSubscriptionInfiniteDetailsInputSchema,
|
|
2707
|
+
getSubscriptionInfiniteDetailsResponseSchema,
|
|
2708
|
+
getSubscriptionInfiniteListInputSchema,
|
|
2709
|
+
getSubscriptionInfiniteListResponseSchema,
|
|
2710
|
+
getSubscriptionOverviewFromPointOfSaleInputSchema,
|
|
2711
|
+
getSubscriptionOverviewFromPointOfSaleResponseSchema,
|
|
2712
|
+
getSubscriptionPlanCatalogDetailsInputSchema,
|
|
2713
|
+
getSubscriptionPlanCatalogDetailsResponseSchema,
|
|
2714
|
+
getSubscriptionPlanCatalogInputSchema,
|
|
2715
|
+
getSubscriptionPlanCatalogResponseSchema,
|
|
2716
|
+
getSubscriptionPlanDetailsInputSchema,
|
|
2717
|
+
getSubscriptionPlanDetailsResponseSchema,
|
|
2718
|
+
getSubscriptionPlansInputSchema,
|
|
2719
|
+
getSubscriptionPlansResponseSchema,
|
|
2720
|
+
getSubscriptionPriceDetailsInputSchema,
|
|
2721
|
+
getSubscriptionPriceDetailsResponseSchema,
|
|
2722
|
+
getSubscriptionPricesInputSchema,
|
|
2723
|
+
getSubscriptionPricesResponseSchema,
|
|
2724
|
+
getSubscriptionPurchaseDetailsInputSchema,
|
|
2725
|
+
getSubscriptionPurchaseDetailsResponseSchema,
|
|
2726
|
+
getSubscriptionPurchasesFromPointOfSaleInputSchema,
|
|
2727
|
+
getSubscriptionPurchasesInputSchema,
|
|
2728
|
+
getSubscriptionPurchasesResponseSchema,
|
|
2729
|
+
getSubscriptionTimeBasedDetailsInputSchema,
|
|
2730
|
+
getSubscriptionTimeBasedDetailsResponseSchema,
|
|
2731
|
+
getSubscriptionTimeBasedListInputSchema,
|
|
2732
|
+
getSubscriptionTimeBasedListResponseSchema,
|
|
2733
|
+
getSubscriptionTimeBasedRenewalDetailsInputSchema,
|
|
2734
|
+
getSubscriptionTimeBasedRenewalDetailsResponseSchema,
|
|
2735
|
+
getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema,
|
|
2736
|
+
getSubscriptionTimeBasedRenewalsInputSchema,
|
|
2737
|
+
getSubscriptionTimeBasedRenewalsResponseSchema,
|
|
2738
|
+
getSubscriptionsFromPointOfSaleInputSchema,
|
|
2739
|
+
getSubscriptionsFromPointOfSaleResponseSchema,
|
|
2740
|
+
getSubscriptionsInputSchema,
|
|
2741
|
+
getSubscriptionsResponseSchema,
|
|
2742
|
+
manageSubscriptionBillingInputSchema,
|
|
2743
|
+
paySubscriptionConsumptionRenewalInputSchema,
|
|
2744
|
+
paySubscriptionConsumptionRenewalResponseSchema,
|
|
2745
|
+
paySubscriptionPurchaseInputSchema,
|
|
2746
|
+
paySubscriptionPurchaseResponseSchema,
|
|
2747
|
+
paySubscriptionRenewalInputSchema,
|
|
2748
|
+
paySubscriptionTimeBasedRenewalInputSchema,
|
|
2749
|
+
paySubscriptionTimeBasedRenewalResponseSchema,
|
|
2750
|
+
paymentIriSchema,
|
|
2751
|
+
paymentNullableIriSchema,
|
|
2752
|
+
paymentStatusSchema,
|
|
2753
|
+
paymentStatuses,
|
|
2754
|
+
refundSubscriptionConsumptionRenewalInputSchema,
|
|
2755
|
+
refundSubscriptionConsumptionRenewalResponseSchema,
|
|
2756
|
+
refundSubscriptionPurchaseInputSchema,
|
|
2757
|
+
refundSubscriptionPurchaseResponseSchema,
|
|
2758
|
+
refundSubscriptionTimeBasedRenewalInputSchema,
|
|
2759
|
+
refundSubscriptionTimeBasedRenewalResponseSchema,
|
|
2760
|
+
renewalStatusSchema,
|
|
2761
|
+
renewalStatuses,
|
|
2762
|
+
resolvableRenewalPaymentStatusSchema,
|
|
2763
|
+
resolvableRenewalPaymentStatuses,
|
|
2764
|
+
resolveSubscriptionConsumptionRenewalPaymentInputSchema,
|
|
2765
|
+
resolveSubscriptionConsumptionRenewalPaymentResponseSchema,
|
|
2766
|
+
resolveSubscriptionPurchasePaymentInputSchema,
|
|
2767
|
+
resolveSubscriptionPurchasePaymentResponseSchema,
|
|
2768
|
+
resolveSubscriptionRenewalPaymentInputSchema,
|
|
2769
|
+
resolveSubscriptionTimeBasedRenewalPaymentInputSchema,
|
|
2770
|
+
resolveSubscriptionTimeBasedRenewalPaymentResponseSchema,
|
|
2771
|
+
retrySubscriptionConsumptionRenewalPaymentInputSchema,
|
|
2772
|
+
retrySubscriptionConsumptionRenewalPaymentResponseSchema,
|
|
2773
|
+
retrySubscriptionPurchasePaymentInputSchema,
|
|
2774
|
+
retrySubscriptionPurchasePaymentResponseSchema,
|
|
2775
|
+
retrySubscriptionTimeBasedRenewalPaymentInputSchema,
|
|
2776
|
+
retrySubscriptionTimeBasedRenewalPaymentResponseSchema,
|
|
2777
|
+
subscriptionAvailabilityReasonSchema,
|
|
2778
|
+
subscriptionAvailabilityReasons,
|
|
2779
|
+
subscriptionBillingOverviewResponseSchema,
|
|
2780
|
+
subscriptionBillingPendingVerificationItemSchema,
|
|
2781
|
+
subscriptionBillingPendingVerificationKindSchema,
|
|
2782
|
+
subscriptionBillingPendingVerificationKinds,
|
|
2783
|
+
subscriptionBillingPendingVerificationPaymentSchema,
|
|
2784
|
+
subscriptionBillingPendingVerificationPlanSchema,
|
|
2785
|
+
subscriptionBillingPendingVerificationPointOfSaleSchema,
|
|
2786
|
+
subscriptionBillingPendingVerificationQuerySchema,
|
|
2787
|
+
subscriptionBillingPendingVerificationResolvedBySchema,
|
|
2788
|
+
subscriptionBillingPendingVerificationSubjectSchema,
|
|
2789
|
+
subscriptionBillingPendingVerificationSubscriptionSchema,
|
|
2790
|
+
subscriptionConsumptionDetailsSchema,
|
|
2791
|
+
subscriptionConsumptionIriSchema,
|
|
2792
|
+
subscriptionConsumptionNullableIriSchema,
|
|
2793
|
+
subscriptionConsumptionQuerySchema,
|
|
2794
|
+
subscriptionConsumptionRenewalDetailsSchema,
|
|
2795
|
+
subscriptionConsumptionRenewalIriSchema,
|
|
2796
|
+
subscriptionConsumptionRenewalNullableIriSchema,
|
|
2797
|
+
subscriptionConsumptionRenewalSchema,
|
|
2798
|
+
subscriptionConsumptionRenewalsQuerySchema,
|
|
2799
|
+
subscriptionConsumptionSchema,
|
|
2800
|
+
subscriptionDetailsSchema,
|
|
2801
|
+
subscriptionInfiniteDetailsSchema,
|
|
2802
|
+
subscriptionInfiniteIriSchema,
|
|
2803
|
+
subscriptionInfiniteNullableIriSchema,
|
|
2804
|
+
subscriptionInfiniteSchema,
|
|
2805
|
+
subscriptionIriSchema,
|
|
2806
|
+
subscriptionNullableIriSchema,
|
|
2807
|
+
subscriptionOperationQuoteSchema,
|
|
2808
|
+
subscriptionOverviewPlanSchema,
|
|
2809
|
+
subscriptionOverviewResponseSchema,
|
|
2810
|
+
subscriptionOverviewSubscriptionSchema,
|
|
2811
|
+
subscriptionPaymentMethodSchema,
|
|
2812
|
+
subscriptionPaymentMethods,
|
|
2813
|
+
subscriptionPlanIriSchema,
|
|
2814
|
+
subscriptionPlanNullableIriSchema,
|
|
2815
|
+
subscriptionPlanPriceOptionSchema,
|
|
2816
|
+
subscriptionPlanSchema,
|
|
2817
|
+
subscriptionPlanSummarySchema,
|
|
2818
|
+
subscriptionPlansQuerySchema,
|
|
2819
|
+
subscriptionPriceIriSchema,
|
|
2820
|
+
subscriptionPriceNullableIriSchema,
|
|
2821
|
+
subscriptionPriceSchema,
|
|
2822
|
+
subscriptionPricesQuerySchema,
|
|
2823
|
+
subscriptionPurchaseDetailsSchema,
|
|
2824
|
+
subscriptionPurchaseIriSchema,
|
|
2825
|
+
subscriptionPurchaseLifecycleResponseSchema,
|
|
2826
|
+
subscriptionPurchaseLifecycleSubscriptionSchema,
|
|
2827
|
+
subscriptionPurchaseNullableIriSchema,
|
|
2828
|
+
subscriptionPurchaseQuoteSchema,
|
|
2829
|
+
subscriptionPurchaseSchema,
|
|
2830
|
+
subscriptionPurchaseStatusSchema,
|
|
2831
|
+
subscriptionPurchaseStatuses,
|
|
2832
|
+
subscriptionPurchasesQuerySchema,
|
|
2833
|
+
subscriptionQuerySchema,
|
|
2834
|
+
subscriptionRenewalLifecycleResponseSchema,
|
|
2835
|
+
subscriptionRenewalLifecycleSubscriptionSchema,
|
|
2836
|
+
subscriptionRenewalPaymentInfoSchema,
|
|
2837
|
+
subscriptionSchema,
|
|
2838
|
+
subscriptionStatusSchema,
|
|
2839
|
+
subscriptionStatuses,
|
|
2840
|
+
subscriptionTimeBasedDetailsSchema,
|
|
2841
|
+
subscriptionTimeBasedIriSchema,
|
|
2842
|
+
subscriptionTimeBasedNullableIriSchema,
|
|
2843
|
+
subscriptionTimeBasedQuerySchema,
|
|
2844
|
+
subscriptionTimeBasedRenewalDetailsSchema,
|
|
2845
|
+
subscriptionTimeBasedRenewalIriSchema,
|
|
2846
|
+
subscriptionTimeBasedRenewalNullableIriSchema,
|
|
2847
|
+
subscriptionTimeBasedRenewalSchema,
|
|
2848
|
+
subscriptionTimeBasedRenewalsQuerySchema,
|
|
2849
|
+
subscriptionTimeBasedSchema,
|
|
2850
|
+
subscriptionTypeSchema,
|
|
2851
|
+
subscriptionTypes,
|
|
2852
|
+
updateSubscriptionConsumptionInputSchema,
|
|
2853
|
+
updateSubscriptionConsumptionResponseSchema,
|
|
2854
|
+
updateSubscriptionInputSchema,
|
|
2855
|
+
updateSubscriptionPlanInputSchema,
|
|
2856
|
+
updateSubscriptionPlanResponseSchema,
|
|
2857
|
+
updateSubscriptionPriceInputSchema,
|
|
2858
|
+
updateSubscriptionPriceResponseSchema,
|
|
2859
|
+
updateSubscriptionResponseSchema,
|
|
2860
|
+
updateSubscriptionTimeBasedInputSchema,
|
|
2861
|
+
updateSubscriptionTimeBasedResponseSchema,
|
|
2862
|
+
writableSubscriptionCommonSchema,
|
|
2863
|
+
writableSubscriptionConsumptionRenewalSchema,
|
|
2864
|
+
writableSubscriptionConsumptionSchema,
|
|
2865
|
+
writableSubscriptionInfiniteSchema,
|
|
2866
|
+
writableSubscriptionPlanSchema,
|
|
2867
|
+
writableSubscriptionPriceSchema,
|
|
2868
|
+
writableSubscriptionPurchaseSchema,
|
|
2869
|
+
writableSubscriptionTimeBasedRenewalSchema,
|
|
2870
|
+
writableSubscriptionTimeBasedSchema
|
|
2871
|
+
});
|