jltour-hotel 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 3e1ca11a2ad50a1700f9b382c7fd14654e9ab1df
4
- data.tar.gz: a515303d4fd58fa3e93bce3e489bd374050335fa
3
+ metadata.gz: ec906fe8d5f98ffe3b7dc36e6bd7bbd78c40afe1
4
+ data.tar.gz: 152a3c3de905843ae60cee9de24a5a85b3a2357f
5
5
  SHA512:
6
- metadata.gz: e3c2828a2c5a679b40e6cc07edddd49d467dcd299ced98b34c13d3099be530c25c8bb17afd0c50a5713083b0181393d4f87f473403237a5ec4c1b14d5ae3da1a
7
- data.tar.gz: d81e3816a798ddbf15710fc281fc5822870486f4b251d16e0313059141cafb2b3b98fecfd91c45d3d9b43330a13a704c0d551250fa56986be55356a3df38c4d1
6
+ metadata.gz: d91c5c88d945e485de75216e42eb706d3c37ba75f94dbf312de056a2880937884ff8a2ef066dc1ca0344047e137a9e281d6a8eb857f195d5b827d6970277673a
7
+ data.tar.gz: 2f1911b122fcd9740ab25beca509da3fbb53b38a2b93477649b6887793dbd0acc366b73ad49d1acd3e3d219216627ade69bc769b578cf7452807129607a93d3a
@@ -26,7 +26,7 @@ module Jltour
26
26
  request['content-type'] = 'application/json'
27
27
  request.body = @req_data = data.merge(QueryType: query_type, Usercd: @usercd, Authno: @authno).to_json
28
28
  response = http.request(request)
29
- @resp = response.read_body
29
+ JSON.parse(@resp = response.read_body)
30
30
  end
31
31
 
32
32
  def gainhotelids(city)
@@ -41,6 +41,10 @@ module Jltour
41
41
  request('hotelpriceall', hotelIds: hotelIds, roomtypeids: roomtypeids, checkInDate: checkInDate.strftime('%Y-%m-%d'), checkOutDate: checkOutDate.strftime('%Y-%m-%d'), pricingtype: pricingtype)
42
42
  end
43
43
 
44
+ def hotelpricecomfirm(hotelIds, checkInDate, checkOutDate, pricingtype = 12, roomtypeids = '')
45
+ request('hotelpricecomfirm', hotelIds: hotelIds, roomtypeids: roomtypeids, checkInDate: checkInDate.strftime('%Y-%m-%d'), checkOutDate: checkOutDate.strftime('%Y-%m-%d'), pricingtype: pricingtype)
46
+ end
47
+
44
48
  def checkratetype
45
49
  request('checkratetype')
46
50
  end
@@ -26,7 +26,7 @@ module Jltour
26
26
  request['content-type'] = 'application/xml'
27
27
  request.body = @req_data = XmlSimple.xml_out(data.merge(businesstype: business_type, customercd: @customercd, authno: @authno), 'AttrPrefix' => true, 'RootName' => 'order')
28
28
  response = http.request(request)
29
- @resp = response.read_body
29
+ XmlSimple.xml_in(@resp = response.read_body, 'ForceArray' => false)
30
30
  end
31
31
 
32
32
  def neworder(data)
@@ -1,5 +1,5 @@
1
1
  module Jltour
2
2
  module Hotel
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jltour-hotel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xiao Jie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-09 00:00:00.000000000 Z
11
+ date: 2017-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler