Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 859b1cb

Browse files
authored
Add new createTaxQuote() method (#165)
1 parent 5b0d0f4 commit 859b1cb

4 files changed

Lines changed: 71 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 4.2.10 (December 16, 2021)
4+
- 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.
5+
36
## 4.2.9 (December 8, 2021)
47
- 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.
58
- 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.

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Client
1616
*
1717
* @const string
1818
*/
19-
const VERSION = '4.2.9';
19+
const VERSION = '4.2.10';
2020

2121
/**
2222
* Guzzle service description

src/Resources/v9/service-description.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
'search.php',
6969
'settings.php',
7070
'shipments.php',
71+
'tax.php',
7172
'ticket_groups.php',
7273
'tickets.php',
7374
'users.php',

src/Resources/v9/tax.php

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Operations
8+
|--------------------------------------------------------------------------
9+
|
10+
| This array of operations is translated into methods that complete these
11+
| requests based on their configuration.
12+
|
13+
*/
14+
15+
'operations' => [
16+
17+
/**
18+
* Tax Quotes / Create
19+
*/
20+
'createTaxQuote' => [
21+
'extends' => null,
22+
'httpMethod' => 'POST',
23+
'uri' => '/v9/tax_quotes',
24+
'summary' => 'Create a tax quote.',
25+
'notes' => '',
26+
'documentationUrl' => 'https://ticketevolution.atlassian.net/wiki/spaces/API/pages/2898427919/WIP+Tax+Quotes+Create',
27+
'deprecated' => false,
28+
'responseModel' => 'defaultJsonResponse',
29+
'parameters' => [
30+
'price' => [
31+
'location' => 'json',
32+
'type' => 'numeric',
33+
'description' => 'The price the customer will be charged for each individual ticket.',
34+
'required' => true,
35+
],
36+
'quantity' => [
37+
'location' => 'json',
38+
'type' => 'integer',
39+
'description' => 'The number of tickets the customer is purchasing.',
40+
'required' => true,
41+
],
42+
'ticket_group_id' => [
43+
'location' => 'json',
44+
'type' => 'integer',
45+
'description' => 'The ID of the ticket group from which the customer is purchasing.',
46+
'required' => true,
47+
],
48+
],
49+
'additionalParameters' => ['location' => 'json'],
50+
],
51+
52+
53+
],
54+
55+
/*
56+
|--------------------------------------------------------------------------
57+
| Models
58+
|--------------------------------------------------------------------------
59+
|
60+
| This array of models is specifications to returning the response
61+
| from the operation methods.
62+
|
63+
*/
64+
65+
'models' => [],
66+
];

0 commit comments

Comments
 (0)