bleumi_pay_sdk_ruby 1.0.7 → 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/README.md +3 -0
- data/assets/images/BleumiPay.png +0 -0
- data/docs/AlgorandAddress.md +28 -0
- data/docs/CreateCheckoutUrlRequest.md +3 -2
- data/docs/EthereumAddress.md +29 -0
- data/docs/HostedCheckoutsApi.md +4 -3
- data/docs/PaginatedPayments.md +59 -55
- data/docs/Payment.md +18 -35
- data/docs/PaymentAddresses.md +35 -12
- data/docs/PaymentBalances.md +28 -13
- data/docs/RskAddress.md +29 -0
- data/docs/ValidateCheckoutRequest.md +2 -2
- data/lib/bleumi_pay_sdk_ruby.rb +3 -2
- data/lib/bleumi_pay_sdk_ruby/api/payments_api.rb +0 -73
- data/lib/bleumi_pay_sdk_ruby/api/payouts_api.rb +2 -2
- data/lib/bleumi_pay_sdk_ruby/api/request_validator.rb +5 -32
- data/lib/bleumi_pay_sdk_ruby/models/algorand_address.rb +219 -0
- data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_request.rb +8 -8
- data/lib/bleumi_pay_sdk_ruby/models/{create_payment_request.rb → ethereum_address.rb} +38 -49
- data/lib/bleumi_pay_sdk_ruby/models/payment_addresses.rb +6 -12
- data/lib/bleumi_pay_sdk_ruby/models/{create_payment_response.rb → rsk_address.rb} +25 -18
- data/lib/bleumi_pay_sdk_ruby/version.rb +1 -1
- data/spec/api/payments_api_spec.rb +0 -12
- data/spec/models/algorand_address_spec.rb +47 -0
- data/spec/models/create_checkout_url_request_spec.rb +1 -1
- data/spec/models/{create_payment_request_spec.rb → ethereum_address_spec.rb} +10 -10
- data/spec/models/{create_payment_response_spec.rb → rsk_address_spec.rb} +13 -7
- metadata +15 -22
- data/docs/CreatePaymentRequest.md +0 -19
- data/docs/CreatePaymentResponse.md +0 -15
- data/hc_create.rb +0 -40
- data/hc_list.rb +0 -17
- data/hc_validate.rb +0 -22
- data/po_create.rb +0 -39
- data/po_list.rb +0 -23
- data/py_create.rb +0 -48
- data/py_get.rb +0 -18
- data/py_getop.rb +0 -19
- data/py_list.rb +0 -24
- data/py_listops.rb +0 -21
- data/py_refund.rb +0 -43
- data/py_settle.rb +0 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f674c786edf797b23064688549cc64d5e1a633cebcaf7f6b3c2b8b58be79b339
|
4
|
+
data.tar.gz: e343ecc1b4f1eb38028bda5019fb395c550ba396b4e7dc473ea7331d21966746
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74b19c62f0e23ba0e7e9bac944f025f1dc7534c05cab7cd9dbb28b4a43aaaff966aa2c5b449e0ed7d118903644b7c4ff73ea67c2b32c46314299ae5081b2b291
|
7
|
+
data.tar.gz: 45e6059ba61cb6169c6b6ea1e9080f9393852f91bde03bea6c8f2d495df89d1baae854cb2e262848b7d42bb61f745a0c360b0b49a192c04965ba620c67fdd991
|
data/README.md
CHANGED
@@ -93,6 +93,7 @@ BleumiPay::PayoutsApi | [**create_payout**](docs/PayoutsApi.md#create_payout) |
|
|
93
93
|
|
94
94
|
## Documentation for Models
|
95
95
|
|
96
|
+
- [BleumiPay::AlgorandAddress](docs/AlgorandAddress.md)
|
96
97
|
- [BleumiPay::AlgorandBalance](docs/AlgorandBalance.md)
|
97
98
|
- [BleumiPay::AlgorandWalletAddress](docs/AlgorandWalletAddress.md)
|
98
99
|
- [BleumiPay::AlgorandWalletInputs](docs/AlgorandWalletInputs.md)
|
@@ -103,6 +104,7 @@ BleumiPay::PayoutsApi | [**create_payout**](docs/PayoutsApi.md#create_payout) |
|
|
103
104
|
- [BleumiPay::CreateCheckoutUrlResponse](docs/CreateCheckoutUrlResponse.md)
|
104
105
|
- [BleumiPay::CreatePayoutRequest](docs/CreatePayoutRequest.md)
|
105
106
|
- [BleumiPay::CreatePayoutResponse](docs/CreatePayoutResponse.md)
|
107
|
+
- [BleumiPay::EthereumAddress](docs/EthereumAddress.md)
|
106
108
|
- [BleumiPay::EthereumBalance](docs/EthereumBalance.md)
|
107
109
|
- [BleumiPay::EthereumWalletAddress](docs/EthereumWalletAddress.md)
|
108
110
|
- [BleumiPay::EthereumWalletInputs](docs/EthereumWalletInputs.md)
|
@@ -120,6 +122,7 @@ BleumiPay::PayoutsApi | [**create_payout**](docs/PayoutsApi.md#create_payout) |
|
|
120
122
|
- [BleumiPay::Payout](docs/Payout.md)
|
121
123
|
- [BleumiPay::PayoutItem](docs/PayoutItem.md)
|
122
124
|
- [BleumiPay::PayoutItemInputs](docs/PayoutItemInputs.md)
|
125
|
+
- [BleumiPay::RskAddress](docs/RskAddress.md)
|
123
126
|
- [BleumiPay::RskBalance](docs/RskBalance.md)
|
124
127
|
- [BleumiPay::ValidateCheckoutRequest](docs/ValidateCheckoutRequest.md)
|
125
128
|
- [BleumiPay::ValidateCheckoutResponse](docs/ValidateCheckoutResponse.md)
|
Binary file
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# BleumiPay::AlgorandAddress
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**alg_mainnet** <br> (Optional)| [**Hash<String, AlgorandWalletAddress>**](AlgorandWalletAddress.md) | A dictionary which gives the address of the wallet generated for Algorand MainNet |
|
8
|
+
**alg_testnet** <br> (Optional)| [**Hash<String, AlgorandWalletAddress>**](AlgorandWalletAddress.md) | A dictionary which gives the address of the wallet generated for Algorand TestNet |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```json
|
13
|
+
{
|
14
|
+
"alg_testnet": {
|
15
|
+
"IZYYKSQO3GRZQ4SMAUVV5SVK6N7WUIDBZJCVZEVCHJ2XO22ARMQ3IEEGAQ|QTYQRYMFCS5FT63RUZXBR3MKEEQLHKMHMGMYS4UAPM5CKK27KELGP62QUY": {
|
16
|
+
"addr": "BE2CX2DSRWNNQH6YEAEIDCXKESHJMJTL7BA7U74RUXBEOPLYV4JQA26XXI",
|
17
|
+
"inputs": {
|
18
|
+
"merchant": "IZYYKSQO3GRZQ4SMAUVV5SVK6N7WUIDBZJCVZEVCHJ2XO22ARMQ3IEEGAQ",
|
19
|
+
"salt": "b73cb93c774b6c5fa4fcf2e02acff50fK9gTTRyoF64g1YANSZcydHjzXbRyfCPQNxpDIBegczRdb6Oosfr18g==",
|
20
|
+
"gas": "ARHKCC34GGEDB7ZZE73QMAUKWNXAK3SZWDRECYRVN6AXTPQ7JTFSRDEYCI",
|
21
|
+
"programBytes": "ASYHIEZxhUoO2aOYckwFK17KqvN/aiBhykVckqI6dXdrQIshIITxCOGFFLpZ+3GmbhjtiiEgs6mHYZmJcoB7OiUrX1EWIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAROoQt8MYgw/zkn9wYCirNuBW5ZsOJBYjVvgXm+H0zLA3BheQVheGZlciDb1gr1RfLUa+ziM7438kcaEMopE3DXemdxEpiWWKhvkzEHKBIxBykSETEJKhIxCSgSMQkpEhExCSsSEREQMQ8nBBIQMRQoEjEUKRIRMRUqEjEVKBIxFSkSEREQMQ8nBRIQETEFAScGEhAxFDEAEhE=",
|
22
|
+
"buyer": "QTYQRYMFCS5FT63RUZXBR3MKEEQLHKMHMGMYS4UAPM5CKK27KELGP62QUY"
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
```
|
@@ -9,8 +9,9 @@ Name | Type | Description | Notes
|
|
9
9
|
**amount** | **String** | Token amount for this payment |
|
10
10
|
**cancel_url** | **String** | Buyer will be redirected to this URL upon canceling the payment. |
|
11
11
|
**success_url** | **String** | Buyer will be redirected to this URL upon successfully completing the payment and the following data is passed as GET parameters, <ul style="font-weight: 500"><li><b>id</b> - Unique identifier of the checkout URL</li><li><b>hmac_input</b> - Payment parameters used to generate HMAC. The format is described below.</li> <li><b>hmac_keyId</b> - Key ID used to generate HMAC</li> <li><b>hmac_alg</b> - Algorithm used to generate HMAC</li> <li><b>hmac_value</b> - HMAC generated for hmac.input</li></ul> |
|
12
|
-
**
|
13
|
-
**
|
12
|
+
**transfer_address**<br>(Optional)| **String** | Payment transfer address (only used in case of Marketplace payments). Use this field to override the token's settlement address specified in the Bleumi Pay Dashboard for the payment. | [optional]
|
13
|
+
**chain** <br>(Optional)| [**Chain**](Chain.md) | (Required if specifying 'token') Network in which the hosted checkout is to be created. Please refer to the [Supported Networks.](https://pay.bleumi.com/docs/#supported-networks) |
|
14
|
+
**token** <br>(Optional)| **String** | If this field is not specified, a list of tokens configured for the provided currency code for the Hosted Checkout in your account in the <a href="https://pay.bleumi.com/app/" target="_blank"> Bleumi Pay Dashboard</a> is sent to the buyer. The buyer can complete the payment using any one of token from this list. <br><br> Set the token which must be used by the buyer for this payment. The token provided must be set in your portal for the provided currency code. The token is assumed to be 1:1 with the currency unit. <br><br> <b>ETH</b> - for Ethereum <br/> <b>XDAI</b> - for xDai <br/> <b>XDAIT</b> - for xDai Testnet <br/> <b>ALGO</b> - for Algo <br/> <b>RBTC</b> - for R-BTC <br/> <b> <asset id></b> - for Algorand Standard Asset <br/> <b> <contract address of ERC-20 token></b> - for ERC-20 Tokens. Please refer to [ERC-20 Tokens](https://pay.bleumi.com/docs/#erc-20) for contract address; <br/> <b> <contract address of RSK ERC-20 token></b> - for RSK ERC-20 Tokens. Please refer to [RSK ERC-20 Tokens](https://pay.bugnet.work/docs/#rsk-tokens-erc-20) for contract address;|
|
14
15
|
**base64_transform** <br>(Optional)| **Boolean** | Base64 encode hmac_input GET parameter passed to the successUrl |
|
15
16
|
|
16
17
|
## Example
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# BleumiPay::EthereumAddress
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**mainnet** | [**Hash<String, EthereumWalletAddress>**](EthereumWalletAddress.md) | A dictionary which gives the address of the wallet generated for Ethereum MainNet |
|
8
|
+
**goerli** | [**Hash<String, EthereumWalletAddress>**](EthereumWalletAddress.md) | A dictionary which gives the address of the wallet generated for Goerli TestNet |
|
9
|
+
**xdai** | [**Hash<String, EthereumWalletAddress>**](EthereumWalletAddress.md) | A dictionary which gives the address of the wallet generated for xDAI MainNet |
|
10
|
+
**xdai_testnet** | [**Hash<String, EthereumWalletAddress>**](EthereumWalletAddress.md) | A dictionary which gives the address of the wallet generated for xDAI TestNet |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```json
|
15
|
+
{
|
16
|
+
"xdai_testnet": {
|
17
|
+
"0x13e4acefe6a6700604929946e70e6443e4e73447|0x13e4acefe6a6700604929946e70e6443e4e73447":{
|
18
|
+
"addr": "0xbe1fa332f24ba568108ba55a25eccf93d882f54e",
|
19
|
+
"inputs": {
|
20
|
+
"buyer": "0x13e4acefe6a6700604929946e70e6443e4e73447",
|
21
|
+
"walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
|
22
|
+
"merchant": "0x13e4acefe6a6700604929946e70e6443e4e73447",
|
23
|
+
"salt": "0x4d5afc486391108fd9af8e33cec2caa8038899c7974fae22a3c3bb0d127ab8a7",
|
24
|
+
"walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049"
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
```
|
data/docs/HostedCheckoutsApi.md
CHANGED
@@ -73,7 +73,8 @@ The hmac_input GET parameter passed to successUrl contains payment parameters as
|
|
73
73
|
<i><contract address of RSK ERC-20 token></i> - for RSK ERC-20; Please refer to <a href="https://pay.bugnet.work/docs/#rsk-tokens-erc-20" target="_blank">RSK ERC-20 Tokens</a> for contract address;<br>
|
74
74
|
</li>
|
75
75
|
<li><b>Amount</b> - Token amount for the payment</li>
|
76
|
-
<li><b>Number of block confirmations</b><br>
|
76
|
+
<li><b>Number of block confirmations</b><br>
|
77
|
+
<li><b>Transaction Hash</b><br>
|
77
78
|
</li>
|
78
79
|
</li>
|
79
80
|
</ul>
|
@@ -162,9 +163,9 @@ api_instance = BleumiPay::HostedCheckoutsApi.new
|
|
162
163
|
begin
|
163
164
|
validate_checkout_request = BleumiPay::ValidateCheckoutRequest.new # ValidateCheckoutRequest | Specify validation of checkout parameters.
|
164
165
|
validate_checkout_request.hmac_alg = '<ALD>' # Eg. HMAC-SHA256-HEX
|
165
|
-
validate_checkout_request.hmac_input = '<INPUT>' # Eg.
|
166
|
+
validate_checkout_request.hmac_input = '<INPUT>' # Eg. rsk_testnet|0xbed61c55cc290b55c1c4c327148bdede56a831f4|0xb9f624160bb2755aa25366cc307ed27e39a4f296|10|0|0x16e54beb3ea4b4206b62ca32b1d2cf4ad15d9af2234564c2166ff3ccc817d5c1
|
166
167
|
validate_checkout_request.hmac_key_id = '<VER>' # Eg. v1
|
167
|
-
validate_checkout_request.hmac_value = '<HMAC_VALUE>' # Eg.
|
168
|
+
validate_checkout_request.hmac_value = '<HMAC_VALUE>' # Eg. c782cbad4394383599b7cf9f9d62990f289649b35edd82cd1c7d58dd65e9fc03
|
168
169
|
#Validate the GET parameters passed by Hosted Checkout in successUrl upon successfully completing payment.
|
169
170
|
result = api_instance.validate_checkout_payment(validate_checkout_request)
|
170
171
|
p result
|
data/docs/PaginatedPayments.md
CHANGED
@@ -12,83 +12,87 @@ Name | Type | Description | Notes
|
|
12
12
|
```json
|
13
13
|
{
|
14
14
|
"results": [
|
15
|
-
|
16
|
-
"id": "
|
15
|
+
{
|
16
|
+
"id": "2",
|
17
17
|
"addresses": {
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"
|
21
|
-
"
|
22
|
-
"
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
18
|
+
"ethereum": {
|
19
|
+
"goerli": {
|
20
|
+
"0x13e4acefe6a6700604929946e70e6443e4e73447|0x13e4acefe6a6700604929946e70e6443e4e73447": {
|
21
|
+
"addr": "0xbe02daaf993b29302c2e983b63eca1465c227245",
|
22
|
+
"inputs": {
|
23
|
+
"buyer": "0x13e4acefe6a6700604929946e70e6443e4e73447",
|
24
|
+
"walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
|
25
|
+
"merchant": "0x13e4acefe6a6700604929946e70e6443e4e73447",
|
26
|
+
"salt": "0x4d5afc486391108fd9af8e33cec2caa8038899c7974fae22a3c3bb0d127ab8a7",
|
27
|
+
"walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049"
|
28
|
+
}
|
29
|
+
}
|
28
30
|
}
|
29
31
|
}
|
30
32
|
},
|
31
33
|
"balances": {
|
32
|
-
"
|
33
|
-
"
|
34
|
-
"
|
35
|
-
"blockNum": "
|
36
|
-
"token_balance": "
|
37
|
-
"balance": "
|
38
|
-
"
|
39
|
-
"
|
40
|
-
},
|
41
|
-
"ALGO": {
|
42
|
-
"blockNum": "5388035",
|
43
|
-
"token_balance": "209000",
|
44
|
-
"balance": "0.209",
|
45
|
-
"safety": "high",
|
46
|
-
"token_decimals": 6
|
34
|
+
"ethereum": {
|
35
|
+
"goerli": {
|
36
|
+
"0x84df8548086ec9025e9c93297058bed706e90ddd": {
|
37
|
+
"blockNum": "6831652",
|
38
|
+
"token_balance": "0",
|
39
|
+
"balance": "0",
|
40
|
+
"token_decimals": 18,
|
41
|
+
"safety": "high"
|
47
42
|
}
|
48
43
|
}
|
49
44
|
}
|
50
45
|
},
|
51
|
-
"createdAt":
|
52
|
-
"updatedAt":
|
46
|
+
"createdAt": 1574493797,
|
47
|
+
"updatedAt": 1574502335
|
53
48
|
},
|
54
49
|
{
|
55
|
-
"id": "
|
50
|
+
"id": "1",
|
56
51
|
"addresses": {
|
57
52
|
"ethereum": {
|
58
|
-
"
|
59
|
-
"
|
60
|
-
"
|
61
|
-
"
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
53
|
+
"xdai_testnet": {
|
54
|
+
"0x13e4acefe6a6700604929946e70e6443e4e73447|0x13e4acefe6a6700604929946e70e6443e4e73447": {
|
55
|
+
"addr": "0xbe1fa332f24ba568108ba55a25eccf93d882f54e",
|
56
|
+
"inputs": {
|
57
|
+
"buyer": "0x13e4acefe6a6700604929946e70e6443e4e73447",
|
58
|
+
"walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
|
59
|
+
"merchant": "0x13e4acefe6a6700604929946e70e6443e4e73447",
|
60
|
+
"salt": "0x4d5afc486391108fd9af8e33cec2caa8038899c7974fae22a3c3bb0d127ab8a7",
|
61
|
+
"walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049"
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
},
|
66
|
+
"algorand": {
|
67
|
+
"alg_testnet": {
|
68
|
+
"IZYYKSQO3GRZQ4SMAUVV5SVK6N7WUIDBZJCVZEVCHJ2XO22ARMQ3IEEGAQ|QTYQRYMFCS5FT63RUZXBR3MKEEQLHKMHMGMYS4UAPM5CKK27KELGP62QUY": {
|
69
|
+
"addr": "BE2CX2DSRWNNQH6YEAEIDCXKESHJMJTL7BA7U74RUXBEOPLYV4JQA26XXI",
|
70
|
+
"inputs": {
|
71
|
+
"merchant": "IZYYKSQO3GRZQ4SMAUVV5SVK6N7WUIDBZJCVZEVCHJ2XO22ARMQ3IEEGAQ",
|
72
|
+
"salt": "b73cb93c774b6c5fa4fcf2e02acff50fK9gTTRyoF64g1YANSZcydHjzXbRyfCPQNxpDIBegczRdb6Oosfr18g==",
|
73
|
+
"gas": "ARHKCC34GGEDB7ZZE73QMAUKWNXAK3SZWDRECYRVN6AXTPQ7JTFSRDEYCI",
|
74
|
+
"programBytes": "ASYHIEZxhUoO2aOYckwFK17KqvN/aiBhykVckqI6dXdrQIshIITxCOGFFLpZ+3GmbhjtiiEgs6mHYZmJcoB7OiUrX1EWIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAROoQt8MYgw/zkn9wYCirNuBW5ZsOJBYjVvgXm+H0zLA3BheQVheGZlciDb1gr1RfLUa+ziM7438kcaEMopE3DXemdxEpiWWKhvkzEHKBIxBykSETEJKhIxCSgSMQkpEhExCSsSEREQMQ8nBBIQMRQoEjEUKRIRMRUqEjEVKBIxFSkSEREQMQ8nBRIQETEFAScGEhAxFDEAEhE=",
|
75
|
+
"buyer": "QTYQRYMFCS5FT63RUZXBR3MKEEQLHKMHMGMYS4UAPM5CKK27KELGP62QUY"
|
76
|
+
}
|
77
|
+
}
|
67
78
|
}
|
68
79
|
}
|
69
80
|
},
|
70
81
|
"balances": {
|
71
82
|
"ethereum": {
|
72
|
-
"
|
73
|
-
"
|
74
|
-
"
|
75
|
-
"
|
76
|
-
"
|
77
|
-
"
|
78
|
-
"
|
79
|
-
},
|
80
|
-
"0x115615dbd0f835344725146fa6343219315f15e5": {
|
81
|
-
"balance": "9",
|
82
|
-
"token_decimals": 6,
|
83
|
-
"blockNum": "2313213",
|
84
|
-
"safety": "high",
|
85
|
-
"token_balance": "9000000"
|
83
|
+
"xdai_testnet": {
|
84
|
+
"XDAIT": {
|
85
|
+
"blockNum": "1698324",
|
86
|
+
"token_balance": "1000000000000000",
|
87
|
+
"balance": "1",
|
88
|
+
"token_decimals": 15,
|
89
|
+
"safety": "low"
|
86
90
|
}
|
87
91
|
}
|
88
92
|
}
|
89
93
|
},
|
90
|
-
"createdAt":
|
91
|
-
"updatedAt":
|
94
|
+
"createdAt": 1574493617,
|
95
|
+
"updatedAt": 1574494588
|
92
96
|
}
|
93
97
|
]
|
94
98
|
}
|
data/docs/Payment.md
CHANGED
@@ -14,54 +14,37 @@ Name | Type | Description | Notes
|
|
14
14
|
|
15
15
|
```json
|
16
16
|
{
|
17
|
-
"id": "
|
17
|
+
"id": "1",
|
18
18
|
"addresses": {
|
19
19
|
"ethereum": {
|
20
|
-
"goerli": {
|
21
|
-
"inputs": {
|
22
|
-
"walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
|
23
|
-
"merchant": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41",
|
24
|
-
"salt": "0xa497eadc72a5ca6af3ade21d8cdf5e76d15a08e5c2097095b7079a959e5a9be7",
|
25
|
-
"walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049",
|
26
|
-
"buyer": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41"
|
27
|
-
},
|
28
|
-
"addr": "0xbea9ba68eb642c21b1966310a33d0dbfa7f61ade"
|
29
|
-
},
|
30
20
|
"xdai_testnet": {
|
31
|
-
"
|
32
|
-
"
|
33
|
-
"
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
21
|
+
"0x13e4acefe6a6700604929946e70e6443e4e73447|0x13e4acefe6a6700604929946e70e6443e4e73447": {
|
22
|
+
"addr": "0xbe1fa332f24ba568108ba55a25eccf93d882f54e",
|
23
|
+
"inputs": {
|
24
|
+
"buyer": "0x13e4acefe6a6700604929946e70e6443e4e73447",
|
25
|
+
"walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
|
26
|
+
"merchant": "0x13e4acefe6a6700604929946e70e6443e4e73447",
|
27
|
+
"salt": "0x4d5afc486391108fd9af8e33cec2caa8038899c7974fae22a3c3bb0d127ab8a7",
|
28
|
+
"walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049"
|
29
|
+
}
|
30
|
+
}
|
39
31
|
}
|
40
32
|
}
|
41
33
|
},
|
42
34
|
"balances": {
|
43
35
|
"ethereum": {
|
44
|
-
"goerli": {
|
45
|
-
"0x115615dbd0f835344725146fa6343219315f15e5": {
|
46
|
-
"balance": "0",
|
47
|
-
"token_decimals": 6,
|
48
|
-
"blockNum": "2314477",
|
49
|
-
"safety": "high",
|
50
|
-
"token_balance": "0"
|
51
|
-
}
|
52
|
-
},
|
53
36
|
"xdai_testnet": {
|
54
37
|
"XDAIT": {
|
38
|
+
"balance": "1",
|
55
39
|
"token_decimals": 15,
|
56
|
-
"blockNum": "
|
57
|
-
"token_balance": "
|
58
|
-
"safety": "high"
|
59
|
-
"balance": "5"
|
40
|
+
"blockNum": "1698324",
|
41
|
+
"token_balance": "1000000000000000",
|
42
|
+
"safety": "high"
|
60
43
|
}
|
61
44
|
}
|
62
45
|
}
|
63
46
|
},
|
64
|
-
"createdAt":
|
65
|
-
"updatedAt":
|
47
|
+
"createdAt": 1574493617,
|
48
|
+
"updatedAt": 1574494588
|
66
49
|
}
|
67
|
-
```
|
50
|
+
```
|
data/docs/PaymentAddresses.md
CHANGED
@@ -4,18 +4,41 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**ethereum** | [**
|
8
|
-
**algorand** | [**
|
9
|
-
**rsk** | [**
|
7
|
+
**ethereum** <br> (Optional)| [**EthereumAddress**](EthereumAddress.md) | A dictionary which gives the wallet addresses in Ethereum Network|
|
8
|
+
**algorand** <br> (Optional)| [**AlgorandAddress**](AlgorandAddress.md) | A dictionary which gives the wallet addresses in Algorand Network|
|
9
|
+
**rsk** <br> (Optional)| [**RskAddress**](RskAddress.md) | A dictionary which gives the wallet addresses in Rsk Network|
|
10
10
|
|
11
|
-
##
|
11
|
+
## Example
|
12
12
|
|
13
|
-
```
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
```json
|
14
|
+
{
|
15
|
+
"ethereum": {
|
16
|
+
"xdai_testnet": {
|
17
|
+
"0x13e4acefe6a6700604929946e70e6443e4e73447|0x13e4acefe6a6700604929946e70e6443e4e73447":{
|
18
|
+
"addr": "0xbe1fa332f24ba568108ba55a25eccf93d882f54e",
|
19
|
+
"inputs": {
|
20
|
+
"buyer": "0x13e4acefe6a6700604929946e70e6443e4e73447",
|
21
|
+
"walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
|
22
|
+
"merchant": "0x13e4acefe6a6700604929946e70e6443e4e73447",
|
23
|
+
"salt": "0x4d5afc486391108fd9af8e33cec2caa8038899c7974fae22a3c3bb0d127ab8a7",
|
24
|
+
"walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049"
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"algorand": {
|
30
|
+
"alg_testnet": {
|
31
|
+
"IZYYKSQO3GRZQ4SMAUVV5SVK6N7WUIDBZJCVZEVCHJ2XO22ARMQ3IEEGAQ|QTYQRYMFCS5FT63RUZXBR3MKEEQLHKMHMGMYS4UAPM5CKK27KELGP62QUY": {
|
32
|
+
"addr": "BE2CX2DSRWNNQH6YEAEIDCXKESHJMJTL7BA7U74RUXBEOPLYV4JQA26XXI",
|
33
|
+
"inputs": {
|
34
|
+
"merchant": "IZYYKSQO3GRZQ4SMAUVV5SVK6N7WUIDBZJCVZEVCHJ2XO22ARMQ3IEEGAQ",
|
35
|
+
"salt": "b73cb93c774b6c5fa4fcf2e02acff50fK9gTTRyoF64g1YANSZcydHjzXbRyfCPQNxpDIBegczRdb6Oosfr18g==",
|
36
|
+
"gas": "ARHKCC34GGEDB7ZZE73QMAUKWNXAK3SZWDRECYRVN6AXTPQ7JTFSRDEYCI",
|
37
|
+
"programBytes": "ASYHIEZxhUoO2aOYckwFK17KqvN/aiBhykVckqI6dXdrQIshIITxCOGFFLpZ+3GmbhjtiiEgs6mHYZmJcoB7OiUrX1EWIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAROoQt8MYgw/zkn9wYCirNuBW5ZsOJBYjVvgXm+H0zLA3BheQVheGZlciDb1gr1RfLUa+ziM7438kcaEMopE3DXemdxEpiWWKhvkzEHKBIxBykSETEJKhIxCSgSMQkpEhExCSsSEREQMQ8nBBIQMRQoEjEUKRIRMRUqEjEVKBIxFSkSEREQMQ8nBRIQETEFAScGEhAxFDEAEhE=",
|
38
|
+
"buyer": "QTYQRYMFCS5FT63RUZXBR3MKEEQLHKMHMGMYS4UAPM5CKK27KELGP62QUY"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
19
44
|
```
|
20
|
-
|
21
|
-
|
data/docs/PaymentBalances.md
CHANGED
@@ -4,18 +4,33 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**ethereum** | [**EthereumBalance**](EthereumBalance.md) |
|
8
|
-
**algorand** | [**AlgorandBalance**](AlgorandBalance.md) |
|
9
|
-
**rsk** | [**RskBalance**](RskBalance.md) | |
|
10
|
-
|
11
|
-
## Code Sample
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'BleumiPay'
|
15
|
-
|
16
|
-
instance = BleumiPay::PaymentBalances.new(ethereum: null,
|
17
|
-
algorand: null,
|
18
|
-
rsk: null)
|
19
|
-
```
|
7
|
+
**ethereum** | [**EthereumBalance**](EthereumBalance.md) | A dictionary which gives the token balances in each Ethereum network |
|
8
|
+
**algorand** | [**AlgorandBalance**](AlgorandBalance.md) | A dictionary which gives the token balances in each Algorand network |
|
9
|
+
**rsk** | [**RskBalance**](RskBalance.md) | A dictionary which gives the token balances in each RSK network |
|
20
10
|
|
11
|
+
## Example
|
21
12
|
|
13
|
+
```json
|
14
|
+
{
|
15
|
+
"ethereum": {
|
16
|
+
"goerli": {
|
17
|
+
"0x84df8548086ec9025e9c93297058bed706e90ddd":
|
18
|
+
{
|
19
|
+
"balance": "4",
|
20
|
+
"token_decimals": 18,
|
21
|
+
"blockNum": "2313213",
|
22
|
+
"safety": "high",
|
23
|
+
"token_balance": "4000000000000000000"
|
24
|
+
},
|
25
|
+
"0x115615dbd0f835344725146fa6343219315f15e5":
|
26
|
+
{
|
27
|
+
"balance": "9",
|
28
|
+
"token_decimals": 6,
|
29
|
+
"blockNum": "2313213",
|
30
|
+
"safety": "high",
|
31
|
+
"token_balance": "9000000"
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
```
|