bleumi_pay_sdk_ruby 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +61 -43
  3. data/bleumi_pay_sdk_ruby.gemspec +2 -3
  4. data/docs/BadRequest.md +1 -0
  5. data/docs/Chain.md +11 -0
  6. data/docs/CheckoutToken.md +23 -0
  7. data/docs/CreateCheckoutUrlRequest.md +30 -0
  8. data/docs/CreateCheckoutUrlResponse.md +17 -0
  9. data/docs/CreatePaymentRequest.md +19 -0
  10. data/docs/CreatePaymentResponse.md +15 -0
  11. data/docs/CreatePayoutRequest.md +28 -0
  12. data/docs/CreatePayoutResponse.md +15 -0
  13. data/docs/EthAddress.md +6 -1
  14. data/docs/HostedCheckoutsApi.md +190 -0
  15. data/docs/NetworkBalance.md +29 -0
  16. data/docs/PaginatedPaymentOperations.md +29 -0
  17. data/docs/PaginatedPayments.md +68 -0
  18. data/docs/PaginatedPayoutItems.md +59 -0
  19. data/docs/Payment.md +44 -0
  20. data/docs/PaymentAddresses.md +22 -0
  21. data/docs/PaymentBalances.md +24 -0
  22. data/docs/PaymentOperation.md +46 -0
  23. data/docs/PaymentOperationInputs.md +32 -0
  24. data/docs/PaymentOperationResponse.md +15 -0
  25. data/docs/PaymentRefundRequest.md +16 -0
  26. data/docs/PaymentSettleRequest.md +17 -0
  27. data/docs/PaymentsApi.md +426 -0
  28. data/docs/Payout.md +17 -0
  29. data/docs/PayoutItem.md +39 -0
  30. data/docs/PayoutItemInputs.md +28 -0
  31. data/docs/PayoutsApi.md +137 -0
  32. data/docs/Token.md +15 -0
  33. data/docs/ValidateCheckoutRequest.md +21 -0
  34. data/docs/ValidateCheckoutResponse.md +15 -0
  35. data/docs/WalletAddress.md +14 -0
  36. data/docs/WalletBalance.md +14 -4
  37. data/lib/bleumi_pay_sdk_ruby.rb +32 -15
  38. data/lib/bleumi_pay_sdk_ruby/api/hosted_checkouts_api.rb +200 -0
  39. data/lib/bleumi_pay_sdk_ruby/api/{erc20_payments_api.rb → payments_api.rb} +130 -124
  40. data/lib/bleumi_pay_sdk_ruby/api/payouts_api.rb +157 -0
  41. data/lib/bleumi_pay_sdk_ruby/api_client.rb +2 -2
  42. data/lib/bleumi_pay_sdk_ruby/api_error.rb +2 -2
  43. data/lib/bleumi_pay_sdk_ruby/configuration.rb +2 -2
  44. data/lib/bleumi_pay_sdk_ruby/models/bad_request.rb +13 -3
  45. data/lib/bleumi_pay_sdk_ruby/models/{eth_network.rb → chain.rb} +7 -5
  46. data/lib/bleumi_pay_sdk_ruby/models/checkout_token.rb +272 -0
  47. data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_request.rb +299 -0
  48. data/lib/bleumi_pay_sdk_ruby/models/create_checkout_url_response.rb +227 -0
  49. data/lib/bleumi_pay_sdk_ruby/models/{wallet_create_input.rb → create_payment_request.rb} +17 -7
  50. data/lib/bleumi_pay_sdk_ruby/models/{wallet_create_output.rb → create_payment_response.rb} +18 -22
  51. data/lib/bleumi_pay_sdk_ruby/models/create_payout_request.rb +243 -0
  52. data/lib/bleumi_pay_sdk_ruby/models/create_payout_response.rb +212 -0
  53. data/lib/bleumi_pay_sdk_ruby/models/eth_address.rb +2 -2
  54. data/lib/bleumi_pay_sdk_ruby/models/network_balance.rb +274 -0
  55. data/lib/bleumi_pay_sdk_ruby/models/paginated_payment_operations.rb +224 -0
  56. data/lib/bleumi_pay_sdk_ruby/models/{paginated_wallet_operations.rb → paginated_payments.rb} +18 -8
  57. data/lib/bleumi_pay_sdk_ruby/models/{paginated_wallets.rb → paginated_payout_items.rb} +18 -8
  58. data/lib/bleumi_pay_sdk_ruby/models/{wallet.rb → payment.rb} +30 -53
  59. data/lib/bleumi_pay_sdk_ruby/models/payment_addresses.rb +209 -0
  60. data/lib/bleumi_pay_sdk_ruby/models/payment_balances.rb +207 -0
  61. data/lib/bleumi_pay_sdk_ruby/models/{wallet_operation.rb → payment_operation.rb} +42 -17
  62. data/lib/bleumi_pay_sdk_ruby/models/{wallet_operation_inputs.rb → payment_operation_inputs.rb} +37 -11
  63. data/lib/bleumi_pay_sdk_ruby/models/{wallet_operation_output.rb → payment_operation_response.rb} +17 -7
  64. data/lib/bleumi_pay_sdk_ruby/models/{wallet_refund_operation_input.rb → payment_refund_request.rb} +17 -7
  65. data/lib/bleumi_pay_sdk_ruby/models/{wallet_settle_operation_input.rb → payment_settle_request.rb} +17 -7
  66. data/lib/bleumi_pay_sdk_ruby/models/payout.rb +227 -0
  67. data/lib/bleumi_pay_sdk_ruby/models/payout_item.rb +286 -0
  68. data/lib/bleumi_pay_sdk_ruby/models/payout_item_inputs.rb +244 -0
  69. data/lib/bleumi_pay_sdk_ruby/models/token.rb +214 -0
  70. data/lib/bleumi_pay_sdk_ruby/models/{wallet_inputs.rb → validate_checkout_request.rb} +57 -62
  71. data/lib/bleumi_pay_sdk_ruby/models/validate_checkout_response.rb +212 -0
  72. data/lib/bleumi_pay_sdk_ruby/models/wallet_address.rb +212 -0
  73. data/lib/bleumi_pay_sdk_ruby/models/wallet_balance.rb +17 -7
  74. data/lib/bleumi_pay_sdk_ruby/version.rb +3 -3
  75. data/spec/api/hosted_checkouts_api_spec.rb +67 -0
  76. data/spec/api/payments_api_spec.rb +122 -0
  77. data/spec/api/payouts_api_spec.rb +61 -0
  78. data/spec/api_client_spec.rb +226 -0
  79. data/spec/configuration_spec.rb +42 -0
  80. data/spec/models/bad_request_spec.rb +47 -0
  81. data/spec/models/chain_spec.rb +35 -0
  82. data/spec/models/checkout_token_spec.rb +65 -0
  83. data/spec/models/create_checkout_url_request_spec.rb +83 -0
  84. data/spec/models/create_checkout_url_response_spec.rb +47 -0
  85. data/spec/models/create_payment_request_spec.rb +53 -0
  86. data/spec/models/create_payment_response_spec.rb +41 -0
  87. data/spec/models/create_payout_request_spec.rb +53 -0
  88. data/spec/models/create_payout_response_spec.rb +41 -0
  89. data/spec/models/eth_address_spec.rb +41 -0
  90. data/spec/models/network_balance_spec.rb +77 -0
  91. data/spec/models/paginated_payment_operations_spec.rb +47 -0
  92. data/spec/models/paginated_payments_spec.rb +47 -0
  93. data/spec/models/paginated_payout_items_spec.rb +47 -0
  94. data/spec/models/payment_addresses_spec.rb +41 -0
  95. data/spec/models/payment_balances_spec.rb +41 -0
  96. data/spec/models/payment_operation_inputs_spec.rb +65 -0
  97. data/spec/models/payment_operation_response_spec.rb +41 -0
  98. data/spec/models/payment_operation_spec.rb +71 -0
  99. data/spec/models/payment_refund_request_spec.rb +41 -0
  100. data/spec/models/payment_settle_request_spec.rb +47 -0
  101. data/spec/models/payment_spec.rb +65 -0
  102. data/spec/models/payout_item_inputs_spec.rb +53 -0
  103. data/spec/models/payout_item_spec.rb +71 -0
  104. data/spec/models/payout_spec.rb +47 -0
  105. data/spec/models/token_spec.rb +41 -0
  106. data/spec/models/validate_checkout_request_spec.rb +59 -0
  107. data/spec/models/validate_checkout_response_spec.rb +41 -0
  108. data/spec/models/wallet_address_spec.rb +41 -0
  109. data/spec/models/wallet_balance_spec.rb +59 -0
  110. data/spec/spec_helper.rb +111 -0
  111. metadata +149 -45
  112. data/docs/Erc20PaymentsApi.md +0 -334
  113. data/docs/EthNetwork.md +0 -9
  114. data/docs/PaginatedWalletOperations.md +0 -8
  115. data/docs/PaginatedWallets.md +0 -8
  116. data/docs/Wallet.md +0 -13
  117. data/docs/WalletCreateInput.md +0 -9
  118. data/docs/WalletCreateOutput.md +0 -10
  119. data/docs/WalletInputs.md +0 -11
  120. data/docs/WalletOperation.md +0 -11
  121. data/docs/WalletOperationInputs.md +0 -10
  122. data/docs/WalletOperationOutput.md +0 -8
  123. data/docs/WalletRefundOperationInput.md +0 -7
  124. data/docs/WalletSettleOperationInput.md +0 -8
@@ -1,334 +0,0 @@
1
- # BleumiPay::Erc20PaymentsApi
2
-
3
- ## generate_wallet
4
-
5
- > WalletCreateOutput generate_wallet(wallet_create_input, opts)
6
-
7
- Generate an unique wallet address to accept payments for an ERC-20 token from a buyer.
8
-
9
- ### Example
10
-
11
- ```ruby
12
- # load the gem
13
- require 'bleumi_pay_sdk_ruby'
14
- # Setup authorization
15
- BleumiPay.configure do |config|
16
- # Configure API key authorization: ApiKeyAuth
17
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
18
- end
19
-
20
- api_instance = BleumiPay::Erc20PaymentsApi.new
21
- wallet_create_input = BleumiPay::WalletCreateInput.new # WalletCreateInput |
22
- opts = {
23
- chain: BleumiPay::EthNetwork::ROPSTEN # EthNetwork | Ethereum network in which wallet is to be created.
24
- }
25
-
26
- buyer_address = BleumiPay::EthAddress.new('<BUYER_ADDR>') # Replace <BUYER_ADDR> with the Buyer Address
27
- transfer_address = BleumiPay::EthAddress.new('<MERCHANT_ADDR>') # Replace <MERCHANT_ADDR> with the Merchant's Enthereum Network Address
28
-
29
- wallet_create_input.id = '<ID>' # String | Unique ID identifying the wallet in your system
30
- wallet_create_input.buyer_address = buyer_address
31
- wallet_create_input.transfer_address = transfer_address
32
-
33
- begin
34
- #Generate an unique wallet address to accept payments for an ERC-20 token from a buyer
35
- result = api_instance.generate_wallet(wallet_create_input, opts)
36
- p result
37
- rescue BleumiPay::ApiError => e
38
- puts "Exception when calling Erc20PaymentsApi->generate_wallet: #{e}"
39
- end
40
- ```
41
-
42
- ### Parameters
43
-
44
-
45
- Name | Type | Description | Notes
46
- ------------- | ------------- | ------------- | -------------
47
- **wallet_create_input** | [**WalletCreateInput**](WalletCreateInput.md)| Specify the parameters for the wallet generation. |
48
- **chain** | [**EthNetwork**](EthNetwork.md)| Ethereum network in which the wallet is to be created. Please refer to the [Supported Ethereum Networks](https://pay.bleumi.com/docs/#supported-ethereum-networks) |
49
-
50
- ### Return type
51
-
52
- [**WalletCreateOutput**](WalletCreateOutput.md)
53
-
54
- ## get_wallet
55
-
56
- > Wallet get_wallet(id)
57
-
58
- This method retrieves a wallet.
59
-
60
- ### Example
61
-
62
- ```ruby
63
- # load the gem
64
- require 'bleumi_pay_sdk_ruby'
65
- # setup authorization
66
- BleumiPay.configure do |config|
67
- # Configure API key authorization: ApiKeyAuth
68
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
69
- end
70
-
71
- api_instance = BleumiPay::Erc20PaymentsApi.new
72
- id = '<ID>' # String | The ID of the wallet to get the details
73
-
74
- begin
75
- #Return a specific wallet
76
- result = api_instance.get_wallet(id)
77
- p result
78
- rescue BleumiPay::ApiError => e
79
- puts "Exception when calling Erc20PaymentsApi->get_wallet: #{e}"
80
- end
81
- ```
82
-
83
- ### Parameters
84
-
85
-
86
- Name | Type | Description | Notes
87
- ------------- | ------------- | ------------- | -------------
88
- **id** | **String**| Unique ID identifying the wallet in your system |
89
-
90
- ### Return type
91
-
92
- [**Wallet**](Wallet.md)
93
-
94
-
95
- ## list_wallets
96
-
97
- > PaginatedWallets list_wallets(opts)
98
-
99
- This method retrieves a list of wallets.
100
-
101
- ### Pagination
102
-
103
- The list of wallets is returned as an array in the 'results' field. The list is restricted to a maximum of 100 wallets per page.
104
-
105
- If there are more than 100 wallets generated for an ethereum network, a cursor is returned in the 'nextToken' field. Passing this as the 'nextToken' query parameter will fetch the next page.
106
-
107
- When the value of 'nextToken' field is an empty string, there are no more wallets.
108
-
109
- ### Example
110
-
111
- ```ruby
112
- # load the gem
113
- require 'bleumi_pay_sdk_ruby'
114
- # setup authorization
115
- BleumiPay.configure do |config|
116
- # Configure API key authorization: ApiKeyAuth
117
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
118
- end
119
-
120
- api_instance = BleumiPay::Erc20PaymentsApi.new
121
- opts = {
122
- next_token: '', # String | Cursor to start results from
123
- sort_by: '<SORT_BY>', # String | Sort wallets by (optional) | Eg. "createdAt"
124
- start_at: '<START_TIMESTAMP>', # String | Get wallets from this timestamp (optional) | Eg. 1546300800 for 1-JAN-2019
125
- end_at: '' # String | Get wallets till this timestamp (optional)
126
- }
127
-
128
- begin
129
- #Returns a list of wallets
130
- result = api_instance.list_wallets(opts)
131
- p result
132
- rescue BleumiPay::ApiError => e
133
- puts "Exception when calling Erc20PaymentsApi->list_wallets: #{e}"
134
- end
135
- ```
136
-
137
- ### Parameters
138
-
139
-
140
- Name | Type | Description | Notes
141
- ------------- | ------------- | ------------- | -------------
142
- **next_token** | **String**| The token to fetch the next page, supply blank value to get the first page of wallet operations | [optional]
143
- **sort_by** | **String**| Sort wallets by | [optional] 'createdAt' - results will be sorted by created time in ascending order. 'updatedAt' - results will be sorted by last updated time in ascending order.
144
- **start_at** | **String**| Get wallets from this timestamp | [optional] Get wallets from this timestamp (UNIX). Will be compared to created or updated time based on the value of sortBy parameter.
145
- **end_at** | **String**| Get wallets till this timestamp | [optional] Get wallets till this timestamp (UNIX). Will be compared to created or updated time based on the value of sortBy parameter.
146
-
147
- ### Return type
148
-
149
- [**PaginatedWallets**](PaginatedWallets.md)
150
-
151
-
152
- ## settle_wallet
153
-
154
- > WalletOperationOutput settle_wallet(id, wallet_settle_operation_input)
155
-
156
- This method settles a specific amount of an ERC-20 token of a wallet to the transferAddress specified during [Generate Wallet](#generate_wallet). And remaining balance (if any) will be refunded to the buyerAddress specified during [Generate Wallet](#generate_wallet).
157
-
158
- ### Example
159
-
160
- ```ruby
161
- # load the gem
162
- require 'bleumi_pay_sdk_ruby'
163
- # setup authorization
164
- BleumiPay.configure do |config|
165
- # Configure API key authorization: ApiKeyAuth
166
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
167
- end
168
-
169
- api_instance = BleumiPay::Erc20PaymentsApi.new
170
- id = '<ID>' # String | Unique ID identifying this record in your system
171
- wallet_settle_operation_input = BleumiPay::WalletSettleOperationInput.new
172
- wallet_settle_operation_input.amount = '<AMT>' # String | Replace <AMT> with settle amount
173
- wallet_settle_operation_input.token = BleumiPay::EthAddress.new('<TOKEN_ADDR>') # String | Replace <TOKEN_ADDR> with ECR-20 token address
174
-
175
- begin
176
- #Settle a wallet, amount received will be transferred even if less than payment amount
177
- result = api_instance.settle_wallet(id, wallet_settle_operation_input)
178
- p result
179
- rescue BleumiPay::ApiError => e
180
- puts "Exception when calling Erc20PaymentsApi->settle_wallet: #{e}"
181
- end
182
- ```
183
-
184
- ### Parameters
185
-
186
-
187
- Name | Type | Description | Notes
188
- ------------- | ------------- | ------------- | -------------
189
- **id** | **String**| Unique identifier of the wallet (specified during [Generate Wallet](#generatewallet)) to settle
190
- **wallet_settle_operation_input** | [**WalletSettleOperationInput**](WalletSettleOperationInput.md)| Specify the token and amount to settle. |
191
-
192
- ### Return type
193
-
194
- [**WalletOperationOutput**](WalletOperationOutput.md)
195
-
196
- ## refund_wallet
197
-
198
- > WalletOperationOutput refund_wallet(id, wallet_refund_operation_input)
199
-
200
- This method refunds the balance of an ERC-20 token of a wallet to the buyerAddress specified during [Generate Wallet](#generate_wallet).
201
-
202
- ### Example
203
-
204
- ```ruby
205
- # load the gem
206
- require 'bleumi_pay_sdk_ruby'
207
- # setup authorization
208
- BleumiPay.configure do |config|
209
- # Configure API key authorization: ApiKeyAuth
210
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
211
- end
212
-
213
- api_instance = BleumiPay::Erc20PaymentsApi.new
214
- id = '<ID>' # String | Unique ID identifying this record in your system
215
- wallet_refund_operation_input = BleumiPay::WalletRefundOperationInput.new
216
- wallet_refund_operation_input.token = BleumiPay::EthAddress.new('<TOKEN_ADDR>') # String | Replace <TOKEN_ADDR> with ECR-20 token address
217
-
218
- begin
219
- #Refund wallet
220
- result = api_instance.refund_wallet(id, wallet_refund_operation_input)
221
- p result
222
- rescue BleumiPay::ApiError => e
223
- puts "Exception when calling Erc20PaymentsApi->refund_wallet: #{e}"
224
- end
225
- ```
226
-
227
- ### Parameters
228
-
229
-
230
- Name | Type | Description | Notes
231
- ------------- | ------------- | ------------- | -------------
232
- **id** | **String**| Unique identifier of the wallet (specified during [Generate Wallet](#generate_wallet)) to refund |
233
- **wallet_refund_operation_input** | [**WalletRefundOperationInput**](WalletRefundOperationInput.md)| Specify the token to refund. |
234
-
235
- ### Return type
236
-
237
- [**WalletOperationOutput**](WalletOperationOutput.md)
238
-
239
-
240
- ## get_wallet_operation
241
-
242
- > WalletOperation get_wallet_operation(id, txid)
243
-
244
- This method retrieves an operation of a wallet.
245
-
246
- ### Example
247
-
248
- ```ruby
249
- # load the gem
250
- require 'bleumi_pay_sdk_ruby'
251
- # setup authorization
252
- BleumiPay.configure do |config|
253
- # Configure API key authorization: ApiKeyAuth
254
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
255
- end
256
-
257
- api_instance = BleumiPay::Erc20PaymentsApi.new
258
- id = '<ID>' # String | Unique ID identifying the wallet in your system
259
- txid = '<TXID>' # String | ID of a specific operation of the wallet
260
-
261
- begin
262
- #Return a specific operation of the wallet
263
- result = api_instance.get_wallet_operation(id, txid)
264
- p result
265
- rescue BleumiPay::ApiError => e
266
- puts "Exception when calling Erc20PaymentsApi->get_wallet_operation: #{e}"
267
- end
268
- ```
269
-
270
- ### Parameters
271
-
272
-
273
- Name | Type | Description | Notes
274
- ------------- | ------------- | ------------- | -------------
275
- **id** | **String**| Unique identifier of the wallet (specified during [Generate Wallet](#generate_wallet)) |
276
- **txid** | **String**| Transaction ID of the operation (returned during [Refund Wallet](#refundwallet) / [Settle Wallet](#settlewallet)) to retrieve |
277
-
278
- ### Return type
279
-
280
- [**WalletOperation**](WalletOperation.md)
281
-
282
-
283
-
284
- ## list_wallet_operations
285
-
286
- > PaginatedWalletOperations list_wallet_operations(id, opts)
287
-
288
- This method retrieves all operations of a wallet.
289
-
290
- ### Pagination
291
-
292
- The list of operations is returned as an array in the 'results' field. The list is restricted to a maximum of 100 operations per page.
293
-
294
- If there are more than 100 operations for a wallet, a cursor is passed in the 'nextToken' field. Passing this as the 'nextToken' query parameter will fetch the next page.
295
-
296
- When the value of 'nextToken' field is an empty string, there are no more operations.
297
-
298
- ### Example
299
-
300
- ```ruby
301
- # load the gem
302
- require 'bleumi_pay_sdk_ruby'
303
- # setup authorization
304
- BleumiPay.configure do |config|
305
- # Configure API key authorization: ApiKeyAuth
306
- config.api_key['x-api-key'] = '<YOUR_API_KEY>'
307
- end
308
-
309
- api_instance = BleumiPay::Erc20PaymentsApi.new
310
- id = '<ID>' # String | Unique ID identifying the wallet in your system
311
- opts = {
312
- next_token: '' # String | Cursor to start results from
313
- }
314
-
315
- begin
316
- #Return the list of operations performed by the mechant on a specific wallet
317
- result = api_instance.list_wallet_operations(id, opts)
318
- p result
319
- rescue BleumiPay::ApiError => e
320
- puts "Exception when calling Erc20PaymentsApi->list_wallet_operations: #{e}"
321
- end
322
- ```
323
-
324
- ### Parameters
325
-
326
-
327
- Name | Type | Description | Notes
328
- ------------- | ------------- | ------------- | -------------
329
- **id** | **String**| Unique identifier of the wallet (specified during [Generate Wallet](#generate_wallet)) |
330
- **next_token** | **String**| The token to fetch the next page, supply blank value to get the first page of wallet operations | [optional]
331
-
332
- ### Return type
333
-
334
- [**PaginatedWalletOperations**](PaginatedWalletOperations.md)
data/docs/EthNetwork.md DELETED
@@ -1,9 +0,0 @@
1
- # BleumiPay::EthNetwork
2
-
3
- ## Enum
4
-
5
- * `BleumiPay::EthNetwork::MAINNET` (value: `"mainnet"`)
6
- * `BleumiPay::EthNetwork::ROPSTEN` (value: `"ropsten"`)
7
- * `BleumiPay::EthNetwork::GOERLI` (value: `"goerli"`)
8
- * `BleumiPay::EthNetwork::KOVAN` (value: `"kovan"`)
9
- * `BleumiPay::EthNetwork::RINKEBY` (value: `"rinkeby"`)
@@ -1,8 +0,0 @@
1
- # BleumiPay::PaginatedWalletOperations
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **results** | [**Array&lt;WalletOperation&gt;**](WalletOperation.md) | Array of Wallet Operations |
8
- **next_token** | **String** | Cursor to fetch next set of results. (if next set is available) |
@@ -1,8 +0,0 @@
1
- # BleumiPay::PaginatedWallets
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **results** | [**Array&lt;Wallet&gt;**](Wallet.md) | Array of Wallets |
8
- **next_token** | **String** | Cursor to fetch next page of results, empty if no more results |
data/docs/Wallet.md DELETED
@@ -1,13 +0,0 @@
1
- # BleumiPay::Wallet
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **String** | Unique ID identifying the wallet |
8
- **chain** | **String** | Ethereum network of the wallet. Please refer to the [Supported Ethereum Networks.](https://pay.bleumi.com/docs/#supported-ethereum-networks) |
9
- **addr** | **String** | Wallet address |
10
- **balances** | [**Hash&lt;String, WalletBalance&gt;**](WalletBalance.md) | A dictionary which gives the balance, token-digits and token-balance for each ERC-20 token in the wallet. |
11
- **inputs** | [**WalletInputs**](WalletInputs.md) | Parameters required to interact with the [Payment Processor](https://pay.bleumi.com/docs/#payment-processor-address) |
12
- **created_at** | **Integer** | The created UNIX timestamp of the wallet |
13
- **updated_at** | **Integer** | The last updated UNIX timestamp of the wallet |
@@ -1,9 +0,0 @@
1
- # BleumiPay::WalletCreateInput
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **String** | Unique identifier for this wallet |
8
- **buyer_address** | [**EthAddress**](EthAddress.md) | Ethereum address of buyer. Refund operations on this wallet will use this address. |
9
- **transfer_address** | [**EthAddress**](EthAddress.md) | The Ethereum network address of merchant. |
@@ -1,10 +0,0 @@
1
- # BleumiPay::WalletCreateOutput
2
-
3
- Confirmation of wallet generation.
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **chain** | [**EthNetwork**](EthNetwork.md) | Ethereum network in which wallet will be created. Please refer to the [Supported Ethereum Networks](https://pay.bleumi.com/docs/#supported-ethereum-networks) |
10
- **addr** | **String** | Wallet address |
data/docs/WalletInputs.md DELETED
@@ -1,11 +0,0 @@
1
- # BleumiPay::WalletInputs
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **buyer** | **String** | Address of the buyer |
8
- **merchant** | **String** | Address of the merchant |
9
- **wallet_library** | **String** | Wallet Library address |
10
- **wallet_proxy** | **String** | Wallet Proxy address |
11
- **salt** | **String** | Salt used to create the wallet |
@@ -1,11 +0,0 @@
1
- # BleumiPay::WalletOperation
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **String** | Unique ID of the wallet; specified when it was created by your system | [optional]
8
- **func_name** | **String** | Name of the function invoked on the [Payment Processor](https://pay.bleumi.com/docs/#payment-processor-address). Following are the functions available:<br/> - createAndSettleWallet<br/> - createAndRefundWallet |
9
- **status** | **Boolean** | <b>null</b> - operation in progress <br/> <b>true</b> - operation completed successfuly <br/> <b>false</b> - operation failed to process |
10
- **inputs** | [**WalletOperationInputs**](WalletOperationInputs.md) | The parameters used to interact with the [Payment Processor](https://pay.bleumi.com/docs/#payment-processor-address) on the ethereum network |
11
- **hash** | **String** | Transaction hash of operation submitted to the network. This field is blank when operation is in progress. |
@@ -1,10 +0,0 @@
1
- # BleumiPay::WalletOperationInputs
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **amount** | **String** | ERC-20 token amount to be settled incase of 'createAndSettleWallet' operation |
8
- **token** | **String** | ERC-20 token address |
9
- **token_amount** | **String** | ERC-20 token amount to be settled incase of 'createAndSettleWallet' operation (in Ethereum format) |
10
- **token_decimals** | **String** | ERC-20 token decimal places incase of 'createAndSettleWallet' operation|
@@ -1,8 +0,0 @@
1
- # BleumiPay::WalletOperationOutput
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **txid** | **String** | Unique identifier for the wallet operation transaction |
8
-