bleumi_pay_sdk_ruby 1.0.4 → 1.0.5
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/Gemfile +1 -1
- data/bleumi_pay_sdk_ruby.gemspec +4 -4
- data/docs/AlgorandWalletAddress.md +24 -0
- data/docs/AlgorandWalletInputs.md +23 -0
- data/docs/CheckoutToken.md +2 -0
- data/docs/EthereumWalletAddress.md +23 -0
- data/docs/EthereumWalletInputs.md +23 -0
- data/docs/HostedCheckoutsApi.md +2 -4
- data/docs/PaginatedPayments.md +51 -28
- data/docs/Payment.md +32 -10
- data/docs/PaymentAddresses.md +24 -8
- data/docs/PaymentBalances.md +15 -7
- data/docs/PaymentsApi.md +3 -0
- data/hc_create.rb +33 -0
- data/hc_list.rb +17 -0
- data/hc_validate.rb +22 -0
- data/lib/bleumi_pay_sdk_ruby.rb +4 -1
- data/lib/bleumi_pay_sdk_ruby/api/payments_api.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/api/payouts_api.rb +1 -1
- data/lib/bleumi_pay_sdk_ruby/configuration.rb +6 -3
- data/lib/bleumi_pay_sdk_ruby/models/{wallet_address.rb → algorand_wallet_address.rb} +18 -9
- data/lib/bleumi_pay_sdk_ruby/models/algorand_wallet_inputs.rb +247 -0
- data/lib/bleumi_pay_sdk_ruby/models/checkout_token.rb +19 -4
- data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_request.rb +2 -1
- data/lib/bleumi_pay_sdk_ruby/models/ethereum_wallet_address.rb +221 -0
- data/lib/bleumi_pay_sdk_ruby/models/ethereum_wallet_inputs.rb +247 -0
- data/lib/bleumi_pay_sdk_ruby/models/payment_addresses.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/version.rb +1 -1
- data/po_create.rb +39 -0
- data/po_list.rb +23 -0
- data/py_create.rb +2 -2
- data/py_get.rb +18 -0
- data/py_getop.rb +19 -0
- data/py_list.rb +24 -0
- data/py_listops.rb +21 -0
- data/py_refund.rb +33 -0
- data/py_settle.rb +32 -0
- data/spec/api/hosted_checkouts_api_spec.rb +1 -1
- data/spec/api/payments_api_spec.rb +7 -6
- data/spec/models/algorand_wallet_address_spec.rb +47 -0
- data/spec/models/{network_balance_spec.rb → algorand_wallet_inputs_spec.rb} +14 -26
- data/spec/models/checkout_token_spec.rb +13 -1
- data/spec/models/create_checkout_url_request_spec.rb +6 -0
- data/spec/models/create_payment_request_spec.rb +6 -0
- data/spec/models/ethereum_wallet_address_spec.rb +47 -0
- data/spec/models/ethereum_wallet_inputs_spec.rb +65 -0
- data/spec/models/payment_addresses_spec.rb +6 -0
- data/spec/models/payment_balances_spec.rb +6 -0
- data/spec/models/payout_spec.rb +6 -0
- metadata +33 -15
- data/docs/WalletAddress.md +0 -15
- data/spec/models/eth_address_spec.rb +0 -41
- data/spec/models/token_spec.rb +0 -41
- data/spec/models/wallet_address_spec.rb +0 -41
@@ -30,8 +30,8 @@ module BleumiPay
|
|
30
30
|
# Attribute type mapping.
|
31
31
|
def self.openapi_types
|
32
32
|
{
|
33
|
-
:'ethereum' => :'Hash<String,
|
34
|
-
:'algorand' => :'Hash<String,
|
33
|
+
:'ethereum' => :'Hash<String, EthereumWalletAddress>',
|
34
|
+
:'algorand' => :'Hash<String, AlgorandWalletAddress>'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
data/po_create.rb
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Load the gem
|
2
|
+
require 'bleumi_pay_sdk_ruby'
|
3
|
+
|
4
|
+
# Setup authorization
|
5
|
+
BleumiPay.configure do |config|
|
6
|
+
# Configure API key authorization: ApiKeyAuth
|
7
|
+
config.api_key['x-api-key'] = 'hwE7QJcJ1raJicN8K0jwca4eIKAiVne179CK8wro'
|
8
|
+
end
|
9
|
+
|
10
|
+
api_instance = BleumiPay::PayoutsApi.new
|
11
|
+
|
12
|
+
opts = {
|
13
|
+
chain: BleumiPay::Chain::GOERLI # Chain | Ethereum network in which payment is to be created.
|
14
|
+
}
|
15
|
+
|
16
|
+
create_payout_request = BleumiPay::CreatePayoutRequest.new # CreatePayoutRequest | Specify payout creation parameters.
|
17
|
+
create_payout_request = BleumiPay::CreatePayoutRequest.new # CreatePayoutRequest | Request body - used to specify payout creation parameters.
|
18
|
+
# This example shows 2 payouts being created
|
19
|
+
# Creating Payout-1
|
20
|
+
payout1 = BleumiPay::Payout.new
|
21
|
+
payout1.amount = '1' # str | Replace <PAYOUT_AMT_1> with the 1st payout's amount
|
22
|
+
payout1.transfer_address = '0x5db2d6542d55B2aEC1f10D0C0Df3B0169Bf41E41' # str | Replace <PAYOUT_ADDR_1> with the 1st payout's receiver's address
|
23
|
+
# Creating Payout-2
|
24
|
+
payout2 = BleumiPay::Payout.new
|
25
|
+
payout2.amount = '1' # str | Replace <PAYOUT_AMT_2> with the 2nd payout's amount
|
26
|
+
payout2.transfer_address = '0x195797609aDcF24b9ca3a105D221293fCA0c476F' # str | Replace <PAYOUT_ADDR_2> with the 2nd payout's receiver's address
|
27
|
+
# Creating a payouts array with both the payouts created above
|
28
|
+
payouts = [payout1, payout2]
|
29
|
+
|
30
|
+
create_payout_request.txid = '29' # str | Replace with unique payout ID
|
31
|
+
create_payout_request.token = '0x115615DbD0f835344725146Fa6343219315F15E5' # str | Replace <TOKEN> with Token. Eg. ETH or ECR-20 token contract address or XDAI or XDAIT
|
32
|
+
create_payout_request.payouts = payouts # setting the payouts array to the payout create request
|
33
|
+
begin
|
34
|
+
#Create an unique wallet address to accept payments for an ERC-20 token from a buyer
|
35
|
+
result = api_instance.create_payout(create_payout_request, opts)
|
36
|
+
p result
|
37
|
+
rescue BleumiPay::ApiError => e
|
38
|
+
puts "Exception when calling PayoutsApi->create_payout: #{e}"
|
39
|
+
end
|
data/po_list.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# load the gem
|
2
|
+
require 'bleumi_pay_sdk_ruby'
|
3
|
+
# setup authorization
|
4
|
+
BleumiPay.configure do |config|
|
5
|
+
# Configure API key authorization: ApiKeyAuth
|
6
|
+
config.api_key['x-api-key'] = 'hwE7QJcJ1raJicN8K0jwca4eIKAiVne179CK8wro'
|
7
|
+
end
|
8
|
+
|
9
|
+
api_instance = BleumiPay::PayoutsApi.new
|
10
|
+
opts = {
|
11
|
+
next_token: '', # String | Cursor to start results from
|
12
|
+
sort_by: 'createdAt', # String | Sort wallets by
|
13
|
+
start_at: '1577836800', # String | Get wallets from this timestamp
|
14
|
+
end_at: '' # String | Get wallets till this timestamp
|
15
|
+
}
|
16
|
+
|
17
|
+
begin
|
18
|
+
#Returns a list of wallets
|
19
|
+
result = api_instance.list_payouts(opts)
|
20
|
+
p result
|
21
|
+
rescue BleumiPay::ApiError => e
|
22
|
+
puts "Exception when calling PayoutsApi->list_payouts: #{e}"
|
23
|
+
end
|
data/py_create.rb
CHANGED
@@ -4,7 +4,7 @@ require 'bleumi_pay_sdk_ruby'
|
|
4
4
|
# Setup authorization
|
5
5
|
BleumiPay.configure do |config|
|
6
6
|
# Configure API key authorization: ApiKeyAuth
|
7
|
-
config.api_key['x-api-key'] = '
|
7
|
+
config.api_key['x-api-key'] = 'hwE7QJcJ1raJicN8K0jwca4eIKAiVne179CK8wro'
|
8
8
|
end
|
9
9
|
|
10
10
|
api_instance = BleumiPay::PaymentsApi.new
|
@@ -24,7 +24,7 @@ buyer_address = 'W5XU4IWCTVBTYXSYIGJYXEPXH2O5S6RPHLF4JK25NEPYT3RACD4Z3EBS4A'
|
|
24
24
|
transfer_address = 'CQRMTAHZJA3SIEOTEMZXCAIZKUWE2CCLBCFYQI4NINU43IOTEWT4LOT4IY'
|
25
25
|
|
26
26
|
|
27
|
-
create_payment_request.id = '
|
27
|
+
create_payment_request.id = '32'
|
28
28
|
create_payment_request.buyer_address = buyer_address
|
29
29
|
create_payment_request.transfer_address = transfer_address
|
30
30
|
# create_payment_request.token = token
|
data/py_get.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# load the gem
|
2
|
+
require 'bleumi_pay_sdk_ruby'
|
3
|
+
# setup authorization
|
4
|
+
BleumiPay.configure do |config|
|
5
|
+
# Configure API key authorization: ApiKeyAuth
|
6
|
+
config.api_key['x-api-key'] = 'gCix0pemxoUt76Ufef16jwvbV6cC7H60HdryEJj0'
|
7
|
+
end
|
8
|
+
|
9
|
+
api_instance = BleumiPay::PaymentsApi.new
|
10
|
+
id = '66' # String | Unique ID identifying the wallet in your system
|
11
|
+
|
12
|
+
begin
|
13
|
+
#Return a specific wallet
|
14
|
+
result = api_instance.get_payment(id)
|
15
|
+
p result
|
16
|
+
rescue BleumiPay::ApiError => e
|
17
|
+
puts "Exception when calling PaymentsApi->get_payment: #{e}"
|
18
|
+
end
|
data/py_getop.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# load the gem
|
2
|
+
require 'bleumi_pay_sdk_ruby'
|
3
|
+
# setup authorization
|
4
|
+
BleumiPay.configure do |config|
|
5
|
+
# Configure API key authorization: ApiKeyAuth
|
6
|
+
config.api_key['x-api-key'] = 'hwE7QJcJ1raJicN8K0jwca4eIKAiVne179CK8wro'
|
7
|
+
end
|
8
|
+
|
9
|
+
api_instance = BleumiPay::PaymentsApi.new
|
10
|
+
id = '32' # String | Unique ID identifying the wallet in your system
|
11
|
+
txid = '1580382159243' # String | ID of a specific operation of the wallet
|
12
|
+
|
13
|
+
begin
|
14
|
+
#Return a specific operation of the wallet
|
15
|
+
result = api_instance.get_payment_operation(id, txid)
|
16
|
+
p result
|
17
|
+
rescue BleumiPay::ApiError => e
|
18
|
+
puts "Exception when calling PaymentsApi->get_payment_operation: #{e}"
|
19
|
+
end
|
data/py_list.rb
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# load the gem
|
2
|
+
require 'bleumi_pay_sdk_ruby'
|
3
|
+
# setup authorization
|
4
|
+
BleumiPay.configure do |config|
|
5
|
+
# Configure API key authorization: ApiKeyAuth
|
6
|
+
config.api_key['x-api-key'] = 'hwE7QJcJ1raJicN8K0jwca4eIKAiVne179CK8wro'
|
7
|
+
end
|
8
|
+
|
9
|
+
api_instance = BleumiPay::PaymentsApi.new
|
10
|
+
opts = {
|
11
|
+
next_token: '', # String | Cursor to start results from. Eg. Cm0KEwoJY3JlYXRlZEF0EgYI/IjA8QUSUmoQc35wYXktZGV2LTIzNTkxMXI+CxIHQWNjb3VudCIkVWxvbTNlaVZaTFhqR3gyYWxCcnhDOG13UWx6MXxzYW5kYm94DAsSBldhbGxldCIBOQwYACAA
|
12
|
+
sort_by: 'createdAt', # String | Sort payments by
|
13
|
+
sort_order: 'ascending', # String | Sort Order for payments
|
14
|
+
start_at: '1577836800', # String | Get payments from this timestamp
|
15
|
+
end_at: nil # String | Get payments till this timestamp
|
16
|
+
}
|
17
|
+
|
18
|
+
begin
|
19
|
+
#Returns a list of wallets
|
20
|
+
result = api_instance.list_payments(opts)
|
21
|
+
p result
|
22
|
+
rescue BleumiPay::ApiError => e
|
23
|
+
puts "Exception when calling list_payments: #{e}"
|
24
|
+
end
|
data/py_listops.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# load the gem
|
2
|
+
require 'bleumi_pay_sdk_ruby'
|
3
|
+
# setup authorization
|
4
|
+
BleumiPay.configure do |config|
|
5
|
+
# Configure API key authorization: ApiKeyAuth
|
6
|
+
config.api_key['x-api-key'] = 'hwE7QJcJ1raJicN8K0jwca4eIKAiVne179CK8wro'
|
7
|
+
end
|
8
|
+
|
9
|
+
api_instance = BleumiPay::PaymentsApi.new
|
10
|
+
id = '25' # String | Unique ID identifying the wallet in your system
|
11
|
+
opts = {
|
12
|
+
next_token: '' # String | Cursor to start results from
|
13
|
+
}
|
14
|
+
|
15
|
+
begin
|
16
|
+
#Return the list of operations performed by the mechant on a specific wallet
|
17
|
+
result = api_instance.list_payment_operations(id, opts)
|
18
|
+
p result
|
19
|
+
rescue BleumiPay::ApiError => e
|
20
|
+
puts "Exception when calling list_payment_operations: #{e}"
|
21
|
+
end
|
data/py_refund.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# load the gem
|
2
|
+
require 'bleumi_pay_sdk_ruby'
|
3
|
+
# setup authorization
|
4
|
+
BleumiPay.configure do |config|
|
5
|
+
# Configure API key authorization: ApiKeyAuth
|
6
|
+
config.api_key['x-api-key'] = 'hwE7QJcJ1raJicN8K0jwca4eIKAiVne179CK8wro'
|
7
|
+
end
|
8
|
+
|
9
|
+
api_instance = BleumiPay::PaymentsApi.new
|
10
|
+
id = '25' # String | Unique ID identifying this record in your system
|
11
|
+
|
12
|
+
opts = {
|
13
|
+
chain: BleumiPay::Chain::GOERLI # Chain | Ethereum network in which payment is to be created. Please refer documentation for Supported Networks
|
14
|
+
}
|
15
|
+
refundTokenAddresss = '0x115615DbD0f835344725146Fa6343219315F15E5'
|
16
|
+
|
17
|
+
# opts = {
|
18
|
+
# chain: BleumiPay::Chain::ALG_TESTNET # Chain | Ethereum network in which payment is to be created. Please refer documentation for Supported Networks
|
19
|
+
# }
|
20
|
+
# refundTokenAddresss = 'ALGO'
|
21
|
+
|
22
|
+
|
23
|
+
payment_refund_request = BleumiPay::PaymentRefundRequest.new # PaymentRefundRequest | Request body - used to specify the token to refund.
|
24
|
+
|
25
|
+
payment_refund_request.token = refundTokenAddresss
|
26
|
+
|
27
|
+
begin
|
28
|
+
#Refund wallet
|
29
|
+
result = api_instance.refund_payment(id, payment_refund_request, opts)
|
30
|
+
p result
|
31
|
+
rescue BleumiPay::ApiError => e
|
32
|
+
puts "Exception when calling PaymentsApi->refund_payment: #{e}"
|
33
|
+
end
|
data/py_settle.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# load the gem
|
2
|
+
require 'bleumi_pay_sdk_ruby'
|
3
|
+
# setup authorization
|
4
|
+
BleumiPay.configure do |config|
|
5
|
+
# Configure API key authorization: ApiKeyAuth
|
6
|
+
config.api_key['x-api-key'] = 'hwE7QJcJ1raJicN8K0jwca4eIKAiVne179CK8wro'
|
7
|
+
end
|
8
|
+
|
9
|
+
api_instance = BleumiPay::PaymentsApi.new
|
10
|
+
id = '32' # String | Unique ID identifying this record in your system
|
11
|
+
# opts = {
|
12
|
+
# chain: BleumiPay::Chain::GOERLI # Chain | Ethereum network in which payment is to be created. Please refer documentation for Supported Networks
|
13
|
+
# }
|
14
|
+
# settleToken = '0x115615DbD0f835344725146Fa6343219315F15E5'
|
15
|
+
|
16
|
+
opts = {
|
17
|
+
chain: BleumiPay::Chain::ALG_TESTNET # Chain | Ethereum network in which payment is to be created. Please refer documentation for Supported Networks
|
18
|
+
}
|
19
|
+
settleToken = 'ALGO'
|
20
|
+
|
21
|
+
|
22
|
+
payment_settle_request = BleumiPay::PaymentSettleRequest.new # WalletSettleOperationInput | Request body - used to specify the amount to settle.
|
23
|
+
payment_settle_request.amount = '10'
|
24
|
+
payment_settle_request.token = settleToken
|
25
|
+
|
26
|
+
begin
|
27
|
+
#Settle a wallet, amount received will be transferred even if less than payment amount
|
28
|
+
result = api_instance.settle_payment(id, payment_settle_request, opts)
|
29
|
+
p result
|
30
|
+
rescue BleumiPay::ApiError => e
|
31
|
+
puts "Exception when calling PaymentsApi->settle_payment: #{e}"
|
32
|
+
end
|
@@ -44,7 +44,7 @@ describe 'HostedCheckoutsApi' do
|
|
44
44
|
end
|
45
45
|
|
46
46
|
# unit tests for list_tokens
|
47
|
-
# Retrieve all tokens configured for the Hosted Checkout in your account in the
|
47
|
+
# Retrieve all tokens configured for the Hosted Checkout in your account in the Bleumi Pay Dashboard.
|
48
48
|
# @param [Hash] opts the optional parameters
|
49
49
|
# @return [Array<CheckoutToken>]
|
50
50
|
describe 'list_tokens test' do
|
@@ -36,7 +36,7 @@ describe 'PaymentsApi' do
|
|
36
36
|
# Generate a unique wallet address in the specified network to accept payment
|
37
37
|
# @param create_payment_request
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [Chain] :chain
|
39
|
+
# @option opts [Chain] :chain Network in which payment is to be created. Please refer documentation for Supported Networks
|
40
40
|
# @return [CreatePaymentResponse]
|
41
41
|
describe 'create_payment test' do
|
42
42
|
it 'should work' do
|
@@ -46,7 +46,7 @@ describe 'PaymentsApi' do
|
|
46
46
|
|
47
47
|
# unit tests for get_payment
|
48
48
|
# Retrieve the wallet addresses & token balances for a given payment
|
49
|
-
# @param id Unique identifier of the payment (specified during
|
49
|
+
# @param id Unique identifier of the payment (specified during createPayment) to retrieve
|
50
50
|
# @param [Hash] opts the optional parameters
|
51
51
|
# @return [Payment]
|
52
52
|
describe 'get_payment test' do
|
@@ -84,6 +84,7 @@ describe 'PaymentsApi' do
|
|
84
84
|
# @param [Hash] opts the optional parameters
|
85
85
|
# @option opts [String] :next_token Cursor to start results from
|
86
86
|
# @option opts [String] :sort_by Sort payments by
|
87
|
+
# @option opts [String] :sort_order Sort Order
|
87
88
|
# @option opts [String] :start_at Get payments from this timestamp (unix)
|
88
89
|
# @option opts [String] :end_at Get payments till this timestamp (unix)
|
89
90
|
# @return [PaginatedPayments]
|
@@ -95,10 +96,10 @@ describe 'PaymentsApi' do
|
|
95
96
|
|
96
97
|
# unit tests for refund_payment
|
97
98
|
# Refund the balance of a token for a given payment to the buyerAddress
|
98
|
-
# @param id Unique identifier of the payment (specified during
|
99
|
+
# @param id Unique identifier of the payment (specified during createPayment)
|
99
100
|
# @param payment_refund_request Request body - used to specify the token to refund.
|
100
101
|
# @param [Hash] opts the optional parameters
|
101
|
-
# @option opts [Chain] :chain network in which payment is to be
|
102
|
+
# @option opts [Chain] :chain Ethereum network in which payment is to be refunded.
|
102
103
|
# @return [PaymentOperationResponse]
|
103
104
|
describe 'refund_payment test' do
|
104
105
|
it 'should work' do
|
@@ -108,10 +109,10 @@ describe 'PaymentsApi' do
|
|
108
109
|
|
109
110
|
# unit tests for settle_payment
|
110
111
|
# Settle a specific amount of a token for a given payment to the transferAddress and remaining balance (if any) will be refunded to the buyerAddress
|
111
|
-
# @param id Unique identifier of the payment (specified during
|
112
|
+
# @param id Unique identifier of the payment (specified during createPayment)
|
112
113
|
# @param payment_settle_request Request body - used to specify the amount to settle.
|
113
114
|
# @param [Hash] opts the optional parameters
|
114
|
-
# @option opts [Chain] :chain network in which payment is to be
|
115
|
+
# @option opts [Chain] :chain Ethereum network in which payment is to be settled.
|
115
116
|
# @return [PaymentOperationResponse]
|
116
117
|
describe 'settle_payment test' do
|
117
118
|
it 'should work' do
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#Bleumi Pay REST API
|
3
|
+
|
4
|
+
#A simple and powerful REST API to integrate Algorand, Ethereum, ERC-20 and xDai payments and/or payouts into your business
|
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.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for BleumiPay::AlgorandWalletAddress
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AlgorandWalletAddress' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = BleumiPay::AlgorandWalletAddress.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AlgorandWalletAddress' do
|
31
|
+
it 'should create an instance of AlgorandWalletAddress' do
|
32
|
+
expect(@instance).to be_instance_of(BleumiPay::AlgorandWalletAddress)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "addr"' 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 "inputs"' 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,12 +1,12 @@
|
|
1
1
|
=begin
|
2
|
-
#Bleumi Pay API
|
2
|
+
#Bleumi Pay REST API
|
3
3
|
|
4
|
-
#A simple and powerful REST API to integrate
|
4
|
+
#A simple and powerful REST API to integrate Algorand, Ethereum, ERC-20 and xDai payments and/or payouts into your business
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: info@bleumi.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,61 +14,49 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for BleumiPay::
|
17
|
+
# Unit tests for BleumiPay::AlgorandWalletInputs
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'AlgorandWalletInputs' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = BleumiPay::
|
23
|
+
@instance = BleumiPay::AlgorandWalletInputs.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(BleumiPay::
|
30
|
+
describe 'test an instance of AlgorandWalletInputs' do
|
31
|
+
it 'should create an instance of AlgorandWalletInputs' do
|
32
|
+
expect(@instance).to be_instance_of(BleumiPay::AlgorandWalletInputs)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "buyer"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "merchant"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "salt"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "gas"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
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
|
-
describe 'test attribute "ropsten"' do
|
66
|
-
it 'should work' do
|
67
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
describe 'test attribute "xdai_testnet"' do
|
59
|
+
describe 'test attribute "program_bytes"' do
|
72
60
|
it 'should work' do
|
73
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
62
|
end
|