Skip to content

Commit e55b335

Browse files
committed
replace old XML wrapper with new f13 wrapper
fixes #31
1 parent e80e1fe commit e55b335

File tree

258 files changed

+15246
-44001
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+15246
-44001
lines changed

.coveragerc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1+
[report]
2+
exclude_lines = def __repr__

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ nosetests.xml
4444
coverage.xml
4545
*,cover
4646
.hypothesis/
47+
fixtures/cassettes
4748

4849
# Translations
4950
*.mo
@@ -63,3 +64,5 @@ sample_scripts.py
6364

6465
# virtualenvs
6566
.venv
67+
venv
68+
venv-master

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: python
22
python:
33
- 2.7
4-
- 3.4
4+
- 3.6
55
install:
66
- pip install tox-travis
77
- pip install -r requirements/test.txt

CHANGELOG.md

+204
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
# Change Log
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/).
6+
7+
## [Unreleased]
8+
9+
## [2.0.0] - 2017-05-05
10+
### Added
11+
- A new wrapper for the JSON API.
12+
- Comprehensive unit and behavioural tests.
13+
- Up-to-date docs.
14+
15+
### Removed
16+
- The XML API has been deprecated in favour of the new JSON API. As such we
17+
have used this as opportunity to clean up the turgid shit show that was the
18+
previous api wrapper, and replace it with some thing alot cleaner. If you
19+
still want to use the XML API and wrapper then pin your repos at 1.13.1 as
20+
this will be last version of this library that will support it. The XML API
21+
is not likely to go away anytime soon and the wrapper should continue to
22+
work.
23+
- TL;DR everything was removed and rewritten.
24+
25+
## 1.12.0 - 2016-06-13
26+
- python3 now supported, travis config updated to reflect this.
27+
28+
## 1.11.2 - 2016-06-10
29+
- Fix special offer search ordering and add 'excluded_events_list' param to event_search
30+
31+
## 1.11.1 - 2016-06-17
32+
- Use unicode literals everywhere
33+
34+
## 1.11.0 - 2016-05-12
35+
- Removed internal api call, add custom start session method
36+
37+
## 1.10.1 - 2016-04-29
38+
- Removed logging of exceptions on API errors
39+
40+
## 1.10.0 - 2016-04-27
41+
- Added all __future__ imports to files as a step towards Python 3 compatibility.
42+
43+
## 1.9.1 - 2016-04-21
44+
- Add meta_event (e.g. touring shows) support.
45+
46+
## 1.9.0 - 2016-04-20
47+
- Mock API calls in tests using VCR.py.
48+
49+
## 1.8.7 - 2016-02-16
50+
- Add properties to TicketType object.
51+
52+
## 1.8.4 - 2015-12-16
53+
- Add project to Travis and add code coverage
54+
55+
## 1.8.3 - 2015-12-08
56+
- Add 'has_no_perfs' flag to Event object.
57+
58+
## 1.8.2 - 2015-12-02
59+
- Revert changes to raise BackendCallFailure until better solution.
60+
61+
## 1.8.1 - 2015-11-26
62+
- Bugfix - passing in sub_id of None to start_session.
63+
64+
## 1.8.0 - 2015-11-20
65+
- Switch to using Requests instead of urllib2.
66+
67+
## 1.7.4 - 2015-10-22
68+
- Add properties to TicketType and Concession objects.
69+
70+
## 1.7.2 - 2015-10-15
71+
- Add 'barcode' to Seat object.
72+
73+
## 1.7.1 - 2015-10-08
74+
- Add new properties to AvailDetail class.
75+
76+
## 1.7.0 - 2015-08-25
77+
- Add Commission object, used for representing user and gross commissions. Commissions now returned at availability and purchase time.
78+
79+
## 1.6.5 - 2015-08-19
80+
- Fix bug with using alternate billing address
81+
82+
## 1.6.4 - 2015-08-10
83+
- update license and setup files
84+
85+
## 1.6.3 - 2015-08-10
86+
- Add 'separator' attribute to Seat object
87+
88+
## 1.6.2 - 2015-08-07
89+
- Add 'purchase_reservation' call for purchases made on credit
90+
91+
## 1.6.1 - 2015-08-03
92+
- Add additional order information attributes
93+
94+
## 1.6.0 - 2015-07-03
95+
- Modify how seat blocks are passed into get_concessions()
96+
97+
## 1.5.3 - 2015-06-30
98+
- Add page_length and page_number to datetime search
99+
100+
## 1.5.2 - 2015-06-22
101+
- Change default start session URL to use HTTPS
102+
103+
## 1.5.1 - 2015-05-06
104+
- Fix a potential caching issue when getting valid ticket quantities from an event
105+
106+
## 1.5.0 - 2015-06-05
107+
- Add support for upfront data. This is required by the core for redeem users.
108+
109+
## 1.4.17 - 2015-04-01
110+
- For special offer event searches add max_iterations argument to improve performance with the trade-off of not guaranteeing returning all results.
111+
112+
## 1.4.16 - 2015-03-26
113+
- Add has_no_booking_fee property to AvailDetail.
114+
115+
## 1.4.15 - 2015-03-26
116+
- Add avail_details_by_cheapest_ticket_type method to Event.
117+
118+
## 1.4.14 - 2015-03-16
119+
- Prevent event avail details being cached.
120+
121+
## 1.4.13 - 2015-03-13
122+
- Add AvailDetail object to event (represents detailed pricing information).
123+
124+
## 1.4.12 - 2015-03-11
125+
- Couple of minor fixes, including one for handling no availability in reserve.
126+
127+
## 1.4.11 - 2015-02-24
128+
- Minor restrict_group change.
129+
130+
## 1.4.10 - 2015-02-13
131+
- Spelling mistake in API output fixed.
132+
133+
## 1.4.9 - 2015-01-29
134+
- Set mime_text_type to 'html' for event extra_info call
135+
136+
## 1.4.8 - 2015-01-14
137+
- Fix bug when no 'event_quantity_options' in extra_info
138+
139+
## 1.4.7 - 2015-01-08
140+
- Add no_singles cost range object to CostRangeMixin and add valid_ticket_quantities method to Event
141+
142+
## 1.4.6 - 2014-12-12
143+
- Minor logging change.
144+
145+
## 1.4.5 - 2014-12-11
146+
- Add code attributes to Concession and Despatch methods, add perf_type_code to Performance and add price_band_code to TicketType.
147+
148+
## 1.4.4 - 2014-12-05
149+
- Add the ability to include additional elements in the XML passed to the API.
150+
151+
## 1.4.3 - 2014-12-04
152+
- Order object changes relating to requested seats, add restricted view attributes to ticket type, changes to purchase exceptions.
153+
154+
## 1.4.2 - 2014-12-02
155+
- Change how special offers are handled, add functionality to check if an offer is a no booking fee offer.
156+
157+
## 1.4.1 - 2014-11-19
158+
- Add support for retrieving event structured content.
159+
160+
## 1.4.0 - 2014-11-18
161+
- Add Currency object and remove core_currency references, add support for retrieving user commission information and structured event information, include price band descriptions in ticket type description.
162+
163+
## 1.3.0 - 2014-10-29
164+
- Change 'number_available' attribute to be integer, add total_seats and contiguous_seats attributes to the TicketType and Concession objects.
165+
166+
## 1.2.3 - 2014-10-28
167+
- Fix bug with logging and minor bug with the Performance object.
168+
169+
## 1.2.2 - 2014-10-27
170+
- Fix bug with Seats that have no column/row id.
171+
172+
## 1.2.1 - 2014-10-24
173+
- Fix bug with Seat object not parsing for some unreserved seats/
174+
175+
## 1.2.0 - 2014-10-23
176+
- Add support for selecting specific seats, bug fix in creating reservation.
177+
178+
## 1.1.3 - 2014-10-17
179+
- Add discount attributes to core price_band object.
180+
181+
## 1.1.2 - 2014-10-13
182+
- Add remote_site attribute in Reservation.
183+
184+
## 1.1.1 - 2014-10-13
185+
- Added languages attribute to Customer.
186+
187+
## 1.1.0 - 2014-10-09
188+
- Support for actual seats, retrieving quantity options without availability, new event images.
189+
190+
## 1.0.3 - 2014-10-03
191+
- Fix bug in availability objects.
192+
193+
## 1.0.2 - 2014-09-17
194+
- Change to get_concessions docs.
195+
196+
## 1.0.1 - 2014-09-10
197+
- Fix bug with confirmation emails.
198+
199+
## 1.0.0 - 2014-09-08
200+
- Initial release.
201+
202+
[Unreleased]: https://github.com/ingresso-group/pyticketswitch/compare/2.0.0...HEAD
203+
[2.0.0]: https://github.com/ingresso-group/pyticketswitch/compare/1.13.1...2.0.0
204+

CHANGES.txt

-123
This file was deleted.

LICENSE.txt LICENSE

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
Copyright (c) 2014 Ingresso Group
1+
Copyright 2017 Ingresso Group LTD
22

3-
Permission is hereby granted, free of charge, to any person obtaining a copy
4-
of this software and associated documentation files (the "Software"), to deal
5-
in the Software without restriction, including without limitation the rights
6-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7-
copies of the Software, and to permit persons to whom the Software is
8-
furnished to do so, subject to the following conditions:
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7+
of the Software, and to permit persons to whom the Software is furnished to do
8+
so, subject to the following conditions:
99

10-
The above copyright notice and this permission notice shall be included in
11-
all copies or substantial portions of the Software.
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
1212

1313
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1414
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1515
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1616
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1717
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19-
THE SOFTWARE.
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

MANIFEST.in

-2
This file was deleted.

0 commit comments

Comments
 (0)