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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +46 -10
  3. data/lib/seatschart/api/audit_api.rb +2 -2
  4. data/lib/seatschart/api/auth_api.rb +4 -4
  5. data/lib/seatschart/api/billing_api.rb +93 -12
  6. data/lib/seatschart/api/charts_api.rb +52 -52
  7. data/lib/seatschart/api/embed_origins_api.rb +55 -0
  8. data/lib/seatschart/api/events_api.rb +110 -104
  9. data/lib/seatschart/api/orders_api.rb +6 -6
  10. data/lib/seatschart/api/seasons_api.rb +88 -88
  11. data/lib/seatschart/api/seats_api.rb +8 -8
  12. data/lib/seatschart/api/usage_api.rb +4 -4
  13. data/lib/seatschart/api/workspace_api.rb +52 -40
  14. data/lib/seatschart/models/{api_error.rb → api_error_body.rb} +7 -7
  15. data/lib/seatschart/models/delete_api_workspaces_by_workspace_id_members_by_user_id200_response.rb +221 -0
  16. data/lib/seatschart/models/get_api_workspaces_by_workspace_id_invitations200_response.rb +239 -0
  17. data/lib/seatschart/models/get_api_workspaces_by_workspace_id_invitations200_response_invitations_inner.rb +286 -0
  18. data/lib/seatschart/models/get_api_workspaces_by_workspace_id_members200_response.rb +239 -0
  19. data/lib/seatschart/models/get_api_workspaces_by_workspace_id_members200_response_members_inner.rb +288 -0
  20. data/lib/seatschart/models/get_api_workspaces_overview200_response.rb +288 -0
  21. data/lib/seatschart/models/get_api_workspaces_overview200_response_account.rb +270 -0
  22. data/lib/seatschart/models/get_api_workspaces_overview200_response_account_charts.rb +233 -0
  23. data/lib/seatschart/models/get_api_workspaces_overview200_response_account_plan.rb +237 -0
  24. data/lib/seatschart/models/get_api_workspaces_overview200_response_items_inner.rb +439 -0
  25. data/lib/seatschart/models/get_api_workspaces_overview200_response_items_inner_revenue.rb +234 -0
  26. data/lib/seatschart/models/get_api_workspaces_overview200_response_items_inner_usage.rb +271 -0
  27. data/lib/seatschart/models/get_api_workspaces_overview200_response_seats.rb +431 -0
  28. data/lib/seatschart/models/get_api_workspaces_overview200_response_seats_overage.rb +233 -0
  29. data/lib/seatschart/models/get_api_workspaces_overview200_response_seats_projected.rb +237 -0
  30. data/lib/seatschart/models/get_api_workspaces_overview200_response_totals.rb +318 -0
  31. data/lib/seatschart/models/get_api_workspaces_overview200_response_totals_revenue.rb +238 -0
  32. data/lib/seatschart/models/get_api_workspaces_overview200_response_totals_seats.rb +253 -0
  33. data/lib/seatschart/models/post_api_billing_actions_change_plan_request.rb +256 -0
  34. data/lib/seatschart/models/post_api_events_by_event_id_actions_update_extra_data_request_objects_inner.rb +0 -2
  35. data/lib/seatschart/models/post_api_orders_by_order_id_cancel_request.rb +44 -4
  36. data/lib/seatschart/models/post_api_sandboxes201_response.rb +0 -4
  37. data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_reset200_response.rb +0 -2
  38. data/lib/seatschart/models/post_api_seats_confirm_request.rb +26 -4
  39. data/lib/seatschart/models/post_api_workspaces200_response.rb +0 -4
  40. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_invitations201_response.rb +238 -0
  41. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_invitations201_response_invitation.rb +286 -0
  42. data/lib/seatschart/version.rb +1 -1
  43. data/lib/seatschart/workspaces.rb +172 -0
  44. data/lib/seatschart.rb +23 -3
  45. metadata +25 -5
  46. data/lib/seatschart/models/get_api_workspaces_created_by_api_parameter.rb +0 -103
  47. 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 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