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 +4 -4
- data/lib/avangate.rb +2 -2
- data/lib/avangate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e1e53844fdb5c21cb565db3b918694abf4cf432
|
|
4
|
+
data.tar.gz: c1a03f083dbbe0902625d9aaa3e1ed79c8434650
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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 :
|
|
30
|
+
response = client.call :add_product, message: params
|
|
31
31
|
return response.body.first[1].first[1]
|
|
32
32
|
end
|
|
33
33
|
|
data/lib/avangate/version.rb
CHANGED