bleumi_pay_sdk_ruby 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +21 -0
  3. data/README.md +37 -41
  4. data/docs/BadRequest.md +0 -9
  5. data/docs/Erc20PaymentsApi.md +50 -34
  6. data/docs/EthAddress.md +1 -10
  7. data/docs/EthNetwork.md +6 -13
  8. data/docs/PaginatedWalletOperations.md +2 -2
  9. data/docs/PaginatedWallets.md +2 -2
  10. data/docs/Wallet.md +6 -22
  11. data/docs/WalletBalance.md +4 -16
  12. data/docs/WalletCreateInput.md +3 -15
  13. data/docs/WalletCreateOutput.md +4 -13
  14. data/docs/WalletInputs.md +0 -1
  15. data/docs/WalletOperation.md +4 -5
  16. data/docs/WalletOperationInputs.md +4 -15
  17. data/docs/WalletOperationOutput.md +0 -7
  18. data/docs/WalletRefundOperationInput.md +1 -9
  19. data/docs/WalletSettleOperationInput.md +2 -13
  20. data/lib/bleumi_pay_sdk_ruby/api/erc20_payments_api.rb +19 -19
  21. data/lib/bleumi_pay_sdk_ruby/version.rb +1 -1
  22. metadata +4 -41
  23. data/spec/api/erc20_payments_api_spec.rb +0 -120
  24. data/spec/api_client_spec.rb +0 -226
  25. data/spec/configuration_spec.rb +0 -42
  26. data/spec/models/bad_request_spec.rb +0 -47
  27. data/spec/models/eth_address_spec.rb +0 -41
  28. data/spec/models/eth_network_spec.rb +0 -35
  29. data/spec/models/paginated_wallet_operations_spec.rb +0 -47
  30. data/spec/models/paginated_wallets_spec.rb +0 -47
  31. data/spec/models/wallet_balance_spec.rb +0 -59
  32. data/spec/models/wallet_create_input_spec.rb +0 -53
  33. data/spec/models/wallet_create_output_spec.rb +0 -47
  34. data/spec/models/wallet_inputs_spec.rb +0 -65
  35. data/spec/models/wallet_operation_inputs_spec.rb +0 -59
  36. data/spec/models/wallet_operation_output_spec.rb +0 -41
  37. data/spec/models/wallet_operation_spec.rb +0 -65
  38. data/spec/models/wallet_refund_operation_input_spec.rb +0 -41
  39. data/spec/models/wallet_settle_operation_input_spec.rb +0 -47
  40. data/spec/models/wallet_spec.rb +0 -77
  41. data/spec/spec_helper.rb +0 -111
@@ -4,20 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **balance** | **String** | Address of the buyer |
8
- **token_balance** | **String** | Address of the merchant |
9
- **token_decimals** | **Integer** | Wallet Library address |
10
- **block_num** | **String** | Wallet Proxy address |
11
-
12
- ## Code Sample
13
-
14
- ```ruby
15
- require 'BleumiPay'
16
-
17
- instance = BleumiPay::WalletBalance.new(balance: null,
18
- token_balance: null,
19
- token_decimals: null,
20
- block_num: null)
21
- ```
22
-
7
+ **balance** | **String** | ERC-20 token balance for the wallet |
8
+ **token_balance** | **String** | ERC-20 token balance for the wallet (in Ethereum format) |
9
+ **token_decimals** | **Integer** | ERC-20 token decimal places |
10
+ **block_num** | **String** | Block in which the ERC-20 token balance was last updated. <br>'0' - No incoming/outgoing transactions recorded. |
23
11
 
@@ -4,18 +4,6 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **id** | **String** | Unique ID identifying the wallet; specified here to create the wallet by your system |
8
- **buyer_address** | [**EthAddress**](EthAddress.md) | |
9
- **transfer_address** | [**EthAddress**](EthAddress.md) | |
10
-
11
- ## Code Sample
12
-
13
- ```ruby
14
- require 'BleumiPay'
15
-
16
- instance = BleumiPay::WalletCreateInput.new(id: null,
17
- buyer_address: null,
18
- transfer_address: null)
19
- ```
20
-
21
-
7
+ **id** | **String** | Unique identifier for this wallet |
8
+ **buyer_address** | [**EthAddress**](EthAddress.md) | Ethereum address of buyer. Refund operations on this wallet will use this address. |
9
+ **transfer_address** | [**EthAddress**](EthAddress.md) | The Ethereum network address of merchant. |
@@ -1,19 +1,10 @@
1
1
  # BleumiPay::WalletCreateOutput
2
2
 
3
+ Confirmation of wallet generation.
4
+
3
5
  ## Properties
4
6
 
5
7
  Name | Type | Description | Notes
6
8
  ------------ | ------------- | ------------- | -------------
7
- **chain** | [**EthNetwork**](EthNetwork.md) | |
8
- **addr** | **String** | Address of the newly created wallet |
9
-
10
- ## Code Sample
11
-
12
- ```ruby
13
- require 'BleumiPay'
14
-
15
- instance = BleumiPay::WalletCreateOutput.new(chain: null,
16
- addr: null)
17
- ```
18
-
19
-
9
+ **chain** | [**EthNetwork**](EthNetwork.md) | Ethereum network in which wallet will be created. Please refer to the [Supported Ethereum Networks](https://pay.bleumi.com/docs/#supported-ethereum-networks) |
10
+ **addr** | **String** | Wallet address |
@@ -9,4 +9,3 @@ Name | Type | Description | Notes
9
9
  **wallet_library** | **String** | Wallet Library address |
10
10
  **wallet_proxy** | **String** | Wallet Proxy address |
11
11
  **salt** | **String** | Salt used to create the wallet |
12
-
@@ -4,9 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **id** | **String** | Unique ID of the wallet; specified when it was created by your system | [optional]
8
- **func_name** | **String** | The name of the function invoked on the payment processor |
9
- **status** | **Boolean** | &lt;b&gt;null&lt;/b&gt; - operation in progress &lt;br/&gt; &lt;b&gt;true&lt;/b&gt; - operation completed successfuly &lt;br/&gt; &lt;b&gt;false&lt;/b&gt; - operation failed to process |
10
- **inputs** | [**WalletOperationInputs**](WalletOperationInputs.md) | |
7
+ **id** | **String** | Unique ID of the wallet; specified when it was created by your system | [optional]
8
+ **func_name** | **String** | Name of the function invoked on the [Payment Processor](https://pay.bleumi.com/docs/#payment-processor-address). Following are the functions available:<br/> - createAndSettleWallet<br/> - createAndRefundWallet |
9
+ **status** | **Boolean** | <b>null</b> - operation in progress <br/> <b>true</b> - operation completed successfuly <br/> <b>false</b> - operation failed to process |
10
+ **inputs** | [**WalletOperationInputs**](WalletOperationInputs.md) | The parameters used to interact with the [Payment Processor](https://pay.bleumi.com/docs/#payment-processor-address) on the ethereum network |
11
11
  **hash** | **String** | Transaction hash of operation submitted to the network. This field is blank when operation is in progress. |
12
-
@@ -4,18 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **amount** | **String** | Amount to be settled |
8
- **token** | **String** | Address of the ERC-20 token |
9
- **token_amount** | **String** | Amount in full precision |
10
- **token_decimals** | **String** | |
11
-
12
- ## Code Sample
13
-
14
- ```ruby
15
- require 'BleumiPay'
16
-
17
- instance = BleumiPay::WalletOperationInputs.new(amount: null,
18
- token: null,
19
- token_amount: null,
20
- token_decimals: null)
21
- ```
7
+ **amount** | **String** | ERC-20 token amount to be settled incase of 'createAndSettleWallet' operation |
8
+ **token** | **String** | ERC-20 token address |
9
+ **token_amount** | **String** | ERC-20 token amount to be settled incase of 'createAndSettleWallet' operation (in Ethereum format) |
10
+ **token_decimals** | **String** | ERC-20 token decimal places incase of 'createAndSettleWallet' operation|
@@ -6,10 +6,3 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **txid** | **String** | Unique identifier for the wallet operation transaction |
8
8
 
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'BleumiPay'
13
-
14
- instance = BleumiPay::WalletOperationOutput.new(txid: null)
15
- ```
@@ -4,12 +4,4 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **token** | [**EthAddress**](EthAddress.md) | |
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'BleumiPay'
13
-
14
- instance = BleumiPay::WalletRefundOperationInput.new(token: null)
15
- ```
7
+ **token** | [**EthAddress**](EthAddress.md) | Unique identifier of the wallet (specified during [Generate Wallet](/docs/Erc20PaymentsApi.md#generate_wallet)) to refund |
@@ -4,16 +4,5 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **token** | [**EthAddress**](EthAddress.md) | |
8
- **amount** | **String** | Amount to be settled |
9
-
10
- ## Code Sample
11
-
12
- ```ruby
13
- require 'BleumiPay'
14
-
15
- instance = BleumiPay::WalletSettleOperationInput.new(token: null,
16
- amount: null)
17
- ```
18
-
19
-
7
+ **token** | [**EthAddress**](EthAddress.md) | Address of the ERC-20 token to be settled |
8
+ **amount** | **String** | ERC-20 token amount to be settled to the transferAddress specified during [Generate Wallet](/docs/Erc20PaymentsApi.md#generate_wallet) |
@@ -24,8 +24,8 @@ module BleumiPay
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [EthNetwork] :chain Ethereum network in which wallet is to be created.
26
26
  # @return [WalletCreateOutput]
27
- def create_wallet(wallet_create_input, opts = {})
28
- data, _status_code, _headers = create_wallet_with_http_info(wallet_create_input, opts)
27
+ def generate_wallet(wallet_create_input, opts = {})
28
+ data, _status_code, _headers = generate_wallet_with_http_info(wallet_create_input, opts)
29
29
  data
30
30
  end
31
31
 
@@ -34,16 +34,16 @@ module BleumiPay
34
34
  # @param [Hash] opts the optional parameters
35
35
  # @option opts [EthNetwork] :chain Ethereum network in which wallet is to be created.
36
36
  # @return [Array<(WalletCreateOutput, Integer, Hash)>] WalletCreateOutput data, response status code and response headers
37
- def create_wallet_with_http_info(wallet_create_input, opts = {})
37
+ def generate_wallet_with_http_info(wallet_create_input, opts = {})
38
38
  if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: Erc20PaymentsApi.create_wallet ...'
39
+ @api_client.config.logger.debug 'Calling API: Erc20PaymentsApi.generate_wallet ...'
40
40
  end
41
41
  # verify the required parameter 'wallet_create_input' is set
42
42
  if @api_client.config.client_side_validation && wallet_create_input.nil?
43
- fail ArgumentError, "Missing the required parameter 'wallet_create_input' when calling Erc20PaymentsApi.create_wallet"
43
+ fail ArgumentError, "Missing the required parameter 'wallet_create_input' when calling Erc20PaymentsApi.generate_wallet"
44
44
  end
45
45
  # resource path
46
- local_var_path = '/v1/payment/erc20/wallet'
46
+ local_var_path = '/v1/payment/eth/wallet'
47
47
 
48
48
  # query parameters
49
49
  query_params = opts[:query_params] || {}
@@ -79,7 +79,7 @@ module BleumiPay
79
79
 
80
80
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
81
81
  if @api_client.config.debugging
82
- @api_client.config.logger.debug "API called: Erc20PaymentsApi#create_wallet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ @api_client.config.logger.debug "API called: Erc20PaymentsApi#generate_wallet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
83
  end
84
84
  return data, status_code, headers
85
85
  end
@@ -106,7 +106,7 @@ module BleumiPay
106
106
  fail ArgumentError, "Missing the required parameter 'id' when calling Erc20PaymentsApi.get_wallet"
107
107
  end
108
108
  # resource path
109
- local_var_path = '/v1/payment/erc20/wallet/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
109
+ local_var_path = '/v1/payment/eth/wallet/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
110
110
 
111
111
  # query parameters
112
112
  query_params = opts[:query_params] || {}
@@ -172,7 +172,7 @@ module BleumiPay
172
172
  fail ArgumentError, "Missing the required parameter 'txid' when calling Erc20PaymentsApi.get_wallet_operation"
173
173
  end
174
174
  # resource path
175
- local_var_path = '/v1/payment/erc20/wallet/{id}/operation/{txid}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'txid' + '}', CGI.escape(txid.to_s))
175
+ local_var_path = '/v1/payment/eth/wallet/{id}/operation/{txid}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'txid' + '}', CGI.escape(txid.to_s))
176
176
 
177
177
  # query parameters
178
178
  query_params = opts[:query_params] || {}
@@ -215,8 +215,8 @@ module BleumiPay
215
215
  # @param [Hash] opts the optional parameters
216
216
  # @option opts [String] :next_token Cursor to start results from
217
217
  # @return [PaginatedWalletOperations]
218
- def get_wallet_operations(id, opts = {})
219
- data, _status_code, _headers = get_wallet_operations_with_http_info(id, opts)
218
+ def list_wallet_operations(id, opts = {})
219
+ data, _status_code, _headers = list_wallet_operations_with_http_info(id, opts)
220
220
  data
221
221
  end
222
222
 
@@ -225,16 +225,16 @@ module BleumiPay
225
225
  # @param [Hash] opts the optional parameters
226
226
  # @option opts [String] :next_token Cursor to start results from
227
227
  # @return [Array<(PaginatedWalletOperations, Integer, Hash)>] PaginatedWalletOperations data, response status code and response headers
228
- def get_wallet_operations_with_http_info(id, opts = {})
228
+ def list_wallet_operations_with_http_info(id, opts = {})
229
229
  if @api_client.config.debugging
230
- @api_client.config.logger.debug 'Calling API: Erc20PaymentsApi.get_wallet_operations ...'
230
+ @api_client.config.logger.debug 'Calling API: Erc20PaymentsApi.list_wallet_operations ...'
231
231
  end
232
232
  # verify the required parameter 'id' is set
233
233
  if @api_client.config.client_side_validation && id.nil?
234
- fail ArgumentError, "Missing the required parameter 'id' when calling Erc20PaymentsApi.get_wallet_operations"
234
+ fail ArgumentError, "Missing the required parameter 'id' when calling Erc20PaymentsApi.list_wallet_operations"
235
235
  end
236
236
  # resource path
237
- local_var_path = '/v1/payment/erc20/wallet/{id}/operation'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
237
+ local_var_path = '/v1/payment/eth/wallet/{id}/operation'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
238
238
 
239
239
  # query parameters
240
240
  query_params = opts[:query_params] || {}
@@ -268,7 +268,7 @@ module BleumiPay
268
268
 
269
269
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
270
270
  if @api_client.config.debugging
271
- @api_client.config.logger.debug "API called: Erc20PaymentsApi#get_wallet_operations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
271
+ @api_client.config.logger.debug "API called: Erc20PaymentsApi#list_wallet_operations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
272
272
  end
273
273
  return data, status_code, headers
274
274
  end
@@ -301,7 +301,7 @@ module BleumiPay
301
301
  fail ArgumentError, "invalid value for \"sort_by\", must be one of #{allowable_values}"
302
302
  end
303
303
  # resource path
304
- local_var_path = '/v1/payment/erc20/wallet'
304
+ local_var_path = '/v1/payment/eth/wallet'
305
305
 
306
306
  # query parameters
307
307
  query_params = opts[:query_params] || {}
@@ -371,7 +371,7 @@ module BleumiPay
371
371
  fail ArgumentError, "Missing the required parameter 'wallet_refund_operation_input' when calling Erc20PaymentsApi.refund_wallet"
372
372
  end
373
373
  # resource path
374
- local_var_path = '/v1/payment/erc20/wallet/{id}/refund'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
374
+ local_var_path = '/v1/payment/eth/wallet/{id}/refund'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
375
375
 
376
376
  # query parameters
377
377
  query_params = opts[:query_params] || {}
@@ -439,7 +439,7 @@ module BleumiPay
439
439
  fail ArgumentError, "Missing the required parameter 'wallet_settle_operation_input' when calling Erc20PaymentsApi.settle_wallet"
440
440
  end
441
441
  # resource path
442
- local_var_path = '/v1/payment/erc20/wallet/{id}/settle'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
442
+ local_var_path = '/v1/payment/eth/wallet/{id}/settle'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
443
443
 
444
444
  # query parameters
445
445
  query_params = opts[:query_params] || {}
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.0
11
11
  =end
12
12
 
13
13
  module BleumiPay
14
- VERSION = '1.0.1'
14
+ VERSION = '1.0.2'
15
15
  end
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.1
4
+ version: 1.0.2
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-05 00:00:00.000000000 Z
11
+ date: 2019-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -79,6 +79,7 @@ extensions: []
79
79
  extra_rdoc_files: []
80
80
  files:
81
81
  - Gemfile
82
+ - LICENSE
82
83
  - README.md
83
84
  - Rakefile
84
85
  - bleumi_pay_sdk_ruby.gemspec
@@ -119,25 +120,6 @@ files:
119
120
  - lib/bleumi_pay_sdk_ruby/models/wallet_refund_operation_input.rb
120
121
  - lib/bleumi_pay_sdk_ruby/models/wallet_settle_operation_input.rb
121
122
  - lib/bleumi_pay_sdk_ruby/version.rb
122
- - spec/api/erc20_payments_api_spec.rb
123
- - spec/api_client_spec.rb
124
- - spec/configuration_spec.rb
125
- - spec/models/bad_request_spec.rb
126
- - spec/models/eth_address_spec.rb
127
- - spec/models/eth_network_spec.rb
128
- - spec/models/paginated_wallet_operations_spec.rb
129
- - spec/models/paginated_wallets_spec.rb
130
- - spec/models/wallet_balance_spec.rb
131
- - spec/models/wallet_create_input_spec.rb
132
- - spec/models/wallet_create_output_spec.rb
133
- - spec/models/wallet_inputs_spec.rb
134
- - spec/models/wallet_operation_inputs_spec.rb
135
- - spec/models/wallet_operation_output_spec.rb
136
- - spec/models/wallet_operation_spec.rb
137
- - spec/models/wallet_refund_operation_input_spec.rb
138
- - spec/models/wallet_settle_operation_input_spec.rb
139
- - spec/models/wallet_spec.rb
140
- - spec/spec_helper.rb
141
123
  homepage: https://pay.bleumi.com/
142
124
  licenses:
143
125
  - MIT
@@ -163,23 +145,4 @@ rubygems_version: 2.7.6.2
163
145
  signing_key:
164
146
  specification_version: 4
165
147
  summary: Bleumi Pay API Ruby Gem
166
- test_files:
167
- - spec/api/erc20_payments_api_spec.rb
168
- - spec/api_client_spec.rb
169
- - spec/configuration_spec.rb
170
- - spec/models/bad_request_spec.rb
171
- - spec/models/wallet_refund_operation_input_spec.rb
172
- - spec/models/wallet_create_input_spec.rb
173
- - spec/models/wallet_spec.rb
174
- - spec/models/paginated_wallets_spec.rb
175
- - spec/models/paginated_wallet_operations_spec.rb
176
- - spec/models/wallet_balance_spec.rb
177
- - spec/models/wallet_create_output_spec.rb
178
- - spec/models/wallet_operation_output_spec.rb
179
- - spec/models/eth_network_spec.rb
180
- - spec/models/wallet_inputs_spec.rb
181
- - spec/models/wallet_settle_operation_input_spec.rb
182
- - spec/models/wallet_operation_spec.rb
183
- - spec/models/wallet_operation_inputs_spec.rb
184
- - spec/models/eth_address_spec.rb
185
- - spec/spec_helper.rb
148
+ test_files: []
@@ -1,120 +0,0 @@
1
- =begin
2
- #Bleumi Pay API
3
-
4
- #A simple and powerful REST API to integrate ERC20 payments into your business or application
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: info@bleumi.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
-
16
- # Unit tests for BleumiPay::Erc20PaymentsApi
17
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
- # Please update as you see appropriate
19
- describe 'Erc20PaymentsApi' do
20
- before do
21
- # run before each test
22
- @api_instance = BleumiPay::Erc20PaymentsApi.new
23
- end
24
-
25
- after do
26
- # run after each test
27
- end
28
-
29
- describe 'test an instance of Erc20PaymentsApi' do
30
- it 'should create an instance of Erc20PaymentsApi' do
31
- expect(@api_instance).to be_instance_of(BleumiPay::Erc20PaymentsApi)
32
- end
33
- end
34
-
35
- # unit tests for create_wallet
36
- # Create an unique wallet address to accept payments for an ERC-20 token from a buyer
37
- # @param wallet_create_input
38
- # @param [Hash] opts the optional parameters
39
- # @option opts [EthNetwork] :chain Ethereum network in which wallet is to be created.
40
- # @return [WalletCreateOutput]
41
- describe 'create_wallet test' do
42
- it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
- end
45
- end
46
-
47
- # unit tests for get_wallet
48
- # Return a specific wallet
49
- # @param id Unique ID identifying the wallet in your system
50
- # @param [Hash] opts the optional parameters
51
- # @return [Wallet]
52
- describe 'get_wallet test' do
53
- it 'should work' do
54
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
- end
56
- end
57
-
58
- # unit tests for get_wallet_operation
59
- # Return a specific operation of the wallet
60
- # @param id Unique ID identifying the wallet in your system
61
- # @param txid ID of a specific operation of the wallet
62
- # @param [Hash] opts the optional parameters
63
- # @return [WalletOperation]
64
- describe 'get_wallet_operation test' do
65
- it 'should work' do
66
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
- end
68
- end
69
-
70
- # unit tests for get_wallet_operations
71
- # Return the list of operations performed by the mechant on a specific wallet
72
- # @param id Unique ID identifying the wallet in your system
73
- # @param [Hash] opts the optional parameters
74
- # @option opts [String] :next_token Cursor to start results from
75
- # @return [PaginatedWalletOperations]
76
- describe 'get_wallet_operations test' do
77
- it 'should work' do
78
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
- end
80
- end
81
-
82
- # unit tests for list_wallets
83
- # Returns a list of wallets
84
- # @param [Hash] opts the optional parameters
85
- # @option opts [String] :next_token Cursor to start results from
86
- # @option opts [String] :sort_by Sort wallets by
87
- # @option opts [String] :start_at Get wallets from this timestamp
88
- # @option opts [String] :end_at Get wallets till this timestamp
89
- # @return [PaginatedWallets]
90
- describe 'list_wallets test' do
91
- it 'should work' do
92
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
93
- end
94
- end
95
-
96
- # unit tests for refund_wallet
97
- # Refund wallet
98
- # @param id Unique ID identifying this record in your system
99
- # @param wallet_refund_operation_input Request body - used to specify the token to refund.
100
- # @param [Hash] opts the optional parameters
101
- # @return [WalletOperationOutput]
102
- describe 'refund_wallet test' do
103
- it 'should work' do
104
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
- end
106
- end
107
-
108
- # unit tests for settle_wallet
109
- # Settle a wallet, amount received will be transferred even if less than payment amount
110
- # @param id Unique ID identifying this record in your system
111
- # @param wallet_settle_operation_input Request body - used to specify the amount to settle.
112
- # @param [Hash] opts the optional parameters
113
- # @return [WalletOperationOutput]
114
- describe 'settle_wallet test' do
115
- it 'should work' do
116
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
117
- end
118
- end
119
-
120
- end