@salable/sdk 1.0.0-beta.1
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/LICENSE +201 -0
- package/README.md +93 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +19915 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +19917 -0
- package/dist/index.js.map +1 -0
- package/dist/sdk/api/apiKeys/index.d.ts +66 -0
- package/dist/sdk/api/apiKeys/item/index.d.ts +48 -0
- package/dist/sdk/api/cartItems/index.d.ts +131 -0
- package/dist/sdk/api/cartItems/item/index.d.ts +31 -0
- package/dist/sdk/api/carts/batch/index.d.ts +36 -0
- package/dist/sdk/api/carts/index.d.ts +88 -0
- package/dist/sdk/api/carts/item/checkout/index.d.ts +35 -0
- package/dist/sdk/api/carts/item/index.d.ts +78 -0
- package/dist/sdk/api/checkout/index.d.ts +360 -0
- package/dist/sdk/api/currencyOptions/index.d.ts +56 -0
- package/dist/sdk/api/currencyOptions/item/index.d.ts +42 -0
- package/dist/sdk/api/destinations/index.d.ts +52 -0
- package/dist/sdk/api/destinations/item/index.d.ts +58 -0
- package/dist/sdk/api/entitlements/check/index.d.ts +40 -0
- package/dist/sdk/api/entitlements/index.d.ts +74 -0
- package/dist/sdk/api/entitlements/item/index.d.ts +67 -0
- package/dist/sdk/api/eventAttempts/index.d.ts +57 -0
- package/dist/sdk/api/events/index.d.ts +60 -0
- package/dist/sdk/api/events/item/index.d.ts +42 -0
- package/dist/sdk/api/grantees/index.d.ts +68 -0
- package/dist/sdk/api/grantees/item/index.d.ts +77 -0
- package/dist/sdk/api/groups/index.d.ts +73 -0
- package/dist/sdk/api/groups/item/grantees/index.d.ts +53 -0
- package/dist/sdk/api/groups/item/index.d.ts +88 -0
- package/dist/sdk/api/index.d.ts +164 -0
- package/dist/sdk/api/lineItems/index.d.ts +51 -0
- package/dist/sdk/api/lineItems/item/archive/index.d.ts +32 -0
- package/dist/sdk/api/lineItems/item/index.d.ts +109 -0
- package/dist/sdk/api/memberships/index.d.ts +52 -0
- package/dist/sdk/api/memberships/item/index.d.ts +42 -0
- package/dist/sdk/api/meters/index.d.ts +39 -0
- package/dist/sdk/api/owners/index.d.ts +51 -0
- package/dist/sdk/api/owners/item/index.d.ts +63 -0
- package/dist/sdk/api/paymentIntegrations/index.d.ts +91 -0
- package/dist/sdk/api/paymentIntegrations/item/index.d.ts +40 -0
- package/dist/sdk/api/paymentIntegrations/item/onboarding/index.d.ts +32 -0
- package/dist/sdk/api/plans/index.d.ts +236 -0
- package/dist/sdk/api/plans/item/archive/index.d.ts +32 -0
- package/dist/sdk/api/plans/item/index.d.ts +97 -0
- package/dist/sdk/api/plans/save/index.d.ts +33 -0
- package/dist/sdk/api/prices/index.d.ts +49 -0
- package/dist/sdk/api/prices/item/archive/index.d.ts +32 -0
- package/dist/sdk/api/prices/item/index.d.ts +57 -0
- package/dist/sdk/api/products/exportEscaped/index.d.ts +21 -0
- package/dist/sdk/api/products/exportEscaped/item/index.d.ts +32 -0
- package/dist/sdk/api/products/importEscaped/index.d.ts +32 -0
- package/dist/sdk/api/products/index.d.ts +92 -0
- package/dist/sdk/api/products/item/archive/index.d.ts +32 -0
- package/dist/sdk/api/products/item/index.d.ts +90 -0
- package/dist/sdk/api/receipts/index.d.ts +59 -0
- package/dist/sdk/api/receipts/item/index.d.ts +43 -0
- package/dist/sdk/api/signingKeys/index.d.ts +31 -0
- package/dist/sdk/api/stripe/accountSession/index.d.ts +31 -0
- package/dist/sdk/api/stripe/index.d.ts +19 -0
- package/dist/sdk/api/subscriptionPlanLineItems/index.d.ts +21 -0
- package/dist/sdk/api/subscriptionPlanLineItems/item/index.d.ts +86 -0
- package/dist/sdk/api/subscriptionPlanLineItems/item/sync/index.d.ts +31 -0
- package/dist/sdk/api/subscriptionPlans/index.d.ts +447 -0
- package/dist/sdk/api/subscriptionPlans/item/index.d.ts +1138 -0
- package/dist/sdk/api/subscriptionPlans/item/seats/index.d.ts +58 -0
- package/dist/sdk/api/subscriptions/batch/index.d.ts +35 -0
- package/dist/sdk/api/subscriptions/index.d.ts +312 -0
- package/dist/sdk/api/subscriptions/item/autoRenew/index.d.ts +43 -0
- package/dist/sdk/api/subscriptions/item/cancel/index.d.ts +32 -0
- package/dist/sdk/api/subscriptions/item/index.d.ts +90 -0
- package/dist/sdk/api/subscriptions/item/invoices/index.d.ts +33 -0
- package/dist/sdk/api/subscriptions/item/items/index.d.ts +34 -0
- package/dist/sdk/api/subscriptions/item/portal/index.d.ts +34 -0
- package/dist/sdk/api/tierTags/index.d.ts +58 -0
- package/dist/sdk/api/tiers/index.d.ts +50 -0
- package/dist/sdk/api/tiers/item/index.d.ts +31 -0
- package/dist/sdk/api/usage/index.d.ts +19 -0
- package/dist/sdk/api/usage/record/index.d.ts +33 -0
- package/dist/sdk/api/usageRecords/index.d.ts +55 -0
- package/dist/sdk/api/webhooks/index.d.ts +72 -0
- package/dist/sdk/api/webhooks/item/index.d.ts +77 -0
- package/dist/sdk/models/index.d.ts +16552 -0
- package/dist/sdk/salable.d.ts +24 -0
- package/package.json +48 -0
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
import { type AdditionalDataHolder, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
2
|
+
export interface CheckoutPostRequestBody extends Parsable {
|
|
3
|
+
/**
|
|
4
|
+
* Whether to allow customers to enter promotional codes during checkout. Defaults to product setting if not specified.
|
|
5
|
+
*/
|
|
6
|
+
allowPromoCodes?: boolean | null;
|
|
7
|
+
/**
|
|
8
|
+
* Whether to enable automatic tax calculation based on customer location. Defaults to product setting if not specified.
|
|
9
|
+
*/
|
|
10
|
+
automaticTax?: boolean | null;
|
|
11
|
+
/**
|
|
12
|
+
* The URL to redirect the customer to if they cancel the checkout. If not provided, falls back to the product default setting.
|
|
13
|
+
*/
|
|
14
|
+
cancelUrl?: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* Controls how saved payment methods are handled. Options: "always" (always save), "choice" (customer chooses), "none" (never save). Defaults to product setting if not specified.
|
|
17
|
+
*/
|
|
18
|
+
cardPrefillPreference?: CheckoutPostRequestBody_cardPrefillPreference | null;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to collect the customer billing address during checkout. Defaults to product setting if not specified.
|
|
21
|
+
*/
|
|
22
|
+
collectBillingAddress?: boolean | null;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to collect the customer shipping address during checkout. Defaults to product setting if not specified.
|
|
25
|
+
*/
|
|
26
|
+
collectShippingAddress?: boolean | null;
|
|
27
|
+
/**
|
|
28
|
+
* The three-letter ISO currency code (e.g., USD, GBP, EUR). If not provided the checkout will use geolocation. For geolocation to work all line item prices on the plan must have the same default currency.
|
|
29
|
+
*/
|
|
30
|
+
currency?: CheckoutPostRequestBody_currency | null;
|
|
31
|
+
/**
|
|
32
|
+
* The email address of the customer. If the owner already exists in the system and does not have a Stripe email it will be used to either create or update the Stripe customer record.
|
|
33
|
+
*/
|
|
34
|
+
email?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* The unique identifier for the grantee who will receive access. Can be an individual grantee ID or a group ID (starting with grp_). If not provided, a new group will be created for the owner.
|
|
37
|
+
*/
|
|
38
|
+
grantee?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* The billing interval for recurring charges (e.g., month, year). Required for subscription mode. Set to null for one-time payments.
|
|
41
|
+
*/
|
|
42
|
+
interval?: CheckoutPostRequestBody_interval | null;
|
|
43
|
+
/**
|
|
44
|
+
* The number of intervals between billings. For example, intervalCount of 3 with interval of month represents billing every 3 months.
|
|
45
|
+
*/
|
|
46
|
+
intervalCount?: number | null;
|
|
47
|
+
/**
|
|
48
|
+
* Optionally set config for each line item by using the line item slug as the key in the object.
|
|
49
|
+
*/
|
|
50
|
+
metadata?: CheckoutPostRequestBody_metadata | null;
|
|
51
|
+
/**
|
|
52
|
+
* The unique identifier for the owner who will purchase the subscription
|
|
53
|
+
*/
|
|
54
|
+
owner?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The unique identifier of the plan to checkout
|
|
57
|
+
*/
|
|
58
|
+
planId?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* The URL to redirect the customer to after successful payment. If not provided, falls back to the product default setting.
|
|
61
|
+
*/
|
|
62
|
+
successUrl?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* The number of days for the trial period on subscription. If not provided, falls back to the plan default trial period.
|
|
65
|
+
*/
|
|
66
|
+
trialPeriodDays?: number | null;
|
|
67
|
+
}
|
|
68
|
+
export type CheckoutPostRequestBody_cardPrefillPreference = (typeof CheckoutPostRequestBody_cardPrefillPreferenceObject)[keyof typeof CheckoutPostRequestBody_cardPrefillPreferenceObject];
|
|
69
|
+
export type CheckoutPostRequestBody_currency = (typeof CheckoutPostRequestBody_currencyObject)[keyof typeof CheckoutPostRequestBody_currencyObject];
|
|
70
|
+
export type CheckoutPostRequestBody_interval = (typeof CheckoutPostRequestBody_intervalObject)[keyof typeof CheckoutPostRequestBody_intervalObject];
|
|
71
|
+
/**
|
|
72
|
+
* Optionally set config for each line item by using the line item slug as the key in the object.
|
|
73
|
+
*/
|
|
74
|
+
export interface CheckoutPostRequestBody_metadata extends AdditionalDataHolder, Parsable {
|
|
75
|
+
}
|
|
76
|
+
export interface CheckoutPostResponse extends AdditionalDataHolder, Parsable {
|
|
77
|
+
/**
|
|
78
|
+
* The data property
|
|
79
|
+
*/
|
|
80
|
+
data?: CheckoutPostResponse_data | null;
|
|
81
|
+
/**
|
|
82
|
+
* The type property
|
|
83
|
+
*/
|
|
84
|
+
type?: string | null;
|
|
85
|
+
}
|
|
86
|
+
export interface CheckoutPostResponse_data extends AdditionalDataHolder, Parsable {
|
|
87
|
+
/**
|
|
88
|
+
* The url property
|
|
89
|
+
*/
|
|
90
|
+
url?: string | null;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Builds and executes requests for operations under /api/checkout
|
|
94
|
+
*/
|
|
95
|
+
export interface CheckoutRequestBuilder extends BaseRequestBuilder<CheckoutRequestBuilder> {
|
|
96
|
+
/**
|
|
97
|
+
* Generate Quick Checkout Link
|
|
98
|
+
* @param body The request body
|
|
99
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
100
|
+
* @returns {Promise<CheckoutPostResponse>}
|
|
101
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
102
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
103
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
104
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
105
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
106
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
107
|
+
*/
|
|
108
|
+
post(body: CheckoutPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CheckoutPostResponse | undefined>;
|
|
109
|
+
/**
|
|
110
|
+
* Generate Quick Checkout Link
|
|
111
|
+
* @param body The request body
|
|
112
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
113
|
+
* @returns {RequestInformation}
|
|
114
|
+
*/
|
|
115
|
+
toPostRequestInformation(body: CheckoutPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
119
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
120
|
+
* @returns {CheckoutPostRequestBody_metadata}
|
|
121
|
+
*/
|
|
122
|
+
export declare function createCheckoutPostRequestBody_metadataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
123
|
+
/**
|
|
124
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
125
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
126
|
+
* @returns {CheckoutPostRequestBody}
|
|
127
|
+
*/
|
|
128
|
+
export declare function createCheckoutPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
129
|
+
/**
|
|
130
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
131
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
132
|
+
* @returns {CheckoutPostResponse_data}
|
|
133
|
+
*/
|
|
134
|
+
export declare function createCheckoutPostResponse_dataFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
135
|
+
/**
|
|
136
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
137
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
138
|
+
* @returns {CheckoutPostResponse}
|
|
139
|
+
*/
|
|
140
|
+
export declare function createCheckoutPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
141
|
+
/**
|
|
142
|
+
* The deserialization information for the current model
|
|
143
|
+
* @param CheckoutPostRequestBody The instance to deserialize into.
|
|
144
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
145
|
+
*/
|
|
146
|
+
export declare function deserializeIntoCheckoutPostRequestBody(checkoutPostRequestBody?: Partial<CheckoutPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
|
|
147
|
+
/**
|
|
148
|
+
* The deserialization information for the current model
|
|
149
|
+
* @param CheckoutPostRequestBody_metadata The instance to deserialize into.
|
|
150
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
151
|
+
*/
|
|
152
|
+
export declare function deserializeIntoCheckoutPostRequestBody_metadata(checkoutPostRequestBody_metadata?: Partial<CheckoutPostRequestBody_metadata> | undefined): Record<string, (node: ParseNode) => void>;
|
|
153
|
+
/**
|
|
154
|
+
* The deserialization information for the current model
|
|
155
|
+
* @param CheckoutPostResponse The instance to deserialize into.
|
|
156
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
157
|
+
*/
|
|
158
|
+
export declare function deserializeIntoCheckoutPostResponse(checkoutPostResponse?: Partial<CheckoutPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
159
|
+
/**
|
|
160
|
+
* The deserialization information for the current model
|
|
161
|
+
* @param CheckoutPostResponse_data The instance to deserialize into.
|
|
162
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
163
|
+
*/
|
|
164
|
+
export declare function deserializeIntoCheckoutPostResponse_data(checkoutPostResponse_data?: Partial<CheckoutPostResponse_data> | undefined): Record<string, (node: ParseNode) => void>;
|
|
165
|
+
/**
|
|
166
|
+
* Serializes information the current object
|
|
167
|
+
* @param CheckoutPostRequestBody The instance to serialize from.
|
|
168
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
169
|
+
* @param writer Serialization writer to use to serialize this model
|
|
170
|
+
*/
|
|
171
|
+
export declare function serializeCheckoutPostRequestBody(writer: SerializationWriter, checkoutPostRequestBody?: Partial<CheckoutPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
172
|
+
/**
|
|
173
|
+
* Serializes information the current object
|
|
174
|
+
* @param CheckoutPostRequestBody_metadata The instance to serialize from.
|
|
175
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
176
|
+
* @param writer Serialization writer to use to serialize this model
|
|
177
|
+
*/
|
|
178
|
+
export declare function serializeCheckoutPostRequestBody_metadata(writer: SerializationWriter, checkoutPostRequestBody_metadata?: Partial<CheckoutPostRequestBody_metadata> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
179
|
+
/**
|
|
180
|
+
* Serializes information the current object
|
|
181
|
+
* @param CheckoutPostResponse The instance to serialize from.
|
|
182
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
183
|
+
* @param writer Serialization writer to use to serialize this model
|
|
184
|
+
*/
|
|
185
|
+
export declare function serializeCheckoutPostResponse(writer: SerializationWriter, checkoutPostResponse?: Partial<CheckoutPostResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
186
|
+
/**
|
|
187
|
+
* Serializes information the current object
|
|
188
|
+
* @param CheckoutPostResponse_data The instance to serialize from.
|
|
189
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
190
|
+
* @param writer Serialization writer to use to serialize this model
|
|
191
|
+
*/
|
|
192
|
+
export declare function serializeCheckoutPostResponse_data(writer: SerializationWriter, checkoutPostResponse_data?: Partial<CheckoutPostResponse_data> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
193
|
+
/**
|
|
194
|
+
* Uri template for the request builder.
|
|
195
|
+
*/
|
|
196
|
+
export declare const CheckoutRequestBuilderUriTemplate = "{+baseurl}/api/checkout";
|
|
197
|
+
/**
|
|
198
|
+
* Controls how saved payment methods are handled. Options: "always" (always save), "choice" (customer chooses), "none" (never save). Defaults to product setting if not specified.
|
|
199
|
+
*/
|
|
200
|
+
export declare const CheckoutPostRequestBody_cardPrefillPreferenceObject: {
|
|
201
|
+
readonly None: "none";
|
|
202
|
+
readonly Always: "always";
|
|
203
|
+
readonly Choice: "choice";
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* The three-letter ISO currency code (e.g., USD, GBP, EUR). If not provided the checkout will use geolocation. For geolocation to work all line item prices on the plan must have the same default currency.
|
|
207
|
+
*/
|
|
208
|
+
export declare const CheckoutPostRequestBody_currencyObject: {
|
|
209
|
+
readonly USD: "USD";
|
|
210
|
+
readonly AED: "AED";
|
|
211
|
+
readonly AFN: "AFN";
|
|
212
|
+
readonly ALL: "ALL";
|
|
213
|
+
readonly AMD: "AMD";
|
|
214
|
+
readonly ANG: "ANG";
|
|
215
|
+
readonly AOA: "AOA";
|
|
216
|
+
readonly ARS: "ARS";
|
|
217
|
+
readonly AUD: "AUD";
|
|
218
|
+
readonly AWG: "AWG";
|
|
219
|
+
readonly AZN: "AZN";
|
|
220
|
+
readonly BAM: "BAM";
|
|
221
|
+
readonly BBD: "BBD";
|
|
222
|
+
readonly BDT: "BDT";
|
|
223
|
+
readonly BGN: "BGN";
|
|
224
|
+
readonly BIF: "BIF";
|
|
225
|
+
readonly BMD: "BMD";
|
|
226
|
+
readonly BND: "BND";
|
|
227
|
+
readonly BOB: "BOB";
|
|
228
|
+
readonly BRL: "BRL";
|
|
229
|
+
readonly BSD: "BSD";
|
|
230
|
+
readonly BWP: "BWP";
|
|
231
|
+
readonly BYN: "BYN";
|
|
232
|
+
readonly BZD: "BZD";
|
|
233
|
+
readonly CAD: "CAD";
|
|
234
|
+
readonly CDF: "CDF";
|
|
235
|
+
readonly CHF: "CHF";
|
|
236
|
+
readonly CLP: "CLP";
|
|
237
|
+
readonly CNY: "CNY";
|
|
238
|
+
readonly COP: "COP";
|
|
239
|
+
readonly CRC: "CRC";
|
|
240
|
+
readonly CVE: "CVE";
|
|
241
|
+
readonly CZK: "CZK";
|
|
242
|
+
readonly DJF: "DJF";
|
|
243
|
+
readonly DKK: "DKK";
|
|
244
|
+
readonly DOP: "DOP";
|
|
245
|
+
readonly DZD: "DZD";
|
|
246
|
+
readonly EGP: "EGP";
|
|
247
|
+
readonly ETB: "ETB";
|
|
248
|
+
readonly EUR: "EUR";
|
|
249
|
+
readonly FJD: "FJD";
|
|
250
|
+
readonly FKP: "FKP";
|
|
251
|
+
readonly GBP: "GBP";
|
|
252
|
+
readonly GEL: "GEL";
|
|
253
|
+
readonly GIP: "GIP";
|
|
254
|
+
readonly GMD: "GMD";
|
|
255
|
+
readonly GNF: "GNF";
|
|
256
|
+
readonly GTQ: "GTQ";
|
|
257
|
+
readonly GYD: "GYD";
|
|
258
|
+
readonly HKD: "HKD";
|
|
259
|
+
readonly HNL: "HNL";
|
|
260
|
+
readonly HTG: "HTG";
|
|
261
|
+
readonly HUF: "HUF";
|
|
262
|
+
readonly IDR: "IDR";
|
|
263
|
+
readonly ILS: "ILS";
|
|
264
|
+
readonly INR: "INR";
|
|
265
|
+
readonly ISK: "ISK";
|
|
266
|
+
readonly JMD: "JMD";
|
|
267
|
+
readonly JPY: "JPY";
|
|
268
|
+
readonly KES: "KES";
|
|
269
|
+
readonly KGS: "KGS";
|
|
270
|
+
readonly KHR: "KHR";
|
|
271
|
+
readonly KMF: "KMF";
|
|
272
|
+
readonly KRW: "KRW";
|
|
273
|
+
readonly KYD: "KYD";
|
|
274
|
+
readonly KZT: "KZT";
|
|
275
|
+
readonly LAK: "LAK";
|
|
276
|
+
readonly LBP: "LBP";
|
|
277
|
+
readonly LKR: "LKR";
|
|
278
|
+
readonly LRD: "LRD";
|
|
279
|
+
readonly LSL: "LSL";
|
|
280
|
+
readonly MAD: "MAD";
|
|
281
|
+
readonly MDL: "MDL";
|
|
282
|
+
readonly MGA: "MGA";
|
|
283
|
+
readonly MKD: "MKD";
|
|
284
|
+
readonly MMK: "MMK";
|
|
285
|
+
readonly MNT: "MNT";
|
|
286
|
+
readonly MOP: "MOP";
|
|
287
|
+
readonly MUR: "MUR";
|
|
288
|
+
readonly MVR: "MVR";
|
|
289
|
+
readonly MWK: "MWK";
|
|
290
|
+
readonly MXN: "MXN";
|
|
291
|
+
readonly MYR: "MYR";
|
|
292
|
+
readonly MZN: "MZN";
|
|
293
|
+
readonly NAD: "NAD";
|
|
294
|
+
readonly NGN: "NGN";
|
|
295
|
+
readonly NIO: "NIO";
|
|
296
|
+
readonly NOK: "NOK";
|
|
297
|
+
readonly NPR: "NPR";
|
|
298
|
+
readonly NZD: "NZD";
|
|
299
|
+
readonly PAB: "PAB";
|
|
300
|
+
readonly PEN: "PEN";
|
|
301
|
+
readonly PGK: "PGK";
|
|
302
|
+
readonly PHP: "PHP";
|
|
303
|
+
readonly PKR: "PKR";
|
|
304
|
+
readonly PLN: "PLN";
|
|
305
|
+
readonly PYG: "PYG";
|
|
306
|
+
readonly QAR: "QAR";
|
|
307
|
+
readonly RON: "RON";
|
|
308
|
+
readonly RSD: "RSD";
|
|
309
|
+
readonly RUB: "RUB";
|
|
310
|
+
readonly RWF: "RWF";
|
|
311
|
+
readonly SAR: "SAR";
|
|
312
|
+
readonly SBD: "SBD";
|
|
313
|
+
readonly SCR: "SCR";
|
|
314
|
+
readonly SEK: "SEK";
|
|
315
|
+
readonly SGD: "SGD";
|
|
316
|
+
readonly SHP: "SHP";
|
|
317
|
+
readonly SLE: "SLE";
|
|
318
|
+
readonly SOS: "SOS";
|
|
319
|
+
readonly SRD: "SRD";
|
|
320
|
+
readonly STD: "STD";
|
|
321
|
+
readonly SZL: "SZL";
|
|
322
|
+
readonly THB: "THB";
|
|
323
|
+
readonly TJS: "TJS";
|
|
324
|
+
readonly TOP: "TOP";
|
|
325
|
+
readonly TRYEscaped: "TRY";
|
|
326
|
+
readonly TTD: "TTD";
|
|
327
|
+
readonly TWD: "TWD";
|
|
328
|
+
readonly TZS: "TZS";
|
|
329
|
+
readonly UAH: "UAH";
|
|
330
|
+
readonly UGX: "UGX";
|
|
331
|
+
readonly UYU: "UYU";
|
|
332
|
+
readonly UZS: "UZS";
|
|
333
|
+
readonly VND: "VND";
|
|
334
|
+
readonly VUV: "VUV";
|
|
335
|
+
readonly WST: "WST";
|
|
336
|
+
readonly XAF: "XAF";
|
|
337
|
+
readonly XCD: "XCD";
|
|
338
|
+
readonly XCG: "XCG";
|
|
339
|
+
readonly XOF: "XOF";
|
|
340
|
+
readonly XPF: "XPF";
|
|
341
|
+
readonly YER: "YER";
|
|
342
|
+
readonly ZAR: "ZAR";
|
|
343
|
+
readonly ZMW: "ZMW";
|
|
344
|
+
readonly BHD: "BHD";
|
|
345
|
+
readonly KWD: "KWD";
|
|
346
|
+
readonly OMR: "OMR";
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* The billing interval for recurring charges (e.g., month, year). Required for subscription mode. Set to null for one-time payments.
|
|
350
|
+
*/
|
|
351
|
+
export declare const CheckoutPostRequestBody_intervalObject: {
|
|
352
|
+
readonly Day: "day";
|
|
353
|
+
readonly Week: "week";
|
|
354
|
+
readonly Month: "month";
|
|
355
|
+
readonly Year: "year";
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* Metadata for all the requests in the request builder.
|
|
359
|
+
*/
|
|
360
|
+
export declare const CheckoutRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type GetCurrencyOptionsListSchema } from '../../models/index.js';
|
|
2
|
+
import { type CurrencyOptionsItemRequestBuilder } from './item/index.js';
|
|
3
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
4
|
+
/**
|
|
5
|
+
* Builds and executes requests for operations under /api/currency-options
|
|
6
|
+
*/
|
|
7
|
+
export interface CurrencyOptionsRequestBuilder extends BaseRequestBuilder<CurrencyOptionsRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* Gets an item from the ApiSdk.api.currencyOptions.item collection
|
|
10
|
+
* @param id Resource ID
|
|
11
|
+
* @returns {CurrencyOptionsItemRequestBuilder}
|
|
12
|
+
*/
|
|
13
|
+
byId(id: string): CurrencyOptionsItemRequestBuilder;
|
|
14
|
+
/**
|
|
15
|
+
* List Currency Options
|
|
16
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
17
|
+
* @returns {Promise<GetCurrencyOptionsListSchema>}
|
|
18
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
19
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
20
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
21
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
22
|
+
*/
|
|
23
|
+
get(requestConfiguration?: RequestConfiguration<CurrencyOptionsRequestBuilderGetQueryParameters> | undefined): Promise<GetCurrencyOptionsListSchema | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* List Currency Options
|
|
26
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
27
|
+
* @returns {RequestInformation}
|
|
28
|
+
*/
|
|
29
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CurrencyOptionsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* List Currency Options
|
|
33
|
+
*/
|
|
34
|
+
export interface CurrencyOptionsRequestBuilderGetQueryParameters {
|
|
35
|
+
after?: string;
|
|
36
|
+
before?: string;
|
|
37
|
+
expand?: GetExpandQueryParameterType[];
|
|
38
|
+
limit?: string;
|
|
39
|
+
priceId?: string;
|
|
40
|
+
}
|
|
41
|
+
export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
|
|
42
|
+
/**
|
|
43
|
+
* Uri template for the request builder.
|
|
44
|
+
*/
|
|
45
|
+
export declare const CurrencyOptionsRequestBuilderUriTemplate = "{+baseurl}/api/currency-options{?after*,before*,expand,limit*,priceId*}";
|
|
46
|
+
/**
|
|
47
|
+
* Metadata for all the navigation properties in the request builder.
|
|
48
|
+
*/
|
|
49
|
+
export declare const CurrencyOptionsRequestBuilderNavigationMetadata: Record<Exclude<keyof CurrencyOptionsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
50
|
+
/**
|
|
51
|
+
* Metadata for all the requests in the request builder.
|
|
52
|
+
*/
|
|
53
|
+
export declare const CurrencyOptionsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
54
|
+
export declare const GetExpandQueryParameterTypeObject: {
|
|
55
|
+
readonly Tiers: "tiers";
|
|
56
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type GetCurrencyOptionDetailSchema } from '../../../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /api/currency-options/{id}
|
|
5
|
+
*/
|
|
6
|
+
export interface CurrencyOptionsItemRequestBuilder extends BaseRequestBuilder<CurrencyOptionsItemRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve Currency Option
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
* @returns {Promise<GetCurrencyOptionDetailSchema>}
|
|
11
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
16
|
+
*/
|
|
17
|
+
get(requestConfiguration?: RequestConfiguration<CurrencyOptionsItemRequestBuilderGetQueryParameters> | undefined): Promise<GetCurrencyOptionDetailSchema | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve Currency Option
|
|
20
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
21
|
+
* @returns {RequestInformation}
|
|
22
|
+
*/
|
|
23
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CurrencyOptionsItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve Currency Option
|
|
27
|
+
*/
|
|
28
|
+
export interface CurrencyOptionsItemRequestBuilderGetQueryParameters {
|
|
29
|
+
expand?: GetExpandQueryParameterType[];
|
|
30
|
+
}
|
|
31
|
+
export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
|
|
32
|
+
/**
|
|
33
|
+
* Uri template for the request builder.
|
|
34
|
+
*/
|
|
35
|
+
export declare const CurrencyOptionsItemRequestBuilderUriTemplate = "{+baseurl}/api/currency-options/{id}{?expand}";
|
|
36
|
+
/**
|
|
37
|
+
* Metadata for all the requests in the request builder.
|
|
38
|
+
*/
|
|
39
|
+
export declare const CurrencyOptionsItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
40
|
+
export declare const GetExpandQueryParameterTypeObject: {
|
|
41
|
+
readonly Tiers: "tiers";
|
|
42
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type GetDestinationListSchema } from '../../models/index.js';
|
|
2
|
+
import { type DestinationsItemRequestBuilder } from './item/index.js';
|
|
3
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
4
|
+
/**
|
|
5
|
+
* Builds and executes requests for operations under /api/destinations
|
|
6
|
+
*/
|
|
7
|
+
export interface DestinationsRequestBuilder extends BaseRequestBuilder<DestinationsRequestBuilder> {
|
|
8
|
+
/**
|
|
9
|
+
* Gets an item from the ApiSdk.api.destinations.item collection
|
|
10
|
+
* @param id Resource ID
|
|
11
|
+
* @returns {DestinationsItemRequestBuilder}
|
|
12
|
+
*/
|
|
13
|
+
byId(id: string): DestinationsItemRequestBuilder;
|
|
14
|
+
/**
|
|
15
|
+
* A paginated endpoint that returns a list of event destinations.
|
|
16
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
17
|
+
* @returns {Promise<GetDestinationListSchema>}
|
|
18
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
19
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
20
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
21
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
22
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
23
|
+
*/
|
|
24
|
+
get(requestConfiguration?: RequestConfiguration<DestinationsRequestBuilderGetQueryParameters> | undefined): Promise<GetDestinationListSchema | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* A paginated endpoint that returns a list of event destinations.
|
|
27
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
28
|
+
* @returns {RequestInformation}
|
|
29
|
+
*/
|
|
30
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<DestinationsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A paginated endpoint that returns a list of event destinations.
|
|
34
|
+
*/
|
|
35
|
+
export interface DestinationsRequestBuilderGetQueryParameters {
|
|
36
|
+
after?: string;
|
|
37
|
+
before?: string;
|
|
38
|
+
eventId?: string;
|
|
39
|
+
limit?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Uri template for the request builder.
|
|
43
|
+
*/
|
|
44
|
+
export declare const DestinationsRequestBuilderUriTemplate = "{+baseurl}/api/destinations{?after*,before*,eventId*,limit*}";
|
|
45
|
+
/**
|
|
46
|
+
* Metadata for all the navigation properties in the request builder.
|
|
47
|
+
*/
|
|
48
|
+
export declare const DestinationsRequestBuilderNavigationMetadata: Record<Exclude<keyof DestinationsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
49
|
+
/**
|
|
50
|
+
* Metadata for all the requests in the request builder.
|
|
51
|
+
*/
|
|
52
|
+
export declare const DestinationsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type GetDestinationDetailSchema } from '../../../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /api/destinations/{id}
|
|
5
|
+
*/
|
|
6
|
+
export interface DestinationsItemRequestBuilder extends BaseRequestBuilder<DestinationsItemRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve Destination
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
* @returns {Promise<GetDestinationDetailSchema>}
|
|
11
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
16
|
+
*/
|
|
17
|
+
get(requestConfiguration?: RequestConfiguration<DestinationsItemRequestBuilderGetQueryParameters> | undefined): Promise<GetDestinationDetailSchema | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new attempt or updates an existing pending attempt for a webhook event
|
|
20
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
21
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
22
|
+
* @throws {ErrorResponseBody} error when the service returns a 403 status code
|
|
23
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
24
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
25
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
26
|
+
*/
|
|
27
|
+
post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve Destination
|
|
30
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
31
|
+
* @returns {RequestInformation}
|
|
32
|
+
*/
|
|
33
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<DestinationsItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
34
|
+
/**
|
|
35
|
+
* Creates a new attempt or updates an existing pending attempt for a webhook event
|
|
36
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
37
|
+
* @returns {RequestInformation}
|
|
38
|
+
*/
|
|
39
|
+
toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Retrieve Destination
|
|
43
|
+
*/
|
|
44
|
+
export interface DestinationsItemRequestBuilderGetQueryParameters {
|
|
45
|
+
expand?: GetExpandQueryParameterType[];
|
|
46
|
+
}
|
|
47
|
+
export type GetExpandQueryParameterType = (typeof GetExpandQueryParameterTypeObject)[keyof typeof GetExpandQueryParameterTypeObject];
|
|
48
|
+
/**
|
|
49
|
+
* Uri template for the request builder.
|
|
50
|
+
*/
|
|
51
|
+
export declare const DestinationsItemRequestBuilderUriTemplate = "{+baseurl}/api/destinations/{id}{?expand}";
|
|
52
|
+
/**
|
|
53
|
+
* Metadata for all the requests in the request builder.
|
|
54
|
+
*/
|
|
55
|
+
export declare const DestinationsItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
56
|
+
export declare const GetExpandQueryParameterTypeObject: {
|
|
57
|
+
readonly Attempts: "attempts";
|
|
58
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type CheckEntitlementsSchema } from '../../../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /api/entitlements/check
|
|
5
|
+
*/
|
|
6
|
+
export interface CheckRequestBuilder extends BaseRequestBuilder<CheckRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Unlock features in your product by checking what the grantee has access to.
|
|
9
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
|
+
* @returns {Promise<CheckEntitlementsSchema>}
|
|
11
|
+
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
12
|
+
* @throws {ErrorResponseBody} error when the service returns a 401 status code
|
|
13
|
+
* @throws {ErrorResponseBody} error when the service returns a 404 status code
|
|
14
|
+
* @throws {ErrorResponseBody} error when the service returns a 405 status code
|
|
15
|
+
* @throws {ErrorResponseBody} error when the service returns a 429 status code
|
|
16
|
+
* @throws {ErrorResponseBody} error when the service returns a 500 status code
|
|
17
|
+
*/
|
|
18
|
+
get(requestConfiguration?: RequestConfiguration<CheckRequestBuilderGetQueryParameters> | undefined): Promise<CheckEntitlementsSchema | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* Unlock features in your product by checking what the grantee has access to.
|
|
21
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
22
|
+
* @returns {RequestInformation}
|
|
23
|
+
*/
|
|
24
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CheckRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Unlock features in your product by checking what the grantee has access to.
|
|
28
|
+
*/
|
|
29
|
+
export interface CheckRequestBuilderGetQueryParameters {
|
|
30
|
+
granteeId?: string;
|
|
31
|
+
owner?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Uri template for the request builder.
|
|
35
|
+
*/
|
|
36
|
+
export declare const CheckRequestBuilderUriTemplate = "{+baseurl}/api/entitlements/check?granteeId={granteeId}{&owner*}";
|
|
37
|
+
/**
|
|
38
|
+
* Metadata for all the requests in the request builder.
|
|
39
|
+
*/
|
|
40
|
+
export declare const CheckRequestBuilderRequestsMetadata: RequestsMetadata;
|