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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/assets/images/BleumiPay.png +0 -0
  4. data/docs/AlgorandAddress.md +28 -0
  5. data/docs/CreateCheckoutUrlRequest.md +3 -2
  6. data/docs/EthereumAddress.md +29 -0
  7. data/docs/HostedCheckoutsApi.md +4 -3
  8. data/docs/PaginatedPayments.md +59 -55
  9. data/docs/Payment.md +18 -35
  10. data/docs/PaymentAddresses.md +35 -12
  11. data/docs/PaymentBalances.md +28 -13
  12. data/docs/RskAddress.md +29 -0
  13. data/docs/ValidateCheckoutRequest.md +2 -2
  14. data/lib/bleumi_pay_sdk_ruby.rb +3 -2
  15. data/lib/bleumi_pay_sdk_ruby/api/payments_api.rb +0 -73
  16. data/lib/bleumi_pay_sdk_ruby/api/payouts_api.rb +2 -2
  17. data/lib/bleumi_pay_sdk_ruby/api/request_validator.rb +5 -32
  18. data/lib/bleumi_pay_sdk_ruby/models/algorand_address.rb +219 -0
  19. data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_request.rb +8 -8
  20. data/lib/bleumi_pay_sdk_ruby/models/{create_payment_request.rb → ethereum_address.rb} +38 -49
  21. data/lib/bleumi_pay_sdk_ruby/models/payment_addresses.rb +6 -12
  22. data/lib/bleumi_pay_sdk_ruby/models/{create_payment_response.rb → rsk_address.rb} +25 -18
  23. data/lib/bleumi_pay_sdk_ruby/version.rb +1 -1
  24. data/spec/api/payments_api_spec.rb +0 -12
  25. data/spec/models/algorand_address_spec.rb +47 -0
  26. data/spec/models/create_checkout_url_request_spec.rb +1 -1
  27. data/spec/models/{create_payment_request_spec.rb → ethereum_address_spec.rb} +10 -10
  28. data/spec/models/{create_payment_response_spec.rb → rsk_address_spec.rb} +13 -7
  29. metadata +15 -22
  30. data/docs/CreatePaymentRequest.md +0 -19
  31. data/docs/CreatePaymentResponse.md +0 -15
  32. data/hc_create.rb +0 -40
  33. data/hc_list.rb +0 -17
  34. data/hc_validate.rb +0 -22
  35. data/po_create.rb +0 -39
  36. data/po_list.rb +0 -23
  37. data/py_create.rb +0 -48
  38. data/py_get.rb +0 -18
  39. data/py_getop.rb +0 -19
  40. data/py_list.rb +0 -24
  41. data/py_listops.rb +0 -21
  42. data/py_refund.rb +0 -43
  43. data/py_settle.rb +0 -43
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2516d7bc08d49d915d4ee4c530a9928635d54a5ffefead3092129d401ab27afe
4
- data.tar.gz: 9a95feecb24b512e60e14e1a7f6da2a84e4f65ebb7a001eebd49d3544306eceb
3
+ metadata.gz: f674c786edf797b23064688549cc64d5e1a633cebcaf7f6b3c2b8b58be79b339
4
+ data.tar.gz: e343ecc1b4f1eb38028bda5019fb395c550ba396b4e7dc473ea7331d21966746
5
5
  SHA512:
6
- metadata.gz: f17f1028e071ebd35c5ba82c7043e7c62a3da57c5ee4fae50da9b14d7b5e28ce24f501d50587229013f138e2ab9ecf73039885f61621ecb76ae780c5a641a1c2
7
- data.tar.gz: c57949398c04c9dffe9dd0124c3d22de9bb70da39c8ba1ad6b9a4f03d885c0dbc27109b98141ee1e2b8e750082b70d7f88b4eb79198ff51e515979d71389c127
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)
@@ -0,0 +1,28 @@
1
+ # BleumiPay::AlgorandAddress
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **alg_mainnet** <br> (Optional)| [**Hash&lt;String, AlgorandWalletAddress&gt;**](AlgorandWalletAddress.md) | A dictionary which gives the address of the wallet generated for Algorand MainNet |
8
+ **alg_testnet** <br> (Optional)| [**Hash&lt;String, AlgorandWalletAddress&gt;**](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
- **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) |
13
- **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> &lt;asset id&gt;</b> - for Algorand Standard Asset <br/> <b> &lt;contract address of ERC-20 token&gt;</b> - for ERC-20 Tokens. Please refer to [ERC-20 Tokens](https://pay.bleumi.com/docs/#erc-20) for contract address; <br/> <b> &lt;contract address of RSK ERC-20 token&gt;</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;|
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> &lt;asset id&gt;</b> - for Algorand Standard Asset <br/> <b> &lt;contract address of ERC-20 token&gt;</b> - for ERC-20 Tokens. Please refer to [ERC-20 Tokens](https://pay.bleumi.com/docs/#erc-20) for contract address; <br/> <b> &lt;contract address of RSK ERC-20 token&gt;</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&lt;String, EthereumWalletAddress&gt;**](EthereumWalletAddress.md) | A dictionary which gives the address of the wallet generated for Ethereum MainNet |
8
+ **goerli** | [**Hash&lt;String, EthereumWalletAddress&gt;**](EthereumWalletAddress.md) | A dictionary which gives the address of the wallet generated for Goerli TestNet |
9
+ **xdai** | [**Hash&lt;String, EthereumWalletAddress&gt;**](EthereumWalletAddress.md) | A dictionary which gives the address of the wallet generated for xDAI MainNet |
10
+ **xdai_testnet** | [**Hash&lt;String, EthereumWalletAddress&gt;**](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
+ ```
@@ -73,7 +73,8 @@ The hmac_input GET parameter passed to successUrl contains payment parameters as
73
73
  <i>&lt;contract address of RSK ERC-20 token&gt;</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. goerli|0xbeaea438bc2e19d097906b597219c288e8eb7b2e|0x115615dbd0f835344725146fa6343219315f15e5|10|12
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. bdf82eb42efac09150d62ac1bcadd2fd0f64852ded2b571567c905217adf246a
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
@@ -12,83 +12,87 @@ Name | Type | Description | Notes
12
12
  ```json
13
13
  {
14
14
  "results": [
15
- {
16
- "id": "1412",
15
+ {
16
+ "id": "2",
17
17
  "addresses": {
18
- "algorand": {
19
- "alg_testnet": {
20
- "inputs": {
21
- "merchant": "CQRMTAHZJA3SIEOTEMZXCAIZKUWE2CCLBCFYQI4NINU43IOTEWT4LOT4IY",
22
- "salt": "b1929e6dd3956e0a3abeedb2bd53adc6sHQp0Ksuc4Zyf3Elzdgogqah2hA80y/61+rgF3vRE3YWu/JFPJfM8w==",
23
- "gas": "ZGXGUNO47C2E7EUO2B3UAY6DETVBI5E2RFDKT4KC3VTWNENE7IVF2F43WY",
24
- "programBytes": "ASYGIBQiyYD5SDckEdMjM3EBGVUsTQhLCIuII41Dac2h0yWnIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIMmuajXc+LRPko7Qd0BjwyTqFHSaiUap8ULdZ2aRpPoqA3BheQVheGZlciASpk2P8CvJS+NGPcbU9eXjbT2KyTUtTvztmxRR3ShmODEHKBIxBygSETEJKRIxCSgSMQkoEhExCSoSEREQMQ8rEhAxFCgSMRQoEhExFSkSMRUoEjEVKBIRERAxDycEEhARMQUBJwUSEDEUMQASEQ==",
25
- "buyer": "CQRMTAHZJA3SIEOTEMZXCAIZKUWE2CCLBCFYQI4NINU43IOTEWT4LOT4IY"
26
- },
27
- "addr": "BE4XD5QRRXOSAMWJRFHUVZ6DHIP2GQ6YHOHNEP3V3OPEM7SQ4PZMT6WTD4"
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
- "algorand": {
33
- "alg_testnet": {
34
- "127647": {
35
- "blockNum": "5388041",
36
- "token_balance": "10000000",
37
- "balance": "10",
38
- "safety": "high",
39
- "token_decimals": 6
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": 1583731367,
52
- "updatedAt": 1583731695
46
+ "createdAt": 1574493797,
47
+ "updatedAt": 1574502335
53
48
  },
54
49
  {
55
- "id": "1411",
50
+ "id": "1",
56
51
  "addresses": {
57
52
  "ethereum": {
58
- "goerli": {
59
- "inputs": {
60
- "walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
61
- "merchant": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41",
62
- "salt": "0xc866b93db0433948f8a47ecb98aac4690999112f8da7ee31a2106cfdd789c2d0",
63
- "walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049",
64
- "buyer": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41"
65
- },
66
- "addr": "0xbe22e5c3347b25d16918a841fada2bd76a70d9ac"
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
- "goerli": {
73
- "0x84df8548086ec9025e9c93297058bed706e90ddd": {
74
- "balance": "4",
75
- "token_decimals": 18,
76
- "blockNum": "2313213",
77
- "safety": "high",
78
- "token_balance": "4000000000000000000"
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": 1583730573,
91
- "updatedAt": 1583730823
94
+ "createdAt": 1574493617,
95
+ "updatedAt": 1574494588
92
96
  }
93
97
  ]
94
98
  }
@@ -14,54 +14,37 @@ Name | Type | Description | Notes
14
14
 
15
15
  ```json
16
16
  {
17
- "id": "1432",
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
- "inputs": {
32
- "walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049",
33
- "buyer": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41",
34
- "walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
35
- "merchant": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41",
36
- "salt": "0x870a006007a88ad69c1ce6561b13e4a22f0cd64596f2a2671f5860c63d353ea6"
37
- },
38
- "addr": "0xbe537259a1af5d5c649351ddae0f6bdf69adb1fe"
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": "2314454",
57
- "token_balance": "5000000000000000",
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": 1583748155,
65
- "updatedAt": 1583748766
47
+ "createdAt": 1574493617,
48
+ "updatedAt": 1574494588
66
49
  }
67
- ```
50
+ ```
@@ -4,18 +4,41 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **ethereum** | [**Hash&lt;String, EthereumWalletAddress&gt;**](EthereumWalletAddress.md) | | [optional]
8
- **algorand** | [**Hash&lt;String, AlgorandWalletAddress&gt;**](AlgorandWalletAddress.md) | | [optional]
9
- **rsk** | [**Hash&lt;String, EthereumWalletAddress&gt;**](EthereumWalletAddress.md) | | [optional]
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
- ## Code Sample
11
+ ## Example
12
12
 
13
- ```ruby
14
- require 'BleumiPay'
15
-
16
- instance = BleumiPay::PaymentAddresses.new(ethereum: null,
17
- algorand: null,
18
- rsk: null)
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
-
@@ -4,18 +4,33 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **ethereum** | [**EthereumBalance**](EthereumBalance.md) | | [optional]
8
- **algorand** | [**AlgorandBalance**](AlgorandBalance.md) | | [optional]
9
- **rsk** | [**RskBalance**](RskBalance.md) | | [optional]
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
+ ```