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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +31 -26
- data/assets/images/BleumiPay.png +0 -0
- data/bleumi_pay_sdk_ruby.gemspec +4 -4
- data/docs/AlgorandAddress.md +28 -0
- data/docs/AlgorandBalance.md +28 -0
- data/docs/AlgorandWalletAddress.md +24 -0
- data/docs/AlgorandWalletInputs.md +23 -0
- data/docs/BadRequest.md +1 -1
- data/docs/Chain.md +6 -3
- data/docs/CheckoutToken.md +8 -3
- data/docs/CreateCheckoutUrlRequest.md +7 -8
- data/docs/CreatePayoutRequest.md +1 -1
- data/docs/CreatePayoutResponse.md +1 -1
- data/docs/EthereumAddress.md +29 -0
- data/docs/EthereumBalance.md +30 -0
- data/docs/EthereumWalletAddress.md +23 -0
- data/docs/EthereumWalletInputs.md +23 -0
- data/docs/HostedCheckoutsApi.md +31 -23
- data/docs/PaginatedPaymentOperations.md +2 -3
- data/docs/PaginatedPayments.md +41 -10
- data/docs/PaginatedPayoutItems.md +1 -1
- data/docs/Payment.md +13 -7
- data/docs/PaymentAddresses.md +29 -7
- data/docs/PaymentBalances.md +20 -8
- data/docs/PaymentOperation.md +2 -2
- data/docs/PaymentOperationInputs.md +3 -4
- data/docs/PaymentRefundRequest.md +1 -3
- data/docs/PaymentSettleRequest.md +1 -1
- data/docs/PaymentsApi.md +15 -73
- 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/RskAddress.md +29 -0
- data/docs/RskBalance.md +28 -0
- data/docs/ValidateCheckoutRequest.md +2 -2
- data/docs/WalletBalance.md +13 -9
- data/lib/bleumi_pay_sdk_ruby.rb +13 -8
- data/lib/bleumi_pay_sdk_ruby/api/hosted_checkouts_api.rb +17 -5
- data/lib/bleumi_pay_sdk_ruby/api/payments_api.rb +34 -78
- data/lib/bleumi_pay_sdk_ruby/api/payouts_api.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/api/request_validator.rb +261 -0
- data/lib/bleumi_pay_sdk_ruby/api_client.rb +10 -8
- 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/algorand_address.rb +219 -0
- data/lib/bleumi_pay_sdk_ruby/models/algorand_balance.rb +219 -0
- data/lib/bleumi_pay_sdk_ruby/models/{create_payment_response.rb → algorand_wallet_address.rb} +20 -11
- data/lib/bleumi_pay_sdk_ruby/models/algorand_wallet_inputs.rb +247 -0
- data/lib/bleumi_pay_sdk_ruby/models/bad_request.rb +3 -3
- data/lib/bleumi_pay_sdk_ruby/models/chain.rb +6 -5
- data/lib/bleumi_pay_sdk_ruby/models/checkout_token.rb +46 -16
- data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_request.rb +26 -13
- data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_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/{create_payment_request.rb → ethereum_address.rb} +39 -38
- data/lib/bleumi_pay_sdk_ruby/models/{network_balance.rb → ethereum_balance.rb} +13 -46
- data/lib/bleumi_pay_sdk_ruby/models/{wallet_address.rb → ethereum_wallet_address.rb} +19 -10
- data/lib/bleumi_pay_sdk_ruby/models/ethereum_wallet_inputs.rb +247 -0
- 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 +25 -9
- data/lib/bleumi_pay_sdk_ruby/models/payment_balances.rb +24 -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/rsk_address.rb +219 -0
- data/lib/bleumi_pay_sdk_ruby/models/{token.rb → rsk_balance.rb} +41 -36
- 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_balance.rb +21 -6
- data/lib/bleumi_pay_sdk_ruby/version.rb +3 -3
- data/spec/api/hosted_checkouts_api_spec.rb +1 -1
- data/spec/api/payments_api_spec.rb +6 -17
- data/spec/api_client_spec.rb +1 -1
- data/spec/models/{create_payment_response_spec.rb → algorand_address_spec.rb} +13 -7
- data/spec/models/{token_spec.rb → algorand_balance_spec.rb} +15 -9
- data/spec/models/algorand_wallet_address_spec.rb +47 -0
- data/spec/models/algorand_wallet_inputs_spec.rb +65 -0
- data/spec/models/checkout_token_spec.rb +13 -1
- data/spec/models/create_checkout_url_request_spec.rb +7 -1
- data/spec/models/{create_payment_request_spec.rb → ethereum_address_spec.rb} +15 -9
- data/spec/models/{network_balance_spec.rb → ethereum_balance_spec.rb} +9 -27
- 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 +12 -0
- data/spec/models/payment_balances_spec.rb +12 -0
- data/spec/models/payout_spec.rb +6 -0
- data/spec/models/{eth_address_spec.rb → rsk_address_spec.rb} +13 -7
- data/spec/models/{wallet_address_spec.rb → rsk_balance_spec.rb} +13 -7
- data/spec/models/wallet_balance_spec.rb +6 -0
- metadata +48 -28
- data/docs/CreatePaymentRequest.md +0 -19
- data/docs/CreatePaymentResponse.md +0 -15
- data/docs/EthAddress.md +0 -13
- data/docs/NetworkBalance.md +0 -29
- data/docs/Token.md +0 -15
- data/docs/WalletAddress.md +0 -14
- 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
|
@@ -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
|
@@ -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,17 +17,25 @@ module BleumiPay
|
|
17
17
|
class PaymentAddresses
|
18
18
|
attr_accessor :ethereum
|
19
19
|
|
20
|
+
attr_accessor :algorand
|
21
|
+
|
22
|
+
attr_accessor :rsk
|
23
|
+
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
25
|
def self.attribute_map
|
22
26
|
{
|
23
|
-
:'ethereum' => :'ethereum'
|
27
|
+
:'ethereum' => :'ethereum',
|
28
|
+
:'algorand' => :'algorand',
|
29
|
+
:'rsk' => :'rsk'
|
24
30
|
}
|
25
31
|
end
|
26
32
|
|
27
33
|
# Attribute type mapping.
|
28
34
|
def self.openapi_types
|
29
35
|
{
|
30
|
-
:'ethereum' => :'
|
36
|
+
:'ethereum' => :'EthereumAddress',
|
37
|
+
:'algorand' => :'AlgorandAddress',
|
38
|
+
:'rsk' => :'RskAddress'
|
31
39
|
}
|
32
40
|
end
|
33
41
|
|
@@ -53,9 +61,15 @@ module BleumiPay
|
|
53
61
|
}
|
54
62
|
|
55
63
|
if attributes.key?(:'ethereum')
|
56
|
-
|
57
|
-
|
58
|
-
|
64
|
+
self.ethereum = attributes[:'ethereum']
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.key?(:'algorand')
|
68
|
+
self.algorand = attributes[:'algorand']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'rsk')
|
72
|
+
self.rsk = attributes[:'rsk']
|
59
73
|
end
|
60
74
|
end
|
61
75
|
|
@@ -77,7 +91,9 @@ module BleumiPay
|
|
77
91
|
def ==(o)
|
78
92
|
return true if self.equal?(o)
|
79
93
|
self.class == o.class &&
|
80
|
-
ethereum == o.ethereum
|
94
|
+
ethereum == o.ethereum &&
|
95
|
+
algorand == o.algorand &&
|
96
|
+
rsk == o.rsk
|
81
97
|
end
|
82
98
|
|
83
99
|
# @see the `==` method
|
@@ -89,7 +105,7 @@ module BleumiPay
|
|
89
105
|
# Calculates hash code according to all attributes.
|
90
106
|
# @return [Integer] Hash code
|
91
107
|
def hash
|
92
|
-
[ethereum].hash
|
108
|
+
[ethereum, algorand, rsk].hash
|
93
109
|
end
|
94
110
|
|
95
111
|
# 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
|
@@ -17,17 +17,25 @@ module BleumiPay
|
|
17
17
|
class PaymentBalances
|
18
18
|
attr_accessor :ethereum
|
19
19
|
|
20
|
+
attr_accessor :algorand
|
21
|
+
|
22
|
+
attr_accessor :rsk
|
23
|
+
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
25
|
def self.attribute_map
|
22
26
|
{
|
23
|
-
:'ethereum' => :'ethereum'
|
27
|
+
:'ethereum' => :'ethereum',
|
28
|
+
:'algorand' => :'algorand',
|
29
|
+
:'rsk' => :'rsk'
|
24
30
|
}
|
25
31
|
end
|
26
32
|
|
27
33
|
# Attribute type mapping.
|
28
34
|
def self.openapi_types
|
29
35
|
{
|
30
|
-
:'ethereum' => :'
|
36
|
+
:'ethereum' => :'EthereumBalance',
|
37
|
+
:'algorand' => :'AlgorandBalance',
|
38
|
+
:'rsk' => :'RskBalance'
|
31
39
|
}
|
32
40
|
end
|
33
41
|
|
@@ -55,6 +63,14 @@ module BleumiPay
|
|
55
63
|
if attributes.key?(:'ethereum')
|
56
64
|
self.ethereum = attributes[:'ethereum']
|
57
65
|
end
|
66
|
+
|
67
|
+
if attributes.key?(:'algorand')
|
68
|
+
self.algorand = attributes[:'algorand']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'rsk')
|
72
|
+
self.rsk = attributes[:'rsk']
|
73
|
+
end
|
58
74
|
end
|
59
75
|
|
60
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -75,7 +91,9 @@ module BleumiPay
|
|
75
91
|
def ==(o)
|
76
92
|
return true if self.equal?(o)
|
77
93
|
self.class == o.class &&
|
78
|
-
ethereum == o.ethereum
|
94
|
+
ethereum == o.ethereum &&
|
95
|
+
algorand == o.algorand &&
|
96
|
+
rsk == o.rsk
|
79
97
|
end
|
80
98
|
|
81
99
|
# @see the `==` method
|
@@ -87,7 +105,7 @@ module BleumiPay
|
|
87
105
|
# Calculates hash code according to all attributes.
|
88
106
|
# @return [Integer] Hash code
|
89
107
|
def hash
|
90
|
-
[ethereum].hash
|
108
|
+
[ethereum, algorand, rsk].hash
|
91
109
|
end
|
92
110
|
|
93
111
|
# 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
|
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.2.2
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module BleumiPay
|
16
|
+
# Payment Operation details
|
16
17
|
class PaymentOperation
|
17
18
|
# Transaction ID of the operation
|
18
19
|
attr_accessor :txid
|
@@ -20,7 +21,7 @@ module BleumiPay
|
|
20
21
|
# Network in which the operation was carried out
|
21
22
|
attr_accessor :chain
|
22
23
|
|
23
|
-
# The name of the function invoked on the
|
24
|
+
# The name of the function invoked on the payment processor
|
24
25
|
attr_accessor :func_name
|
25
26
|
|
26
27
|
# null - Operation in progress ; true - Operation completed successfuly ; false - Operation failed to process
|
@@ -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
|
@@ -20,7 +20,7 @@ module BleumiPay
|
|
20
20
|
# Amount (Only for settle operation)
|
21
21
|
attr_accessor :amount
|
22
22
|
|
23
|
-
# ETH - for Ethereum ; XDAI - for xDai ; XDAIT - for xDai Testnet ; <contract address of ERC-20 token> - for ERC-20 Tokens
|
23
|
+
# 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;
|
24
24
|
attr_accessor :token
|
25
25
|
|
26
26
|
# Token amount to be settled in network format (Only for settle operation)
|
@@ -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,7 +26,7 @@ module BleumiPay
|
|
26
26
|
# Attribute type mapping.
|
27
27
|
def self.openapi_types
|
28
28
|
{
|
29
|
-
:'token' => :'
|
29
|
+
:'token' => :'String'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -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
|
@@ -30,7 +30,7 @@ module BleumiPay
|
|
30
30
|
# Attribute type mapping.
|
31
31
|
def self.openapi_types
|
32
32
|
{
|
33
|
-
:'token' => :'
|
33
|
+
:'token' => :'String',
|
34
34
|
:'amount' => :'String'
|
35
35
|
}
|
36
36
|
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
|
@@ -20,11 +20,15 @@ module BleumiPay
|
|
20
20
|
# Amount of token to transfer
|
21
21
|
attr_accessor :amount
|
22
22
|
|
23
|
+
# (Only for Algorand) Base64 serialization of an encoded LogicSig signed by the source of the payout
|
24
|
+
attr_accessor :authorization
|
25
|
+
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'transfer_address' => :'transferAddress',
|
27
|
-
:'amount' => :'amount'
|
30
|
+
:'amount' => :'amount',
|
31
|
+
:'authorization' => :'authorization'
|
28
32
|
}
|
29
33
|
end
|
30
34
|
|
@@ -32,7 +36,8 @@ module BleumiPay
|
|
32
36
|
def self.openapi_types
|
33
37
|
{
|
34
38
|
:'transfer_address' => :'String',
|
35
|
-
:'amount' => :'String'
|
39
|
+
:'amount' => :'String',
|
40
|
+
:'authorization' => :'String'
|
36
41
|
}
|
37
42
|
end
|
38
43
|
|
@@ -64,6 +69,10 @@ module BleumiPay
|
|
64
69
|
if attributes.key?(:'amount')
|
65
70
|
self.amount = attributes[:'amount']
|
66
71
|
end
|
72
|
+
|
73
|
+
if attributes.key?(:'authorization')
|
74
|
+
self.authorization = attributes[:'authorization']
|
75
|
+
end
|
67
76
|
end
|
68
77
|
|
69
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -95,7 +104,8 @@ module BleumiPay
|
|
95
104
|
return true if self.equal?(o)
|
96
105
|
self.class == o.class &&
|
97
106
|
transfer_address == o.transfer_address &&
|
98
|
-
amount == o.amount
|
107
|
+
amount == o.amount &&
|
108
|
+
authorization == o.authorization
|
99
109
|
end
|
100
110
|
|
101
111
|
# @see the `==` method
|
@@ -107,7 +117,7 @@ module BleumiPay
|
|
107
117
|
# Calculates hash code according to all attributes.
|
108
118
|
# @return [Integer] Hash code
|
109
119
|
def hash
|
110
|
-
[transfer_address, amount].hash
|
120
|
+
[transfer_address, amount, authorization].hash
|
111
121
|
end
|
112
122
|
|
113
123
|
# 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
|
@@ -0,0 +1,219 @@
|
|
1
|
+
=begin
|
2
|
+
#Bleumi Pay API
|
3
|
+
|
4
|
+
#A simple and powerful REST API to integrate ERC-20, Ethereum, xDai payments and/or payouts 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.2
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module BleumiPay
|
16
|
+
class RskAddress
|
17
|
+
attr_accessor :rsk
|
18
|
+
|
19
|
+
attr_accessor :rsk_testnet
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'rsk' => :'rsk',
|
25
|
+
:'rsk_testnet' => :'rsk_testnet'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.openapi_types
|
31
|
+
{
|
32
|
+
:'rsk' => :'Hash<String, EthereumWalletAddress>',
|
33
|
+
:'rsk_testnet' => :'Hash<String, EthereumWalletAddress>'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# List of attributes with nullable: true
|
38
|
+
def self.openapi_nullable
|
39
|
+
Set.new([
|
40
|
+
])
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
if (!attributes.is_a?(Hash))
|
47
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `BleumiPay::RskAddress` initialize method"
|
48
|
+
end
|
49
|
+
|
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::RskAddress`. 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
|
+
}
|
57
|
+
|
58
|
+
if attributes.key?(:'rsk')
|
59
|
+
if (value = attributes[:'rsk']).is_a?(Hash)
|
60
|
+
self.rsk = value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes.key?(:'rsk_testnet')
|
65
|
+
if (value = attributes[:'rsk_testnet']).is_a?(Hash)
|
66
|
+
self.rsk_testnet = value
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
72
|
+
# @return Array for valid properties with the reasons
|
73
|
+
def list_invalid_properties
|
74
|
+
invalid_properties = Array.new
|
75
|
+
invalid_properties
|
76
|
+
end
|
77
|
+
|
78
|
+
# Check to see if the all the properties in the model are valid
|
79
|
+
# @return true if the model is valid
|
80
|
+
def valid?
|
81
|
+
true
|
82
|
+
end
|
83
|
+
|
84
|
+
# Checks equality by comparing each attribute.
|
85
|
+
# @param [Object] Object to be compared
|
86
|
+
def ==(o)
|
87
|
+
return true if self.equal?(o)
|
88
|
+
self.class == o.class &&
|
89
|
+
rsk == o.rsk &&
|
90
|
+
rsk_testnet == o.rsk_testnet
|
91
|
+
end
|
92
|
+
|
93
|
+
# @see the `==` method
|
94
|
+
# @param [Object] Object to be compared
|
95
|
+
def eql?(o)
|
96
|
+
self == o
|
97
|
+
end
|
98
|
+
|
99
|
+
# Calculates hash code according to all attributes.
|
100
|
+
# @return [Integer] Hash code
|
101
|
+
def hash
|
102
|
+
[rsk, rsk_testnet].hash
|
103
|
+
end
|
104
|
+
|
105
|
+
# Builds the object from hash
|
106
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
+
# @return [Object] Returns the model itself
|
108
|
+
def self.build_from_hash(attributes)
|
109
|
+
new.build_from_hash(attributes)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Builds the object from hash
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
114
|
+
# @return [Object] Returns the model itself
|
115
|
+
def build_from_hash(attributes)
|
116
|
+
return nil unless attributes.is_a?(Hash)
|
117
|
+
self.class.openapi_types.each_pair do |key, type|
|
118
|
+
if type =~ /\AArray<(.*)>/i
|
119
|
+
# check to ensure the input is an array given that the attribute
|
120
|
+
# is documented as an array but the input is not
|
121
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
122
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
123
|
+
end
|
124
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
125
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
126
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
127
|
+
end
|
128
|
+
|
129
|
+
self
|
130
|
+
end
|
131
|
+
|
132
|
+
# Deserializes the data based on type
|
133
|
+
# @param string type Data type
|
134
|
+
# @param string value Value to be deserialized
|
135
|
+
# @return [Object] Deserialized data
|
136
|
+
def _deserialize(type, value)
|
137
|
+
case type.to_sym
|
138
|
+
when :DateTime
|
139
|
+
DateTime.parse(value)
|
140
|
+
when :Date
|
141
|
+
Date.parse(value)
|
142
|
+
when :String
|
143
|
+
value.to_s
|
144
|
+
when :Integer
|
145
|
+
value.to_i
|
146
|
+
when :Float
|
147
|
+
value.to_f
|
148
|
+
when :Boolean
|
149
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
150
|
+
true
|
151
|
+
else
|
152
|
+
false
|
153
|
+
end
|
154
|
+
when :Object
|
155
|
+
# generic object (usually a Hash), return directly
|
156
|
+
value
|
157
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
158
|
+
inner_type = Regexp.last_match[:inner_type]
|
159
|
+
value.map { |v| _deserialize(inner_type, v) }
|
160
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
161
|
+
k_type = Regexp.last_match[:k_type]
|
162
|
+
v_type = Regexp.last_match[:v_type]
|
163
|
+
{}.tap do |hash|
|
164
|
+
value.each do |k, v|
|
165
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
else # model
|
169
|
+
BleumiPay.const_get(type).build_from_hash(value)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Returns the string representation of the object
|
174
|
+
# @return [String] String presentation of the object
|
175
|
+
def to_s
|
176
|
+
to_hash.to_s
|
177
|
+
end
|
178
|
+
|
179
|
+
# to_body is an alias to to_hash (backward compatibility)
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
181
|
+
def to_body
|
182
|
+
to_hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Returns the object in the form of hash
|
186
|
+
# @return [Hash] Returns the object in the form of hash
|
187
|
+
def to_hash
|
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
|
199
|
+
end
|
200
|
+
|
201
|
+
# Outputs non-array value in the form of hash
|
202
|
+
# For object, use to_hash. Otherwise, just return the value
|
203
|
+
# @param [Object] value Any valid value
|
204
|
+
# @return [Hash] Returns the value in the form of hash
|
205
|
+
def _to_hash(value)
|
206
|
+
if value.is_a?(Array)
|
207
|
+
value.compact.map { |v| _to_hash(v) }
|
208
|
+
elsif value.is_a?(Hash)
|
209
|
+
{}.tap do |hash|
|
210
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
211
|
+
end
|
212
|
+
elsif value.respond_to? :to_hash
|
213
|
+
value.to_hash
|
214
|
+
else
|
215
|
+
value
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|
219
|
+
end
|