tops_connect 0.7.1 → 0.7.2

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: 7ad44f8f8a679aa33259b21b9d83a52bb9f56e1c688d8bd47afeb2a291466e40
4
- data.tar.gz: 29719f17d7d13150d3b8a8354ad844793b8c5aa28c858e0ee564ba0831b78214
3
+ metadata.gz: 5bef3da83a04de4057b32218280fdd154f311c7d474eaf8e088477d2bb8fa1f3
4
+ data.tar.gz: cf81c0c6171ccfe70460cbe1ddd15ae37aaf86aa7ca5e9c7be2ae452775ccb02
5
5
  SHA512:
6
- metadata.gz: 4f1e81fd21268c0e0b5b6f8aef547637f4f08918fc5365f8651919f681b8223beceea62d70b978bc59f53e9907fa15eee064b51e128840b612fd7799d09482a9
7
- data.tar.gz: ae3c1658819c72baac0b2dcfc0a876ee98b851c6f84acd5541c0185102910f4414716cdb7cffe93ba444c85506bb60c24b13dcdab5664ce9de874048e19f1fad
6
+ metadata.gz: 15515caaac2db4a607233316bcda1191d9fb981fb38d7e3c75efa62110ec1d9a95e92c1fed267c5c98f74c7b2a537009e122597487da88d30c47473a378b234e
7
+ data.tar.gz: d06094a91dfeaf4b87dec453d371b173c6ccaa974917d6c20c23997273bcb86f34c15b7e6fd986fbac1eb7645281ce0fcef9a740224fc6d71443510bc3099b07
@@ -52,10 +52,10 @@ module TopsConnect
52
52
  "/#{TopsConnect.configuration.zone}/api#{endpoint}",
53
53
  query: query.merge('subscription-key' => @subscription_key),
54
54
  headers: headers.merge('community-api-key' => @community_api_key),
55
- body: body
55
+ body: body.to_json
56
56
  )
57
57
 
58
- raise_exception(response) unless response.code == 204
58
+ raise_exception(response) unless response.code == 200
59
59
 
60
60
  response.parsed_response
61
61
  end
@@ -65,7 +65,7 @@ module TopsConnect
65
65
  "/#{TopsConnect.configuration.zone}/api#{endpoint}",
66
66
  query: query.merge('subscription-key' => @subscription_key),
67
67
  headers: headers.merge('community-api-key' => @community_api_key),
68
- body: body
68
+ body: body.to_json
69
69
  )
70
70
 
71
71
  raise_exception(response) unless response.code == 200
@@ -27,10 +27,10 @@ module TopsConnect
27
27
  def charge_codes
28
28
  get('/chargecode').map do |charge_code|
29
29
  {
30
- key: charge_code['key'],
31
- code: charge_code['code'],
32
- description: charge_code['description'],
33
- name: nil
30
+ key: charge_code['ChargeCodeKey'],
31
+ code: charge_code['Code'],
32
+ description: charge_code['Description'],
33
+ name: charge_code['Name']
34
34
  }
35
35
  end
36
36
  end
@@ -4,5 +4,5 @@
4
4
  # All rights reserved.
5
5
 
6
6
  module TopsConnect
7
- VERSION = '0.7.1'
7
+ VERSION = '0.7.2'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tops_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Hoffman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-03 00:00:00.000000000 Z
11
+ date: 2020-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler