seatschart 0.4.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 +4 -4
- data/README.md +46 -10
- data/lib/seatschart/api/audit_api.rb +2 -2
- data/lib/seatschart/api/auth_api.rb +4 -4
- data/lib/seatschart/api/billing_api.rb +93 -12
- data/lib/seatschart/api/charts_api.rb +52 -52
- data/lib/seatschart/api/embed_origins_api.rb +55 -0
- data/lib/seatschart/api/events_api.rb +110 -104
- data/lib/seatschart/api/orders_api.rb +6 -6
- data/lib/seatschart/api/seasons_api.rb +88 -88
- data/lib/seatschart/api/seats_api.rb +8 -8
- data/lib/seatschart/api/usage_api.rb +4 -4
- data/lib/seatschart/api/workspace_api.rb +52 -40
- data/lib/seatschart/models/{api_error.rb → api_error_body.rb} +7 -7
- data/lib/seatschart/models/delete_api_workspaces_by_workspace_id_members_by_user_id200_response.rb +221 -0
- data/lib/seatschart/models/get_api_workspaces_by_workspace_id_invitations200_response.rb +239 -0
- data/lib/seatschart/models/get_api_workspaces_by_workspace_id_invitations200_response_invitations_inner.rb +286 -0
- data/lib/seatschart/models/get_api_workspaces_by_workspace_id_members200_response.rb +239 -0
- data/lib/seatschart/models/get_api_workspaces_by_workspace_id_members200_response_members_inner.rb +288 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response.rb +288 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_account.rb +270 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_account_charts.rb +233 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_account_plan.rb +237 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_items_inner.rb +439 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_items_inner_revenue.rb +234 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_items_inner_usage.rb +271 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_seats.rb +431 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_seats_overage.rb +233 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_seats_projected.rb +237 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_totals.rb +318 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_totals_revenue.rb +238 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_totals_seats.rb +253 -0
- data/lib/seatschart/models/post_api_billing_actions_change_plan_request.rb +256 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_update_extra_data_request_objects_inner.rb +0 -2
- data/lib/seatschart/models/post_api_orders_by_order_id_cancel_request.rb +44 -4
- data/lib/seatschart/models/post_api_sandboxes201_response.rb +0 -4
- data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_reset200_response.rb +0 -2
- data/lib/seatschart/models/post_api_seats_confirm_request.rb +26 -4
- data/lib/seatschart/models/post_api_workspaces200_response.rb +0 -4
- data/lib/seatschart/models/post_api_workspaces_by_workspace_id_invitations201_response.rb +238 -0
- data/lib/seatschart/models/post_api_workspaces_by_workspace_id_invitations201_response_invitation.rb +286 -0
- data/lib/seatschart/version.rb +1 -1
- data/lib/seatschart/workspaces.rb +172 -0
- data/lib/seatschart.rb +23 -3
- metadata +25 -5
- data/lib/seatschart/models/get_api_workspaces_created_by_api_parameter.rb +0 -103
- data/lib/seatschart/models/get_api_workspaces_overview_created_by_api_parameter.rb +0 -103
|
@@ -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 `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`).
|
|
33
|
+
# 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`).
|
|
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
|
|
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.
|
|
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
|
|
96
|
-
# 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.
|
|
95
|
+
# Cancel an order, or some of its seats, and preserve its history; does not refund payment
|
|
96
|
+
# 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.
|
|
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
|