@revkeen/sdk 1.20260412.865 → 1.20260414.869
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/api/resources/checkoutSessions/client/Client.d.ts +17 -0
- package/api/resources/checkoutSessions/client/Client.js +59 -0
- package/api/resources/checkoutSessions/client/Client.ts +81 -0
- package/api/resources/checkoutSessions/client/requests/CheckoutSessionsExpireRequest.d.ts +10 -0
- package/api/resources/checkoutSessions/client/requests/CheckoutSessionsExpireRequest.js +3 -0
- package/api/resources/checkoutSessions/client/requests/CheckoutSessionsExpireRequest.ts +11 -0
- package/api/resources/checkoutSessions/client/requests/CreateCheckoutSessionInput.d.ts +14 -0
- package/api/resources/checkoutSessions/client/requests/CreateCheckoutSessionInput.js +10 -1
- package/api/resources/checkoutSessions/client/requests/CreateCheckoutSessionInput.ts +16 -0
- package/api/resources/checkoutSessions/client/requests/index.d.ts +2 -1
- package/api/resources/checkoutSessions/client/requests/index.js +1 -1
- package/api/resources/checkoutSessions/client/requests/index.ts +2 -1
- package/api/resources/invoices/client/requests/InvoicesCreateRequest.d.ts +12 -0
- package/api/resources/invoices/client/requests/InvoicesCreateRequest.js +10 -1
- package/api/resources/invoices/client/requests/InvoicesCreateRequest.ts +14 -0
- package/api/resources/invoices/client/requests/index.d.ts +1 -1
- package/api/resources/invoices/client/requests/index.js +1 -0
- package/api/resources/invoices/client/requests/index.ts +1 -1
- package/api/types/CheckoutSession.d.ts +2 -0
- package/api/types/CheckoutSession.ts +2 -0
- package/api/types/CheckoutSessionCreateResponse.d.ts +2 -0
- package/api/types/CheckoutSessionCreateResponse.ts +2 -0
- package/api/types/CheckoutSessionExpireResponse.d.ts +18 -0
- package/api/types/CheckoutSessionExpireResponse.js +11 -0
- package/api/types/CheckoutSessionExpireResponse.ts +21 -0
- package/api/types/Invoice.d.ts +2 -0
- package/api/types/Invoice.ts +2 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/api/types/index.ts +1 -0
- package/package.json +1 -1
|
@@ -49,5 +49,22 @@ export declare class CheckoutSessionsClient {
|
|
|
49
49
|
*/
|
|
50
50
|
checkoutSessionsRetrieve(request: RevKeen.CheckoutSessionsRetrieveRequest, requestOptions?: CheckoutSessionsClient.RequestOptions): core.HttpResponsePromise<RevKeen.CheckoutSessionRetrieveResponse>;
|
|
51
51
|
private __checkoutSessionsRetrieve;
|
|
52
|
+
/**
|
|
53
|
+
* Manually expire an open checkout session. Only sessions with status 'open' or 'pending' and no active payment attempt can be expired.
|
|
54
|
+
*
|
|
55
|
+
* @param {RevKeen.CheckoutSessionsExpireRequest} request
|
|
56
|
+
* @param {CheckoutSessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
59
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
60
|
+
* @throws {@link RevKeen.ConflictError}
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* await client.checkoutSessions.checkoutSessionsExpire({
|
|
64
|
+
* id: "550e8400-e29b-41d4-a716-446655440000"
|
|
65
|
+
* })
|
|
66
|
+
*/
|
|
67
|
+
checkoutSessionsExpire(request: RevKeen.CheckoutSessionsExpireRequest, requestOptions?: CheckoutSessionsClient.RequestOptions): core.HttpResponsePromise<RevKeen.CheckoutSessionExpireResponse>;
|
|
68
|
+
private __checkoutSessionsExpire;
|
|
52
69
|
}
|
|
53
70
|
//# sourceMappingURL=Client.d.ts.map
|
|
@@ -135,5 +135,64 @@ export class CheckoutSessionsClient {
|
|
|
135
135
|
}
|
|
136
136
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/checkout-sessions/{id}");
|
|
137
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Manually expire an open checkout session. Only sessions with status 'open' or 'pending' and no active payment attempt can be expired.
|
|
140
|
+
*
|
|
141
|
+
* @param {RevKeen.CheckoutSessionsExpireRequest} request
|
|
142
|
+
* @param {CheckoutSessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
143
|
+
*
|
|
144
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
145
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
146
|
+
* @throws {@link RevKeen.ConflictError}
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* await client.checkoutSessions.checkoutSessionsExpire({
|
|
150
|
+
* id: "550e8400-e29b-41d4-a716-446655440000"
|
|
151
|
+
* })
|
|
152
|
+
*/
|
|
153
|
+
checkoutSessionsExpire(request, requestOptions) {
|
|
154
|
+
return core.HttpResponsePromise.fromPromise(this.__checkoutSessionsExpire(request, requestOptions));
|
|
155
|
+
}
|
|
156
|
+
async __checkoutSessionsExpire(request, requestOptions) {
|
|
157
|
+
const { id } = request;
|
|
158
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
159
|
+
const _headers = mergeHeaders(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
160
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
161
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
162
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
163
|
+
environments.RevKeenEnvironment.Default, `checkout-sessions/${core.url.encodePathParam(id)}/expire`),
|
|
164
|
+
method: "POST",
|
|
165
|
+
headers: _headers,
|
|
166
|
+
queryParameters: requestOptions?.queryParams,
|
|
167
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
168
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
169
|
+
abortSignal: requestOptions?.abortSignal,
|
|
170
|
+
fetchFn: this._options?.fetch,
|
|
171
|
+
logging: this._options.logging,
|
|
172
|
+
});
|
|
173
|
+
if (_response.ok) {
|
|
174
|
+
return {
|
|
175
|
+
data: _response.body,
|
|
176
|
+
rawResponse: _response.rawResponse,
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
if (_response.error.reason === "status-code") {
|
|
180
|
+
switch (_response.error.statusCode) {
|
|
181
|
+
case 401:
|
|
182
|
+
throw new RevKeen.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
183
|
+
case 404:
|
|
184
|
+
throw new RevKeen.NotFoundError(_response.error.body, _response.rawResponse);
|
|
185
|
+
case 409:
|
|
186
|
+
throw new RevKeen.ConflictError(_response.error.body, _response.rawResponse);
|
|
187
|
+
default:
|
|
188
|
+
throw new errors.RevKeenError({
|
|
189
|
+
statusCode: _response.error.statusCode,
|
|
190
|
+
body: _response.error.body,
|
|
191
|
+
rawResponse: _response.rawResponse,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/checkout-sessions/{id}/expire");
|
|
196
|
+
}
|
|
138
197
|
}
|
|
139
198
|
//# sourceMappingURL=Client.js.map
|
|
@@ -180,4 +180,85 @@ export class CheckoutSessionsClient {
|
|
|
180
180
|
|
|
181
181
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/checkout-sessions/{id}");
|
|
182
182
|
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Manually expire an open checkout session. Only sessions with status 'open' or 'pending' and no active payment attempt can be expired.
|
|
186
|
+
*
|
|
187
|
+
* @param {RevKeen.CheckoutSessionsExpireRequest} request
|
|
188
|
+
* @param {CheckoutSessionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
189
|
+
*
|
|
190
|
+
* @throws {@link RevKeen.UnauthorizedError}
|
|
191
|
+
* @throws {@link RevKeen.NotFoundError}
|
|
192
|
+
* @throws {@link RevKeen.ConflictError}
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* await client.checkoutSessions.checkoutSessionsExpire({
|
|
196
|
+
* id: "550e8400-e29b-41d4-a716-446655440000"
|
|
197
|
+
* })
|
|
198
|
+
*/
|
|
199
|
+
public checkoutSessionsExpire(
|
|
200
|
+
request: RevKeen.CheckoutSessionsExpireRequest,
|
|
201
|
+
requestOptions?: CheckoutSessionsClient.RequestOptions,
|
|
202
|
+
): core.HttpResponsePromise<RevKeen.CheckoutSessionExpireResponse> {
|
|
203
|
+
return core.HttpResponsePromise.fromPromise(this.__checkoutSessionsExpire(request, requestOptions));
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
private async __checkoutSessionsExpire(
|
|
207
|
+
request: RevKeen.CheckoutSessionsExpireRequest,
|
|
208
|
+
requestOptions?: CheckoutSessionsClient.RequestOptions,
|
|
209
|
+
): Promise<core.WithRawResponse<RevKeen.CheckoutSessionExpireResponse>> {
|
|
210
|
+
const { id } = request;
|
|
211
|
+
const _authRequest: core.AuthRequest = await this._options.authProvider.getAuthRequest();
|
|
212
|
+
const _headers: core.Fetcher.Args["headers"] = mergeHeaders(
|
|
213
|
+
_authRequest.headers,
|
|
214
|
+
this._options?.headers,
|
|
215
|
+
requestOptions?.headers,
|
|
216
|
+
);
|
|
217
|
+
const _response = await (this._options.fetcher ?? core.fetcher)({
|
|
218
|
+
url: core.url.join(
|
|
219
|
+
(await core.Supplier.get(this._options.baseUrl)) ??
|
|
220
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
221
|
+
environments.RevKeenEnvironment.Default,
|
|
222
|
+
`checkout-sessions/${core.url.encodePathParam(id)}/expire`,
|
|
223
|
+
),
|
|
224
|
+
method: "POST",
|
|
225
|
+
headers: _headers,
|
|
226
|
+
queryParameters: requestOptions?.queryParams,
|
|
227
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
228
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
229
|
+
abortSignal: requestOptions?.abortSignal,
|
|
230
|
+
fetchFn: this._options?.fetch,
|
|
231
|
+
logging: this._options.logging,
|
|
232
|
+
});
|
|
233
|
+
if (_response.ok) {
|
|
234
|
+
return {
|
|
235
|
+
data: _response.body as RevKeen.CheckoutSessionExpireResponse,
|
|
236
|
+
rawResponse: _response.rawResponse,
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (_response.error.reason === "status-code") {
|
|
241
|
+
switch (_response.error.statusCode) {
|
|
242
|
+
case 401:
|
|
243
|
+
throw new RevKeen.UnauthorizedError(_response.error.body as unknown, _response.rawResponse);
|
|
244
|
+
case 404:
|
|
245
|
+
throw new RevKeen.NotFoundError(_response.error.body as unknown, _response.rawResponse);
|
|
246
|
+
case 409:
|
|
247
|
+
throw new RevKeen.ConflictError(_response.error.body as unknown, _response.rawResponse);
|
|
248
|
+
default:
|
|
249
|
+
throw new errors.RevKeenError({
|
|
250
|
+
statusCode: _response.error.statusCode,
|
|
251
|
+
body: _response.error.body,
|
|
252
|
+
rawResponse: _response.rawResponse,
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
return handleNonStatusCodeError(
|
|
258
|
+
_response.error,
|
|
259
|
+
_response.rawResponse,
|
|
260
|
+
"POST",
|
|
261
|
+
"/checkout-sessions/{id}/expire",
|
|
262
|
+
);
|
|
263
|
+
}
|
|
183
264
|
}
|
|
@@ -9,5 +9,19 @@ export interface CreateCheckoutSessionInput {
|
|
|
9
9
|
currency?: string;
|
|
10
10
|
successUrl?: string;
|
|
11
11
|
cancelUrl?: string;
|
|
12
|
+
/** Payment methods to offer. Intersected with merchant capabilities. Defaults to merchant config. */
|
|
13
|
+
allowedMethods?: CreateCheckoutSessionInput.AllowedMethods.Item[];
|
|
14
|
+
/** Target a registered companion device. Session is pushed via SSE to the device. */
|
|
15
|
+
companionDeviceId?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace CreateCheckoutSessionInput {
|
|
18
|
+
type AllowedMethods = AllowedMethods.Item[];
|
|
19
|
+
namespace AllowedMethods {
|
|
20
|
+
const Item: {
|
|
21
|
+
readonly Card: "card";
|
|
22
|
+
readonly InStore: "in_store";
|
|
23
|
+
};
|
|
24
|
+
type Item = (typeof Item)[keyof typeof Item];
|
|
25
|
+
}
|
|
12
26
|
}
|
|
13
27
|
//# sourceMappingURL=CreateCheckoutSessionInput.d.ts.map
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var CreateCheckoutSessionInput;
|
|
3
|
+
(function (CreateCheckoutSessionInput) {
|
|
4
|
+
let AllowedMethods;
|
|
5
|
+
(function (AllowedMethods) {
|
|
6
|
+
AllowedMethods.Item = {
|
|
7
|
+
Card: "card",
|
|
8
|
+
InStore: "in_store",
|
|
9
|
+
};
|
|
10
|
+
})(AllowedMethods = CreateCheckoutSessionInput.AllowedMethods || (CreateCheckoutSessionInput.AllowedMethods = {}));
|
|
11
|
+
})(CreateCheckoutSessionInput || (CreateCheckoutSessionInput = {}));
|
|
3
12
|
//# sourceMappingURL=CreateCheckoutSessionInput.js.map
|
|
@@ -11,4 +11,20 @@ export interface CreateCheckoutSessionInput {
|
|
|
11
11
|
currency?: string;
|
|
12
12
|
successUrl?: string;
|
|
13
13
|
cancelUrl?: string;
|
|
14
|
+
/** Payment methods to offer. Intersected with merchant capabilities. Defaults to merchant config. */
|
|
15
|
+
allowedMethods?: CreateCheckoutSessionInput.AllowedMethods.Item[];
|
|
16
|
+
/** Target a registered companion device. Session is pushed via SSE to the device. */
|
|
17
|
+
companionDeviceId?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export namespace CreateCheckoutSessionInput {
|
|
21
|
+
export type AllowedMethods = AllowedMethods.Item[];
|
|
22
|
+
|
|
23
|
+
export namespace AllowedMethods {
|
|
24
|
+
export const Item = {
|
|
25
|
+
Card: "card",
|
|
26
|
+
InStore: "in_store",
|
|
27
|
+
} as const;
|
|
28
|
+
export type Item = (typeof Item)[keyof typeof Item];
|
|
29
|
+
}
|
|
14
30
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { CheckoutSessionsExpireRequest } from "./CheckoutSessionsExpireRequest.js";
|
|
1
2
|
export type { CheckoutSessionsRetrieveRequest } from "./CheckoutSessionsRetrieveRequest.js";
|
|
2
|
-
export
|
|
3
|
+
export { CreateCheckoutSessionInput } from "./CreateCheckoutSessionInput.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export { CreateCheckoutSessionInput } from "./CreateCheckoutSessionInput.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
export type { CheckoutSessionsExpireRequest } from "./CheckoutSessionsExpireRequest.js";
|
|
1
2
|
export type { CheckoutSessionsRetrieveRequest } from "./CheckoutSessionsRetrieveRequest.js";
|
|
2
|
-
export
|
|
3
|
+
export { CreateCheckoutSessionInput } from "./CreateCheckoutSessionInput.js";
|
|
@@ -16,5 +16,17 @@ export interface InvoicesCreateRequest {
|
|
|
16
16
|
/** Key-value pairs for custom fields */
|
|
17
17
|
custom_fields?: Record<string, unknown>;
|
|
18
18
|
subscription_terms?: RevKeen.SubscriptionTerms;
|
|
19
|
+
/** Restrict checkout payment methods for this invoice. When set, narrows available rails for checkout sessions created against this invoice. Omit to use merchant default. */
|
|
20
|
+
allowed_methods?: InvoicesCreateRequest.AllowedMethods.Item[];
|
|
21
|
+
}
|
|
22
|
+
export declare namespace InvoicesCreateRequest {
|
|
23
|
+
type AllowedMethods = AllowedMethods.Item[];
|
|
24
|
+
namespace AllowedMethods {
|
|
25
|
+
const Item: {
|
|
26
|
+
readonly Card: "card";
|
|
27
|
+
readonly InStore: "in_store";
|
|
28
|
+
};
|
|
29
|
+
type Item = (typeof Item)[keyof typeof Item];
|
|
30
|
+
}
|
|
19
31
|
}
|
|
20
32
|
//# sourceMappingURL=InvoicesCreateRequest.d.ts.map
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
export
|
|
2
|
+
export var InvoicesCreateRequest;
|
|
3
|
+
(function (InvoicesCreateRequest) {
|
|
4
|
+
let AllowedMethods;
|
|
5
|
+
(function (AllowedMethods) {
|
|
6
|
+
AllowedMethods.Item = {
|
|
7
|
+
Card: "card",
|
|
8
|
+
InStore: "in_store",
|
|
9
|
+
};
|
|
10
|
+
})(AllowedMethods = InvoicesCreateRequest.AllowedMethods || (InvoicesCreateRequest.AllowedMethods = {}));
|
|
11
|
+
})(InvoicesCreateRequest || (InvoicesCreateRequest = {}));
|
|
3
12
|
//# sourceMappingURL=InvoicesCreateRequest.js.map
|
|
@@ -19,4 +19,18 @@ export interface InvoicesCreateRequest {
|
|
|
19
19
|
/** Key-value pairs for custom fields */
|
|
20
20
|
custom_fields?: Record<string, unknown>;
|
|
21
21
|
subscription_terms?: RevKeen.SubscriptionTerms;
|
|
22
|
+
/** Restrict checkout payment methods for this invoice. When set, narrows available rails for checkout sessions created against this invoice. Omit to use merchant default. */
|
|
23
|
+
allowed_methods?: InvoicesCreateRequest.AllowedMethods.Item[];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export namespace InvoicesCreateRequest {
|
|
27
|
+
export type AllowedMethods = AllowedMethods.Item[];
|
|
28
|
+
|
|
29
|
+
export namespace AllowedMethods {
|
|
30
|
+
export const Item = {
|
|
31
|
+
Card: "card",
|
|
32
|
+
InStore: "in_store",
|
|
33
|
+
} as const;
|
|
34
|
+
export type Item = (typeof Item)[keyof typeof Item];
|
|
35
|
+
}
|
|
22
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { InvoicesCommentsAddRequest } from "./InvoicesCommentsAddRequest.js";
|
|
2
2
|
export type { InvoicesCommentsListRequest } from "./InvoicesCommentsListRequest.js";
|
|
3
|
-
export
|
|
3
|
+
export { InvoicesCreateRequest } from "./InvoicesCreateRequest.js";
|
|
4
4
|
export type { InvoicesCreditEligibilityRequest } from "./InvoicesCreditEligibilityRequest.js";
|
|
5
5
|
export { InvoicesCreditNoteIssueRequest } from "./InvoicesCreditNoteIssueRequest.js";
|
|
6
6
|
export type { InvoicesCreditNotesListRequest } from "./InvoicesCreditNotesListRequest.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { InvoicesCreateRequest } from "./InvoicesCreateRequest.js";
|
|
1
2
|
export { InvoicesCreditNoteIssueRequest } from "./InvoicesCreditNoteIssueRequest.js";
|
|
2
3
|
export { InvoicesPayRequest } from "./InvoicesPayRequest.js";
|
|
3
4
|
export { InvoicesSendRequest } from "./InvoicesSendRequest.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { InvoicesCommentsAddRequest } from "./InvoicesCommentsAddRequest.js";
|
|
2
2
|
export type { InvoicesCommentsListRequest } from "./InvoicesCommentsListRequest.js";
|
|
3
|
-
export
|
|
3
|
+
export { InvoicesCreateRequest } from "./InvoicesCreateRequest.js";
|
|
4
4
|
export type { InvoicesCreditEligibilityRequest } from "./InvoicesCreditEligibilityRequest.js";
|
|
5
5
|
export { InvoicesCreditNoteIssueRequest } from "./InvoicesCreditNoteIssueRequest.js";
|
|
6
6
|
export type { InvoicesCreditNotesListRequest } from "./InvoicesCreditNotesListRequest.js";
|
|
@@ -17,6 +17,8 @@ export interface CheckoutSession {
|
|
|
17
17
|
cancel_url: string | null;
|
|
18
18
|
expires_at: string | null;
|
|
19
19
|
created_at: string | null;
|
|
20
|
+
allowed_methods: string[];
|
|
21
|
+
selected_method: string | null;
|
|
20
22
|
}
|
|
21
23
|
export declare namespace CheckoutSession {
|
|
22
24
|
const Object_: {
|
|
@@ -14,6 +14,8 @@ export declare namespace CheckoutSessionCreateResponse {
|
|
|
14
14
|
currency: string;
|
|
15
15
|
customerId?: string;
|
|
16
16
|
expiresAt: string;
|
|
17
|
+
allowedMethods?: string[];
|
|
18
|
+
selectedMethod?: string | null;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
//# sourceMappingURL=CheckoutSessionCreateResponse.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface CheckoutSessionExpireResponse {
|
|
2
|
+
data: CheckoutSessionExpireResponse.Data;
|
|
3
|
+
requestId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace CheckoutSessionExpireResponse {
|
|
6
|
+
interface Data {
|
|
7
|
+
id: string;
|
|
8
|
+
status: Data.Status;
|
|
9
|
+
expiredAt: string;
|
|
10
|
+
}
|
|
11
|
+
namespace Data {
|
|
12
|
+
const Status: {
|
|
13
|
+
readonly Expired: "expired";
|
|
14
|
+
};
|
|
15
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=CheckoutSessionExpireResponse.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var CheckoutSessionExpireResponse;
|
|
3
|
+
(function (CheckoutSessionExpireResponse) {
|
|
4
|
+
let Data;
|
|
5
|
+
(function (Data) {
|
|
6
|
+
Data.Status = {
|
|
7
|
+
Expired: "expired",
|
|
8
|
+
};
|
|
9
|
+
})(Data = CheckoutSessionExpireResponse.Data || (CheckoutSessionExpireResponse.Data = {}));
|
|
10
|
+
})(CheckoutSessionExpireResponse || (CheckoutSessionExpireResponse = {}));
|
|
11
|
+
//# sourceMappingURL=CheckoutSessionExpireResponse.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
export interface CheckoutSessionExpireResponse {
|
|
4
|
+
data: CheckoutSessionExpireResponse.Data;
|
|
5
|
+
requestId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export namespace CheckoutSessionExpireResponse {
|
|
9
|
+
export interface Data {
|
|
10
|
+
id: string;
|
|
11
|
+
status: Data.Status;
|
|
12
|
+
expiredAt: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export namespace Data {
|
|
16
|
+
export const Status = {
|
|
17
|
+
Expired: "expired",
|
|
18
|
+
} as const;
|
|
19
|
+
export type Status = (typeof Status)[keyof typeof Status];
|
|
20
|
+
}
|
|
21
|
+
}
|
package/api/types/Invoice.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export interface Invoice {
|
|
|
12
12
|
total_minor: number;
|
|
13
13
|
/** Three-letter ISO 4217 currency code */
|
|
14
14
|
currency: string;
|
|
15
|
+
/** Allowed payment methods for checkout sessions against this invoice */
|
|
16
|
+
allowed_methods?: string[] | null;
|
|
15
17
|
/** Invoice lifecycle status: draft, open, finalized, paid, void, or uncollectible */
|
|
16
18
|
status: string;
|
|
17
19
|
/** Payment due date in ISO 8601 format */
|
package/api/types/Invoice.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface Invoice {
|
|
|
14
14
|
total_minor: number;
|
|
15
15
|
/** Three-letter ISO 4217 currency code */
|
|
16
16
|
currency: string;
|
|
17
|
+
/** Allowed payment methods for checkout sessions against this invoice */
|
|
18
|
+
allowed_methods?: string[] | null;
|
|
17
19
|
/** Invoice lifecycle status: draft, open, finalized, paid, void, or uncollectible */
|
|
18
20
|
status: string;
|
|
19
21
|
/** Payment due date in ISO 8601 format */
|
package/api/types/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from "./ChargeRetrieveResponse.js";
|
|
|
19
19
|
export * from "./CheckoutSession.js";
|
|
20
20
|
export * from "./CheckoutSessionCreateResponse.js";
|
|
21
21
|
export * from "./CheckoutSessionErrorResponse.js";
|
|
22
|
+
export * from "./CheckoutSessionExpireResponse.js";
|
|
22
23
|
export * from "./CheckoutSessionRetrieveResponse.js";
|
|
23
24
|
export * from "./ConflictErrorBody.js";
|
|
24
25
|
export * from "./CreateMeterResponse.js";
|
package/api/types/index.js
CHANGED
|
@@ -19,6 +19,7 @@ export * from "./ChargeRetrieveResponse.js";
|
|
|
19
19
|
export * from "./CheckoutSession.js";
|
|
20
20
|
export * from "./CheckoutSessionCreateResponse.js";
|
|
21
21
|
export * from "./CheckoutSessionErrorResponse.js";
|
|
22
|
+
export * from "./CheckoutSessionExpireResponse.js";
|
|
22
23
|
export * from "./CheckoutSessionRetrieveResponse.js";
|
|
23
24
|
export * from "./ConflictErrorBody.js";
|
|
24
25
|
export * from "./CreateMeterResponse.js";
|
package/api/types/index.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from "./ChargeRetrieveResponse.js";
|
|
|
19
19
|
export * from "./CheckoutSession.js";
|
|
20
20
|
export * from "./CheckoutSessionCreateResponse.js";
|
|
21
21
|
export * from "./CheckoutSessionErrorResponse.js";
|
|
22
|
+
export * from "./CheckoutSessionExpireResponse.js";
|
|
22
23
|
export * from "./CheckoutSessionRetrieveResponse.js";
|
|
23
24
|
export * from "./ConflictErrorBody.js";
|
|
24
25
|
export * from "./CreateMeterResponse.js";
|