africastalking-ruby 2.1.5 → 2.1.6
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/README.md +1 -0
- data/lib/AfricasTalking/Payments.rb +4 -1
- data/lib/AfricasTalking/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9e24a3c5e1779e88e857bbb2cc9147215d204d171c37b6a088d24dd90c0602e
|
|
4
|
+
data.tar.gz: 848e8503f7bffda4dd5ea4fbeaa5d797f68e752aacbc62a1e88e114e4cf29c3c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50eb1ff5c1de6174aee7798e9082baa46ea7d9c05fa731da76cfc6dcaf46f0770b8816412236eeead93bb7ed06764a6414f57ffe9d28f3e4748b4680b66db673
|
|
7
|
+
data.tar.gz: cf49d339131e34fb3c7b26a04ff9a7724eea280bacf6b730687506475b6ca901b458ce5776c9eaf2b457a42abe65e7e0e23e194ca24093594ede56aaa994d2b7
|
data/README.md
CHANGED
|
@@ -332,6 +332,7 @@ payments.mobileB2B options
|
|
|
332
332
|
- `destinationAccount`: This value contains the account name used by the business to receive money on the provided destinationChannel. `REQUIRED`
|
|
333
333
|
- `currencyCode`: 3-digit ISO format currency code (e.g `KES`, `USD`, `UGX` etc.) `REQUIRED`
|
|
334
334
|
- `amount`: Payment amount. `REQUIRED`
|
|
335
|
+
- `requester`: PhoneNumber through which KPLC will send tokens when using B2B to buy electricity tokens.
|
|
335
336
|
- `metadata`: Some optional data to associate with transaction.`REQUIRED`
|
|
336
337
|
|
|
337
338
|
#### Mobile Data
|
|
@@ -76,7 +76,10 @@ class Payments
|
|
|
76
76
|
'amount' => options['amount'],
|
|
77
77
|
'metadata' => options['metadata']
|
|
78
78
|
}
|
|
79
|
-
url
|
|
79
|
+
url = getMobilePaymentB2BUrl()
|
|
80
|
+
if options.key?('requester')
|
|
81
|
+
parameters['requester'] = options['requester']
|
|
82
|
+
end
|
|
80
83
|
response = sendJSONRequest(url, parameters)
|
|
81
84
|
if (@response_code == HTTP_CREATED)
|
|
82
85
|
resultObj = JSON.parse(response, :quirky_mode =>true)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: africastalking-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Mwirigi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-07-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
160
160
|
version: '0'
|
|
161
161
|
requirements: []
|
|
162
162
|
rubyforge_project:
|
|
163
|
-
rubygems_version: 2.7.
|
|
163
|
+
rubygems_version: 2.7.7
|
|
164
164
|
signing_key:
|
|
165
165
|
specification_version: 4
|
|
166
166
|
summary: Simple gem that helps you build integrations with AfricasTalking
|