remitano 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.rubocop.yml +13 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +6 -0
  6. data/Gemfile.lock +127 -0
  7. data/LICENSE.txt +20 -0
  8. data/README.md +115 -0
  9. data/Rakefile +51 -0
  10. data/bin/remitano +20 -0
  11. data/lib/remitano.rb +2 -0
  12. data/lib/remitano/client.rb +98 -0
  13. data/lib/remitano/client/action_confirmations.rb +29 -0
  14. data/lib/remitano/client/coin_accounts.rb +9 -0
  15. data/lib/remitano/client/coin_collection.rb +18 -0
  16. data/lib/remitano/client/coin_withdrawals.rb +24 -0
  17. data/lib/remitano/client/collection.rb +29 -0
  18. data/lib/remitano/client/fiat_accounts.rb +9 -0
  19. data/lib/remitano/client/fiat_collection.rb +18 -0
  20. data/lib/remitano/client/helper.rb +14 -0
  21. data/lib/remitano/client/merchant_charges.rb +24 -0
  22. data/lib/remitano/client/merchant_withdrawals.rb +38 -0
  23. data/lib/remitano/client/net.rb +100 -0
  24. data/lib/remitano/client/offers.rb +21 -0
  25. data/lib/remitano/client/orders.rb +26 -0
  26. data/lib/remitano/client/public/offers.rb +18 -0
  27. data/lib/remitano/client/public/price_ladders.rb +7 -0
  28. data/lib/remitano/client/public/rates.rb +12 -0
  29. data/lib/remitano/client/trades.rb +37 -0
  30. data/lib/remitano/version.rb +3 -0
  31. data/remitano.gemspec +40 -0
  32. data/spec/client/merchant_charges_spec.rb +66 -0
  33. data/spec/client/merchant_withdrawals_spec.rb +111 -0
  34. data/spec/coin_accounts_spec.rb +11 -0
  35. data/spec/fiat_accounts_spec.rb +11 -0
  36. data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_create/invalid_params/raises_error.yml +51 -0
  37. data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_create/valid_params/returns_created_charge.yml +53 -0
  38. data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_get/object_exists/returns_charge_data.yml +48 -0
  39. data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_charges/_get/object_not_found/raises_error.yml +46 -0
  40. data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_create/invalid_params/raises_error.yml +52 -0
  41. data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_create/valid_params/auto_confirms_withdrawal_with_htop_and_returns_created_withdrawal.yml +296 -0
  42. data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_get/object_exists/returns_withdrawal_data.yml +48 -0
  43. data/spec/fixtures/vcr_cassettes/Remitano_Client_merchant_withdrawals/_get/object_not_found/raises_error.yml +46 -0
  44. data/spec/fixtures/vcr_cassettes/remitano/coin_accounts/me.yml +52 -0
  45. data/spec/fixtures/vcr_cassettes/remitano/fiat_accounts/me.yml +52 -0
  46. data/spec/fixtures/vcr_cassettes/remitano/my_offers/sell.yml +47 -0
  47. data/spec/fixtures/vcr_cassettes/remitano/offers/update.yml +94 -0
  48. data/spec/fixtures/vcr_cassettes/remitano/orders/cancel.yml +54 -0
  49. data/spec/fixtures/vcr_cassettes/remitano/orders/create.yml +54 -0
  50. data/spec/fixtures/vcr_cassettes/remitano/orders/open.yml +54 -0
  51. data/spec/fixtures/vcr_cassettes/remitano/price_ladders/sell.yml +48 -0
  52. data/spec/fixtures/vcr_cassettes/remitano/rates.yml +44 -0
  53. data/spec/fixtures/vcr_cassettes/remitano/trades/active.yml +46 -0
  54. data/spec/fixtures/vcr_cassettes/remitano/trades/completed.yml +46 -0
  55. data/spec/fixtures/vcr_cassettes/remitano/trades/release.yml +144 -0
  56. data/spec/offers_spec.rb +18 -0
  57. data/spec/orders_spec.rb +29 -0
  58. data/spec/public/price_ladders_spec.rb +11 -0
  59. data/spec/public/rates_spec.rb +10 -0
  60. data/spec/spec_helper.rb +25 -0
  61. data/spec/support/crendentials.rb +12 -0
  62. data/spec/support/request_usec.rb +5 -0
  63. data/spec/support/vcr.rb +22 -0
  64. data/spec/trades_spec.rb +39 -0
  65. metadata +329 -0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: REMITANO_SERVER/api/v1/merchant/merchant_withdrawal_requests
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"merchant_withdrawal_ref":"akh9r1h29e1","coin_currency":"xrp","coin_amount":10.99,"receiver_pay_fee":true,"cancelled_or_completed_callback_url":"http://sample.com/123/callback","coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD0","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"usec":0}'
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.2 (darwin18.6.0 x86_64) ruby/2.4.3p205
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Thu, 20 May 2021 07:56:18 GMT
20
+ Authorization:
21
+ - APIAuth REMITANO_KEY:Bw+Lsf952767vNETwDo+fr6J1Kw=
22
+ Content-Length:
23
+ - '323'
24
+ Host:
25
+ - localhost:3100
26
+ response:
27
+ status:
28
+ code: 422
29
+ message: Unprocessable Entity
30
+ headers:
31
+ Content-Type:
32
+ - application/json
33
+ Cache-Control:
34
+ - no-cache
35
+ Set-Cookie:
36
+ - _admin_session=85fbf03fd2cd242576e342c9e4ffeeeb; path=/; expires=Sun, 20 Jun
37
+ 2021 07:56:18 -0000; HttpOnly; SameSite=Lax
38
+ X-Request-Id:
39
+ - ec49ca03-519d-46c4-9b7d-4baaec83fe91
40
+ X-Runtime:
41
+ - '0.172929'
42
+ Vary:
43
+ - Origin
44
+ Content-Length:
45
+ - '83'
46
+ body:
47
+ encoding: UTF-8
48
+ string: '{"error":"Merchant withdrawal ref has already been taken, Coin address
49
+ is invalid"}'
50
+ http_version:
51
+ recorded_at: Thu, 20 May 2021 07:56:18 GMT
52
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,296 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: REMITANO_SERVER/api/v1/action_confirmations/29/confirm
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"token":"285110","usec":0}'
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.2 (darwin18.6.0 x86_64) ruby/2.4.3p205
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Thu, 20 May 2021 08:01:18 GMT
20
+ Authorization:
21
+ - APIAuth REMITANO_KEY:LHkinTzn0ceTUjLAqHUZsiLu3rY=
22
+ Content-Length:
23
+ - '27'
24
+ Host:
25
+ - localhost:3100
26
+ response:
27
+ status:
28
+ code: 201
29
+ message: Created
30
+ headers:
31
+ Content-Type:
32
+ - application/json
33
+ Etag:
34
+ - W/"6a24ce0fec82f4d0ee8c21aaf6c4044e"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ Set-Cookie:
38
+ - _admin_session=f3a58b419052144976e1cf0ecbadf788; path=/; expires=Sun, 20 Jun
39
+ 2021 08:01:24 -0000; HttpOnly; SameSite=Lax
40
+ X-Request-Id:
41
+ - 114f7ae8-3bbd-43d4-a4bc-ec5305fe0369
42
+ X-Runtime:
43
+ - '4.102672'
44
+ Vary:
45
+ - Origin
46
+ Content-Length:
47
+ - '641'
48
+ body:
49
+ encoding: UTF-8
50
+ string: '{"id":29,"status":"confirmed","actionable_type":"MerchantWithdrawalRequest","action":"confirm_by_action_confirmation!","via":"authenticator","status_explanation":"confirmed
51
+ with token 285110","actionable_id":14,"message":null,"is_action_confirmation":true,"actionable":{"id":14,"merchant_withdrawal_ref":"akh9r1h29e14","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":29,"otp_counter":29,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"created_at_timestamp":1621497678}}'
52
+ http_version:
53
+ recorded_at: Thu, 20 May 2021 08:01:24 GMT
54
+ - request:
55
+ method: post
56
+ uri: REMITANO_SERVER/api/v1/action_confirmations/31/confirm
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"token":"369819","usec":0}'
60
+ headers:
61
+ Accept:
62
+ - "*/*"
63
+ Accept-Encoding:
64
+ - gzip, deflate
65
+ User-Agent:
66
+ - rest-client/2.0.2 (darwin18.6.0 x86_64) ruby/2.4.3p205
67
+ Content-Type:
68
+ - application/json
69
+ Date:
70
+ - Sun, 23 May 2021 16:09:38 GMT
71
+ Authorization:
72
+ - APIAuth REMITANO_KEY:2M2bnlLPomohSx9cRR1MwvLFunI=
73
+ Content-Length:
74
+ - '27'
75
+ Host:
76
+ - localhost:3100
77
+ response:
78
+ status:
79
+ code: 201
80
+ message: Created
81
+ headers:
82
+ Content-Type:
83
+ - application/json
84
+ Etag:
85
+ - W/"7494711ee91011552574178edcf0f3a8"
86
+ Cache-Control:
87
+ - max-age=0, private, must-revalidate
88
+ Set-Cookie:
89
+ - _admin_session=9006016efaeeb2bd94a628a3777bf499; path=/; expires=Wed, 23 Jun
90
+ 2021 16:09:38 -0000; HttpOnly; SameSite=Lax
91
+ X-Request-Id:
92
+ - 6f811443-6a0b-4b86-becb-be016d520dd8
93
+ X-Runtime:
94
+ - '0.433159'
95
+ Vary:
96
+ - Origin
97
+ Content-Length:
98
+ - '716'
99
+ body:
100
+ encoding: UTF-8
101
+ string: '{"id":31,"status":"confirmed","actionable_type":"MerchantWithdrawalRequest","action":"confirm_by_action_confirmation!","via":"authenticator","status_explanation":"confirmed
102
+ with token 369819","actionable_id":15,"message":null,"is_action_confirmation":true,"actionable":{"id":15,"merchant_withdrawal_ref":"akh9r1h29e15","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback","created_at_timestamp":1621786177}}'
103
+ http_version:
104
+ recorded_at: Sun, 23 May 2021 16:09:38 GMT
105
+ - request:
106
+ method: get
107
+ uri: REMITANO_SERVER/api/v1/merchant/merchant_withdrawal_requests/15?usec=0
108
+ body:
109
+ encoding: US-ASCII
110
+ string: ''
111
+ headers:
112
+ Accept:
113
+ - "*/*"
114
+ Accept-Encoding:
115
+ - gzip, deflate
116
+ User-Agent:
117
+ - rest-client/2.0.2 (darwin18.6.0 x86_64) ruby/2.4.3p205
118
+ Content-Type:
119
+ - application/json
120
+ Date:
121
+ - Sun, 23 May 2021 16:09:38 GMT
122
+ Authorization:
123
+ - APIAuth REMITANO_KEY:tjSFfVrjAcrt2R9jUBjWNYL+OR8=
124
+ Host:
125
+ - localhost:3100
126
+ response:
127
+ status:
128
+ code: 200
129
+ message: OK
130
+ headers:
131
+ Content-Type:
132
+ - application/json
133
+ Etag:
134
+ - W/"ff471cd0aefd9753aa2f75eb19340b7e"
135
+ Cache-Control:
136
+ - max-age=0, private, must-revalidate
137
+ X-Request-Id:
138
+ - 945da3d6-5fd4-4232-8ee8-3a1bcbc47e4b
139
+ X-Runtime:
140
+ - '0.044942'
141
+ Vary:
142
+ - Origin
143
+ Content-Length:
144
+ - '446'
145
+ body:
146
+ encoding: UTF-8
147
+ string: '{"id":15,"merchant_withdrawal_ref":"akh9r1h29e15","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback","created_at_timestamp":1621786177}'
148
+ http_version:
149
+ recorded_at: Sun, 23 May 2021 16:09:38 GMT
150
+ - request:
151
+ method: post
152
+ uri: REMITANO_SERVER/api/v1/merchant/merchant_withdrawal_requests
153
+ body:
154
+ encoding: UTF-8
155
+ string: '{"merchant_withdrawal_ref":"akh9r1h29e16","coin_currency":"xrp","coin_amount":10.99,"receiver_pay_fee":true,"cancelled_or_completed_callback_url":"http://sample.com/123/callback","coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"usec":0}'
156
+ headers:
157
+ Accept:
158
+ - "*/*"
159
+ Accept-Encoding:
160
+ - gzip, deflate
161
+ User-Agent:
162
+ - rest-client/2.0.2 (darwin18.6.0 x86_64) ruby/2.4.3p205
163
+ Content-Type:
164
+ - application/json
165
+ Date:
166
+ - Sun, 23 May 2021 16:10:47 GMT
167
+ Authorization:
168
+ - APIAuth REMITANO_KEY:HIvYgAFYXmeK+6kaWoh9pQ7WdaE=
169
+ Content-Length:
170
+ - '323'
171
+ Host:
172
+ - localhost:3100
173
+ response:
174
+ status:
175
+ code: 201
176
+ message: Created
177
+ headers:
178
+ Content-Type:
179
+ - application/json
180
+ Etag:
181
+ - W/"818b20dc738c03f9a2b511ac67ee5830"
182
+ Cache-Control:
183
+ - max-age=0, private, must-revalidate
184
+ Set-Cookie:
185
+ - _admin_session=dd3bddc010fec8cd345130e8fd80d4b3; path=/; expires=Wed, 23 Jun
186
+ 2021 16:10:47 -0000; HttpOnly; SameSite=Lax
187
+ X-Request-Id:
188
+ - 3926dce7-2911-498e-920b-1ea443011a7e
189
+ X-Runtime:
190
+ - '0.085248'
191
+ Vary:
192
+ - Origin
193
+ Content-Length:
194
+ - '439'
195
+ body:
196
+ encoding: UTF-8
197
+ string: '{"id":16,"merchant_withdrawal_ref":"akh9r1h29e16","status":"pending","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":32,"otp_counter":32,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback","created_at_timestamp":1621786247}'
198
+ http_version:
199
+ recorded_at: Sun, 23 May 2021 16:10:47 GMT
200
+ - request:
201
+ method: post
202
+ uri: REMITANO_SERVER/api/v1/action_confirmations/32/confirm
203
+ body:
204
+ encoding: UTF-8
205
+ string: '{"token":"708369","usec":0}'
206
+ headers:
207
+ Accept:
208
+ - "*/*"
209
+ Accept-Encoding:
210
+ - gzip, deflate
211
+ User-Agent:
212
+ - rest-client/2.0.2 (darwin18.6.0 x86_64) ruby/2.4.3p205
213
+ Content-Type:
214
+ - application/json
215
+ Date:
216
+ - Sun, 23 May 2021 16:10:47 GMT
217
+ Authorization:
218
+ - APIAuth REMITANO_KEY:bMyPkFYFveTruxiL6A2cNcJlzc8=
219
+ Content-Length:
220
+ - '27'
221
+ Host:
222
+ - localhost:3100
223
+ response:
224
+ status:
225
+ code: 201
226
+ message: Created
227
+ headers:
228
+ Content-Type:
229
+ - application/json
230
+ Etag:
231
+ - W/"bbe5dc797e300af424590d51cd869bc8"
232
+ Cache-Control:
233
+ - max-age=0, private, must-revalidate
234
+ Set-Cookie:
235
+ - _admin_session=03358fc09fb1001abd185d9104834ba1; path=/; expires=Wed, 23 Jun
236
+ 2021 16:10:48 -0000; HttpOnly; SameSite=Lax
237
+ X-Request-Id:
238
+ - 217c90ec-d95a-4708-ac5f-9d7b7f11f3bb
239
+ X-Runtime:
240
+ - '0.269033'
241
+ Vary:
242
+ - Origin
243
+ Content-Length:
244
+ - '716'
245
+ body:
246
+ encoding: UTF-8
247
+ string: '{"id":32,"status":"confirmed","actionable_type":"MerchantWithdrawalRequest","action":"confirm_by_action_confirmation!","via":"authenticator","status_explanation":"confirmed
248
+ with token 708369","actionable_id":16,"message":null,"is_action_confirmation":true,"actionable":{"id":16,"merchant_withdrawal_ref":"akh9r1h29e16","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback","created_at_timestamp":1621786247}}'
249
+ http_version:
250
+ recorded_at: Sun, 23 May 2021 16:10:48 GMT
251
+ - request:
252
+ method: get
253
+ uri: REMITANO_SERVER/api/v1/merchant/merchant_withdrawal_requests/16?usec=0
254
+ body:
255
+ encoding: US-ASCII
256
+ string: ''
257
+ headers:
258
+ Accept:
259
+ - "*/*"
260
+ Accept-Encoding:
261
+ - gzip, deflate
262
+ User-Agent:
263
+ - rest-client/2.0.2 (darwin18.6.0 x86_64) ruby/2.4.3p205
264
+ Content-Type:
265
+ - application/json
266
+ Date:
267
+ - Sun, 23 May 2021 16:10:48 GMT
268
+ Authorization:
269
+ - APIAuth REMITANO_KEY:qE7lX+PE++UOuFs8X2QMLGj2Jes=
270
+ Host:
271
+ - localhost:3100
272
+ response:
273
+ status:
274
+ code: 200
275
+ message: OK
276
+ headers:
277
+ Content-Type:
278
+ - application/json
279
+ Etag:
280
+ - W/"e83a7b5627553a6cf7feef822f47daf0"
281
+ Cache-Control:
282
+ - max-age=0, private, must-revalidate
283
+ X-Request-Id:
284
+ - 5ae8c872-d175-480f-9278-ddb336c5de7f
285
+ X-Runtime:
286
+ - '0.049461'
287
+ Vary:
288
+ - Origin
289
+ Content-Length:
290
+ - '446'
291
+ body:
292
+ encoding: UTF-8
293
+ string: '{"id":16,"merchant_withdrawal_ref":"akh9r1h29e16","status":"processing","coin_amount":10.99,"coin_currency":"xrp","coin_fee":2.0e-05,"receiver_pay_fee":true,"action_confirmation_id":null,"otp_counter":null,"coin_address":"rLpumSZQNJ6Cve7hfQcdkG9rJbJhkSV8AD","destination_tag":1710676231,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://sample.com/123/callback","created_at_timestamp":1621786247}'
294
+ http_version:
295
+ recorded_at: Sun, 23 May 2021 16:10:48 GMT
296
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: REMITANO_SERVER/api/v1/merchant/merchant_withdrawal_requests/1?usec=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.2 (darwin18.6.0 x86_64) ruby/2.4.3p205
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Sun, 23 May 2021 16:05:13 GMT
20
+ Authorization:
21
+ - APIAuth REMITANO_KEY:a3RSQXo+aJaUEGzIYuwPmFD0Uy0=
22
+ Host:
23
+ - localhost:3100
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Content-Type:
30
+ - application/json
31
+ Etag:
32
+ - W/"0cd3051b89e28c52971b774e340b5e9b"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - 3c26b300-ef46-499d-9d31-00e38e5663e2
37
+ X-Runtime:
38
+ - '0.308814'
39
+ Vary:
40
+ - Origin
41
+ Content-Length:
42
+ - '417'
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"id":1,"merchant_withdrawal_ref":"mwr2","status":"cancelled","coin_amount":100.0,"coin_currency":"usdt","coin_fee":0.0,"receiver_pay_fee":null,"action_confirmation_id":null,"otp_counter":null,"coin_address":"3BDS42pbFgxDn9uMSCBiWE5BcWFBVPPCAA","destination_tag":null,"remitano_username":null,"remitano_phone_number":null,"cancelled_or_completed_callback_url":"http://dummy.com/111","created_at_timestamp":1621401962}'
46
+ http_version:
47
+ recorded_at: Sun, 23 May 2021 16:05:14 GMT
48
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,46 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: REMITANO_SERVER/api/v1/merchant/merchant_withdrawal_requests/invalid_id?usec=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.2 (darwin18.6.0 x86_64) ruby/2.4.3p205
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Thu, 20 May 2021 07:56:17 GMT
20
+ Authorization:
21
+ - APIAuth REMITANO_KEY:QQZ9FNArVPdgUUXfTxd5AJvsgpM=
22
+ Host:
23
+ - localhost:3100
24
+ response:
25
+ status:
26
+ code: 404
27
+ message: Not Found
28
+ headers:
29
+ Content-Type:
30
+ - application/json
31
+ Cache-Control:
32
+ - no-cache
33
+ X-Request-Id:
34
+ - 06dea07b-56c8-4108-8958-9118ac3e3860
35
+ X-Runtime:
36
+ - '0.144596'
37
+ Vary:
38
+ - Origin
39
+ Content-Length:
40
+ - '21'
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"error":"Not found"}'
44
+ http_version:
45
+ recorded_at: Thu, 20 May 2021 07:56:17 GMT
46
+ recorded_with: VCR 4.0.0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: REMITANO_SERVER/api/v1/coin_accounts/me?coin_currency=btc&usec=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.2 (darwin17.7.0 x86_64) ruby/2.4.3p205
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Wed, 21 Nov 2018 13:24:53 GMT
20
+ Authorization:
21
+ - APIAuth REMITANO_KEY:/SEOuuPtoVTm2q1FTGvMC4ET/YA=
22
+ Host:
23
+ - localhost:3100
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '386'
33
+ Etag:
34
+ - W/"c4d85a5c69e1f0d8d7b1249c29eeb3c5"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 41137da5-61c4-4edd-8eca-48d273317e4a
39
+ X-Runtime:
40
+ - '0.514458'
41
+ Vary:
42
+ - Origin
43
+ Connection:
44
+ - keep-alive
45
+ Server:
46
+ - thin
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"main":{"id":45,"address":"1NHy9krGCkkyNswx4Zu1MzxKRmnJ7j8W7c","balance":12.0,"frozen_balance":0.0,"available_balance":0.0,"available_withdrawable_balance":0,"coin_currency":"btc"},"deposit":{"id":339609,"address":null,"balance":0.0,"frozen_balance":0.0,"available_balance":0.0,"available_withdrawable_balance":0,"coin_currency":"btc"},"coin_address_channel":"coin_address_channel_45"}'
50
+ http_version:
51
+ recorded_at: Wed, 21 Nov 2018 13:24:53 GMT
52
+ recorded_with: VCR 4.0.0