tour_cms_api 1.0.2 → 1.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11d05b1d0ff83713e47b4547c43f256b8ffd7b87cbde142c8b2b213d445d2824
4
- data.tar.gz: 7937e1396f0a4a0a3ef58027af27e9a923c75346f55dc835e8aa10d03c10f7ee
3
+ metadata.gz: 49b78f2957e7e2249771343d23f8fd96d2d7d816e449c6b80f1e54f33edfeeea
4
+ data.tar.gz: d3e64464c950654eae4ff828d0b2cfdfc370ce0da5fdd258d1f3a584976a820a
5
5
  SHA512:
6
- metadata.gz: fba1a9ce11bd92edb0dbada59076ce0a71630bbbc3fcc6b4d393bf8007a6f61329abea81493707be77b7a5c65df66ba6800f2a61402d90d6971fc7838b4792d4
7
- data.tar.gz: 66cd8705360c3b4ace36a438c52d41f69abae2bc3deecea0b51f6a333ca8c9f4dc45fc14b91b455575e3941e284d76adc73e55158ebbac6c8b7b58655e61c793
6
+ metadata.gz: 771cf491feb386e13a11286c028e3b66a9dac3138f65596db7feb5f7682b62516ddd32729b61d7e24365dd3f3e57cd29f088f49e49f37de1e626a1f596c99777
7
+ data.tar.gz: 0a414eaecfa2659b9f0cf006d80cf5cbc5e7eb23c2af57bd453d1425d77f8bc5cbb065b896a9875b4b921381569010c5141ee9248e3bf687170c7fa63758b745
data/README.md CHANGED
@@ -80,6 +80,9 @@ Many TourCMS methods accept parameters. Most methods take a hash of parameters l
80
80
  * check\_tour\_availability
81
81
  * booking\_start\_new
82
82
  * booking\_commit\_new
83
+ * booking\_show
84
+ * booking\_cancel
85
+ * booking\_send\_email
83
86
 
84
87
  ## Dependencies
85
88
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -87,6 +87,20 @@ module TourCMS
87
87
  request("/c/booking/new/commit.xml", channel, {}, "POST")
88
88
  end
89
89
 
90
+ def booking_show(params, channel)
91
+ request("/c/booking/show.xml", channel, params)
92
+ end
93
+
94
+ def booking_cancel(body = '', channel)
95
+ @body = body
96
+ request("/c/booking/cancel.xml", channel, {}, "POST")
97
+ end
98
+
99
+ def booking_send_email(body = '', channel)
100
+ @body = body
101
+ request("/c/booking/email/send.xml", channel, {}, "POST")
102
+ end
103
+
90
104
  private
91
105
 
92
106
  def generate_signature(path, verb, channel, outbound_time)
data/tour_cms.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "tour_cms_api"
8
- s.version = "1.0.2"
8
+ s.version = "1.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Luis Pimenta"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tour_cms_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Pimenta