regaliator 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +4 -0
  5. data/Guardfile +36 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +116 -0
  8. data/Rakefile +11 -0
  9. data/lib/regaliator/api_version_error.rb +7 -0
  10. data/lib/regaliator/client.rb +9 -0
  11. data/lib/regaliator/configuration.rb +25 -0
  12. data/lib/regaliator/endpoint.rb +17 -0
  13. data/lib/regaliator/request.rb +100 -0
  14. data/lib/regaliator/response.rb +40 -0
  15. data/lib/regaliator/v15/account.rb +11 -0
  16. data/lib/regaliator/v15/bill.rb +23 -0
  17. data/lib/regaliator/v15/biller.rb +15 -0
  18. data/lib/regaliator/v15/client.rb +32 -0
  19. data/lib/regaliator/v15/rate.rb +15 -0
  20. data/lib/regaliator/v15/transaction.rb +23 -0
  21. data/lib/regaliator/v15.rb +7 -0
  22. data/lib/regaliator/v30/account.rb +11 -0
  23. data/lib/regaliator/v30/bill.rb +35 -0
  24. data/lib/regaliator/v30/biller.rb +19 -0
  25. data/lib/regaliator/v30/client.rb +32 -0
  26. data/lib/regaliator/v30/rate.rb +15 -0
  27. data/lib/regaliator/v30/transaction.rb +11 -0
  28. data/lib/regaliator/v30.rb +7 -0
  29. data/lib/regaliator/v31.rb +14 -0
  30. data/lib/regaliator/version.rb +3 -0
  31. data/lib/regaliator.rb +59 -0
  32. data/regaliator.gemspec +34 -0
  33. data/test/fixtures/vcr_cassettes/V31/account/failed_info.yml +48 -0
  34. data/test/fixtures/vcr_cassettes/V31/account/successful_info.yml +50 -0
  35. data/test/fixtures/vcr_cassettes/V31/bill/create.yml +52 -0
  36. data/test/fixtures/vcr_cassettes/V31/bill/list.yml +71 -0
  37. data/test/fixtures/vcr_cassettes/V31/bill/pay.yml +52 -0
  38. data/test/fixtures/vcr_cassettes/V31/bill/refresh.yml +52 -0
  39. data/test/fixtures/vcr_cassettes/V31/bill/show.yml +51 -0
  40. data/test/fixtures/vcr_cassettes/V31/bill/update.yml +53 -0
  41. data/test/fixtures/vcr_cassettes/V31/bill/xdata.yml +51 -0
  42. data/test/fixtures/vcr_cassettes/V31/biller/credentials.yml +256 -0
  43. data/test/fixtures/vcr_cassettes/V31/biller/topups.yml +209 -0
  44. data/test/fixtures/vcr_cassettes/V31/biller/utilities.yml +611 -0
  45. data/test/fixtures/vcr_cassettes/V31/rate/history.yml +50 -0
  46. data/test/fixtures/vcr_cassettes/V31/rate/list.yml +50 -0
  47. data/test/fixtures/vcr_cassettes/V31/transaction/list.yml +52 -0
  48. data/test/fixtures/vcr_cassettes/V31/transaction/search.yml +52 -0
  49. data/test/fixtures/vcr_cassettes/v15/account/failed_info.yml +50 -0
  50. data/test/fixtures/vcr_cassettes/v15/account/successful_info.yml +52 -0
  51. data/test/fixtures/vcr_cassettes/v15/bill/check.yml +52 -0
  52. data/test/fixtures/vcr_cassettes/v15/bill/consult.yml +52 -0
  53. data/test/fixtures/vcr_cassettes/v15/bill/index.yml +176 -0
  54. data/test/fixtures/vcr_cassettes/v15/bill/pay.yml +52 -0
  55. data/test/fixtures/vcr_cassettes/v15/biller/topups.yml +212 -0
  56. data/test/fixtures/vcr_cassettes/v15/biller/utilities.yml +611 -0
  57. data/test/fixtures/vcr_cassettes/v15/rate/history.yml +52 -0
  58. data/test/fixtures/vcr_cassettes/v15/rate/list.yml +52 -0
  59. data/test/fixtures/vcr_cassettes/v15/transaction/cancel.yml +52 -0
  60. data/test/fixtures/vcr_cassettes/v15/transaction/list.yml +54 -0
  61. data/test/fixtures/vcr_cassettes/v15/transaction/pay.yml +52 -0
  62. data/test/fixtures/vcr_cassettes/v15/transaction/reverse.yml +52 -0
  63. data/test/fixtures/vcr_cassettes/v15/transaction/search.yml +54 -0
  64. data/test/fixtures/vcr_cassettes/v30/account/failed_info.yml +48 -0
  65. data/test/fixtures/vcr_cassettes/v30/account/successful_info.yml +50 -0
  66. data/test/fixtures/vcr_cassettes/v30/bill/create.yml +56 -0
  67. data/test/fixtures/vcr_cassettes/v30/bill/list.yml +54 -0
  68. data/test/fixtures/vcr_cassettes/v30/bill/pay.yml +56 -0
  69. data/test/fixtures/vcr_cassettes/v30/bill/refresh.yml +56 -0
  70. data/test/fixtures/vcr_cassettes/v30/bill/show.yml +55 -0
  71. data/test/fixtures/vcr_cassettes/v30/bill/update.yml +57 -0
  72. data/test/fixtures/vcr_cassettes/v30/bill/xdata.yml +50 -0
  73. data/test/fixtures/vcr_cassettes/v30/biller/credentials.yml +54 -0
  74. data/test/fixtures/vcr_cassettes/v30/biller/topups.yml +54 -0
  75. data/test/fixtures/vcr_cassettes/v30/biller/utilities.yml +54 -0
  76. data/test/fixtures/vcr_cassettes/v30/rate/history.yml +54 -0
  77. data/test/fixtures/vcr_cassettes/v30/rate/list.yml +54 -0
  78. data/test/fixtures/vcr_cassettes/v30/transaction/list.yml +56 -0
  79. data/test/fixtures/vcr_cassettes/v30/transaction/search.yml +56 -0
  80. data/test/regaliator/api_version_error_test.rb +14 -0
  81. data/test/regaliator/client_test.rb +19 -0
  82. data/test/regaliator/configuration_test.rb +115 -0
  83. data/test/regaliator/endpoint_test.rb +19 -0
  84. data/test/regaliator/v15/account_test.rb +37 -0
  85. data/test/regaliator/v15/bill_test.rb +67 -0
  86. data/test/regaliator/v15/biller_test.rb +35 -0
  87. data/test/regaliator/v15/client_test.rb +23 -0
  88. data/test/regaliator/v15/rate_test.rb +35 -0
  89. data/test/regaliator/v15/transaction_test.rb +62 -0
  90. data/test/regaliator/v15_test.rb +10 -0
  91. data/test/regaliator/v30/account_test.rb +37 -0
  92. data/test/regaliator/v30/bill_test.rb +80 -0
  93. data/test/regaliator/v30/biller_test.rb +44 -0
  94. data/test/regaliator/v30/client_test.rb +23 -0
  95. data/test/regaliator/v30/rate_test.rb +35 -0
  96. data/test/regaliator/v30/transaction_test.rb +35 -0
  97. data/test/regaliator/v30_test.rb +10 -0
  98. data/test/regaliator/v31/account_test.rb +37 -0
  99. data/test/regaliator/v31/bill_test.rb +84 -0
  100. data/test/regaliator/v31/biller_test.rb +44 -0
  101. data/test/regaliator/v31/client_test.rb +23 -0
  102. data/test/regaliator/v31/rate_test.rb +35 -0
  103. data/test/regaliator/v31/transaction_test.rb +35 -0
  104. data/test/regaliator/v31_test.rb +10 -0
  105. data/test/regaliator/version_test.rb +10 -0
  106. data/test/regaliator_test.rb +66 -0
  107. data/test/test_helper.rb +26 -0
  108. metadata +394 -0
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.regalii.dev/rates/history
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - application/vnd.regalii.v3.1+json
14
+ User-Agent:
15
+ - Regaliator gem v4.0.0
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Fri, 20 Jan 2017 18:14:18 GMT
20
+ Authorization:
21
+ - APIAuth testing:FMkGfS2u5Axr/lfNqLzp2fDsRlI=
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ X-Frame-Options:
28
+ - SAMEORIGIN
29
+ X-Xss-Protection:
30
+ - 1; mode=block
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Etag:
36
+ - W/"ac0b02adc1a271e25cd3b024450d7c27"
37
+ Cache-Control:
38
+ - max-age=0, private, must-revalidate
39
+ X-Request-Id:
40
+ - 2bcc53fd-8326-4128-b968-3057e7d4f18b
41
+ X-Runtime:
42
+ - '0.157000'
43
+ Transfer-Encoding:
44
+ - chunked
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"2017-01-20":{},"2017-01-19":{},"2017-01-18":{},"2017-01-17":{},"2017-01-16":{},"2017-01-15":{},"2017-01-14":{},"2017-01-13":{},"2017-01-12":{},"2017-01-11":{},"2017-01-10":{},"2017-01-09":{},"2017-01-08":{},"2017-01-07":{},"2017-01-06":{},"2017-01-05":{},"2017-01-04":{},"2017-01-03":{},"2017-01-02":{},"2017-01-01":{},"2016-12-31":{},"2016-12-30":{},"2016-12-29":{},"2016-12-28":{},"2016-12-27":{},"2016-12-26":{},"2016-12-25":{},"2016-12-24":{},"2016-12-23":{},"2016-12-22":{},"2016-12-21":{}}'
48
+ http_version:
49
+ recorded_at: Fri, 20 Jan 2017 18:14:18 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.regalii.dev/rates
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - application/vnd.regalii.v3.1+json
14
+ User-Agent:
15
+ - Regaliator gem v4.0.0
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Fri, 20 Jan 2017 18:14:18 GMT
20
+ Authorization:
21
+ - APIAuth testing:aA2320fpsVEqu6A7Lsqwz1nkQcE=
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ X-Frame-Options:
28
+ - SAMEORIGIN
29
+ X-Xss-Protection:
30
+ - 1; mode=block
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Etag:
36
+ - W/"64b2e57f343fefa48ce2410586b51df2"
37
+ Cache-Control:
38
+ - max-age=0, private, must-revalidate
39
+ X-Request-Id:
40
+ - faef5f19-2644-4ba0-a208-3098880d0999
41
+ X-Runtime:
42
+ - '0.096603'
43
+ Transfer-Encoding:
44
+ - chunked
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"GBP":0.7892,"CAD":1.3171,"MXN":20.2181,"RD":45.3925,"NIO":28.5876,"GTQ":7.3642,"HNL":22.7156,"COP":3088.617,"BRL":3.325,"PEN":3.3473,"BOB":6.7776,"PHP":48.7303,"INR":67.2249,"JMD":126.5856,"NGN":308.4099}'
48
+ http_version:
49
+ recorded_at: Fri, 20 Jan 2017 18:14:18 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.regalii.dev/transactions
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - application/vnd.regalii.v3.1+json
14
+ User-Agent:
15
+ - Regaliator gem v4.0.0
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Fri, 20 Jan 2017 18:13:46 GMT
20
+ Authorization:
21
+ - APIAuth testing:Y2zyFn1MM0761BQcOoZLQ+a77QQ=
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ X-Frame-Options:
28
+ - SAMEORIGIN
29
+ X-Xss-Protection:
30
+ - 1; mode=block
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ X-Pagination:
34
+ - '{"total_entries":5250,"total_pages":53,"previous_page":null,"current_page":1,"next_page":2}'
35
+ Content-Type:
36
+ - application/json; charset=utf-8
37
+ Etag:
38
+ - W/"68727af925ab7a258cf7a17276ed4cd3"
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - e28dc319-efc8-475a-8008-df6bddc2f02a
43
+ X-Runtime:
44
+ - '0.285130'
45
+ Transfer-Encoding:
46
+ - chunked
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"transactions":[{"type":"transaction","id":1,"amount":6.0,"amount_currency":"usd","fx_rate":42.0,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2013-10-06T21:33:53Z"},{"type":"transaction","id":467261,"amount":50.0,"amount_currency":"usd","fx_rate":1.0,"amount_usd":50.0,"transaction_fee":0.0,"total_usd":50.0,"hours_to_fulfill":0,"created_at":"2014-08-22T23:59:12Z"},{"type":"transaction","id":467881,"amount":10.0,"amount_currency":"usd","fx_rate":1.0,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-08-23T16:42:16Z"},{"type":"transaction","id":518451,"amount":50.0,"amount_currency":"usd","fx_rate":1.0,"amount_usd":50.0,"transaction_fee":0.0,"total_usd":50.0,"hours_to_fulfill":0,"created_at":"2014-09-23T17:52:50Z"},{"type":"transaction","id":518471,"amount":10.0,"amount_currency":"usd","fx_rate":1.0,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-09-23T18:03:19Z"},{"type":"transaction","id":574301,"amount":50.0,"amount_currency":"usd","fx_rate":1.0,"amount_usd":50.0,"transaction_fee":0.0,"total_usd":50.0,"hours_to_fulfill":0,"created_at":"2014-10-24T16:04:21Z"},{"type":"transaction","id":574351,"amount":10.0,"amount_currency":"usd","fx_rate":1.0,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-10-24T16:14:57Z"},{"type":"transaction","id":600731,"amount":5.0,"amount_currency":"usd","fx_rate":13.3083,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-11-06T22:04:47Z"},{"type":"transaction","id":625531,"amount":10.0,"amount_currency":"usd","fx_rate":13.2788,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-11-19T05:20:22Z"},{"type":"transaction","id":636111,"amount":50.0,"amount_currency":"usd","fx_rate":1.0,"amount_usd":50.0,"transaction_fee":0.0,"total_usd":50.0,"hours_to_fulfill":0,"created_at":"2014-11-24T14:51:47Z"},{"type":"transaction","id":636221,"amount":10.0,"amount_currency":"usd","fx_rate":1.0,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-11-24T15:07:12Z"},{"type":"transaction","id":687971,"amount":10.0,"amount_currency":"USD","fx_rate":43.2014,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-12-16T02:49:34Z"},{"type":"transaction","id":688021,"amount":773.5,"amount_currency":"RD","fx_rate":43.2586,"amount_usd":17.88,"transaction_fee":3.0,"total_usd":20.88,"hours_to_fulfill":0,"created_at":"2014-12-16T13:08:15Z"},{"type":"transaction","id":688031,"amount":1722.09,"amount_currency":"RD","fx_rate":43.2586,"amount_usd":39.81,"transaction_fee":3.0,"total_usd":42.81,"hours_to_fulfill":0,"created_at":"2014-12-16T13:10:10Z"},{"type":"transaction","id":688041,"amount":2288.83,"amount_currency":"RD","fx_rate":43.2586,"amount_usd":52.91,"transaction_fee":3.0,"total_usd":55.91,"hours_to_fulfill":0,"created_at":"2014-12-16T13:10:53Z"},{"type":"transaction","id":688051,"amount":1521.0,"amount_currency":"RD","fx_rate":43.2586,"amount_usd":35.16,"transaction_fee":3.0,"total_usd":38.16,"hours_to_fulfill":0,"created_at":"2014-12-16T13:11:37Z"},{"type":"transaction","id":688061,"amount":10.0,"amount_currency":"USD","fx_rate":43.2586,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-12-16T13:12:21Z"},{"type":"transaction","id":688071,"amount":10.0,"amount_currency":"USD","fx_rate":43.2586,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-12-16T13:13:45Z"},{"type":"transaction","id":688081,"amount":9682.23,"amount_currency":"RD","fx_rate":43.2586,"amount_usd":223.82,"transaction_fee":3.0,"total_usd":226.82,"hours_to_fulfill":0,"created_at":"2014-12-16T13:30:35Z"},{"type":"transaction","id":688471,"amount":878.73,"amount_currency":"RD","fx_rate":43.2586,"amount_usd":20.31,"transaction_fee":3.0,"total_usd":19.25,"hours_to_fulfill":0,"created_at":"2014-12-16T15:48:49Z"},{"type":"transaction","id":688501,"amount":878.73,"amount_currency":"RD","fx_rate":43.2586,"amount_usd":20.31,"transaction_fee":3.0,"total_usd":23.31,"hours_to_fulfill":0,"created_at":"2014-12-16T15:51:06Z"},{"type":"transaction","id":688651,"amount":5.0,"amount_currency":"USD","fx_rate":43.2586,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-16T16:46:27Z"},{"type":"transaction","id":688661,"amount":5.0,"amount_currency":"USD","fx_rate":43.2586,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-16T16:47:17Z"},{"type":"transaction","id":688761,"amount":4365.0,"amount_currency":"RD","fx_rate":43.2586,"amount_usd":100.9,"transaction_fee":3.0,"total_usd":83.72,"hours_to_fulfill":72,"created_at":"2014-12-16T17:01:36Z"},{"type":"transaction","id":688771,"amount":10.0,"amount_currency":"USD","fx_rate":43.2586,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-12-16T17:02:03Z"},{"type":"transaction","id":688901,"amount":1867.72,"amount_currency":"RD","fx_rate":43.2586,"amount_usd":43.18,"transaction_fee":3.0,"total_usd":46.18,"hours_to_fulfill":0,"created_at":"2014-12-16T17:22:44Z"},{"type":"transaction","id":689031,"amount":317.0,"amount_currency":"GTQ","fx_rate":7.4737,"amount_usd":42.42,"transaction_fee":3.0,"total_usd":40.42,"hours_to_fulfill":0,"created_at":"2014-12-16T18:17:39Z"},{"type":"transaction","id":689441,"amount":5.0,"amount_currency":"USD","fx_rate":43.2586,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-16T20:30:12Z"},{"type":"transaction","id":689451,"amount":5.0,"amount_currency":"USD","fx_rate":43.2586,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-16T20:30:32Z"},{"type":"transaction","id":689461,"amount":923.13,"amount_currency":"RD","fx_rate":43.2586,"amount_usd":21.34,"transaction_fee":3.0,"total_usd":24.34,"hours_to_fulfill":0,"created_at":"2014-12-16T20:35:44Z"},{"type":"transaction","id":689671,"amount":1.0,"amount_currency":"MXN","fx_rate":14.4307,"amount_usd":0.07,"transaction_fee":3.0,"total_usd":3.07,"hours_to_fulfill":0,"created_at":"2014-12-16T21:46:54Z"},{"type":"transaction","id":689701,"amount":1.0,"amount_currency":"MXN","fx_rate":14.4307,"amount_usd":0.07,"transaction_fee":3.0,"total_usd":3.06,"hours_to_fulfill":48,"created_at":"2014-12-16T21:52:04Z"},{"type":"transaction","id":690281,"amount":459.75,"amount_currency":"RD","fx_rate":43.2586,"amount_usd":10.63,"transaction_fee":3.0,"total_usd":13.63,"hours_to_fulfill":0,"created_at":"2014-12-17T01:44:07Z"},{"type":"transaction","id":690301,"amount":6.0,"amount_currency":"USD","fx_rate":43.2586,"amount_usd":6.0,"transaction_fee":0.0,"total_usd":6.0,"hours_to_fulfill":0,"created_at":"2014-12-17T01:54:02Z"},{"type":"transaction","id":690311,"amount":1755.0,"amount_currency":"RD","fx_rate":43.2586,"amount_usd":40.57,"transaction_fee":3.0,"total_usd":38.57,"hours_to_fulfill":0,"created_at":"2014-12-17T01:54:32Z"},{"type":"transaction","id":690341,"amount":7665.42,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":176.7,"transaction_fee":3.0,"total_usd":174.7,"hours_to_fulfill":0,"created_at":"2014-12-17T12:04:15Z"},{"type":"transaction","id":690351,"amount":1423.5,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":32.81,"transaction_fee":3.0,"total_usd":30.81,"hours_to_fulfill":0,"created_at":"2014-12-17T12:21:12Z"},{"type":"transaction","id":690591,"amount":25.0,"amount_currency":"USD","fx_rate":43.3817,"amount_usd":25.0,"transaction_fee":0.0,"total_usd":25.0,"hours_to_fulfill":0,"created_at":"2014-12-17T15:19:34Z"},{"type":"transaction","id":690631,"amount":185.74,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":4.28,"transaction_fee":3.0,"total_usd":7.28,"hours_to_fulfill":0,"created_at":"2014-12-17T15:38:23Z"},{"type":"transaction","id":690641,"amount":732.21,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":16.88,"transaction_fee":3.0,"total_usd":19.88,"hours_to_fulfill":0,"created_at":"2014-12-17T15:38:46Z"},{"type":"transaction","id":690661,"amount":325.0,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":7.49,"transaction_fee":3.0,"total_usd":10.49,"hours_to_fulfill":0,"created_at":"2014-12-17T15:39:00Z"},{"type":"transaction","id":690671,"amount":689.0,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":15.88,"transaction_fee":3.0,"total_usd":18.88,"hours_to_fulfill":0,"created_at":"2014-12-17T15:39:40Z"},{"type":"transaction","id":690681,"amount":10.0,"amount_currency":"USD","fx_rate":43.3817,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-12-17T15:41:07Z"},{"type":"transaction","id":690821,"amount":108.99,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":2.51,"transaction_fee":3.0,"total_usd":5.51,"hours_to_fulfill":0,"created_at":"2014-12-17T16:24:29Z"},{"type":"transaction","id":690881,"amount":5.0,"amount_currency":"USD","fx_rate":43.3817,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-17T16:30:33Z"},{"type":"transaction","id":691121,"amount":268.0,"amount_currency":"MXN","fx_rate":14.4648,"amount_usd":18.53,"transaction_fee":3.0,"total_usd":11.53,"hours_to_fulfill":48,"created_at":"2014-12-17T17:42:31Z"},{"type":"transaction","id":691361,"amount":689.0,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":15.88,"transaction_fee":3.0,"total_usd":18.88,"hours_to_fulfill":0,"created_at":"2014-12-17T19:08:15Z"},{"type":"transaction","id":691401,"amount":5.0,"amount_currency":"USD","fx_rate":43.3817,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-17T19:13:18Z"},{"type":"transaction","id":691411,"amount":5.0,"amount_currency":"USD","fx_rate":43.3817,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-17T19:17:01Z"},{"type":"transaction","id":691451,"amount":330.0,"amount_currency":"GTQ","fx_rate":7.4897,"amount_usd":44.06,"transaction_fee":3.0,"total_usd":42.06,"hours_to_fulfill":0,"created_at":"2014-12-17T19:36:38Z"},{"type":"transaction","id":691521,"amount":5.0,"amount_currency":"USD","fx_rate":43.3817,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-17T19:58:22Z"},{"type":"transaction","id":691591,"amount":26.37,"amount_currency":"USD","fx_rate":1.0,"amount_usd":26.37,"transaction_fee":3.0,"total_usd":29.37,"hours_to_fulfill":0,"created_at":"2014-12-17T20:15:12Z"},{"type":"transaction","id":691701,"amount":2608.4,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":60.13,"transaction_fee":3.0,"total_usd":63.13,"hours_to_fulfill":0,"created_at":"2014-12-17T20:43:38Z"},{"type":"transaction","id":691711,"amount":10.0,"amount_currency":"USD","fx_rate":43.3817,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-12-17T20:44:18Z"},{"type":"transaction","id":691902,"amount":10.0,"amount_currency":"USD","fx_rate":43.3817,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-12-17T21:54:40Z"},{"type":"transaction","id":692232,"amount":10.0,"amount_currency":"USD","fx_rate":43.3817,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-12-18T00:35:39Z"},{"type":"transaction","id":692312,"amount":233.31,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":5.38,"transaction_fee":3.0,"total_usd":3.38,"hours_to_fulfill":0,"created_at":"2014-12-18T02:08:16Z"},{"type":"transaction","id":692322,"amount":2877.77,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":66.34,"transaction_fee":3.0,"total_usd":64.34,"hours_to_fulfill":0,"created_at":"2014-12-18T02:09:11Z"},{"type":"transaction","id":692332,"amount":727.77,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":16.78,"transaction_fee":3.0,"total_usd":16.42,"hours_to_fulfill":0,"created_at":"2014-12-18T02:09:31Z"},{"type":"transaction","id":692402,"amount":678.93,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":15.65,"transaction_fee":3.0,"total_usd":15.52,"hours_to_fulfill":0,"created_at":"2014-12-18T03:08:59Z"},{"type":"transaction","id":692412,"amount":428.73,"amount_currency":"RD","fx_rate":43.3817,"amount_usd":9.88,"transaction_fee":3.0,"total_usd":7.88,"hours_to_fulfill":0,"created_at":"2014-12-18T03:14:44Z"},{"type":"transaction","id":692422,"amount":10.0,"amount_currency":"USD","fx_rate":43.5279,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-12-18T11:04:08Z"},{"type":"transaction","id":692432,"amount":169.0,"amount_currency":"MXN","fx_rate":14.3059,"amount_usd":11.81,"transaction_fee":3.0,"total_usd":9.81,"hours_to_fulfill":0,"created_at":"2014-12-18T11:06:17Z"},{"type":"transaction","id":692442,"amount":1596.79,"amount_currency":"RD","fx_rate":43.5279,"amount_usd":36.68,"transaction_fee":3.0,"total_usd":39.68,"hours_to_fulfill":0,"created_at":"2014-12-18T11:06:52Z"},{"type":"transaction","id":692452,"amount":1450.0,"amount_currency":"MXN","fx_rate":14.3059,"amount_usd":101.36,"transaction_fee":3.0,"total_usd":104.36,"hours_to_fulfill":24,"created_at":"2014-12-18T13:22:20Z"},{"type":"transaction","id":692472,"amount":5.0,"amount_currency":"USD","fx_rate":7.5057,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-18T14:21:22Z"},{"type":"transaction","id":692532,"amount":10.0,"amount_currency":"USD","fx_rate":43.5279,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-12-18T14:52:01Z"},{"type":"transaction","id":692632,"amount":804.06,"amount_currency":"RD","fx_rate":43.5279,"amount_usd":18.47,"transaction_fee":3.0,"total_usd":11.47,"hours_to_fulfill":0,"created_at":"2014-12-18T15:13:06Z"},{"type":"transaction","id":692642,"amount":689.0,"amount_currency":"RD","fx_rate":43.5279,"amount_usd":15.83,"transaction_fee":3.0,"total_usd":18.83,"hours_to_fulfill":0,"created_at":"2014-12-18T15:13:25Z"},{"type":"transaction","id":692692,"amount":7.23,"amount_currency":"USD","fx_rate":1.0,"amount_usd":7.23,"transaction_fee":3.0,"total_usd":5.23,"hours_to_fulfill":0,"created_at":"2014-12-18T15:30:38Z"},{"type":"transaction","id":692702,"amount":5.0,"amount_currency":"USD","fx_rate":43.5279,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-18T15:36:40Z"},{"type":"transaction","id":692712,"amount":131.0,"amount_currency":"GTQ","fx_rate":7.5057,"amount_usd":17.45,"transaction_fee":3.0,"total_usd":15.45,"hours_to_fulfill":0,"created_at":"2014-12-18T15:38:55Z"},{"type":"transaction","id":692972,"amount":10.0,"amount_currency":"USD","fx_rate":43.5279,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2014-12-18T17:38:53Z"},{"type":"transaction","id":693072,"amount":5.0,"amount_currency":"USD","fx_rate":43.5279,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-18T18:18:55Z"},{"type":"transaction","id":693232,"amount":775.0,"amount_currency":"GTQ","fx_rate":7.5057,"amount_usd":103.25,"transaction_fee":3.0,"total_usd":101.25,"hours_to_fulfill":0,"created_at":"2014-12-18T19:35:08Z"},{"type":"transaction","id":693982,"amount":711.58,"amount_currency":"RD","fx_rate":43.5279,"amount_usd":16.35,"transaction_fee":3.0,"total_usd":19.35,"hours_to_fulfill":0,"created_at":"2014-12-18T23:42:09Z"},{"type":"transaction","id":694002,"amount":1221.09,"amount_currency":"RD","fx_rate":43.5279,"amount_usd":28.05,"transaction_fee":3.0,"total_usd":31.05,"hours_to_fulfill":0,"created_at":"2014-12-18T23:52:19Z"},{"type":"transaction","id":694012,"amount":268.83,"amount_currency":"RD","fx_rate":43.5279,"amount_usd":6.18,"transaction_fee":3.0,"total_usd":9.18,"hours_to_fulfill":0,"created_at":"2014-12-18T23:54:04Z"},{"type":"transaction","id":694132,"amount":2875.37,"amount_currency":"RD","fx_rate":43.5279,"amount_usd":66.06,"transaction_fee":3.0,"total_usd":69.06,"hours_to_fulfill":0,"created_at":"2014-12-19T01:34:51Z"},{"type":"transaction","id":694142,"amount":1007.49,"amount_currency":"RD","fx_rate":43.5279,"amount_usd":23.15,"transaction_fee":3.0,"total_usd":26.15,"hours_to_fulfill":0,"created_at":"2014-12-19T02:03:18Z"},{"type":"transaction","id":694162,"amount":1290.42,"amount_currency":"RD","fx_rate":43.5279,"amount_usd":29.65,"transaction_fee":3.0,"total_usd":32.65,"hours_to_fulfill":0,"created_at":"2014-12-19T03:02:59Z"},{"type":"transaction","id":694172,"amount":1074.04,"amount_currency":"RD","fx_rate":43.5279,"amount_usd":24.67,"transaction_fee":3.0,"total_usd":27.67,"hours_to_fulfill":0,"created_at":"2014-12-19T03:03:23Z"},{"type":"transaction","id":694182,"amount":939.13,"amount_currency":"RD","fx_rate":43.5279,"amount_usd":21.58,"transaction_fee":3.0,"total_usd":19.58,"hours_to_fulfill":0,"created_at":"2014-12-19T03:14:45Z"},{"type":"transaction","id":694192,"amount":1074.04,"amount_currency":"RD","fx_rate":43.5279,"amount_usd":24.67,"transaction_fee":3.0,"total_usd":22.74,"hours_to_fulfill":0,"created_at":"2014-12-19T03:23:10Z"},{"type":"transaction","id":694202,"amount":429.0,"amount_currency":"MXN","fx_rate":14.29,"amount_usd":30.02,"transaction_fee":3.0,"total_usd":33.02,"hours_to_fulfill":0,"created_at":"2014-12-19T10:50:07Z"},{"type":"transaction","id":694212,"amount":199.46,"amount_currency":"RD","fx_rate":43.4413,"amount_usd":4.59,"transaction_fee":3.0,"total_usd":7.14,"hours_to_fulfill":0,"created_at":"2014-12-19T10:50:41Z"},{"type":"transaction","id":694222,"amount":325.0,"amount_currency":"RD","fx_rate":43.4413,"amount_usd":7.48,"transaction_fee":3.0,"total_usd":10.48,"hours_to_fulfill":0,"created_at":"2014-12-19T10:52:25Z"},{"type":"transaction","id":694232,"amount":689.0,"amount_currency":"RD","fx_rate":43.4413,"amount_usd":15.86,"transaction_fee":3.0,"total_usd":18.86,"hours_to_fulfill":0,"created_at":"2014-12-19T10:52:40Z"},{"type":"transaction","id":694242,"amount":1611.32,"amount_currency":"RD","fx_rate":43.4413,"amount_usd":37.09,"transaction_fee":3.0,"total_usd":40.09,"hours_to_fulfill":0,"created_at":"2014-12-19T10:52:55Z"},{"type":"transaction","id":694252,"amount":20.0,"amount_currency":"USD","fx_rate":43.4413,"amount_usd":20.0,"transaction_fee":0.0,"total_usd":20.0,"hours_to_fulfill":0,"created_at":"2014-12-19T13:37:43Z"},{"type":"transaction","id":694282,"amount":294.0,"amount_currency":"MXN","fx_rate":14.29,"amount_usd":20.57,"transaction_fee":3.0,"total_usd":23.57,"hours_to_fulfill":48,"created_at":"2014-12-19T14:00:15Z"},{"type":"transaction","id":694322,"amount":732.6,"amount_currency":"RD","fx_rate":43.4413,"amount_usd":16.86,"transaction_fee":3.0,"total_usd":16.49,"hours_to_fulfill":0,"created_at":"2014-12-19T14:40:32Z"},{"type":"transaction","id":694332,"amount":816.77,"amount_currency":"RD","fx_rate":43.4413,"amount_usd":18.8,"transaction_fee":3.0,"total_usd":21.8,"hours_to_fulfill":0,"created_at":"2014-12-19T14:41:01Z"},{"type":"transaction","id":694942,"amount":5.0,"amount_currency":"USD","fx_rate":43.4413,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-19T17:13:49Z"},{"type":"transaction","id":694962,"amount":686.13,"amount_currency":"RD","fx_rate":43.4413,"amount_usd":15.79,"transaction_fee":3.0,"total_usd":13.79,"hours_to_fulfill":0,"created_at":"2014-12-19T17:17:09Z"},{"type":"transaction","id":695262,"amount":1949.06,"amount_currency":"RD","fx_rate":43.4413,"amount_usd":44.87,"transaction_fee":3.0,"total_usd":42.87,"hours_to_fulfill":0,"created_at":"2014-12-19T18:18:06Z"},{"type":"transaction","id":695322,"amount":689.0,"amount_currency":"RD","fx_rate":43.4413,"amount_usd":15.86,"transaction_fee":3.0,"total_usd":18.86,"hours_to_fulfill":0,"created_at":"2014-12-19T18:43:06Z"},{"type":"transaction","id":695432,"amount":5.0,"amount_currency":"USD","fx_rate":43.4413,"amount_usd":5.0,"transaction_fee":0.0,"total_usd":5.0,"hours_to_fulfill":0,"created_at":"2014-12-19T19:26:45Z"},{"type":"transaction","id":695592,"amount":1451.78,"amount_currency":"RD","fx_rate":43.4413,"amount_usd":33.42,"transaction_fee":3.0,"total_usd":31.42,"hours_to_fulfill":0,"created_at":"2014-12-19T20:14:23Z"},{"type":"transaction","id":696192,"amount":8000.0,"amount_currency":"RD","fx_rate":43.4413,"amount_usd":184.16,"transaction_fee":3.0,"total_usd":187.16,"hours_to_fulfill":72,"created_at":"2014-12-19T23:06:49Z"}]}'
50
+ http_version:
51
+ recorded_at: Fri, 20 Jan 2017 18:13:46 GMT
52
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.regalii.dev/transactions?q%5Bid_eq%5D=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - application/vnd.regalii.v3.1+json
14
+ User-Agent:
15
+ - Regaliator gem v4.0.0
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Fri, 20 Jan 2017 18:13:46 GMT
20
+ Authorization:
21
+ - APIAuth testing:/Z+CR7cSNha7SQkeeTB+Tgo2Alc=
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ X-Frame-Options:
28
+ - SAMEORIGIN
29
+ X-Xss-Protection:
30
+ - 1; mode=block
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ X-Pagination:
34
+ - '{"total_entries":1,"total_pages":1,"previous_page":null,"current_page":1,"next_page":null}'
35
+ Content-Type:
36
+ - application/json; charset=utf-8
37
+ Etag:
38
+ - W/"8a59c0e3ffaa54b7147e5d4eca0d1010"
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - 01e8310e-574f-4e4d-8b38-2b81b65fc7cd
43
+ X-Runtime:
44
+ - '0.209188'
45
+ Transfer-Encoding:
46
+ - chunked
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"transactions":[{"type":"transaction","id":1,"amount":6.0,"amount_currency":"usd","fx_rate":42.0,"amount_usd":10.0,"transaction_fee":0.0,"total_usd":10.0,"hours_to_fulfill":0,"created_at":"2013-10-06T21:33:53Z"}]}'
50
+ http_version:
51
+ recorded_at: Fri, 20 Jan 2017 18:13:46 GMT
52
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.regalii.dev/account
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - application/vnd.regalii.v1.5+json
14
+ User-Agent:
15
+ - Regaliator gem v4.0.0.pre
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Sat, 14 Jan 2017 03:12:57 GMT
20
+ Content-Md5:
21
+ - mZFLkyvTelC5g8XnyQrpOw==
22
+ Authorization:
23
+ - APIAuth testing:Tln5G5eTaMgHcxxsEHg+J6LYiOE=
24
+ response:
25
+ status:
26
+ code: 401
27
+ message: Unauthorized
28
+ headers:
29
+ X-Frame-Options:
30
+ - SAMEORIGIN
31
+ X-Xss-Protection:
32
+ - 1; mode=block
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Content-Type:
36
+ - application/json; charset=utf-8
37
+ Cache-Control:
38
+ - no-cache
39
+ X-Request-Id:
40
+ - 9ce7f4d8-f62f-4f28-801c-53f25ef7cd38
41
+ X-Runtime:
42
+ - '0.069076'
43
+ Transfer-Encoding:
44
+ - chunked
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"message":"Unauthorized"}'
48
+ http_version:
49
+ recorded_at: Sat, 14 Jan 2017 03:12:57 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.regalii.dev/account
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - application/vnd.regalii.v1.5+json
14
+ User-Agent:
15
+ - Regaliator gem v4.0.0.pre
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Sat, 14 Jan 2017 03:12:57 GMT
20
+ Content-Md5:
21
+ - mZFLkyvTelC5g8XnyQrpOw==
22
+ Authorization:
23
+ - APIAuth testing:tqEDJ7NOiQwXBfXLZ1ieHMo+ZYk=
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ X-Frame-Options:
30
+ - SAMEORIGIN
31
+ X-Xss-Protection:
32
+ - 1; mode=block
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Content-Type:
36
+ - application/json; charset=utf-8
37
+ Etag:
38
+ - W/"0c8a1509449a43025392be608ef633c4"
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - f889322f-8e73-4e5d-a3ff-7e5264b1bfa1
43
+ X-Runtime:
44
+ - '0.057529'
45
+ Transfer-Encoding:
46
+ - chunked
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"name":"Regalii","balance":1797.41,"minimum_balance":-2000.0,"currency":"USD"}'
50
+ http_version:
51
+ recorded_at: Sat, 14 Jan 2017 03:12:57 GMT
52
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.regalii.dev/bill/check
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"biller_id":9,"account_number":"6463060086","amount":50}'
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - application/vnd.regalii.v1.5+json
14
+ User-Agent:
15
+ - Regaliator gem v4.0.0.pre
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Sat, 14 Jan 2017 03:12:45 GMT
20
+ Content-Md5:
21
+ - DQS+V5xSdhLMVsq19z0h2w==
22
+ Authorization:
23
+ - APIAuth testing:KqioHnXtAn/A+whqjCpnr8C1HE8=
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ X-Frame-Options:
30
+ - SAMEORIGIN
31
+ X-Xss-Protection:
32
+ - 1; mode=block
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Content-Type:
36
+ - application/json; charset=utf-8
37
+ Etag:
38
+ - W/"25dd6b94bb6b94248cb7a0ed9f058d38"
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - bf218af2-3183-4e06-afa5-083fbea6c3ee
43
+ X-Runtime:
44
+ - '10.664565'
45
+ Transfer-Encoding:
46
+ - chunked
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"topup_amount_received":1800.0,"bonus_amount_received":0.0,"total_amount_received":1800.0,"topup_fx_rate":40.0,"biller_promotions":[],"phone_number_biller_id":null,"biller_currency_iso":"DOP"}'
50
+ http_version:
51
+ recorded_at: Sat, 14 Jan 2017 03:12:56 GMT
52
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.regalii.dev/bill/consult
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"biller_id":14,"account_number":"6463060086","user_id":12981}'
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - application/vnd.regalii.v1.5+json
14
+ User-Agent:
15
+ - Regaliator gem v4.0.0.pre
16
+ Content-Type:
17
+ - application/json
18
+ Date:
19
+ - Sat, 14 Jan 2017 03:12:56 GMT
20
+ Content-Md5:
21
+ - JylbCvYqcNlpKVS5ellg3A==
22
+ Authorization:
23
+ - APIAuth testing:UQPo7OU1oTKNhsPSmQLLYqNPioo=
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ X-Frame-Options:
30
+ - SAMEORIGIN
31
+ X-Xss-Protection:
32
+ - 1; mode=block
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Content-Type:
36
+ - application/json; charset=utf-8
37
+ Etag:
38
+ - W/"7814072615ec4717b2dda82919e15342"
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - 378189bd-8990-47cf-aa6a-11a7ec06abb5
43
+ X-Runtime:
44
+ - '0.094757'
45
+ Transfer-Encoding:
46
+ - chunked
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"account_number":"6463060086","biller_id":14,"bill_amount":535.0,"bill_amount_currency":"RD","fx_rate":44.4661,"bill_amount_usd":12.03,"bill_amount_chain_currency":12.03,"payment_transaction_fee":3.0,"payment_total_usd":15.03,"payment_total_chain_currency":15.03,"invoice_number":null,"invoice_date":null,"name_on_account":null,"due_date":null}'
50
+ http_version:
51
+ recorded_at: Sat, 14 Jan 2017 03:12:57 GMT
52
+ recorded_with: VCR 2.9.3