bleumi_pay_sdk_ruby 1.0.0

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.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +105 -0
  4. data/Rakefile +10 -0
  5. data/bleumi_pay_sdk_ruby.gemspec +39 -0
  6. data/docs/BadRequest.md +17 -0
  7. data/docs/Erc20PaymentsApi.md +318 -0
  8. data/docs/EthAddress.md +17 -0
  9. data/docs/EthNetwork.md +16 -0
  10. data/docs/PaginatedWalletOperations.md +8 -0
  11. data/docs/PaginatedWallets.md +8 -0
  12. data/docs/Wallet.md +29 -0
  13. data/docs/WalletBalance.md +23 -0
  14. data/docs/WalletCreateInput.md +21 -0
  15. data/docs/WalletCreateOutput.md +19 -0
  16. data/docs/WalletInputs.md +12 -0
  17. data/docs/WalletOperation.md +12 -0
  18. data/docs/WalletOperationInputs.md +21 -0
  19. data/docs/WalletOperationOutput.md +15 -0
  20. data/docs/WalletRefundOperationInput.md +15 -0
  21. data/docs/WalletSettleOperationInput.md +19 -0
  22. data/lib/bleumi_pay_sdk_ruby.rb +55 -0
  23. data/lib/bleumi_pay_sdk_ruby/api/erc20_payments_api.rb +482 -0
  24. data/lib/bleumi_pay_sdk_ruby/api_client.rb +386 -0
  25. data/lib/bleumi_pay_sdk_ruby/api_error.rb +57 -0
  26. data/lib/bleumi_pay_sdk_ruby/configuration.rb +248 -0
  27. data/lib/bleumi_pay_sdk_ruby/models/bad_request.rb +213 -0
  28. data/lib/bleumi_pay_sdk_ruby/models/eth_address.rb +208 -0
  29. data/lib/bleumi_pay_sdk_ruby/models/eth_network.rb +39 -0
  30. data/lib/bleumi_pay_sdk_ruby/models/paginated_wallet_operations.rb +214 -0
  31. data/lib/bleumi_pay_sdk_ruby/models/paginated_wallets.rb +214 -0
  32. data/lib/bleumi_pay_sdk_ruby/models/wallet.rb +293 -0
  33. data/lib/bleumi_pay_sdk_ruby/models/wallet_balance.rb +247 -0
  34. data/lib/bleumi_pay_sdk_ruby/models/wallet_create_input.rb +230 -0
  35. data/lib/bleumi_pay_sdk_ruby/models/wallet_create_output.rb +216 -0
  36. data/lib/bleumi_pay_sdk_ruby/models/wallet_inputs.rb +262 -0
  37. data/lib/bleumi_pay_sdk_ruby/models/wallet_operation.rb +256 -0
  38. data/lib/bleumi_pay_sdk_ruby/models/wallet_operation_inputs.rb +246 -0
  39. data/lib/bleumi_pay_sdk_ruby/models/wallet_operation_output.rb +202 -0
  40. data/lib/bleumi_pay_sdk_ruby/models/wallet_refund_operation_input.rb +201 -0
  41. data/lib/bleumi_pay_sdk_ruby/models/wallet_settle_operation_input.rb +216 -0
  42. data/lib/bleumi_pay_sdk_ruby/version.rb +15 -0
  43. data/spec/api/erc20_payments_api_spec.rb +120 -0
  44. data/spec/api_client_spec.rb +226 -0
  45. data/spec/configuration_spec.rb +42 -0
  46. data/spec/models/bad_request_spec.rb +47 -0
  47. data/spec/models/eth_address_spec.rb +41 -0
  48. data/spec/models/eth_network_spec.rb +35 -0
  49. data/spec/models/paginated_wallet_operations_spec.rb +47 -0
  50. data/spec/models/paginated_wallets_spec.rb +47 -0
  51. data/spec/models/wallet_balance_spec.rb +59 -0
  52. data/spec/models/wallet_create_input_spec.rb +53 -0
  53. data/spec/models/wallet_create_output_spec.rb +47 -0
  54. data/spec/models/wallet_inputs_spec.rb +65 -0
  55. data/spec/models/wallet_operation_inputs_spec.rb +59 -0
  56. data/spec/models/wallet_operation_output_spec.rb +41 -0
  57. data/spec/models/wallet_operation_spec.rb +65 -0
  58. data/spec/models/wallet_refund_operation_input_spec.rb +41 -0
  59. data/spec/models/wallet_settle_operation_input_spec.rb +47 -0
  60. data/spec/models/wallet_spec.rb +77 -0
  61. data/spec/spec_helper.rb +111 -0
  62. metadata +184 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 5b4841a457f75522f71b7cc5de03091d8940e8b5849f301f17867654d8bdc206
4
+ data.tar.gz: d56a789b264d10df6c3a08c23106a1a40e408d00fa16cd3da1eba764987a31af
5
+ SHA512:
6
+ metadata.gz: dfd06cf23a3171655d257a15acc8139e0ad8afcea81cc1076330b4423b388cc72e3753a09eae221a5b39f158ac71aa469685c1a87864eb569d0dbc312c65c0d2
7
+ data.tar.gz: 98e2ed390dd6f054dbb43be846bc4c4b8087226233aad1995b2aa7cc009a335e1497144e637984e431c6b7a514aad6262e73d0b71d1130476cae9921e95d4475
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.0.0'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/README.md ADDED
@@ -0,0 +1,105 @@
1
+ # bleumi_pay_sdk_ruby
2
+
3
+ The Bleumi Pay SDK is a one-stop shop to help you integrate ECR-20 payments into your business or application. The SDK bundles [Bleumi Pay API](https://pay.bleumi.com/docs/#introduction) into one SDK to ease implementation and support.
4
+
5
+ bleumi-pay-sdk-ruby is a Ruby library that provides an interface between your Rubu=y application and [Bleumi Pay API](https://pay.bleumi.com/docs/#introduction). This tutorial covers the basics, including examples, needed to use the SDK.
6
+
7
+ ## Installation
8
+
9
+ Finally add this to the Gemfile:
10
+
11
+ gem 'bleumi_pay_sdk_ruby', '~> 1.0.0'
12
+
13
+ ### Install from Git
14
+
15
+ If the Ruby gem is hosted at a git repository: https://github.com/bleumi/bleumi_pay_sdk_ruby, then add the following in the Gemfile:
16
+
17
+ gem 'bleumi_pay_sdk_ruby', :git => 'https://github.com/bleumi/bleumi_pay_sdk_ruby.git'
18
+
19
+ ### Include the Ruby code directly
20
+
21
+ Include the Ruby code directly using `-I` as follows:
22
+
23
+ ```shell
24
+ ruby -Ilib script.rb
25
+ ```
26
+
27
+ ## Getting Started
28
+
29
+ Please follow the [installation](#installation) procedure and then run the following code:
30
+
31
+ ```ruby
32
+ # Load the gem
33
+ require 'bleumi_pay_sdk_ruby'
34
+
35
+ # Setup authorization
36
+ BleumiPay.configure do |config|
37
+ # Configure API key authorization: ApiKeyAuth
38
+ config.api_key['x-api-key'] = '<YOUR_API_KEY>'
39
+ end
40
+
41
+ api_instance = BleumiPay::Erc20PaymentsApi.new
42
+ wallet_create_input = BleumiPay::WalletCreateInput.new # WalletCreateInput |
43
+ opts = {
44
+ chain: BleumiPay::EthNetwork::ROPSTEN # EthNetwork | Ethereum network in which wallet is to be created.
45
+ }
46
+
47
+ buyer_address = BleumiPay::EthAddress.new('<BUYER_ADDR>')
48
+ transfer_address = BleumiPay::EthAddress.new('<MERCHANT_ADDR>')
49
+
50
+ wallet_create_input.id = '<ID>'
51
+ wallet_create_input.buyer_address = buyer_address
52
+ wallet_create_input.transfer_address = transfer_address
53
+
54
+ begin
55
+ #Create an unique wallet address to accept payments for an ERC-20 token from a buyer
56
+ result = api_instance.create_wallet(wallet_create_input, opts)
57
+ p result
58
+ rescue BleumiPay::ApiError => e
59
+ puts "Exception when calling Erc20PaymentsApi->create_wallet: #{e}"
60
+ end
61
+
62
+ ```
63
+
64
+ More examples can be found under each method in [SDK Classes](README.md#sdk-classes) section.
65
+
66
+ ## SDK Classes
67
+
68
+ Class | Method | HTTP request | Description
69
+ ------------ | ------------- | ------------- | -------------
70
+ BleumiPay::Erc20PaymentsApi | [**create_wallet**](docs/Erc20PaymentsApi.md#create_wallet) | **POST** /v1/payment/erc20/wallet | Create an unique wallet address to accept payments for an ERC-20 token from a buyer
71
+ BleumiPay::Erc20PaymentsApi | [**get_wallet**](docs/Erc20PaymentsApi.md#get_wallet) | **GET** /v1/payment/erc20/wallet/{id} | Return a specific wallet
72
+ BleumiPay::Erc20PaymentsApi | [**get_wallet_operation**](docs/Erc20PaymentsApi.md#get_wallet_operation) | **GET** /v1/payment/erc20/wallet/{id}/operation/{txid} | Return a specific operation of the wallet
73
+ BleumiPay::Erc20PaymentsApi | [**get_wallet_operations**](docs/Erc20PaymentsApi.md#get_wallet_operations) | **GET** /v1/payment/erc20/wallet/{id}/operation | Return the list of operations performed by the mechant on a specific wallet
74
+ BleumiPay::Erc20PaymentsApi | [**list_wallets**](docs/Erc20PaymentsApi.md#list_wallets) | **GET** /v1/payment/erc20/wallet | Returns a list of wallets
75
+ BleumiPay::Erc20PaymentsApi | [**refund_wallet**](docs/Erc20PaymentsApi.md#refund_wallet) | **POST** /v1/payment/erc20/wallet/{id}/refund | Refund wallet
76
+ BleumiPay::Erc20PaymentsApi | [**settle_wallet**](docs/Erc20PaymentsApi.md#settle_wallet) | **POST** /v1/payment/erc20/wallet/{id}/settle | Settle a wallet, amount received will be transferred even if less than payment amount
77
+
78
+
79
+ ## Documentation for Models
80
+
81
+ - [BleumiPay::BadRequest](docs/BadRequest.md)
82
+ - [BleumiPay::EthAddress](docs/EthAddress.md)
83
+ - [BleumiPay::EthNetwork](docs/EthNetwork.md)
84
+ - [BleumiPay::PaginatedWalletOperations](docs/PaginatedWalletOperations.md)
85
+ - [BleumiPay::PaginatedWallets](docs/PaginatedWallets.md)
86
+ - [BleumiPay::Wallet](docs/Wallet.md)
87
+ - [BleumiPay::WalletBalance](docs/WalletBalance.md)
88
+ - [BleumiPay::WalletCreateInput](docs/WalletCreateInput.md)
89
+ - [BleumiPay::WalletCreateOutput](docs/WalletCreateOutput.md)
90
+ - [BleumiPay::WalletInputs](docs/WalletInputs.md)
91
+ - [BleumiPay::WalletOperation](docs/WalletOperation.md)
92
+ - [BleumiPay::WalletOperationInputs](docs/WalletOperationInputs.md)
93
+ - [BleumiPay::WalletOperationOutput](docs/WalletOperationOutput.md)
94
+ - [BleumiPay::WalletRefundOperationInput](docs/WalletRefundOperationInput.md)
95
+ - [BleumiPay::WalletSettleOperationInput](docs/WalletSettleOperationInput.md)
96
+
97
+ ## Limitations
98
+
99
+ - [Bleumi Pay API Limits](https://pay.bleumi.com/docs/#api-limits)
100
+
101
+ ## License
102
+
103
+ Copyright 2019 Bleumi, Inc.
104
+
105
+ Code licensed under the [MIT License](docs/MITLicense.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,39 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Bleumi Pay API
5
+
6
+ #A simple and powerful REST API to integrate ERC20 payments into your business or application
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: info@bleumi.com
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 4.2.0
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "bleumi_pay_sdk_ruby/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "bleumi_pay_sdk_ruby"
20
+ s.version = BleumiPay::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["Bleumi"]
23
+ s.email = ["info@bleumi.com"]
24
+ s.homepage = "https://pay.bleumi.com/"
25
+ s.summary = "Bleumi Pay API Ruby Gem"
26
+ s.description = "A simple and powerful REST API to integrate ERC20 payments into your business or application"
27
+ s.license = "Unlicense"
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+
35
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
36
+ s.test_files = `find spec/*`.split("\n")
37
+ s.executables = []
38
+ s.require_paths = ["lib"]
39
+ end
@@ -0,0 +1,17 @@
1
+ # BleumiPay::BadRequest
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **error_code** | **String** | Code for error class. Complete list of error codes is available [here](https://pay.bleumi.com/docs/#errors) |
8
+ **error_message** | **String** | Error description | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'BleumiPay'
14
+
15
+ instance = BleumiPay::BadRequest.new(error_code: null,
16
+ error_message: null)
17
+ ```
@@ -0,0 +1,318 @@
1
+ # BleumiPay::Erc20PaymentsApi
2
+
3
+ ## create_wallet
4
+
5
+ > WalletCreateOutput create_wallet(wallet_create_input, opts)
6
+
7
+ Create 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>')
27
+ transfer_address = BleumiPay::EthAddress.new('<MERCHANT_ADDR>')
28
+
29
+ wallet_create_input.id = '<ID>'
30
+ wallet_create_input.buyer_address = buyer_address
31
+ wallet_create_input.transfer_address = transfer_address
32
+
33
+ begin
34
+ #Create an unique wallet address to accept payments for an ERC-20 token from a buyer
35
+ result = api_instance.create_wallet(wallet_create_input, opts)
36
+ p result
37
+ rescue BleumiPay::ApiError => e
38
+ puts "Exception when calling Erc20PaymentsApi->create_wallet: #{e}"
39
+ end
40
+ ```
41
+
42
+ ### Parameters
43
+
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **wallet_create_input** | [**WalletCreateInput**](WalletCreateInput.md)| |
48
+ **chain** | [**EthNetwork**](.md)| Ethereum network in which wallet is to be created. | [optional]
49
+
50
+ ### Return type
51
+
52
+ [**WalletCreateOutput**](WalletCreateOutput.md)
53
+
54
+ ## get_wallet
55
+
56
+ > Wallet get_wallet(id)
57
+
58
+ Return a specific 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 | Unique ID identifying the wallet in your system
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
+ Returns a list of wallets
100
+
101
+ ### Example
102
+
103
+ ```ruby
104
+ # load the gem
105
+ require 'bleumi_pay_sdk_ruby'
106
+ # setup authorization
107
+ BleumiPay.configure do |config|
108
+ # Configure API key authorization: ApiKeyAuth
109
+ config.api_key['x-api-key'] = '<YOUR_API_KEY>'
110
+ end
111
+
112
+ api_instance = BleumiPay::Erc20PaymentsApi.new
113
+ opts = {
114
+ next_token: '', # String | Cursor to start results from
115
+ sort_by: '<SORT_BY>', # String | Sort wallets by (optional) | Eg. "createdAt"
116
+ start_at: '<START_TIMESTAMP>', # String | Get wallets from this timestamp (optional) | Eg. 1546300800 for 1-JAN-2019
117
+ end_at: '' # String | Get wallets till this timestamp (optional)
118
+ }
119
+
120
+ begin
121
+ #Returns a list of wallets
122
+ result = api_instance.list_wallets(opts)
123
+ p result
124
+ rescue BleumiPay::ApiError => e
125
+ puts "Exception when calling Erc20PaymentsApi->list_wallets: #{e}"
126
+ end
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+
132
+ Name | Type | Description | Notes
133
+ ------------- | ------------- | ------------- | -------------
134
+ **next_token** | **String**| Cursor to start results from | [optional]
135
+ **sort_by** | **String**| Sort wallets by | [optional]
136
+ **start_at** | **String**| Get wallets from this timestamp | [optional]
137
+ **end_at** | **String**| Get wallets till this timestamp | [optional]
138
+
139
+ ### Return type
140
+
141
+ [**PaginatedWallets**](PaginatedWallets.md)
142
+
143
+
144
+ ## settle_wallet
145
+
146
+ > WalletOperationOutput settle_wallet(id, wallet_settle_operation_input)
147
+
148
+ Settle a wallet, amount received will be transferred even if less than payment amount
149
+
150
+ ### Example
151
+
152
+ ```ruby
153
+ # load the gem
154
+ require 'bleumi_pay_sdk_ruby'
155
+ # setup authorization
156
+ BleumiPay.configure do |config|
157
+ # Configure API key authorization: ApiKeyAuth
158
+ config.api_key['x-api-key'] = '<YOUR_API_KEY>'
159
+ end
160
+
161
+ api_instance = BleumiPay::Erc20PaymentsApi.new
162
+ id = '<ID>' # String | Unique ID identifying this record in your system
163
+ wallet_settle_operation_input = BleumiPay::WalletSettleOperationInput.new
164
+ wallet_settle_operation_input.amount = '<AMT>' # String | Replace <AMT> with settle amount
165
+ wallet_settle_operation_input.token = BleumiPay::EthAddress.new('<TOKEN_ADDR>') # String | Replace <TOKEN_ADDR> with ECR-20 token address
166
+
167
+ begin
168
+ #Settle a wallet, amount received will be transferred even if less than payment amount
169
+ result = api_instance.settle_wallet(id, wallet_settle_operation_input)
170
+ p result
171
+ rescue BleumiPay::ApiError => e
172
+ puts "Exception when calling Erc20PaymentsApi->settle_wallet: #{e}"
173
+ end
174
+ ```
175
+
176
+ ### Parameters
177
+
178
+
179
+ Name | Type | Description | Notes
180
+ ------------- | ------------- | ------------- | -------------
181
+ **id** | **String**| Unique ID identifying this record in your system |
182
+ **wallet_settle_operation_input** | [**WalletSettleOperationInput**](WalletSettleOperationInput.md)| Request body - used to specify the amount to settle. |
183
+
184
+ ### Return type
185
+
186
+ [**WalletOperationOutput**](WalletOperationOutput.md)
187
+
188
+ ## refund_wallet
189
+
190
+ > WalletOperationOutput refund_wallet(id, wallet_refund_operation_input)
191
+
192
+ Refund wallet
193
+
194
+ ### Example
195
+
196
+ ```ruby
197
+ # load the gem
198
+ require 'bleumi_pay_sdk_ruby'
199
+ # setup authorization
200
+ BleumiPay.configure do |config|
201
+ # Configure API key authorization: ApiKeyAuth
202
+ config.api_key['x-api-key'] = '<YOUR_API_KEY>'
203
+ end
204
+
205
+ api_instance = BleumiPay::Erc20PaymentsApi.new
206
+ id = '<ID>' # String | Unique ID identifying this record in your system
207
+ wallet_refund_operation_input = BleumiPay::WalletRefundOperationInput.new
208
+ wallet_refund_operation_input.token = BleumiPay::EthAddress.new('<TOKEN_ADDR>') # String | Replace <TOKEN_ADDR> with ECR-20 token address
209
+
210
+ begin
211
+ #Refund wallet
212
+ result = api_instance.refund_wallet(id, wallet_refund_operation_input)
213
+ p result
214
+ rescue BleumiPay::ApiError => e
215
+ puts "Exception when calling Erc20PaymentsApi->refund_wallet: #{e}"
216
+ end
217
+ ```
218
+
219
+ ### Parameters
220
+
221
+
222
+ Name | Type | Description | Notes
223
+ ------------- | ------------- | ------------- | -------------
224
+ **id** | **String**| Unique ID identifying this record in your system |
225
+ **wallet_refund_operation_input** | [**WalletRefundOperationInput**](WalletRefundOperationInput.md)| Request body - used to specify the token to refund. |
226
+
227
+ ### Return type
228
+
229
+ [**WalletOperationOutput**](WalletOperationOutput.md)
230
+
231
+
232
+ ## get_wallet_operation
233
+
234
+ > WalletOperation get_wallet_operation(id, txid)
235
+
236
+ Return a specific operation of the wallet
237
+
238
+ ### Example
239
+
240
+ ```ruby
241
+ # load the gem
242
+ require 'bleumi_pay_sdk_ruby'
243
+ # setup authorization
244
+ BleumiPay.configure do |config|
245
+ # Configure API key authorization: ApiKeyAuth
246
+ config.api_key['x-api-key'] = '<YOUR_API_KEY>'
247
+ end
248
+
249
+ api_instance = BleumiPay::Erc20PaymentsApi.new
250
+ id = '<ID>' # String | Unique ID identifying the wallet in your system
251
+ txid = '<TXID>' # String | ID of a specific operation of the wallet
252
+
253
+ begin
254
+ #Return a specific operation of the wallet
255
+ result = api_instance.get_wallet_operation(id, txid)
256
+ p result
257
+ rescue BleumiPay::ApiError => e
258
+ puts "Exception when calling Erc20PaymentsApi->get_wallet_operation: #{e}"
259
+ end
260
+ ```
261
+
262
+ ### Parameters
263
+
264
+
265
+ Name | Type | Description | Notes
266
+ ------------- | ------------- | ------------- | -------------
267
+ **id** | **String**| Unique ID identifying the wallet in your system |
268
+ **txid** | **String**| ID of a specific operation of the wallet |
269
+
270
+ ### Return type
271
+
272
+ [**WalletOperation**](WalletOperation.md)
273
+
274
+
275
+
276
+ ## get_wallet_operations
277
+
278
+ > PaginatedWalletOperations get_wallet_operations(id, opts)
279
+
280
+ Return the list of operations performed by the mechant on a specific wallet
281
+
282
+ ### Example
283
+
284
+ ```ruby
285
+ # load the gem
286
+ require 'bleumi_pay_sdk_ruby'
287
+ # setup authorization
288
+ BleumiPay.configure do |config|
289
+ # Configure API key authorization: ApiKeyAuth
290
+ config.api_key['x-api-key'] = '<YOUR_API_KEY>'
291
+ end
292
+
293
+ api_instance = BleumiPay::Erc20PaymentsApi.new
294
+ id = '<ID>' # String | Unique ID identifying the wallet in your system
295
+ opts = {
296
+ next_token: '' # String | Cursor to start results from
297
+ }
298
+
299
+ begin
300
+ #Return the list of operations performed by the mechant on a specific wallet
301
+ result = api_instance.get_wallet_operations(id, opts)
302
+ p result
303
+ rescue BleumiPay::ApiError => e
304
+ puts "Exception when calling Erc20PaymentsApi->get_wallet_operations: #{e}"
305
+ end
306
+ ```
307
+
308
+ ### Parameters
309
+
310
+
311
+ Name | Type | Description | Notes
312
+ ------------- | ------------- | ------------- | -------------
313
+ **id** | **String**| Unique ID identifying the wallet in your system |
314
+ **next_token** | **String**| Cursor to start results from | [optional]
315
+
316
+ ### Return type
317
+
318
+ [**PaginatedWalletOperations**](PaginatedWalletOperations.md)