@51eat/sdk 0.0.48 → 0.0.50
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +13 -8
- package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +21 -22
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +52 -62
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.ts +18 -2
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/StoreTicketOrderRequest.d.ts +1 -3
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.ts +14 -8
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customerEvents/client/Client.d.ts +29 -0
- package/dist/cjs/api/resources/customerEvents/client/Client.js +111 -0
- package/dist/cjs/api/resources/customerEvents/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerEvents/client/index.js +17 -0
- package/dist/cjs/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.d.ts +11 -0
- package/dist/cjs/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.js +3 -0
- package/dist/cjs/api/resources/customerEvents/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerEvents/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customerEvents/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customerEvents/exports.js +21 -0
- package/dist/cjs/api/resources/customerEvents/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerEvents/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/types/BusinessEventOrder.d.ts +2 -10
- package/dist/cjs/api/types/BusinessEventOrderDetail.d.ts +2 -12
- package/dist/cjs/api/types/BusinessProductOrder.d.ts +1 -9
- package/dist/cjs/api/types/CustomerProductOrder.d.ts +1 -5
- package/dist/cjs/api/types/TicketOrder.d.ts +1 -7
- package/dist/cjs/api/types/Transaction.d.ts +16 -0
- package/dist/cjs/api/types/Transaction.js +3 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +21 -22
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +52 -62
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.mts +18 -2
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/StoreTicketOrderRequest.d.mts +1 -3
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.mts +14 -8
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.d.mts +1 -1
- package/dist/esm/api/resources/customerEvents/client/Client.d.mts +29 -0
- package/dist/esm/api/resources/customerEvents/client/Client.mjs +74 -0
- package/dist/esm/api/resources/customerEvents/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customerEvents/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.d.mts +11 -0
- package/dist/esm/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.mjs +2 -0
- package/dist/esm/api/resources/customerEvents/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customerEvents/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerEvents/exports.d.mts +2 -0
- package/dist/esm/api/resources/customerEvents/exports.mjs +3 -0
- package/dist/esm/api/resources/customerEvents/index.d.mts +1 -0
- package/dist/esm/api/resources/customerEvents/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/types/BusinessEventOrder.d.mts +2 -10
- package/dist/esm/api/types/BusinessEventOrderDetail.d.mts +2 -12
- package/dist/esm/api/types/BusinessProductOrder.d.mts +1 -9
- package/dist/esm/api/types/CustomerProductOrder.d.mts +1 -5
- package/dist/esm/api/types/TicketOrder.d.mts +1 -7
- package/dist/esm/api/types/Transaction.d.mts +16 -0
- package/dist/esm/api/types/Transaction.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +12 -1
- package/reference.md +97 -39
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
17
|
+
import * as FiveOneEat from "../../../index.mjs";
|
|
18
|
+
export class CustomerEventsClient {
|
|
19
|
+
constructor(options = {}) {
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Release the TicketCart holds for the authenticated user and event.
|
|
24
|
+
*
|
|
25
|
+
* @param {FiveOneEat.ReleaseTicketHoldRequest} request
|
|
26
|
+
* @param {CustomerEventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.customerEvents.releaseTicketHold({
|
|
32
|
+
* eventId: "eventId",
|
|
33
|
+
* cartId: "cartId"
|
|
34
|
+
* })
|
|
35
|
+
*/
|
|
36
|
+
releaseTicketHold(request, requestOptions) {
|
|
37
|
+
return core.HttpResponsePromise.fromPromise(this.__releaseTicketHold(request, requestOptions));
|
|
38
|
+
}
|
|
39
|
+
__releaseTicketHold(request, requestOptions) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
42
|
+
const { eventId, cartId } = request;
|
|
43
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
44
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
45
|
+
const _response = yield core.fetcher({
|
|
46
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `customer/events/${core.url.encodePathParam(eventId)}/ticket-holds/${core.url.encodePathParam(cartId)}`),
|
|
47
|
+
method: "DELETE",
|
|
48
|
+
headers: _headers,
|
|
49
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
50
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
51
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
52
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
53
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
54
|
+
logging: this._options.logging,
|
|
55
|
+
});
|
|
56
|
+
if (_response.ok) {
|
|
57
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
58
|
+
}
|
|
59
|
+
if (_response.error.reason === "status-code") {
|
|
60
|
+
switch (_response.error.statusCode) {
|
|
61
|
+
case 401:
|
|
62
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
63
|
+
default:
|
|
64
|
+
throw new errors.FiveOneEatError({
|
|
65
|
+
statusCode: _response.error.statusCode,
|
|
66
|
+
body: _response.error.body,
|
|
67
|
+
rawResponse: _response.rawResponse,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/customer/events/{eventId}/ticket-holds/{cartId}");
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ReleaseTicketHoldRequest } from "./ReleaseTicketHoldRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -8,6 +8,8 @@ export * from "./businessProducts/types/index.mjs";
|
|
|
8
8
|
export * from "./customer/client/requests/index.mjs";
|
|
9
9
|
export * as customer from "./customer/index.mjs";
|
|
10
10
|
export * from "./customer/types/index.mjs";
|
|
11
|
+
export * from "./customerEvents/client/requests/index.mjs";
|
|
12
|
+
export * as customerEvents from "./customerEvents/index.mjs";
|
|
11
13
|
export * from "./customerMessaging/client/requests/index.mjs";
|
|
12
14
|
export * as customerMessaging from "./customerMessaging/index.mjs";
|
|
13
15
|
export * from "./customerMessaging/types/index.mjs";
|
|
@@ -8,6 +8,8 @@ export * from "./businessProducts/types/index.mjs";
|
|
|
8
8
|
export * from "./customer/client/requests/index.mjs";
|
|
9
9
|
export * as customer from "./customer/index.mjs";
|
|
10
10
|
export * from "./customer/types/index.mjs";
|
|
11
|
+
export * from "./customerEvents/client/requests/index.mjs";
|
|
12
|
+
export * as customerEvents from "./customerEvents/index.mjs";
|
|
11
13
|
export * from "./customerMessaging/client/requests/index.mjs";
|
|
12
14
|
export * as customerMessaging from "./customerMessaging/index.mjs";
|
|
13
15
|
export * from "./customerMessaging/types/index.mjs";
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../index.mjs";
|
|
1
2
|
export interface BusinessEventOrder {
|
|
2
3
|
id: string;
|
|
3
4
|
event_id: string;
|
|
4
5
|
order_number: string;
|
|
5
|
-
|
|
6
|
-
subtotal: string;
|
|
7
|
-
fees: string;
|
|
8
|
-
total_amount: string;
|
|
9
|
-
refunded_amount: string;
|
|
10
|
-
remaining_refundable_amount: string;
|
|
11
|
-
customer_name: string;
|
|
12
|
-
customer_email: string;
|
|
13
|
-
payment_completed_at: string;
|
|
14
|
-
refunded_at: string;
|
|
6
|
+
transaction?: FiveOneEat.Transaction | undefined;
|
|
15
7
|
tickets_count?: number | undefined;
|
|
16
8
|
user?: BusinessEventOrder.User | undefined;
|
|
17
9
|
created_at: string;
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../index.mjs";
|
|
1
2
|
export interface BusinessEventOrderDetail {
|
|
2
3
|
id: string;
|
|
3
4
|
event_id: string;
|
|
4
5
|
order_number: string;
|
|
5
|
-
|
|
6
|
-
subtotal: string;
|
|
7
|
-
fees: string;
|
|
8
|
-
total_amount: string;
|
|
9
|
-
refunded_amount: string;
|
|
10
|
-
remaining_refundable_amount: string;
|
|
11
|
-
customer_name: string;
|
|
12
|
-
customer_email: string;
|
|
13
|
-
stripe_payment_intent_id: string;
|
|
14
|
-
payment_completed_at: string;
|
|
15
|
-
refunded_at: string;
|
|
16
|
-
refund_reason: string;
|
|
6
|
+
transaction?: FiveOneEat.Transaction | undefined;
|
|
17
7
|
user?: BusinessEventOrderDetail.User | undefined;
|
|
18
8
|
tickets?: string | undefined;
|
|
19
9
|
created_at: string;
|
|
@@ -6,14 +6,8 @@ export interface BusinessProductOrder {
|
|
|
6
6
|
fulfillment_status: string;
|
|
7
7
|
fulfillment_method: string | null;
|
|
8
8
|
fulfillment_type: string | null;
|
|
9
|
-
subtotal: number;
|
|
10
|
-
tax_amount: number;
|
|
11
|
-
shipping_amount: number;
|
|
12
9
|
discount_amount: number;
|
|
13
|
-
|
|
14
|
-
refunded_amount: number;
|
|
15
|
-
customer_email: string;
|
|
16
|
-
customer_name: string;
|
|
10
|
+
transaction?: FiveOneEat.Transaction | undefined;
|
|
17
11
|
customer_phone: string | null;
|
|
18
12
|
shipping_address: Record<string, unknown> | null;
|
|
19
13
|
billing_address: Record<string, unknown> | null;
|
|
@@ -24,10 +18,8 @@ export interface BusinessProductOrder {
|
|
|
24
18
|
user?: BusinessProductOrder.User | undefined;
|
|
25
19
|
items?: FiveOneEat.BusinessProductOrderItem[] | undefined;
|
|
26
20
|
shipment?: (BusinessProductOrder.Shipment | null) | undefined;
|
|
27
|
-
payment_completed_at: string | null;
|
|
28
21
|
fulfilled_at: string | null;
|
|
29
22
|
picked_up_at: string | null;
|
|
30
|
-
refunded_at: string | null;
|
|
31
23
|
created_at: string | null;
|
|
32
24
|
updated_at: string | null;
|
|
33
25
|
}
|
|
@@ -5,18 +5,14 @@ export interface CustomerProductOrder {
|
|
|
5
5
|
status: string;
|
|
6
6
|
fulfillment_status: string;
|
|
7
7
|
fulfillment_method: string;
|
|
8
|
-
subtotal: string;
|
|
9
|
-
tax_amount: string;
|
|
10
|
-
shipping_amount: string;
|
|
11
8
|
discount_amount: string;
|
|
12
|
-
|
|
9
|
+
transaction?: FiveOneEat.Transaction | undefined;
|
|
13
10
|
tracking_number: string | null;
|
|
14
11
|
tracking_url: string | null;
|
|
15
12
|
shipping_address: unknown[] | null;
|
|
16
13
|
billing_address: unknown[] | null;
|
|
17
14
|
business?: CustomerProductOrder.Business | undefined;
|
|
18
15
|
items?: FiveOneEat.CustomerProductOrderItem[] | undefined;
|
|
19
|
-
payment_completed_at: string | null;
|
|
20
16
|
fulfilled_at: string | null;
|
|
21
17
|
created_at: string | null;
|
|
22
18
|
}
|
|
@@ -2,12 +2,6 @@ import type * as FiveOneEat from "../index.mjs";
|
|
|
2
2
|
export interface TicketOrder {
|
|
3
3
|
id: string;
|
|
4
4
|
order_number: string;
|
|
5
|
-
|
|
6
|
-
subtotal: string;
|
|
7
|
-
fees: string;
|
|
8
|
-
total_amount: string;
|
|
9
|
-
customer_name: string;
|
|
10
|
-
customer_email: string;
|
|
11
|
-
payment_completed_at: string;
|
|
5
|
+
transaction?: FiveOneEat.Transaction | undefined;
|
|
12
6
|
tickets?: FiveOneEat.Ticket[] | undefined;
|
|
13
7
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Transaction {
|
|
2
|
+
ulid: string;
|
|
3
|
+
status: string;
|
|
4
|
+
subtotal: string;
|
|
5
|
+
tax_amount: string;
|
|
6
|
+
shipping_amount: string;
|
|
7
|
+
platform_fee: string;
|
|
8
|
+
total_amount: string;
|
|
9
|
+
refunded_amount: string;
|
|
10
|
+
customer_name: string | null;
|
|
11
|
+
customer_email: string;
|
|
12
|
+
stripe_payment_intent_id: string | null;
|
|
13
|
+
payment_completed_at: string | null;
|
|
14
|
+
refunded_at: string | null;
|
|
15
|
+
refund_reason: string | null;
|
|
16
|
+
}
|
|
@@ -138,5 +138,6 @@ export * from "./Ticket.mjs";
|
|
|
138
138
|
export * from "./TicketOrder.mjs";
|
|
139
139
|
export * from "./TicketOrderResponse.mjs";
|
|
140
140
|
export * from "./TicketResponse.mjs";
|
|
141
|
+
export * from "./Transaction.mjs";
|
|
141
142
|
export * from "./UnauthorizedErrorBody.mjs";
|
|
142
143
|
export * from "./UnprocessableEntityErrorBody.mjs";
|
|
@@ -138,5 +138,6 @@ export * from "./Ticket.mjs";
|
|
|
138
138
|
export * from "./TicketOrder.mjs";
|
|
139
139
|
export * from "./TicketOrderResponse.mjs";
|
|
140
140
|
export * from "./TicketResponse.mjs";
|
|
141
|
+
export * from "./Transaction.mjs";
|
|
141
142
|
export * from "./UnauthorizedErrorBody.mjs";
|
|
142
143
|
export * from "./UnprocessableEntityErrorBody.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.50";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.0.
|
|
1
|
+
export const SDK_VERSION = "0.0.50";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@51eat/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.50",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,6 +44,17 @@
|
|
|
44
44
|
},
|
|
45
45
|
"default": "./dist/cjs/api/resources/businessProducts/exports.js"
|
|
46
46
|
},
|
|
47
|
+
"./customerEvents": {
|
|
48
|
+
"import": {
|
|
49
|
+
"types": "./dist/esm/api/resources/customerEvents/exports.d.mts",
|
|
50
|
+
"default": "./dist/esm/api/resources/customerEvents/exports.mjs"
|
|
51
|
+
},
|
|
52
|
+
"require": {
|
|
53
|
+
"types": "./dist/cjs/api/resources/customerEvents/exports.d.ts",
|
|
54
|
+
"default": "./dist/cjs/api/resources/customerEvents/exports.js"
|
|
55
|
+
},
|
|
56
|
+
"default": "./dist/cjs/api/resources/customerEvents/exports.js"
|
|
57
|
+
},
|
|
47
58
|
"./customerMessaging": {
|
|
48
59
|
"import": {
|
|
49
60
|
"types": "./dist/esm/api/resources/customerMessaging/exports.d.mts",
|
package/reference.md
CHANGED
|
@@ -204,6 +204,73 @@ await client.businessProducts.getProductInventorySummary({
|
|
|
204
204
|
</dl>
|
|
205
205
|
|
|
206
206
|
|
|
207
|
+
</dd>
|
|
208
|
+
</dl>
|
|
209
|
+
</details>
|
|
210
|
+
|
|
211
|
+
## Customer: Events
|
|
212
|
+
<details><summary><code>client.customerEvents.<a href="/src/api/resources/customerEvents/client/Client.ts">releaseTicketHold</a>({ ...params }) -> void</code></summary>
|
|
213
|
+
<dl>
|
|
214
|
+
<dd>
|
|
215
|
+
|
|
216
|
+
#### 📝 Description
|
|
217
|
+
|
|
218
|
+
<dl>
|
|
219
|
+
<dd>
|
|
220
|
+
|
|
221
|
+
<dl>
|
|
222
|
+
<dd>
|
|
223
|
+
|
|
224
|
+
Release the TicketCart holds for the authenticated user and event.
|
|
225
|
+
</dd>
|
|
226
|
+
</dl>
|
|
227
|
+
</dd>
|
|
228
|
+
</dl>
|
|
229
|
+
|
|
230
|
+
#### 🔌 Usage
|
|
231
|
+
|
|
232
|
+
<dl>
|
|
233
|
+
<dd>
|
|
234
|
+
|
|
235
|
+
<dl>
|
|
236
|
+
<dd>
|
|
237
|
+
|
|
238
|
+
```typescript
|
|
239
|
+
await client.customerEvents.releaseTicketHold({
|
|
240
|
+
eventId: "eventId",
|
|
241
|
+
cartId: "cartId"
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
```
|
|
245
|
+
</dd>
|
|
246
|
+
</dl>
|
|
247
|
+
</dd>
|
|
248
|
+
</dl>
|
|
249
|
+
|
|
250
|
+
#### ⚙️ Parameters
|
|
251
|
+
|
|
252
|
+
<dl>
|
|
253
|
+
<dd>
|
|
254
|
+
|
|
255
|
+
<dl>
|
|
256
|
+
<dd>
|
|
257
|
+
|
|
258
|
+
**request:** `FiveOneEat.ReleaseTicketHoldRequest`
|
|
259
|
+
|
|
260
|
+
</dd>
|
|
261
|
+
</dl>
|
|
262
|
+
|
|
263
|
+
<dl>
|
|
264
|
+
<dd>
|
|
265
|
+
|
|
266
|
+
**requestOptions:** `CustomerEventsClient.RequestOptions`
|
|
267
|
+
|
|
268
|
+
</dd>
|
|
269
|
+
</dl>
|
|
270
|
+
</dd>
|
|
271
|
+
</dl>
|
|
272
|
+
|
|
273
|
+
|
|
207
274
|
</dd>
|
|
208
275
|
</dl>
|
|
209
276
|
</details>
|
|
@@ -11584,7 +11651,7 @@ await client.customer.events.ticketing.holdTickets({
|
|
|
11584
11651
|
</dl>
|
|
11585
11652
|
</details>
|
|
11586
11653
|
|
|
11587
|
-
<details><summary><code>client.customer.events.ticketing.<a href="/src/api/resources/customer/resources/events/resources/ticketing/client/Client.ts">
|
|
11654
|
+
<details><summary><code>client.customer.events.ticketing.<a href="/src/api/resources/customer/resources/events/resources/ticketing/client/Client.ts">calculatePrice</a>({ ...params }) -> FiveOneEat.CalculatePriceTicketingResponse</code></summary>
|
|
11588
11655
|
<dl>
|
|
11589
11656
|
<dd>
|
|
11590
11657
|
|
|
@@ -11596,7 +11663,7 @@ await client.customer.events.ticketing.holdTickets({
|
|
|
11596
11663
|
<dl>
|
|
11597
11664
|
<dd>
|
|
11598
11665
|
|
|
11599
|
-
|
|
11666
|
+
Preview the subtotal, platform fee, and total for a given ticket selection.
|
|
11600
11667
|
</dd>
|
|
11601
11668
|
</dl>
|
|
11602
11669
|
</dd>
|
|
@@ -11611,9 +11678,12 @@ Release all active holds for the given session, freeing the tickets for others.
|
|
|
11611
11678
|
<dd>
|
|
11612
11679
|
|
|
11613
11680
|
```typescript
|
|
11614
|
-
await client.customer.events.ticketing.
|
|
11681
|
+
await client.customer.events.ticketing.calculatePrice({
|
|
11615
11682
|
eventId: "eventId",
|
|
11616
|
-
|
|
11683
|
+
tickets: [{
|
|
11684
|
+
ticket_type_id: "ticket_type_id",
|
|
11685
|
+
quantity: 1
|
|
11686
|
+
}]
|
|
11617
11687
|
});
|
|
11618
11688
|
|
|
11619
11689
|
```
|
|
@@ -11630,7 +11700,7 @@ await client.customer.events.ticketing.releaseHold({
|
|
|
11630
11700
|
<dl>
|
|
11631
11701
|
<dd>
|
|
11632
11702
|
|
|
11633
|
-
**request:** `FiveOneEat.customer.events.
|
|
11703
|
+
**request:** `FiveOneEat.customer.events.CalculatePriceRequest`
|
|
11634
11704
|
|
|
11635
11705
|
</dd>
|
|
11636
11706
|
</dl>
|
|
@@ -11650,7 +11720,7 @@ await client.customer.events.ticketing.releaseHold({
|
|
|
11650
11720
|
</dl>
|
|
11651
11721
|
</details>
|
|
11652
11722
|
|
|
11653
|
-
<details><summary><code>client.customer.events.ticketing.<a href="/src/api/resources/customer/resources/events/resources/ticketing/client/Client.ts">
|
|
11723
|
+
<details><summary><code>client.customer.events.ticketing.<a href="/src/api/resources/customer/resources/events/resources/ticketing/client/Client.ts">createPaymentIntent</a>({ ...params }) -> FiveOneEat.CreatePaymentIntentTicketingResponse</code></summary>
|
|
11654
11724
|
<dl>
|
|
11655
11725
|
<dd>
|
|
11656
11726
|
|
|
@@ -11662,7 +11732,8 @@ await client.customer.events.ticketing.releaseHold({
|
|
|
11662
11732
|
<dl>
|
|
11663
11733
|
<dd>
|
|
11664
11734
|
|
|
11665
|
-
|
|
11735
|
+
Create a Stripe payment intent for the tickets held in the cart for the given event.
|
|
11736
|
+
Returns a client_secret for the mobile app to confirm payment with Stripe.
|
|
11666
11737
|
</dd>
|
|
11667
11738
|
</dl>
|
|
11668
11739
|
</dd>
|
|
@@ -11677,12 +11748,15 @@ Preview the subtotal, platform fee, and total for a given ticket selection.
|
|
|
11677
11748
|
<dd>
|
|
11678
11749
|
|
|
11679
11750
|
```typescript
|
|
11680
|
-
await client.customer.events.ticketing.
|
|
11751
|
+
await client.customer.events.ticketing.createPaymentIntent({
|
|
11681
11752
|
eventId: "eventId",
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11753
|
+
billing_address: {
|
|
11754
|
+
line1: "line1",
|
|
11755
|
+
city: "city",
|
|
11756
|
+
state: "state",
|
|
11757
|
+
postal_code: "postal_code",
|
|
11758
|
+
country: "country"
|
|
11759
|
+
}
|
|
11686
11760
|
});
|
|
11687
11761
|
|
|
11688
11762
|
```
|
|
@@ -11699,7 +11773,7 @@ await client.customer.events.ticketing.calculatePrice({
|
|
|
11699
11773
|
<dl>
|
|
11700
11774
|
<dd>
|
|
11701
11775
|
|
|
11702
|
-
**request:** `FiveOneEat.customer.events.
|
|
11776
|
+
**request:** `FiveOneEat.customer.events.AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest`
|
|
11703
11777
|
|
|
11704
11778
|
</dd>
|
|
11705
11779
|
</dl>
|
|
@@ -11719,7 +11793,7 @@ await client.customer.events.ticketing.calculatePrice({
|
|
|
11719
11793
|
</dl>
|
|
11720
11794
|
</details>
|
|
11721
11795
|
|
|
11722
|
-
<details><summary><code>client.customer.events.ticketing.<a href="/src/api/resources/customer/resources/events/resources/ticketing/client/Client.ts">
|
|
11796
|
+
<details><summary><code>client.customer.events.ticketing.<a href="/src/api/resources/customer/resources/events/resources/ticketing/client/Client.ts">confirmOrder</a>({ ...params }) -> FiveOneEat.ConfirmOrderTicketingResponse</code></summary>
|
|
11723
11797
|
<dl>
|
|
11724
11798
|
<dd>
|
|
11725
11799
|
|
|
@@ -11731,8 +11805,8 @@ await client.customer.events.ticketing.calculatePrice({
|
|
|
11731
11805
|
<dl>
|
|
11732
11806
|
<dd>
|
|
11733
11807
|
|
|
11734
|
-
|
|
11735
|
-
|
|
11808
|
+
Confirm a completed Stripe payment and create the ticket order.
|
|
11809
|
+
The payment must have succeeded before calling this endpoint.
|
|
11736
11810
|
</dd>
|
|
11737
11811
|
</dl>
|
|
11738
11812
|
</dd>
|
|
@@ -11747,9 +11821,9 @@ Returns a client_secret for the mobile app to confirm payment with Stripe.
|
|
|
11747
11821
|
<dd>
|
|
11748
11822
|
|
|
11749
11823
|
```typescript
|
|
11750
|
-
await client.customer.events.ticketing.
|
|
11824
|
+
await client.customer.events.ticketing.confirmOrder({
|
|
11751
11825
|
eventId: "eventId",
|
|
11752
|
-
|
|
11826
|
+
payment_intent_id: "payment_intent_id"
|
|
11753
11827
|
});
|
|
11754
11828
|
|
|
11755
11829
|
```
|
|
@@ -11766,7 +11840,7 @@ await client.customer.events.ticketing.createPaymentIntent({
|
|
|
11766
11840
|
<dl>
|
|
11767
11841
|
<dd>
|
|
11768
11842
|
|
|
11769
|
-
**request:** `FiveOneEat.customer.events.
|
|
11843
|
+
**request:** `FiveOneEat.customer.events.StoreTicketOrderRequest`
|
|
11770
11844
|
|
|
11771
11845
|
</dd>
|
|
11772
11846
|
</dl>
|
|
@@ -11786,25 +11860,10 @@ await client.customer.events.ticketing.createPaymentIntent({
|
|
|
11786
11860
|
</dl>
|
|
11787
11861
|
</details>
|
|
11788
11862
|
|
|
11789
|
-
<details><summary><code>client.customer.events.ticketing.<a href="/src/api/resources/customer/resources/events/resources/ticketing/client/Client.ts">
|
|
11790
|
-
<dl>
|
|
11791
|
-
<dd>
|
|
11792
|
-
|
|
11793
|
-
#### 📝 Description
|
|
11794
|
-
|
|
11795
|
-
<dl>
|
|
11796
|
-
<dd>
|
|
11797
|
-
|
|
11863
|
+
<details><summary><code>client.customer.events.ticketing.<a href="/src/api/resources/customer/resources/events/resources/ticketing/client/Client.ts">releaseHold</a>({ ...params }) -> void</code></summary>
|
|
11798
11864
|
<dl>
|
|
11799
11865
|
<dd>
|
|
11800
11866
|
|
|
11801
|
-
Confirm a completed Stripe payment and create the ticket order.
|
|
11802
|
-
The payment must have succeeded before calling this endpoint.
|
|
11803
|
-
</dd>
|
|
11804
|
-
</dl>
|
|
11805
|
-
</dd>
|
|
11806
|
-
</dl>
|
|
11807
|
-
|
|
11808
11867
|
#### 🔌 Usage
|
|
11809
11868
|
|
|
11810
11869
|
<dl>
|
|
@@ -11814,10 +11873,9 @@ The payment must have succeeded before calling this endpoint.
|
|
|
11814
11873
|
<dd>
|
|
11815
11874
|
|
|
11816
11875
|
```typescript
|
|
11817
|
-
await client.customer.events.ticketing.
|
|
11876
|
+
await client.customer.events.ticketing.releaseHold({
|
|
11818
11877
|
eventId: "eventId",
|
|
11819
|
-
|
|
11820
|
-
session_id: "session_id"
|
|
11878
|
+
sessionId: "sessionId"
|
|
11821
11879
|
});
|
|
11822
11880
|
|
|
11823
11881
|
```
|
|
@@ -11834,7 +11892,7 @@ await client.customer.events.ticketing.confirmOrder({
|
|
|
11834
11892
|
<dl>
|
|
11835
11893
|
<dd>
|
|
11836
11894
|
|
|
11837
|
-
**request:** `FiveOneEat.customer.events.
|
|
11895
|
+
**request:** `FiveOneEat.customer.events.ReleaseHoldTicketingRequest`
|
|
11838
11896
|
|
|
11839
11897
|
</dd>
|
|
11840
11898
|
</dl>
|