parsec_client 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 231044885d252876e832a342850a3522f19b374c0d67ed376f62195d39811e99
4
- data.tar.gz: '0391ea85292281e1578feec3fc3f06fb1d57a23d2103dc90990efe254ec02921'
3
+ metadata.gz: 54bdb65b9781cf6257d6d994ad99a9ae9b3831093c5e473baa663cac43a8293a
4
+ data.tar.gz: 419a20db82910f817f1eacfcfcc73899feae88703feac0bfb8bc42efcd0d4ed5
5
5
  SHA512:
6
- metadata.gz: aab1651146c8ebffa69f0f8d51744075a106d5483ea0d4086cd9b9c8f62fe15db52a981193c24e22f92f04254f43faf584c905a6f00ac639bf1a53a9ac3f2803
7
- data.tar.gz: f90b05acae4b8e1a8086aa85d54174fff9e50f10e87aeb193dfb84f8a6a807c9c889009323667701b262f4166fc98e73cf0067fef442cef4e629b8c58e393b97
6
+ metadata.gz: 4eab31b3599574e562b769980505dc79e9850500d7e00612a27577eb4a561da788f86a9a9d374c0d9029410dce657cab6cb3afb923aa071e25f070514ee0851e
7
+ data.tar.gz: af69156f6d44b15d23fb148a28fadcd3b611fdd52d153601782e99cf3095b681b1ade6092dec6c320504d2ed8616ff80199122024fbe4f8350552b83ccc39d91
@@ -24,7 +24,7 @@ module Parsec
24
24
  end
25
25
 
26
26
  def client(endpoint)
27
- Savon.client endpoint: "#{Parsec.configuration.host}/NewAvailabilityServlet/#{RESOURCES[endpoint]}",
27
+ Savon.client endpoint: "#{ParsecClient.configuration.host}/NewAvailabilityServlet/#{RESOURCES[endpoint]}",
28
28
  namespace: NAMESPACE,
29
29
  convert_request_keys_to: :camelcase,
30
30
  soap_header: security_tag
@@ -48,19 +48,15 @@ module Parsec
48
48
  end
49
49
 
50
50
  def username
51
- @integration&.parsec_username.presence || Parsec.configuration.username
51
+ @integration&.parsec_username.presence || ParsecClient.configuration.username
52
52
  end
53
53
 
54
54
  def password
55
- @integration&.parsec_password.presence || Parsec.configuration.password
55
+ @integration&.parsec_password.presence || ParsecClient.configuration.password
56
56
  end
57
57
 
58
58
  def context
59
- Parsec.configuration.context
60
- end
61
-
62
- def logger
63
- @my_logger ||= Logger.new("#{Rails.root}/log/parsec.log")
59
+ ParsecClient.configuration.context
64
60
  end
65
61
  end
66
62
  end
@@ -72,8 +72,6 @@ module Parsec
72
72
  response = client(:reservation).call('OTA_HotelResRQ', attributes: attributes, message: message)
73
73
  if type == 'Booking'
74
74
  request = client(:reservation).build_request('OTA_HotelResRQ', attributes: attributes, message: message)
75
- logger.info('BOOKING REQUEST') { request }
76
- logger.info('BOOKING RESPONSE') { response.http.body }
77
75
  end
78
76
 
79
77
  response.body
@@ -87,8 +85,6 @@ module Parsec
87
85
  response = client(:cancel).call('OTA_CancelRQ', attributes: attributes, message: message)
88
86
  if type == 'Cancel'
89
87
  request = client(:reservation).build_request('OTA_HotelResRQ', attributes: attributes, message: message)
90
- logger.info('CANCEL REQUEST') { request }
91
- logger.info('CANCEL RESPONSE') { response.http.body }
92
88
  end
93
89
 
94
90
  response.body
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsec_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Kniazevych