fat_zebra 2.0.13 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,281 @@
|
|
|
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":"d1d63c0dbe218d3f7854ace315e67fa6","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 05:09:30 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
|
+
- 3f355143147f35f5a3f310a222ec7d0f
|
|
45
|
+
X-Runtime:
|
|
46
|
+
- '0.449303'
|
|
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":"847555","id":"071-P-3RMKLUL0","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":"d1d63c0dbe218d3f7854ace315e67fa6","currency":"AUD","transaction_id":"071-P-3RMKLUL0","settlement_date":"2017-06-27","transaction_date":"2017-06-27T15:09:29+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071P3RMKLUL0","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
|
55
|
+
http_version:
|
|
56
|
+
recorded_at: Tue, 27 Jun 2017 05:09:30 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: '{"amount":10000,"reference":"d1d63c0dbe218d3f7854ace315e67fa6","transaction_id":"071-P-3RMKLUL0","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 05:09:30 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
|
+
- 6cfed301f9957c1d881ee0de088af9e8
|
|
99
|
+
X-Runtime:
|
|
100
|
+
- '0.142685'
|
|
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":1498540170,"id":"071-R-DOI12P0P","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-DOI12P0P","reference":"d1d63c0dbe218d3f7854ace315e67fa6","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:30+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RDOI12P0P"},"errors":[],"test":true}'
|
|
109
|
+
http_version:
|
|
110
|
+
recorded_at: Tue, 27 Jun 2017 05:09:30 GMT
|
|
111
|
+
- request:
|
|
112
|
+
method: post
|
|
113
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
|
114
|
+
body:
|
|
115
|
+
encoding: UTF-8
|
|
116
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"d1d63c0dbe218d3f7854ace315e67fa6","customer_ip":"1.2.3.4","currency":"AUD","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
|
+
- '214'
|
|
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 05:09:30 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
|
+
- 1427ee5c060266f6b9794cea26ef3cff
|
|
153
|
+
X-Runtime:
|
|
154
|
+
- '0.234343'
|
|
155
|
+
X-Rack-Cache:
|
|
156
|
+
- invalidate, pass
|
|
157
|
+
X-Backend:
|
|
158
|
+
- sbox-priv-gateway-a
|
|
159
|
+
body:
|
|
160
|
+
encoding: UTF-8
|
|
161
|
+
string: '{"successful":false,"response":{"authorization":null,"id":"071-P-B361B7SJ","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
|
162
|
+
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":false,"message":null,"reference":"d1d63c0dbe218d3f7854ace315e67fa6","currency":"AUD","transaction_id":"071-P-B361B7SJ","settlement_date":null,"transaction_date":null,"response_code":"99","captured":false,"captured_amount":null,"rrn":null,"cvv_match":"U","metadata":{},"addendum_data":null},"errors":["Reference
|
|
163
|
+
is already taken"],"test":true}'
|
|
164
|
+
http_version:
|
|
165
|
+
recorded_at: Tue, 27 Jun 2017 05:09:30 GMT
|
|
166
|
+
- request:
|
|
167
|
+
method: post
|
|
168
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
|
169
|
+
body:
|
|
170
|
+
encoding: UTF-8
|
|
171
|
+
string: '{"amount":10000,"reference":"d1d63c0dbe218d3f7854ace315e67fa6","transaction_id":"071-P-B361B7SJ","test":true}'
|
|
172
|
+
headers:
|
|
173
|
+
Accept:
|
|
174
|
+
- application/json
|
|
175
|
+
Accept-Encoding:
|
|
176
|
+
- gzip, deflate
|
|
177
|
+
Content-Type:
|
|
178
|
+
- application/json
|
|
179
|
+
Content-Length:
|
|
180
|
+
- '109'
|
|
181
|
+
User-Agent:
|
|
182
|
+
- Ruby
|
|
183
|
+
Authorization:
|
|
184
|
+
- Basic VEVTVDpURVNU
|
|
185
|
+
response:
|
|
186
|
+
status:
|
|
187
|
+
code: 200
|
|
188
|
+
message: OK
|
|
189
|
+
headers:
|
|
190
|
+
Date:
|
|
191
|
+
- Tue, 27 Jun 2017 05:09:30 GMT
|
|
192
|
+
Content-Type:
|
|
193
|
+
- application/json; charset=utf-8
|
|
194
|
+
Transfer-Encoding:
|
|
195
|
+
- chunked
|
|
196
|
+
Connection:
|
|
197
|
+
- keep-alive
|
|
198
|
+
Status:
|
|
199
|
+
- 200 OK
|
|
200
|
+
Cache-Control:
|
|
201
|
+
- no-store
|
|
202
|
+
X-Request-Version:
|
|
203
|
+
- 1.19.41
|
|
204
|
+
Pragma:
|
|
205
|
+
- no-cache
|
|
206
|
+
X-Request-Id:
|
|
207
|
+
- 8c8ec708377bd5a5f54027f19897e0bf
|
|
208
|
+
X-Runtime:
|
|
209
|
+
- '0.025040'
|
|
210
|
+
X-Rack-Cache:
|
|
211
|
+
- invalidate, pass
|
|
212
|
+
X-Backend:
|
|
213
|
+
- sbox-priv-gateway-a
|
|
214
|
+
body:
|
|
215
|
+
encoding: UTF-8
|
|
216
|
+
string: '{"successful":false,"response":{},"errors":["Original transaction could
|
|
217
|
+
not be found"],"test":true}'
|
|
218
|
+
http_version:
|
|
219
|
+
recorded_at: Tue, 27 Jun 2017 05:09:30 GMT
|
|
220
|
+
- request:
|
|
221
|
+
method: get
|
|
222
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds?limit=10&offets=0&test=true
|
|
223
|
+
body:
|
|
224
|
+
encoding: US-ASCII
|
|
225
|
+
string: ''
|
|
226
|
+
headers:
|
|
227
|
+
Accept:
|
|
228
|
+
- application/json
|
|
229
|
+
Accept-Encoding:
|
|
230
|
+
- gzip, deflate
|
|
231
|
+
Content-Type:
|
|
232
|
+
- application/json
|
|
233
|
+
User-Agent:
|
|
234
|
+
- Ruby
|
|
235
|
+
Authorization:
|
|
236
|
+
- Basic VEVTVDpURVNU
|
|
237
|
+
response:
|
|
238
|
+
status:
|
|
239
|
+
code: 200
|
|
240
|
+
message: OK
|
|
241
|
+
headers:
|
|
242
|
+
Date:
|
|
243
|
+
- Tue, 27 Jun 2017 05:09:30 GMT
|
|
244
|
+
Content-Type:
|
|
245
|
+
- application/json; charset=utf-8
|
|
246
|
+
Transfer-Encoding:
|
|
247
|
+
- chunked
|
|
248
|
+
Connection:
|
|
249
|
+
- keep-alive
|
|
250
|
+
Status:
|
|
251
|
+
- 200 OK
|
|
252
|
+
Cache-Control:
|
|
253
|
+
- no-store, private
|
|
254
|
+
X-Request-Version:
|
|
255
|
+
- 1.19.41
|
|
256
|
+
Pragma:
|
|
257
|
+
- no-cache
|
|
258
|
+
X-Request-Id:
|
|
259
|
+
- 561794aa94041655244e3ed5041fda9f
|
|
260
|
+
X-Runtime:
|
|
261
|
+
- '0.071320'
|
|
262
|
+
X-Rack-Cache:
|
|
263
|
+
- miss
|
|
264
|
+
X-Backend:
|
|
265
|
+
- sbox-priv-gateway-a
|
|
266
|
+
body:
|
|
267
|
+
encoding: UTF-8
|
|
268
|
+
string: '{"successful":true,"response":[{"authorization":"1498540170","id":"071-R-DOI12P0P","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
269
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-DOI12P0P","reference":"d1d63c0dbe218d3f7854ace315e67fa6","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:30+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RDOI12P0P"},{"authorization":"1498540169","id":"071-R-EAZKFUV0","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
270
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-EAZKFUV0","reference":"a1a4e6b888cd46edb989937e1d500863","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:29+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071REAZKFUV0"},{"authorization":"1498540168","id":"071-R-TFCM55GS","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
271
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-TFCM55GS","reference":"0cb428ed87e4ba525a37f97bbd24f933","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:28+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RTFCM55GS"},{"authorization":"1498540167","id":"071-R-A2GC4J8W","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
272
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-A2GC4J8W","reference":"d32da43754a5af3b069b79d29c9c9b0d","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:27+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RA2GC4J8W"},{"authorization":"1498540167","id":"071-R-ZG3O434G","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
273
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-ZG3O434G","reference":"904e8c64f428a5428b828017af520eab","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:26+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RZG3O434G"},{"authorization":"1498540166","id":"071-R-9OHV5GYN","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
274
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-9OHV5GYN","reference":"40e3c8f6bf72279903b99ceb33c7646b","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:26+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071R9OHV5GYN"},{"authorization":"1498540165","id":"071-R-ZC9UHEU3","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
275
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-ZC9UHEU3","reference":"bc48f295e4f9ff50fe875f8e70a07d97","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:25+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RZC9UHEU3"},{"authorization":"1498540164","id":"071-R-M3BQFHM7","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
276
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-M3BQFHM7","reference":"9ff838ebfa924a905780c0ec9b493747","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:24+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RM3BQFHM7"},{"authorization":"1498540164","id":"071-R-5K2XLR8N","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
277
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-5K2XLR8N","reference":"211709ab25fc165b358c2344ec6406bc","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:24+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071R5K2XLR8N"},{"authorization":"1498540163","id":"071-R-1A9MO9EE","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
278
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-1A9MO9EE","reference":"0d95e19fd047afa59a0a63e3298b0c7e","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:23+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071R1A9MO9EE"}],"errors":[],"test":true,"records":10,"total_records":16528,"page":1,"total_pages":1653}'
|
|
279
|
+
http_version:
|
|
280
|
+
recorded_at: Tue, 27 Jun 2017 05:09:30 GMT
|
|
281
|
+
recorded_with: VCR 3.0.3
|
|
@@ -0,0 +1,281 @@
|
|
|
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":"0a8ef645695d8bb427d8bee90783b595","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 05:09:31 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
|
+
- 1ab14b3d2980a92cc13284ebc9406609
|
|
45
|
+
X-Runtime:
|
|
46
|
+
- '0.335186'
|
|
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":"987819","id":"071-P-WCR8XFAS","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":"0a8ef645695d8bb427d8bee90783b595","currency":"AUD","transaction_id":"071-P-WCR8XFAS","settlement_date":"2017-06-27","transaction_date":"2017-06-27T15:09:31+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PWCR8XFAS","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
|
|
55
|
+
http_version:
|
|
56
|
+
recorded_at: Tue, 27 Jun 2017 05:09:31 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: '{"amount":10000,"reference":"0a8ef645695d8bb427d8bee90783b595","transaction_id":"071-P-WCR8XFAS","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 05:09:31 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
|
+
- 9680e7a75c09a55a315b857e7248166a
|
|
99
|
+
X-Runtime:
|
|
100
|
+
- '0.144623'
|
|
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":1498540171,"id":"071-R-A37QEY83","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-A37QEY83","reference":"0a8ef645695d8bb427d8bee90783b595","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:31+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RA37QEY83"},"errors":[],"test":true}'
|
|
109
|
+
http_version:
|
|
110
|
+
recorded_at: Tue, 27 Jun 2017 05:09:31 GMT
|
|
111
|
+
- request:
|
|
112
|
+
method: post
|
|
113
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
|
|
114
|
+
body:
|
|
115
|
+
encoding: UTF-8
|
|
116
|
+
string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"0a8ef645695d8bb427d8bee90783b595","customer_ip":"1.2.3.4","currency":"AUD","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
|
+
- '214'
|
|
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 05:09:31 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
|
+
- 265c5dbad8a1283b789e1517e13ac3d4
|
|
153
|
+
X-Runtime:
|
|
154
|
+
- '0.235706'
|
|
155
|
+
X-Rack-Cache:
|
|
156
|
+
- invalidate, pass
|
|
157
|
+
X-Backend:
|
|
158
|
+
- sbox-priv-gateway-a
|
|
159
|
+
body:
|
|
160
|
+
encoding: UTF-8
|
|
161
|
+
string: '{"successful":false,"response":{"authorization":null,"id":"071-P-8BIWY3O2","card_number":"512345XXXXXX2346","card_holder":"Matthew
|
|
162
|
+
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":false,"message":null,"reference":"0a8ef645695d8bb427d8bee90783b595","currency":"AUD","transaction_id":"071-P-8BIWY3O2","settlement_date":null,"transaction_date":null,"response_code":"99","captured":false,"captured_amount":null,"rrn":null,"cvv_match":"U","metadata":{},"addendum_data":null},"errors":["Reference
|
|
163
|
+
is already taken"],"test":true}'
|
|
164
|
+
http_version:
|
|
165
|
+
recorded_at: Tue, 27 Jun 2017 05:09:31 GMT
|
|
166
|
+
- request:
|
|
167
|
+
method: post
|
|
168
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
|
|
169
|
+
body:
|
|
170
|
+
encoding: UTF-8
|
|
171
|
+
string: '{"amount":10000,"reference":"0a8ef645695d8bb427d8bee90783b595","transaction_id":"071-P-8BIWY3O2","test":true}'
|
|
172
|
+
headers:
|
|
173
|
+
Accept:
|
|
174
|
+
- application/json
|
|
175
|
+
Accept-Encoding:
|
|
176
|
+
- gzip, deflate
|
|
177
|
+
Content-Type:
|
|
178
|
+
- application/json
|
|
179
|
+
Content-Length:
|
|
180
|
+
- '109'
|
|
181
|
+
User-Agent:
|
|
182
|
+
- Ruby
|
|
183
|
+
Authorization:
|
|
184
|
+
- Basic VEVTVDpURVNU
|
|
185
|
+
response:
|
|
186
|
+
status:
|
|
187
|
+
code: 200
|
|
188
|
+
message: OK
|
|
189
|
+
headers:
|
|
190
|
+
Date:
|
|
191
|
+
- Tue, 27 Jun 2017 05:09:32 GMT
|
|
192
|
+
Content-Type:
|
|
193
|
+
- application/json; charset=utf-8
|
|
194
|
+
Transfer-Encoding:
|
|
195
|
+
- chunked
|
|
196
|
+
Connection:
|
|
197
|
+
- keep-alive
|
|
198
|
+
Status:
|
|
199
|
+
- 200 OK
|
|
200
|
+
Cache-Control:
|
|
201
|
+
- no-store
|
|
202
|
+
X-Request-Version:
|
|
203
|
+
- 1.19.41
|
|
204
|
+
Pragma:
|
|
205
|
+
- no-cache
|
|
206
|
+
X-Request-Id:
|
|
207
|
+
- cb13dff8d1bec6eabadcf20339f968ef
|
|
208
|
+
X-Runtime:
|
|
209
|
+
- '0.035979'
|
|
210
|
+
X-Rack-Cache:
|
|
211
|
+
- invalidate, pass
|
|
212
|
+
X-Backend:
|
|
213
|
+
- sbox-priv-gateway-a
|
|
214
|
+
body:
|
|
215
|
+
encoding: UTF-8
|
|
216
|
+
string: '{"successful":false,"response":{},"errors":["Original transaction could
|
|
217
|
+
not be found"],"test":true}'
|
|
218
|
+
http_version:
|
|
219
|
+
recorded_at: Tue, 27 Jun 2017 05:09:32 GMT
|
|
220
|
+
- request:
|
|
221
|
+
method: get
|
|
222
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds?limit=10&offets=0&test=true
|
|
223
|
+
body:
|
|
224
|
+
encoding: US-ASCII
|
|
225
|
+
string: ''
|
|
226
|
+
headers:
|
|
227
|
+
Accept:
|
|
228
|
+
- application/json
|
|
229
|
+
Accept-Encoding:
|
|
230
|
+
- gzip, deflate
|
|
231
|
+
Content-Type:
|
|
232
|
+
- application/json
|
|
233
|
+
User-Agent:
|
|
234
|
+
- Ruby
|
|
235
|
+
Authorization:
|
|
236
|
+
- Basic VEVTVDpURVNU
|
|
237
|
+
response:
|
|
238
|
+
status:
|
|
239
|
+
code: 200
|
|
240
|
+
message: OK
|
|
241
|
+
headers:
|
|
242
|
+
Date:
|
|
243
|
+
- Tue, 27 Jun 2017 05:09:32 GMT
|
|
244
|
+
Content-Type:
|
|
245
|
+
- application/json; charset=utf-8
|
|
246
|
+
Transfer-Encoding:
|
|
247
|
+
- chunked
|
|
248
|
+
Connection:
|
|
249
|
+
- keep-alive
|
|
250
|
+
Status:
|
|
251
|
+
- 200 OK
|
|
252
|
+
Cache-Control:
|
|
253
|
+
- no-store, private
|
|
254
|
+
X-Request-Version:
|
|
255
|
+
- 1.19.41
|
|
256
|
+
Pragma:
|
|
257
|
+
- no-cache
|
|
258
|
+
X-Request-Id:
|
|
259
|
+
- e3235b89f6deaff284f344bf9a13cde8
|
|
260
|
+
X-Runtime:
|
|
261
|
+
- '0.073822'
|
|
262
|
+
X-Rack-Cache:
|
|
263
|
+
- miss
|
|
264
|
+
X-Backend:
|
|
265
|
+
- sbox-priv-gateway-a
|
|
266
|
+
body:
|
|
267
|
+
encoding: UTF-8
|
|
268
|
+
string: '{"successful":true,"response":[{"authorization":"1498540171","id":"071-R-A37QEY83","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
269
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-A37QEY83","reference":"0a8ef645695d8bb427d8bee90783b595","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:31+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RA37QEY83"},{"authorization":"1498540170","id":"071-R-DOI12P0P","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
270
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-DOI12P0P","reference":"d1d63c0dbe218d3f7854ace315e67fa6","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:30+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RDOI12P0P"},{"authorization":"1498540169","id":"071-R-EAZKFUV0","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
271
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-EAZKFUV0","reference":"a1a4e6b888cd46edb989937e1d500863","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:29+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071REAZKFUV0"},{"authorization":"1498540168","id":"071-R-TFCM55GS","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
272
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-TFCM55GS","reference":"0cb428ed87e4ba525a37f97bbd24f933","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:28+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RTFCM55GS"},{"authorization":"1498540167","id":"071-R-A2GC4J8W","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
273
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-A2GC4J8W","reference":"d32da43754a5af3b069b79d29c9c9b0d","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:27+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RA2GC4J8W"},{"authorization":"1498540167","id":"071-R-ZG3O434G","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
274
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-ZG3O434G","reference":"904e8c64f428a5428b828017af520eab","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:26+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RZG3O434G"},{"authorization":"1498540166","id":"071-R-9OHV5GYN","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
275
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-9OHV5GYN","reference":"40e3c8f6bf72279903b99ceb33c7646b","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:26+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071R9OHV5GYN"},{"authorization":"1498540165","id":"071-R-ZC9UHEU3","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
276
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-ZC9UHEU3","reference":"bc48f295e4f9ff50fe875f8e70a07d97","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:25+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RZC9UHEU3"},{"authorization":"1498540164","id":"071-R-M3BQFHM7","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
277
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-M3BQFHM7","reference":"9ff838ebfa924a905780c0ec9b493747","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:24+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071RM3BQFHM7"},{"authorization":"1498540164","id":"071-R-5K2XLR8N","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
|
|
278
|
+
Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-5K2XLR8N","reference":"211709ab25fc165b358c2344ec6406bc","currency":"AUD","successful":true,"transaction_date":"2017-06-27T15:09:24+10:00","response_code":"00","settlement_date":"2017-06-28","metadata":{},"standalone":false,"rrn":"071R5K2XLR8N"}],"errors":[],"test":true,"records":10,"total_records":16529,"page":1,"total_pages":1653}'
|
|
279
|
+
http_version:
|
|
280
|
+
recorded_at: Tue, 27 Jun 2017 05:09:32 GMT
|
|
281
|
+
recorded_with: VCR 3.0.3
|