fat_zebra 2.0.13 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (233) hide show
  1. checksums.yaml +5 -13
  2. data/.rubocop.yml +42 -0
  3. data/.travis.yml +9 -2
  4. data/Gemfile +1 -1
  5. data/{README.markdown → README.md} +19 -20
  6. data/Rakefile +2 -12
  7. data/fat_zebra.gemspec +27 -0
  8. data/lib/fat_zebra/api_operation/delete.rb +38 -0
  9. data/lib/fat_zebra/api_operation/find.rb +23 -0
  10. data/lib/fat_zebra/api_operation/save.rb +62 -0
  11. data/lib/fat_zebra/api_operation/search.rb +32 -0
  12. data/lib/fat_zebra/api_operation/void.rb +52 -0
  13. data/lib/fat_zebra/api_resource.rb +135 -0
  14. data/lib/fat_zebra/bank_account.rb +21 -0
  15. data/lib/fat_zebra/batch.rb +56 -0
  16. data/lib/fat_zebra/card.rb +22 -0
  17. data/lib/fat_zebra/config.rb +65 -25
  18. data/lib/fat_zebra/customer.rb +27 -0
  19. data/lib/fat_zebra/direct_credit.rb +27 -0
  20. data/lib/fat_zebra/direct_debit.rb +27 -0
  21. data/lib/fat_zebra/errors.rb +18 -4
  22. data/lib/fat_zebra/fat_zebra_object.rb +179 -0
  23. data/lib/fat_zebra/information.rb +25 -0
  24. data/lib/fat_zebra/payment_plan.rb +62 -0
  25. data/lib/fat_zebra/purchase.rb +99 -0
  26. data/lib/fat_zebra/refund.rb +25 -0
  27. data/lib/fat_zebra/request/multipart/epilogue.rb +23 -0
  28. data/lib/fat_zebra/request/multipart/file_io.rb +40 -0
  29. data/lib/fat_zebra/request/multipart/param.rb +37 -0
  30. data/lib/fat_zebra/request/multipart/part.rb +28 -0
  31. data/lib/fat_zebra/request/multipart/stream.rb +55 -0
  32. data/lib/fat_zebra/request.rb +162 -0
  33. data/lib/fat_zebra/util.rb +70 -0
  34. data/lib/fat_zebra/validation.rb +47 -0
  35. data/lib/fat_zebra/version.rb +1 -1
  36. data/lib/fat_zebra/web_hook.rb +23 -0
  37. data/lib/fat_zebra.rb +51 -55
  38. data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +57 -0
  39. data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +57 -0
  40. data/spec/cassettes/FatZebra_BankAccount/_create/validations/1_1_3_1.yml +57 -0
  41. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +172 -0
  42. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +172 -0
  43. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +172 -0
  44. data/spec/cassettes/FatZebra_Batch/_create/1_1_1.yml +58 -0
  45. data/spec/cassettes/FatZebra_Batch/_create/1_1_2.yml +58 -0
  46. data/spec/cassettes/FatZebra_Batch/_create/validations/1_1_3_1.yml +57 -0
  47. data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +58 -0
  48. data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +58 -0
  49. data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +58 -0
  50. data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +58 -0
  51. data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +109 -0
  52. data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +109 -0
  53. data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +160 -0
  54. data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +54 -0
  55. data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +54 -0
  56. data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +54 -0
  57. data/spec/cassettes/FatZebra_Card/_create/1_1_1.yml +55 -0
  58. data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +55 -0
  59. data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +55 -0
  60. data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +55 -0
  61. data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +55 -0
  62. data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +55 -0
  63. data/spec/cassettes/FatZebra_Card/_create/validations/1_1_7_1.yml +56 -0
  64. data/spec/cassettes/FatZebra_Card/_update/1_2_1.yml +105 -0
  65. data/spec/cassettes/FatZebra_Card/_update/1_2_2.yml +105 -0
  66. data/spec/cassettes/FatZebra_Card/_update/1_2_3.yml +105 -0
  67. data/spec/cassettes/FatZebra_Card/_update/validations/1_2_4_1.yml +55 -0
  68. data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +59 -0
  69. data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +59 -0
  70. data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +59 -0
  71. data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +59 -0
  72. data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +59 -0
  73. data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +59 -0
  74. data/spec/cassettes/FatZebra_Customer/_create/validations/1_1_7_1.yml +56 -0
  75. data/spec/cassettes/FatZebra_Customer/_delete/1_4_1.yml +113 -0
  76. data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +113 -0
  77. data/spec/cassettes/FatZebra_Customer/_find/1_2_1.yml +111 -0
  78. data/spec/cassettes/FatZebra_Customer/_find/1_2_2.yml +111 -0
  79. data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +111 -0
  80. data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +111 -0
  81. data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +56 -0
  82. data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +56 -0
  83. data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +56 -0
  84. data/spec/cassettes/FatZebra_Customer/_update/1_3_1.yml +114 -0
  85. data/spec/cassettes/FatZebra_Customer/_update/1_3_2.yml +114 -0
  86. data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +114 -0
  87. data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +114 -0
  88. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +56 -0
  89. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +56 -0
  90. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +56 -0
  91. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +56 -0
  92. data/spec/cassettes/FatZebra_DirectCredit/_create/validations/1_1_5_1.yml +59 -0
  93. data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +109 -0
  94. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +107 -0
  95. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +107 -0
  96. data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +160 -0
  97. data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +160 -0
  98. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +56 -0
  99. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +56 -0
  100. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +56 -0
  101. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +56 -0
  102. data/spec/cassettes/FatZebra_DirectDebit/_create/validations/1_1_5_1.yml +59 -0
  103. data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +109 -0
  104. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +107 -0
  105. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +107 -0
  106. data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +160 -0
  107. data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +160 -0
  108. data/spec/cassettes/FatZebra_Information/_ping/1_1_1.yml +54 -0
  109. data/spec/cassettes/FatZebra_Information/_ping/1_1_2.yml +54 -0
  110. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_7_1.yml +238 -0
  111. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_7_2.yml +238 -0
  112. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +238 -0
  113. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +238 -0
  114. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +118 -0
  115. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +118 -0
  116. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +118 -0
  117. data/spec/cassettes/FatZebra_PaymentPlan/_create/validations/1_1_4_1.yml +55 -0
  118. data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +172 -0
  119. data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +172 -0
  120. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +175 -0
  121. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +175 -0
  122. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +175 -0
  123. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_6_1.yml +178 -0
  124. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_6_2.yml +178 -0
  125. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +178 -0
  126. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +178 -0
  127. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +172 -0
  128. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +172 -0
  129. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +172 -0
  130. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +178 -0
  131. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +178 -0
  132. data/spec/cassettes/FatZebra_Purchase/_capture/1_5_1.yml +111 -0
  133. data/spec/cassettes/FatZebra_Purchase/_capture/1_5_2.yml +111 -0
  134. data/spec/cassettes/FatZebra_Purchase/_capture/1_6_1.yml +111 -0
  135. data/spec/cassettes/FatZebra_Purchase/_capture/1_6_2.yml +111 -0
  136. data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +57 -0
  137. data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +57 -0
  138. data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +57 -0
  139. data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +57 -0
  140. data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +57 -0
  141. data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +57 -0
  142. data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +57 -0
  143. data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +57 -0
  144. data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +57 -0
  145. data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +57 -0
  146. data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +57 -0
  147. data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +57 -0
  148. data/spec/cassettes/FatZebra_Purchase/_find/1_2_1.yml +109 -0
  149. data/spec/cassettes/FatZebra_Purchase/_find/1_2_2.yml +109 -0
  150. data/spec/cassettes/FatZebra_Purchase/_find/1_2_3.yml +109 -0
  151. data/spec/cassettes/FatZebra_Purchase/_find/1_4_1.yml +109 -0
  152. data/spec/cassettes/FatZebra_Purchase/_find/1_4_2.yml +109 -0
  153. data/spec/cassettes/FatZebra_Purchase/_find/1_4_3.yml +109 -0
  154. data/spec/cassettes/FatZebra_Purchase/_refund/1_4_1.yml +111 -0
  155. data/spec/cassettes/FatZebra_Purchase/_refund/1_4_2.yml +111 -0
  156. data/spec/cassettes/FatZebra_Purchase/_refund/1_5_1.yml +111 -0
  157. data/spec/cassettes/FatZebra_Purchase/_refund/1_5_2.yml +111 -0
  158. data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +170 -0
  159. data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +170 -0
  160. data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +170 -0
  161. data/spec/cassettes/FatZebra_Purchase/_search/with_data/1_3_2_1.yml +164 -0
  162. data/spec/cassettes/FatZebra_Purchase/_search/with_data/1_3_2_2.yml +165 -0
  163. data/spec/cassettes/FatZebra_Purchase/_search/with_data/1_3_2_3.yml +164 -0
  164. data/spec/cassettes/FatZebra_Purchase/_search/without_data/1_3_1_1.yml +54 -0
  165. data/spec/cassettes/FatZebra_Purchase/_search/without_data/1_3_1_2.yml +54 -0
  166. data/spec/cassettes/FatZebra_Purchase/_search/without_data/1_3_1_3.yml +54 -0
  167. data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_1.yml +613 -0
  168. data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_2.yml +615 -0
  169. data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_3.yml +617 -0
  170. data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +111 -0
  171. data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +111 -0
  172. data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +111 -0
  173. data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +111 -0
  174. data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +111 -0
  175. data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +111 -0
  176. data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +111 -0
  177. data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +111 -0
  178. data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +111 -0
  179. data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +111 -0
  180. data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +111 -0
  181. data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +111 -0
  182. data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +111 -0
  183. data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +111 -0
  184. data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +111 -0
  185. data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +163 -0
  186. data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +163 -0
  187. data/spec/cassettes/FatZebra_Refund/_search/1_3_1.yml +281 -0
  188. data/spec/cassettes/FatZebra_Refund/_search/1_3_2.yml +281 -0
  189. data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +165 -0
  190. data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +165 -0
  191. data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +165 -0
  192. data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +57 -0
  193. data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +57 -0
  194. data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +57 -0
  195. data/spec/cassettes/FatZebra_WebHook/_create/validations/1_1_4_1.yml +56 -0
  196. data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +111 -0
  197. data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +222 -0
  198. data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +224 -0
  199. data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +112 -0
  200. data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +112 -0
  201. data/spec/fixtures/batch_test.csv +4 -0
  202. data/spec/lib/fat_zebra/bank_account_spec.rb +34 -0
  203. data/spec/lib/fat_zebra/batch_spec.rb +59 -0
  204. data/spec/lib/fat_zebra/card_spec.rb +41 -0
  205. data/spec/lib/fat_zebra/config_spec.rb +52 -0
  206. data/spec/lib/fat_zebra/customer_spec.rb +53 -0
  207. data/spec/lib/fat_zebra/direct_credit_spec.rb +53 -0
  208. data/spec/lib/fat_zebra/direct_debit_spec.rb +53 -0
  209. data/spec/lib/fat_zebra/fat_zebra_object_spec.rb +116 -0
  210. data/spec/lib/fat_zebra/information_spec.rb +13 -0
  211. data/spec/lib/fat_zebra/payment_plan_spec.rb +94 -0
  212. data/spec/lib/fat_zebra/purchase_spec.rb +92 -0
  213. data/spec/lib/fat_zebra/refund_spec.rb +72 -0
  214. data/spec/lib/fat_zebra/util_spec.rb +24 -0
  215. data/spec/lib/fat_zebra/validation_spec.rb +22 -0
  216. data/spec/lib/fat_zebra/web_hook_spec.rb +50 -0
  217. data/spec/spec_helper.rb +49 -3
  218. data/spec/support/payloads.rb +43 -0
  219. metadata +238 -65
  220. data/FatZebra.gemspec +0 -31
  221. data/lib/fat_zebra/constants.rb +0 -2
  222. data/lib/fat_zebra/gateway.rb +0 -292
  223. data/lib/fat_zebra/models/base.rb +0 -33
  224. data/lib/fat_zebra/models/card.rb +0 -49
  225. data/lib/fat_zebra/models/purchase.rb +0 -185
  226. data/lib/fat_zebra/models/refund.rb +0 -46
  227. data/lib/fat_zebra/models/response.rb +0 -33
  228. data/lib/rest-client/request_ext.rb +0 -15
  229. data/spec/config_spec.rb +0 -37
  230. data/spec/gateway_spec.rb +0 -120
  231. data/spec/models/purchase_spec.rb +0 -55
  232. data/spec/models/refund_spec.rb +0 -9
  233. data/spec/models/response_spec.rb +0 -25
@@ -0,0 +1,172 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"first_name":"Harrold","last_name":"Humphries","reference":"01d51d1369f3885622fbd0971b3335fc","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
9
+ Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
10
+ Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
11
+ headers:
12
+ Accept:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip, deflate
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '394'
20
+ User-Agent:
21
+ - Ruby
22
+ Authorization:
23
+ - Basic VEVTVDpURVNU
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Mon, 26 Jun 2017 06:15:56 GMT
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Status:
38
+ - 200 OK
39
+ X-Rack-Cache:
40
+ - invalidate, pass
41
+ Cache-Control:
42
+ - no-store
43
+ X-Request-Version:
44
+ - 1.19.41
45
+ X-Runtime:
46
+ - '0.259639'
47
+ Pragma:
48
+ - no-cache
49
+ X-Request-Id:
50
+ - 8651a6015c3f43d771da46e7d04f1a92
51
+ X-Backend:
52
+ - sbox-priv-gateway-a
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"successful":true,"response":{"id":"071-C-B605Q6U8","email":null,"reference":"01d51d1369f3885622fbd0971b3335fc","first_name":"Harrold","last_name":"Humphries","created_at":"2017-06-26T16:15:56+10:00","address":{"address":"1
56
+ Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke86c5u","card_number":"512345XXXXXX2346","bank_account":null,"metadata":{}},"errors":[],"test":true}'
57
+ http_version:
58
+ recorded_at: Mon, 26 Jun 2017 06:15:56 GMT
59
+ - request:
60
+ method: post
61
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
62
+ body:
63
+ encoding: UTF-8
64
+ string: '{"payment_method":"Credit Card","customer":"071-C-B605Q6U8","reference":"46c11c89887ee8317d4e126d192b059d","setup_fee":0,"amount":100,"start_date":"2015-07-16","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"currency":"AUD","test":true}'
65
+ headers:
66
+ Accept:
67
+ - application/json
68
+ Accept-Encoding:
69
+ - gzip, deflate
70
+ Content-Type:
71
+ - application/json
72
+ Content-Length:
73
+ - '261'
74
+ User-Agent:
75
+ - Ruby
76
+ Authorization:
77
+ - Basic VEVTVDpURVNU
78
+ response:
79
+ status:
80
+ code: 201
81
+ message: Created
82
+ headers:
83
+ Date:
84
+ - Mon, 26 Jun 2017 06:15:56 GMT
85
+ Content-Type:
86
+ - application/json; charset=utf-8
87
+ Transfer-Encoding:
88
+ - chunked
89
+ Connection:
90
+ - keep-alive
91
+ Status:
92
+ - 201 Created
93
+ Cache-Control:
94
+ - no-store
95
+ X-Request-Version:
96
+ - 1.19.41
97
+ Pragma:
98
+ - no-cache
99
+ X-Request-Id:
100
+ - 80d9ee315960c2c82bd1f12714e9c7cf
101
+ X-Runtime:
102
+ - '0.214963'
103
+ X-Rack-Cache:
104
+ - invalidate, pass
105
+ X-Backend:
106
+ - sbox-priv-gateway-a
107
+ body:
108
+ encoding: UTF-8
109
+ string: '{"successful":true,"response":{"id":"071-PP-3VZFZHKA","customer":"071-C-B605Q6U8","amount":100,"currency":"AUD","setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2015-07-16","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
110
+ Card","reference":"46c11c89887ee8317d4e126d192b059d","description":null,"status":"Active","status_reason":"None","created_at":"2017-06-26T16:15:56+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-WKEW7C73","payment_plan":"071-PP-3VZFZHKA","reference":"46c11c89887ee8317d4e126d192b059d-0001","amount":100,"currency":"AUD","scheduled_date":"2017-06-30","payment_method":"Credit
111
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-EQT6QV6R","payment_plan":"071-PP-3VZFZHKA","reference":"46c11c89887ee8317d4e126d192b059d-0002","amount":100,"currency":"AUD","scheduled_date":"2017-07-07","payment_method":"Credit
112
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-5SW3JVVD","payment_plan":"071-PP-3VZFZHKA","reference":"46c11c89887ee8317d4e126d192b059d-0003","amount":100,"currency":"AUD","scheduled_date":"2017-07-14","payment_method":"Credit
113
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-Q7AWL0FS","payment_plan":"071-PP-3VZFZHKA","reference":"46c11c89887ee8317d4e126d192b059d-0004","amount":100,"currency":"AUD","scheduled_date":"2017-07-21","payment_method":"Credit
114
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-YHUAPEQQ","payment_plan":"071-PP-3VZFZHKA","reference":"46c11c89887ee8317d4e126d192b059d-0005","amount":100,"currency":"AUD","scheduled_date":"2017-07-28","payment_method":"Credit
115
+ Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
116
+ http_version:
117
+ recorded_at: Mon, 26 Jun 2017 06:15:56 GMT
118
+ - request:
119
+ method: delete
120
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-3VZFZHKA
121
+ body:
122
+ encoding: UTF-8
123
+ string: '{"test":true}'
124
+ headers:
125
+ Accept:
126
+ - application/json
127
+ Accept-Encoding:
128
+ - gzip, deflate
129
+ Content-Type:
130
+ - application/json
131
+ Content-Length:
132
+ - '13'
133
+ User-Agent:
134
+ - Ruby
135
+ Authorization:
136
+ - Basic VEVTVDpURVNU
137
+ response:
138
+ status:
139
+ code: 200
140
+ message: OK
141
+ headers:
142
+ Date:
143
+ - Mon, 26 Jun 2017 06:15:56 GMT
144
+ Content-Type:
145
+ - application/json; charset=utf-8
146
+ Transfer-Encoding:
147
+ - chunked
148
+ Connection:
149
+ - keep-alive
150
+ Status:
151
+ - 200 OK
152
+ X-Rack-Cache:
153
+ - invalidate, pass
154
+ Cache-Control:
155
+ - no-store
156
+ X-Request-Version:
157
+ - 1.19.41
158
+ X-Runtime:
159
+ - '0.096447'
160
+ Pragma:
161
+ - no-cache
162
+ X-Request-Id:
163
+ - 01d3c7240904639de8ec18b73e1bf88d
164
+ X-Backend:
165
+ - sbox-priv-gateway-a
166
+ body:
167
+ encoding: UTF-8
168
+ string: '{"successful":true,"response":{"id":"071-PP-3VZFZHKA","customer":"071-C-B605Q6U8","amount":100,"currency":"AUD","setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2015-07-16","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
169
+ Card","reference":"46c11c89887ee8317d4e126d192b059d","description":null,"status":"Cancelled","status_reason":"Other","created_at":"2017-06-26T16:15:56+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
170
+ http_version:
171
+ recorded_at: Mon, 26 Jun 2017 06:15:56 GMT
172
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,172 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"first_name":"Harrold","last_name":"Humphries","reference":"0f8a16b19ea3c14fcaeed2e199f6fae1","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
9
+ Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
10
+ Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
11
+ headers:
12
+ Accept:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip, deflate
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '394'
20
+ User-Agent:
21
+ - Ruby
22
+ Authorization:
23
+ - Basic VEVTVDpURVNU
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Mon, 26 Jun 2017 06:27:02 GMT
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Status:
38
+ - 200 OK
39
+ Cache-Control:
40
+ - no-store
41
+ X-Request-Version:
42
+ - 1.19.41
43
+ Pragma:
44
+ - no-cache
45
+ X-Request-Id:
46
+ - 490377dfbfc2ce0a7647a980b03bba61
47
+ X-Runtime:
48
+ - '0.243137'
49
+ X-Rack-Cache:
50
+ - invalidate, pass
51
+ X-Backend:
52
+ - sbox-priv-gateway-a
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"successful":true,"response":{"id":"071-C-P0PANVCB","email":null,"reference":"0f8a16b19ea3c14fcaeed2e199f6fae1","first_name":"Harrold","last_name":"Humphries","created_at":"2017-06-26T16:27:02+10:00","address":{"address":"1
56
+ Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke86c5u","card_number":"512345XXXXXX2346","bank_account":null,"metadata":{}},"errors":[],"test":true}'
57
+ http_version:
58
+ recorded_at: Mon, 26 Jun 2017 06:27:02 GMT
59
+ - request:
60
+ method: post
61
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
62
+ body:
63
+ encoding: UTF-8
64
+ string: '{"payment_method":"Credit Card","customer":"071-C-P0PANVCB","reference":"4b26fd85d263dc7d5816828cbb2e57fb","setup_fee":0,"amount":100,"start_date":"2015-07-16","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"currency":"AUD","test":true}'
65
+ headers:
66
+ Accept:
67
+ - application/json
68
+ Accept-Encoding:
69
+ - gzip, deflate
70
+ Content-Type:
71
+ - application/json
72
+ Content-Length:
73
+ - '261'
74
+ User-Agent:
75
+ - Ruby
76
+ Authorization:
77
+ - Basic VEVTVDpURVNU
78
+ response:
79
+ status:
80
+ code: 201
81
+ message: Created
82
+ headers:
83
+ Date:
84
+ - Mon, 26 Jun 2017 06:27:03 GMT
85
+ Content-Type:
86
+ - application/json; charset=utf-8
87
+ Transfer-Encoding:
88
+ - chunked
89
+ Connection:
90
+ - keep-alive
91
+ Status:
92
+ - 201 Created
93
+ Cache-Control:
94
+ - no-store
95
+ X-Request-Version:
96
+ - 1.19.41
97
+ Pragma:
98
+ - no-cache
99
+ X-Request-Id:
100
+ - aa79789f2d558e82bd9f145c93b37779
101
+ X-Runtime:
102
+ - '0.194837'
103
+ X-Rack-Cache:
104
+ - invalidate, pass
105
+ X-Backend:
106
+ - sbox-priv-gateway-a
107
+ body:
108
+ encoding: UTF-8
109
+ string: '{"successful":true,"response":{"id":"071-PP-NNWW47CA","customer":"071-C-P0PANVCB","amount":100,"currency":"AUD","setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2015-07-16","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
110
+ Card","reference":"4b26fd85d263dc7d5816828cbb2e57fb","description":null,"status":"Active","status_reason":"None","created_at":"2017-06-26T16:27:03+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-MNEX94H5","payment_plan":"071-PP-NNWW47CA","reference":"4b26fd85d263dc7d5816828cbb2e57fb-0001","amount":100,"currency":"AUD","scheduled_date":"2017-06-30","payment_method":"Credit
111
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-NLDY60L9","payment_plan":"071-PP-NNWW47CA","reference":"4b26fd85d263dc7d5816828cbb2e57fb-0002","amount":100,"currency":"AUD","scheduled_date":"2017-07-07","payment_method":"Credit
112
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-6TG7H88Z","payment_plan":"071-PP-NNWW47CA","reference":"4b26fd85d263dc7d5816828cbb2e57fb-0003","amount":100,"currency":"AUD","scheduled_date":"2017-07-14","payment_method":"Credit
113
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-Y0G2L9L6","payment_plan":"071-PP-NNWW47CA","reference":"4b26fd85d263dc7d5816828cbb2e57fb-0004","amount":100,"currency":"AUD","scheduled_date":"2017-07-21","payment_method":"Credit
114
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-SKZZ77CC","payment_plan":"071-PP-NNWW47CA","reference":"4b26fd85d263dc7d5816828cbb2e57fb-0005","amount":100,"currency":"AUD","scheduled_date":"2017-07-28","payment_method":"Credit
115
+ Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
116
+ http_version:
117
+ recorded_at: Mon, 26 Jun 2017 06:27:03 GMT
118
+ - request:
119
+ method: delete
120
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-NNWW47CA
121
+ body:
122
+ encoding: UTF-8
123
+ string: '{"test":true}'
124
+ headers:
125
+ Accept:
126
+ - application/json
127
+ Accept-Encoding:
128
+ - gzip, deflate
129
+ Content-Type:
130
+ - application/json
131
+ Content-Length:
132
+ - '13'
133
+ User-Agent:
134
+ - Ruby
135
+ Authorization:
136
+ - Basic VEVTVDpURVNU
137
+ response:
138
+ status:
139
+ code: 200
140
+ message: OK
141
+ headers:
142
+ Date:
143
+ - Mon, 26 Jun 2017 06:27:03 GMT
144
+ Content-Type:
145
+ - application/json; charset=utf-8
146
+ Transfer-Encoding:
147
+ - chunked
148
+ Connection:
149
+ - keep-alive
150
+ Status:
151
+ - 200 OK
152
+ Cache-Control:
153
+ - no-store
154
+ X-Request-Version:
155
+ - 1.19.41
156
+ Pragma:
157
+ - no-cache
158
+ X-Request-Id:
159
+ - 14cc77128545624e151856583a1a9380
160
+ X-Runtime:
161
+ - '0.091091'
162
+ X-Rack-Cache:
163
+ - invalidate, pass
164
+ X-Backend:
165
+ - sbox-priv-gateway-a
166
+ body:
167
+ encoding: UTF-8
168
+ string: '{"successful":true,"response":{"id":"071-PP-NNWW47CA","customer":"071-C-P0PANVCB","amount":100,"currency":"AUD","setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2015-07-16","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
169
+ Card","reference":"4b26fd85d263dc7d5816828cbb2e57fb","description":null,"status":"Cancelled","status_reason":"Other","created_at":"2017-06-26T16:27:03+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
170
+ http_version:
171
+ recorded_at: Mon, 26 Jun 2017 06:27:03 GMT
172
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,175 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"first_name":"Harrold","last_name":"Humphries","reference":"dd88b471b4e00a503c26539917807fb4","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
9
+ Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
10
+ Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
11
+ headers:
12
+ Accept:
13
+ - application/json
14
+ Accept-Encoding:
15
+ - gzip, deflate
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '394'
20
+ User-Agent:
21
+ - Ruby
22
+ Authorization:
23
+ - Basic VEVTVDpURVNU
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Mon, 26 Jun 2017 06:15:49 GMT
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Status:
38
+ - 200 OK
39
+ Cache-Control:
40
+ - no-store
41
+ X-Request-Version:
42
+ - 1.19.41
43
+ Pragma:
44
+ - no-cache
45
+ X-Request-Id:
46
+ - ffdc98b22192d1e54850de61611cc214
47
+ X-Runtime:
48
+ - '0.250430'
49
+ X-Rack-Cache:
50
+ - invalidate, pass
51
+ X-Backend:
52
+ - sbox-priv-gateway-a
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"successful":true,"response":{"id":"071-C-431YY9Q5","email":null,"reference":"dd88b471b4e00a503c26539917807fb4","first_name":"Harrold","last_name":"Humphries","created_at":"2017-06-26T16:15:49+10:00","address":{"address":"1
56
+ Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"fke86c5u","card_number":"512345XXXXXX2346","bank_account":null,"metadata":{}},"errors":[],"test":true}'
57
+ http_version:
58
+ recorded_at: Mon, 26 Jun 2017 06:15:49 GMT
59
+ - request:
60
+ method: post
61
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
62
+ body:
63
+ encoding: UTF-8
64
+ string: '{"payment_method":"Credit Card","customer":"071-C-431YY9Q5","reference":"4b2985a2e49065ff5718dd5dac5bb928","setup_fee":0,"amount":100,"start_date":"2015-07-16","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"currency":"AUD","test":true}'
65
+ headers:
66
+ Accept:
67
+ - application/json
68
+ Accept-Encoding:
69
+ - gzip, deflate
70
+ Content-Type:
71
+ - application/json
72
+ Content-Length:
73
+ - '261'
74
+ User-Agent:
75
+ - Ruby
76
+ Authorization:
77
+ - Basic VEVTVDpURVNU
78
+ response:
79
+ status:
80
+ code: 201
81
+ message: Created
82
+ headers:
83
+ Date:
84
+ - Mon, 26 Jun 2017 06:15:50 GMT
85
+ Content-Type:
86
+ - application/json; charset=utf-8
87
+ Transfer-Encoding:
88
+ - chunked
89
+ Connection:
90
+ - keep-alive
91
+ Status:
92
+ - 201 Created
93
+ X-Rack-Cache:
94
+ - invalidate, pass
95
+ Cache-Control:
96
+ - no-store
97
+ X-Request-Version:
98
+ - 1.19.41
99
+ X-Runtime:
100
+ - '0.189987'
101
+ Pragma:
102
+ - no-cache
103
+ X-Request-Id:
104
+ - a17ba822abb2ebdda2a22c8d75e2bd1d
105
+ X-Backend:
106
+ - sbox-priv-gateway-a
107
+ body:
108
+ encoding: UTF-8
109
+ string: '{"successful":true,"response":{"id":"071-PP-3NY95NC2","customer":"071-C-431YY9Q5","amount":100,"currency":"AUD","setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2015-07-16","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
110
+ Card","reference":"4b2985a2e49065ff5718dd5dac5bb928","description":null,"status":"Active","status_reason":"None","created_at":"2017-06-26T16:15:50+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-HX9Y91WK","payment_plan":"071-PP-3NY95NC2","reference":"4b2985a2e49065ff5718dd5dac5bb928-0001","amount":100,"currency":"AUD","scheduled_date":"2017-06-30","payment_method":"Credit
111
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-K5EXHRJ3","payment_plan":"071-PP-3NY95NC2","reference":"4b2985a2e49065ff5718dd5dac5bb928-0002","amount":100,"currency":"AUD","scheduled_date":"2017-07-07","payment_method":"Credit
112
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-T38HBJIE","payment_plan":"071-PP-3NY95NC2","reference":"4b2985a2e49065ff5718dd5dac5bb928-0003","amount":100,"currency":"AUD","scheduled_date":"2017-07-14","payment_method":"Credit
113
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-XWGUDPLO","payment_plan":"071-PP-3NY95NC2","reference":"4b2985a2e49065ff5718dd5dac5bb928-0004","amount":100,"currency":"AUD","scheduled_date":"2017-07-21","payment_method":"Credit
114
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-W4Z4EJ1O","payment_plan":"071-PP-3NY95NC2","reference":"4b2985a2e49065ff5718dd5dac5bb928-0005","amount":100,"currency":"AUD","scheduled_date":"2017-07-28","payment_method":"Credit
115
+ Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
116
+ http_version:
117
+ recorded_at: Mon, 26 Jun 2017 06:15:50 GMT
118
+ - request:
119
+ method: get
120
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/4b2985a2e49065ff5718dd5dac5bb928?test=true
121
+ body:
122
+ encoding: US-ASCII
123
+ string: ''
124
+ headers:
125
+ Accept:
126
+ - application/json
127
+ Accept-Encoding:
128
+ - gzip, deflate
129
+ Content-Type:
130
+ - application/json
131
+ User-Agent:
132
+ - Ruby
133
+ Authorization:
134
+ - Basic VEVTVDpURVNU
135
+ response:
136
+ status:
137
+ code: 200
138
+ message: OK
139
+ headers:
140
+ Date:
141
+ - Mon, 26 Jun 2017 06:15:50 GMT
142
+ Content-Type:
143
+ - application/json; charset=utf-8
144
+ Transfer-Encoding:
145
+ - chunked
146
+ Connection:
147
+ - keep-alive
148
+ Status:
149
+ - 200 OK
150
+ X-Rack-Cache:
151
+ - miss
152
+ Cache-Control:
153
+ - no-store, private
154
+ X-Request-Version:
155
+ - 1.19.41
156
+ X-Runtime:
157
+ - '0.039841'
158
+ Pragma:
159
+ - no-cache
160
+ X-Request-Id:
161
+ - dc9fb7a2a50e989665e2bb39ab667a7f
162
+ X-Backend:
163
+ - sbox-priv-gateway-a
164
+ body:
165
+ encoding: UTF-8
166
+ string: '{"successful":true,"response":{"id":"071-PP-3NY95NC2","customer":"071-C-431YY9Q5","amount":100,"currency":"AUD","setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2015-07-16","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
167
+ Card","reference":"4b2985a2e49065ff5718dd5dac5bb928","description":null,"status":"Active","status_reason":"None","created_at":"2017-06-26T16:15:50+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-HX9Y91WK","payment_plan":"071-PP-3NY95NC2","reference":"4b2985a2e49065ff5718dd5dac5bb928-0001","amount":100,"currency":"AUD","scheduled_date":"2017-06-30","payment_method":"Credit
168
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-K5EXHRJ3","payment_plan":"071-PP-3NY95NC2","reference":"4b2985a2e49065ff5718dd5dac5bb928-0002","amount":100,"currency":"AUD","scheduled_date":"2017-07-07","payment_method":"Credit
169
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-T38HBJIE","payment_plan":"071-PP-3NY95NC2","reference":"4b2985a2e49065ff5718dd5dac5bb928-0003","amount":100,"currency":"AUD","scheduled_date":"2017-07-14","payment_method":"Credit
170
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-XWGUDPLO","payment_plan":"071-PP-3NY95NC2","reference":"4b2985a2e49065ff5718dd5dac5bb928-0004","amount":100,"currency":"AUD","scheduled_date":"2017-07-21","payment_method":"Credit
171
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-W4Z4EJ1O","payment_plan":"071-PP-3NY95NC2","reference":"4b2985a2e49065ff5718dd5dac5bb928-0005","amount":100,"currency":"AUD","scheduled_date":"2017-07-28","payment_method":"Credit
172
+ Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
173
+ http_version:
174
+ recorded_at: Mon, 26 Jun 2017 06:15:50 GMT
175
+ recorded_with: VCR 3.0.3