Skip to content

Commit

Permalink
Support new /v9/listings endpoints (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwcobb authored Dec 8, 2021
1 parent b6f09f3 commit 5b0d0f4
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 4.2.9 (December 8, 2021)
- Add new `listings()` method to use the new faster and more efficient [Listings / Index](https://ticketevolution.atlassian.net/wiki/spaces/API/pages/2853797930/Listings+Index) endpoint.
- Add new `showListing()` method to use the new faster and more efficient [Listings / Show](https://ticketevolution.atlassian.net/wiki/spaces/API/pages/2895052808/Listings+Show) endpoint.

## 4.2.8 (November 29, 2021)
- Add new `deleteClientEmailAddress()` method.

Expand Down
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Client
*
* @const string
*/
const VERSION = '4.2.8';
const VERSION = '4.2.9';

/**
* Guzzle service description
Expand Down
125 changes: 125 additions & 0 deletions src/Resources/v9/listings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Operations
|--------------------------------------------------------------------------
|
| This array of operations is translated into methods that complete these
| requests based on their configuration.
|
*/

'operations' => [

/**
* Listings / Index
*/
'listings' => [
'extends' => null,
'httpMethod' => 'GET',
'uri' => '/v9/listings',
'summary' => 'The new, faster way to list all ticket groups for an event.',
'notes' => '',
'documentationUrl' => 'https://ticketevolution.atlassian.net/wiki/spaces/API/pages/2853797930/Listings+Index',
'deprecated' => false,
'responseModel' => 'defaultJsonResponse',
'parameters' => [
'event_id' => [
'location' => 'query',
'type' => 'integer',
'description' => 'ID of the Event for which you would like to list tickets.',
'required' => true,
],
'type' => [
'location' => 'query',
'type' => 'string',
'description' => 'Filter by Ticket Group Type.',
'required' => false,
'enum' => [
'event',
'parking',
]
],
'quantity' => [
'location' => 'query',
'type' => 'integer',
'description' => 'Filter by number of tickets greater than passed value.',
'required' => false,
],
'section' => [
'location' => 'query',
'type' => 'string',
'description' => 'Filter by exact match section.',
'required' => false,
],
'row' => [
'location' => 'query',
'type' => 'string',
'description' => 'Filter by exact match row.',
'required' => false,
],
'owned' => [
'location' => 'query',
'type' => ['boolean', 'string'],
'description' => 'Show only your own listings.',
'required' => false,
'format' => 'boolean-string',
],
'order_by' => [
'location' => 'query',
'type' => 'string',
'description' => 'Sort results by any return parameter.',
'required' => false,
],
'include_tevo_section_mappings' => [
'location' => 'query',
'type' => ['boolean', 'string'],
'description' => 'Include TEvo Section Mappings for use with ticketevolution/seatmaps-client',
'required' => false,
'default' => false,
'format' => 'boolean-string',
],
],
'additionalParameters' => ['location' => 'query'],
],


/**
* Ticket Groups / Show
*/
'showListing' => [
'extends' => null,
'httpMethod' => 'GET',
'uri' => '/v9/listings/{id}',
'summary' => 'Get a single Listing (Ticket Group).',
'notes' => '',
'documentationUrl' => 'https://ticketevolution.atlassian.net/wiki/pages/viewpage.action?pageId=9469964',
'deprecated' => false,
'responseModel' => 'defaultJsonResponse',
'parameters' => [
'id' => [
'location' => 'uri',
'type' => 'integer',
'description' => 'ID of the Listing to return.',
'required' => true,
],
],
],

],

/*
|--------------------------------------------------------------------------
| Models
|--------------------------------------------------------------------------
|
| This array of models is specifications to returning the response
| from the operation methods.
|
*/

'models' => [],
];
1 change: 1 addition & 0 deletions src/Resources/v9/service-description.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
'credit_memos.php',
'events.php',
'filtered_tickets.php',
'listings.php',
'offices.php',
'orders.php',
'payments.php',
Expand Down

0 comments on commit 5b0d0f4

Please sign in to comment.