bleumi_pay_sdk_ruby 1.0.1 → 1.0.2
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/LICENSE +21 -0
- data/README.md +37 -41
- data/docs/BadRequest.md +0 -9
- data/docs/Erc20PaymentsApi.md +50 -34
- data/docs/EthAddress.md +1 -10
- data/docs/EthNetwork.md +6 -13
- data/docs/PaginatedWalletOperations.md +2 -2
- data/docs/PaginatedWallets.md +2 -2
- data/docs/Wallet.md +6 -22
- data/docs/WalletBalance.md +4 -16
- data/docs/WalletCreateInput.md +3 -15
- data/docs/WalletCreateOutput.md +4 -13
- data/docs/WalletInputs.md +0 -1
- data/docs/WalletOperation.md +4 -5
- data/docs/WalletOperationInputs.md +4 -15
- data/docs/WalletOperationOutput.md +0 -7
- data/docs/WalletRefundOperationInput.md +1 -9
- data/docs/WalletSettleOperationInput.md +2 -13
- data/lib/bleumi_pay_sdk_ruby/api/erc20_payments_api.rb +19 -19
- data/lib/bleumi_pay_sdk_ruby/version.rb +1 -1
- metadata +4 -41
- data/spec/api/erc20_payments_api_spec.rb +0 -120
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/bad_request_spec.rb +0 -47
- data/spec/models/eth_address_spec.rb +0 -41
- data/spec/models/eth_network_spec.rb +0 -35
- data/spec/models/paginated_wallet_operations_spec.rb +0 -47
- data/spec/models/paginated_wallets_spec.rb +0 -47
- data/spec/models/wallet_balance_spec.rb +0 -59
- data/spec/models/wallet_create_input_spec.rb +0 -53
- data/spec/models/wallet_create_output_spec.rb +0 -47
- data/spec/models/wallet_inputs_spec.rb +0 -65
- data/spec/models/wallet_operation_inputs_spec.rb +0 -59
- data/spec/models/wallet_operation_output_spec.rb +0 -41
- data/spec/models/wallet_operation_spec.rb +0 -65
- data/spec/models/wallet_refund_operation_input_spec.rb +0 -41
- data/spec/models/wallet_settle_operation_input_spec.rb +0 -47
- data/spec/models/wallet_spec.rb +0 -77
- data/spec/spec_helper.rb +0 -111
@@ -1,59 +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
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BleumiPay::WalletBalance
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'WalletBalance' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BleumiPay::WalletBalance.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of WalletBalance' do
|
31
|
-
it 'should create an instance of WalletBalance' do
|
32
|
-
expect(@instance).to be_instance_of(BleumiPay::WalletBalance)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "balance"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "token_balance"' 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
|
-
describe 'test attribute "token_decimals"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "block_num"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
end
|
@@ -1,53 +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
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BleumiPay::WalletCreateInput
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'WalletCreateInput' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BleumiPay::WalletCreateInput.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of WalletCreateInput' do
|
31
|
-
it 'should create an instance of WalletCreateInput' do
|
32
|
-
expect(@instance).to be_instance_of(BleumiPay::WalletCreateInput)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "id"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "buyer_address"' 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
|
-
describe 'test attribute "transfer_address"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
end
|
@@ -1,47 +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
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BleumiPay::WalletCreateOutput
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'WalletCreateOutput' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BleumiPay::WalletCreateOutput.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of WalletCreateOutput' do
|
31
|
-
it 'should create an instance of WalletCreateOutput' do
|
32
|
-
expect(@instance).to be_instance_of(BleumiPay::WalletCreateOutput)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "chain"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "addr"' 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
|
-
end
|
@@ -1,65 +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
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BleumiPay::WalletInputs
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'WalletInputs' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BleumiPay::WalletInputs.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of WalletInputs' do
|
31
|
-
it 'should create an instance of WalletInputs' do
|
32
|
-
expect(@instance).to be_instance_of(BleumiPay::WalletInputs)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "buyer"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "merchant"' 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
|
-
describe 'test attribute "wallet_library"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "wallet_proxy"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
describe 'test attribute "salt"' do
|
60
|
-
it 'should work' do
|
61
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
end
|
@@ -1,59 +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
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BleumiPay::WalletOperationInputs
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'WalletOperationInputs' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BleumiPay::WalletOperationInputs.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of WalletOperationInputs' do
|
31
|
-
it 'should create an instance of WalletOperationInputs' do
|
32
|
-
expect(@instance).to be_instance_of(BleumiPay::WalletOperationInputs)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "amount"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "token"' 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
|
-
describe 'test attribute "token_amount"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "token_decimals"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
end
|
@@ -1,41 +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
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BleumiPay::WalletOperationOutput
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'WalletOperationOutput' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BleumiPay::WalletOperationOutput.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of WalletOperationOutput' do
|
31
|
-
it 'should create an instance of WalletOperationOutput' do
|
32
|
-
expect(@instance).to be_instance_of(BleumiPay::WalletOperationOutput)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "txid"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
end
|
@@ -1,65 +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
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BleumiPay::WalletOperation
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'WalletOperation' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BleumiPay::WalletOperation.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of WalletOperation' do
|
31
|
-
it 'should create an instance of WalletOperation' do
|
32
|
-
expect(@instance).to be_instance_of(BleumiPay::WalletOperation)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "id"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "func_name"' 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
|
-
describe 'test attribute "status"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
describe 'test attribute "inputs"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
describe 'test attribute "hash"' do
|
60
|
-
it 'should work' do
|
61
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
end
|
@@ -1,41 +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
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BleumiPay::WalletRefundOperationInput
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'WalletRefundOperationInput' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BleumiPay::WalletRefundOperationInput.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of WalletRefundOperationInput' do
|
31
|
-
it 'should create an instance of WalletRefundOperationInput' do
|
32
|
-
expect(@instance).to be_instance_of(BleumiPay::WalletRefundOperationInput)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "token"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
end
|
@@ -1,47 +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
|
-
require 'date'
|
16
|
-
|
17
|
-
# Unit tests for BleumiPay::WalletSettleOperationInput
|
18
|
-
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'WalletSettleOperationInput' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = BleumiPay::WalletSettleOperationInput.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of WalletSettleOperationInput' do
|
31
|
-
it 'should create an instance of WalletSettleOperationInput' do
|
32
|
-
expect(@instance).to be_instance_of(BleumiPay::WalletSettleOperationInput)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "token"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
describe 'test attribute "amount"' 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
|
-
end
|