bleumi_pay_sdk_ruby 1.0.3 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +31 -26
  4. data/assets/images/BleumiPay.png +0 -0
  5. data/bleumi_pay_sdk_ruby.gemspec +4 -4
  6. data/docs/AlgorandAddress.md +28 -0
  7. data/docs/AlgorandBalance.md +28 -0
  8. data/docs/AlgorandWalletAddress.md +24 -0
  9. data/docs/AlgorandWalletInputs.md +23 -0
  10. data/docs/BadRequest.md +1 -1
  11. data/docs/Chain.md +6 -3
  12. data/docs/CheckoutToken.md +8 -3
  13. data/docs/CreateCheckoutUrlRequest.md +7 -8
  14. data/docs/CreatePayoutRequest.md +1 -1
  15. data/docs/CreatePayoutResponse.md +1 -1
  16. data/docs/EthereumAddress.md +29 -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 +31 -23
  21. data/docs/PaginatedPaymentOperations.md +2 -3
  22. data/docs/PaginatedPayments.md +41 -10
  23. data/docs/PaginatedPayoutItems.md +1 -1
  24. data/docs/Payment.md +13 -7
  25. data/docs/PaymentAddresses.md +29 -7
  26. data/docs/PaymentBalances.md +20 -8
  27. data/docs/PaymentOperation.md +2 -2
  28. data/docs/PaymentOperationInputs.md +3 -4
  29. data/docs/PaymentRefundRequest.md +1 -3
  30. data/docs/PaymentSettleRequest.md +1 -1
  31. data/docs/PaymentsApi.md +15 -73
  32. data/docs/Payout.md +2 -1
  33. data/docs/PayoutItem.md +1 -1
  34. data/docs/PayoutItemInputs.md +1 -1
  35. data/docs/PayoutsApi.md +10 -10
  36. data/docs/RskAddress.md +29 -0
  37. data/docs/RskBalance.md +28 -0
  38. data/docs/ValidateCheckoutRequest.md +2 -2
  39. data/docs/WalletBalance.md +13 -9
  40. data/lib/bleumi_pay_sdk_ruby.rb +13 -8
  41. data/lib/bleumi_pay_sdk_ruby/api/hosted_checkouts_api.rb +17 -5
  42. data/lib/bleumi_pay_sdk_ruby/api/payments_api.rb +34 -78
  43. data/lib/bleumi_pay_sdk_ruby/api/payouts_api.rb +2 -2
  44. data/lib/bleumi_pay_sdk_ruby/api/request_validator.rb +261 -0
  45. data/lib/bleumi_pay_sdk_ruby/api_client.rb +10 -8
  46. data/lib/bleumi_pay_sdk_ruby/api_error.rb +2 -2
  47. data/lib/bleumi_pay_sdk_ruby/configuration.rb +3 -3
  48. data/lib/bleumi_pay_sdk_ruby/models/algorand_address.rb +219 -0
  49. data/lib/bleumi_pay_sdk_ruby/models/algorand_balance.rb +219 -0
  50. data/lib/bleumi_pay_sdk_ruby/models/{create_payment_response.rb → algorand_wallet_address.rb} +20 -11
  51. data/lib/bleumi_pay_sdk_ruby/models/algorand_wallet_inputs.rb +247 -0
  52. data/lib/bleumi_pay_sdk_ruby/models/bad_request.rb +3 -3
  53. data/lib/bleumi_pay_sdk_ruby/models/chain.rb +6 -5
  54. data/lib/bleumi_pay_sdk_ruby/models/checkout_token.rb +46 -16
  55. data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_request.rb +26 -13
  56. data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_response.rb +2 -2
  57. data/lib/bleumi_pay_sdk_ruby/models/create_payout_request.rb +4 -3
  58. data/lib/bleumi_pay_sdk_ruby/models/create_payout_response.rb +2 -2
  59. data/lib/bleumi_pay_sdk_ruby/models/{create_payment_request.rb → ethereum_address.rb} +39 -38
  60. data/lib/bleumi_pay_sdk_ruby/models/{network_balance.rb → ethereum_balance.rb} +13 -46
  61. data/lib/bleumi_pay_sdk_ruby/models/{wallet_address.rb → ethereum_wallet_address.rb} +19 -10
  62. data/lib/bleumi_pay_sdk_ruby/models/ethereum_wallet_inputs.rb +247 -0
  63. data/lib/bleumi_pay_sdk_ruby/models/paginated_payment_operations.rb +2 -2
  64. data/lib/bleumi_pay_sdk_ruby/models/paginated_payments.rb +2 -2
  65. data/lib/bleumi_pay_sdk_ruby/models/paginated_payout_items.rb +2 -2
  66. data/lib/bleumi_pay_sdk_ruby/models/payment.rb +2 -2
  67. data/lib/bleumi_pay_sdk_ruby/models/payment_addresses.rb +25 -9
  68. data/lib/bleumi_pay_sdk_ruby/models/payment_balances.rb +24 -6
  69. data/lib/bleumi_pay_sdk_ruby/models/payment_operation.rb +4 -3
  70. data/lib/bleumi_pay_sdk_ruby/models/payment_operation_inputs.rb +3 -3
  71. data/lib/bleumi_pay_sdk_ruby/models/payment_operation_response.rb +2 -2
  72. data/lib/bleumi_pay_sdk_ruby/models/payment_refund_request.rb +3 -3
  73. data/lib/bleumi_pay_sdk_ruby/models/payment_settle_request.rb +3 -3
  74. data/lib/bleumi_pay_sdk_ruby/models/payout.rb +16 -6
  75. data/lib/bleumi_pay_sdk_ruby/models/payout_item.rb +2 -2
  76. data/lib/bleumi_pay_sdk_ruby/models/payout_item_inputs.rb +2 -2
  77. data/lib/bleumi_pay_sdk_ruby/models/rsk_address.rb +219 -0
  78. data/lib/bleumi_pay_sdk_ruby/models/{token.rb → rsk_balance.rb} +41 -36
  79. data/lib/bleumi_pay_sdk_ruby/models/validate_checkout_request.rb +2 -2
  80. data/lib/bleumi_pay_sdk_ruby/models/validate_checkout_response.rb +2 -2
  81. data/lib/bleumi_pay_sdk_ruby/models/wallet_balance.rb +21 -6
  82. data/lib/bleumi_pay_sdk_ruby/version.rb +3 -3
  83. data/spec/api/hosted_checkouts_api_spec.rb +1 -1
  84. data/spec/api/payments_api_spec.rb +6 -17
  85. data/spec/api_client_spec.rb +1 -1
  86. data/spec/models/{create_payment_response_spec.rb → algorand_address_spec.rb} +13 -7
  87. data/spec/models/{token_spec.rb → algorand_balance_spec.rb} +15 -9
  88. data/spec/models/algorand_wallet_address_spec.rb +47 -0
  89. data/spec/models/algorand_wallet_inputs_spec.rb +65 -0
  90. data/spec/models/checkout_token_spec.rb +13 -1
  91. data/spec/models/create_checkout_url_request_spec.rb +7 -1
  92. data/spec/models/{create_payment_request_spec.rb → ethereum_address_spec.rb} +15 -9
  93. data/spec/models/{network_balance_spec.rb → ethereum_balance_spec.rb} +9 -27
  94. data/spec/models/ethereum_wallet_address_spec.rb +47 -0
  95. data/spec/models/ethereum_wallet_inputs_spec.rb +65 -0
  96. data/spec/models/payment_addresses_spec.rb +12 -0
  97. data/spec/models/payment_balances_spec.rb +12 -0
  98. data/spec/models/payout_spec.rb +6 -0
  99. data/spec/models/{eth_address_spec.rb → rsk_address_spec.rb} +13 -7
  100. data/spec/models/{wallet_address_spec.rb → rsk_balance_spec.rb} +13 -7
  101. data/spec/models/wallet_balance_spec.rb +6 -0
  102. metadata +48 -28
  103. data/docs/CreatePaymentRequest.md +0 -19
  104. data/docs/CreatePaymentResponse.md +0 -15
  105. data/docs/EthAddress.md +0 -13
  106. data/docs/NetworkBalance.md +0 -29
  107. data/docs/Token.md +0 -15
  108. data/docs/WalletAddress.md +0 -14
  109. data/lib/bleumi_pay_sdk_ruby/models/eth_address.rb +0 -208
@@ -13,21 +13,24 @@ OpenAPI Generator version: 4.2.2
13
13
  require 'date'
14
14
 
15
15
  module BleumiPay
16
- class Token
17
- # ETH - for Ethereum ; XDAI - for xDai ; XDAIT - for xDai Testnet ; <contract address of ERC-20 token> - for ERC-20 Tokens;
18
- attr_accessor :addr
16
+ class RskBalance
17
+ attr_accessor :rsk
18
+
19
+ attr_accessor :rsk_testnet
19
20
 
20
21
  # Attribute mapping from ruby-style variable name to JSON key.
21
22
  def self.attribute_map
22
23
  {
23
- :'addr' => :'addr'
24
+ :'rsk' => :'rsk',
25
+ :'rsk_testnet' => :'rsk_testnet'
24
26
  }
25
27
  end
26
28
 
27
29
  # Attribute type mapping.
28
30
  def self.openapi_types
29
31
  {
30
- :'addr' => :'String'
32
+ :'rsk' => :'Hash<String, WalletBalance>',
33
+ :'rsk_testnet' => :'Hash<String, WalletBalance>'
31
34
  }
32
35
  end
33
36
 
@@ -37,46 +40,44 @@ module BleumiPay
37
40
  ])
38
41
  end
39
42
 
40
- def eth_address?(str)
41
- # We use !! to convert the return value to a boolean
42
- !!(str =~ /^0x[a-fA-F0-9]{40}$/)
43
- end
44
-
45
43
  # Initializes the object
46
44
  # @param [Hash] attributes Model attributes in the form of hash
47
- def initialize(value)
48
-
49
- if (!eth_address?(value))
50
- fail ArgumentError, "`#{value}` The input argument must be valid Ethereum Address `BleumiPay::EthAddress` initialize method"
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `BleumiPay::RskBalance` initialize method"
51
48
  end
52
49
 
53
- self.addr = value
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `BleumiPay::RskBalance`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
54
57
 
55
- end
58
+ if attributes.key?(:'rsk')
59
+ if (value = attributes[:'rsk']).is_a?(Hash)
60
+ self.rsk = value
61
+ end
62
+ end
56
63
 
57
- # validation for updating addr using setter of addr
58
- def addr=(new_addr)
59
- if ((eth_address?(new_addr))||(new_addr == "ETH")||(new_addr == "XDAI")||(new_addr == "XDAIT"))
60
- fail ArgumentError, "`#{new_addr}` The input argument must be valid Token `BleumiPay::Token` initialize method"
64
+ if attributes.key?(:'rsk_testnet')
65
+ if (value = attributes[:'rsk_testnet']).is_a?(Hash)
66
+ self.rsk_testnet = value
67
+ end
61
68
  end
62
- @addr = new_addr
63
69
  end
64
70
 
65
71
  # Show invalid properties with the reasons. Usually used together with valid?
66
72
  # @return Array for valid properties with the reasons
67
73
  def list_invalid_properties
68
74
  invalid_properties = Array.new
69
- if @addr.nil?
70
- invalid_properties.push('invalid value for "addr", addr cannot be nil.')
71
- end
72
-
73
75
  invalid_properties
74
76
  end
75
77
 
76
78
  # Check to see if the all the properties in the model are valid
77
79
  # @return true if the model is valid
78
80
  def valid?
79
- return false if @addr.nil?
80
81
  true
81
82
  end
82
83
 
@@ -85,7 +86,8 @@ module BleumiPay
85
86
  def ==(o)
86
87
  return true if self.equal?(o)
87
88
  self.class == o.class &&
88
- addr == o.addr
89
+ rsk == o.rsk &&
90
+ rsk_testnet == o.rsk_testnet
89
91
  end
90
92
 
91
93
  # @see the `==` method
@@ -97,7 +99,7 @@ module BleumiPay
97
99
  # Calculates hash code according to all attributes.
98
100
  # @return [Integer] Hash code
99
101
  def hash
100
- [addr].hash
102
+ [rsk, rsk_testnet].hash
101
103
  end
102
104
 
103
105
  # Builds the object from hash
@@ -183,14 +185,17 @@ module BleumiPay
183
185
  # Returns the object in the form of hash
184
186
  # @return [Hash] Returns the object in the form of hash
185
187
  def to_hash
186
- # hash = {}
187
- # self.class.attribute_map.each_pair do |attr, param|
188
- # value = self.send(attr)
189
- # next if value.nil?
190
- # hash[param] = _to_hash(value)
191
- # end
192
- # hash
193
- addr
188
+ hash = {}
189
+ self.class.attribute_map.each_pair do |attr, param|
190
+ value = self.send(attr)
191
+ if value.nil?
192
+ is_nullable = self.class.openapi_nullable.include?(attr)
193
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
+ end
195
+
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
194
199
  end
195
200
 
196
201
  # Outputs non-array value in the form of hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -26,13 +26,17 @@ module BleumiPay
26
26
  # Block in which the balance was last updated
27
27
  attr_accessor :block_num
28
28
 
29
+ # Safety level indicator
30
+ attr_accessor :safety
31
+
29
32
  # Attribute mapping from ruby-style variable name to JSON key.
30
33
  def self.attribute_map
31
34
  {
32
35
  :'balance' => :'balance',
33
36
  :'token_balance' => :'token_balance',
34
37
  :'token_decimals' => :'token_decimals',
35
- :'block_num' => :'blockNum'
38
+ :'block_num' => :'blockNum',
39
+ :'safety' => :'safety'
36
40
  }
37
41
  end
38
42
 
@@ -42,7 +46,8 @@ module BleumiPay
42
46
  :'balance' => :'String',
43
47
  :'token_balance' => :'String',
44
48
  :'token_decimals' => :'Integer',
45
- :'block_num' => :'String'
49
+ :'block_num' => :'String',
50
+ :'safety' => :'String'
46
51
  }
47
52
  end
48
53
 
@@ -82,6 +87,10 @@ module BleumiPay
82
87
  if attributes.key?(:'block_num')
83
88
  self.block_num = attributes[:'block_num']
84
89
  end
90
+
91
+ if attributes.key?(:'safety')
92
+ self.safety = attributes[:'safety']
93
+ end
85
94
  end
86
95
 
87
96
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -104,6 +113,10 @@ module BleumiPay
104
113
  invalid_properties.push('invalid value for "block_num", block_num cannot be nil.')
105
114
  end
106
115
 
116
+ if @safety.nil?
117
+ invalid_properties.push('invalid value for "safety", safety cannot be nil.')
118
+ end
119
+
107
120
  invalid_properties
108
121
  end
109
122
 
@@ -114,6 +127,7 @@ module BleumiPay
114
127
  return false if @token_balance.nil?
115
128
  return false if @token_decimals.nil?
116
129
  return false if @block_num.nil?
130
+ return false if @safety.nil?
117
131
  true
118
132
  end
119
133
 
@@ -125,7 +139,8 @@ module BleumiPay
125
139
  balance == o.balance &&
126
140
  token_balance == o.token_balance &&
127
141
  token_decimals == o.token_decimals &&
128
- block_num == o.block_num
142
+ block_num == o.block_num &&
143
+ safety == o.safety
129
144
  end
130
145
 
131
146
  # @see the `==` method
@@ -137,7 +152,7 @@ module BleumiPay
137
152
  # Calculates hash code according to all attributes.
138
153
  # @return [Integer] Hash code
139
154
  def hash
140
- [balance, token_balance, token_decimals, block_num].hash
155
+ [balance, token_balance, token_decimals, block_num, safety].hash
141
156
  end
142
157
 
143
158
  # Builds the object from hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.2
11
11
  =end
12
12
 
13
13
  module BleumiPay
14
- VERSION = '1.0.3'
14
+ VERSION = '1.0.8'
15
15
  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 [Bleumi Pay Dashboard](https://pay.bleumi.com/app/).
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
@@ -32,21 +32,9 @@ describe 'PaymentsApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for create_payment
36
- # Generate a unique wallet address in the specified network to accept payment
37
- # @param create_payment_request
38
- # @param [Hash] opts the optional parameters
39
- # @option opts [Chain] :chain Ethereum network in which payment is to be created. Please refer documentation for Supported Networks
40
- # @return [CreatePaymentResponse]
41
- describe 'create_payment 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
35
  # unit tests for get_payment
48
36
  # Retrieve the wallet addresses &amp; token balances for a given payment
49
- # @param id Unique identifier of the payment (specified during [Create a Payment](#createPayment)) to retrieve
37
+ # @param id Unique identifier of the payment (specified during createPayment) to retrieve
50
38
  # @param [Hash] opts the optional parameters
51
39
  # @return [Payment]
52
40
  describe 'get_payment test' do
@@ -84,6 +72,7 @@ describe 'PaymentsApi' do
84
72
  # @param [Hash] opts the optional parameters
85
73
  # @option opts [String] :next_token Cursor to start results from
86
74
  # @option opts [String] :sort_by Sort payments by
75
+ # @option opts [String] :sort_order Sort Order
87
76
  # @option opts [String] :start_at Get payments from this timestamp (unix)
88
77
  # @option opts [String] :end_at Get payments till this timestamp (unix)
89
78
  # @return [PaginatedPayments]
@@ -95,10 +84,10 @@ describe 'PaymentsApi' do
95
84
 
96
85
  # unit tests for refund_payment
97
86
  # Refund the balance of a token for a given payment to the buyerAddress
98
- # @param id Unique identifier of the payment (specified during [Create a Payment](#createPayment))
87
+ # @param id Unique identifier of the payment (specified during createPayment)
99
88
  # @param payment_refund_request Request body - used to specify the token to refund.
100
89
  # @param [Hash] opts the optional parameters
101
- # @option opts [Chain] :chain Ethereum network in which payment is to be created.
90
+ # @option opts [Chain] :chain Ethereum network in which payment is to be refunded.
102
91
  # @return [PaymentOperationResponse]
103
92
  describe 'refund_payment test' do
104
93
  it 'should work' do
@@ -108,10 +97,10 @@ describe 'PaymentsApi' do
108
97
 
109
98
  # unit tests for settle_payment
110
99
  # 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 [Create a Payment](#createPayment))
100
+ # @param id Unique identifier of the payment (specified during createPayment)
112
101
  # @param payment_settle_request Request body - used to specify the amount to settle.
113
102
  # @param [Hash] opts the optional parameters
114
- # @option opts [Chain] :chain Ethereum network in which payment is to be created.
103
+ # @option opts [Chain] :chain Ethereum network in which payment is to be settled.
115
104
  # @return [PaymentOperationResponse]
116
105
  describe 'settle_payment test' do
117
106
  it 'should work' do
@@ -156,7 +156,7 @@ describe BleumiPay::ApiClient do
156
156
  end
157
157
 
158
158
  it 'fails for invalid collection format' do
159
- expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
159
+ expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
160
160
  end
161
161
  end
162
162
 
@@ -14,25 +14,31 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for BleumiPay::CreatePaymentResponse
17
+ # Unit tests for BleumiPay::AlgorandAddress
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'CreatePaymentResponse' do
20
+ describe 'AlgorandAddress' do
21
21
  before do
22
22
  # run before each test
23
- @instance = BleumiPay::CreatePaymentResponse.new
23
+ @instance = BleumiPay::AlgorandAddress.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 CreatePaymentResponse' do
31
- it 'should create an instance of CreatePaymentResponse' do
32
- expect(@instance).to be_instance_of(BleumiPay::CreatePaymentResponse)
30
+ describe 'test an instance of AlgorandAddress' do
31
+ it 'should create an instance of AlgorandAddress' do
32
+ expect(@instance).to be_instance_of(BleumiPay::AlgorandAddress)
33
33
  end
34
34
  end
35
- describe 'test attribute "addr"' do
35
+ describe 'test attribute "alg_mainnet"' 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 "alg_testnet"' do
36
42
  it 'should work' do
37
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
44
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
- #Bleumi Pay API
2
+ #Bleumi Pay REST API
3
3
 
4
- #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts into your business or application
4
+ #A simple and powerful REST API to integrate ERC-20, Ethereum, xDai, Algorand payments and/or payouts into your business or application
5
5
 
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: info@bleumi.com
@@ -14,25 +14,31 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for BleumiPay::Token
17
+ # Unit tests for BleumiPay::AlgorandBalance
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe 'Token' do
20
+ describe 'AlgorandBalance' do
21
21
  before do
22
22
  # run before each test
23
- @instance = BleumiPay::Token.new
23
+ @instance = BleumiPay::AlgorandBalance.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 Token' do
31
- it 'should create an instance of Token' do
32
- expect(@instance).to be_instance_of(BleumiPay::Token)
30
+ describe 'test an instance of AlgorandBalance' do
31
+ it 'should create an instance of AlgorandBalance' do
32
+ expect(@instance).to be_instance_of(BleumiPay::AlgorandBalance)
33
33
  end
34
34
  end
35
- describe 'test attribute "addr"' do
35
+ describe 'test attribute "alg_mainnet"' 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 "alg_testnet"' do
36
42
  it 'should work' do
37
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
44
  end
@@ -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