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,178 @@
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":"8f3dc414dee1cf30856923fa97cf7fa2","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:18:39 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.249327'
47
+ Pragma:
48
+ - no-cache
49
+ X-Request-Id:
50
+ - 8147f0085a99531bc16615bfbd148e82
51
+ X-Backend:
52
+ - sbox-priv-gateway-a
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"successful":true,"response":{"id":"071-C-QR4R5AVA","email":null,"reference":"8f3dc414dee1cf30856923fa97cf7fa2","first_name":"Harrold","last_name":"Humphries","created_at":"2017-06-26T16:18:39+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:18:39 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-QR4R5AVA","reference":"4169265d40595e8613196d381fe1859c","setup_fee":0,"amount":100,"start_date":"2015-07-16","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"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
+ - '244'
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:18:40 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
+ - 59f4799ecaf62ab427de549f24b077e5
101
+ X-Runtime:
102
+ - '0.189468'
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-418HYB7Q","customer":"071-C-QR4R5AVA","amount":100,"currency":null,"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":"4169265d40595e8613196d381fe1859c","description":null,"status":"Active","status_reason":"None","created_at":"2017-06-26T16:18:40+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-R87C6M0V","payment_plan":"071-PP-418HYB7Q","reference":"4169265d40595e8613196d381fe1859c-0001","amount":100,"currency":null,"scheduled_date":"2017-06-30","payment_method":"Credit
111
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-THN5E3EU","payment_plan":"071-PP-418HYB7Q","reference":"4169265d40595e8613196d381fe1859c-0002","amount":100,"currency":null,"scheduled_date":"2017-07-07","payment_method":"Credit
112
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-GVW8B5R7","payment_plan":"071-PP-418HYB7Q","reference":"4169265d40595e8613196d381fe1859c-0003","amount":100,"currency":null,"scheduled_date":"2017-07-14","payment_method":"Credit
113
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-OZTS3FPG","payment_plan":"071-PP-418HYB7Q","reference":"4169265d40595e8613196d381fe1859c-0004","amount":100,"currency":null,"scheduled_date":"2017-07-21","payment_method":"Credit
114
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-SC20RKGB","payment_plan":"071-PP-418HYB7Q","reference":"4169265d40595e8613196d381fe1859c-0005","amount":100,"currency":null,"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:18:40 GMT
118
+ - request:
119
+ method: put
120
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-418HYB7Q
121
+ body:
122
+ encoding: UTF-8
123
+ string: '{"id":"071-PP-418HYB7Q","customer":"071-C-QR4R5AVA","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2015-07-16","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
124
+ Card","reference":"4169265d40595e8613196d381fe1859c","description":null,"status":"Active","status_reason":"None","created_at":"2017-06-26T16:18:40+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-R87C6M0V","payment_plan":"071-PP-418HYB7Q","reference":"4169265d40595e8613196d381fe1859c-0001","amount":100,"currency":null,"scheduled_date":"2017-06-30","payment_method":"Credit
125
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-THN5E3EU","payment_plan":"071-PP-418HYB7Q","reference":"4169265d40595e8613196d381fe1859c-0002","amount":100,"currency":null,"scheduled_date":"2017-07-07","payment_method":"Credit
126
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-GVW8B5R7","payment_plan":"071-PP-418HYB7Q","reference":"4169265d40595e8613196d381fe1859c-0003","amount":100,"currency":null,"scheduled_date":"2017-07-14","payment_method":"Credit
127
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-OZTS3FPG","payment_plan":"071-PP-418HYB7Q","reference":"4169265d40595e8613196d381fe1859c-0004","amount":100,"currency":null,"scheduled_date":"2017-07-21","payment_method":"Credit
128
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-SC20RKGB","payment_plan":"071-PP-418HYB7Q","reference":"4169265d40595e8613196d381fe1859c-0005","amount":100,"currency":null,"scheduled_date":"2017-07-28","payment_method":"Credit
129
+ Card","status":"Scheduled","result":null,"records":[]}],"new_status":"Suspended","test":true}'
130
+ headers:
131
+ Accept:
132
+ - application/json
133
+ Accept-Encoding:
134
+ - gzip, deflate
135
+ Content-Type:
136
+ - application/json
137
+ Content-Length:
138
+ - '1746'
139
+ User-Agent:
140
+ - Ruby
141
+ Authorization:
142
+ - Basic VEVTVDpURVNU
143
+ response:
144
+ status:
145
+ code: 200
146
+ message: OK
147
+ headers:
148
+ Date:
149
+ - Mon, 26 Jun 2017 06:18:40 GMT
150
+ Content-Type:
151
+ - application/json; charset=utf-8
152
+ Transfer-Encoding:
153
+ - chunked
154
+ Connection:
155
+ - keep-alive
156
+ Status:
157
+ - 200 OK
158
+ X-Rack-Cache:
159
+ - invalidate, pass
160
+ Cache-Control:
161
+ - no-store
162
+ X-Request-Version:
163
+ - 1.19.41
164
+ X-Runtime:
165
+ - '0.097980'
166
+ Pragma:
167
+ - no-cache
168
+ X-Request-Id:
169
+ - 522b0d46eb0875e9399efd303906a1d3
170
+ X-Backend:
171
+ - sbox-priv-gateway-a
172
+ body:
173
+ encoding: UTF-8
174
+ string: '{"successful":true,"response":{"id":"071-PP-418HYB7Q","customer":"071-C-QR4R5AVA","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2015-07-16","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
175
+ Card","reference":"4169265d40595e8613196d381fe1859c","description":null,"status":"Suspended","status_reason":"Other","created_at":"2017-06-26T16:18:40+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
176
+ http_version:
177
+ recorded_at: Mon, 26 Jun 2017 06:18:40 GMT
178
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,178 @@
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":"89fba02e0e392815c924eb09f80d339f","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:26:45 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
+ - 96d2f79874e71f67ead9091914a06266
47
+ X-Runtime:
48
+ - '0.254033'
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-L4E6GTZJ","email":null,"reference":"89fba02e0e392815c924eb09f80d339f","first_name":"Harrold","last_name":"Humphries","created_at":"2017-06-26T16:26:44+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:26:45 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-L4E6GTZJ","reference":"dffea5e18e36c62c4f2b3c004e681a58","setup_fee":0,"amount":100,"start_date":"2015-07-16","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"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
+ - '244'
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:26:45 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.191889'
101
+ Pragma:
102
+ - no-cache
103
+ X-Request-Id:
104
+ - b751f9ceb156d6a01970230432ae2a7d
105
+ X-Backend:
106
+ - sbox-priv-gateway-a
107
+ body:
108
+ encoding: UTF-8
109
+ string: '{"successful":true,"response":{"id":"071-PP-QDVA73OE","customer":"071-C-L4E6GTZJ","amount":100,"currency":null,"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":"dffea5e18e36c62c4f2b3c004e681a58","description":null,"status":"Active","status_reason":"None","created_at":"2017-06-26T16:26:45+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-XUUHUBDW","payment_plan":"071-PP-QDVA73OE","reference":"dffea5e18e36c62c4f2b3c004e681a58-0001","amount":100,"currency":null,"scheduled_date":"2017-06-30","payment_method":"Credit
111
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-JO0UDOA7","payment_plan":"071-PP-QDVA73OE","reference":"dffea5e18e36c62c4f2b3c004e681a58-0002","amount":100,"currency":null,"scheduled_date":"2017-07-07","payment_method":"Credit
112
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-RJ1GC634","payment_plan":"071-PP-QDVA73OE","reference":"dffea5e18e36c62c4f2b3c004e681a58-0003","amount":100,"currency":null,"scheduled_date":"2017-07-14","payment_method":"Credit
113
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-H8IMA38U","payment_plan":"071-PP-QDVA73OE","reference":"dffea5e18e36c62c4f2b3c004e681a58-0004","amount":100,"currency":null,"scheduled_date":"2017-07-21","payment_method":"Credit
114
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-XVGMHM1X","payment_plan":"071-PP-QDVA73OE","reference":"dffea5e18e36c62c4f2b3c004e681a58-0005","amount":100,"currency":null,"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:26:45 GMT
118
+ - request:
119
+ method: put
120
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-QDVA73OE
121
+ body:
122
+ encoding: UTF-8
123
+ string: '{"id":"071-PP-QDVA73OE","customer":"071-C-L4E6GTZJ","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2015-07-16","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
124
+ Card","reference":"dffea5e18e36c62c4f2b3c004e681a58","description":null,"status":"Active","status_reason":"None","created_at":"2017-06-26T16:26:45+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-XUUHUBDW","payment_plan":"071-PP-QDVA73OE","reference":"dffea5e18e36c62c4f2b3c004e681a58-0001","amount":100,"currency":null,"scheduled_date":"2017-06-30","payment_method":"Credit
125
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-JO0UDOA7","payment_plan":"071-PP-QDVA73OE","reference":"dffea5e18e36c62c4f2b3c004e681a58-0002","amount":100,"currency":null,"scheduled_date":"2017-07-07","payment_method":"Credit
126
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-RJ1GC634","payment_plan":"071-PP-QDVA73OE","reference":"dffea5e18e36c62c4f2b3c004e681a58-0003","amount":100,"currency":null,"scheduled_date":"2017-07-14","payment_method":"Credit
127
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-H8IMA38U","payment_plan":"071-PP-QDVA73OE","reference":"dffea5e18e36c62c4f2b3c004e681a58-0004","amount":100,"currency":null,"scheduled_date":"2017-07-21","payment_method":"Credit
128
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-XVGMHM1X","payment_plan":"071-PP-QDVA73OE","reference":"dffea5e18e36c62c4f2b3c004e681a58-0005","amount":100,"currency":null,"scheduled_date":"2017-07-28","payment_method":"Credit
129
+ Card","status":"Scheduled","result":null,"records":[]}],"new_status":"Suspended","test":true}'
130
+ headers:
131
+ Accept:
132
+ - application/json
133
+ Accept-Encoding:
134
+ - gzip, deflate
135
+ Content-Type:
136
+ - application/json
137
+ Content-Length:
138
+ - '1746'
139
+ User-Agent:
140
+ - Ruby
141
+ Authorization:
142
+ - Basic VEVTVDpURVNU
143
+ response:
144
+ status:
145
+ code: 200
146
+ message: OK
147
+ headers:
148
+ Date:
149
+ - Mon, 26 Jun 2017 06:26:45 GMT
150
+ Content-Type:
151
+ - application/json; charset=utf-8
152
+ Transfer-Encoding:
153
+ - chunked
154
+ Connection:
155
+ - keep-alive
156
+ Status:
157
+ - 200 OK
158
+ X-Rack-Cache:
159
+ - invalidate, pass
160
+ Cache-Control:
161
+ - no-store
162
+ X-Request-Version:
163
+ - 1.19.41
164
+ X-Runtime:
165
+ - '0.109884'
166
+ Pragma:
167
+ - no-cache
168
+ X-Request-Id:
169
+ - 4f49f61f582fc833c920c4461efc44a8
170
+ X-Backend:
171
+ - sbox-priv-gateway-a
172
+ body:
173
+ encoding: UTF-8
174
+ string: '{"successful":true,"response":{"id":"071-PP-QDVA73OE","customer":"071-C-L4E6GTZJ","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2015-07-16","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
175
+ Card","reference":"dffea5e18e36c62c4f2b3c004e681a58","description":null,"status":"Suspended","status_reason":"Other","created_at":"2017-06-26T16:26:45+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
176
+ http_version:
177
+ recorded_at: Mon, 26 Jun 2017 06:26:45 GMT
178
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,178 @@
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":"bb5777fd63b0cd6d44edacaff8e4b211","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:26:46 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
+ - 952289d09f306625d219f04a9ca5d449
47
+ X-Runtime:
48
+ - '0.604005'
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-1GR8VZ9F","email":null,"reference":"bb5777fd63b0cd6d44edacaff8e4b211","first_name":"Harrold","last_name":"Humphries","created_at":"2017-06-26T16:26:45+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:26:46 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-1GR8VZ9F","reference":"1b00b2ee2bd5b31c157635890482c6fb","setup_fee":0,"amount":100,"start_date":"2015-07-16","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"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
+ - '244'
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:26:46 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.183935'
101
+ Pragma:
102
+ - no-cache
103
+ X-Request-Id:
104
+ - 39af5d51ce6c491477b68950263913d4
105
+ X-Backend:
106
+ - sbox-priv-gateway-a
107
+ body:
108
+ encoding: UTF-8
109
+ string: '{"successful":true,"response":{"id":"071-PP-RYZUGE41","customer":"071-C-1GR8VZ9F","amount":100,"currency":null,"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":"1b00b2ee2bd5b31c157635890482c6fb","description":null,"status":"Active","status_reason":"None","created_at":"2017-06-26T16:26:46+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-DXLPATTW","payment_plan":"071-PP-RYZUGE41","reference":"1b00b2ee2bd5b31c157635890482c6fb-0001","amount":100,"currency":null,"scheduled_date":"2017-06-30","payment_method":"Credit
111
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-G7I768N5","payment_plan":"071-PP-RYZUGE41","reference":"1b00b2ee2bd5b31c157635890482c6fb-0002","amount":100,"currency":null,"scheduled_date":"2017-07-07","payment_method":"Credit
112
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-8TRWZKD8","payment_plan":"071-PP-RYZUGE41","reference":"1b00b2ee2bd5b31c157635890482c6fb-0003","amount":100,"currency":null,"scheduled_date":"2017-07-14","payment_method":"Credit
113
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-4DYPFM9P","payment_plan":"071-PP-RYZUGE41","reference":"1b00b2ee2bd5b31c157635890482c6fb-0004","amount":100,"currency":null,"scheduled_date":"2017-07-21","payment_method":"Credit
114
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-LHTKB9N6","payment_plan":"071-PP-RYZUGE41","reference":"1b00b2ee2bd5b31c157635890482c6fb-0005","amount":100,"currency":null,"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:26:46 GMT
118
+ - request:
119
+ method: put
120
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-RYZUGE41
121
+ body:
122
+ encoding: UTF-8
123
+ string: '{"id":"071-PP-RYZUGE41","customer":"071-C-1GR8VZ9F","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2015-07-16","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
124
+ Card","reference":"1b00b2ee2bd5b31c157635890482c6fb","description":null,"status":"Active","status_reason":"None","created_at":"2017-06-26T16:26:46+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-DXLPATTW","payment_plan":"071-PP-RYZUGE41","reference":"1b00b2ee2bd5b31c157635890482c6fb-0001","amount":100,"currency":null,"scheduled_date":"2017-06-30","payment_method":"Credit
125
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-G7I768N5","payment_plan":"071-PP-RYZUGE41","reference":"1b00b2ee2bd5b31c157635890482c6fb-0002","amount":100,"currency":null,"scheduled_date":"2017-07-07","payment_method":"Credit
126
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-8TRWZKD8","payment_plan":"071-PP-RYZUGE41","reference":"1b00b2ee2bd5b31c157635890482c6fb-0003","amount":100,"currency":null,"scheduled_date":"2017-07-14","payment_method":"Credit
127
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-4DYPFM9P","payment_plan":"071-PP-RYZUGE41","reference":"1b00b2ee2bd5b31c157635890482c6fb-0004","amount":100,"currency":null,"scheduled_date":"2017-07-21","payment_method":"Credit
128
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-LHTKB9N6","payment_plan":"071-PP-RYZUGE41","reference":"1b00b2ee2bd5b31c157635890482c6fb-0005","amount":100,"currency":null,"scheduled_date":"2017-07-28","payment_method":"Credit
129
+ Card","status":"Scheduled","result":null,"records":[]}],"new_status":"Suspended","test":true}'
130
+ headers:
131
+ Accept:
132
+ - application/json
133
+ Accept-Encoding:
134
+ - gzip, deflate
135
+ Content-Type:
136
+ - application/json
137
+ Content-Length:
138
+ - '1746'
139
+ User-Agent:
140
+ - Ruby
141
+ Authorization:
142
+ - Basic VEVTVDpURVNU
143
+ response:
144
+ status:
145
+ code: 200
146
+ message: OK
147
+ headers:
148
+ Date:
149
+ - Mon, 26 Jun 2017 06:26:46 GMT
150
+ Content-Type:
151
+ - application/json; charset=utf-8
152
+ Transfer-Encoding:
153
+ - chunked
154
+ Connection:
155
+ - keep-alive
156
+ Status:
157
+ - 200 OK
158
+ Cache-Control:
159
+ - no-store
160
+ X-Request-Version:
161
+ - 1.19.41
162
+ Pragma:
163
+ - no-cache
164
+ X-Request-Id:
165
+ - 26a5974dc1ecb196d8d2f5feea548f7a
166
+ X-Runtime:
167
+ - '0.095798'
168
+ X-Rack-Cache:
169
+ - invalidate, pass
170
+ X-Backend:
171
+ - sbox-priv-gateway-a
172
+ body:
173
+ encoding: UTF-8
174
+ string: '{"successful":true,"response":{"id":"071-PP-RYZUGE41","customer":"071-C-1GR8VZ9F","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2015-07-16","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
175
+ Card","reference":"1b00b2ee2bd5b31c157635890482c6fb","description":null,"status":"Suspended","status_reason":"Other","created_at":"2017-06-26T16:26:46+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
176
+ http_version:
177
+ recorded_at: Mon, 26 Jun 2017 06:26:46 GMT
178
+ recorded_with: VCR 3.0.3