avangate 0.1.8 → 0.1.9

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: 99d44300ab535eca54d6e1e69d58d34c022e7425
4
- data.tar.gz: 0042118b5a6c03460f2ed5cd303b77cce51731e5
3
+ metadata.gz: 6e1e53844fdb5c21cb565db3b918694abf4cf432
4
+ data.tar.gz: c1a03f083dbbe0902625d9aaa3e1ed79c8434650
5
5
  SHA512:
6
- metadata.gz: 8937f339c993d4808bc17878f1f5394206c737e327976090bef849f9902fbce7e13381c61cfe25928fa9d16071282a3f3f9d6e0a88d52b99dd38464fdc9fac6a
7
- data.tar.gz: 96fd57d16ec48dd2f721bcb5477f6eb30110bcb6bb591e549cb84c0bd1faa8df884cdb53c6abdde835d64abb3383e46cc0dbb3ecab0a4b2dac16939923e0fc74
6
+ metadata.gz: 5dd773a6a2b1c22f188c5d1088d53d563c23c66edeff15af45e8885ed4664580ae607e38d9007637d75f25e503d1c5bbe523745d0d5ec7ca8308f15f91d067ef
7
+ data.tar.gz: 6bd60df22dfa289b09237a3776fbdf2fba1ac4fe963f15a9635581dbc98f5e8631c4cf4502f20f062a526f79a9f6deaa4da2606ec9f274df5e1d15f006e4c1ac
data/lib/avangate.rb CHANGED
@@ -17,7 +17,7 @@ module Avangate
17
17
  end
18
18
  end
19
19
 
20
- def self.addProduct(options={})
20
+ def self.add_product(options={})
21
21
  raise MissingSessionId, "missing param session_id" unless options[:session_id].presence
22
22
  raise MissingProductId, "missing param product_id" unless options[:product_id].presence
23
23
  quantity = options[:quantity].presence ? options[:quantity] : 1
@@ -27,7 +27,7 @@ module Avangate
27
27
  Quantity: quantity
28
28
 
29
29
  }
30
- response = client.call :addProduct, message: params
30
+ response = client.call :add_product, message: params
31
31
  return response.body.first[1].first[1]
32
32
  end
33
33
 
@@ -1,3 +1,3 @@
1
1
  module Avangate
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avangate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo