seatschart 0.5.0 → 0.6.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 590c96bfa128894d11dd556141fd811e137e0465115e0d29aecac3a5eeb4c190
4
- data.tar.gz: '0289a7df24571425b5aa5ad678c88b4f357e4fa53251a8c9a435774d99016936'
3
+ metadata.gz: e0c7006b78c0558eba70208c4566397cfe885dc90f93f7217dd4a777f16f9324
4
+ data.tar.gz: 3d5a7d53354ee12d9af76506bdd3526034043840f4abb4cef1d31e42f5eb054b
5
5
  SHA512:
6
- metadata.gz: 3fc2f7be846627bbef83a72c58ea55479bd62a668af9adb878298222e954105815b8ffd38ac1988cdf735c33bf41780fc29013770e90c3071c9ce663e08a2168
7
- data.tar.gz: 2c149651a3cb6789590b3ee99e8e8a760ced17201f00b93020fa4881f145cf1a219a47f38b59f5b65848d6ef6a1c467a93ff5878239c18bc6db2b6c79e6f4d86
6
+ metadata.gz: fcba872be3b9929944553d403f1769421d0b3debe2a3c993e7363f4021a9c8074aba7d2e29970a1e0b1144565cb36303d07a12e213dc7dc3f41f8eac990e1592
7
+ data.tar.gz: bd0b99e24db8e80f5b7739940101e7b6e6dc0083ecbd28176bf185b84a11e91a1aa3424c3536bdf2f316da3b62545efbe94a7e591afaedfbd4d6c733de27a71d
data/README.md CHANGED
@@ -98,7 +98,7 @@ Seat inventory and locking API for B2B2C integrations. Authenticate using `x-api
98
98
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
99
99
 
100
100
  - API version: 1.0.0
101
- - Package version: 0.5.0
101
+ - Package version: 0.6.0
102
102
  - Generator version: 7.11.0
103
103
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
104
104
 
@@ -111,7 +111,7 @@ gem install seatschart
111
111
  or add it to the Gemfile:
112
112
 
113
113
  ```ruby
114
- gem 'seatschart', '~> 0.5.0'
114
+ gem 'seatschart', '~> 0.6.0'
115
115
  ```
116
116
 
117
117
  ## Getting Started
@@ -245,6 +245,7 @@ Class | Method | HTTP request | Description
245
245
  *SeatsChart::EmbedApi* | [**post_api_viewer_tokens**](docs/EmbedApi.md#post_api_viewer_tokens) | **POST** /api/viewer-tokens | Mint a short-lived buyer (viewer) token with the partner API key
246
246
  *SeatsChart::EmbedOriginsApi* | [**delete_api_embed_origins_by_id**](docs/EmbedOriginsApi.md#delete_api_embed_origins_by_id) | **DELETE** /api/embed-origins/{id} | Remove an embed origin
247
247
  *SeatsChart::EmbedOriginsApi* | [**get_api_embed_origins**](docs/EmbedOriginsApi.md#get_api_embed_origins) | **GET** /api/embed-origins | List allowed embed origins for the workspace
248
+ *SeatsChart::EmbedOriginsApi* | [**get_api_embed_tokens_frame_policy**](docs/EmbedOriginsApi.md#get_api_embed_tokens_frame_policy) | **GET** /api/embed-tokens/frame-policy | Resolve the embed origins of an embed token
248
249
  *SeatsChart::EmbedOriginsApi* | [**get_api_events_by_event_id_embed_policy**](docs/EmbedOriginsApi.md#get_api_events_by_event_id_embed_policy) | **GET** /api/events/{eventId}/embed-policy | Resolve tenant embed origins for an event
249
250
  *SeatsChart::EmbedOriginsApi* | [**get_api_seasons_by_season_id_embed_policy**](docs/EmbedOriginsApi.md#get_api_seasons_by_season_id_embed_policy) | **GET** /api/seasons/{seasonId}/embed-policy | Resolve tenant embed origins for a season
250
251
  *SeatsChart::EmbedOriginsApi* | [**post_api_embed_origins**](docs/EmbedOriginsApi.md#post_api_embed_origins) | **POST** /api/embed-origins | Register an allowed embed origin
@@ -376,7 +377,7 @@ Class | Method | HTTP request | Description
376
377
  *SeatsChart::ObjectStatusApi* | [**post_api_events_by_event_id_actions_retire**](docs/ObjectStatusApi.md#post_api_events_by_event_id_actions_retire) | **POST** /api/events/{eventId}/actions/retire | Retire objects (not for sale, history kept)
377
378
  *SeatsChart::ObjectStatusApi* | [**post_api_events_by_event_id_actions_update_extra_data**](docs/ObjectStatusApi.md#post_api_events_by_event_id_actions_update_extra_data) | **POST** /api/events/{eventId}/actions/update-extra-data | Update extraData of objects without changing their status
378
379
  *SeatsChart::OrdersApi* | [**get_api_orders_by_order_id**](docs/OrdersApi.md#get_api_orders_by_order_id) | **GET** /api/orders/{orderId} | Read a durable confirmation and its requested items
379
- *SeatsChart::OrdersApi* | [**post_api_orders_by_order_id_cancel**](docs/OrdersApi.md#post_api_orders_by_order_id_cancel) | **POST** /api/orders/{orderId}/cancel | Cancel the entire order and preserve its history; does not refund payment
380
+ *SeatsChart::OrdersApi* | [**post_api_orders_by_order_id_cancel**](docs/OrdersApi.md#post_api_orders_by_order_id_cancel) | **POST** /api/orders/{orderId}/cancel | Cancel an order, or some of its seats, and preserve its history; does not refund payment
380
381
  *SeatsChart::PublicApi* | [**get_api_public_by_public_key_charts_by_chart_embed_policy**](docs/PublicApi.md#get_api_public_by_public_key_charts_by_chart_embed_policy) | **GET** /api/public/{publicKey}/charts/{chart}/embed-policy | Map-only embed policy of a chart
381
382
  *SeatsChart::PublicApi* | [**get_api_public_by_public_key_charts_by_chart_geometry_by_hash**](docs/PublicApi.md#get_api_public_by_public_key_charts_by_chart_geometry_by_hash) | **GET** /api/public/{publicKey}/charts/{chart}/geometry/{hash} | Map-only chart geometry (immutable, CDN-cacheable)
382
383
  *SeatsChart::PublicApi* | [**get_api_public_by_public_key_charts_by_chart_manifest**](docs/PublicApi.md#get_api_public_by_public_key_charts_by_chart_manifest) | **GET** /api/public/{publicKey}/charts/{chart}/manifest | Map-only chart manifest (CDN-cacheable)
@@ -142,7 +142,7 @@ module SeatsChart
142
142
  end
143
143
 
144
144
  # Current dashboard user
145
- # Returns the authenticated user when the Bearer token was issued by `/auth/login` or `/auth/signup`. `user.seatAllowance` is set when the workspace is on Free and used at least 80% of its seats of the month: `state` `near`, or `reached` when its events accept no new holds until `resumesAt` (the next UTC month) or an upgrade (holds already taken can still be confirmed); null otherwise. The seats are counted over every workspace of the billing account; `managedBy` is the e-mail of the account owner when the caller is not the owner (only the owner upgrades).
145
+ # Returns the authenticated user when the Bearer token was issued by `/auth/login` or `/auth/signup`. `user.seatAllowance` is set when the workspace is on Free and used at least 80% of its seats of the month: `state` `near`, or `reached` when its events accept no new holds until `resumesAt` (the next UTC month) or an upgrade (holds already taken can still be confirmed); null otherwise. The seats are counted over every workspace of the billing account; `managedBy` is the e-mail of the account owner when the caller is not the owner (only the owner upgrades). `user.platformAdmin` is true for a SeatsChart platform admin (the dashboard links to the admin panel). `user.impersonation` is set in a platform admin's read-only view of a customer workspace (`workspaceName`, `expiresAt`); writes and secrets are refused there with 403 `impersonation_read_only`.
146
146
  # @param [Hash] opts the optional parameters
147
147
  # @return [nil]
148
148
  def get_api_auth_me(opts = {})
@@ -151,7 +151,7 @@ module SeatsChart
151
151
  end
152
152
 
153
153
  # Current dashboard user
154
- # Returns the authenticated user when the Bearer token was issued by `/auth/login` or `/auth/signup`. `user.seatAllowance` is set when the workspace is on Free and used at least 80% of its seats of the month: `state` `near`, or `reached` when its events accept no new holds until `resumesAt` (the next UTC month) or an upgrade (holds already taken can still be confirmed); null otherwise. The seats are counted over every workspace of the billing account; `managedBy` is the e-mail of the account owner when the caller is not the owner (only the owner upgrades).
154
+ # Returns the authenticated user when the Bearer token was issued by `/auth/login` or `/auth/signup`. `user.seatAllowance` is set when the workspace is on Free and used at least 80% of its seats of the month: `state` `near`, or `reached` when its events accept no new holds until `resumesAt` (the next UTC month) or an upgrade (holds already taken can still be confirmed); null otherwise. The seats are counted over every workspace of the billing account; `managedBy` is the e-mail of the account owner when the caller is not the owner (only the owner upgrades). `user.platformAdmin` is true for a SeatsChart platform admin (the dashboard links to the admin panel). `user.impersonation` is set in a platform admin's read-only view of a customer workspace (`workspaceName`, `expiresAt`); writes and secrets are refused there with 403 `impersonation_read_only`.
155
155
  # @param [Hash] opts the optional parameters
156
156
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
157
157
  def get_api_auth_me_with_http_info(opts = {})
@@ -142,6 +142,61 @@ module SeatsChart
142
142
  return data, status_code, headers
143
143
  end
144
144
 
145
+ # Resolve the embed origins of an embed token
146
+ # Used by the Next.js designer and Event Manager embeds (`/embed/designer`, `/embed/manager`) to build CSP frame-ancestors from the workspace's embed origins (Settings → Embed domains). Send the designer or manager embed token (`POST /api/embed-tokens`) as `Authorization: Bearer`. Returns `origins` only. 401 for a missing, expired or foreign token.
147
+ # @param [Hash] opts the optional parameters
148
+ # @return [nil]
149
+ def get_api_embed_tokens_frame_policy(opts = {})
150
+ get_api_embed_tokens_frame_policy_with_http_info(opts)
151
+ nil
152
+ end
153
+
154
+ # Resolve the embed origins of an embed token
155
+ # Used by the Next.js designer and Event Manager embeds (&#x60;/embed/designer&#x60;, &#x60;/embed/manager&#x60;) to build CSP frame-ancestors from the workspace&#39;s embed origins (Settings → Embed domains). Send the designer or manager embed token (&#x60;POST /api/embed-tokens&#x60;) as &#x60;Authorization: Bearer&#x60;. Returns &#x60;origins&#x60; only. 401 for a missing, expired or foreign token.
156
+ # @param [Hash] opts the optional parameters
157
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
158
+ def get_api_embed_tokens_frame_policy_with_http_info(opts = {})
159
+ if @api_client.config.debugging
160
+ @api_client.config.logger.debug 'Calling API: EmbedOriginsApi.get_api_embed_tokens_frame_policy ...'
161
+ end
162
+ # resource path
163
+ local_var_path = '/api/embed-tokens/frame-policy'
164
+
165
+ # query parameters
166
+ query_params = opts[:query_params] || {}
167
+
168
+ # header parameters
169
+ header_params = opts[:header_params] || {}
170
+
171
+ # form parameters
172
+ form_params = opts[:form_params] || {}
173
+
174
+ # http body (model)
175
+ post_body = opts[:debug_body]
176
+
177
+ # return_type
178
+ return_type = opts[:debug_return_type]
179
+
180
+ # auth_names
181
+ auth_names = opts[:debug_auth_names] || []
182
+
183
+ new_options = opts.merge(
184
+ :operation => :"EmbedOriginsApi.get_api_embed_tokens_frame_policy",
185
+ :header_params => header_params,
186
+ :query_params => query_params,
187
+ :form_params => form_params,
188
+ :body => post_body,
189
+ :auth_names => auth_names,
190
+ :return_type => return_type
191
+ )
192
+
193
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
194
+ if @api_client.config.debugging
195
+ @api_client.config.logger.debug "API called: EmbedOriginsApi#get_api_embed_tokens_frame_policy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
196
+ end
197
+ return data, status_code, headers
198
+ end
199
+
145
200
  # Resolve tenant embed origins for an event
146
201
  # Public read used by the Next.js viewer to build CSP frame-ancestors and validate parent_origin. Also returns `publicKey` (`pub_…`) so `?workspaceKey=` can be allowlisted. Also returns `event` (`name`, `startsAt` ISO-8601 or null when the date was never set) for the buyer page header. Also returns `extraData`: true when the workspace publishes allow-listed extraData keys to buyers (the viewer then reads `GET /api/public/{publicKey}/events/{eventId}/extra-data`). Also returns `rendererDefaults`: the default renderer settings of the workspace (only the options it sets: `multiSelectEnabled`, `showFullScreenButton`, `companionSeatValidationEnabled`, `holdOnSelectForGAs`; see `GET /api/workspace/defaults`), from the cached workspace config (no query). An explicit embed / host option wins over them. Also returns `maxSeatsPerHoldToken`, the seats one hold token may hold (workspace setting, default 64; above 64 the workspace opts into large group holds and the viewer lets buyers select and hold up to that many seats in one atomic call). Returns origins, public key and the event name/date only (no tenant id). Does not require authentication.
147
202
  # @param event_id [String]
@@ -20,7 +20,7 @@ module SeatsChart
20
20
  @api_client = api_client
21
21
  end
22
22
  # Read a durable confirmation and its requested items
23
- # Partner API key with the `bookings` scope, or a dashboard session of a workspace member (any role); tenant-scoped. Returns the order status, `ticketBuyerId`, seat `items` and general-admission receipts (`gaItems`: quantity, `remaining` places after administrative releases, `cancelledAt`).
23
+ # Partner API key with the `bookings` scope, or a dashboard session of a workspace member (any role); tenant-scoped. Returns the order status, `ticketBuyerId`, seat `items` (`status` pending / confirmed / failed / cancelled, `failureCode`, `priceCents` and `ticketTypeId` as confirmed) and general-admission receipts (`gaItems`: quantity, `remaining` places after administrative releases, `cancelledAt`).
24
24
  # @param order_id [String]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [nil]
@@ -30,7 +30,7 @@ module SeatsChart
30
30
  end
31
31
 
32
32
  # Read a durable confirmation and its requested items
33
- # Partner API key with the &#x60;bookings&#x60; scope, or a dashboard session of a workspace member (any role); tenant-scoped. Returns the order status, &#x60;ticketBuyerId&#x60;, seat &#x60;items&#x60; and general-admission receipts (&#x60;gaItems&#x60;: quantity, &#x60;remaining&#x60; places after administrative releases, &#x60;cancelledAt&#x60;).
33
+ # Partner API key with the &#x60;bookings&#x60; scope, or a dashboard session of a workspace member (any role); tenant-scoped. Returns the order status, &#x60;ticketBuyerId&#x60;, seat &#x60;items&#x60; (&#x60;status&#x60; pending / confirmed / failed / cancelled, &#x60;failureCode&#x60;, &#x60;priceCents&#x60; and &#x60;ticketTypeId&#x60; as confirmed) and general-admission receipts (&#x60;gaItems&#x60;: quantity, &#x60;remaining&#x60; places after administrative releases, &#x60;cancelledAt&#x60;).
34
34
  # @param order_id [String]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -80,8 +80,8 @@ module SeatsChart
80
80
  return data, status_code, headers
81
81
  end
82
82
 
83
- # Cancel the entire order and preserve its history; does not refund payment
84
- # Requires `Idempotency-Key`. Partner API key with the `bookings` scope, or a dashboard session of a workspace admin / map editor; `reason` is stored on the cancelled reservations and receipts. Cancels every seat of the order (seats become free, or retired when not for sale) and, for **administrative bookings**, every general-admission receipt: its remaining places (quantity minus administrative releases) are returned to the area under the GA row lock in the same transaction (`gaAreas: [{ eventId, areaId, returnedPlaces }]`). Receipts stay as history with `cancelledAt`. Retrying a cancelled order returns it unchanged. Orders with non-administrative GA receipts, legacy or failed orders fail closed (409 `inventory_conflict`). Payment refunds are the integrator's responsibility.
83
+ # Cancel an order, or some of its seats, and preserve its history; does not refund payment
84
+ # Requires `Idempotency-Key`. Partner API key with the `bookings` scope, or a dashboard session of a workspace admin / map editor; `reason` is stored on the cancelled reservations and receipts. **Whole order** (no `seatIds`): cancels every seat of the order (seats become free, or retired when not for sale) and, for **administrative bookings**, every general-admission receipt: its remaining places (quantity minus administrative releases) are returned to the area under the GA row lock in the same transaction (`gaAreas: [{ eventId, areaId, returnedPlaces }]`). Receipts stay as history with `cancelledAt`. Retrying a cancelled order returns it unchanged. Orders with non-administrative GA receipts, legacy or failed orders fail closed (409 `inventory_conflict`). **Some seats** (`seatIds`, 1 to 64 seats of a `confirmed` order): only those items are cancelled. The order stays `confirmed` while items remain and becomes `cancelled` with its last item. Only the cancelled tickets return to the sales counters (meia-entrada quotas, lots, per-buyer limit). Items already cancelled are skipped, so a retry or an overlapping call returns the same result. A seat that is not an item of the order: 409 `seats_not_in_order` (`seatIds`). An order not committed yet: 409 `order_not_committed` (retry once `orderStatus` is `confirmed`). An order with general-admission receipts is cancelled whole (409 `inventory_conflict`). Response `{ orderId, status, items, remainingItems, gaAreas }`: `status` is the order status after the call, `items` the cancelled seats, `remainingItems` the seats the order keeps. Seats given back emit `objects.updated` (status `free` or `retired`, `order_id`). Payment refunds are the integrator's responsibility.
85
85
  # @param order_id [String]
86
86
  # @param post_api_orders_by_order_id_cancel_request [PostApiOrdersByOrderIdCancelRequest]
87
87
  # @param [Hash] opts the optional parameters
@@ -92,8 +92,8 @@ module SeatsChart
92
92
  nil
93
93
  end
94
94
 
95
- # Cancel the entire order and preserve its history; does not refund payment
96
- # Requires &#x60;Idempotency-Key&#x60;. Partner API key with the &#x60;bookings&#x60; scope, or a dashboard session of a workspace admin / map editor; &#x60;reason&#x60; is stored on the cancelled reservations and receipts. Cancels every seat of the order (seats become free, or retired when not for sale) and, for **administrative bookings**, every general-admission receipt: its remaining places (quantity minus administrative releases) are returned to the area under the GA row lock in the same transaction (&#x60;gaAreas: [{ eventId, areaId, returnedPlaces }]&#x60;). Receipts stay as history with &#x60;cancelledAt&#x60;. Retrying a cancelled order returns it unchanged. Orders with non-administrative GA receipts, legacy or failed orders fail closed (409 &#x60;inventory_conflict&#x60;). Payment refunds are the integrator&#39;s responsibility.
95
+ # Cancel an order, or some of its seats, and preserve its history; does not refund payment
96
+ # Requires &#x60;Idempotency-Key&#x60;. Partner API key with the &#x60;bookings&#x60; scope, or a dashboard session of a workspace admin / map editor; &#x60;reason&#x60; is stored on the cancelled reservations and receipts. **Whole order** (no &#x60;seatIds&#x60;): cancels every seat of the order (seats become free, or retired when not for sale) and, for **administrative bookings**, every general-admission receipt: its remaining places (quantity minus administrative releases) are returned to the area under the GA row lock in the same transaction (&#x60;gaAreas: [{ eventId, areaId, returnedPlaces }]&#x60;). Receipts stay as history with &#x60;cancelledAt&#x60;. Retrying a cancelled order returns it unchanged. Orders with non-administrative GA receipts, legacy or failed orders fail closed (409 &#x60;inventory_conflict&#x60;). **Some seats** (&#x60;seatIds&#x60;, 1 to 64 seats of a &#x60;confirmed&#x60; order): only those items are cancelled. The order stays &#x60;confirmed&#x60; while items remain and becomes &#x60;cancelled&#x60; with its last item. Only the cancelled tickets return to the sales counters (meia-entrada quotas, lots, per-buyer limit). Items already cancelled are skipped, so a retry or an overlapping call returns the same result. A seat that is not an item of the order: 409 &#x60;seats_not_in_order&#x60; (&#x60;seatIds&#x60;). An order not committed yet: 409 &#x60;order_not_committed&#x60; (retry once &#x60;orderStatus&#x60; is &#x60;confirmed&#x60;). An order with general-admission receipts is cancelled whole (409 &#x60;inventory_conflict&#x60;). Response &#x60;{ orderId, status, items, remainingItems, gaAreas }&#x60;: &#x60;status&#x60; is the order status after the call, &#x60;items&#x60; the cancelled seats, &#x60;remainingItems&#x60; the seats the order keeps. Seats given back emit &#x60;objects.updated&#x60; (status &#x60;free&#x60; or &#x60;retired&#x60;, &#x60;order_id&#x60;). Payment refunds are the integrator&#39;s responsibility.
97
97
  # @param order_id [String]
98
98
  # @param post_api_orders_by_order_id_cancel_request [PostApiOrdersByOrderIdCancelRequest]
99
99
  # @param [Hash] opts the optional parameters
@@ -698,7 +698,7 @@ module SeatsChart
698
698
  end
699
699
 
700
700
  # Accept a durable confirmation intent before asynchronous seat materialization
701
- # Server-to-server only (`x-api-key`). **Pricing source** (workspace integration mode or event sales rules): `partner` events confirm the declared `seatTicketTypes` and `seatPrices` (or `paidAmountCents`) without a quote; `synced_catalog` events validate them against the pushed price table (409 `price_mismatch`, `price_table_missing`, `ticket_type_required`); `seatschart_catalog` events require a durable catalog quote created before external payment. Final ticket types are re-checked against the event quotas and buyer limit (409 `quota_exceeded`, `buyer_limit_exceeded`, `lot_sold_out`). Configure event currency before quoting. The organizer's booking limits are re-checked (defence in depth; holds enforce them atomically): 409 `booking_limit_exceeded` (`limit`, `requested`), except for holds placed before the current limits were published. After verifying payment with your provider, send quoteId, externalPaymentId, paidAmountCents, paidCurrency and the **`holdToken`** capability returned via `POST /api/seats/reserve`. These payment fields are the authenticated partner's attestation, not gateway verification by SeatsChart. Retries of already accepted legacy decisions remain supported without a quote. Consumer JWTs are rejected — confirmation must not run from the browser. Validates Redis holds, then commits the order and requested items in PostgreSQL before 202. Stream delivery is a best-effort trigger; pending SQL items are reconciled by the worker. Provide externalOrderId for stable partner identity. Legacy callers use a durable tenant-scoped Idempotency-Key identity. Season/group holds require scope=hold and the full source seatIds set; all frozen destinations form one atomic order. GET /api/orders/:orderId reports the atomic cart outcome. HTTP keys are durably bound to the authenticated credential and request; changed payload returns 409. Optional `ticketBuyerId` (opaque partner buyer id) is stored on the order, its reservations and object statuses; when omitted it is inherited from the hold token. Quote failures return 409 with `error: quote_required` (no quoteId) or `error: quote_mismatch` (quote or payment attestation does not match).
701
+ # Server-to-server only (`x-api-key`). **Pricing source** (workspace integration mode or event sales rules): `partner` events confirm the declared `seatTicketTypes` and `seatPrices` (or `paidAmountCents`) without a quote; `synced_catalog` events validate them against the pushed price table (409 `price_mismatch`, `price_table_missing`, `ticket_type_required`); `seatschart_catalog` events require a durable catalog quote created before external payment. Final ticket types are re-checked against the event quotas and buyer limit (409 `quota_exceeded`, `buyer_limit_exceeded`, `lot_sold_out`). Configure event currency before quoting. The organizer's booking limits are re-checked (defence in depth; holds enforce them atomically): 409 `booking_limit_exceeded` (`limit`, `requested`), except for holds placed before the current limits were published. After verifying payment with your provider, send quoteId, externalPaymentId, paidAmountCents, paidCurrency and the **`holdToken`** capability returned via `POST /api/seats/reserve`. These payment fields are the authenticated partner's attestation, not gateway verification by SeatsChart. Retries of already accepted legacy decisions remain supported without a quote. Consumer JWTs are rejected — confirmation must not run from the browser. Validates Redis holds, then commits the order and requested items in PostgreSQL before 202. **202 contract:** the claimed seat locks are kept for at least 15 minutes, until the worker commits the order (normally within milliseconds), and administrative bookings, releases and retirements refuse seats of accepted orders, so a 202 of a hold-based confirmation becomes `confirmed`. It can still become `failed` only when the organizer takes a seat off sale or removes it from the map before that commit, or when the commit is delayed beyond 15 minutes and the seat is taken meanwhile; `GET /api/orders/{orderId}` (`orderStatus`, item `failureCode`) and the `reservations.confirmed` webhook report the outcome. **Late payment:** `ifHoldExpired: \"claimIfFree\"` confirms a hold that expired, is unknown or lost seats when every seat is still free (not held by anyone else, not sold, for sale, on the caller's channel), applying the same quotas, lots, buyer limit (send `ticketBuyerId`) and booking limits in one atomic step; otherwise 409 `seats_unavailable` lists each refused seat and its `reason` (held, sold, not_for_sale, channel) and nothing changes. Requires `holdToken`; season / group holds are never claimed late; catalog events still need a valid quote. Stream delivery is a best-effort trigger; pending SQL items are reconciled by the worker. Provide externalOrderId for stable partner identity. Legacy callers use a durable tenant-scoped Idempotency-Key identity. Season/group holds require scope=hold and the full source seatIds set; all frozen destinations form one atomic order. GET /api/orders/:orderId reports the atomic cart outcome. HTTP keys are durably bound to the authenticated credential and request; changed payload returns 409. Optional `ticketBuyerId` (opaque partner buyer id) is stored on the order, its reservations and object statuses; when omitted it is inherited from the hold token. Quote failures return 409 with `error: quote_required` (no quoteId) or `error: quote_mismatch` (quote or payment attestation does not match).
702
702
  # @param idempotency_key [String] Required key (max 255 chars after trim); durable fallback identity when externalOrderId is omitted.
703
703
  # @param post_api_seats_confirm_request [PostApiSeatsConfirmRequest]
704
704
  # @param [Hash] opts the optional parameters
@@ -710,7 +710,7 @@ module SeatsChart
710
710
  end
711
711
 
712
712
  # Accept a durable confirmation intent before asynchronous seat materialization
713
- # Server-to-server only (&#x60;x-api-key&#x60;). **Pricing source** (workspace integration mode or event sales rules): &#x60;partner&#x60; events confirm the declared &#x60;seatTicketTypes&#x60; and &#x60;seatPrices&#x60; (or &#x60;paidAmountCents&#x60;) without a quote; &#x60;synced_catalog&#x60; events validate them against the pushed price table (409 &#x60;price_mismatch&#x60;, &#x60;price_table_missing&#x60;, &#x60;ticket_type_required&#x60;); &#x60;seatschart_catalog&#x60; events require a durable catalog quote created before external payment. Final ticket types are re-checked against the event quotas and buyer limit (409 &#x60;quota_exceeded&#x60;, &#x60;buyer_limit_exceeded&#x60;, &#x60;lot_sold_out&#x60;). Configure event currency before quoting. The organizer&#39;s booking limits are re-checked (defence in depth; holds enforce them atomically): 409 &#x60;booking_limit_exceeded&#x60; (&#x60;limit&#x60;, &#x60;requested&#x60;), except for holds placed before the current limits were published. After verifying payment with your provider, send quoteId, externalPaymentId, paidAmountCents, paidCurrency and the **&#x60;holdToken&#x60;** capability returned via &#x60;POST /api/seats/reserve&#x60;. These payment fields are the authenticated partner&#39;s attestation, not gateway verification by SeatsChart. Retries of already accepted legacy decisions remain supported without a quote. Consumer JWTs are rejected — confirmation must not run from the browser. Validates Redis holds, then commits the order and requested items in PostgreSQL before 202. Stream delivery is a best-effort trigger; pending SQL items are reconciled by the worker. Provide externalOrderId for stable partner identity. Legacy callers use a durable tenant-scoped Idempotency-Key identity. Season/group holds require scope&#x3D;hold and the full source seatIds set; all frozen destinations form one atomic order. GET /api/orders/:orderId reports the atomic cart outcome. HTTP keys are durably bound to the authenticated credential and request; changed payload returns 409. Optional &#x60;ticketBuyerId&#x60; (opaque partner buyer id) is stored on the order, its reservations and object statuses; when omitted it is inherited from the hold token. Quote failures return 409 with &#x60;error: quote_required&#x60; (no quoteId) or &#x60;error: quote_mismatch&#x60; (quote or payment attestation does not match).
713
+ # Server-to-server only (&#x60;x-api-key&#x60;). **Pricing source** (workspace integration mode or event sales rules): &#x60;partner&#x60; events confirm the declared &#x60;seatTicketTypes&#x60; and &#x60;seatPrices&#x60; (or &#x60;paidAmountCents&#x60;) without a quote; &#x60;synced_catalog&#x60; events validate them against the pushed price table (409 &#x60;price_mismatch&#x60;, &#x60;price_table_missing&#x60;, &#x60;ticket_type_required&#x60;); &#x60;seatschart_catalog&#x60; events require a durable catalog quote created before external payment. Final ticket types are re-checked against the event quotas and buyer limit (409 &#x60;quota_exceeded&#x60;, &#x60;buyer_limit_exceeded&#x60;, &#x60;lot_sold_out&#x60;). Configure event currency before quoting. The organizer&#39;s booking limits are re-checked (defence in depth; holds enforce them atomically): 409 &#x60;booking_limit_exceeded&#x60; (&#x60;limit&#x60;, &#x60;requested&#x60;), except for holds placed before the current limits were published. After verifying payment with your provider, send quoteId, externalPaymentId, paidAmountCents, paidCurrency and the **&#x60;holdToken&#x60;** capability returned via &#x60;POST /api/seats/reserve&#x60;. These payment fields are the authenticated partner&#39;s attestation, not gateway verification by SeatsChart. Retries of already accepted legacy decisions remain supported without a quote. Consumer JWTs are rejected — confirmation must not run from the browser. Validates Redis holds, then commits the order and requested items in PostgreSQL before 202. **202 contract:** the claimed seat locks are kept for at least 15 minutes, until the worker commits the order (normally within milliseconds), and administrative bookings, releases and retirements refuse seats of accepted orders, so a 202 of a hold-based confirmation becomes &#x60;confirmed&#x60;. It can still become &#x60;failed&#x60; only when the organizer takes a seat off sale or removes it from the map before that commit, or when the commit is delayed beyond 15 minutes and the seat is taken meanwhile; &#x60;GET /api/orders/{orderId}&#x60; (&#x60;orderStatus&#x60;, item &#x60;failureCode&#x60;) and the &#x60;reservations.confirmed&#x60; webhook report the outcome. **Late payment:** &#x60;ifHoldExpired: \&quot;claimIfFree\&quot;&#x60; confirms a hold that expired, is unknown or lost seats when every seat is still free (not held by anyone else, not sold, for sale, on the caller&#39;s channel), applying the same quotas, lots, buyer limit (send &#x60;ticketBuyerId&#x60;) and booking limits in one atomic step; otherwise 409 &#x60;seats_unavailable&#x60; lists each refused seat and its &#x60;reason&#x60; (held, sold, not_for_sale, channel) and nothing changes. Requires &#x60;holdToken&#x60;; season / group holds are never claimed late; catalog events still need a valid quote. Stream delivery is a best-effort trigger; pending SQL items are reconciled by the worker. Provide externalOrderId for stable partner identity. Legacy callers use a durable tenant-scoped Idempotency-Key identity. Season/group holds require scope&#x3D;hold and the full source seatIds set; all frozen destinations form one atomic order. GET /api/orders/:orderId reports the atomic cart outcome. HTTP keys are durably bound to the authenticated credential and request; changed payload returns 409. Optional &#x60;ticketBuyerId&#x60; (opaque partner buyer id) is stored on the order, its reservations and object statuses; when omitted it is inherited from the hold token. Quote failures return 409 with &#x60;error: quote_required&#x60; (no quoteId) or &#x60;error: quote_mismatch&#x60; (quote or payment attestation does not match).
714
714
  # @param idempotency_key [String] Required key (max 255 chars after trim); durable fallback identity when externalOrderId is omitted.
715
715
  # @param post_api_seats_confirm_request [PostApiSeatsConfirmRequest]
716
716
  # @param [Hash] opts the optional parameters
@@ -139,7 +139,7 @@ module SeatsChart
139
139
  def valid?
140
140
  warn '[DEPRECATED] the `valid?` method is obsolete'
141
141
  return false if @error.nil?
142
- error_validator = EnumAttributeValidator.new('String', ["ambiguous_label", "ambiguous_season_key", "bad_request", "billing_account_missing", "billing_managed_by_owner", "billing_managed_by_platform", "booking_limit_exceeded", "buyer_limit_exceeded", "category_exists", "category_in_use", "channel_forbidden", "chart_archived", "chart_invalid", "chart_key_taken", "chart_not_published", "chart_switch_conflict", "checkout_failed", "checkout_not_complete", "checkout_required", "confirm_failed", "confirmation_mismatch", "conflict", "currency_mismatch", "draft_conflict", "draft_not_found", "empty_chart", "event_key_taken", "event_not_found", "event_sale", "external_id_ambiguous", "external_id_taken", "extra_data_not_published", "extraction_failed", "for_sale_edit_conflict", "forbidden", "ga_area_occupancy_locked", "ga_area_whole", "ga_places_to_channels_disabled", "ga_table_whole", "geometry_not_published", "hold_token_conflict", "holds_paused", "idempotency_conflict", "idempotency_key_required", "idempotency_key_reused", "illegal_previous_status", "insufficient_free_places", "insufficient_inventory", "insufficient_scope", "internal_error", "invalid_body", "invalid_code", "invalid_order_id", "invalid_parameters", "invalid_signature", "inventory_conflict", "last_active_workspace", "last_workspace", "limit_exceeded", "listing_closed", "listing_has_holds", "listing_incomplete", "listing_key_taken", "listing_object_conflict", "listing_objects_removed", "listing_type_exists", "listing_type_in_use", "lot_sold_out", "no_customer", "no_subscription", "not_found", "not_published", "not_season_member", "objects_not_found", "own_workspace", "partial_season_key_taken", "payload_too_large", "pending_sign_in_expired", "plan_limit_exceeded", "plan_managed_by_sales", "plan_requires_sales", "portal_failed", "price_mismatch", "price_table_missing", "quantity_required", "quota_exceeded", "quote_conflict", "quote_mismatch", "quote_required", "rate_limit_exceeded", "redis_unavailable", "sandbox_limit_reached", "sandbox_workspace", "scan_route_retired", "season_booked", "season_bookings_not_propagated", "season_chart_mismatch", "season_has_no_chart", "season_key_taken", "season_source_event", "season_source_required", "season_status_conflict", "season_status_overridden", "service_draining", "service_unavailable", "setup_expired", "stripe_not_configured", "structural_mismatch", "subscription_active", "template_not_found", "test_workspace_not_billable", "ticket_buyer_id_required", "ticket_buyer_mismatch", "ticket_buyer_not_registered", "ticket_buyer_required", "ticket_type_required", "too_many_attempts", "too_many_events", "two_factor_already_enabled", "two_factor_enrollment_required", "two_factor_not_enabled", "two_factor_required_by_workspace", "unauthorized", "validation_error", "validation_failed", "webhook_handler_failed", "workspace_deactivated", "workspace_not_found"])
142
+ error_validator = EnumAttributeValidator.new('String', ["account_suspended", "ambiguous_label", "ambiguous_season_key", "bad_request", "billing_account_missing", "billing_managed_by_owner", "billing_managed_by_platform", "booking_limit_exceeded", "buyer_limit_exceeded", "category_exists", "category_in_use", "channel_forbidden", "chart_archived", "chart_invalid", "chart_key_taken", "chart_not_published", "chart_switch_conflict", "checkout_failed", "checkout_not_complete", "checkout_required", "confirm_failed", "confirmation_mismatch", "conflict", "currency_mismatch", "draft_conflict", "draft_not_found", "empty_chart", "event_key_taken", "event_not_found", "event_sale", "external_id_ambiguous", "external_id_taken", "extra_data_not_published", "extraction_failed", "for_sale_edit_conflict", "forbidden", "ga_area_occupancy_locked", "ga_area_whole", "ga_places_to_channels_disabled", "ga_table_whole", "geometry_not_published", "hold_token_conflict", "holds_paused", "idempotency_conflict", "idempotency_key_required", "idempotency_key_reused", "illegal_previous_status", "impersonation_read_only", "insufficient_free_places", "insufficient_inventory", "insufficient_scope", "internal_error", "invalid_body", "invalid_code", "invalid_order_id", "invalid_parameters", "invalid_signature", "inventory_conflict", "last_active_workspace", "last_workspace", "limit_exceeded", "listing_closed", "listing_has_holds", "listing_incomplete", "listing_key_taken", "listing_object_conflict", "listing_objects_removed", "listing_type_exists", "listing_type_in_use", "lot_sold_out", "no_customer", "no_subscription", "not_found", "not_published", "not_season_member", "objects_not_found", "order_not_committed", "own_workspace", "partial_season_key_taken", "payload_too_large", "pending_sign_in_expired", "plan_limit_exceeded", "plan_managed_by_sales", "plan_requires_sales", "portal_failed", "price_mismatch", "price_table_missing", "quantity_required", "quota_exceeded", "quote_conflict", "quote_mismatch", "quote_required", "rate_limit_exceeded", "redis_unavailable", "sandbox_limit_reached", "sandbox_workspace", "scan_route_retired", "season_booked", "season_bookings_not_propagated", "season_chart_mismatch", "season_has_no_chart", "season_key_taken", "season_source_event", "season_source_required", "season_status_conflict", "season_status_overridden", "seats_not_in_order", "seats_unavailable", "service_draining", "service_unavailable", "setup_expired", "stripe_not_configured", "structural_mismatch", "subscription_active", "template_not_found", "test_workspace_not_billable", "ticket_buyer_id_required", "ticket_buyer_mismatch", "ticket_buyer_not_registered", "ticket_buyer_required", "ticket_type_required", "too_many_attempts", "too_many_events", "two_factor_already_enabled", "two_factor_enrollment_required", "two_factor_not_enabled", "two_factor_required_by_workspace", "unauthorized", "validation_error", "validation_failed", "webhook_handler_failed", "workspace_deactivated", "workspace_not_found", "workspace_suspended"])
143
143
  return false unless error_validator.valid?(@error)
144
144
  return false if @message.nil?
145
145
  code_validator = EnumAttributeValidator.new('String', ["ERR_BAD_REQUEST", "ERR_NOT_FOUND", "ERR_UNAUTHORIZED", "ERR_FORBIDDEN", "ERR_CONFLICT", "ERR_VALIDATION", "ERR_SERVICE_UNAVAILABLE", "ERR_INTERNAL", "ERR_RATE_LIMIT", "ERR_PLAN_LIMIT", "ERR_IDEMPOTENCY_CONFLICT", "ERR_SEAT_LOCKED", "ERR_SEAT_UNAVAILABLE", "ERR_SEAT_SOLD", "ERR_SEAT_HOLD_REQUIRED", "SEAT_NOT_FOR_SALE", "SEAT_CHANNEL_FORBIDDEN", "BA_NO_HOLDABLE_WINDOW", "ERR_SEATS_NOT_FOUND", "ERR_EVENT_NOT_FOUND", "ERR_CHART_NOT_FOUND", "ERR_CHART_NOT_ARCHIVED", "ERR_CHART_HAS_EVENTS", "ERR_AUTO_PUBLISH_CHART_HAS_EVENTS", "ERR_CHART_TAG_INVALID", "ERR_CHART_TAG_LIMIT", "ERR_CHART_VERSION_NOT_FOUND", "ERR_MAP_VERSION_NOT_FOUND", "ERR_MAP_NEVER_PUBLISHED", "ERR_DRAFT_NOTHING_TO_DISCARD", "ERR_THUMBNAIL_EXISTS", "ERR_THUMBNAIL_INVALID", "ERR_NAME_EMPTY", "ERR_GA_HOLD_INVALID", "ERR_GA_HOLD_MISSING", "ERR_GA_CAPACITY", "ERR_GA_AREA_NOT_FOUND", "GA_NOT_FOR_SALE", "GA_CHANNEL_FORBIDDEN", "ERR_HOLD_SERVICE_UNAVAILABLE", "ERR_PUBSUB_FAILED", "ERR_CHANNEL_LIMIT", "SEASON_SOURCE_REQUIRED", "SEASON_CHART_MISMATCH", "SEASON_EVENT_ALREADY_MEMBER", "SEASON_MEMBER_CAP", "ERR_SEASON_NOT_FOUND", "ERR_PARTNER_SCOPE", "ERR_FORBIDDEN_ROLE", "ERR_SANDBOX_SCOPE", "ERR_EMBED_SCOPE", "ERR_DESIGNER_READ_ONLY", "ERR_DESIGNER_SAFE_MODE", "ERR_PASSWORD_REJECTED", "ERR_NO_WORKSPACE", "ERR_SUBSCRIPTION_EXISTS", "ERR_WORKSPACE_HEADER_NOT_ALLOWED", "ERR_ADMIN_KEY_REVOKED", "ERR_ADMIN_KEY_DASHBOARD_ONLY", "ERR_EXTERNAL_ID_TAKEN", "ERR_IDEMPOTENCY_IN_PROGRESS", "ERR_IDEMPOTENCY_KEY_REUSED", "ERR_HOLDS_PAUSED"])
@@ -150,7 +150,7 @@ module SeatsChart
150
150
  # Custom attribute writer method checking allowed values (enum).
151
151
  # @param [Object] error Object to be assigned
152
152
  def error=(error)
153
- validator = EnumAttributeValidator.new('String', ["ambiguous_label", "ambiguous_season_key", "bad_request", "billing_account_missing", "billing_managed_by_owner", "billing_managed_by_platform", "booking_limit_exceeded", "buyer_limit_exceeded", "category_exists", "category_in_use", "channel_forbidden", "chart_archived", "chart_invalid", "chart_key_taken", "chart_not_published", "chart_switch_conflict", "checkout_failed", "checkout_not_complete", "checkout_required", "confirm_failed", "confirmation_mismatch", "conflict", "currency_mismatch", "draft_conflict", "draft_not_found", "empty_chart", "event_key_taken", "event_not_found", "event_sale", "external_id_ambiguous", "external_id_taken", "extra_data_not_published", "extraction_failed", "for_sale_edit_conflict", "forbidden", "ga_area_occupancy_locked", "ga_area_whole", "ga_places_to_channels_disabled", "ga_table_whole", "geometry_not_published", "hold_token_conflict", "holds_paused", "idempotency_conflict", "idempotency_key_required", "idempotency_key_reused", "illegal_previous_status", "insufficient_free_places", "insufficient_inventory", "insufficient_scope", "internal_error", "invalid_body", "invalid_code", "invalid_order_id", "invalid_parameters", "invalid_signature", "inventory_conflict", "last_active_workspace", "last_workspace", "limit_exceeded", "listing_closed", "listing_has_holds", "listing_incomplete", "listing_key_taken", "listing_object_conflict", "listing_objects_removed", "listing_type_exists", "listing_type_in_use", "lot_sold_out", "no_customer", "no_subscription", "not_found", "not_published", "not_season_member", "objects_not_found", "own_workspace", "partial_season_key_taken", "payload_too_large", "pending_sign_in_expired", "plan_limit_exceeded", "plan_managed_by_sales", "plan_requires_sales", "portal_failed", "price_mismatch", "price_table_missing", "quantity_required", "quota_exceeded", "quote_conflict", "quote_mismatch", "quote_required", "rate_limit_exceeded", "redis_unavailable", "sandbox_limit_reached", "sandbox_workspace", "scan_route_retired", "season_booked", "season_bookings_not_propagated", "season_chart_mismatch", "season_has_no_chart", "season_key_taken", "season_source_event", "season_source_required", "season_status_conflict", "season_status_overridden", "service_draining", "service_unavailable", "setup_expired", "stripe_not_configured", "structural_mismatch", "subscription_active", "template_not_found", "test_workspace_not_billable", "ticket_buyer_id_required", "ticket_buyer_mismatch", "ticket_buyer_not_registered", "ticket_buyer_required", "ticket_type_required", "too_many_attempts", "too_many_events", "two_factor_already_enabled", "two_factor_enrollment_required", "two_factor_not_enabled", "two_factor_required_by_workspace", "unauthorized", "validation_error", "validation_failed", "webhook_handler_failed", "workspace_deactivated", "workspace_not_found"])
153
+ validator = EnumAttributeValidator.new('String', ["account_suspended", "ambiguous_label", "ambiguous_season_key", "bad_request", "billing_account_missing", "billing_managed_by_owner", "billing_managed_by_platform", "booking_limit_exceeded", "buyer_limit_exceeded", "category_exists", "category_in_use", "channel_forbidden", "chart_archived", "chart_invalid", "chart_key_taken", "chart_not_published", "chart_switch_conflict", "checkout_failed", "checkout_not_complete", "checkout_required", "confirm_failed", "confirmation_mismatch", "conflict", "currency_mismatch", "draft_conflict", "draft_not_found", "empty_chart", "event_key_taken", "event_not_found", "event_sale", "external_id_ambiguous", "external_id_taken", "extra_data_not_published", "extraction_failed", "for_sale_edit_conflict", "forbidden", "ga_area_occupancy_locked", "ga_area_whole", "ga_places_to_channels_disabled", "ga_table_whole", "geometry_not_published", "hold_token_conflict", "holds_paused", "idempotency_conflict", "idempotency_key_required", "idempotency_key_reused", "illegal_previous_status", "impersonation_read_only", "insufficient_free_places", "insufficient_inventory", "insufficient_scope", "internal_error", "invalid_body", "invalid_code", "invalid_order_id", "invalid_parameters", "invalid_signature", "inventory_conflict", "last_active_workspace", "last_workspace", "limit_exceeded", "listing_closed", "listing_has_holds", "listing_incomplete", "listing_key_taken", "listing_object_conflict", "listing_objects_removed", "listing_type_exists", "listing_type_in_use", "lot_sold_out", "no_customer", "no_subscription", "not_found", "not_published", "not_season_member", "objects_not_found", "order_not_committed", "own_workspace", "partial_season_key_taken", "payload_too_large", "pending_sign_in_expired", "plan_limit_exceeded", "plan_managed_by_sales", "plan_requires_sales", "portal_failed", "price_mismatch", "price_table_missing", "quantity_required", "quota_exceeded", "quote_conflict", "quote_mismatch", "quote_required", "rate_limit_exceeded", "redis_unavailable", "sandbox_limit_reached", "sandbox_workspace", "scan_route_retired", "season_booked", "season_bookings_not_propagated", "season_chart_mismatch", "season_has_no_chart", "season_key_taken", "season_source_event", "season_source_required", "season_status_conflict", "season_status_overridden", "seats_not_in_order", "seats_unavailable", "service_draining", "service_unavailable", "setup_expired", "stripe_not_configured", "structural_mismatch", "subscription_active", "template_not_found", "test_workspace_not_billable", "ticket_buyer_id_required", "ticket_buyer_mismatch", "ticket_buyer_not_registered", "ticket_buyer_required", "ticket_type_required", "too_many_attempts", "too_many_events", "two_factor_already_enabled", "two_factor_enrollment_required", "two_factor_not_enabled", "two_factor_required_by_workspace", "unauthorized", "validation_error", "validation_failed", "webhook_handler_failed", "workspace_deactivated", "workspace_not_found", "workspace_suspended"])
154
154
  unless validator.valid?(error)
155
155
  fail ArgumentError, "invalid value for \"error\", must be one of #{validator.allowable_values}."
156
156
  end
@@ -17,10 +17,14 @@ module SeatsChart
17
17
  class PostApiOrdersByOrderIdCancelRequest
18
18
  attr_accessor :reason
19
19
 
20
+ # Cancel only these seats of the order (1 to 64 seat ids of its items). Omitted: the whole order.
21
+ attr_accessor :seat_ids
22
+
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
23
- :'reason' => :'reason'
26
+ :'reason' => :'reason',
27
+ :'seat_ids' => :'seatIds'
24
28
  }
25
29
  end
26
30
 
@@ -32,7 +36,8 @@ module SeatsChart
32
36
  # Attribute type mapping.
33
37
  def self.openapi_types
34
38
  {
35
- :'reason' => :'String'
39
+ :'reason' => :'String',
40
+ :'seat_ids' => :'Array<String>'
36
41
  }
37
42
  end
38
43
 
@@ -62,6 +67,12 @@ module SeatsChart
62
67
  else
63
68
  self.reason = nil
64
69
  end
70
+
71
+ if attributes.key?(:'seat_ids')
72
+ if (value = attributes[:'seat_ids']).is_a?(Array)
73
+ self.seat_ids = value
74
+ end
75
+ end
65
76
  end
66
77
 
67
78
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -81,6 +92,14 @@ module SeatsChart
81
92
  invalid_properties.push('invalid value for "reason", the character length must be great than or equal to 1.')
82
93
  end
83
94
 
95
+ if !@seat_ids.nil? && @seat_ids.length > 64
96
+ invalid_properties.push('invalid value for "seat_ids", number of items must be less than or equal to 64.')
97
+ end
98
+
99
+ if !@seat_ids.nil? && @seat_ids.length < 1
100
+ invalid_properties.push('invalid value for "seat_ids", number of items must be greater than or equal to 1.')
101
+ end
102
+
84
103
  invalid_properties
85
104
  end
86
105
 
@@ -91,6 +110,8 @@ module SeatsChart
91
110
  return false if @reason.nil?
92
111
  return false if @reason.to_s.length > 512
93
112
  return false if @reason.to_s.length < 1
113
+ return false if !@seat_ids.nil? && @seat_ids.length > 64
114
+ return false if !@seat_ids.nil? && @seat_ids.length < 1
94
115
  true
95
116
  end
96
117
 
@@ -112,12 +133,31 @@ module SeatsChart
112
133
  @reason = reason
113
134
  end
114
135
 
136
+ # Custom attribute writer method with validation
137
+ # @param [Object] seat_ids Value to be assigned
138
+ def seat_ids=(seat_ids)
139
+ if seat_ids.nil?
140
+ fail ArgumentError, 'seat_ids cannot be nil'
141
+ end
142
+
143
+ if seat_ids.length > 64
144
+ fail ArgumentError, 'invalid value for "seat_ids", number of items must be less than or equal to 64.'
145
+ end
146
+
147
+ if seat_ids.length < 1
148
+ fail ArgumentError, 'invalid value for "seat_ids", number of items must be greater than or equal to 1.'
149
+ end
150
+
151
+ @seat_ids = seat_ids
152
+ end
153
+
115
154
  # Checks equality by comparing each attribute.
116
155
  # @param [Object] Object to be compared
117
156
  def ==(o)
118
157
  return true if self.equal?(o)
119
158
  self.class == o.class &&
120
- reason == o.reason
159
+ reason == o.reason &&
160
+ seat_ids == o.seat_ids
121
161
  end
122
162
 
123
163
  # @see the `==` method
@@ -129,7 +169,7 @@ module SeatsChart
129
169
  # Calculates hash code according to all attributes.
130
170
  # @return [Integer] Hash code
131
171
  def hash
132
- [reason].hash
172
+ [reason, seat_ids].hash
133
173
  end
134
174
 
135
175
  # Builds the object from hash
@@ -45,6 +45,9 @@ module SeatsChart
45
45
  # Partner and synced-catalog pricing: amount charged per seat in cents (stored on the order items for reports; validated against the synced price table).
46
46
  attr_accessor :seat_prices
47
47
 
48
+ # Late payment: when the hold expired, is unknown or lost seats, claim the seats if every one is still free (same sales rules, all or nothing; 409 `seats_unavailable` otherwise). Requires `holdToken`.
49
+ attr_accessor :if_hold_expired
50
+
48
51
  class EnumAttributeValidator
49
52
  attr_reader :datatype
50
53
  attr_reader :allowable_values
@@ -83,7 +86,8 @@ module SeatsChart
83
86
  :'hold_token' => :'holdToken',
84
87
  :'channel' => :'channel',
85
88
  :'ticket_buyer_id' => :'ticketBuyerId',
86
- :'seat_prices' => :'seatPrices'
89
+ :'seat_prices' => :'seatPrices',
90
+ :'if_hold_expired' => :'ifHoldExpired'
87
91
  }
88
92
  end
89
93
 
@@ -108,7 +112,8 @@ module SeatsChart
108
112
  :'hold_token' => :'String',
109
113
  :'channel' => :'String',
110
114
  :'ticket_buyer_id' => :'String',
111
- :'seat_prices' => :'Hash<String, Integer>'
115
+ :'seat_prices' => :'Hash<String, Integer>',
116
+ :'if_hold_expired' => :'String'
112
117
  }
113
118
  end
114
119
 
@@ -200,6 +205,10 @@ module SeatsChart
200
205
  self.seat_prices = value
201
206
  end
202
207
  end
208
+
209
+ if attributes.key?(:'if_hold_expired')
210
+ self.if_hold_expired = attributes[:'if_hold_expired']
211
+ end
203
212
  end
204
213
 
205
214
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -327,6 +336,8 @@ module SeatsChart
327
336
  return false if !@channel.nil? && @channel.to_s.length < 1
328
337
  return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length > 256
329
338
  return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length < 1
339
+ if_hold_expired_validator = EnumAttributeValidator.new('String', ["claimIfFree"])
340
+ return false unless if_hold_expired_validator.valid?(@if_hold_expired)
330
341
  true
331
342
  end
332
343
 
@@ -517,6 +528,16 @@ module SeatsChart
517
528
  @ticket_buyer_id = ticket_buyer_id
518
529
  end
519
530
 
531
+ # Custom attribute writer method checking allowed values (enum).
532
+ # @param [Object] if_hold_expired Object to be assigned
533
+ def if_hold_expired=(if_hold_expired)
534
+ validator = EnumAttributeValidator.new('String', ["claimIfFree"])
535
+ unless validator.valid?(if_hold_expired)
536
+ fail ArgumentError, "invalid value for \"if_hold_expired\", must be one of #{validator.allowable_values}."
537
+ end
538
+ @if_hold_expired = if_hold_expired
539
+ end
540
+
520
541
  # Checks equality by comparing each attribute.
521
542
  # @param [Object] Object to be compared
522
543
  def ==(o)
@@ -535,7 +556,8 @@ module SeatsChart
535
556
  hold_token == o.hold_token &&
536
557
  channel == o.channel &&
537
558
  ticket_buyer_id == o.ticket_buyer_id &&
538
- seat_prices == o.seat_prices
559
+ seat_prices == o.seat_prices &&
560
+ if_hold_expired == o.if_hold_expired
539
561
  end
540
562
 
541
563
  # @see the `==` method
@@ -547,7 +569,7 @@ module SeatsChart
547
569
  # Calculates hash code according to all attributes.
548
570
  # @return [Integer] Hash code
549
571
  def hash
550
- [scope, external_order_id, external_payment_id, quote_id, paid_amount_cents, paid_currency, event_id, seat_ids, user_id, seat_ticket_types, hold_token, channel, ticket_buyer_id, seat_prices].hash
572
+ [scope, external_order_id, external_payment_id, quote_id, paid_amount_cents, paid_currency, event_id, seat_ids, user_id, seat_ticket_types, hold_token, channel, ticket_buyer_id, seat_prices, if_hold_expired].hash
551
573
  end
552
574
 
553
575
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.11.0
11
11
  =end
12
12
 
13
13
  module SeatsChart
14
- VERSION = '0.5.0'
14
+ VERSION = '0.6.0'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seatschart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - SeatsChart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-14 00:00:00.000000000 Z
11
+ date: 2026-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus