fat_zebra_multi 3.1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/.rspec +0 -0
- data/.rubocop.yml +44 -0
- data/.travis.yml +10 -0
- data/Gemfile +4 -0
- data/README.md +104 -0
- data/Rakefile +11 -0
- data/fat_zebra_multi.gemspec +27 -0
- data/lib/fat_zebra.rb +65 -0
- data/lib/fat_zebra/api_helper.rb +91 -0
- data/lib/fat_zebra/api_operation/delete.rb +38 -0
- data/lib/fat_zebra/api_operation/find.rb +30 -0
- data/lib/fat_zebra/api_operation/save.rb +67 -0
- data/lib/fat_zebra/api_operation/search.rb +39 -0
- data/lib/fat_zebra/api_operation/void.rb +52 -0
- data/lib/fat_zebra/api_resource.rb +88 -0
- data/lib/fat_zebra/bank_account.rb +20 -0
- data/lib/fat_zebra/batch.rb +60 -0
- data/lib/fat_zebra/card.rb +23 -0
- data/lib/fat_zebra/config.rb +90 -0
- data/lib/fat_zebra/customer.rb +26 -0
- data/lib/fat_zebra/direct_credit.rb +26 -0
- data/lib/fat_zebra/direct_debit.rb +26 -0
- data/lib/fat_zebra/errors.rb +37 -0
- data/lib/fat_zebra/fat_zebra_object.rb +68 -0
- data/lib/fat_zebra/information.rb +29 -0
- data/lib/fat_zebra/object_helper.rb +119 -0
- data/lib/fat_zebra/payment_plan.rb +61 -0
- data/lib/fat_zebra/purchase.rb +96 -0
- data/lib/fat_zebra/refund.rb +27 -0
- data/lib/fat_zebra/request.rb +174 -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 +57 -0
- data/lib/fat_zebra/util.rb +71 -0
- data/lib/fat_zebra/validation.rb +67 -0
- data/lib/fat_zebra/version.rb +3 -0
- data/lib/fat_zebra/web_hook.rb +22 -0
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +53 -0
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +53 -0
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +164 -0
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +164 -0
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +164 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +61 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +61 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +61 -0
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +61 -0
- data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +112 -0
- data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +112 -0
- data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +163 -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 +54 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +54 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +54 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +54 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +54 -0
- data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +54 -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 +54 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +55 -0
- data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +103 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +107 -0
- data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +107 -0
- data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +60 -0
- data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +60 -0
- data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +60 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +106 -0
- data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +106 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +52 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +52 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +52 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +52 -0
- data/spec/cassettes/FatZebra_DirectCredit/_create/validations/valid/1_1_5_1_1.yml +52 -0
- data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +99 -0
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +103 -0
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +103 -0
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +103 -0
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +152 -0
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +152 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +52 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +52 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +52 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +52 -0
- data/spec/cassettes/FatZebra_DirectDebit/_create/validations/valid/1_1_5_1_1.yml +52 -0
- data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +99 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +103 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +103 -0
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +103 -0
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +152 -0
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +152 -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_8_1.yml +222 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +222 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +110 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +110 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +110 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +158 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +158 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +167 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +167 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +167 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +166 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +166 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +160 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +160 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +160 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +166 -0
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +166 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_1.yml +115 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_2.yml +115 -0
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_3.yml +115 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_13.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +53 -0
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_1.yml +55 -0
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_2.yml +55 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_1.yml +117 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_2.yml +117 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_3.yml +117 -0
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_4.yml +117 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_1.yml +115 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_2.yml +115 -0
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_3.yml +115 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +164 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +164 -0
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +164 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_1.yml +652 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_2.yml +652 -0
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_3.yml +652 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_4.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +103 -0
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_4.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +103 -0
- data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +155 -0
- data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +155 -0
- data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +155 -0
- data/spec/cassettes/FatZebra_Refund/_search/responds_with_the_newly-created_refunds.yml +214 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +153 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +153 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +153 -0
- data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +153 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +53 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +53 -0
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +53 -0
- data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +101 -0
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +298 -0
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +300 -0
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +104 -0
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +104 -0
- data/spec/cassettes/Multiple_accounts/The_basics/1_1_5.yml +59 -0
- data/spec/cassettes/Multiple_accounts/The_basics/1_1_6.yml +59 -0
- data/spec/fixtures/batch_test.csv +4 -0
- data/spec/lib/fat_zebra/api_resource_spec.rb +25 -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 +69 -0
- data/spec/lib/fat_zebra/customer_spec.rb +53 -0
- data/spec/lib/fat_zebra/direct_credit_spec.rb +74 -0
- data/spec/lib/fat_zebra/direct_debit_spec.rb +74 -0
- data/spec/lib/fat_zebra/fat_zebra_object_spec.rb +117 -0
- data/spec/lib/fat_zebra/information_spec.rb +13 -0
- data/spec/lib/fat_zebra/multiple_accounts_spec.rb +69 -0
- data/spec/lib/fat_zebra/payment_plan_spec.rb +94 -0
- data/spec/lib/fat_zebra/purchase_spec.rb +105 -0
- data/spec/lib/fat_zebra/refund_spec.rb +95 -0
- data/spec/lib/fat_zebra/request_spec.rb +59 -0
- data/spec/lib/fat_zebra/util_spec.rb +43 -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 +68 -0
- data/spec/support/payloads.rb +43 -0
- data/vendor/cacert.pem +3390 -0
- metadata +338 -0
@@ -0,0 +1,103 @@
|
|
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":"fce23f145019689146194f38806198ab","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:16:52 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.461589'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- 157e1b8343a49b3dd20c5128
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"id":"071-C-UHQDP7S","email":null,"reference":"fce23f145019689146194f38806198ab","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:52+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"uh44gq5tbcn37976aolm","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 29 Apr 2019 09:16:52 GMT
|
55
|
+
- request:
|
56
|
+
method: delete
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers/071-C-UHQDP7S
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"test":true}'
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- "*/*"
|
66
|
+
User-Agent:
|
67
|
+
- Ruby
|
68
|
+
Authorization:
|
69
|
+
- Basic VEVTVDpURVNU
|
70
|
+
response:
|
71
|
+
status:
|
72
|
+
code: 200
|
73
|
+
message: OK
|
74
|
+
headers:
|
75
|
+
Date:
|
76
|
+
- Mon, 29 Apr 2019 09:16:52 GMT
|
77
|
+
Content-Type:
|
78
|
+
- application/json; charset=utf-8
|
79
|
+
Transfer-Encoding:
|
80
|
+
- chunked
|
81
|
+
Connection:
|
82
|
+
- keep-alive
|
83
|
+
Status:
|
84
|
+
- 200 OK
|
85
|
+
Cache-Control:
|
86
|
+
- no-store
|
87
|
+
X-Request-Version:
|
88
|
+
- 1.16.9-3941@c1d8236
|
89
|
+
X-Runtime:
|
90
|
+
- '0.101810'
|
91
|
+
Pragma:
|
92
|
+
- no-cache
|
93
|
+
X-Request-Id:
|
94
|
+
- 7f81a8e4297c6298305d7c38
|
95
|
+
X-Backend:
|
96
|
+
- sbox-priv-gateway-a
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: '{"successful":true,"response":{"id":"071-C-UHQDP7S","email":null,"reference":"fce23f145019689146194f38806198ab","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:52+10:00","address":{"address":"1
|
100
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"uh44gq5tbcn37976aolm","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
|
101
|
+
http_version:
|
102
|
+
recorded_at: Mon, 29 Apr 2019 09:16:52 GMT
|
103
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,107 @@
|
|
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":"50d99b7822e4fbad12963667d564e215","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:16:49 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.469177'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- 56d1c9fce3c161e3b678286e
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"id":"071-C-ZC6M2VFL","email":null,"reference":"50d99b7822e4fbad12963667d564e215","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:49+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"7epbpv4dmapzgga57qzf","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 29 Apr 2019 09:16:49 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers/50d99b7822e4fbad12963667d564e215?test=true
|
58
|
+
body:
|
59
|
+
encoding: US-ASCII
|
60
|
+
string: ''
|
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
|
+
Host:
|
69
|
+
- gateway.sandbox.fatzebra.com.au
|
70
|
+
Authorization:
|
71
|
+
- Basic VEVTVDpURVNU
|
72
|
+
Content-Type:
|
73
|
+
- application/json
|
74
|
+
response:
|
75
|
+
status:
|
76
|
+
code: 200
|
77
|
+
message: OK
|
78
|
+
headers:
|
79
|
+
Date:
|
80
|
+
- Mon, 29 Apr 2019 09:16:49 GMT
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=utf-8
|
83
|
+
Transfer-Encoding:
|
84
|
+
- chunked
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
Status:
|
88
|
+
- 200 OK
|
89
|
+
Cache-Control:
|
90
|
+
- no-store
|
91
|
+
X-Request-Version:
|
92
|
+
- 1.16.9-3941@c1d8236
|
93
|
+
X-Runtime:
|
94
|
+
- '0.035116'
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- c0ad888d07d17250a0594b55
|
99
|
+
X-Backend:
|
100
|
+
- sbox-priv-gateway-a
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: '{"successful":true,"response":{"id":"071-C-ZC6M2VFL","email":null,"reference":"50d99b7822e4fbad12963667d564e215","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:49+10:00","address":{"address":"1
|
104
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"7epbpv4dmapzgga57qzf","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Mon, 29 Apr 2019 09:16:49 GMT
|
107
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,107 @@
|
|
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":"61d6a9d0741ec19613ba3f87c325110b","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:16:50 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.493848'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- 6d67c231f800783beb8eb803
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"id":"071-C-VM4YXEKW","email":null,"reference":"61d6a9d0741ec19613ba3f87c325110b","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:50+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"o6y4vnc7y61ampcvl02d","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 29 Apr 2019 09:16:50 GMT
|
55
|
+
- request:
|
56
|
+
method: get
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers/61d6a9d0741ec19613ba3f87c325110b?test=true
|
58
|
+
body:
|
59
|
+
encoding: US-ASCII
|
60
|
+
string: ''
|
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
|
+
Host:
|
69
|
+
- gateway.sandbox.fatzebra.com.au
|
70
|
+
Authorization:
|
71
|
+
- Basic VEVTVDpURVNU
|
72
|
+
Content-Type:
|
73
|
+
- application/json
|
74
|
+
response:
|
75
|
+
status:
|
76
|
+
code: 200
|
77
|
+
message: OK
|
78
|
+
headers:
|
79
|
+
Date:
|
80
|
+
- Mon, 29 Apr 2019 09:16:50 GMT
|
81
|
+
Content-Type:
|
82
|
+
- application/json; charset=utf-8
|
83
|
+
Transfer-Encoding:
|
84
|
+
- chunked
|
85
|
+
Connection:
|
86
|
+
- keep-alive
|
87
|
+
Status:
|
88
|
+
- 200 OK
|
89
|
+
Cache-Control:
|
90
|
+
- no-store
|
91
|
+
X-Request-Version:
|
92
|
+
- 1.16.9-3941@c1d8236
|
93
|
+
X-Runtime:
|
94
|
+
- '0.034559'
|
95
|
+
Pragma:
|
96
|
+
- no-cache
|
97
|
+
X-Request-Id:
|
98
|
+
- a6faf58acf6a27b8267af041
|
99
|
+
X-Backend:
|
100
|
+
- sbox-priv-gateway-a
|
101
|
+
body:
|
102
|
+
encoding: UTF-8
|
103
|
+
string: '{"successful":true,"response":{"id":"071-C-VM4YXEKW","email":null,"reference":"61d6a9d0741ec19613ba3f87c325110b","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:50+10:00","address":{"address":"1
|
104
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"o6y4vnc7y61ampcvl02d","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
|
105
|
+
http_version:
|
106
|
+
recorded_at: Mon, 29 Apr 2019 09:16:50 GMT
|
107
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers?limit=10&offset=0&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:16:49 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.989889'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- 607bb59bf919037a8a49bd26
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":[{"id":"071-C-5XZ8AEB3","email":null,"reference":"5104699755480c8c429ee413804ce159","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:47+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"xbxcfh8kiaorczfj65ea","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-QMKP54FZ","email":null,"reference":"75d2058ca47b2db6d025cf42a74a3b9b","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:47+10:00","address":{"address":"1
|
53
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"78xdk1ts66vy46czhfrv","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-CBKT0YC7","email":null,"reference":"e53046190de3c04ab64c7ee7241c87d7","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:46+10:00","address":{"address":"1
|
54
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"bzn5a5365w34hvgwxm5p","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-ZNKRRIT5","email":null,"reference":"cb3f2e4e0c18971cb386e2501fbdc6e8","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:45+10:00","address":{"address":"1
|
55
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"7tflcn3q3bpv09w0xzkd","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-T4T2GGZH","email":null,"reference":"3f74accbbf37188bd57da43722517902","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:45+10:00","address":{"address":"1
|
56
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"3zxwmlhbdjzw4mrt30c5","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-BO7K833F","email":null,"reference":"54db6e776bbea112a25bcec04132f82d","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:44+10:00","address":{"address":"1
|
57
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"tf0rp0zy5tjmi7pabocn","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-ADZI0LFX","email":null,"reference":"6639d944-5cfa-40df-a837-b69bdf1b2e4b","first_name":"Jim","last_name":"Smith","created_at":"2019-04-26T15:47:27+10:00","address":{"address":null,"city":null,"state":null,"postcode":null,"country":null},"card_token":"gq2feh9aat3m4ujr7fvl","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-23J8G0EE","email":null,"reference":"6d2b0fa5-fbfa-4385-a2c2-134bc3cf607c","first_name":"Jim","last_name":"Smith","created_at":"2019-04-26T15:47:25+10:00","address":{"address":null,"city":null,"state":null,"postcode":null,"country":null},"card_token":"aanpkc2aqsfwyi1jixz8","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-ZNIJOI08","email":null,"reference":"f3cd66a0-1e53-4d34-8c3e-0d445da8b49f","first_name":"Jim","last_name":"Smith","created_at":"2019-04-26T15:47:24+10:00","address":{"address":null,"city":null,"state":null,"postcode":null,"country":null},"card_token":"eaev0pfu84w36nsnihsr","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-4J72SKVR","email":null,"reference":"2e5b34e2-5751-4e7d-803b-8cf9e062a4fa","first_name":"Jim","last_name":"Smith","created_at":"2019-04-26T15:47:22+10:00","address":{"address":null,"city":null,"state":null,"postcode":null,"country":null},"card_token":"a4923s31sxzyghghtuud","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null}],"errors":[],"test":true,"records":10,"total_records":2297,"page":1,"total_pages":230}'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Mon, 29 Apr 2019 09:16:49 GMT
|
60
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers?limit=10&offset=0&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:16:49 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.047194'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- 8751087df2ffe37cad8124c6
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":[{"id":"071-C-5XZ8AEB3","email":null,"reference":"5104699755480c8c429ee413804ce159","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:47+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"xbxcfh8kiaorczfj65ea","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-QMKP54FZ","email":null,"reference":"75d2058ca47b2db6d025cf42a74a3b9b","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:47+10:00","address":{"address":"1
|
53
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"78xdk1ts66vy46czhfrv","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-CBKT0YC7","email":null,"reference":"e53046190de3c04ab64c7ee7241c87d7","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:46+10:00","address":{"address":"1
|
54
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"bzn5a5365w34hvgwxm5p","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-ZNKRRIT5","email":null,"reference":"cb3f2e4e0c18971cb386e2501fbdc6e8","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:45+10:00","address":{"address":"1
|
55
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"7tflcn3q3bpv09w0xzkd","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-T4T2GGZH","email":null,"reference":"3f74accbbf37188bd57da43722517902","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:45+10:00","address":{"address":"1
|
56
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"3zxwmlhbdjzw4mrt30c5","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-BO7K833F","email":null,"reference":"54db6e776bbea112a25bcec04132f82d","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:44+10:00","address":{"address":"1
|
57
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"tf0rp0zy5tjmi7pabocn","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-ADZI0LFX","email":null,"reference":"6639d944-5cfa-40df-a837-b69bdf1b2e4b","first_name":"Jim","last_name":"Smith","created_at":"2019-04-26T15:47:27+10:00","address":{"address":null,"city":null,"state":null,"postcode":null,"country":null},"card_token":"gq2feh9aat3m4ujr7fvl","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-23J8G0EE","email":null,"reference":"6d2b0fa5-fbfa-4385-a2c2-134bc3cf607c","first_name":"Jim","last_name":"Smith","created_at":"2019-04-26T15:47:25+10:00","address":{"address":null,"city":null,"state":null,"postcode":null,"country":null},"card_token":"aanpkc2aqsfwyi1jixz8","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-ZNIJOI08","email":null,"reference":"f3cd66a0-1e53-4d34-8c3e-0d445da8b49f","first_name":"Jim","last_name":"Smith","created_at":"2019-04-26T15:47:24+10:00","address":{"address":null,"city":null,"state":null,"postcode":null,"country":null},"card_token":"eaev0pfu84w36nsnihsr","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-4J72SKVR","email":null,"reference":"2e5b34e2-5751-4e7d-803b-8cf9e062a4fa","first_name":"Jim","last_name":"Smith","created_at":"2019-04-26T15:47:22+10:00","address":{"address":null,"city":null,"state":null,"postcode":null,"country":null},"card_token":"a4923s31sxzyghghtuud","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null}],"errors":[],"test":true,"records":10,"total_records":2297,"page":1,"total_pages":230}'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Mon, 29 Apr 2019 09:16:49 GMT
|
60
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/customers?limit=10&offset=0&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:16:49 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.050066'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- '02800750e8bba8f0d638b150'
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":[{"id":"071-C-5XZ8AEB3","email":null,"reference":"5104699755480c8c429ee413804ce159","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:47+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"xbxcfh8kiaorczfj65ea","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-QMKP54FZ","email":null,"reference":"75d2058ca47b2db6d025cf42a74a3b9b","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:47+10:00","address":{"address":"1
|
53
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"78xdk1ts66vy46czhfrv","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-CBKT0YC7","email":null,"reference":"e53046190de3c04ab64c7ee7241c87d7","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:46+10:00","address":{"address":"1
|
54
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"bzn5a5365w34hvgwxm5p","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-ZNKRRIT5","email":null,"reference":"cb3f2e4e0c18971cb386e2501fbdc6e8","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:45+10:00","address":{"address":"1
|
55
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"7tflcn3q3bpv09w0xzkd","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-T4T2GGZH","email":null,"reference":"3f74accbbf37188bd57da43722517902","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:45+10:00","address":{"address":"1
|
56
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"3zxwmlhbdjzw4mrt30c5","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-BO7K833F","email":null,"reference":"54db6e776bbea112a25bcec04132f82d","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:16:44+10:00","address":{"address":"1
|
57
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"tf0rp0zy5tjmi7pabocn","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-ADZI0LFX","email":null,"reference":"6639d944-5cfa-40df-a837-b69bdf1b2e4b","first_name":"Jim","last_name":"Smith","created_at":"2019-04-26T15:47:27+10:00","address":{"address":null,"city":null,"state":null,"postcode":null,"country":null},"card_token":"gq2feh9aat3m4ujr7fvl","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-23J8G0EE","email":null,"reference":"6d2b0fa5-fbfa-4385-a2c2-134bc3cf607c","first_name":"Jim","last_name":"Smith","created_at":"2019-04-26T15:47:25+10:00","address":{"address":null,"city":null,"state":null,"postcode":null,"country":null},"card_token":"aanpkc2aqsfwyi1jixz8","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-ZNIJOI08","email":null,"reference":"f3cd66a0-1e53-4d34-8c3e-0d445da8b49f","first_name":"Jim","last_name":"Smith","created_at":"2019-04-26T15:47:24+10:00","address":{"address":null,"city":null,"state":null,"postcode":null,"country":null},"card_token":"eaev0pfu84w36nsnihsr","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},{"id":"071-C-4J72SKVR","email":null,"reference":"2e5b34e2-5751-4e7d-803b-8cf9e062a4fa","first_name":"Jim","last_name":"Smith","created_at":"2019-04-26T15:47:22+10:00","address":{"address":null,"city":null,"state":null,"postcode":null,"country":null},"card_token":"a4923s31sxzyghghtuud","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null}],"errors":[],"test":true,"records":10,"total_records":2297,"page":1,"total_pages":230}'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Mon, 29 Apr 2019 09:16:49 GMT
|
60
|
+
recorded_with: VCR 3.0.3
|