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.
- checksums.yaml +5 -13
- data/.rubocop.yml +42 -0
- data/.travis.yml +9 -2
- data/Gemfile +1 -1
- data/{README.markdown → README.md} +19 -20
- data/Rakefile +2 -12
- data/fat_zebra.gemspec +27 -0
- data/lib/fat_zebra/api_operation/delete.rb +38 -0
- data/lib/fat_zebra/api_operation/find.rb +23 -0
- data/lib/fat_zebra/api_operation/save.rb +62 -0
- data/lib/fat_zebra/api_operation/search.rb +32 -0
- data/lib/fat_zebra/api_operation/void.rb +52 -0
- data/lib/fat_zebra/api_resource.rb +135 -0
- data/lib/fat_zebra/bank_account.rb +21 -0
- data/lib/fat_zebra/batch.rb +56 -0
- data/lib/fat_zebra/card.rb +22 -0
- data/lib/fat_zebra/config.rb +65 -25
- data/lib/fat_zebra/customer.rb +27 -0
- data/lib/fat_zebra/direct_credit.rb +27 -0
- data/lib/fat_zebra/direct_debit.rb +27 -0
- data/lib/fat_zebra/errors.rb +18 -4
- data/lib/fat_zebra/fat_zebra_object.rb +179 -0
- data/lib/fat_zebra/information.rb +25 -0
- data/lib/fat_zebra/payment_plan.rb +62 -0
- data/lib/fat_zebra/purchase.rb +99 -0
- data/lib/fat_zebra/refund.rb +25 -0
- data/lib/fat_zebra/request/multipart/epilogue.rb +23 -0
- data/lib/fat_zebra/request/multipart/file_io.rb +40 -0
- data/lib/fat_zebra/request/multipart/param.rb +37 -0
- data/lib/fat_zebra/request/multipart/part.rb +28 -0
- data/lib/fat_zebra/request/multipart/stream.rb +55 -0
- data/lib/fat_zebra/request.rb +162 -0
- data/lib/fat_zebra/util.rb +70 -0
- data/lib/fat_zebra/validation.rb +47 -0
- data/lib/fat_zebra/version.rb +1 -1
- data/lib/fat_zebra/web_hook.rb +23 -0
- data/lib/fat_zebra.rb +51 -55
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +57 -0
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +57 -0
- data/spec/cassettes/FatZebra_BankAccount/_create/validations/1_1_3_1.yml +57 -0
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +172 -0
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +172 -0
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +172 -0
- data/spec/cassettes/FatZebra_Batch/_create/1_1_1.yml +58 -0
- data/spec/cassettes/FatZebra_Batch/_create/1_1_2.yml +58 -0
- data/spec/cassettes/FatZebra_Batch/_create/validations/1_1_3_1.yml +57 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +58 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +58 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +58 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +58 -0
- data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +109 -0
- data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +109 -0
- data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +160 -0
- data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +54 -0
- data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +54 -0
- data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +54 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_1.yml +55 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +55 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +55 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +55 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +55 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +55 -0
- data/spec/cassettes/FatZebra_Card/_create/validations/1_1_7_1.yml +56 -0
- data/spec/cassettes/FatZebra_Card/_update/1_2_1.yml +105 -0
- data/spec/cassettes/FatZebra_Card/_update/1_2_2.yml +105 -0
- data/spec/cassettes/FatZebra_Card/_update/1_2_3.yml +105 -0
- data/spec/cassettes/FatZebra_Card/_update/validations/1_2_4_1.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +59 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +59 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +59 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +59 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +59 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +59 -0
- data/spec/cassettes/FatZebra_Customer/_create/validations/1_1_7_1.yml +56 -0
- data/spec/cassettes/FatZebra_Customer/_delete/1_4_1.yml +113 -0
- data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +113 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_2_1.yml +111 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_2_2.yml +111 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +111 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +111 -0
- data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +56 -0
- data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +56 -0
- data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +56 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_3_1.yml +114 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_3_2.yml +114 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +114 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +114 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +56 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +56 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +56 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +56 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/validations/1_1_5_1.yml +59 -0
- data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +109 -0
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +107 -0
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +107 -0
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +160 -0
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +160 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +56 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +56 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +56 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +56 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/validations/1_1_5_1.yml +59 -0
- data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +109 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +107 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +107 -0
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +160 -0
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +160 -0
- data/spec/cassettes/FatZebra_Information/_ping/1_1_1.yml +54 -0
- data/spec/cassettes/FatZebra_Information/_ping/1_1_2.yml +54 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_7_1.yml +238 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_7_2.yml +238 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +238 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +238 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +118 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +118 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +118 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/validations/1_1_4_1.yml +55 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +172 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +172 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +175 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +175 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +175 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_6_1.yml +178 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_6_2.yml +178 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +178 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +178 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +172 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +172 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +172 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +178 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +178 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_1.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_2.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_6_1.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_6_2.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +57 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_1.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_2.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_3.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_4_1.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_4_2.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_4_3.yml +109 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_1.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_2.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_5_1.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_5_2.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +170 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +170 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +170 -0
- data/spec/cassettes/FatZebra_Purchase/_search/with_data/1_3_2_1.yml +164 -0
- data/spec/cassettes/FatZebra_Purchase/_search/with_data/1_3_2_2.yml +165 -0
- data/spec/cassettes/FatZebra_Purchase/_search/with_data/1_3_2_3.yml +164 -0
- data/spec/cassettes/FatZebra_Purchase/_search/without_data/1_3_1_1.yml +54 -0
- data/spec/cassettes/FatZebra_Purchase/_search/without_data/1_3_1_2.yml +54 -0
- data/spec/cassettes/FatZebra_Purchase/_search/without_data/1_3_1_3.yml +54 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_1.yml +613 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_2.yml +615 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_3.yml +617 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +111 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +111 -0
- data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +163 -0
- data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +163 -0
- data/spec/cassettes/FatZebra_Refund/_search/1_3_1.yml +281 -0
- data/spec/cassettes/FatZebra_Refund/_search/1_3_2.yml +281 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +165 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +165 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +165 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +57 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +57 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +57 -0
- data/spec/cassettes/FatZebra_WebHook/_create/validations/1_1_4_1.yml +56 -0
- data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +111 -0
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +222 -0
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +224 -0
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +112 -0
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +112 -0
- data/spec/fixtures/batch_test.csv +4 -0
- data/spec/lib/fat_zebra/bank_account_spec.rb +34 -0
- data/spec/lib/fat_zebra/batch_spec.rb +59 -0
- data/spec/lib/fat_zebra/card_spec.rb +41 -0
- data/spec/lib/fat_zebra/config_spec.rb +52 -0
- data/spec/lib/fat_zebra/customer_spec.rb +53 -0
- data/spec/lib/fat_zebra/direct_credit_spec.rb +53 -0
- data/spec/lib/fat_zebra/direct_debit_spec.rb +53 -0
- data/spec/lib/fat_zebra/fat_zebra_object_spec.rb +116 -0
- data/spec/lib/fat_zebra/information_spec.rb +13 -0
- data/spec/lib/fat_zebra/payment_plan_spec.rb +94 -0
- data/spec/lib/fat_zebra/purchase_spec.rb +92 -0
- data/spec/lib/fat_zebra/refund_spec.rb +72 -0
- data/spec/lib/fat_zebra/util_spec.rb +24 -0
- data/spec/lib/fat_zebra/validation_spec.rb +22 -0
- data/spec/lib/fat_zebra/web_hook_spec.rb +50 -0
- data/spec/spec_helper.rb +49 -3
- data/spec/support/payloads.rb +43 -0
- metadata +238 -65
- data/FatZebra.gemspec +0 -31
- data/lib/fat_zebra/constants.rb +0 -2
- data/lib/fat_zebra/gateway.rb +0 -292
- data/lib/fat_zebra/models/base.rb +0 -33
- data/lib/fat_zebra/models/card.rb +0 -49
- data/lib/fat_zebra/models/purchase.rb +0 -185
- data/lib/fat_zebra/models/refund.rb +0 -46
- data/lib/fat_zebra/models/response.rb +0 -33
- data/lib/rest-client/request_ext.rb +0 -15
- data/spec/config_spec.rb +0 -37
- data/spec/gateway_spec.rb +0 -120
- data/spec/models/purchase_spec.rb +0 -55
- data/spec/models/refund_spec.rb +0 -9
- data/spec/models/response_spec.rb +0 -25
@@ -0,0 +1,165 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"bafd837ad98567a46b91a07a62bba6b4","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Content-Length:
|
17
|
+
- '214'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
Authorization:
|
21
|
+
- Basic VEVTVDpURVNU
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Tue, 27 Jun 2017 06:14:22 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.19.41
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- 1776a810fc8ffcf47679f214377f33a8
|
45
|
+
X-Runtime:
|
46
|
+
- '0.748995'
|
47
|
+
X-Rack-Cache:
|
48
|
+
- invalidate, pass
|
49
|
+
X-Backend:
|
50
|
+
- sbox-priv-gateway-a
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"successful":true,"response":{"authorization":"208743","id":"071-P-Y4QC7EMD","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
54
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"bafd837ad98567a46b91a07a62bba6b4","currency":"AUD","transaction_id":"071-P-Y4QC7EMD","settlement_date":"2017-06-27","transaction_date":"2017-06-27T16:14:21+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PY4QC7EMD","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Tue, 27 Jun 2017 06:14:22 GMT
|
57
|
+
- request:
|
58
|
+
method: post
|
59
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: '{"transaction_id":"071-P-Y4QC7EMD","amount":10000,"reference":"bafd837ad98567a46b91a07a62bba6b4","test":true}'
|
63
|
+
headers:
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
Accept-Encoding:
|
67
|
+
- gzip, deflate
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
Content-Length:
|
71
|
+
- '109'
|
72
|
+
User-Agent:
|
73
|
+
- Ruby
|
74
|
+
Authorization:
|
75
|
+
- Basic VEVTVDpURVNU
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
81
|
+
Date:
|
82
|
+
- Tue, 27 Jun 2017 06:14:22 GMT
|
83
|
+
Content-Type:
|
84
|
+
- application/json; charset=utf-8
|
85
|
+
Transfer-Encoding:
|
86
|
+
- chunked
|
87
|
+
Connection:
|
88
|
+
- keep-alive
|
89
|
+
Status:
|
90
|
+
- 200 OK
|
91
|
+
Cache-Control:
|
92
|
+
- no-store
|
93
|
+
X-Request-Version:
|
94
|
+
- 1.19.41
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- f45b89ed5c0c7af6634139217ea147a4
|
99
|
+
X-Runtime:
|
100
|
+
- '0.189321'
|
101
|
+
X-Rack-Cache:
|
102
|
+
- invalidate, pass
|
103
|
+
X-Backend:
|
104
|
+
- sbox-priv-gateway-a
|
105
|
+
body:
|
106
|
+
encoding: UTF-8
|
107
|
+
string: '{"successful":true,"response":{"authorization":1498544062,"id":"071-R-E1KW2ETH","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
108
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-E1KW2ETH","reference":"bafd837ad98567a46b91a07a62bba6b4","currency":"AUD","successful":true,"transaction_date":"2017-06-27T16:14:22+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RE1KW2ETH"},"errors":[],"test":true}'
|
109
|
+
http_version:
|
110
|
+
recorded_at: Tue, 27 Jun 2017 06:14:22 GMT
|
111
|
+
- request:
|
112
|
+
method: post
|
113
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds/void
|
114
|
+
body:
|
115
|
+
encoding: UTF-8
|
116
|
+
string: '{"id":"071-R-E1KW2ETH","test":true}'
|
117
|
+
headers:
|
118
|
+
Accept:
|
119
|
+
- application/json
|
120
|
+
Accept-Encoding:
|
121
|
+
- gzip, deflate
|
122
|
+
Content-Type:
|
123
|
+
- application/json
|
124
|
+
Content-Length:
|
125
|
+
- '35'
|
126
|
+
User-Agent:
|
127
|
+
- Ruby
|
128
|
+
Authorization:
|
129
|
+
- Basic VEVTVDpURVNU
|
130
|
+
response:
|
131
|
+
status:
|
132
|
+
code: 200
|
133
|
+
message: OK
|
134
|
+
headers:
|
135
|
+
Date:
|
136
|
+
- Tue, 27 Jun 2017 06:14:22 GMT
|
137
|
+
Content-Type:
|
138
|
+
- application/json; charset=utf-8
|
139
|
+
Transfer-Encoding:
|
140
|
+
- chunked
|
141
|
+
Connection:
|
142
|
+
- keep-alive
|
143
|
+
Status:
|
144
|
+
- 200 OK
|
145
|
+
Cache-Control:
|
146
|
+
- no-store
|
147
|
+
X-Request-Version:
|
148
|
+
- 1.19.41
|
149
|
+
Pragma:
|
150
|
+
- no-cache
|
151
|
+
X-Request-Id:
|
152
|
+
- 6ee03cb1e4f7b3fdda182d01bf5dd107
|
153
|
+
X-Runtime:
|
154
|
+
- '0.043260'
|
155
|
+
X-Rack-Cache:
|
156
|
+
- invalidate, pass
|
157
|
+
X-Backend:
|
158
|
+
- sbox-priv-gateway-a
|
159
|
+
body:
|
160
|
+
encoding: UTF-8
|
161
|
+
string: '{"successful":true,"response":{"authorization":"1498544062","id":"071-R-E1KW2ETH","amount":10000,"refunded":"Voided","message":"Voided","card_holder":"Matthew
|
162
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-E1KW2ETH","reference":"bafd837ad98567a46b91a07a62bba6b4","currency":"AUD","successful":false,"transaction_date":"2017-06-27T16:14:22+10:00","response_code":"99","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RE1KW2ETH"},"errors":[],"test":true}'
|
163
|
+
http_version:
|
164
|
+
recorded_at: Tue, 27 Jun 2017 06:14:22 GMT
|
165
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,165 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"67d823d2da3a43f1c6991bc4f5811e4e","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Content-Length:
|
17
|
+
- '214'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
Authorization:
|
21
|
+
- Basic VEVTVDpURVNU
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Tue, 27 Jun 2017 06:14:23 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
|
+
X-Rack-Cache:
|
38
|
+
- invalidate, pass
|
39
|
+
Cache-Control:
|
40
|
+
- no-store
|
41
|
+
X-Request-Version:
|
42
|
+
- 1.19.41
|
43
|
+
X-Runtime:
|
44
|
+
- '0.398965'
|
45
|
+
Pragma:
|
46
|
+
- no-cache
|
47
|
+
X-Request-Id:
|
48
|
+
- 0a8cf017996fea35c03fa74ea69cf434
|
49
|
+
X-Backend:
|
50
|
+
- sbox-priv-gateway-a
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"successful":true,"response":{"authorization":"957316","id":"071-P-44NF6M0B","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
54
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"67d823d2da3a43f1c6991bc4f5811e4e","currency":"AUD","transaction_id":"071-P-44NF6M0B","settlement_date":"2017-06-27","transaction_date":"2017-06-27T16:14:22+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P44NF6M0B","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Tue, 27 Jun 2017 06:14:23 GMT
|
57
|
+
- request:
|
58
|
+
method: post
|
59
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: '{"transaction_id":"071-P-44NF6M0B","amount":10000,"reference":"67d823d2da3a43f1c6991bc4f5811e4e","test":true}'
|
63
|
+
headers:
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
Accept-Encoding:
|
67
|
+
- gzip, deflate
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
Content-Length:
|
71
|
+
- '109'
|
72
|
+
User-Agent:
|
73
|
+
- Ruby
|
74
|
+
Authorization:
|
75
|
+
- Basic VEVTVDpURVNU
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
81
|
+
Date:
|
82
|
+
- Tue, 27 Jun 2017 06:14:23 GMT
|
83
|
+
Content-Type:
|
84
|
+
- application/json; charset=utf-8
|
85
|
+
Transfer-Encoding:
|
86
|
+
- chunked
|
87
|
+
Connection:
|
88
|
+
- keep-alive
|
89
|
+
Status:
|
90
|
+
- 200 OK
|
91
|
+
Cache-Control:
|
92
|
+
- no-store
|
93
|
+
X-Request-Version:
|
94
|
+
- 1.19.41
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- 630bb97383ee370bb27db921f8163ffa
|
99
|
+
X-Runtime:
|
100
|
+
- '0.208228'
|
101
|
+
X-Rack-Cache:
|
102
|
+
- invalidate, pass
|
103
|
+
X-Backend:
|
104
|
+
- sbox-priv-gateway-a
|
105
|
+
body:
|
106
|
+
encoding: UTF-8
|
107
|
+
string: '{"successful":true,"response":{"authorization":1498544063,"id":"071-R-CL0LANL4","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
108
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-CL0LANL4","reference":"67d823d2da3a43f1c6991bc4f5811e4e","currency":"AUD","successful":true,"transaction_date":"2017-06-27T16:14:23+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RCL0LANL4"},"errors":[],"test":true}'
|
109
|
+
http_version:
|
110
|
+
recorded_at: Tue, 27 Jun 2017 06:14:23 GMT
|
111
|
+
- request:
|
112
|
+
method: post
|
113
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds/void
|
114
|
+
body:
|
115
|
+
encoding: UTF-8
|
116
|
+
string: '{"id":"071-R-CL0LANL4","test":true}'
|
117
|
+
headers:
|
118
|
+
Accept:
|
119
|
+
- application/json
|
120
|
+
Accept-Encoding:
|
121
|
+
- gzip, deflate
|
122
|
+
Content-Type:
|
123
|
+
- application/json
|
124
|
+
Content-Length:
|
125
|
+
- '35'
|
126
|
+
User-Agent:
|
127
|
+
- Ruby
|
128
|
+
Authorization:
|
129
|
+
- Basic VEVTVDpURVNU
|
130
|
+
response:
|
131
|
+
status:
|
132
|
+
code: 200
|
133
|
+
message: OK
|
134
|
+
headers:
|
135
|
+
Date:
|
136
|
+
- Tue, 27 Jun 2017 06:14:23 GMT
|
137
|
+
Content-Type:
|
138
|
+
- application/json; charset=utf-8
|
139
|
+
Transfer-Encoding:
|
140
|
+
- chunked
|
141
|
+
Connection:
|
142
|
+
- keep-alive
|
143
|
+
Status:
|
144
|
+
- 200 OK
|
145
|
+
Cache-Control:
|
146
|
+
- no-store
|
147
|
+
X-Request-Version:
|
148
|
+
- 1.19.41
|
149
|
+
Pragma:
|
150
|
+
- no-cache
|
151
|
+
X-Request-Id:
|
152
|
+
- bd3f9c654197658d021586e363ca84ae
|
153
|
+
X-Runtime:
|
154
|
+
- '0.060026'
|
155
|
+
X-Rack-Cache:
|
156
|
+
- invalidate, pass
|
157
|
+
X-Backend:
|
158
|
+
- sbox-priv-gateway-a
|
159
|
+
body:
|
160
|
+
encoding: UTF-8
|
161
|
+
string: '{"successful":true,"response":{"authorization":"1498544063","id":"071-R-CL0LANL4","amount":10000,"refunded":"Voided","message":"Voided","card_holder":"Matthew
|
162
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-CL0LANL4","reference":"67d823d2da3a43f1c6991bc4f5811e4e","currency":"AUD","successful":false,"transaction_date":"2017-06-27T16:14:23+10:00","response_code":"99","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RCL0LANL4"},"errors":[],"test":true}'
|
163
|
+
http_version:
|
164
|
+
recorded_at: Tue, 27 Jun 2017 06:14:23 GMT
|
165
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,165 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"54241e0da2a7a87d5e8ef93e3d2baf22","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Content-Length:
|
17
|
+
- '214'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
Authorization:
|
21
|
+
- Basic VEVTVDpURVNU
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Tue, 27 Jun 2017 06:14:23 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
|
+
X-Rack-Cache:
|
38
|
+
- invalidate, pass
|
39
|
+
Cache-Control:
|
40
|
+
- no-store
|
41
|
+
X-Request-Version:
|
42
|
+
- 1.19.41
|
43
|
+
X-Runtime:
|
44
|
+
- '0.366403'
|
45
|
+
Pragma:
|
46
|
+
- no-cache
|
47
|
+
X-Request-Id:
|
48
|
+
- b523470097e22884a52c09f78f164973
|
49
|
+
X-Backend:
|
50
|
+
- sbox-priv-gateway-a
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"successful":true,"response":{"authorization":"880024","id":"071-P-BOX6MN6I","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
54
|
+
Savage","card_expiry":"2030-02-28","card_token":"fke86c5u","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"54241e0da2a7a87d5e8ef93e3d2baf22","currency":"AUD","transaction_id":"071-P-BOX6MN6I","settlement_date":"2017-06-27","transaction_date":"2017-06-27T16:14:23+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PBOX6MN6I","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Tue, 27 Jun 2017 06:14:23 GMT
|
57
|
+
- request:
|
58
|
+
method: post
|
59
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: '{"transaction_id":"071-P-BOX6MN6I","amount":10000,"reference":"54241e0da2a7a87d5e8ef93e3d2baf22","test":true}'
|
63
|
+
headers:
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
Accept-Encoding:
|
67
|
+
- gzip, deflate
|
68
|
+
Content-Type:
|
69
|
+
- application/json
|
70
|
+
Content-Length:
|
71
|
+
- '109'
|
72
|
+
User-Agent:
|
73
|
+
- Ruby
|
74
|
+
Authorization:
|
75
|
+
- Basic VEVTVDpURVNU
|
76
|
+
response:
|
77
|
+
status:
|
78
|
+
code: 200
|
79
|
+
message: OK
|
80
|
+
headers:
|
81
|
+
Date:
|
82
|
+
- Tue, 27 Jun 2017 06:14:24 GMT
|
83
|
+
Content-Type:
|
84
|
+
- application/json; charset=utf-8
|
85
|
+
Transfer-Encoding:
|
86
|
+
- chunked
|
87
|
+
Connection:
|
88
|
+
- keep-alive
|
89
|
+
Status:
|
90
|
+
- 200 OK
|
91
|
+
X-Rack-Cache:
|
92
|
+
- invalidate, pass
|
93
|
+
Cache-Control:
|
94
|
+
- no-store
|
95
|
+
X-Request-Version:
|
96
|
+
- 1.19.41
|
97
|
+
X-Runtime:
|
98
|
+
- '0.169350'
|
99
|
+
Pragma:
|
100
|
+
- no-cache
|
101
|
+
X-Request-Id:
|
102
|
+
- 8c00ec0cb3ed59a3d5c51f2db16768f5
|
103
|
+
X-Backend:
|
104
|
+
- sbox-priv-gateway-a
|
105
|
+
body:
|
106
|
+
encoding: UTF-8
|
107
|
+
string: '{"successful":true,"response":{"authorization":1498544064,"id":"071-R-6AV8WYL","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
108
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-6AV8WYL","reference":"54241e0da2a7a87d5e8ef93e3d2baf22","currency":"AUD","successful":true,"transaction_date":"2017-06-27T16:14:23+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071R6AV8WYL"},"errors":[],"test":true}'
|
109
|
+
http_version:
|
110
|
+
recorded_at: Tue, 27 Jun 2017 06:14:24 GMT
|
111
|
+
- request:
|
112
|
+
method: post
|
113
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds/void
|
114
|
+
body:
|
115
|
+
encoding: UTF-8
|
116
|
+
string: '{"id":"071-R-6AV8WYL","test":true}'
|
117
|
+
headers:
|
118
|
+
Accept:
|
119
|
+
- application/json
|
120
|
+
Accept-Encoding:
|
121
|
+
- gzip, deflate
|
122
|
+
Content-Type:
|
123
|
+
- application/json
|
124
|
+
Content-Length:
|
125
|
+
- '34'
|
126
|
+
User-Agent:
|
127
|
+
- Ruby
|
128
|
+
Authorization:
|
129
|
+
- Basic VEVTVDpURVNU
|
130
|
+
response:
|
131
|
+
status:
|
132
|
+
code: 200
|
133
|
+
message: OK
|
134
|
+
headers:
|
135
|
+
Date:
|
136
|
+
- Tue, 27 Jun 2017 06:14:24 GMT
|
137
|
+
Content-Type:
|
138
|
+
- application/json; charset=utf-8
|
139
|
+
Transfer-Encoding:
|
140
|
+
- chunked
|
141
|
+
Connection:
|
142
|
+
- keep-alive
|
143
|
+
Status:
|
144
|
+
- 200 OK
|
145
|
+
Cache-Control:
|
146
|
+
- no-store
|
147
|
+
X-Request-Version:
|
148
|
+
- 1.19.41
|
149
|
+
Pragma:
|
150
|
+
- no-cache
|
151
|
+
X-Request-Id:
|
152
|
+
- 6d499590f73a8b944a670f25935bbd7a
|
153
|
+
X-Runtime:
|
154
|
+
- '0.055045'
|
155
|
+
X-Rack-Cache:
|
156
|
+
- invalidate, pass
|
157
|
+
X-Backend:
|
158
|
+
- sbox-priv-gateway-a
|
159
|
+
body:
|
160
|
+
encoding: UTF-8
|
161
|
+
string: '{"successful":true,"response":{"authorization":"1498544064","id":"071-R-6AV8WYL","amount":10000,"refunded":"Voided","message":"Voided","card_holder":"Matthew
|
162
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-6AV8WYL","reference":"54241e0da2a7a87d5e8ef93e3d2baf22","currency":"AUD","successful":false,"transaction_date":"2017-06-27T16:14:23+10:00","response_code":"99","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071R6AV8WYL"},"errors":[],"test":true}'
|
163
|
+
http_version:
|
164
|
+
recorded_at: Tue, 27 Jun 2017 06:14:24 GMT
|
165
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/web_hooks
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"events":"*","mode":"Test","name":"test hook","address":"http://stage.example.com.au/v1/api/hook_listener","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Content-Length:
|
17
|
+
- '120'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
Authorization:
|
21
|
+
- Basic VEVTVDpURVNU
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Tue, 27 Jun 2017 06:22:37 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.19.41
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- 0c1a6f8ef0980b1cc0bef9f5cfccecf1
|
45
|
+
X-Runtime:
|
46
|
+
- '0.049252'
|
47
|
+
X-Rack-Cache:
|
48
|
+
- invalidate, pass
|
49
|
+
X-Backend:
|
50
|
+
- sbox-priv-gateway-a
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"successful":true,"response":{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
54
|
+
hook","id":"071-WH-SCGDLAI6"},"errors":[],"test":true}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Tue, 27 Jun 2017 06:22:37 GMT
|
57
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/web_hooks
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"events":"*","mode":"Test","name":"test hook","address":"http://stage.example.com.au/v1/api/hook_listener","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Content-Length:
|
17
|
+
- '120'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
Authorization:
|
21
|
+
- Basic VEVTVDpURVNU
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Tue, 27 Jun 2017 06:22:38 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
|
+
X-Rack-Cache:
|
38
|
+
- invalidate, pass
|
39
|
+
Cache-Control:
|
40
|
+
- no-store
|
41
|
+
X-Request-Version:
|
42
|
+
- 1.19.41
|
43
|
+
X-Runtime:
|
44
|
+
- '0.039069'
|
45
|
+
Pragma:
|
46
|
+
- no-cache
|
47
|
+
X-Request-Id:
|
48
|
+
- a8e7d263f4267b6c67cb7ffc8fbcf7d6
|
49
|
+
X-Backend:
|
50
|
+
- sbox-priv-gateway-a
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"successful":true,"response":{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
54
|
+
hook","id":"071-WH-8PHUB38P"},"errors":[],"test":true}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Tue, 27 Jun 2017 06:22:38 GMT
|
57
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/web_hooks
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"events":"*","mode":"Test","name":"test hook","address":"http://stage.example.com.au/v1/api/hook_listener","test":true}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Content-Length:
|
17
|
+
- '120'
|
18
|
+
User-Agent:
|
19
|
+
- Ruby
|
20
|
+
Authorization:
|
21
|
+
- Basic VEVTVDpURVNU
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Tue, 27 Jun 2017 06:22:38 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.19.41
|
41
|
+
Pragma:
|
42
|
+
- no-cache
|
43
|
+
X-Request-Id:
|
44
|
+
- abd79ddef4bef908f739b613e2bde997
|
45
|
+
X-Runtime:
|
46
|
+
- '0.039163'
|
47
|
+
X-Rack-Cache:
|
48
|
+
- invalidate, pass
|
49
|
+
X-Backend:
|
50
|
+
- sbox-priv-gateway-a
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"successful":true,"response":{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
54
|
+
hook","id":"071-WH-CF230O8U"},"errors":[],"test":true}'
|
55
|
+
http_version:
|
56
|
+
recorded_at: Tue, 27 Jun 2017 06:22:38 GMT
|
57
|
+
recorded_with: VCR 3.0.3
|