fat_zebra 3.1.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +1 -1
  3. data/lib/fat_zebra.rb +1 -0
  4. data/lib/fat_zebra/authorise.rb +49 -0
  5. data/lib/fat_zebra/version.rb +1 -1
  6. data/spec/cassettes/FatZebra_Authorise/_authorise/with_challenge_response/1_2_3_1.yml +48 -0
  7. data/spec/cassettes/FatZebra_Authorise/_authorise/with_challenge_response/1_2_3_2.yml +48 -0
  8. data/spec/cassettes/FatZebra_Authorise/_authorise/with_frictionless_response/1_2_2_1.yml +48 -0
  9. data/spec/cassettes/FatZebra_Authorise/_authorise/with_frictionless_response/1_2_2_2.yml +48 -0
  10. data/spec/cassettes/FatZebra_Authorise/_authorise/with_invalid_input/1_2_1_1.yml +50 -0
  11. data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_given_params.yml +46 -0
  12. data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_no_params.yml +46 -0
  13. data/spec/cassettes/FatZebra_Authorise/_jwt_token/returns_JWT_with_some_params.yml +46 -0
  14. data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +8 -14
  15. data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +8 -14
  16. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +30 -30
  17. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +30 -30
  18. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +30 -30
  19. data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +11 -17
  20. data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +11 -17
  21. data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +11 -17
  22. data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +11 -17
  23. data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +19 -31
  24. data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +19 -31
  25. data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +26 -44
  26. data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +6 -6
  27. data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +6 -6
  28. data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +6 -6
  29. data/spec/cassettes/FatZebra_Card/_create/1_1_1.yml +7 -13
  30. data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +7 -13
  31. data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +7 -13
  32. data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +7 -13
  33. data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +7 -13
  34. data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +7 -13
  35. data/spec/cassettes/FatZebra_Card/_update/1_2_1.yml +15 -27
  36. data/spec/cassettes/FatZebra_Card/_update/1_2_2.yml +15 -27
  37. data/spec/cassettes/FatZebra_Card/_update/1_2_3.yml +15 -27
  38. data/spec/cassettes/FatZebra_Card/_update/validations/1_2_4_1.yml +7 -13
  39. data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +9 -15
  40. data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +9 -15
  41. data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +9 -15
  42. data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +9 -15
  43. data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +9 -15
  44. data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +9 -15
  45. data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +18 -30
  46. data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +18 -30
  47. data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +18 -30
  48. data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +12 -16
  49. data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +12 -16
  50. data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +12 -16
  51. data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +19 -31
  52. data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +19 -31
  53. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +8 -14
  54. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +8 -14
  55. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +8 -14
  56. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +8 -14
  57. data/spec/cassettes/FatZebra_DirectCredit/_create/validations/valid/1_1_5_1_1.yml +7 -13
  58. data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +16 -28
  59. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +16 -28
  60. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +16 -28
  61. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +13 -13
  62. data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +20 -20
  63. data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +20 -20
  64. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +8 -14
  65. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +8 -14
  66. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +8 -14
  67. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +8 -14
  68. data/spec/cassettes/FatZebra_DirectDebit/_create/validations/valid/1_1_5_1_1.yml +7 -13
  69. data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +16 -28
  70. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +16 -28
  71. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +16 -28
  72. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +13 -13
  73. data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +20 -20
  74. data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +20 -20
  75. data/spec/cassettes/FatZebra_Information/_ping/1_1_1.yml +7 -13
  76. data/spec/cassettes/FatZebra_Information/_ping/1_1_2.yml +7 -13
  77. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +48 -48
  78. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +48 -48
  79. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +20 -20
  80. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +20 -20
  81. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +20 -20
  82. data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +28 -28
  83. data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +28 -28
  84. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +32 -32
  85. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +32 -32
  86. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +32 -32
  87. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +34 -34
  88. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +34 -34
  89. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +28 -28
  90. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +28 -28
  91. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +28 -28
  92. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +34 -34
  93. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +34 -34
  94. data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +9 -15
  95. data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +9 -15
  96. data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +9 -15
  97. data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +9 -15
  98. data/spec/cassettes/FatZebra_Purchase/_create/1_1_13.yml +9 -15
  99. data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +9 -15
  100. data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +9 -15
  101. data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +9 -15
  102. data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +9 -15
  103. data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +9 -15
  104. data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +9 -15
  105. data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +9 -15
  106. data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +9 -15
  107. data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_1.yml +11 -17
  108. data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_2.yml +11 -17
  109. data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +18 -30
  110. data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +18 -30
  111. data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +18 -30
  112. data/spec/cassettes/FatZebra_Purchase/_void/1_6_4.yml +18 -30
  113. data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +18 -30
  114. data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +18 -30
  115. data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +18 -30
  116. data/spec/cassettes/FatZebra_Purchase/_void/1_7_4.yml +18 -30
  117. data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +16 -16
  118. data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +16 -16
  119. data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +16 -16
  120. data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +16 -16
  121. data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +16 -16
  122. data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +16 -16
  123. data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +16 -16
  124. data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +16 -16
  125. data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +16 -16
  126. data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +16 -16
  127. data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +24 -24
  128. data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +24 -24
  129. data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +24 -24
  130. data/spec/cassettes/FatZebra_Refund/_search/responds_with_the_newly-created_refunds.yml +40 -40
  131. data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +24 -24
  132. data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +24 -24
  133. data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +24 -24
  134. data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +24 -24
  135. data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +7 -13
  136. data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +7 -13
  137. data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +7 -13
  138. data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +15 -27
  139. data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +160 -133
  140. data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +162 -135
  141. data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +15 -27
  142. data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +15 -27
  143. data/spec/lib/fat_zebra/authorise_spec.rb +101 -0
  144. data/spec/lib/fat_zebra/purchase_spec.rb +3 -3
  145. data/spec/lib/fat_zebra/refund_spec.rb +1 -1
  146. data/spec/support/payloads.rb +42 -0
  147. metadata +13 -4
  148. data/spec/cassettes/FatZebra_DirectDebit/_create/validations/failed_with_non-float/1_1_5_3_1.yml +0 -52
@@ -2,16 +2,16 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20180508-a4fa5df1107bb69a2eabefb360d45949.csv
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20190429-d1348b2d0b4b751ab80db4337b62839d.csv
6
6
  body:
7
7
  encoding: UTF-8
8
- string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20180508-a4fa5df1107bb69a2eabefb360d45949.csv\";
9
- filename=\"BATCH-v1-PURCHASE-TEST-20180508-a4fa5df1107bb69a2eabefb360d45949.csv\"\r\nContent-Length:
8
+ string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20190429-d1348b2d0b4b751ab80db4337b62839d.csv\";
9
+ filename=\"BATCH-v1-PURCHASE-TEST-20190429-d1348b2d0b4b751ab80db4337b62839d.csv\"\r\nContent-Length:
10
10
  \r\nContent-Type: text/csv\r\nContent-Transfer-Encoding: binary\r\n\r\n1000,AUD,Order12345,John
11
11
  Doe 1,4444333322221111,12/2020,,Gizmo ABC 1\n2051,AUD,Order22345,John Doe
12
12
  2,4444333322221111,12/2020,,Gizmo ABC 2\n3000,AUD,Order32345,John Doe 3,4444333322221111,12/2020,,Gizmo
13
13
  ABC 3\n4000,AUD,Order42345,John Doe 4,4444333322221111,12/2020,,Gizmo ABC
14
- 4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20180508-a4fa5df1107bb69a2eabefb360d45949.csv------FatZebraMultipartPost\r\nContent-Disposition:
14
+ 4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20190429-d1348b2d0b4b751ab80db4337b62839d.csv------FatZebraMultipartPost\r\nContent-Disposition:
15
15
  form-data; name=\"test\"\r\n\r\ntrue------FatZebraMultipartPost--\r\n"
16
16
  headers:
17
17
  Accept-Encoding:
@@ -32,7 +32,7 @@ http_interactions:
32
32
  message: Created
33
33
  headers:
34
34
  Date:
35
- - Tue, 08 May 2018 11:06:33 GMT
35
+ - Mon, 29 Apr 2019 09:16:37 GMT
36
36
  Content-Type:
37
37
  - application/json; charset=utf-8
38
38
  Transfer-Encoding:
@@ -44,24 +44,18 @@ http_interactions:
44
44
  Cache-Control:
45
45
  - no-store
46
46
  X-Request-Version:
47
- - 1.16.9-3186@7b619da
47
+ - 1.16.9-3941@c1d8236
48
+ X-Runtime:
49
+ - '0.142416'
48
50
  Pragma:
49
51
  - no-cache
50
- X-Xss-Protection:
51
- - 1; mode=block
52
52
  X-Request-Id:
53
- - c337fd024cf9ea2071bbbb20
54
- X-Runtime:
55
- - '0.278682'
56
- X-Frame-Options:
57
- - SAMEORIGIN
58
- X-Content-Type-Options:
59
- - nosniff
53
+ - 2164722329b81bafaba97052
60
54
  X-Backend:
61
55
  - sbox-priv-gateway-a
62
56
  body:
63
57
  encoding: UTF-8
64
- string: '{"successful":true,"response":{"id":"071-BF-N0U6RSWL","filename":"BATCH-v1-PURCHASE-TEST-20180508-a4fa5df1107bb69a2eabefb360d45949.csv","created_at":"2018-05-08T21:06:33.011+10:00","process_date":"2018-05-08","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"a4fa5df1107bb69a2eabefb360d45949"},"errors":[],"test":false}'
58
+ string: '{"successful":true,"response":{"id":"071-BF-T8U7V6UT","filename":"BATCH-v1-PURCHASE-TEST-20190429-d1348b2d0b4b751ab80db4337b62839d.csv","created_at":"2019-04-29T19:16:37+10:00","process_date":"2019-04-29","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"d1348b2d0b4b751ab80db4337b62839d"},"errors":[],"test":false}'
65
59
  http_version:
66
- recorded_at: Tue, 08 May 2018 11:06:33 GMT
60
+ recorded_at: Mon, 29 Apr 2019 09:16:37 GMT
67
61
  recorded_with: VCR 3.0.3
@@ -2,16 +2,16 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20180508-25a4362318aa4b9be39df9d1842aef62.csv
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20190429-68ed4c5d1d68590a83a6883bd5288984.csv
6
6
  body:
7
7
  encoding: UTF-8
8
- string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20180508-25a4362318aa4b9be39df9d1842aef62.csv\";
9
- filename=\"BATCH-v1-PURCHASE-TEST-20180508-25a4362318aa4b9be39df9d1842aef62.csv\"\r\nContent-Length:
8
+ string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20190429-68ed4c5d1d68590a83a6883bd5288984.csv\";
9
+ filename=\"BATCH-v1-PURCHASE-TEST-20190429-68ed4c5d1d68590a83a6883bd5288984.csv\"\r\nContent-Length:
10
10
  \r\nContent-Type: text/csv\r\nContent-Transfer-Encoding: binary\r\n\r\n1000,AUD,Order12345,John
11
11
  Doe 1,4444333322221111,12/2020,,Gizmo ABC 1\n2051,AUD,Order22345,John Doe
12
12
  2,4444333322221111,12/2020,,Gizmo ABC 2\n3000,AUD,Order32345,John Doe 3,4444333322221111,12/2020,,Gizmo
13
13
  ABC 3\n4000,AUD,Order42345,John Doe 4,4444333322221111,12/2020,,Gizmo ABC
14
- 4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20180508-25a4362318aa4b9be39df9d1842aef62.csv------FatZebraMultipartPost\r\nContent-Disposition:
14
+ 4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20190429-68ed4c5d1d68590a83a6883bd5288984.csv------FatZebraMultipartPost\r\nContent-Disposition:
15
15
  form-data; name=\"test\"\r\n\r\ntrue------FatZebraMultipartPost--\r\n"
16
16
  headers:
17
17
  Accept-Encoding:
@@ -32,7 +32,7 @@ http_interactions:
32
32
  message: Created
33
33
  headers:
34
34
  Date:
35
- - Tue, 08 May 2018 11:06:33 GMT
35
+ - Mon, 29 Apr 2019 09:16:37 GMT
36
36
  Content-Type:
37
37
  - application/json; charset=utf-8
38
38
  Transfer-Encoding:
@@ -44,24 +44,18 @@ http_interactions:
44
44
  Cache-Control:
45
45
  - no-store
46
46
  X-Request-Version:
47
- - 1.16.9-3186@7b619da
47
+ - 1.16.9-3941@c1d8236
48
+ X-Runtime:
49
+ - '0.097505'
48
50
  Pragma:
49
51
  - no-cache
50
- X-Xss-Protection:
51
- - 1; mode=block
52
52
  X-Request-Id:
53
- - d975495a0278bbf089d0b430
54
- X-Runtime:
55
- - '0.107314'
56
- X-Frame-Options:
57
- - SAMEORIGIN
58
- X-Content-Type-Options:
59
- - nosniff
53
+ - ea833b655c6005a46a20ba76
60
54
  X-Backend:
61
55
  - sbox-priv-gateway-a
62
56
  body:
63
57
  encoding: UTF-8
64
- string: '{"successful":true,"response":{"id":"071-BF-DJWUSMQO","filename":"BATCH-v1-PURCHASE-TEST-20180508-25a4362318aa4b9be39df9d1842aef62.csv","created_at":"2018-05-08T21:06:33.250+10:00","process_date":"2018-05-08","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"25a4362318aa4b9be39df9d1842aef62"},"errors":[],"test":false}'
58
+ string: '{"successful":true,"response":{"id":"071-BF-7EASJE9I","filename":"BATCH-v1-PURCHASE-TEST-20190429-68ed4c5d1d68590a83a6883bd5288984.csv","created_at":"2019-04-29T19:16:37+10:00","process_date":"2019-04-29","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"68ed4c5d1d68590a83a6883bd5288984"},"errors":[],"test":false}'
65
59
  http_version:
66
- recorded_at: Tue, 08 May 2018 11:06:33 GMT
60
+ recorded_at: Mon, 29 Apr 2019 09:16:37 GMT
67
61
  recorded_with: VCR 3.0.3
@@ -2,12 +2,12 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20180508-5ddc3c8f53c9c9534aba4e794a019103.csv
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20190429-e6c52165c040834df09a36e316fab7c9.csv
6
6
  body:
7
7
  encoding: UTF-8
8
- string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20180508-5ddc3c8f53c9c9534aba4e794a019103.csv------FatZebraMultipartPost\r\nContent-Disposition:
9
- form-data; name=\"BATCH-v1-PURCHASE-TEST-20180508-5ddc3c8f53c9c9534aba4e794a019103.csv\";
10
- filename=\"BATCH-v1-PURCHASE-TEST-20180508-5ddc3c8f53c9c9534aba4e794a019103.csv\"\r\nContent-Length:
8
+ string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20190429-e6c52165c040834df09a36e316fab7c9.csv------FatZebraMultipartPost\r\nContent-Disposition:
9
+ form-data; name=\"BATCH-v1-PURCHASE-TEST-20190429-e6c52165c040834df09a36e316fab7c9.csv\";
10
+ filename=\"BATCH-v1-PURCHASE-TEST-20190429-e6c52165c040834df09a36e316fab7c9.csv\"\r\nContent-Length:
11
11
  \r\nContent-Type: text/csv\r\nContent-Transfer-Encoding: binary\r\n\r\n1000,AUD,Order12345,John
12
12
  Doe 1,4444333322221111,12/2020,,Gizmo ABC 1\n2051,AUD,Order22345,John Doe
13
13
  2,4444333322221111,12/2020,,Gizmo ABC 2\n3000,AUD,Order32345,John Doe 3,4444333322221111,12/2020,,Gizmo
@@ -32,7 +32,7 @@ http_interactions:
32
32
  message: Created
33
33
  headers:
34
34
  Date:
35
- - Tue, 08 May 2018 11:06:33 GMT
35
+ - Mon, 29 Apr 2019 09:16:37 GMT
36
36
  Content-Type:
37
37
  - application/json; charset=utf-8
38
38
  Transfer-Encoding:
@@ -44,24 +44,18 @@ http_interactions:
44
44
  Cache-Control:
45
45
  - no-store
46
46
  X-Request-Version:
47
- - 1.16.9-3186@7b619da
47
+ - 1.16.9-3941@c1d8236
48
+ X-Runtime:
49
+ - '0.140717'
48
50
  Pragma:
49
51
  - no-cache
50
- X-Xss-Protection:
51
- - 1; mode=block
52
52
  X-Request-Id:
53
- - 7ffa3eb6c053d5af9c48104f
54
- X-Runtime:
55
- - '0.115521'
56
- X-Frame-Options:
57
- - SAMEORIGIN
58
- X-Content-Type-Options:
59
- - nosniff
53
+ - 830e86c8feaebe8f81022f20
60
54
  X-Backend:
61
55
  - sbox-priv-gateway-a
62
56
  body:
63
57
  encoding: UTF-8
64
- string: '{"successful":true,"response":{"id":"071-BF-WDNPO7WN","filename":"BATCH-v1-PURCHASE-TEST-20180508-5ddc3c8f53c9c9534aba4e794a019103.csv","created_at":"2018-05-08T21:06:33.443+10:00","process_date":"2018-05-08","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"5ddc3c8f53c9c9534aba4e794a019103"},"errors":[],"test":false}'
58
+ string: '{"successful":true,"response":{"id":"071-BF-R2WSJQGM","filename":"BATCH-v1-PURCHASE-TEST-20190429-e6c52165c040834df09a36e316fab7c9.csv","created_at":"2019-04-29T19:16:37+10:00","process_date":"2019-04-29","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"e6c52165c040834df09a36e316fab7c9"},"errors":[],"test":false}'
65
59
  http_version:
66
- recorded_at: Tue, 08 May 2018 11:06:33 GMT
60
+ recorded_at: Mon, 29 Apr 2019 09:16:37 GMT
67
61
  recorded_with: VCR 3.0.3
@@ -2,12 +2,12 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20180508-2ff630db876ed7263141b878a9454806.csv
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20190429-b2aa5a5a325b043f2e044e862afc3215.csv
6
6
  body:
7
7
  encoding: UTF-8
8
- string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20180508-2ff630db876ed7263141b878a9454806.csv------FatZebraMultipartPost\r\nContent-Disposition:
9
- form-data; name=\"BATCH-v1-PURCHASE-TEST-20180508-2ff630db876ed7263141b878a9454806.csv\";
10
- filename=\"BATCH-v1-PURCHASE-TEST-20180508-2ff630db876ed7263141b878a9454806.csv\"\r\nContent-Length:
8
+ string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20190429-b2aa5a5a325b043f2e044e862afc3215.csv------FatZebraMultipartPost\r\nContent-Disposition:
9
+ form-data; name=\"BATCH-v1-PURCHASE-TEST-20190429-b2aa5a5a325b043f2e044e862afc3215.csv\";
10
+ filename=\"BATCH-v1-PURCHASE-TEST-20190429-b2aa5a5a325b043f2e044e862afc3215.csv\"\r\nContent-Length:
11
11
  \r\nContent-Type: text/csv\r\nContent-Transfer-Encoding: binary\r\n\r\n1000,AUD,Order12345,John
12
12
  Doe 1,4444333322221111,12/2020,,Gizmo ABC 1\n2051,AUD,Order22345,John Doe
13
13
  2,4444333322221111,12/2020,,Gizmo ABC 2\n3000,AUD,Order32345,John Doe 3,4444333322221111,12/2020,,Gizmo
@@ -32,7 +32,7 @@ http_interactions:
32
32
  message: Created
33
33
  headers:
34
34
  Date:
35
- - Tue, 08 May 2018 11:06:33 GMT
35
+ - Mon, 29 Apr 2019 09:16:38 GMT
36
36
  Content-Type:
37
37
  - application/json; charset=utf-8
38
38
  Transfer-Encoding:
@@ -44,24 +44,18 @@ http_interactions:
44
44
  Cache-Control:
45
45
  - no-store
46
46
  X-Request-Version:
47
- - 1.16.9-3186@7b619da
47
+ - 1.16.9-3941@c1d8236
48
+ X-Runtime:
49
+ - '0.094806'
48
50
  Pragma:
49
51
  - no-cache
50
- X-Xss-Protection:
51
- - 1; mode=block
52
52
  X-Request-Id:
53
- - f65ec1f4a735e70688834b4c
54
- X-Runtime:
55
- - '0.080920'
56
- X-Frame-Options:
57
- - SAMEORIGIN
58
- X-Content-Type-Options:
59
- - nosniff
53
+ - 224cac923b2e3c8fa5861c76
60
54
  X-Backend:
61
55
  - sbox-priv-gateway-a
62
56
  body:
63
57
  encoding: UTF-8
64
- string: '{"successful":true,"response":{"id":"071-BF-WNWCF1BG","filename":"BATCH-v1-PURCHASE-TEST-20180508-2ff630db876ed7263141b878a9454806.csv","created_at":"2018-05-08T21:06:33.617+10:00","process_date":"2018-05-08","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"2ff630db876ed7263141b878a9454806"},"errors":[],"test":false}'
58
+ string: '{"successful":true,"response":{"id":"071-BF-E568PT00","filename":"BATCH-v1-PURCHASE-TEST-20190429-b2aa5a5a325b043f2e044e862afc3215.csv","created_at":"2019-04-29T19:16:38+10:00","process_date":"2019-04-29","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"b2aa5a5a325b043f2e044e862afc3215"},"errors":[],"test":false}'
65
59
  http_version:
66
- recorded_at: Tue, 08 May 2018 11:06:33 GMT
60
+ recorded_at: Mon, 29 Apr 2019 09:16:38 GMT
67
61
  recorded_with: VCR 3.0.3
@@ -2,16 +2,16 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20180508-f8d94980653f479d98357d8c08274927.csv
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20190429-8b1e43145aff17bfd876abb8f676bb6c.csv
6
6
  body:
7
7
  encoding: UTF-8
8
- string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20180508-f8d94980653f479d98357d8c08274927.csv\";
9
- filename=\"BATCH-v1-PURCHASE-TEST-20180508-f8d94980653f479d98357d8c08274927.csv\"\r\nContent-Length:
8
+ string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20190429-8b1e43145aff17bfd876abb8f676bb6c.csv\";
9
+ filename=\"BATCH-v1-PURCHASE-TEST-20190429-8b1e43145aff17bfd876abb8f676bb6c.csv\"\r\nContent-Length:
10
10
  \r\nContent-Type: text/csv\r\nContent-Transfer-Encoding: binary\r\n\r\n1000,AUD,Order12345,John
11
11
  Doe 1,4444333322221111,12/2020,,Gizmo ABC 1\n2051,AUD,Order22345,John Doe
12
12
  2,4444333322221111,12/2020,,Gizmo ABC 2\n3000,AUD,Order32345,John Doe 3,4444333322221111,12/2020,,Gizmo
13
13
  ABC 3\n4000,AUD,Order42345,John Doe 4,4444333322221111,12/2020,,Gizmo ABC
14
- 4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20180508-f8d94980653f479d98357d8c08274927.csv------FatZebraMultipartPost\r\nContent-Disposition:
14
+ 4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20190429-8b1e43145aff17bfd876abb8f676bb6c.csv------FatZebraMultipartPost\r\nContent-Disposition:
15
15
  form-data; name=\"test\"\r\n\r\ntrue------FatZebraMultipartPost--\r\n"
16
16
  headers:
17
17
  Accept-Encoding:
@@ -32,7 +32,7 @@ http_interactions:
32
32
  message: Created
33
33
  headers:
34
34
  Date:
35
- - Tue, 08 May 2018 11:06:33 GMT
35
+ - Mon, 29 Apr 2019 09:16:38 GMT
36
36
  Content-Type:
37
37
  - application/json; charset=utf-8
38
38
  Transfer-Encoding:
@@ -44,29 +44,23 @@ http_interactions:
44
44
  Cache-Control:
45
45
  - no-store
46
46
  X-Request-Version:
47
- - 1.16.9-3186@7b619da
47
+ - 1.16.9-3941@c1d8236
48
+ X-Runtime:
49
+ - '0.094179'
48
50
  Pragma:
49
51
  - no-cache
50
- X-Xss-Protection:
51
- - 1; mode=block
52
52
  X-Request-Id:
53
- - 0f34451ee821fd1045bc9828
54
- X-Runtime:
55
- - '0.072719'
56
- X-Frame-Options:
57
- - SAMEORIGIN
58
- X-Content-Type-Options:
59
- - nosniff
53
+ - 616099b298d57f59d4e000ec
60
54
  X-Backend:
61
55
  - sbox-priv-gateway-a
62
56
  body:
63
57
  encoding: UTF-8
64
- string: '{"successful":true,"response":{"id":"071-BF-Y066TVBF","filename":"BATCH-v1-PURCHASE-TEST-20180508-f8d94980653f479d98357d8c08274927.csv","created_at":"2018-05-08T21:06:33.795+10:00","process_date":"2018-05-08","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"f8d94980653f479d98357d8c08274927"},"errors":[],"test":false}'
58
+ string: '{"successful":true,"response":{"id":"071-BF-1YWLB49L","filename":"BATCH-v1-PURCHASE-TEST-20190429-8b1e43145aff17bfd876abb8f676bb6c.csv","created_at":"2019-04-29T19:16:38+10:00","process_date":"2019-04-29","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"8b1e43145aff17bfd876abb8f676bb6c"},"errors":[],"test":false}'
65
59
  http_version:
66
- recorded_at: Tue, 08 May 2018 11:06:33 GMT
60
+ recorded_at: Mon, 29 Apr 2019 09:16:38 GMT
67
61
  - request:
68
62
  method: get
69
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/f8d94980653f479d98357d8c08274927?test=true
63
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/8b1e43145aff17bfd876abb8f676bb6c?test=true
70
64
  body:
71
65
  encoding: US-ASCII
72
66
  string: ''
@@ -89,7 +83,7 @@ http_interactions:
89
83
  message: OK
90
84
  headers:
91
85
  Date:
92
- - Tue, 08 May 2018 11:06:33 GMT
86
+ - Mon, 29 Apr 2019 09:16:38 GMT
93
87
  Content-Type:
94
88
  - application/json; charset=utf-8
95
89
  Transfer-Encoding:
@@ -101,24 +95,18 @@ http_interactions:
101
95
  Cache-Control:
102
96
  - no-store
103
97
  X-Request-Version:
104
- - 1.16.9-3186@7b619da
98
+ - 1.16.9-3941@c1d8236
99
+ X-Runtime:
100
+ - '0.016571'
105
101
  Pragma:
106
102
  - no-cache
107
- X-Xss-Protection:
108
- - 1; mode=block
109
103
  X-Request-Id:
110
- - d68ffe2e7f99eb467c640cf6
111
- X-Runtime:
112
- - '0.014937'
113
- X-Frame-Options:
114
- - SAMEORIGIN
115
- X-Content-Type-Options:
116
- - nosniff
104
+ - a5b06e572efbd1ebbf7e7cc4
117
105
  X-Backend:
118
106
  - sbox-priv-gateway-a
119
107
  body:
120
108
  encoding: UTF-8
121
- string: '{"successful":true,"response":{"id":"071-BF-Y066TVBF","filename":"BATCH-v1-PURCHASE-TEST-20180508-f8d94980653f479d98357d8c08274927.csv","created_at":"2018-05-08T21:06:33.795+10:00","process_date":"2018-05-08","start_date":null,"completed_date":null,"status":"Error","type":"PURCHASE","reference":"f8d94980653f479d98357d8c08274927"},"errors":[],"test":true}'
109
+ string: '{"successful":true,"response":{"id":"071-BF-1YWLB49L","filename":"BATCH-v1-PURCHASE-TEST-20190429-8b1e43145aff17bfd876abb8f676bb6c.csv","created_at":"2019-04-29T19:16:38+10:00","process_date":"2019-04-29","start_date":null,"completed_date":null,"status":"Ingesting","type":"PURCHASE","reference":"8b1e43145aff17bfd876abb8f676bb6c"},"errors":[],"test":true}'
122
110
  http_version:
123
- recorded_at: Tue, 08 May 2018 11:06:33 GMT
111
+ recorded_at: Mon, 29 Apr 2019 09:16:38 GMT
124
112
  recorded_with: VCR 3.0.3
@@ -2,16 +2,16 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20180508-ea5228f9920ffea1644fa3a3ee6d88ad.csv
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20190429-83a85cdf43c5d13dc0c063e7c8526331.csv
6
6
  body:
7
7
  encoding: UTF-8
8
- string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20180508-ea5228f9920ffea1644fa3a3ee6d88ad.csv\";
9
- filename=\"BATCH-v1-PURCHASE-TEST-20180508-ea5228f9920ffea1644fa3a3ee6d88ad.csv\"\r\nContent-Length:
8
+ string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20190429-83a85cdf43c5d13dc0c063e7c8526331.csv\";
9
+ filename=\"BATCH-v1-PURCHASE-TEST-20190429-83a85cdf43c5d13dc0c063e7c8526331.csv\"\r\nContent-Length:
10
10
  \r\nContent-Type: text/csv\r\nContent-Transfer-Encoding: binary\r\n\r\n1000,AUD,Order12345,John
11
11
  Doe 1,4444333322221111,12/2020,,Gizmo ABC 1\n2051,AUD,Order22345,John Doe
12
12
  2,4444333322221111,12/2020,,Gizmo ABC 2\n3000,AUD,Order32345,John Doe 3,4444333322221111,12/2020,,Gizmo
13
13
  ABC 3\n4000,AUD,Order42345,John Doe 4,4444333322221111,12/2020,,Gizmo ABC
14
- 4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20180508-ea5228f9920ffea1644fa3a3ee6d88ad.csv------FatZebraMultipartPost\r\nContent-Disposition:
14
+ 4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20190429-83a85cdf43c5d13dc0c063e7c8526331.csv------FatZebraMultipartPost\r\nContent-Disposition:
15
15
  form-data; name=\"test\"\r\n\r\ntrue------FatZebraMultipartPost--\r\n"
16
16
  headers:
17
17
  Accept-Encoding:
@@ -32,7 +32,7 @@ http_interactions:
32
32
  message: Created
33
33
  headers:
34
34
  Date:
35
- - Tue, 08 May 2018 11:06:34 GMT
35
+ - Mon, 29 Apr 2019 09:16:38 GMT
36
36
  Content-Type:
37
37
  - application/json; charset=utf-8
38
38
  Transfer-Encoding:
@@ -44,29 +44,23 @@ http_interactions:
44
44
  Cache-Control:
45
45
  - no-store
46
46
  X-Request-Version:
47
- - 1.16.9-3186@7b619da
47
+ - 1.16.9-3941@c1d8236
48
+ X-Runtime:
49
+ - '0.142686'
48
50
  Pragma:
49
51
  - no-cache
50
- X-Xss-Protection:
51
- - 1; mode=block
52
52
  X-Request-Id:
53
- - 7e8f86ccbd9a20dccf1442e6
54
- X-Runtime:
55
- - '0.096015'
56
- X-Frame-Options:
57
- - SAMEORIGIN
58
- X-Content-Type-Options:
59
- - nosniff
53
+ - 88468008436a7dc061cb001c
60
54
  X-Backend:
61
55
  - sbox-priv-gateway-a
62
56
  body:
63
57
  encoding: UTF-8
64
- string: '{"successful":true,"response":{"id":"071-BF-7XKGF6LN","filename":"BATCH-v1-PURCHASE-TEST-20180508-ea5228f9920ffea1644fa3a3ee6d88ad.csv","created_at":"2018-05-08T21:06:34.074+10:00","process_date":"2018-05-08","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"ea5228f9920ffea1644fa3a3ee6d88ad"},"errors":[],"test":false}'
58
+ string: '{"successful":true,"response":{"id":"071-BF-DLDB6ABY","filename":"BATCH-v1-PURCHASE-TEST-20190429-83a85cdf43c5d13dc0c063e7c8526331.csv","created_at":"2019-04-29T19:16:38+10:00","process_date":"2019-04-29","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"83a85cdf43c5d13dc0c063e7c8526331"},"errors":[],"test":false}'
65
59
  http_version:
66
- recorded_at: Tue, 08 May 2018 11:06:34 GMT
60
+ recorded_at: Mon, 29 Apr 2019 09:16:38 GMT
67
61
  - request:
68
62
  method: get
69
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/ea5228f9920ffea1644fa3a3ee6d88ad?test=true
63
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/83a85cdf43c5d13dc0c063e7c8526331?test=true
70
64
  body:
71
65
  encoding: US-ASCII
72
66
  string: ''
@@ -89,7 +83,7 @@ http_interactions:
89
83
  message: OK
90
84
  headers:
91
85
  Date:
92
- - Tue, 08 May 2018 11:06:34 GMT
86
+ - Mon, 29 Apr 2019 09:16:38 GMT
93
87
  Content-Type:
94
88
  - application/json; charset=utf-8
95
89
  Transfer-Encoding:
@@ -101,24 +95,18 @@ http_interactions:
101
95
  Cache-Control:
102
96
  - no-store
103
97
  X-Request-Version:
104
- - 1.16.9-3186@7b619da
98
+ - 1.16.9-3941@c1d8236
99
+ X-Runtime:
100
+ - '0.018531'
105
101
  Pragma:
106
102
  - no-cache
107
- X-Xss-Protection:
108
- - 1; mode=block
109
103
  X-Request-Id:
110
- - 1cefa48c2ab980e677f4970a
111
- X-Runtime:
112
- - '0.014976'
113
- X-Frame-Options:
114
- - SAMEORIGIN
115
- X-Content-Type-Options:
116
- - nosniff
104
+ - cc25d10466c7c8fcfa6b0d60
117
105
  X-Backend:
118
106
  - sbox-priv-gateway-a
119
107
  body:
120
108
  encoding: UTF-8
121
- string: '{"successful":true,"response":{"id":"071-BF-7XKGF6LN","filename":"BATCH-v1-PURCHASE-TEST-20180508-ea5228f9920ffea1644fa3a3ee6d88ad.csv","created_at":"2018-05-08T21:06:34.074+10:00","process_date":"2018-05-08","start_date":null,"completed_date":null,"status":"Ingesting","type":"PURCHASE","reference":"ea5228f9920ffea1644fa3a3ee6d88ad"},"errors":[],"test":true}'
109
+ string: '{"successful":true,"response":{"id":"071-BF-DLDB6ABY","filename":"BATCH-v1-PURCHASE-TEST-20190429-83a85cdf43c5d13dc0c063e7c8526331.csv","created_at":"2019-04-29T19:16:38+10:00","process_date":"2019-04-29","start_date":null,"completed_date":null,"status":"Error","type":"PURCHASE","reference":"83a85cdf43c5d13dc0c063e7c8526331"},"errors":[],"test":true}'
122
110
  http_version:
123
- recorded_at: Tue, 08 May 2018 11:06:34 GMT
111
+ recorded_at: Mon, 29 Apr 2019 09:16:38 GMT
124
112
  recorded_with: VCR 3.0.3
@@ -2,16 +2,16 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20180508-f65cb435bc136f6fcec6a8ac7534d4e3.csv
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/BATCH-v1-PURCHASE-TEST-20190429-e4aec7551f68275026da1312f5fb5ce5.csv
6
6
  body:
7
7
  encoding: UTF-8
8
- string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20180508-f65cb435bc136f6fcec6a8ac7534d4e3.csv\";
9
- filename=\"BATCH-v1-PURCHASE-TEST-20180508-f65cb435bc136f6fcec6a8ac7534d4e3.csv\"\r\nContent-Length:
8
+ string: "------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"BATCH-v1-PURCHASE-TEST-20190429-e4aec7551f68275026da1312f5fb5ce5.csv\";
9
+ filename=\"BATCH-v1-PURCHASE-TEST-20190429-e4aec7551f68275026da1312f5fb5ce5.csv\"\r\nContent-Length:
10
10
  \r\nContent-Type: text/csv\r\nContent-Transfer-Encoding: binary\r\n\r\n1000,AUD,Order12345,John
11
11
  Doe 1,4444333322221111,12/2020,,Gizmo ABC 1\n2051,AUD,Order22345,John Doe
12
12
  2,4444333322221111,12/2020,,Gizmo ABC 2\n3000,AUD,Order32345,John Doe 3,4444333322221111,12/2020,,Gizmo
13
13
  ABC 3\n4000,AUD,Order42345,John Doe 4,4444333322221111,12/2020,,Gizmo ABC
14
- 4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20180508-f65cb435bc136f6fcec6a8ac7534d4e3.csv------FatZebraMultipartPost\r\nContent-Disposition:
14
+ 4\n\r\n------FatZebraMultipartPost\r\nContent-Disposition: form-data; name=\"filename\"\r\n\r\nBATCH-v1-PURCHASE-TEST-20190429-e4aec7551f68275026da1312f5fb5ce5.csv------FatZebraMultipartPost\r\nContent-Disposition:
15
15
  form-data; name=\"test\"\r\n\r\ntrue------FatZebraMultipartPost--\r\n"
16
16
  headers:
17
17
  Accept-Encoding:
@@ -32,7 +32,7 @@ http_interactions:
32
32
  message: Created
33
33
  headers:
34
34
  Date:
35
- - Tue, 08 May 2018 11:06:34 GMT
35
+ - Mon, 29 Apr 2019 09:16:38 GMT
36
36
  Content-Type:
37
37
  - application/json; charset=utf-8
38
38
  Transfer-Encoding:
@@ -44,29 +44,23 @@ http_interactions:
44
44
  Cache-Control:
45
45
  - no-store
46
46
  X-Request-Version:
47
- - 1.16.9-3186@7b619da
47
+ - 1.16.9-3941@c1d8236
48
+ X-Runtime:
49
+ - '0.120164'
48
50
  Pragma:
49
51
  - no-cache
50
- X-Xss-Protection:
51
- - 1; mode=block
52
52
  X-Request-Id:
53
- - de7cad5027405a489fe1efca
54
- X-Runtime:
55
- - '0.132894'
56
- X-Frame-Options:
57
- - SAMEORIGIN
58
- X-Content-Type-Options:
59
- - nosniff
53
+ - 2e6915961e9f4cdf948c71fc
60
54
  X-Backend:
61
55
  - sbox-priv-gateway-a
62
56
  body:
63
57
  encoding: UTF-8
64
- string: '{"successful":true,"response":{"id":"071-BF-57Y82BLX","filename":"BATCH-v1-PURCHASE-TEST-20180508-f65cb435bc136f6fcec6a8ac7534d4e3.csv","created_at":"2018-05-08T21:06:34.688+10:00","process_date":"2018-05-08","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"f65cb435bc136f6fcec6a8ac7534d4e3"},"errors":[],"test":false}'
58
+ string: '{"successful":true,"response":{"id":"071-BF-JJXK2KHE","filename":"BATCH-v1-PURCHASE-TEST-20190429-e4aec7551f68275026da1312f5fb5ce5.csv","created_at":"2019-04-29T19:16:38+10:00","process_date":"2019-04-29","start_date":null,"completed_date":null,"status":"New","type":"PURCHASE","reference":"e4aec7551f68275026da1312f5fb5ce5"},"errors":[],"test":false}'
65
59
  http_version:
66
- recorded_at: Tue, 08 May 2018 11:06:34 GMT
60
+ recorded_at: Mon, 29 Apr 2019 09:16:39 GMT
67
61
  - request:
68
62
  method: get
69
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/f65cb435bc136f6fcec6a8ac7534d4e3?test=true
63
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/e4aec7551f68275026da1312f5fb5ce5?test=true
70
64
  body:
71
65
  encoding: US-ASCII
72
66
  string: ''
@@ -89,7 +83,7 @@ http_interactions:
89
83
  message: OK
90
84
  headers:
91
85
  Date:
92
- - Tue, 08 May 2018 11:06:34 GMT
86
+ - Mon, 29 Apr 2019 09:16:39 GMT
93
87
  Content-Type:
94
88
  - application/json; charset=utf-8
95
89
  Transfer-Encoding:
@@ -101,29 +95,23 @@ http_interactions:
101
95
  Cache-Control:
102
96
  - no-store
103
97
  X-Request-Version:
104
- - 1.16.9-3186@7b619da
98
+ - 1.16.9-3941@c1d8236
99
+ X-Runtime:
100
+ - '0.017735'
105
101
  Pragma:
106
102
  - no-cache
107
- X-Xss-Protection:
108
- - 1; mode=block
109
103
  X-Request-Id:
110
- - 01b134c445e2de248c979ef2
111
- X-Runtime:
112
- - '0.011982'
113
- X-Frame-Options:
114
- - SAMEORIGIN
115
- X-Content-Type-Options:
116
- - nosniff
104
+ - 03a5f9c04b2669a02e59e04c
117
105
  X-Backend:
118
106
  - sbox-priv-gateway-a
119
107
  body:
120
108
  encoding: UTF-8
121
- string: '{"successful":true,"response":{"id":"071-BF-57Y82BLX","filename":"BATCH-v1-PURCHASE-TEST-20180508-f65cb435bc136f6fcec6a8ac7534d4e3.csv","created_at":"2018-05-08T21:06:34.688+10:00","process_date":"2018-05-08","start_date":null,"completed_date":null,"status":"Ingesting","type":"PURCHASE","reference":"f65cb435bc136f6fcec6a8ac7534d4e3"},"errors":[],"test":true}'
109
+ string: '{"successful":true,"response":{"id":"071-BF-JJXK2KHE","filename":"BATCH-v1-PURCHASE-TEST-20190429-e4aec7551f68275026da1312f5fb5ce5.csv","created_at":"2019-04-29T19:16:38+10:00","process_date":"2019-04-29","start_date":null,"completed_date":null,"status":"Error","type":"PURCHASE","reference":"e4aec7551f68275026da1312f5fb5ce5"},"errors":[],"test":true}'
122
110
  http_version:
123
- recorded_at: Tue, 08 May 2018 11:06:34 GMT
111
+ recorded_at: Mon, 29 Apr 2019 09:16:39 GMT
124
112
  - request:
125
113
  method: get
126
- uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/071-BF-57Y82BLX/result.csv?test=true
114
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/batches/071-BF-JJXK2KHE/result.csv?test=true
127
115
  body:
128
116
  encoding: US-ASCII
129
117
  string: ''
@@ -146,7 +134,7 @@ http_interactions:
146
134
  message: Unprocessable Entity
147
135
  headers:
148
136
  Date:
149
- - Tue, 08 May 2018 11:06:34 GMT
137
+ - Mon, 29 Apr 2019 09:16:39 GMT
150
138
  Content-Type:
151
139
  - application/json; charset=utf-8
152
140
  Transfer-Encoding:
@@ -158,24 +146,18 @@ http_interactions:
158
146
  Cache-Control:
159
147
  - no-store
160
148
  X-Request-Version:
161
- - 1.16.9-3186@7b619da
149
+ - 1.16.9-3941@c1d8236
150
+ X-Runtime:
151
+ - '0.016970'
162
152
  Pragma:
163
153
  - no-cache
164
- X-Xss-Protection:
165
- - 1; mode=block
166
154
  X-Request-Id:
167
- - a148505016e740ba56a1590c
168
- X-Runtime:
169
- - '0.028438'
170
- X-Frame-Options:
171
- - SAMEORIGIN
172
- X-Content-Type-Options:
173
- - nosniff
155
+ - f7d1ffe8bd21153a5929a550
174
156
  X-Backend:
175
157
  - sbox-priv-gateway-a
176
158
  body:
177
159
  encoding: UTF-8
178
160
  string: Batch is not yet completed
179
161
  http_version:
180
- recorded_at: Tue, 08 May 2018 11:06:34 GMT
162
+ recorded_at: Mon, 29 Apr 2019 09:16:39 GMT
181
163
  recorded_with: VCR 3.0.3