fat_zebra_multi 3.1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +6 -0
  3. data/.rspec +0 -0
  4. data/.rubocop.yml +44 -0
  5. data/.travis.yml +10 -0
  6. data/Gemfile +4 -0
  7. data/README.md +104 -0
  8. data/Rakefile +11 -0
  9. data/fat_zebra_multi.gemspec +27 -0
  10. data/lib/fat_zebra.rb +65 -0
  11. data/lib/fat_zebra/api_helper.rb +91 -0
  12. data/lib/fat_zebra/api_operation/delete.rb +38 -0
  13. data/lib/fat_zebra/api_operation/find.rb +30 -0
  14. data/lib/fat_zebra/api_operation/save.rb +67 -0
  15. data/lib/fat_zebra/api_operation/search.rb +39 -0
  16. data/lib/fat_zebra/api_operation/void.rb +52 -0
  17. data/lib/fat_zebra/api_resource.rb +88 -0
  18. data/lib/fat_zebra/bank_account.rb +20 -0
  19. data/lib/fat_zebra/batch.rb +60 -0
  20. data/lib/fat_zebra/card.rb +23 -0
  21. data/lib/fat_zebra/config.rb +90 -0
  22. data/lib/fat_zebra/customer.rb +26 -0
  23. data/lib/fat_zebra/direct_credit.rb +26 -0
  24. data/lib/fat_zebra/direct_debit.rb +26 -0
  25. data/lib/fat_zebra/errors.rb +37 -0
  26. data/lib/fat_zebra/fat_zebra_object.rb +68 -0
  27. data/lib/fat_zebra/information.rb +29 -0
  28. data/lib/fat_zebra/object_helper.rb +119 -0
  29. data/lib/fat_zebra/payment_plan.rb +61 -0
  30. data/lib/fat_zebra/purchase.rb +96 -0
  31. data/lib/fat_zebra/refund.rb +27 -0
  32. data/lib/fat_zebra/request.rb +174 -0
  33. data/lib/fat_zebra/request/multipart/epilogue.rb +23 -0
  34. data/lib/fat_zebra/request/multipart/file_io.rb +40 -0
  35. data/lib/fat_zebra/request/multipart/param.rb +37 -0
  36. data/lib/fat_zebra/request/multipart/part.rb +28 -0
  37. data/lib/fat_zebra/request/multipart/stream.rb +57 -0
  38. data/lib/fat_zebra/util.rb +71 -0
  39. data/lib/fat_zebra/validation.rb +67 -0
  40. data/lib/fat_zebra/version.rb +3 -0
  41. data/lib/fat_zebra/web_hook.rb +22 -0
  42. data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +53 -0
  43. data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +53 -0
  44. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +164 -0
  45. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +164 -0
  46. data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +164 -0
  47. data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +61 -0
  48. data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +61 -0
  49. data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +61 -0
  50. data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +61 -0
  51. data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +112 -0
  52. data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +112 -0
  53. data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +163 -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 +54 -0
  58. data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +54 -0
  59. data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +54 -0
  60. data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +54 -0
  61. data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +54 -0
  62. data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +54 -0
  63. data/spec/cassettes/FatZebra_Card/_update/1_2_1.yml +105 -0
  64. data/spec/cassettes/FatZebra_Card/_update/1_2_2.yml +105 -0
  65. data/spec/cassettes/FatZebra_Card/_update/1_2_3.yml +105 -0
  66. data/spec/cassettes/FatZebra_Card/_update/validations/1_2_4_1.yml +54 -0
  67. data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +55 -0
  68. data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +55 -0
  69. data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +55 -0
  70. data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +55 -0
  71. data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +55 -0
  72. data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +55 -0
  73. data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +103 -0
  74. data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +107 -0
  75. data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +107 -0
  76. data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +60 -0
  77. data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +60 -0
  78. data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +60 -0
  79. data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +106 -0
  80. data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +106 -0
  81. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +52 -0
  82. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +52 -0
  83. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +52 -0
  84. data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +52 -0
  85. data/spec/cassettes/FatZebra_DirectCredit/_create/validations/valid/1_1_5_1_1.yml +52 -0
  86. data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +99 -0
  87. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +103 -0
  88. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +103 -0
  89. data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +103 -0
  90. data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +152 -0
  91. data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +152 -0
  92. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +52 -0
  93. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +52 -0
  94. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +52 -0
  95. data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +52 -0
  96. data/spec/cassettes/FatZebra_DirectDebit/_create/validations/valid/1_1_5_1_1.yml +52 -0
  97. data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +99 -0
  98. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +103 -0
  99. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +103 -0
  100. data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +103 -0
  101. data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +152 -0
  102. data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +152 -0
  103. data/spec/cassettes/FatZebra_Information/_ping/1_1_1.yml +54 -0
  104. data/spec/cassettes/FatZebra_Information/_ping/1_1_2.yml +54 -0
  105. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +222 -0
  106. data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +222 -0
  107. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +110 -0
  108. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +110 -0
  109. data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +110 -0
  110. data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +158 -0
  111. data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +158 -0
  112. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +167 -0
  113. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +167 -0
  114. data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +167 -0
  115. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +166 -0
  116. data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +166 -0
  117. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +160 -0
  118. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +160 -0
  119. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +160 -0
  120. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +166 -0
  121. data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +166 -0
  122. data/spec/cassettes/FatZebra_Purchase/_capture/1_5_1.yml +115 -0
  123. data/spec/cassettes/FatZebra_Purchase/_capture/1_5_2.yml +115 -0
  124. data/spec/cassettes/FatZebra_Purchase/_capture/1_5_3.yml +115 -0
  125. data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +53 -0
  126. data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +53 -0
  127. data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +53 -0
  128. data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +53 -0
  129. data/spec/cassettes/FatZebra_Purchase/_create/1_1_13.yml +53 -0
  130. data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +53 -0
  131. data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +53 -0
  132. data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +53 -0
  133. data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +53 -0
  134. data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +53 -0
  135. data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +53 -0
  136. data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +53 -0
  137. data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +53 -0
  138. data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_1.yml +55 -0
  139. data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_2.yml +55 -0
  140. data/spec/cassettes/FatZebra_Purchase/_find/1_2_1.yml +117 -0
  141. data/spec/cassettes/FatZebra_Purchase/_find/1_2_2.yml +117 -0
  142. data/spec/cassettes/FatZebra_Purchase/_find/1_2_3.yml +117 -0
  143. data/spec/cassettes/FatZebra_Purchase/_find/1_2_4.yml +117 -0
  144. data/spec/cassettes/FatZebra_Purchase/_refund/1_4_1.yml +115 -0
  145. data/spec/cassettes/FatZebra_Purchase/_refund/1_4_2.yml +115 -0
  146. data/spec/cassettes/FatZebra_Purchase/_refund/1_4_3.yml +115 -0
  147. data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +164 -0
  148. data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +164 -0
  149. data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +164 -0
  150. data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_1.yml +652 -0
  151. data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_2.yml +652 -0
  152. data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_3.yml +652 -0
  153. data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +103 -0
  154. data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +103 -0
  155. data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +103 -0
  156. data/spec/cassettes/FatZebra_Purchase/_void/1_6_4.yml +103 -0
  157. data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +103 -0
  158. data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +103 -0
  159. data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +103 -0
  160. data/spec/cassettes/FatZebra_Purchase/_void/1_7_4.yml +103 -0
  161. data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +103 -0
  162. data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +103 -0
  163. data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +103 -0
  164. data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +103 -0
  165. data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +103 -0
  166. data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +103 -0
  167. data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +103 -0
  168. data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +103 -0
  169. data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +103 -0
  170. data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +103 -0
  171. data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +155 -0
  172. data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +155 -0
  173. data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +155 -0
  174. data/spec/cassettes/FatZebra_Refund/_search/responds_with_the_newly-created_refunds.yml +214 -0
  175. data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +153 -0
  176. data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +153 -0
  177. data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +153 -0
  178. data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +153 -0
  179. data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +53 -0
  180. data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +53 -0
  181. data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +53 -0
  182. data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +101 -0
  183. data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +298 -0
  184. data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +300 -0
  185. data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +104 -0
  186. data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +104 -0
  187. data/spec/cassettes/Multiple_accounts/The_basics/1_1_5.yml +59 -0
  188. data/spec/cassettes/Multiple_accounts/The_basics/1_1_6.yml +59 -0
  189. data/spec/fixtures/batch_test.csv +4 -0
  190. data/spec/lib/fat_zebra/api_resource_spec.rb +25 -0
  191. data/spec/lib/fat_zebra/bank_account_spec.rb +34 -0
  192. data/spec/lib/fat_zebra/batch_spec.rb +59 -0
  193. data/spec/lib/fat_zebra/card_spec.rb +41 -0
  194. data/spec/lib/fat_zebra/config_spec.rb +69 -0
  195. data/spec/lib/fat_zebra/customer_spec.rb +53 -0
  196. data/spec/lib/fat_zebra/direct_credit_spec.rb +74 -0
  197. data/spec/lib/fat_zebra/direct_debit_spec.rb +74 -0
  198. data/spec/lib/fat_zebra/fat_zebra_object_spec.rb +117 -0
  199. data/spec/lib/fat_zebra/information_spec.rb +13 -0
  200. data/spec/lib/fat_zebra/multiple_accounts_spec.rb +69 -0
  201. data/spec/lib/fat_zebra/payment_plan_spec.rb +94 -0
  202. data/spec/lib/fat_zebra/purchase_spec.rb +105 -0
  203. data/spec/lib/fat_zebra/refund_spec.rb +95 -0
  204. data/spec/lib/fat_zebra/request_spec.rb +59 -0
  205. data/spec/lib/fat_zebra/util_spec.rb +43 -0
  206. data/spec/lib/fat_zebra/validation_spec.rb +22 -0
  207. data/spec/lib/fat_zebra/web_hook_spec.rb +50 -0
  208. data/spec/spec_helper.rb +68 -0
  209. data/spec/support/payloads.rb +43 -0
  210. data/vendor/cacert.pem +3390 -0
  211. metadata +338 -0
@@ -0,0 +1,152 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_debits
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"description":"Confirmation","amount":42.0,"bsb":"123-123","account_name":"Test","account_number":"012345678","test":true}'
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - application/json
14
+ User-Agent:
15
+ - Ruby
16
+ Authorization:
17
+ - Basic VEVTVDpURVNU
18
+ Content-Type:
19
+ - application/json
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Date:
26
+ - Mon, 29 Apr 2019 09:17:00 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Status:
34
+ - 201 Created
35
+ Cache-Control:
36
+ - no-store
37
+ X-Request-Version:
38
+ - 1.16.9-3941@c1d8236
39
+ X-Runtime:
40
+ - '0.041239'
41
+ Pragma:
42
+ - no-cache
43
+ X-Request-Id:
44
+ - 9debecd103db939f71b5753d
45
+ X-Backend:
46
+ - sbox-priv-gateway-a
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"successful":true,"response":{"id":"071-DD-4UCBFBXC","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-4UCBFBXC","date":"2019-04-30","process_date":null,"status":"New","result":null,"metadata":null},"errors":[],"test":true}'
50
+ http_version:
51
+ recorded_at: Mon, 29 Apr 2019 09:17:00 GMT
52
+ - request:
53
+ method: post
54
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_debits
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"description":"Confirmation","amount":42.0,"bsb":"123-123","account_name":"Test","account_number":"012345678","test":true}'
58
+ headers:
59
+ Accept-Encoding:
60
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
+ Accept:
62
+ - application/json
63
+ User-Agent:
64
+ - Ruby
65
+ Authorization:
66
+ - Basic VEVTVDpURVNU
67
+ Content-Type:
68
+ - application/json
69
+ response:
70
+ status:
71
+ code: 201
72
+ message: Created
73
+ headers:
74
+ Date:
75
+ - Mon, 29 Apr 2019 09:17:00 GMT
76
+ Content-Type:
77
+ - application/json; charset=utf-8
78
+ Transfer-Encoding:
79
+ - chunked
80
+ Connection:
81
+ - keep-alive
82
+ Status:
83
+ - 201 Created
84
+ Cache-Control:
85
+ - no-store
86
+ X-Request-Version:
87
+ - 1.16.9-3941@c1d8236
88
+ X-Runtime:
89
+ - '0.046735'
90
+ Pragma:
91
+ - no-cache
92
+ X-Request-Id:
93
+ - e5e6d45c4ac9f6ecc27ba8c8
94
+ X-Backend:
95
+ - sbox-priv-gateway-a
96
+ body:
97
+ encoding: UTF-8
98
+ string: '{"successful":true,"response":{"id":"071-DD-UCLRCP8I","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-UCLRCP8I","date":"2019-04-30","process_date":null,"status":"New","result":null,"metadata":null},"errors":[],"test":true}'
99
+ http_version:
100
+ recorded_at: Mon, 29 Apr 2019 09:17:00 GMT
101
+ - request:
102
+ method: get
103
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/direct_debits?limit=10&offset=0&test=true
104
+ body:
105
+ encoding: US-ASCII
106
+ string: ''
107
+ headers:
108
+ Accept-Encoding:
109
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
110
+ Accept:
111
+ - application/json
112
+ User-Agent:
113
+ - Ruby
114
+ Host:
115
+ - gateway.sandbox.fatzebra.com.au
116
+ Authorization:
117
+ - Basic VEVTVDpURVNU
118
+ Content-Type:
119
+ - application/json
120
+ response:
121
+ status:
122
+ code: 200
123
+ message: OK
124
+ headers:
125
+ Date:
126
+ - Mon, 29 Apr 2019 09:17:00 GMT
127
+ Content-Type:
128
+ - application/json; charset=utf-8
129
+ Transfer-Encoding:
130
+ - chunked
131
+ Connection:
132
+ - keep-alive
133
+ Status:
134
+ - 200 OK
135
+ Cache-Control:
136
+ - no-store
137
+ X-Request-Version:
138
+ - 1.16.9-3941@c1d8236
139
+ X-Runtime:
140
+ - '0.032962'
141
+ Pragma:
142
+ - no-cache
143
+ X-Request-Id:
144
+ - adaedb804ad0d7d0e8896aec
145
+ X-Backend:
146
+ - sbox-priv-gateway-a
147
+ body:
148
+ encoding: UTF-8
149
+ string: '{"successful":true,"response":[{"id":"071-DD-UCLRCP8I","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-UCLRCP8I","date":"2019-04-30","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-4UCBFBXC","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-4UCBFBXC","date":"2019-04-30","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-DKO3ROOU","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-DKO3ROOU","date":"2019-04-30","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-DDPCOFS0","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-DDPCOFS0","date":"2019-04-30","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-GOOH7XBB","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-GOOH7XBB","date":"2019-04-30","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-SGHKW4JK","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-SGHKW4JK","date":"2019-04-30","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-R9RJFC4O","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-R9RJFC4O","date":"2019-04-30","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-29P42POQ","amount":42.42,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-29P42POQ","date":"2019-04-30","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-AN92IPK2","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-AN92IPK2","date":"2019-04-30","process_date":null,"status":"New","result":null,"metadata":null},{"id":"071-DD-ZJAB2HUC","amount":42.0,"bsb":"123-123","account_number":"012345678","account_name":"Test","description":"Confirmation","reference":"071-DD-ZJAB2HUC","date":"2019-04-30","process_date":null,"status":"New","result":null,"metadata":null}],"errors":[],"test":true,"records":10,"total_records":16741,"page":0,"total_pages":1675}'
150
+ http_version:
151
+ recorded_at: Mon, 29 Apr 2019 09:17:00 GMT
152
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://gateway.sandbox.fatzebra.com.au/ping?echo=262ca5679c2dd86ac866200a7b57fab0&test=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - application/json
14
+ User-Agent:
15
+ - Ruby
16
+ Host:
17
+ - gateway.sandbox.fatzebra.com.au
18
+ Authorization:
19
+ - Basic VEVTVDpURVNU
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Mon, 29 Apr 2019 09:17:01 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 200 OK
37
+ Cache-Control:
38
+ - no-store
39
+ X-Request-Version:
40
+ - 1.16.9-3941@c1d8236
41
+ X-Runtime:
42
+ - '0.003178'
43
+ Pragma:
44
+ - no-cache
45
+ X-Request-Id:
46
+ - a1432968239cff0c8487dd54
47
+ X-Backend:
48
+ - sbox-priv-gateway-a
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"timestamp":1556529421,"echo":"262ca5679c2dd86ac866200a7b57fab0"}'
52
+ http_version:
53
+ recorded_at: Mon, 29 Apr 2019 09:17:01 GMT
54
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://gateway.sandbox.fatzebra.com.au/ping?echo=262ca5679c2dd86ac866200a7b57fab0&test=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - application/json
14
+ User-Agent:
15
+ - Ruby
16
+ Host:
17
+ - gateway.sandbox.fatzebra.com.au
18
+ Authorization:
19
+ - Basic VEVTVDpURVNU
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Mon, 29 Apr 2019 09:17:01 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 200 OK
37
+ Cache-Control:
38
+ - no-store
39
+ X-Request-Version:
40
+ - 1.16.9-3941@c1d8236
41
+ X-Runtime:
42
+ - '0.003012'
43
+ Pragma:
44
+ - no-cache
45
+ X-Request-Id:
46
+ - 5d6b333833eff62c17824960
47
+ X-Backend:
48
+ - sbox-priv-gateway-a
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"timestamp":1556529421,"echo":"262ca5679c2dd86ac866200a7b57fab0"}'
52
+ http_version:
53
+ recorded_at: Mon, 29 Apr 2019 09:17:01 GMT
54
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,222 @@
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":"9e43d242230da128b0cc2f78f4e3c8be","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-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - application/json
16
+ User-Agent:
17
+ - Ruby
18
+ Authorization:
19
+ - Basic VEVTVDpURVNU
20
+ Content-Type:
21
+ - application/json
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Mon, 29 Apr 2019 09:17:18 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 200 OK
37
+ Cache-Control:
38
+ - no-store
39
+ X-Request-Version:
40
+ - 1.16.9-3941@c1d8236
41
+ X-Runtime:
42
+ - '0.472348'
43
+ Pragma:
44
+ - no-cache
45
+ X-Request-Id:
46
+ - b9400fa44e0a80dc9ba6c4e8
47
+ X-Backend:
48
+ - sbox-priv-gateway-a
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"successful":true,"response":{"id":"071-C-FR8Z7MRO","email":null,"reference":"9e43d242230da128b0cc2f78f4e3c8be","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:17:17+10:00","address":{"address":"1
52
+ Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"hnzyok6f6a4udfdwvcr1","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
53
+ http_version:
54
+ recorded_at: Mon, 29 Apr 2019 09:17:18 GMT
55
+ - request:
56
+ method: post
57
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
58
+ body:
59
+ encoding: UTF-8
60
+ string: '{"payment_method":"Credit Card","customer":"071-C-FR8Z7MRO","reference":"766557476c1061d9bac18dbea33db453","setup_fee":0,"amount":100,"start_date":"2019-07-28","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
61
+ headers:
62
+ Accept-Encoding:
63
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
64
+ Accept:
65
+ - application/json
66
+ User-Agent:
67
+ - Ruby
68
+ Authorization:
69
+ - Basic VEVTVDpURVNU
70
+ Content-Type:
71
+ - application/json
72
+ response:
73
+ status:
74
+ code: 201
75
+ message: Created
76
+ headers:
77
+ Date:
78
+ - Mon, 29 Apr 2019 09:17:18 GMT
79
+ Content-Type:
80
+ - application/json; charset=utf-8
81
+ Transfer-Encoding:
82
+ - chunked
83
+ Connection:
84
+ - keep-alive
85
+ Status:
86
+ - 201 Created
87
+ Cache-Control:
88
+ - no-store
89
+ X-Request-Version:
90
+ - 1.16.9-3941@c1d8236
91
+ X-Runtime:
92
+ - '0.287750'
93
+ Pragma:
94
+ - no-cache
95
+ X-Request-Id:
96
+ - de4cddc10e4ed9e1032c9aa7
97
+ X-Backend:
98
+ - sbox-priv-gateway-a
99
+ body:
100
+ encoding: UTF-8
101
+ string: '{"successful":true,"response":{"id":"071-PP-8BBDOTAC","customer":"071-C-FR8Z7MRO","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
102
+ Card","reference":"766557476c1061d9bac18dbea33db453","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:18+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-CFQHTFFF","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
103
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-P8TB4CKY","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
104
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-UJJHM5N2","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
105
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-QAFR0507","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
106
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PDHK51CY","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
107
+ Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
108
+ http_version:
109
+ recorded_at: Mon, 29 Apr 2019 09:17:18 GMT
110
+ - request:
111
+ method: put
112
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-8BBDOTAC
113
+ body:
114
+ encoding: UTF-8
115
+ string: '{"customer":"071-C-FR8Z7MRO","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
116
+ Card","reference":"766557476c1061d9bac18dbea33db453","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:18+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-CFQHTFFF","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
117
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-P8TB4CKY","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
118
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-UJJHM5N2","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
119
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-QAFR0507","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
120
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-PDHK51CY","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
121
+ Card","status":"Scheduled","result":null,"records":[]}],"new_status":"Suspended","test":true}'
122
+ headers:
123
+ Accept-Encoding:
124
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
125
+ Accept:
126
+ - application/json
127
+ User-Agent:
128
+ - Ruby
129
+ Authorization:
130
+ - Basic VEVTVDpURVNU
131
+ Content-Type:
132
+ - application/json
133
+ response:
134
+ status:
135
+ code: 200
136
+ message: OK
137
+ headers:
138
+ Date:
139
+ - Mon, 29 Apr 2019 09:17:18 GMT
140
+ Content-Type:
141
+ - application/json; charset=utf-8
142
+ Transfer-Encoding:
143
+ - chunked
144
+ Connection:
145
+ - keep-alive
146
+ Status:
147
+ - 200 OK
148
+ Cache-Control:
149
+ - no-store
150
+ X-Request-Version:
151
+ - 1.16.9-3941@c1d8236
152
+ X-Runtime:
153
+ - '0.134678'
154
+ Pragma:
155
+ - no-cache
156
+ X-Request-Id:
157
+ - 3ce0483c040c972323c479f2
158
+ X-Backend:
159
+ - sbox-priv-gateway-a
160
+ body:
161
+ encoding: UTF-8
162
+ string: '{"successful":true,"response":{"id":"071-PP-8BBDOTAC","customer":"071-C-FR8Z7MRO","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
163
+ Card","reference":"766557476c1061d9bac18dbea33db453","description":null,"status":"Suspended","status_reason":"Other","created_at":"2019-04-29T19:17:18+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
164
+ http_version:
165
+ recorded_at: Mon, 29 Apr 2019 09:17:18 GMT
166
+ - request:
167
+ method: put
168
+ uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-8BBDOTAC
169
+ body:
170
+ encoding: UTF-8
171
+ string: '{"customer":"071-C-FR8Z7MRO","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
172
+ Card","reference":"766557476c1061d9bac18dbea33db453","description":null,"status":"Suspended","status_reason":"Other","created_at":"2019-04-29T19:17:18+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[],"new_status":"Active","test":true}'
173
+ headers:
174
+ Accept-Encoding:
175
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
176
+ Accept:
177
+ - application/json
178
+ User-Agent:
179
+ - Ruby
180
+ Authorization:
181
+ - Basic VEVTVDpURVNU
182
+ Content-Type:
183
+ - application/json
184
+ response:
185
+ status:
186
+ code: 200
187
+ message: OK
188
+ headers:
189
+ Date:
190
+ - Mon, 29 Apr 2019 09:17:19 GMT
191
+ Content-Type:
192
+ - application/json; charset=utf-8
193
+ Transfer-Encoding:
194
+ - chunked
195
+ Connection:
196
+ - keep-alive
197
+ Status:
198
+ - 200 OK
199
+ Cache-Control:
200
+ - no-store
201
+ X-Request-Version:
202
+ - 1.16.9-3941@c1d8236
203
+ X-Runtime:
204
+ - '0.260278'
205
+ Pragma:
206
+ - no-cache
207
+ X-Request-Id:
208
+ - 4d82474d16d567ea58ed5481
209
+ X-Backend:
210
+ - sbox-priv-gateway-a
211
+ body:
212
+ encoding: UTF-8
213
+ string: '{"successful":true,"response":{"id":"071-PP-8BBDOTAC","customer":"071-C-FR8Z7MRO","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
214
+ Card","reference":"766557476c1061d9bac18dbea33db453","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:18+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-6L5KZSFX","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
215
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-1PT6360","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
216
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-F6ZLUJ2G","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
217
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-IZA8FLJ8","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
218
+ Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-8YGPSVBL","payment_plan":"071-PP-8BBDOTAC","reference":"766557476c1061d9bac18dbea33db453-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
219
+ Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
220
+ http_version:
221
+ recorded_at: Mon, 29 Apr 2019 09:17:19 GMT
222
+ recorded_with: VCR 3.0.3