bleumi_pay_sdk_ruby 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -7
- data/bleumi_pay_sdk_ruby.gemspec +3 -3
- data/docs/AlgorandBalance.md +27 -0
- data/docs/BadRequest.md +1 -1
- data/docs/Chain.md +4 -3
- data/docs/CheckoutToken.md +6 -3
- data/docs/CreateCheckoutUrlRequest.md +7 -7
- data/docs/CreatePaymentRequest.md +3 -3
- data/docs/CreatePaymentResponse.md +1 -1
- data/docs/CreatePayoutRequest.md +1 -1
- data/docs/CreatePayoutResponse.md +1 -1
- data/docs/EthereumBalance.md +29 -0
- data/docs/HostedCheckoutsApi.md +26 -12
- data/docs/PaginatedPaymentOperations.md +2 -3
- data/docs/PaginatedPayments.md +3 -3
- data/docs/PaginatedPayoutItems.md +1 -1
- data/docs/Payment.md +0 -1
- data/docs/PaymentAddresses.md +2 -1
- data/docs/PaymentBalances.md +2 -1
- data/docs/PaymentOperation.md +2 -2
- data/docs/PaymentOperationInputs.md +4 -4
- data/docs/PaymentRefundRequest.md +1 -2
- data/docs/PaymentSettleRequest.md +1 -1
- data/docs/PaymentsApi.md +17 -15
- data/docs/Payout.md +2 -1
- data/docs/PayoutItem.md +1 -1
- data/docs/PayoutItemInputs.md +1 -1
- data/docs/PayoutsApi.md +10 -10
- data/docs/ValidateCheckoutRequest.md +1 -1
- data/docs/WalletAddress.md +1 -0
- data/docs/WalletBalance.md +1 -1
- data/lib/bleumi_pay_sdk_ruby.rb +5 -5
- data/lib/bleumi_pay_sdk_ruby/api/hosted_checkouts_api.rb +17 -5
- data/lib/bleumi_pay_sdk_ruby/api/payments_api.rb +46 -17
- data/lib/bleumi_pay_sdk_ruby/api/payouts_api.rb +14 -6
- data/lib/bleumi_pay_sdk_ruby/api/request_validator.rb +264 -0
- data/lib/bleumi_pay_sdk_ruby/api_client.rb +3 -3
- data/lib/bleumi_pay_sdk_ruby/api_error.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/configuration.rb +3 -3
- data/lib/bleumi_pay_sdk_ruby/models/{token.rb → algorand_balance.rb} +43 -38
- data/lib/bleumi_pay_sdk_ruby/models/bad_request.rb +3 -3
- data/lib/bleumi_pay_sdk_ruby/models/chain.rb +4 -5
- data/lib/bleumi_pay_sdk_ruby/models/checkout_token.rb +28 -13
- data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_request.rb +19 -7
- data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_response.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/create_payment_request.rb +17 -5
- data/lib/bleumi_pay_sdk_ruby/models/create_payment_response.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/create_payout_request.rb +4 -3
- data/lib/bleumi_pay_sdk_ruby/models/create_payout_response.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/{network_balance.rb → ethereum_balance.rb} +13 -46
- data/lib/bleumi_pay_sdk_ruby/models/paginated_payment_operations.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/paginated_payments.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/paginated_payout_items.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/payment.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/payment_addresses.rb +17 -6
- data/lib/bleumi_pay_sdk_ruby/models/payment_balances.rb +15 -6
- data/lib/bleumi_pay_sdk_ruby/models/payment_operation.rb +4 -3
- data/lib/bleumi_pay_sdk_ruby/models/payment_operation_inputs.rb +3 -3
- data/lib/bleumi_pay_sdk_ruby/models/payment_operation_response.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/payment_refund_request.rb +3 -3
- data/lib/bleumi_pay_sdk_ruby/models/payment_settle_request.rb +3 -3
- data/lib/bleumi_pay_sdk_ruby/models/payout.rb +16 -6
- data/lib/bleumi_pay_sdk_ruby/models/payout_item.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/payout_item_inputs.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/validate_checkout_request.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/validate_checkout_response.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/wallet_address.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/models/wallet_balance.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/version.rb +3 -3
- data/py_create.rb +38 -0
- data/spec/api/payments_api_spec.rb +2 -2
- data/spec/models/algorand_balance_spec.rb +47 -0
- data/spec/models/ethereum_balance_spec.rb +59 -0
- metadata +14 -10
- data/docs/EthAddress.md +0 -13
- data/docs/NetworkBalance.md +0 -29
- data/docs/Token.md +0 -15
- data/lib/bleumi_pay_sdk_ruby/models/eth_address.rb +0 -208
@@ -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
|
@@ -15,7 +15,7 @@ require 'date'
|
|
15
15
|
module BleumiPay
|
16
16
|
# Request does not meet API specifications
|
17
17
|
class BadRequest
|
18
|
-
# Code for error class. Complete list of error codes is available
|
18
|
+
# Code for error class. Complete list of error codes is available here.
|
19
19
|
attr_accessor :error_code
|
20
20
|
|
21
21
|
# Error description
|
@@ -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
|
@@ -15,12 +15,11 @@ require 'date'
|
|
15
15
|
module BleumiPay
|
16
16
|
class Chain
|
17
17
|
MAINNET = "mainnet".freeze
|
18
|
-
ROPSTEN = "ropsten".freeze
|
19
18
|
GOERLI = "goerli".freeze
|
20
|
-
KOVAN = "kovan".freeze
|
21
|
-
RINKEBY = "rinkeby".freeze
|
22
19
|
XDAI = "xdai".freeze
|
23
20
|
XDAI_TESTNET = "xdai_testnet".freeze
|
21
|
+
ALG_MAINNET = "alg_mainnet".freeze
|
22
|
+
ALG_TESTNET = "alg_testnet".freeze
|
24
23
|
|
25
24
|
# Builds the enum from string
|
26
25
|
# @param [String] The enum value in the form of the string
|
@@ -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,11 +14,14 @@ require 'date'
|
|
14
14
|
|
15
15
|
module BleumiPay
|
16
16
|
class CheckoutToken
|
17
|
+
# The network in which the token is defined
|
18
|
+
attr_accessor :network
|
19
|
+
|
17
20
|
# The chain in which the token is defined
|
18
21
|
attr_accessor :chain
|
19
22
|
|
20
|
-
# The
|
21
|
-
attr_accessor :
|
23
|
+
# The address of the token
|
24
|
+
attr_accessor :addr
|
22
25
|
|
23
26
|
# Name of the token
|
24
27
|
attr_accessor :name
|
@@ -32,8 +35,9 @@ module BleumiPay
|
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
36
|
def self.attribute_map
|
34
37
|
{
|
38
|
+
:'network' => :'network',
|
35
39
|
:'chain' => :'chain',
|
36
|
-
:'
|
40
|
+
:'addr' => :'addr',
|
37
41
|
:'name' => :'name',
|
38
42
|
:'symbol' => :'symbol',
|
39
43
|
:'decimals' => :'decimals'
|
@@ -43,8 +47,9 @@ module BleumiPay
|
|
43
47
|
# Attribute type mapping.
|
44
48
|
def self.openapi_types
|
45
49
|
{
|
50
|
+
:'network' => :'String',
|
46
51
|
:'chain' => :'String',
|
47
|
-
:'
|
52
|
+
:'addr' => :'String',
|
48
53
|
:'name' => :'String',
|
49
54
|
:'symbol' => :'String',
|
50
55
|
:'decimals' => :'Integer'
|
@@ -72,12 +77,16 @@ module BleumiPay
|
|
72
77
|
h[k.to_sym] = v
|
73
78
|
}
|
74
79
|
|
80
|
+
if attributes.key?(:'network')
|
81
|
+
self.network = attributes[:'network']
|
82
|
+
end
|
83
|
+
|
75
84
|
if attributes.key?(:'chain')
|
76
85
|
self.chain = attributes[:'chain']
|
77
86
|
end
|
78
87
|
|
79
|
-
if attributes.key?(:'
|
80
|
-
self.
|
88
|
+
if attributes.key?(:'addr')
|
89
|
+
self.addr = attributes[:'addr']
|
81
90
|
end
|
82
91
|
|
83
92
|
if attributes.key?(:'name')
|
@@ -97,12 +106,16 @@ module BleumiPay
|
|
97
106
|
# @return Array for valid properties with the reasons
|
98
107
|
def list_invalid_properties
|
99
108
|
invalid_properties = Array.new
|
109
|
+
if @network.nil?
|
110
|
+
invalid_properties.push('invalid value for "network", network cannot be nil.')
|
111
|
+
end
|
112
|
+
|
100
113
|
if @chain.nil?
|
101
114
|
invalid_properties.push('invalid value for "chain", chain cannot be nil.')
|
102
115
|
end
|
103
116
|
|
104
|
-
if @
|
105
|
-
invalid_properties.push('invalid value for "
|
117
|
+
if @addr.nil?
|
118
|
+
invalid_properties.push('invalid value for "addr", addr cannot be nil.')
|
106
119
|
end
|
107
120
|
|
108
121
|
if @name.nil?
|
@@ -123,8 +136,9 @@ module BleumiPay
|
|
123
136
|
# Check to see if the all the properties in the model are valid
|
124
137
|
# @return true if the model is valid
|
125
138
|
def valid?
|
139
|
+
return false if @network.nil?
|
126
140
|
return false if @chain.nil?
|
127
|
-
return false if @
|
141
|
+
return false if @addr.nil?
|
128
142
|
return false if @name.nil?
|
129
143
|
return false if @symbol.nil?
|
130
144
|
return false if @decimals.nil?
|
@@ -136,8 +150,9 @@ module BleumiPay
|
|
136
150
|
def ==(o)
|
137
151
|
return true if self.equal?(o)
|
138
152
|
self.class == o.class &&
|
153
|
+
network == o.network &&
|
139
154
|
chain == o.chain &&
|
140
|
-
|
155
|
+
addr == o.addr &&
|
141
156
|
name == o.name &&
|
142
157
|
symbol == o.symbol &&
|
143
158
|
decimals == o.decimals
|
@@ -152,7 +167,7 @@ module BleumiPay
|
|
152
167
|
# Calculates hash code according to all attributes.
|
153
168
|
# @return [Integer] Hash code
|
154
169
|
def hash
|
155
|
-
[chain,
|
170
|
+
[network, chain, addr, name, symbol, decimals].hash
|
156
171
|
end
|
157
172
|
|
158
173
|
# 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
|
@@ -29,12 +29,17 @@ module BleumiPay
|
|
29
29
|
# Buyer will be redirected to this URL upon successfully completing the payment.
|
30
30
|
attr_accessor :success_url
|
31
31
|
|
32
|
+
# Address of buyer. Refund operations on this payment will use this address. You can set this to your address to manually handle refunds (outside of Bleumi Pay) to your buyer. This address must be able to receive payments from smart contracts.
|
32
33
|
attr_accessor :buyer_address
|
33
34
|
|
34
35
|
attr_accessor :chain
|
35
36
|
|
37
|
+
# ETH - for Ethereum ; XDAI - for xDai ; XDAIT - for xDai Testnet ; ALGO - Algo; <asset id> - for Algorand Standard Asset; <contract address of ERC-20 token> - for ERC-20 Tokens;
|
36
38
|
attr_accessor :token
|
37
39
|
|
40
|
+
# Base64 encode hmac_input GET parameter passed to the successUrl
|
41
|
+
attr_accessor :base64_transform
|
42
|
+
|
38
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
44
|
def self.attribute_map
|
40
45
|
{
|
@@ -45,7 +50,8 @@ module BleumiPay
|
|
45
50
|
:'success_url' => :'successUrl',
|
46
51
|
:'buyer_address' => :'buyerAddress',
|
47
52
|
:'chain' => :'chain',
|
48
|
-
:'token' => :'token'
|
53
|
+
:'token' => :'token',
|
54
|
+
:'base64_transform' => :'base64Transform'
|
49
55
|
}
|
50
56
|
end
|
51
57
|
|
@@ -57,9 +63,10 @@ module BleumiPay
|
|
57
63
|
:'amount' => :'String',
|
58
64
|
:'cancel_url' => :'String',
|
59
65
|
:'success_url' => :'String',
|
60
|
-
:'buyer_address' => :'
|
66
|
+
:'buyer_address' => :'String',
|
61
67
|
:'chain' => :'Chain',
|
62
|
-
:'token' => :'
|
68
|
+
:'token' => :'String',
|
69
|
+
:'base64_transform' => :'Boolean'
|
63
70
|
}
|
64
71
|
end
|
65
72
|
|
@@ -115,6 +122,10 @@ module BleumiPay
|
|
115
122
|
if attributes.key?(:'token')
|
116
123
|
self.token = attributes[:'token']
|
117
124
|
end
|
125
|
+
|
126
|
+
if attributes.key?(:'base64_transform')
|
127
|
+
self.base64_transform = attributes[:'base64_transform']
|
128
|
+
end
|
118
129
|
end
|
119
130
|
|
120
131
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -167,7 +178,8 @@ module BleumiPay
|
|
167
178
|
success_url == o.success_url &&
|
168
179
|
buyer_address == o.buyer_address &&
|
169
180
|
chain == o.chain &&
|
170
|
-
token == o.token
|
181
|
+
token == o.token &&
|
182
|
+
base64_transform == o.base64_transform
|
171
183
|
end
|
172
184
|
|
173
185
|
# @see the `==` method
|
@@ -179,7 +191,7 @@ module BleumiPay
|
|
179
191
|
# Calculates hash code according to all attributes.
|
180
192
|
# @return [Integer] Hash code
|
181
193
|
def hash
|
182
|
-
[id, currency, amount, cancel_url, success_url, buyer_address, chain, token].hash
|
194
|
+
[id, currency, amount, cancel_url, success_url, buyer_address, chain, token, base64_transform].hash
|
183
195
|
end
|
184
196
|
|
185
197
|
# 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
|
@@ -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
|
@@ -17,14 +17,20 @@ module BleumiPay
|
|
17
17
|
# Unique ID identifying the payment
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
+
# (Only for Algorand Standard Asset) Asset id which will be used for payment.
|
21
|
+
attr_accessor :token
|
22
|
+
|
23
|
+
# Address of buyer. Refund operations on this payment will use this address. You can set this to your address to manually handle refunds (outside of Bleumi Pay) to your buyer. This address must be able to receive payments from smart contracts.
|
20
24
|
attr_accessor :buyer_address
|
21
25
|
|
26
|
+
# Your deposit address. Settle operations on this payment will use this address. This address must be able to receive payments from smart contracts.
|
22
27
|
attr_accessor :transfer_address
|
23
28
|
|
24
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
30
|
def self.attribute_map
|
26
31
|
{
|
27
32
|
:'id' => :'id',
|
33
|
+
:'token' => :'token',
|
28
34
|
:'buyer_address' => :'buyerAddress',
|
29
35
|
:'transfer_address' => :'transferAddress'
|
30
36
|
}
|
@@ -34,8 +40,9 @@ module BleumiPay
|
|
34
40
|
def self.openapi_types
|
35
41
|
{
|
36
42
|
:'id' => :'String',
|
37
|
-
:'
|
38
|
-
:'
|
43
|
+
:'token' => :'String',
|
44
|
+
:'buyer_address' => :'String',
|
45
|
+
:'transfer_address' => :'String'
|
39
46
|
}
|
40
47
|
end
|
41
48
|
|
@@ -64,6 +71,10 @@ module BleumiPay
|
|
64
71
|
self.id = attributes[:'id']
|
65
72
|
end
|
66
73
|
|
74
|
+
if attributes.key?(:'token')
|
75
|
+
self.token = attributes[:'token']
|
76
|
+
end
|
77
|
+
|
67
78
|
if attributes.key?(:'buyer_address')
|
68
79
|
self.buyer_address = attributes[:'buyer_address']
|
69
80
|
end
|
@@ -107,6 +118,7 @@ module BleumiPay
|
|
107
118
|
return true if self.equal?(o)
|
108
119
|
self.class == o.class &&
|
109
120
|
id == o.id &&
|
121
|
+
token == o.token &&
|
110
122
|
buyer_address == o.buyer_address &&
|
111
123
|
transfer_address == o.transfer_address
|
112
124
|
end
|
@@ -120,7 +132,7 @@ module BleumiPay
|
|
120
132
|
# Calculates hash code according to all attributes.
|
121
133
|
# @return [Integer] Hash code
|
122
134
|
def hash
|
123
|
-
[id, buyer_address, transfer_address].hash
|
135
|
+
[id, token, buyer_address, transfer_address].hash
|
124
136
|
end
|
125
137
|
|
126
138
|
# 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
|
@@ -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
|
@@ -17,6 +17,7 @@ module BleumiPay
|
|
17
17
|
# Unique identifier for this payout
|
18
18
|
attr_accessor :txid
|
19
19
|
|
20
|
+
# ETH - for Ethereum ; XDAI - for xDai ; XDAIT - for xDai Testnet ; ALGO - Algo; <asset id> - for Algorand Standard Asset; <contract address of ERC-20 token> - for ERC-20 Tokens;
|
20
21
|
attr_accessor :token
|
21
22
|
|
22
23
|
# Array of payments to be made in this payout. This is an atomic transaction (i.e. either all payments are processed or all of them are rejected).
|
@@ -35,7 +36,7 @@ module BleumiPay
|
|
35
36
|
def self.openapi_types
|
36
37
|
{
|
37
38
|
:'txid' => :'String',
|
38
|
-
:'token' => :'
|
39
|
+
:'token' => :'String',
|
39
40
|
:'payouts' => :'Array<Payout>'
|
40
41
|
}
|
41
42
|
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
|
@@ -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
|
@@ -13,18 +13,12 @@ OpenAPI Generator version: 4.2.2
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module BleumiPay
|
16
|
-
class
|
16
|
+
class EthereumBalance
|
17
17
|
attr_accessor :mainnet
|
18
18
|
|
19
|
-
attr_accessor :xdai
|
20
|
-
|
21
19
|
attr_accessor :goerli
|
22
20
|
|
23
|
-
attr_accessor :
|
24
|
-
|
25
|
-
attr_accessor :rinkeby
|
26
|
-
|
27
|
-
attr_accessor :ropsten
|
21
|
+
attr_accessor :xdai
|
28
22
|
|
29
23
|
attr_accessor :xdai_testnet
|
30
24
|
|
@@ -32,11 +26,8 @@ module BleumiPay
|
|
32
26
|
def self.attribute_map
|
33
27
|
{
|
34
28
|
:'mainnet' => :'mainnet',
|
35
|
-
:'xdai' => :'xdai',
|
36
29
|
:'goerli' => :'goerli',
|
37
|
-
:'
|
38
|
-
:'rinkeby' => :'rinkeby',
|
39
|
-
:'ropsten' => :'ropsten',
|
30
|
+
:'xdai' => :'xdai',
|
40
31
|
:'xdai_testnet' => :'xdai_testnet'
|
41
32
|
}
|
42
33
|
end
|
@@ -45,11 +36,8 @@ module BleumiPay
|
|
45
36
|
def self.openapi_types
|
46
37
|
{
|
47
38
|
:'mainnet' => :'Hash<String, WalletBalance>',
|
48
|
-
:'xdai' => :'Hash<String, WalletBalance>',
|
49
39
|
:'goerli' => :'Hash<String, WalletBalance>',
|
50
|
-
:'
|
51
|
-
:'rinkeby' => :'Hash<String, WalletBalance>',
|
52
|
-
:'ropsten' => :'Hash<String, WalletBalance>',
|
40
|
+
:'xdai' => :'Hash<String, WalletBalance>',
|
53
41
|
:'xdai_testnet' => :'Hash<String, WalletBalance>'
|
54
42
|
}
|
55
43
|
end
|
@@ -64,13 +52,13 @@ module BleumiPay
|
|
64
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
65
53
|
def initialize(attributes = {})
|
66
54
|
if (!attributes.is_a?(Hash))
|
67
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `BleumiPay::
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `BleumiPay::EthereumBalance` initialize method"
|
68
56
|
end
|
69
57
|
|
70
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
71
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
72
60
|
if (!self.class.attribute_map.key?(k.to_sym))
|
73
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `BleumiPay::
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `BleumiPay::EthereumBalance`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
74
62
|
end
|
75
63
|
h[k.to_sym] = v
|
76
64
|
}
|
@@ -81,33 +69,15 @@ module BleumiPay
|
|
81
69
|
end
|
82
70
|
end
|
83
71
|
|
84
|
-
if attributes.key?(:'xdai')
|
85
|
-
if (value = attributes[:'xdai']).is_a?(Hash)
|
86
|
-
self.xdai = value
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
72
|
if attributes.key?(:'goerli')
|
91
73
|
if (value = attributes[:'goerli']).is_a?(Hash)
|
92
74
|
self.goerli = value
|
93
75
|
end
|
94
76
|
end
|
95
77
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
if (value = attributes[:'
|
98
|
-
self.
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes.key?(:'rinkeby')
|
103
|
-
if (value = attributes[:'rinkeby']).is_a?(Hash)
|
104
|
-
self.rinkeby = value
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
if attributes.key?(:'ropsten')
|
109
|
-
if (value = attributes[:'ropsten']).is_a?(Hash)
|
110
|
-
self.ropsten = value
|
78
|
+
if attributes.key?(:'xdai')
|
79
|
+
if (value = attributes[:'xdai']).is_a?(Hash)
|
80
|
+
self.xdai = value
|
111
81
|
end
|
112
82
|
end
|
113
83
|
|
@@ -137,11 +107,8 @@ module BleumiPay
|
|
137
107
|
return true if self.equal?(o)
|
138
108
|
self.class == o.class &&
|
139
109
|
mainnet == o.mainnet &&
|
140
|
-
xdai == o.xdai &&
|
141
110
|
goerli == o.goerli &&
|
142
|
-
|
143
|
-
rinkeby == o.rinkeby &&
|
144
|
-
ropsten == o.ropsten &&
|
111
|
+
xdai == o.xdai &&
|
145
112
|
xdai_testnet == o.xdai_testnet
|
146
113
|
end
|
147
114
|
|
@@ -154,7 +121,7 @@ module BleumiPay
|
|
154
121
|
# Calculates hash code according to all attributes.
|
155
122
|
# @return [Integer] Hash code
|
156
123
|
def hash
|
157
|
-
[mainnet,
|
124
|
+
[mainnet, goerli, xdai, xdai_testnet].hash
|
158
125
|
end
|
159
126
|
|
160
127
|
# Builds the object from hash
|