Skip to content

Commit

Permalink
Add new createTaxQuote() method (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwcobb authored Dec 16, 2021
1 parent 5b0d0f4 commit 859b1cb
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 4.2.10 (December 16, 2021)
- Add new `createTaxQuote()` method in preparation of the coming-soon [Tax Quotes / Create](https://ticketevolution.atlassian.net/wiki/spaces/API/pages/2900459521/Tax+Quotes) endpoint.

## 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.
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.9';
const VERSION = '4.2.10';

/**
* Guzzle service description
Expand Down
1 change: 1 addition & 0 deletions src/Resources/v9/service-description.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
'search.php',
'settings.php',
'shipments.php',
'tax.php',
'ticket_groups.php',
'tickets.php',
'users.php',
Expand Down
66 changes: 66 additions & 0 deletions src/Resources/v9/tax.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?php

return [

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

'operations' => [

/**
* Tax Quotes / Create
*/
'createTaxQuote' => [
'extends' => null,
'httpMethod' => 'POST',
'uri' => '/v9/tax_quotes',
'summary' => 'Create a tax quote.',
'notes' => '',
'documentationUrl' => 'https://ticketevolution.atlassian.net/wiki/spaces/API/pages/2898427919/WIP+Tax+Quotes+Create',
'deprecated' => false,
'responseModel' => 'defaultJsonResponse',
'parameters' => [
'price' => [
'location' => 'json',
'type' => 'numeric',
'description' => 'The price the customer will be charged for each individual ticket.',
'required' => true,
],
'quantity' => [
'location' => 'json',
'type' => 'integer',
'description' => 'The number of tickets the customer is purchasing.',
'required' => true,
],
'ticket_group_id' => [
'location' => 'json',
'type' => 'integer',
'description' => 'The ID of the ticket group from which the customer is purchasing.',
'required' => true,
],
],
'additionalParameters' => ['location' => 'json'],
],


],

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

'models' => [],
];

0 comments on commit 859b1cb

Please sign in to comment.