bleumi_pay_sdk_ruby 1.0.2 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +67 -47
  4. data/bleumi_pay_sdk_ruby.gemspec +4 -5
  5. data/docs/AlgorandBalance.md +28 -0
  6. data/docs/AlgorandWalletAddress.md +24 -0
  7. data/docs/AlgorandWalletInputs.md +23 -0
  8. data/docs/BadRequest.md +2 -1
  9. data/docs/Chain.md +14 -0
  10. data/docs/CheckoutToken.md +28 -0
  11. data/docs/CreateCheckoutUrlRequest.md +28 -0
  12. data/docs/CreateCheckoutUrlResponse.md +17 -0
  13. data/docs/CreatePaymentRequest.md +19 -0
  14. data/docs/CreatePaymentResponse.md +15 -0
  15. data/docs/CreatePayoutRequest.md +28 -0
  16. data/docs/CreatePayoutResponse.md +15 -0
  17. data/docs/EthereumBalance.md +30 -0
  18. data/docs/EthereumWalletAddress.md +23 -0
  19. data/docs/EthereumWalletInputs.md +23 -0
  20. data/docs/HostedCheckoutsApi.md +197 -0
  21. data/docs/PaginatedPaymentOperations.md +28 -0
  22. data/docs/PaginatedPayments.md +95 -0
  23. data/docs/PaginatedPayoutItems.md +59 -0
  24. data/docs/Payment.md +67 -0
  25. data/docs/PaymentAddresses.md +21 -0
  26. data/docs/PaymentBalances.md +21 -0
  27. data/docs/PaymentOperation.md +46 -0
  28. data/docs/PaymentOperationInputs.md +31 -0
  29. data/docs/PaymentOperationResponse.md +15 -0
  30. data/docs/PaymentRefundRequest.md +14 -0
  31. data/docs/PaymentSettleRequest.md +17 -0
  32. data/docs/PaymentsApi.md +368 -0
  33. data/docs/Payout.md +18 -0
  34. data/docs/PayoutItem.md +39 -0
  35. data/docs/PayoutItemInputs.md +28 -0
  36. data/docs/PayoutsApi.md +137 -0
  37. data/docs/RskBalance.md +28 -0
  38. data/docs/ValidateCheckoutRequest.md +21 -0
  39. data/docs/ValidateCheckoutResponse.md +15 -0
  40. data/docs/WalletBalance.md +18 -4
  41. data/hc_create.rb +40 -0
  42. data/hc_list.rb +17 -0
  43. data/hc_validate.rb +22 -0
  44. data/lib/bleumi_pay_sdk_ruby.rb +38 -17
  45. data/lib/bleumi_pay_sdk_ruby/api/hosted_checkouts_api.rb +212 -0
  46. data/lib/bleumi_pay_sdk_ruby/api/payments_api.rb +517 -0
  47. data/lib/bleumi_pay_sdk_ruby/api/payouts_api.rb +157 -0
  48. data/lib/bleumi_pay_sdk_ruby/api/request_validator.rb +288 -0
  49. data/lib/bleumi_pay_sdk_ruby/api_client.rb +11 -9
  50. data/lib/bleumi_pay_sdk_ruby/api_error.rb +3 -3
  51. data/lib/bleumi_pay_sdk_ruby/configuration.rb +4 -4
  52. data/lib/bleumi_pay_sdk_ruby/models/algorand_balance.rb +219 -0
  53. data/lib/bleumi_pay_sdk_ruby/models/algorand_wallet_address.rb +221 -0
  54. data/lib/bleumi_pay_sdk_ruby/models/algorand_wallet_inputs.rb +247 -0
  55. data/lib/bleumi_pay_sdk_ruby/models/bad_request.rb +15 -5
  56. data/lib/bleumi_pay_sdk_ruby/models/{eth_network.rb → chain.rb} +12 -9
  57. data/lib/bleumi_pay_sdk_ruby/models/checkout_token.rb +302 -0
  58. data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_request.rb +312 -0
  59. data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_response.rb +227 -0
  60. data/lib/bleumi_pay_sdk_ruby/models/{wallet_create_input.rb → create_payment_request.rb} +33 -11
  61. data/lib/bleumi_pay_sdk_ruby/models/{wallet_create_output.rb → create_payment_response.rb} +19 -23
  62. data/lib/bleumi_pay_sdk_ruby/models/create_payout_request.rb +244 -0
  63. data/lib/bleumi_pay_sdk_ruby/models/create_payout_response.rb +212 -0
  64. data/lib/bleumi_pay_sdk_ruby/models/ethereum_balance.rb +241 -0
  65. data/lib/bleumi_pay_sdk_ruby/models/ethereum_wallet_address.rb +221 -0
  66. data/lib/bleumi_pay_sdk_ruby/models/{wallet_inputs.rb → ethereum_wallet_inputs.rb} +35 -50
  67. data/lib/bleumi_pay_sdk_ruby/models/paginated_payment_operations.rb +224 -0
  68. data/lib/bleumi_pay_sdk_ruby/models/{paginated_wallet_operations.rb → paginated_payments.rb} +19 -9
  69. data/lib/bleumi_pay_sdk_ruby/models/{paginated_wallets.rb → paginated_payout_items.rb} +19 -9
  70. data/lib/bleumi_pay_sdk_ruby/models/{wallet.rb → payment.rb} +31 -54
  71. data/lib/bleumi_pay_sdk_ruby/models/payment_addresses.rb +231 -0
  72. data/lib/bleumi_pay_sdk_ruby/models/payment_balances.rb +225 -0
  73. data/lib/bleumi_pay_sdk_ruby/models/{wallet_operation.rb → payment_operation.rb} +44 -18
  74. data/lib/bleumi_pay_sdk_ruby/models/{wallet_operation_inputs.rb → payment_operation_inputs.rb} +38 -12
  75. data/lib/bleumi_pay_sdk_ruby/models/{wallet_operation_output.rb → payment_operation_response.rb} +18 -8
  76. data/lib/bleumi_pay_sdk_ruby/models/{wallet_refund_operation_input.rb → payment_refund_request.rb} +18 -8
  77. data/lib/bleumi_pay_sdk_ruby/models/{wallet_settle_operation_input.rb → payment_settle_request.rb} +18 -8
  78. data/lib/bleumi_pay_sdk_ruby/models/payout.rb +237 -0
  79. data/lib/bleumi_pay_sdk_ruby/models/payout_item.rb +286 -0
  80. data/lib/bleumi_pay_sdk_ruby/models/payout_item_inputs.rb +244 -0
  81. data/lib/bleumi_pay_sdk_ruby/models/rsk_balance.rb +219 -0
  82. data/lib/bleumi_pay_sdk_ruby/models/validate_checkout_request.rb +257 -0
  83. data/lib/bleumi_pay_sdk_ruby/models/validate_checkout_response.rb +212 -0
  84. data/lib/bleumi_pay_sdk_ruby/models/wallet_balance.rb +37 -12
  85. data/lib/bleumi_pay_sdk_ruby/version.rb +4 -4
  86. data/po_create.rb +39 -0
  87. data/po_list.rb +23 -0
  88. data/py_create.rb +48 -0
  89. data/py_get.rb +18 -0
  90. data/py_getop.rb +19 -0
  91. data/py_list.rb +24 -0
  92. data/py_listops.rb +21 -0
  93. data/py_refund.rb +43 -0
  94. data/py_settle.rb +43 -0
  95. data/spec/api/hosted_checkouts_api_spec.rb +67 -0
  96. data/spec/api/payments_api_spec.rb +123 -0
  97. data/spec/api/payouts_api_spec.rb +61 -0
  98. data/spec/api_client_spec.rb +226 -0
  99. data/spec/configuration_spec.rb +42 -0
  100. data/spec/models/algorand_balance_spec.rb +47 -0
  101. data/spec/models/algorand_wallet_address_spec.rb +47 -0
  102. data/spec/models/algorand_wallet_inputs_spec.rb +65 -0
  103. data/spec/models/bad_request_spec.rb +47 -0
  104. data/spec/models/chain_spec.rb +35 -0
  105. data/spec/models/checkout_token_spec.rb +77 -0
  106. data/spec/models/create_checkout_url_request_spec.rb +89 -0
  107. data/spec/models/create_checkout_url_response_spec.rb +47 -0
  108. data/spec/models/create_payment_request_spec.rb +59 -0
  109. data/spec/models/create_payment_response_spec.rb +41 -0
  110. data/spec/models/create_payout_request_spec.rb +53 -0
  111. data/spec/models/create_payout_response_spec.rb +41 -0
  112. data/spec/models/ethereum_balance_spec.rb +59 -0
  113. data/spec/models/ethereum_wallet_address_spec.rb +47 -0
  114. data/spec/models/ethereum_wallet_inputs_spec.rb +65 -0
  115. data/spec/models/paginated_payment_operations_spec.rb +47 -0
  116. data/spec/models/paginated_payments_spec.rb +47 -0
  117. data/spec/models/paginated_payout_items_spec.rb +47 -0
  118. data/spec/models/payment_addresses_spec.rb +53 -0
  119. data/spec/models/payment_balances_spec.rb +53 -0
  120. data/spec/models/payment_operation_inputs_spec.rb +65 -0
  121. data/spec/models/payment_operation_response_spec.rb +41 -0
  122. data/spec/models/payment_operation_spec.rb +71 -0
  123. data/spec/models/payment_refund_request_spec.rb +41 -0
  124. data/spec/models/payment_settle_request_spec.rb +47 -0
  125. data/spec/models/payment_spec.rb +65 -0
  126. data/spec/models/payout_item_inputs_spec.rb +53 -0
  127. data/spec/models/payout_item_spec.rb +71 -0
  128. data/spec/models/payout_spec.rb +53 -0
  129. data/spec/models/rsk_balance_spec.rb +47 -0
  130. data/spec/models/validate_checkout_request_spec.rb +59 -0
  131. data/spec/models/validate_checkout_response_spec.rb +41 -0
  132. data/spec/models/wallet_balance_spec.rb +65 -0
  133. data/spec/spec_helper.rb +111 -0
  134. metadata +180 -49
  135. data/docs/Erc20PaymentsApi.md +0 -334
  136. data/docs/EthAddress.md +0 -8
  137. data/docs/EthNetwork.md +0 -9
  138. data/docs/PaginatedWalletOperations.md +0 -8
  139. data/docs/PaginatedWallets.md +0 -8
  140. data/docs/Wallet.md +0 -13
  141. data/docs/WalletCreateInput.md +0 -9
  142. data/docs/WalletCreateOutput.md +0 -10
  143. data/docs/WalletInputs.md +0 -11
  144. data/docs/WalletOperation.md +0 -11
  145. data/docs/WalletOperationInputs.md +0 -10
  146. data/docs/WalletOperationOutput.md +0 -8
  147. data/docs/WalletRefundOperationInput.md +0 -7
  148. data/docs/WalletSettleOperationInput.md +0 -8
  149. data/lib/bleumi_pay_sdk_ruby/api/erc20_payments_api.rb +0 -482
  150. data/lib/bleumi_pay_sdk_ruby/models/eth_address.rb +0 -208
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bleumi_pay_sdk_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bleumi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-12 00:00:00.000000000 Z
11
+ date: 2020-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -34,44 +34,46 @@ dependencies:
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '2.1'
40
37
  - - ">="
41
38
  - !ruby/object:Gem::Version
42
39
  version: 2.1.0
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '2.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '2.1'
50
47
  - - ">="
51
48
  - !ruby/object:Gem::Version
52
49
  version: 2.1.0
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '2.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '3.6'
60
57
  - - ">="
61
58
  - !ruby/object:Gem::Version
62
59
  version: 3.6.0
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '3.6'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '3.6'
70
67
  - - ">="
71
68
  - !ruby/object:Gem::Version
72
69
  version: 3.6.0
73
- description: A simple and powerful REST API to integrate ERC20 payments into your
74
- business or application
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '3.6'
73
+ description: The Bleumi Pay SDK helps you integrate Algo, Algorand Standard Asset,
74
+ Ethereum, ERC-20, RSK, RSK ERC-20 & xDai payments and payouts into your business
75
+ or application. The SDK bundles 'Bleumi Pay API' into one SDK to ease implementation
76
+ and support.
75
77
  email:
76
78
  - info@bleumi.com
77
79
  executables: []
@@ -83,48 +85,139 @@ files:
83
85
  - README.md
84
86
  - Rakefile
85
87
  - bleumi_pay_sdk_ruby.gemspec
88
+ - docs/AlgorandBalance.md
89
+ - docs/AlgorandWalletAddress.md
90
+ - docs/AlgorandWalletInputs.md
86
91
  - docs/BadRequest.md
87
- - docs/Erc20PaymentsApi.md
88
- - docs/EthAddress.md
89
- - docs/EthNetwork.md
90
- - docs/PaginatedWalletOperations.md
91
- - docs/PaginatedWallets.md
92
- - docs/Wallet.md
92
+ - docs/Chain.md
93
+ - docs/CheckoutToken.md
94
+ - docs/CreateCheckoutUrlRequest.md
95
+ - docs/CreateCheckoutUrlResponse.md
96
+ - docs/CreatePaymentRequest.md
97
+ - docs/CreatePaymentResponse.md
98
+ - docs/CreatePayoutRequest.md
99
+ - docs/CreatePayoutResponse.md
100
+ - docs/EthereumBalance.md
101
+ - docs/EthereumWalletAddress.md
102
+ - docs/EthereumWalletInputs.md
103
+ - docs/HostedCheckoutsApi.md
104
+ - docs/PaginatedPaymentOperations.md
105
+ - docs/PaginatedPayments.md
106
+ - docs/PaginatedPayoutItems.md
107
+ - docs/Payment.md
108
+ - docs/PaymentAddresses.md
109
+ - docs/PaymentBalances.md
110
+ - docs/PaymentOperation.md
111
+ - docs/PaymentOperationInputs.md
112
+ - docs/PaymentOperationResponse.md
113
+ - docs/PaymentRefundRequest.md
114
+ - docs/PaymentSettleRequest.md
115
+ - docs/PaymentsApi.md
116
+ - docs/Payout.md
117
+ - docs/PayoutItem.md
118
+ - docs/PayoutItemInputs.md
119
+ - docs/PayoutsApi.md
120
+ - docs/RskBalance.md
121
+ - docs/ValidateCheckoutRequest.md
122
+ - docs/ValidateCheckoutResponse.md
93
123
  - docs/WalletBalance.md
94
- - docs/WalletCreateInput.md
95
- - docs/WalletCreateOutput.md
96
- - docs/WalletInputs.md
97
- - docs/WalletOperation.md
98
- - docs/WalletOperationInputs.md
99
- - docs/WalletOperationOutput.md
100
- - docs/WalletRefundOperationInput.md
101
- - docs/WalletSettleOperationInput.md
124
+ - hc_create.rb
125
+ - hc_list.rb
126
+ - hc_validate.rb
102
127
  - lib/bleumi_pay_sdk_ruby.rb
103
- - lib/bleumi_pay_sdk_ruby/api/erc20_payments_api.rb
128
+ - lib/bleumi_pay_sdk_ruby/api/hosted_checkouts_api.rb
129
+ - lib/bleumi_pay_sdk_ruby/api/payments_api.rb
130
+ - lib/bleumi_pay_sdk_ruby/api/payouts_api.rb
131
+ - lib/bleumi_pay_sdk_ruby/api/request_validator.rb
104
132
  - lib/bleumi_pay_sdk_ruby/api_client.rb
105
133
  - lib/bleumi_pay_sdk_ruby/api_error.rb
106
134
  - lib/bleumi_pay_sdk_ruby/configuration.rb
135
+ - lib/bleumi_pay_sdk_ruby/models/algorand_balance.rb
136
+ - lib/bleumi_pay_sdk_ruby/models/algorand_wallet_address.rb
137
+ - lib/bleumi_pay_sdk_ruby/models/algorand_wallet_inputs.rb
107
138
  - lib/bleumi_pay_sdk_ruby/models/bad_request.rb
108
- - lib/bleumi_pay_sdk_ruby/models/eth_address.rb
109
- - lib/bleumi_pay_sdk_ruby/models/eth_network.rb
110
- - lib/bleumi_pay_sdk_ruby/models/paginated_wallet_operations.rb
111
- - lib/bleumi_pay_sdk_ruby/models/paginated_wallets.rb
112
- - lib/bleumi_pay_sdk_ruby/models/wallet.rb
139
+ - lib/bleumi_pay_sdk_ruby/models/chain.rb
140
+ - lib/bleumi_pay_sdk_ruby/models/checkout_token.rb
141
+ - lib/bleumi_pay_sdk_ruby/models/create_checkout_url_request.rb
142
+ - lib/bleumi_pay_sdk_ruby/models/create_checkout_url_response.rb
143
+ - lib/bleumi_pay_sdk_ruby/models/create_payment_request.rb
144
+ - lib/bleumi_pay_sdk_ruby/models/create_payment_response.rb
145
+ - lib/bleumi_pay_sdk_ruby/models/create_payout_request.rb
146
+ - lib/bleumi_pay_sdk_ruby/models/create_payout_response.rb
147
+ - lib/bleumi_pay_sdk_ruby/models/ethereum_balance.rb
148
+ - lib/bleumi_pay_sdk_ruby/models/ethereum_wallet_address.rb
149
+ - lib/bleumi_pay_sdk_ruby/models/ethereum_wallet_inputs.rb
150
+ - lib/bleumi_pay_sdk_ruby/models/paginated_payment_operations.rb
151
+ - lib/bleumi_pay_sdk_ruby/models/paginated_payments.rb
152
+ - lib/bleumi_pay_sdk_ruby/models/paginated_payout_items.rb
153
+ - lib/bleumi_pay_sdk_ruby/models/payment.rb
154
+ - lib/bleumi_pay_sdk_ruby/models/payment_addresses.rb
155
+ - lib/bleumi_pay_sdk_ruby/models/payment_balances.rb
156
+ - lib/bleumi_pay_sdk_ruby/models/payment_operation.rb
157
+ - lib/bleumi_pay_sdk_ruby/models/payment_operation_inputs.rb
158
+ - lib/bleumi_pay_sdk_ruby/models/payment_operation_response.rb
159
+ - lib/bleumi_pay_sdk_ruby/models/payment_refund_request.rb
160
+ - lib/bleumi_pay_sdk_ruby/models/payment_settle_request.rb
161
+ - lib/bleumi_pay_sdk_ruby/models/payout.rb
162
+ - lib/bleumi_pay_sdk_ruby/models/payout_item.rb
163
+ - lib/bleumi_pay_sdk_ruby/models/payout_item_inputs.rb
164
+ - lib/bleumi_pay_sdk_ruby/models/rsk_balance.rb
165
+ - lib/bleumi_pay_sdk_ruby/models/validate_checkout_request.rb
166
+ - lib/bleumi_pay_sdk_ruby/models/validate_checkout_response.rb
113
167
  - lib/bleumi_pay_sdk_ruby/models/wallet_balance.rb
114
- - lib/bleumi_pay_sdk_ruby/models/wallet_create_input.rb
115
- - lib/bleumi_pay_sdk_ruby/models/wallet_create_output.rb
116
- - lib/bleumi_pay_sdk_ruby/models/wallet_inputs.rb
117
- - lib/bleumi_pay_sdk_ruby/models/wallet_operation.rb
118
- - lib/bleumi_pay_sdk_ruby/models/wallet_operation_inputs.rb
119
- - lib/bleumi_pay_sdk_ruby/models/wallet_operation_output.rb
120
- - lib/bleumi_pay_sdk_ruby/models/wallet_refund_operation_input.rb
121
- - lib/bleumi_pay_sdk_ruby/models/wallet_settle_operation_input.rb
122
168
  - lib/bleumi_pay_sdk_ruby/version.rb
169
+ - po_create.rb
170
+ - po_list.rb
171
+ - py_create.rb
172
+ - py_get.rb
173
+ - py_getop.rb
174
+ - py_list.rb
175
+ - py_listops.rb
176
+ - py_refund.rb
177
+ - py_settle.rb
178
+ - spec/api/hosted_checkouts_api_spec.rb
179
+ - spec/api/payments_api_spec.rb
180
+ - spec/api/payouts_api_spec.rb
181
+ - spec/api_client_spec.rb
182
+ - spec/configuration_spec.rb
183
+ - spec/models/algorand_balance_spec.rb
184
+ - spec/models/algorand_wallet_address_spec.rb
185
+ - spec/models/algorand_wallet_inputs_spec.rb
186
+ - spec/models/bad_request_spec.rb
187
+ - spec/models/chain_spec.rb
188
+ - spec/models/checkout_token_spec.rb
189
+ - spec/models/create_checkout_url_request_spec.rb
190
+ - spec/models/create_checkout_url_response_spec.rb
191
+ - spec/models/create_payment_request_spec.rb
192
+ - spec/models/create_payment_response_spec.rb
193
+ - spec/models/create_payout_request_spec.rb
194
+ - spec/models/create_payout_response_spec.rb
195
+ - spec/models/ethereum_balance_spec.rb
196
+ - spec/models/ethereum_wallet_address_spec.rb
197
+ - spec/models/ethereum_wallet_inputs_spec.rb
198
+ - spec/models/paginated_payment_operations_spec.rb
199
+ - spec/models/paginated_payments_spec.rb
200
+ - spec/models/paginated_payout_items_spec.rb
201
+ - spec/models/payment_addresses_spec.rb
202
+ - spec/models/payment_balances_spec.rb
203
+ - spec/models/payment_operation_inputs_spec.rb
204
+ - spec/models/payment_operation_response_spec.rb
205
+ - spec/models/payment_operation_spec.rb
206
+ - spec/models/payment_refund_request_spec.rb
207
+ - spec/models/payment_settle_request_spec.rb
208
+ - spec/models/payment_spec.rb
209
+ - spec/models/payout_item_inputs_spec.rb
210
+ - spec/models/payout_item_spec.rb
211
+ - spec/models/payout_spec.rb
212
+ - spec/models/rsk_balance_spec.rb
213
+ - spec/models/validate_checkout_request_spec.rb
214
+ - spec/models/validate_checkout_response_spec.rb
215
+ - spec/models/wallet_balance_spec.rb
216
+ - spec/spec_helper.rb
123
217
  homepage: https://pay.bleumi.com/
124
218
  licenses:
125
219
  - MIT
126
- metadata:
127
- source_code_uri: https://github.com/bleumi/bleumi-pay-sdk-ruby
220
+ metadata: {}
128
221
  post_install_message:
129
222
  rdoc_options: []
130
223
  require_paths:
@@ -140,9 +233,47 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
233
  - !ruby/object:Gem::Version
141
234
  version: '0'
142
235
  requirements: []
143
- rubyforge_project:
144
- rubygems_version: 2.7.6.2
236
+ rubygems_version: 3.0.6
145
237
  signing_key:
146
238
  specification_version: 4
147
239
  summary: Bleumi Pay API Ruby Gem
148
- test_files: []
240
+ test_files:
241
+ - spec/api/payments_api_spec.rb
242
+ - spec/api/hosted_checkouts_api_spec.rb
243
+ - spec/api/payouts_api_spec.rb
244
+ - spec/api_client_spec.rb
245
+ - spec/configuration_spec.rb
246
+ - spec/models/bad_request_spec.rb
247
+ - spec/models/validate_checkout_request_spec.rb
248
+ - spec/models/algorand_wallet_address_spec.rb
249
+ - spec/models/payment_operation_inputs_spec.rb
250
+ - spec/models/payment_refund_request_spec.rb
251
+ - spec/models/checkout_token_spec.rb
252
+ - spec/models/payment_addresses_spec.rb
253
+ - spec/models/create_payment_response_spec.rb
254
+ - spec/models/payout_item_inputs_spec.rb
255
+ - spec/models/payment_operation_spec.rb
256
+ - spec/models/algorand_balance_spec.rb
257
+ - spec/models/rsk_balance_spec.rb
258
+ - spec/models/ethereum_balance_spec.rb
259
+ - spec/models/ethereum_wallet_inputs_spec.rb
260
+ - spec/models/wallet_balance_spec.rb
261
+ - spec/models/create_payout_request_spec.rb
262
+ - spec/models/paginated_payment_operations_spec.rb
263
+ - spec/models/payment_operation_response_spec.rb
264
+ - spec/models/create_checkout_url_request_spec.rb
265
+ - spec/models/validate_checkout_response_spec.rb
266
+ - spec/models/payment_settle_request_spec.rb
267
+ - spec/models/create_payout_response_spec.rb
268
+ - spec/models/ethereum_wallet_address_spec.rb
269
+ - spec/models/payout_item_spec.rb
270
+ - spec/models/create_checkout_url_response_spec.rb
271
+ - spec/models/payment_spec.rb
272
+ - spec/models/paginated_payout_items_spec.rb
273
+ - spec/models/algorand_wallet_inputs_spec.rb
274
+ - spec/models/create_payment_request_spec.rb
275
+ - spec/models/payment_balances_spec.rb
276
+ - spec/models/paginated_payments_spec.rb
277
+ - spec/models/payout_spec.rb
278
+ - spec/models/chain_spec.rb
279
+ - spec/spec_helper.rb
@@ -1,334 +0,0 @@
1
- # BleumiPay::Erc20PaymentsApi
2
-
3
- ## generate_wallet
4
-
5
- > WalletCreateOutput generate_wallet(wallet_create_input, opts)
6
-
7
- Generate an unique wallet address to accept payments for an ERC-20 token from a buyer.
8
-
9
- ### Example
10
-
11
- ```ruby
12
- # load the gem
13
- require 'bleumi_pay_sdk_ruby'
14
- # Setup authorization
15
- BleumiPay.configure do |config|
16
- # Configure API key authorization: ApiKeyAuth
17
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
18
- end
19
-
20
- api_instance = BleumiPay::Erc20PaymentsApi.new
21
- wallet_create_input = BleumiPay::WalletCreateInput.new # WalletCreateInput |
22
- opts = {
23
- chain: BleumiPay::EthNetwork::ROPSTEN # EthNetwork | Ethereum network in which wallet is to be created.
24
- }
25
-
26
- buyer_address = BleumiPay::EthAddress.new('<BUYER_ADDR>') # Replace <BUYER_ADDR> with the Buyer Address
27
- transfer_address = BleumiPay::EthAddress.new('<MERCHANT_ADDR>') # Replace <MERCHANT_ADDR> with the Merchant's Enthereum Network Address
28
-
29
- wallet_create_input.id = '<ID>' # String | Unique ID identifying the wallet in your system
30
- wallet_create_input.buyer_address = buyer_address
31
- wallet_create_input.transfer_address = transfer_address
32
-
33
- begin
34
- #Generate an unique wallet address to accept payments for an ERC-20 token from a buyer
35
- result = api_instance.generate_wallet(wallet_create_input, opts)
36
- p result
37
- rescue BleumiPay::ApiError => e
38
- puts "Exception when calling Erc20PaymentsApi->generate_wallet: #{e}"
39
- end
40
- ```
41
-
42
- ### Parameters
43
-
44
-
45
- Name | Type | Description | Notes
46
- ------------- | ------------- | ------------- | -------------
47
- **wallet_create_input** | [**WalletCreateInput**](WalletCreateInput.md)| Specify the parameters for the wallet generation. |
48
- **chain** | [**EthNetwork**](EthNetwork.md)| Ethereum network in which the wallet is to be created. Please refer to the [Supported Ethereum Networks](https://pay.bleumi.com/docs/#supported-ethereum-networks) |
49
-
50
- ### Return type
51
-
52
- [**WalletCreateOutput**](WalletCreateOutput.md)
53
-
54
- ## get_wallet
55
-
56
- > Wallet get_wallet(id)
57
-
58
- This method retrieves a wallet.
59
-
60
- ### Example
61
-
62
- ```ruby
63
- # load the gem
64
- require 'bleumi_pay_sdk_ruby'
65
- # setup authorization
66
- BleumiPay.configure do |config|
67
- # Configure API key authorization: ApiKeyAuth
68
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
69
- end
70
-
71
- api_instance = BleumiPay::Erc20PaymentsApi.new
72
- id = '<ID>' # String | The ID of the wallet to get the details
73
-
74
- begin
75
- #Return a specific wallet
76
- result = api_instance.get_wallet(id)
77
- p result
78
- rescue BleumiPay::ApiError => e
79
- puts "Exception when calling Erc20PaymentsApi->get_wallet: #{e}"
80
- end
81
- ```
82
-
83
- ### Parameters
84
-
85
-
86
- Name | Type | Description | Notes
87
- ------------- | ------------- | ------------- | -------------
88
- **id** | **String**| Unique ID identifying the wallet in your system |
89
-
90
- ### Return type
91
-
92
- [**Wallet**](Wallet.md)
93
-
94
-
95
- ## list_wallets
96
-
97
- > PaginatedWallets list_wallets(opts)
98
-
99
- This method retrieves a list of wallets.
100
-
101
- ### Pagination
102
-
103
- The list of wallets is returned as an array in the 'results' field. The list is restricted to a maximum of 100 wallets per page.
104
-
105
- If there are more than 100 wallets generated for an ethereum network, a cursor is returned in the 'nextToken' field. Passing this as the 'nextToken' query parameter will fetch the next page.
106
-
107
- When the value of 'nextToken' field is an empty string, there are no more wallets.
108
-
109
- ### Example
110
-
111
- ```ruby
112
- # load the gem
113
- require 'bleumi_pay_sdk_ruby'
114
- # setup authorization
115
- BleumiPay.configure do |config|
116
- # Configure API key authorization: ApiKeyAuth
117
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
118
- end
119
-
120
- api_instance = BleumiPay::Erc20PaymentsApi.new
121
- opts = {
122
- next_token: '', # String | Cursor to start results from
123
- sort_by: '<SORT_BY>', # String | Sort wallets by (optional) | Eg. "createdAt"
124
- start_at: '<START_TIMESTAMP>', # String | Get wallets from this timestamp (optional) | Eg. 1546300800 for 1-JAN-2019
125
- end_at: '' # String | Get wallets till this timestamp (optional)
126
- }
127
-
128
- begin
129
- #Returns a list of wallets
130
- result = api_instance.list_wallets(opts)
131
- p result
132
- rescue BleumiPay::ApiError => e
133
- puts "Exception when calling Erc20PaymentsApi->list_wallets: #{e}"
134
- end
135
- ```
136
-
137
- ### Parameters
138
-
139
-
140
- Name | Type | Description | Notes
141
- ------------- | ------------- | ------------- | -------------
142
- **next_token** | **String**| The token to fetch the next page, supply blank value to get the first page of wallet operations | [optional]
143
- **sort_by** | **String**| Sort wallets by | [optional] 'createdAt' - results will be sorted by created time in ascending order. 'updatedAt' - results will be sorted by last updated time in ascending order.
144
- **start_at** | **String**| Get wallets from this timestamp | [optional] Get wallets from this timestamp (UNIX). Will be compared to created or updated time based on the value of sortBy parameter.
145
- **end_at** | **String**| Get wallets till this timestamp | [optional] Get wallets till this timestamp (UNIX). Will be compared to created or updated time based on the value of sortBy parameter.
146
-
147
- ### Return type
148
-
149
- [**PaginatedWallets**](PaginatedWallets.md)
150
-
151
-
152
- ## settle_wallet
153
-
154
- > WalletOperationOutput settle_wallet(id, wallet_settle_operation_input)
155
-
156
- This method settles a specific amount of an ERC-20 token of a wallet to the transferAddress specified during [Generate Wallet](#generate_wallet). And remaining balance (if any) will be refunded to the buyerAddress specified during [Generate Wallet](#generate_wallet).
157
-
158
- ### Example
159
-
160
- ```ruby
161
- # load the gem
162
- require 'bleumi_pay_sdk_ruby'
163
- # setup authorization
164
- BleumiPay.configure do |config|
165
- # Configure API key authorization: ApiKeyAuth
166
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
167
- end
168
-
169
- api_instance = BleumiPay::Erc20PaymentsApi.new
170
- id = '<ID>' # String | Unique ID identifying this record in your system
171
- wallet_settle_operation_input = BleumiPay::WalletSettleOperationInput.new
172
- wallet_settle_operation_input.amount = '<AMT>' # String | Replace <AMT> with settle amount
173
- wallet_settle_operation_input.token = BleumiPay::EthAddress.new('<TOKEN_ADDR>') # String | Replace <TOKEN_ADDR> with ECR-20 token address
174
-
175
- begin
176
- #Settle a wallet, amount received will be transferred even if less than payment amount
177
- result = api_instance.settle_wallet(id, wallet_settle_operation_input)
178
- p result
179
- rescue BleumiPay::ApiError => e
180
- puts "Exception when calling Erc20PaymentsApi->settle_wallet: #{e}"
181
- end
182
- ```
183
-
184
- ### Parameters
185
-
186
-
187
- Name | Type | Description | Notes
188
- ------------- | ------------- | ------------- | -------------
189
- **id** | **String**| Unique identifier of the wallet (specified during [Generate Wallet](#generatewallet)) to settle
190
- **wallet_settle_operation_input** | [**WalletSettleOperationInput**](WalletSettleOperationInput.md)| Specify the token and amount to settle. |
191
-
192
- ### Return type
193
-
194
- [**WalletOperationOutput**](WalletOperationOutput.md)
195
-
196
- ## refund_wallet
197
-
198
- > WalletOperationOutput refund_wallet(id, wallet_refund_operation_input)
199
-
200
- This method refunds the balance of an ERC-20 token of a wallet to the buyerAddress specified during [Generate Wallet](#generate_wallet).
201
-
202
- ### Example
203
-
204
- ```ruby
205
- # load the gem
206
- require 'bleumi_pay_sdk_ruby'
207
- # setup authorization
208
- BleumiPay.configure do |config|
209
- # Configure API key authorization: ApiKeyAuth
210
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
211
- end
212
-
213
- api_instance = BleumiPay::Erc20PaymentsApi.new
214
- id = '<ID>' # String | Unique ID identifying this record in your system
215
- wallet_refund_operation_input = BleumiPay::WalletRefundOperationInput.new
216
- wallet_refund_operation_input.token = BleumiPay::EthAddress.new('<TOKEN_ADDR>') # String | Replace <TOKEN_ADDR> with ECR-20 token address
217
-
218
- begin
219
- #Refund wallet
220
- result = api_instance.refund_wallet(id, wallet_refund_operation_input)
221
- p result
222
- rescue BleumiPay::ApiError => e
223
- puts "Exception when calling Erc20PaymentsApi->refund_wallet: #{e}"
224
- end
225
- ```
226
-
227
- ### Parameters
228
-
229
-
230
- Name | Type | Description | Notes
231
- ------------- | ------------- | ------------- | -------------
232
- **id** | **String**| Unique identifier of the wallet (specified during [Generate Wallet](#generate_wallet)) to refund |
233
- **wallet_refund_operation_input** | [**WalletRefundOperationInput**](WalletRefundOperationInput.md)| Specify the token to refund. |
234
-
235
- ### Return type
236
-
237
- [**WalletOperationOutput**](WalletOperationOutput.md)
238
-
239
-
240
- ## get_wallet_operation
241
-
242
- > WalletOperation get_wallet_operation(id, txid)
243
-
244
- This method retrieves an operation of a wallet.
245
-
246
- ### Example
247
-
248
- ```ruby
249
- # load the gem
250
- require 'bleumi_pay_sdk_ruby'
251
- # setup authorization
252
- BleumiPay.configure do |config|
253
- # Configure API key authorization: ApiKeyAuth
254
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
255
- end
256
-
257
- api_instance = BleumiPay::Erc20PaymentsApi.new
258
- id = '<ID>' # String | Unique ID identifying the wallet in your system
259
- txid = '<TXID>' # String | ID of a specific operation of the wallet
260
-
261
- begin
262
- #Return a specific operation of the wallet
263
- result = api_instance.get_wallet_operation(id, txid)
264
- p result
265
- rescue BleumiPay::ApiError => e
266
- puts "Exception when calling Erc20PaymentsApi->get_wallet_operation: #{e}"
267
- end
268
- ```
269
-
270
- ### Parameters
271
-
272
-
273
- Name | Type | Description | Notes
274
- ------------- | ------------- | ------------- | -------------
275
- **id** | **String**| Unique identifier of the wallet (specified during [Generate Wallet](#generate_wallet)) |
276
- **txid** | **String**| Transaction ID of the operation (returned during [Refund Wallet](#refundwallet) / [Settle Wallet](#settlewallet)) to retrieve |
277
-
278
- ### Return type
279
-
280
- [**WalletOperation**](WalletOperation.md)
281
-
282
-
283
-
284
- ## list_wallet_operations
285
-
286
- > PaginatedWalletOperations list_wallet_operations(id, opts)
287
-
288
- This method retrieves all operations of a wallet.
289
-
290
- ### Pagination
291
-
292
- The list of operations is returned as an array in the 'results' field. The list is restricted to a maximum of 100 operations per page.
293
-
294
- If there are more than 100 operations for a wallet, a cursor is passed in the 'nextToken' field. Passing this as the 'nextToken' query parameter will fetch the next page.
295
-
296
- When the value of 'nextToken' field is an empty string, there are no more operations.
297
-
298
- ### Example
299
-
300
- ```ruby
301
- # load the gem
302
- require 'bleumi_pay_sdk_ruby'
303
- # setup authorization
304
- BleumiPay.configure do |config|
305
- # Configure API key authorization: ApiKeyAuth
306
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
307
- end
308
-
309
- api_instance = BleumiPay::Erc20PaymentsApi.new
310
- id = '<ID>' # String | Unique ID identifying the wallet in your system
311
- opts = {
312
- next_token: '' # String | Cursor to start results from
313
- }
314
-
315
- begin
316
- #Return the list of operations performed by the mechant on a specific wallet
317
- result = api_instance.list_wallet_operations(id, opts)
318
- p result
319
- rescue BleumiPay::ApiError => e
320
- puts "Exception when calling Erc20PaymentsApi->list_wallet_operations: #{e}"
321
- end
322
- ```
323
-
324
- ### Parameters
325
-
326
-
327
- Name | Type | Description | Notes
328
- ------------- | ------------- | ------------- | -------------
329
- **id** | **String**| Unique identifier of the wallet (specified during [Generate Wallet](#generate_wallet)) |
330
- **next_token** | **String**| The token to fetch the next page, supply blank value to get the first page of wallet operations | [optional]
331
-
332
- ### Return type
333
-
334
- [**PaginatedWalletOperations**](PaginatedWalletOperations.md)