bleumi_pay_sdk_ruby 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/bleumi_pay_sdk_ruby.gemspec +4 -4
  4. data/docs/AlgorandWalletAddress.md +24 -0
  5. data/docs/AlgorandWalletInputs.md +23 -0
  6. data/docs/CheckoutToken.md +2 -0
  7. data/docs/EthereumWalletAddress.md +23 -0
  8. data/docs/EthereumWalletInputs.md +23 -0
  9. data/docs/HostedCheckoutsApi.md +2 -4
  10. data/docs/PaginatedPayments.md +51 -28
  11. data/docs/Payment.md +32 -10
  12. data/docs/PaymentAddresses.md +24 -8
  13. data/docs/PaymentBalances.md +15 -7
  14. data/docs/PaymentsApi.md +3 -0
  15. data/hc_create.rb +33 -0
  16. data/hc_list.rb +17 -0
  17. data/hc_validate.rb +22 -0
  18. data/lib/bleumi_pay_sdk_ruby.rb +4 -1
  19. data/lib/bleumi_pay_sdk_ruby/api/payments_api.rb +2 -2
  20. data/lib/bleumi_pay_sdk_ruby/api/payouts_api.rb +1 -1
  21. data/lib/bleumi_pay_sdk_ruby/configuration.rb +6 -3
  22. data/lib/bleumi_pay_sdk_ruby/models/{wallet_address.rb → algorand_wallet_address.rb} +18 -9
  23. data/lib/bleumi_pay_sdk_ruby/models/algorand_wallet_inputs.rb +247 -0
  24. data/lib/bleumi_pay_sdk_ruby/models/checkout_token.rb +19 -4
  25. data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_request.rb +2 -1
  26. data/lib/bleumi_pay_sdk_ruby/models/ethereum_wallet_address.rb +221 -0
  27. data/lib/bleumi_pay_sdk_ruby/models/ethereum_wallet_inputs.rb +247 -0
  28. data/lib/bleumi_pay_sdk_ruby/models/payment_addresses.rb +2 -2
  29. data/lib/bleumi_pay_sdk_ruby/version.rb +1 -1
  30. data/po_create.rb +39 -0
  31. data/po_list.rb +23 -0
  32. data/py_create.rb +2 -2
  33. data/py_get.rb +18 -0
  34. data/py_getop.rb +19 -0
  35. data/py_list.rb +24 -0
  36. data/py_listops.rb +21 -0
  37. data/py_refund.rb +33 -0
  38. data/py_settle.rb +32 -0
  39. data/spec/api/hosted_checkouts_api_spec.rb +1 -1
  40. data/spec/api/payments_api_spec.rb +7 -6
  41. data/spec/models/algorand_wallet_address_spec.rb +47 -0
  42. data/spec/models/{network_balance_spec.rb → algorand_wallet_inputs_spec.rb} +14 -26
  43. data/spec/models/checkout_token_spec.rb +13 -1
  44. data/spec/models/create_checkout_url_request_spec.rb +6 -0
  45. data/spec/models/create_payment_request_spec.rb +6 -0
  46. data/spec/models/ethereum_wallet_address_spec.rb +47 -0
  47. data/spec/models/ethereum_wallet_inputs_spec.rb +65 -0
  48. data/spec/models/payment_addresses_spec.rb +6 -0
  49. data/spec/models/payment_balances_spec.rb +6 -0
  50. data/spec/models/payout_spec.rb +6 -0
  51. metadata +33 -15
  52. data/docs/WalletAddress.md +0 -15
  53. data/spec/models/eth_address_spec.rb +0 -41
  54. data/spec/models/token_spec.rb +0 -41
  55. data/spec/models/wallet_address_spec.rb +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df66597183308a5e8db2403cc46d9b99e3cd6c7ee4c152559bec829be7e03f12
4
- data.tar.gz: 5dee66c56de52ff9314a3e8d5fcabd03b2284a7dcc1241ae6399895e5302d8ff
3
+ metadata.gz: a130b844b8afd57daa2d4cab953718159121e15af04703f076f09f85f15b8ec9
4
+ data.tar.gz: 406b2d6fb0e218b434f78258d21dd67ae893bb106486c16db0a0620ac7288331
5
5
  SHA512:
6
- metadata.gz: 800fc069330aabb76b0295f2f278da76e573b780263637566fe6ed2f388bf8217a611818647400307fcaca948f68d34fdf8e52cedd54bc2648d570626832bc81
7
- data.tar.gz: 2a1ca5c7dbe3281fc55308ed0041fe5c18e35996319fb86c94be84a4b22e5891592562caf6402783758225a837c8078bba7f69a8ba4c8261b1992d2a294419d9
6
+ metadata.gz: 0260247ea75cc4c0c81e25fcd13688efa39dd0e03acf47a7d18bc75d7209b77de42be9669f1540865f884d8033da70429de5c4d9d5fba1bfed5d1ce5eec1f856
7
+ data.tar.gz: 892cb1eda0a02dc15c63919cf19d40c02244a7a542c3e3117e802be820e64ed2b83cd6a3147d095647eee92cd1c1d6ae995e94edc8fef90b2b69d815d803ca7b
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.0.0'
6
+ gem 'rake', '~> 12.3.3'
7
7
  gem 'pry-byebug'
8
8
  gem 'rubocop', '~> 0.66.0'
9
9
  end
@@ -3,12 +3,12 @@
3
3
  =begin
4
4
  #Bleumi Pay REST API
5
5
 
6
- #A simple and powerful REST API to integrate Algorand, Ethereum, ERC-20 and xDai payments and/or payouts into your business or application
6
+ #A simple and powerful REST API to integrate Algorand, Ethereum, ERC-20 and xDai payments and/or payouts into your business
7
7
 
8
8
  The version of the OpenAPI document: 1.0.0
9
9
  Contact: info@bleumi.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.2.2
11
+ OpenAPI Generator version: 4.2.3
12
12
 
13
13
  =end
14
14
 
@@ -22,8 +22,8 @@ Gem::Specification.new do |s|
22
22
  s.authors = ["Bleumi"]
23
23
  s.email = ["info@bleumi.com"]
24
24
  s.homepage = "https://pay.bleumi.com/"
25
- s.summary = "Bleumi Pay API Ruby Gem"
26
- s.description = "A simple and powerful REST API to integrate Algorand, Ethereum, ERC-20 and xDai payments into your business or application"
25
+ s.summary = "The Bleumi Pay SDK is a one-stop shop to help you integrate Algorand, Ethereum, ERC-20 and xDai payments and/or payouts into your business."
26
+ s.description = "bleumi_pay_sdk_ruby is a Ruby library that provides an interface between your Ruby application and Bleumi Pay API."
27
27
  s.license = "MIT"
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
@@ -0,0 +1,24 @@
1
+ # BleumiPay::AlgorandWalletAddress
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **addr** | **String** | Wallet address for the payment in the network |
8
+ **inputs** | [**AlgorandWalletInputs**](AlgorandWalletInputs.md) | Inputs used for the wallet creation |
9
+
10
+
11
+ ## Example
12
+
13
+ ```json
14
+ {
15
+ "addr": "BEGKKXKFVAIU2PJK274A6GJDQK7J323RLEPMRRFKSDARTX2LFYR6S6VNLM",
16
+ "inputs": {
17
+ "buyer": "W5XU4IWCTVBTYXSYIGJYXEPXH2O5S6RPHLF4JK25NEPYT3RACD4Z3EBS4A",
18
+ "merchant": "CQRMTAHZJA3SIEOTEMZXCAIZKUWE2CCLBCFYQI4NINU43IOTEWT4LOT4IY",
19
+ "salt": "dbc9d66dca9185c04c8fb6dc201db8f572ICevWSmBwaIL+TZExKWDigc4PDAQwy125SrvxoMHoWHNbS79Dp+w==",
20
+ "gas": "CQRMTAHZJA3SIEOTEMZXCAIZKUWE2CCLBCFYQI4NINU43IOTEWT4LOT4IY",
21
+ "programBytes": "ASYGIBQiyYD5SDckEdMjM3EBGVUsTQhLCIuII41Dac2h0yWnILdvTiLCnUM8XlhBk4uR9z6d2XovOsvEq11pH4nuIBD5IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3BheQVheGZlciBdtOnkjuxx1Dec/b84B7gMkevLMHGQmt2Q5eDcnAU/KzEHKBIxBykSETEJKhIxCSgSMQkpEhExCSgSEREQMQ8rEhAxFCgSMRQpEhExFSoSMRUoEjEVKRIRERAxDycEEhARMQUBJwUSEDEUMQASEQ=="
22
+ }
23
+ }
24
+ ```
@@ -0,0 +1,23 @@
1
+ # BleumiPay::AlgorandWalletInputs
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **buyer** | **String** | Buyer Address |
8
+ **merchant** | **String** | Merchant Address |
9
+ **salt** | **String** | Salt |
10
+ **gas** | **String** | Gas account Address |
11
+ **program_bytes** | **String** | Program Bytes |
12
+
13
+ ## Example
14
+
15
+ ```json
16
+ {
17
+ "buyer": "W5XU4IWCTVBTYXSYIGJYXEPXH2O5S6RPHLF4JK25NEPYT3RACD4Z3EBS4A",
18
+ "merchant": "CQRMTAHZJA3SIEOTEMZXCAIZKUWE2CCLBCFYQI4NINU43IOTEWT4LOT4IY",
19
+ "salt": "dbc9d66dca9185c04c8fb6dc201db8f572ICevWSmBwaIL+TZExKWDigc4PDAQwy125SrvxoMHoWHNbS79Dp+w==",
20
+ "gas": "CQRMTAHZJA3SIEOTEMZXCAIZKUWE2CCLBCFYQI4NINU43IOTEWT4LOT4IY",
21
+ "programBytes": "ASYGIBQiyYD5SDckEdMjM3EBGVUsTQhLCIuII41Dac2h0yWnILdvTiLCnUM8XlhBk4uR9z6d2XovOsvEq11pH4nuIBD5IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3BheQVheGZlciBdtOnkjuxx1Dec/b84B7gMkevLMHGQmt2Q5eDcnAU/KzEHKBIxBykSETEJKhIxCSgSMQkpEhExCSgSEREQMQ8rEhAxFCgSMRQpEhExFSoSMRUoEjEVKRIRERAxDycEEhARMQUBJwUSEDEUMQASEQ=="
22
+ }
23
+ ```
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **addr** | **String** | The address of the token |
10
10
  **name** | **String** | Name of the token |
11
11
  **symbol** | **String** | Symbol of the token |
12
+ **currency** | **string** | Currency of the token |
12
13
  **decimals** | **Integer** | Token decimal places |
13
14
 
14
15
 
@@ -21,6 +22,7 @@ Name | Type | Description | Notes
21
22
  "transferAddress": "0xd15bdd17175825742a5904b21008dd3a019a060e",
22
23
  "name": "USD p18",
23
24
  "symbol": "USD18",
25
+ "currency": "USD",
24
26
  "decimals": 18
25
27
  }
26
28
  ```
@@ -0,0 +1,23 @@
1
+ # BleumiPay::EthereumWalletAddress
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **addr** | **String** | Wallet address for the payment in the network |
8
+ **inputs** | [**EthereumWalletInputs**](EthereumWalletInputs.md) | Inputs used for the wallet creation |
9
+
10
+ ## Example
11
+
12
+ ```json
13
+ {
14
+ "addr": "0xbe7b6dd3a81b9ae6b27b9a4690af39690095c791",
15
+ "inputs": {
16
+ "buyer": "0x713883bf69b786f0a7ab6e2248a70c50577f6b34",
17
+ "merchant": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41",
18
+ "salt": "0x5fca1a8d4c6e8786f915a57a9bdde2be9d643b93f366ffa713384fe75762e4aa",
19
+ "walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
20
+ "walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049"
21
+ }
22
+ }
23
+ ```
@@ -0,0 +1,23 @@
1
+ # BleumiPay::EthereumWalletInputs
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **buyer** | **String** | Buyer Address |
8
+ **merchant** | **String** | Merchant Address |
9
+ **salt** | **String** | Salt |
10
+ **wallet_library** | **String** | Wallet Library |
11
+ **wallet_proxy** | **String** | Wallet Proxy |
12
+
13
+ ## Example
14
+
15
+ ```json
16
+ {
17
+ "buyer": "0x713883bf69b786f0a7ab6e2248a70c50577f6b34",
18
+ "merchant": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41",
19
+ "salt": "0x5fca1a8d4c6e8786f915a57a9bdde2be9d643b93f366ffa713384fe75762e4aa",
20
+ "walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
21
+ "walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049"
22
+ }
23
+ ```
@@ -58,9 +58,9 @@ Field | Type | Description
58
58
  id | string | Unique identifier generated for this checkout URL
59
59
  url | string | URL for buyer to complete payment
60
60
 
61
- ### Format - hmac.input GET parameter passed in successUrl
61
+ Format - hmac_input GET parameter passed in successUrl
62
62
 
63
- The hmac.input GET parameter passed to successUrl contains payment parameters as a pipe ('|') separated string in the following order,
63
+ The hmac_input GET parameter passed to successUrl contains payment parameters as a pipe ('|') separated string in the following order,
64
64
  <ul style="font-weight: 500">
65
65
  <li><b>Chain</b> - Please refer documentation for <a href="https://pay.bleumi.com/docs/#supported-networks" target="_blank">Supported Networks</a> </li>
66
66
  <li><b>Wallet Address</b></li>
@@ -83,9 +83,7 @@ The hmac.input GET parameter passed to successUrl contains payment parameters as
83
83
  </li>
84
84
  </ul>
85
85
 
86
- <aside class="notice">
87
86
  Call [Validate a Checkout Payment](#validate_checkout_payment) method to validate the GET parameters passed in successUrl and then cross-check the payment parameters of hmac.input GET parameter with your database.
88
- </aside>
89
87
 
90
88
 
91
89
  ### 400 Errors
@@ -12,56 +12,79 @@ Name | Type | Description | Notes
12
12
  ```json
13
13
  {
14
14
  "results": [
15
- {
16
- "id": "2",
15
+ {
16
+ "id": "1412",
17
17
  "addresses": {
18
- "ethereum": {
19
- "goerli": {
20
- "addr": "0xbe02daaf993b29302c2e983b63eca1465c227245"
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"
21
28
  }
22
29
  }
23
30
  },
24
31
  "balances": {
25
- "ethereum": {
26
- "goerli": {
27
- "0x84df8548086ec9025e9c93297058bed706e90ddd": {
28
- "blockNum": "6831652",
29
- "token_balance": "0",
30
- "balance": "0",
31
- "token_decimals": 18
32
+ "algorand": {
33
+ "alg_testnet": {
34
+ "127647": {
35
+ "blockNum": "5388041",
36
+ "token_balance": "10000000",
37
+ "balance": "10",
38
+ "token_decimals": 6
39
+ },
40
+ "ALGO": {
41
+ "blockNum": "5388035",
42
+ "token_balance": "209000",
43
+ "balance": "0.209",
44
+ "token_decimals": 6
32
45
  }
33
46
  }
34
47
  }
35
48
  },
36
- "createdAt": 1574493797,
37
- "updatedAt": 1574502335
49
+ "createdAt": 1583731367,
50
+ "updatedAt": 1583731695
38
51
  },
39
52
  {
40
- "id": "1",
53
+ "id": "1411",
41
54
  "addresses": {
42
55
  "ethereum": {
43
- "xdai_testnet": {
44
- "addr": "0xbe1fa332f24ba568108ba55a25eccf93d882f54e"
45
- },
46
- "rinkeby": {
47
- "addr": "0xbea2f9d56c3cc7f2c7e17d294200dd75708eecd8"
56
+ "goerli": {
57
+ "inputs": {
58
+ "walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
59
+ "merchant": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41",
60
+ "salt": "0xc866b93db0433948f8a47ecb98aac4690999112f8da7ee31a2106cfdd789c2d0",
61
+ "walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049",
62
+ "buyer": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41"
63
+ },
64
+ "addr": "0xbe22e5c3347b25d16918a841fada2bd76a70d9ac"
48
65
  }
49
66
  }
50
67
  },
51
68
  "balances": {
52
69
  "ethereum": {
53
- "xdai_testnet": {
54
- "XDAIT": {
55
- "blockNum": "1698324",
56
- "token_balance": "1000000000000000",
57
- "balance": "1",
58
- "token_decimals": 15
70
+ "goerli": {
71
+ "0x84df8548086ec9025e9c93297058bed706e90ddd": {
72
+ "balance": "4",
73
+ "token_decimals": 18,
74
+ "blockNum": "2313213",
75
+ "token_balance": "4000000000000000000"
76
+ },
77
+ "0x115615dbd0f835344725146fa6343219315f15e5": {
78
+ "balance": "9",
79
+ "token_decimals": 6,
80
+ "blockNum": "2313213",
81
+ "token_balance": "9000000"
59
82
  }
60
83
  }
61
84
  }
62
85
  },
63
- "createdAt": 1574493617,
64
- "updatedAt": 1574494588
86
+ "createdAt": 1583730573,
87
+ "updatedAt": 1583730823
65
88
  }
66
89
  ]
67
90
  }
data/docs/Payment.md CHANGED
@@ -14,30 +14,52 @@ Name | Type | Description | Notes
14
14
 
15
15
  ```json
16
16
  {
17
- "id": "1",
17
+ "id": "1432",
18
18
  "addresses": {
19
19
  "ethereum": {
20
- "xdai_testnet": {
21
- "addr": "0xbe1fa332f24ba568108ba55a25eccf93d882f54e"
20
+ "goerli": {
21
+ "inputs": {
22
+ "walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
23
+ "merchant": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41",
24
+ "salt": "0xa497eadc72a5ca6af3ade21d8cdf5e76d15a08e5c2097095b7079a959e5a9be7",
25
+ "walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049",
26
+ "buyer": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41"
27
+ },
28
+ "addr": "0xbea9ba68eb642c21b1966310a33d0dbfa7f61ade"
22
29
  },
23
- "rinkeby": {
24
- "addr": "0xbea2f9d56c3cc7f2c7e17d294200dd75708eecd8"
30
+ "xdai_testnet": {
31
+ "inputs": {
32
+ "walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049",
33
+ "buyer": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41",
34
+ "walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
35
+ "merchant": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41",
36
+ "salt": "0x870a006007a88ad69c1ce6561b13e4a22f0cd64596f2a2671f5860c63d353ea6"
37
+ },
38
+ "addr": "0xbe537259a1af5d5c649351ddae0f6bdf69adb1fe"
25
39
  }
26
40
  }
27
41
  },
28
42
  "balances": {
29
43
  "ethereum": {
44
+ "goerli": {
45
+ "0x115615dbd0f835344725146fa6343219315f15e5": {
46
+ "balance": "0",
47
+ "token_decimals": 6,
48
+ "blockNum": "2314477",
49
+ "token_balance": "0"
50
+ }
51
+ },
30
52
  "xdai_testnet": {
31
53
  "XDAIT": {
32
- "balance": "1",
33
54
  "token_decimals": 15,
34
- "blockNum": "1698324",
35
- "token_balance": "1000000000000000"
55
+ "blockNum": "2314454",
56
+ "token_balance": "5000000000000000",
57
+ "balance": "5"
36
58
  }
37
59
  }
38
60
  }
39
61
  },
40
- "createdAt": 1574493617,
41
- "updatedAt": 1574494588
62
+ "createdAt": 1583748155,
63
+ "updatedAt": 1583748766
42
64
  }
43
65
  ```
@@ -4,20 +4,36 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **ethereum** | [**Hash&lt;String, WalletAddress&gt;**](WalletAddress.md) | A dictionary which gives the address of the wallet generated for each Ethereum network |
8
- **algorand** | [**Hash&lt;String, WalletAddress&gt;**](WalletAddress.md) | A dictionary which gives the address of the wallet generated for each Algorand network |
7
+ **ethereum** | [**Hash&lt;String, EthereumWalletAddress&gt;**](EthereumWalletAddress.md) | A dictionary which gives the address of the wallet generated for each Ethereum network |
8
+ **algorand** | [**Hash&lt;String, AlgorandWalletAddress&gt;**](AlgorandWalletAddress.md) | A dictionary which gives the address of the wallet generated for each Algorand network |
9
9
 
10
10
  ## Example
11
11
 
12
12
  ```json
13
13
  {
14
14
  "ethereum": {
15
- "xdai_testnet": {
16
- "addr": "0xbe1fa332f24ba568108ba55a25eccf93d882f54e"
17
- },
18
- "rinkeby": {
19
- "addr": "0xbea2f9d56c3cc7f2c7e17d294200dd75708eecd8"
15
+ "goerli": {
16
+ "addr": "0xbe7b6dd3a81b9ae6b27b9a4690af39690095c791",
17
+ "inputs": {
18
+ "buyer": "0x713883bf69b786f0a7ab6e2248a70c50577f6b34",
19
+ "walletLibrary": "0xb33893fdf59b634653fcbed27b5d38d86710fc40",
20
+ "merchant": "0x5db2d6542d55b2aec1f10d0c0df3b0169bf41e41",
21
+ "salt": "0x5fca1a8d4c6e8786f915a57a9bdde2be9d643b93f366ffa713384fe75762e4aa",
22
+ "walletProxy": "0xfaac6b338f79cfd8a53dfec95263f12ef046a049"
20
23
  }
24
+ }
25
+ },
26
+ "algorand": {
27
+ "alg_testnet": {
28
+ "addr": "BEGKKXKFVAIU2PJK274A6GJDQK7J323RLEPMRRFKSDARTX2LFYR6S6VNLM",
29
+ "inputs": {
30
+ "merchant": "CQRMTAHZJA3SIEOTEMZXCAIZKUWE2CCLBCFYQI4NINU43IOTEWT4LOT4IY",
31
+ "salt": "dbc9d66dca9185c04c8fb6dc201db8f572ICevWSmBwaIL+TZExKWDigc4PDAQwy125SrvxoMHoWHNbS79Dp+w==",
32
+ "gas": "CQRMTAHZJA3SIEOTEMZXCAIZKUWE2CCLBCFYQI4NINU43IOTEWT4LOT4IY",
33
+ "programBytes": "ASYGIBQiyYD5SDckEdMjM3EBGVUsTQhLCIuII41Dac2h0yWnILdvTiLCnUM8XlhBk4uR9z6d2XovOsvEq11pH4nuIBD5IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3BheQVheGZlciBdtOnkjuxx1Dec/b84B7gMkevLMHGQmt2Q5eDcnAU/KzEHKBIxBykSETEJKhIxCSgSMQkpEhExCSgSEREQMQ8rEhAxFCgSMRQpEhExFSoSMRUoEjEVKRIRERAxDycEEhARMQUBJwUSEDEUMQASEQ==",
34
+ "buyer": "W5XU4IWCTVBTYXSYIGJYXEPXH2O5S6RPHLF4JK25NEPYT3RACD4Z3EBS4A"
35
+ }
36
+ }
21
37
  }
22
- }
38
+ }
23
39
  ```
@@ -12,13 +12,21 @@ Name | Type | Description | Notes
12
12
  ```json
13
13
  {
14
14
  "ethereum": {
15
- "xdai_testnet": {
16
- "XDAIT": {
17
- "balance": "1",
18
- "token_decimals": 15,
19
- "blockNum": "1698324",
20
- "token_balance": "1000000000000000"
21
- }
15
+ "goerli": {
16
+ "0x84df8548086ec9025e9c93297058bed706e90ddd":
17
+ {
18
+ "balance": "4",
19
+ "token_decimals": 18,
20
+ "blockNum": "2313213",
21
+ "token_balance": "4000000000000000000"
22
+ },
23
+ "0x115615dbd0f835344725146fa6343219315f15e5":
24
+ {
25
+ "balance": "9",
26
+ "token_decimals": 6,
27
+ "blockNum": "2313213",
28
+ "token_balance": "9000000"
29
+ }
22
30
  }
23
31
  }
24
32
  }
data/docs/PaymentsApi.md CHANGED
@@ -52,6 +52,9 @@ Name | Type | Description | Notes
52
52
  Field | Type | Description
53
53
  ----- | ----- | -----
54
54
  addr | string | Wallet address
55
+ inputs | dictionary | A dictionary containing the network specific details used to create the wallet
56
+
57
+ **Note:** Bleumi recommends each merchant to keep a copy of the `inputs` map to ensure access to wallet funds at all times.
55
58
 
56
59
  ### 400 Errors
57
60