pesamoni_ruby 1.0.5 → 1.0.7
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 +72 -67
- data/docs/DefaultApi.md +4 -5
- data/git_push.sh +0 -8
- data/lib/pesamoni_ruby/api/default_api.rb +6 -78
- data/lib/pesamoni_ruby/api_client.rb +0 -10
- data/lib/pesamoni_ruby/api_error.rb +0 -10
- data/lib/pesamoni_ruby/configuration.rb +0 -9
- data/lib/pesamoni_ruby/models/inline_response_200.rb +0 -10
- data/lib/pesamoni_ruby/version.rb +1 -10
- data/lib/pesamoni_ruby.rb +0 -10
- data/pesamoni_ruby.gemspec +5 -13
- data/spec/api/default_api_spec.rb +1 -11
- data/spec/api_client_spec.rb +0 -10
- data/spec/configuration_spec.rb +0 -12
- data/spec/models/inline_response_200_spec.rb +0 -9
- data/spec/spec_helper.rb +0 -12
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91439f6c252b3d5bc24cfefa806b64129d7c891e2d31dc9ea91c386b9e2cad47
|
4
|
+
data.tar.gz: f5b6b04d57a1308c1055c8b039e40e3a1991e7504c7c7f71f96b7606299de176
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3879b7f98145bac3fb5d918002efcbb2f46d4f913c47fe283445c4355fc92d0e1ed57be1f4618294a34f66e3172e3370d9b6f1d61366396b25de8119f8b8c21
|
7
|
+
data.tar.gz: 976ae16a30a33009d7ae96f352734c2ddd35bb106d556fb048fb71357f4547c5145305eeda80d16e17d2288f7e05b91bf3352654776a7299c80072cabe02101c
|
data/README.md
CHANGED
@@ -29,7 +29,7 @@ You can register a new Pesamoni business account [Here](https://pesamoni.com/bus
|
|
29
29
|
require 'pesamoni_ruby'
|
30
30
|
|
31
31
|
# Setup authorization
|
32
|
-
Pesamoni.configure do |config|
|
32
|
+
Pesamoni.configure do |config|
|
33
33
|
# Configure API key authorization: apipassword
|
34
34
|
# Configure API key authorization: apiusername
|
35
35
|
config.api_key['apiusername'] = 'YOUR API KEY'
|
@@ -40,9 +40,7 @@ Pesamoni.configure do |config|
|
|
40
40
|
#config.api_key_prefix['apipassword'] = 'Bearer'
|
41
41
|
end
|
42
42
|
|
43
|
-
api_instance =
|
44
|
-
|
45
|
-
method = 'method_example' # String | Enter a request method. To check for request methods <a href=''>click here</a>
|
43
|
+
api_instance = Pesamoni::DefaultApi.new
|
46
44
|
|
47
45
|
```
|
48
46
|
|
@@ -57,17 +55,17 @@ method = 'method_example' # String | Enter a request method. To check for reques
|
|
57
55
|
method = 'acreceive'
|
58
56
|
|
59
57
|
opts = {
|
60
|
-
amount: 'amount_example', # String | Enter the amount you would like to request for. This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept
|
61
|
-
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254
|
62
|
-
reference: 'reference_example', # String | Enter your user generated transaction reference This method applies for request
|
63
|
-
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept
|
64
|
-
token: 'token_example', # String | Enter your user generated token for the above mentioned method This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept
|
58
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
59
|
+
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
60
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
61
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
62
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
65
63
|
}
|
66
64
|
|
67
65
|
begin
|
68
66
|
result = api_instance.transactions_post(method, opts)
|
69
67
|
p result
|
70
|
-
rescue
|
68
|
+
rescue Pesamoni::ApiError => e
|
71
69
|
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
72
70
|
end
|
73
71
|
```
|
@@ -84,12 +82,19 @@ end
|
|
84
82
|
method = 'acsend'
|
85
83
|
|
86
84
|
opts = {
|
87
|
-
amount: 'amount_example', # String | Enter the amount you would like to execute the above method for. This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept
|
88
|
-
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254
|
89
|
-
reference: 'reference_example', # String | Enter your user generated transaction
|
90
|
-
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested
|
91
|
-
token: 'token_example', # String | Enter your user generated token for the above mentioned method This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept
|
85
|
+
amount: 'amount_example', # String | Enter the amount you would like to execute the above method for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
86
|
+
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
87
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
88
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
89
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
92
90
|
}
|
91
|
+
|
92
|
+
begin
|
93
|
+
result = api_instance.transactions_post(method, opts)
|
94
|
+
p result
|
95
|
+
rescue Pesamoni::ApiError => e
|
96
|
+
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
97
|
+
end
|
93
98
|
```
|
94
99
|
|
95
100
|
### Accepting Card Payments e.g VISA/MASTERCARD
|
@@ -99,20 +104,20 @@ opts = {
|
|
99
104
|
method = 'acsend'
|
100
105
|
|
101
106
|
opts = {
|
102
|
-
amount: 'amount_example', # String | Enter the amount you would like to request for. This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept
|
103
|
-
holdername: 'holdername_example', # String | Enter name of payer for Visa/MasterCard
|
104
|
-
cardnumber: 'cardnumber_example', # String | Enter the Visa/MasterCard
|
105
|
-
cvv: 'cvv_example', # String | Enter the Visa/MasterCard
|
106
|
-
exp: 'exp_example', # String | Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/
|
107
|
-
currency: 'currency_example', # String | Enter the currency you intend to make the transaction for Visa/MasterCard based
|
108
|
-
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested
|
109
|
-
token: 'token_example', # String | Enter your user generated token for the above mentioned
|
107
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
108
|
+
holdername: 'holdername_example', # String | Enter name of payer for Visa/MasterCard transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
109
|
+
cardnumber: 'cardnumber_example', # String | Enter the Visa/MasterCard cardnumber<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
110
|
+
cvv: 'cvv_example', # String | Enter the Visa/MasterCard cvv<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
111
|
+
exp: 'exp_example', # String | Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/2030<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
112
|
+
currency: 'currency_example', # String | Enter the currency you intend to make the transaction for Visa/MasterCard based transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
113
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
114
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
110
115
|
}
|
111
116
|
|
112
117
|
begin
|
113
118
|
result = api_instance.transactions_post(method, opts)
|
114
119
|
p result
|
115
|
-
rescue
|
120
|
+
rescue Pesamoni::ApiError => e
|
116
121
|
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
117
122
|
end
|
118
123
|
|
@@ -131,18 +136,18 @@ end
|
|
131
136
|
method = 'acsendbank'
|
132
137
|
|
133
138
|
opts = {
|
134
|
-
amount: 'amount_example', # String | Enter the amount you would like to request for. This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept
|
135
|
-
currency: 'currency_example', # String | Enter the currency you intend to make the transaction for Visa/MasterCard based
|
136
|
-
account: 'account_example', # String | Enter the Pesamoni account you would like to use for this
|
137
|
-
reference: 'reference_example', # String | Enter your user generated transaction
|
138
|
-
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested
|
139
|
-
token: 'token_example', # String | Enter your user generated token for the above mentioned
|
139
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
140
|
+
currency: 'currency_example', # String | Enter the currency you intend to make the transaction for Visa/MasterCard based transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
141
|
+
account: 'account_example', # String | Enter the Pesamoni account you would like to use for this transaction<p style=\"color:red\">This method applies for request method <b>paybills</b></p>
|
142
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
143
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
144
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
140
145
|
}
|
141
146
|
|
142
147
|
begin
|
143
148
|
result = api_instance.transactions_post(method, opts)
|
144
149
|
p result
|
145
|
-
rescue
|
150
|
+
rescue Pesamoni::ApiError => e
|
146
151
|
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
147
152
|
end
|
148
153
|
```
|
@@ -153,17 +158,17 @@ end
|
|
153
158
|
method = 'sendairtime'
|
154
159
|
|
155
160
|
opts = {
|
156
|
-
amount: 'amount_example', # String | Enter the amount you would like to request for. This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept
|
157
|
-
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254
|
158
|
-
reference: 'reference_example', # String | Enter your user generated transaction
|
159
|
-
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested
|
160
|
-
token: 'token_example', # String | Enter your user generated token for the above mentioned
|
161
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
162
|
+
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
163
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
164
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
165
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
161
166
|
}
|
162
167
|
|
163
168
|
begin
|
164
169
|
result = api_instance.transactions_post(method, opts)
|
165
170
|
p result
|
166
|
-
rescue
|
171
|
+
rescue Pesamoni::ApiError => e
|
167
172
|
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
168
173
|
end
|
169
174
|
```
|
@@ -173,17 +178,17 @@ end
|
|
173
178
|
method = 'pesab2c'
|
174
179
|
|
175
180
|
opts = {
|
176
|
-
amount: 'amount_example', # String | Enter the amount you would like to request for. This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept
|
177
|
-
account: 'account_example', # String | Enter the Pesamoni account you would like to use for this
|
178
|
-
reference: 'reference_example', # String | Enter your user generated transaction
|
179
|
-
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested
|
180
|
-
token: 'token_example', # String | Enter your user generated token for the above mentioned
|
181
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
182
|
+
account: 'account_example', # String | Enter the Pesamoni account you would like to use for this transaction<p style=\"color:red\">This method applies for request method <b>paybills</b></p>
|
183
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
184
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
185
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
181
186
|
}
|
182
187
|
|
183
188
|
begin
|
184
189
|
result = api_instance.transactions_post(method, opts)
|
185
190
|
p result
|
186
|
-
rescue
|
191
|
+
rescue Pesamoni::ApiError => e
|
187
192
|
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
188
193
|
end
|
189
194
|
|
@@ -195,17 +200,17 @@ end
|
|
195
200
|
method = 'pesac2b'
|
196
201
|
|
197
202
|
opts = {
|
198
|
-
amount: 'amount_example', # String | Enter the amount you would like to request for. This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept
|
199
|
-
account: 'account_example', # String | Enter the Pesamoni account you would like to use for this
|
200
|
-
reference: 'reference_example', # String | Enter your user generated transaction
|
201
|
-
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested
|
202
|
-
token: 'token_example', # String | Enter your user generated token for the above mentioned
|
203
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
204
|
+
account: 'account_example', # String | Enter the Pesamoni account you would like to use for this transaction<p style=\"color:red\">This method applies for request method <b>paybills</b></p>
|
205
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
206
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
207
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
203
208
|
}
|
204
209
|
|
205
210
|
begin
|
206
211
|
result = api_instance.transactions_post(method, opts)
|
207
212
|
p result
|
208
|
-
rescue
|
213
|
+
rescue Pesamoni::ApiError => e
|
209
214
|
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
210
215
|
end
|
211
216
|
|
@@ -217,21 +222,21 @@ end
|
|
217
222
|
method = 'paybills'
|
218
223
|
|
219
224
|
opts = {
|
220
|
-
amount: 'amount_example', # String | Enter the amount you would like to request for. This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept
|
221
|
-
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254
|
222
|
-
currency: 'currency_example', # String | Enter the currency you intend to make the transaction for Visa/MasterCard based
|
223
|
-
reference: 'reference_example', # String | Enter your user generated transaction
|
224
|
-
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested
|
225
|
-
token: 'token_example', # String | Enter your user generated token for the above mentioned
|
226
|
-
bouquet: 'bouquet_example', # String | Enter the bouquet or package you would like to pay
|
227
|
-
payoption: 'payoption_example', # String | Enter your prefered payment
|
228
|
-
meternumber: 'meternumber_example' # String | Enter the meter number for the intended
|
225
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
226
|
+
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
227
|
+
currency: 'currency_example', # String | Enter the currency you intend to make the transaction for Visa/MasterCard based transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
228
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
229
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
230
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
231
|
+
bouquet: 'bouquet_example', # String | Enter the bouquet or package you would like to pay for<p style=\"color:red\">This method applies for request methods <b>paybills</b></p>
|
232
|
+
payoption: 'payoption_example', # String | Enter your prefered payment option<p style=\"color:red\">This method applies for request methods <b>paybills</b></p>
|
233
|
+
meternumber: 'meternumber_example' # String | Enter the meter number for the intended payment<p style=\"color:red\">This method applies for request methods <b>paybills</b></p>
|
229
234
|
}
|
230
235
|
|
231
236
|
begin
|
232
237
|
result = api_instance.transactions_post(method, opts)
|
233
238
|
p result
|
234
|
-
rescue
|
239
|
+
rescue Pesamoni::ApiError => e
|
235
240
|
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
236
241
|
end
|
237
242
|
```
|
@@ -242,13 +247,13 @@ end
|
|
242
247
|
method = 'transactionstatus'
|
243
248
|
|
244
249
|
opts = {
|
245
|
-
reference: 'reference_example', # String | Enter your user generated transaction
|
250
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
246
251
|
}
|
247
252
|
|
248
253
|
begin
|
249
254
|
result = api_instance.transactions_post(method, opts)
|
250
255
|
p result
|
251
|
-
rescue
|
256
|
+
rescue Pesamoni::ApiError => e
|
252
257
|
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
253
258
|
end
|
254
259
|
```
|
@@ -268,18 +273,18 @@ opts = {
|
|
268
273
|
```ruby
|
269
274
|
|
270
275
|
opts = {
|
271
|
-
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254
|
272
|
-
reference: 'reference_example', # String | Enter your user generated transaction
|
273
|
-
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested
|
274
|
-
token: 'token_example', # String | Enter your user generated token for the above mentioned
|
276
|
+
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
277
|
+
reference: 'reference_example', # String | Enter your user generated transaction reference<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
278
|
+
genericmsg: 'genericmsg_example', # String | Enter your user generated generic message for the requested transaction<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
279
|
+
token: 'token_example', # String | Enter your user generated token for the above mentioned method<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
|
275
280
|
message: 'message_example'
|
276
|
-
# String | Enter your message This method applies for request methods sendsms
|
281
|
+
# String | Enter your message <p style=\"color:red\">This method applies for request methods <b>sendsms</b></p>
|
277
282
|
}
|
278
283
|
|
279
284
|
begin
|
280
285
|
result = api_instance.transactions_post(method, opts)
|
281
286
|
p result
|
282
|
-
rescue
|
287
|
+
rescue Pesamoni::ApiError => e
|
283
288
|
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
284
289
|
end
|
285
290
|
```
|
data/docs/DefaultApi.md
CHANGED
@@ -8,7 +8,7 @@ Method | HTTP request | Description
|
|
8
8
|
|
9
9
|
|
10
10
|
# **transactions_post**
|
11
|
-
> InlineResponse200 transactions_post(method,
|
11
|
+
> InlineResponse200 transactions_post(method, opts)
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -35,9 +35,8 @@ api_instance = Pesamoni::DefaultApi.new
|
|
35
35
|
|
36
36
|
method = 'method_example' # String | Enter a request method. To check for request methods <a href=''>click here</a>
|
37
37
|
|
38
|
-
amount = 'amount_example' # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
39
|
-
|
40
38
|
opts = {
|
39
|
+
amount: 'amount_example', # String | Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
41
40
|
mobile: 'mobile_example', # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
42
41
|
holdername: 'holdername_example', # String | Enter name of payer for Visa/MasterCard transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
43
42
|
cardnumber: 'cardnumber_example', # String | Enter the Visa/MasterCard cardnumber<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
@@ -54,7 +53,7 @@ opts = {
|
|
54
53
|
}
|
55
54
|
|
56
55
|
begin
|
57
|
-
result = api_instance.transactions_post(method,
|
56
|
+
result = api_instance.transactions_post(method, opts)
|
58
57
|
p result
|
59
58
|
rescue Pesamoni::ApiError => e
|
60
59
|
puts "Exception when calling DefaultApi->transactions_post: #{e}"
|
@@ -66,7 +65,7 @@ end
|
|
66
65
|
Name | Type | Description | Notes
|
67
66
|
------------- | ------------- | ------------- | -------------
|
68
67
|
**method** | **String**| Enter a request method. To check for request methods <a href=''>click here</a> |
|
69
|
-
**amount** | **String**| Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p> |
|
68
|
+
**amount** | **String**| Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p> | [optional]
|
70
69
|
**mobile** | **String**| Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p> | [optional]
|
71
70
|
**holdername** | **String**| Enter name of payer for Visa/MasterCard transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p> | [optional]
|
72
71
|
**cardnumber** | **String**| Enter the Visa/MasterCard cardnumber<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p> | [optional]
|
data/git_push.sh
CHANGED
@@ -1,11 +1,3 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
-
#
|
5
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
-
#
|
7
|
-
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
-
|
9
1
|
git_user_id=$1
|
10
2
|
git_repo_id=$2
|
11
3
|
release_note=$3
|
@@ -1,11 +1,3 @@
|
|
1
|
-
=begin
|
2
|
-
#Pesaway Pesamoni API Documentation
|
3
|
-
|
4
|
-
OpenAPI spec version: 1.0.3
|
5
|
-
|
6
|
-
|
7
|
-
=end
|
8
|
-
|
9
1
|
require 'uri'
|
10
2
|
|
11
3
|
module Pesamoni
|
@@ -17,8 +9,8 @@ module Pesamoni
|
|
17
9
|
end
|
18
10
|
# Below are parameters and their respective expected responses. In order to try out the service, simply click Try it out.
|
19
11
|
# @param method Enter a request method. To check for request methods <a href=''>click here</a>
|
20
|
-
# @param amount Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
21
12
|
# @param [Hash] opts the optional parameters
|
13
|
+
# @option opts [String] :amount Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
22
14
|
# @option opts [String] :mobile Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
23
15
|
# @option opts [String] :holdername Enter name of payer for Visa/MasterCard transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
24
16
|
# @option opts [String] :cardnumber Enter the Visa/MasterCard cardnumber<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
@@ -33,15 +25,15 @@ module Pesamoni
|
|
33
25
|
# @option opts [String] :payoption Enter your prefered payment option<p style=\"color:red\">This method applies for request methods <b>paybills</b></p>
|
34
26
|
# @option opts [String] :meternumber Enter the meter number for the intended payment<p style=\"color:red\">This method applies for request methods <b>paybills</b></p>
|
35
27
|
# @return [InlineResponse200]
|
36
|
-
def transactions_post(method,
|
37
|
-
data, _status_code, _headers = transactions_post_with_http_info(method,
|
28
|
+
def transactions_post(method, opts = {})
|
29
|
+
data, _status_code, _headers = transactions_post_with_http_info(method, opts)
|
38
30
|
data
|
39
31
|
end
|
40
32
|
|
41
33
|
# Below are parameters and their respective expected responses. In order to try out the service, simply click Try it out.
|
42
34
|
# @param method Enter a request method. To check for request methods <a href=''>click here</a>
|
43
|
-
# @param amount Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
44
35
|
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [String] :amount Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
45
37
|
# @option opts [String] :mobile Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
46
38
|
# @option opts [String] :holdername Enter name of payer for Visa/MasterCard transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
47
39
|
# @option opts [String] :cardnumber Enter the Visa/MasterCard cardnumber<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
@@ -56,7 +48,7 @@ module Pesamoni
|
|
56
48
|
# @option opts [String] :payoption Enter your prefered payment option<p style=\"color:red\">This method applies for request methods <b>paybills</b></p>
|
57
49
|
# @option opts [String] :meternumber Enter the meter number for the intended payment<p style=\"color:red\">This method applies for request methods <b>paybills</b></p>
|
58
50
|
# @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
|
59
|
-
def transactions_post_with_http_info(method,
|
51
|
+
def transactions_post_with_http_info(method, opts = {})
|
60
52
|
if @api_client.config.debugging
|
61
53
|
@api_client.config.logger.debug 'Calling API: DefaultApi.transactions_post ...'
|
62
54
|
end
|
@@ -64,77 +56,13 @@ module Pesamoni
|
|
64
56
|
if @api_client.config.client_side_validation && method.nil?
|
65
57
|
fail ArgumentError, "Missing the required parameter 'method' when calling DefaultApi.transactions_post"
|
66
58
|
end
|
67
|
-
if @api_client.config.client_side_validation && method < 1
|
68
|
-
fail ArgumentError, 'invalid value for "method" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
69
|
-
end
|
70
|
-
|
71
|
-
# verify the required parameter 'amount' is set
|
72
|
-
if @api_client.config.client_side_validation && amount.nil?
|
73
|
-
fail ArgumentError, "Missing the required parameter 'amount' when calling DefaultApi.transactions_post"
|
74
|
-
end
|
75
|
-
if @api_client.config.client_side_validation && amount < 1
|
76
|
-
fail ArgumentError, 'invalid value for "amount" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
77
|
-
end
|
78
|
-
|
79
|
-
if @api_client.config.client_side_validation && !opts[:'mobile'].nil? && opts[:'mobile'] < 1
|
80
|
-
fail ArgumentError, 'invalid value for "opts[:"mobile"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
81
|
-
end
|
82
|
-
|
83
|
-
if @api_client.config.client_side_validation && !opts[:'holdername'].nil? && opts[:'holdername'] < 1
|
84
|
-
fail ArgumentError, 'invalid value for "opts[:"holdername"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
85
|
-
end
|
86
|
-
|
87
|
-
if @api_client.config.client_side_validation && !opts[:'cardnumber'].nil? && opts[:'cardnumber'] < 1
|
88
|
-
fail ArgumentError, 'invalid value for "opts[:"cardnumber"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
89
|
-
end
|
90
|
-
|
91
|
-
if @api_client.config.client_side_validation && !opts[:'cvv'].nil? && opts[:'cvv'] < 1
|
92
|
-
fail ArgumentError, 'invalid value for "opts[:"cvv"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
93
|
-
end
|
94
|
-
|
95
|
-
if @api_client.config.client_side_validation && !opts[:'exp'].nil? && opts[:'exp'] < 1
|
96
|
-
fail ArgumentError, 'invalid value for "opts[:"exp"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
97
|
-
end
|
98
|
-
|
99
|
-
if @api_client.config.client_side_validation && !opts[:'currency'].nil? && opts[:'currency'] < 1
|
100
|
-
fail ArgumentError, 'invalid value for "opts[:"currency"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
101
|
-
end
|
102
|
-
|
103
|
-
if @api_client.config.client_side_validation && !opts[:'account'].nil? && opts[:'account'] < 1
|
104
|
-
fail ArgumentError, 'invalid value for "opts[:"account"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
105
|
-
end
|
106
|
-
|
107
|
-
if @api_client.config.client_side_validation && !opts[:'reference'].nil? && opts[:'reference'] < 1
|
108
|
-
fail ArgumentError, 'invalid value for "opts[:"reference"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
109
|
-
end
|
110
|
-
|
111
|
-
if @api_client.config.client_side_validation && !opts[:'genericmsg'].nil? && opts[:'genericmsg'] < 1
|
112
|
-
fail ArgumentError, 'invalid value for "opts[:"genericmsg"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
113
|
-
end
|
114
|
-
|
115
|
-
if @api_client.config.client_side_validation && !opts[:'token'].nil? && opts[:'token'] < 1
|
116
|
-
fail ArgumentError, 'invalid value for "opts[:"token"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
117
|
-
end
|
118
|
-
|
119
|
-
if @api_client.config.client_side_validation && !opts[:'bouquet'].nil? && opts[:'bouquet'] < 1
|
120
|
-
fail ArgumentError, 'invalid value for "opts[:"bouquet"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
121
|
-
end
|
122
|
-
|
123
|
-
if @api_client.config.client_side_validation && !opts[:'payoption'].nil? && opts[:'payoption'] < 1
|
124
|
-
fail ArgumentError, 'invalid value for "opts[:"payoption"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
125
|
-
end
|
126
|
-
|
127
|
-
if @api_client.config.client_side_validation && !opts[:'meternumber'].nil? && opts[:'meternumber'] < 1
|
128
|
-
fail ArgumentError, 'invalid value for "opts[:"meternumber"]" when calling DefaultApi.transactions_post, must be greater than or equal to 1.'
|
129
|
-
end
|
130
|
-
|
131
59
|
# resource path
|
132
60
|
local_var_path = '/transactions'
|
133
61
|
|
134
62
|
# query parameters
|
135
63
|
query_params = {}
|
136
64
|
query_params[:'method'] = method
|
137
|
-
query_params[:'amount'] = amount
|
65
|
+
query_params[:'amount'] = opts[:'amount'] if !opts[:'amount'].nil?
|
138
66
|
query_params[:'mobile'] = opts[:'mobile'] if !opts[:'mobile'].nil?
|
139
67
|
query_params[:'holdername'] = opts[:'holdername'] if !opts[:'holdername'].nil?
|
140
68
|
query_params[:'cardnumber'] = opts[:'cardnumber'] if !opts[:'cardnumber'].nil?
|
@@ -1,13 +1,3 @@
|
|
1
|
-
=begin
|
2
|
-
#Pesaway Pesamoni API Documentation
|
3
|
-
|
4
|
-
Automate mobile money payments, bank transfers and more..
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0.3
|
7
|
-
|
8
|
-
|
9
|
-
=end
|
10
|
-
|
11
1
|
module Pesamoni
|
12
2
|
class ApiError < StandardError
|
13
3
|
attr_reader :code, :response_headers, :response_body
|
data/lib/pesamoni_ruby.rb
CHANGED
data/pesamoni_ruby.gemspec
CHANGED
@@ -1,12 +1,4 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
=begin
|
4
|
-
#Pesaway Pesamoni API Documentation
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0.3
|
7
|
-
|
8
|
-
=end
|
9
|
-
|
10
2
|
$:.push File.expand_path("../lib", __FILE__)
|
11
3
|
require "pesamoni_ruby/version"
|
12
4
|
|
@@ -15,11 +7,11 @@ Gem::Specification.new do |s|
|
|
15
7
|
s.version = Pesamoni::VERSION
|
16
8
|
s.platform = Gem::Platform::RUBY
|
17
9
|
s.authors = ["Pesamoni Limited"]
|
18
|
-
s.email = [""]
|
19
|
-
s.homepage = "https://
|
20
|
-
s.summary = "
|
21
|
-
s.description = "
|
22
|
-
s.license =
|
10
|
+
s.email = ["inquiries@pesamoni.com"]
|
11
|
+
s.homepage = "https://pesamoni.com"
|
12
|
+
s.summary = "Automate mobile money payments, bank transfers and more.."
|
13
|
+
s.description = "Automate mobile money payments, bank transfers and more.."
|
14
|
+
s.license = 'Apache License 2.0'
|
23
15
|
s.required_ruby_version = ">= 1.9"
|
24
16
|
|
25
17
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
@@ -1,13 +1,3 @@
|
|
1
|
-
=begin
|
2
|
-
#Pesaway Pesamoni API Documentation
|
3
|
-
|
4
|
-
#Automate mobile money payments, bank transfers and more..
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0.3
|
7
|
-
|
8
|
-
|
9
|
-
=end
|
10
|
-
|
11
1
|
require 'spec_helper'
|
12
2
|
require 'json'
|
13
3
|
|
@@ -33,8 +23,8 @@ describe 'DefaultApi' do
|
|
33
23
|
# unit tests for transactions_post
|
34
24
|
# Below are parameters and their respective expected responses. In order to try out the service, simply click Try it out.
|
35
25
|
# @param method Enter a request method. To check for request methods <a href=''>click here</a>
|
36
|
-
# @param amount Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
37
26
|
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [String] :amount Enter the amount you would like to request for. <p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
|
38
28
|
# @option opts [String] :mobile Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style=\"color:red\">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
|
39
29
|
# @option opts [String] :holdername Enter name of payer for Visa/MasterCard transactions<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
40
30
|
# @option opts [String] :cardnumber Enter the Visa/MasterCard cardnumber<p style=\"color:red\">This method applies for request method <b>cardaccept</b></p>
|
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
@@ -1,15 +1,3 @@
|
|
1
|
-
=begin
|
2
|
-
#Pesaway Pesamoni API Documentation
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0.3
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
1
|
require 'spec_helper'
|
14
2
|
|
15
3
|
describe Pesamoni::Configuration do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,15 +1,3 @@
|
|
1
|
-
=begin
|
2
|
-
#Pesaway Pesamoni API Documentation
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0.3
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
1
|
# load the gem
|
14
2
|
require 'pesamoni_ruby'
|
15
3
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pesamoni_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pesamoni Limited
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -190,9 +190,9 @@ dependencies:
|
|
190
190
|
- - ">="
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: 0.2.12
|
193
|
-
description:
|
193
|
+
description: Automate mobile money payments, bank transfers and more..
|
194
194
|
email:
|
195
|
-
-
|
195
|
+
- inquiries@pesamoni.com
|
196
196
|
executables: []
|
197
197
|
extensions: []
|
198
198
|
extra_rdoc_files: []
|
@@ -216,9 +216,9 @@ files:
|
|
216
216
|
- spec/configuration_spec.rb
|
217
217
|
- spec/models/inline_response_200_spec.rb
|
218
218
|
- spec/spec_helper.rb
|
219
|
-
homepage: https://
|
219
|
+
homepage: https://pesamoni.com
|
220
220
|
licenses:
|
221
|
-
- Apache 2.0
|
221
|
+
- Apache License 2.0
|
222
222
|
metadata: {}
|
223
223
|
post_install_message:
|
224
224
|
rdoc_options: []
|
@@ -238,7 +238,7 @@ requirements: []
|
|
238
238
|
rubygems_version: 3.0.2
|
239
239
|
signing_key:
|
240
240
|
specification_version: 4
|
241
|
-
summary:
|
241
|
+
summary: Automate mobile money payments, bank transfers and more..
|
242
242
|
test_files:
|
243
243
|
- spec/api/default_api_spec.rb
|
244
244
|
- spec/api_client_spec.rb
|