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,160 @@
|
|
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":"cbb5ef096f634a90506a542c7233acef","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
|
9
|
+
Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
|
10
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
|
11
|
+
headers:
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
Authorization:
|
19
|
+
- Basic VEVTVDpURVNU
|
20
|
+
Content-Type:
|
21
|
+
- application/json
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Mon, 29 Apr 2019 09:17:10 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.433573'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- 49a3ab4c8ffcfa2cd327d918
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"id":"071-C-NO0K1ST","email":null,"reference":"cbb5ef096f634a90506a542c7233acef","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:17:09+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"15z2gtb7wzekn8lw1q1u","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 29 Apr 2019 09:17:10 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"payment_method":"Credit Card","customer":"071-C-NO0K1ST","reference":"20ca5d8ec4a119ddaf4729454b9328e1","setup_fee":0,"amount":100,"start_date":"2019-07-28","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
User-Agent:
|
67
|
+
- Ruby
|
68
|
+
Authorization:
|
69
|
+
- Basic VEVTVDpURVNU
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 201
|
75
|
+
message: Created
|
76
|
+
headers:
|
77
|
+
Date:
|
78
|
+
- Mon, 29 Apr 2019 09:17:10 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Status:
|
86
|
+
- 201 Created
|
87
|
+
Cache-Control:
|
88
|
+
- no-store
|
89
|
+
X-Request-Version:
|
90
|
+
- 1.16.9-3941@c1d8236
|
91
|
+
X-Runtime:
|
92
|
+
- '0.259474'
|
93
|
+
Pragma:
|
94
|
+
- no-cache
|
95
|
+
X-Request-Id:
|
96
|
+
- b4dfa103d932127c27372e4f
|
97
|
+
X-Backend:
|
98
|
+
- sbox-priv-gateway-a
|
99
|
+
body:
|
100
|
+
encoding: UTF-8
|
101
|
+
string: '{"successful":true,"response":{"id":"071-PP-9EXAB6WM","customer":"071-C-NO0K1ST","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
102
|
+
Card","reference":"20ca5d8ec4a119ddaf4729454b9328e1","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:10+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-LWWOLUKE","payment_plan":"071-PP-9EXAB6WM","reference":"20ca5d8ec4a119ddaf4729454b9328e1-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-OMWCQ30","payment_plan":"071-PP-9EXAB6WM","reference":"20ca5d8ec4a119ddaf4729454b9328e1-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-IIZVQ9V6","payment_plan":"071-PP-9EXAB6WM","reference":"20ca5d8ec4a119ddaf4729454b9328e1-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-FGVB7R9F","payment_plan":"071-PP-9EXAB6WM","reference":"20ca5d8ec4a119ddaf4729454b9328e1-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-7EKVEETC","payment_plan":"071-PP-9EXAB6WM","reference":"20ca5d8ec4a119ddaf4729454b9328e1-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
|
107
|
+
Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
|
108
|
+
http_version:
|
109
|
+
recorded_at: Mon, 29 Apr 2019 09:17:10 GMT
|
110
|
+
- request:
|
111
|
+
method: put
|
112
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-9EXAB6WM
|
113
|
+
body:
|
114
|
+
encoding: UTF-8
|
115
|
+
string: '{"new_status":"Suspended","test":true}'
|
116
|
+
headers:
|
117
|
+
Accept-Encoding:
|
118
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
119
|
+
Accept:
|
120
|
+
- application/json
|
121
|
+
User-Agent:
|
122
|
+
- Ruby
|
123
|
+
Authorization:
|
124
|
+
- Basic VEVTVDpURVNU
|
125
|
+
Content-Type:
|
126
|
+
- application/json
|
127
|
+
response:
|
128
|
+
status:
|
129
|
+
code: 200
|
130
|
+
message: OK
|
131
|
+
headers:
|
132
|
+
Date:
|
133
|
+
- Mon, 29 Apr 2019 09:17:10 GMT
|
134
|
+
Content-Type:
|
135
|
+
- application/json; charset=utf-8
|
136
|
+
Transfer-Encoding:
|
137
|
+
- chunked
|
138
|
+
Connection:
|
139
|
+
- keep-alive
|
140
|
+
Status:
|
141
|
+
- 200 OK
|
142
|
+
Cache-Control:
|
143
|
+
- no-store
|
144
|
+
X-Request-Version:
|
145
|
+
- 1.16.9-3941@c1d8236
|
146
|
+
X-Runtime:
|
147
|
+
- '0.153423'
|
148
|
+
Pragma:
|
149
|
+
- no-cache
|
150
|
+
X-Request-Id:
|
151
|
+
- aed71068fdda2df4f8f9c24c
|
152
|
+
X-Backend:
|
153
|
+
- sbox-priv-gateway-a
|
154
|
+
body:
|
155
|
+
encoding: UTF-8
|
156
|
+
string: '{"successful":true,"response":{"id":"071-PP-9EXAB6WM","customer":"071-C-NO0K1ST","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
157
|
+
Card","reference":"20ca5d8ec4a119ddaf4729454b9328e1","description":null,"status":"Suspended","status_reason":"Other","created_at":"2019-04-29T19:17:10+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
|
158
|
+
http_version:
|
159
|
+
recorded_at: Mon, 29 Apr 2019 09:17:10 GMT
|
160
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,166 @@
|
|
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":"3472659a03c57ef18df2463aeb75d648","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
|
9
|
+
Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
|
10
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
|
11
|
+
headers:
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
Authorization:
|
19
|
+
- Basic VEVTVDpURVNU
|
20
|
+
Content-Type:
|
21
|
+
- application/json
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Mon, 29 Apr 2019 09:17:11 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.495698'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- 3647e468c0072ae829b9e3c4
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"id":"071-C-A20E609V","email":null,"reference":"3472659a03c57ef18df2463aeb75d648","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:17:10+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"izmvogr78tvsz9jjaaum","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 29 Apr 2019 09:17:11 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"payment_method":"Credit Card","customer":"071-C-A20E609V","reference":"474a4758f3f466316e07f1b1155ba803","setup_fee":0,"amount":100,"start_date":"2019-07-28","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
User-Agent:
|
67
|
+
- Ruby
|
68
|
+
Authorization:
|
69
|
+
- Basic VEVTVDpURVNU
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 201
|
75
|
+
message: Created
|
76
|
+
headers:
|
77
|
+
Date:
|
78
|
+
- Mon, 29 Apr 2019 09:17:11 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Status:
|
86
|
+
- 201 Created
|
87
|
+
Cache-Control:
|
88
|
+
- no-store
|
89
|
+
X-Request-Version:
|
90
|
+
- 1.16.9-3941@c1d8236
|
91
|
+
X-Runtime:
|
92
|
+
- '0.264134'
|
93
|
+
Pragma:
|
94
|
+
- no-cache
|
95
|
+
X-Request-Id:
|
96
|
+
- ea7464c0f3cce8a0209cd054
|
97
|
+
X-Backend:
|
98
|
+
- sbox-priv-gateway-a
|
99
|
+
body:
|
100
|
+
encoding: UTF-8
|
101
|
+
string: '{"successful":true,"response":{"id":"071-PP-T5RYXDK4","customer":"071-C-A20E609V","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
102
|
+
Card","reference":"474a4758f3f466316e07f1b1155ba803","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:11+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-9MLGENY5","payment_plan":"071-PP-T5RYXDK4","reference":"474a4758f3f466316e07f1b1155ba803-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-G1JJ56YM","payment_plan":"071-PP-T5RYXDK4","reference":"474a4758f3f466316e07f1b1155ba803-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-NZXK2U4G","payment_plan":"071-PP-T5RYXDK4","reference":"474a4758f3f466316e07f1b1155ba803-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-6HNR79Q9","payment_plan":"071-PP-T5RYXDK4","reference":"474a4758f3f466316e07f1b1155ba803-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-LJ76UQNA","payment_plan":"071-PP-T5RYXDK4","reference":"474a4758f3f466316e07f1b1155ba803-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
|
107
|
+
Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
|
108
|
+
http_version:
|
109
|
+
recorded_at: Mon, 29 Apr 2019 09:17:11 GMT
|
110
|
+
- request:
|
111
|
+
method: put
|
112
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-T5RYXDK4
|
113
|
+
body:
|
114
|
+
encoding: UTF-8
|
115
|
+
string: '{"customer":"071-C-A20E609V","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
116
|
+
Card","reference":"474a4758f3f466316e07f1b1155ba803","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:11+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-9MLGENY5","payment_plan":"071-PP-T5RYXDK4","reference":"474a4758f3f466316e07f1b1155ba803-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
|
117
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-G1JJ56YM","payment_plan":"071-PP-T5RYXDK4","reference":"474a4758f3f466316e07f1b1155ba803-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
|
118
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-NZXK2U4G","payment_plan":"071-PP-T5RYXDK4","reference":"474a4758f3f466316e07f1b1155ba803-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
|
119
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-6HNR79Q9","payment_plan":"071-PP-T5RYXDK4","reference":"474a4758f3f466316e07f1b1155ba803-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
|
120
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-LJ76UQNA","payment_plan":"071-PP-T5RYXDK4","reference":"474a4758f3f466316e07f1b1155ba803-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
|
121
|
+
Card","status":"Scheduled","result":null,"records":[]}],"new_status":"Suspended","test":true}'
|
122
|
+
headers:
|
123
|
+
Accept-Encoding:
|
124
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
125
|
+
Accept:
|
126
|
+
- application/json
|
127
|
+
User-Agent:
|
128
|
+
- Ruby
|
129
|
+
Authorization:
|
130
|
+
- Basic VEVTVDpURVNU
|
131
|
+
Content-Type:
|
132
|
+
- application/json
|
133
|
+
response:
|
134
|
+
status:
|
135
|
+
code: 200
|
136
|
+
message: OK
|
137
|
+
headers:
|
138
|
+
Date:
|
139
|
+
- Mon, 29 Apr 2019 09:17:12 GMT
|
140
|
+
Content-Type:
|
141
|
+
- application/json; charset=utf-8
|
142
|
+
Transfer-Encoding:
|
143
|
+
- chunked
|
144
|
+
Connection:
|
145
|
+
- keep-alive
|
146
|
+
Status:
|
147
|
+
- 200 OK
|
148
|
+
Cache-Control:
|
149
|
+
- no-store
|
150
|
+
X-Request-Version:
|
151
|
+
- 1.16.9-3941@c1d8236
|
152
|
+
X-Runtime:
|
153
|
+
- '0.196614'
|
154
|
+
Pragma:
|
155
|
+
- no-cache
|
156
|
+
X-Request-Id:
|
157
|
+
- debb092cd237dce0cc37a9e0
|
158
|
+
X-Backend:
|
159
|
+
- sbox-priv-gateway-a
|
160
|
+
body:
|
161
|
+
encoding: UTF-8
|
162
|
+
string: '{"successful":true,"response":{"id":"071-PP-T5RYXDK4","customer":"071-C-A20E609V","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
163
|
+
Card","reference":"474a4758f3f466316e07f1b1155ba803","description":null,"status":"Suspended","status_reason":"Other","created_at":"2019-04-29T19:17:11+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
|
164
|
+
http_version:
|
165
|
+
recorded_at: Mon, 29 Apr 2019 09:17:12 GMT
|
166
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,166 @@
|
|
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":"c88bb12b679fca7af7d9cd1ae7dc9b6e","email":"hhump@test.com","ip_address":"180.200.33.181","card":{"card_holder":"Harrold
|
9
|
+
Humphries Senior","card_number":"5123456789012346","expiry_date":"05/2023","cvv":"123"},"address":{"address":"1
|
10
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"test":true}'
|
11
|
+
headers:
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
Authorization:
|
19
|
+
- Basic VEVTVDpURVNU
|
20
|
+
Content-Type:
|
21
|
+
- application/json
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Mon, 29 Apr 2019 09:17:12 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.470425'
|
43
|
+
Pragma:
|
44
|
+
- no-cache
|
45
|
+
X-Request-Id:
|
46
|
+
- e8ad02d4305d78ab2caa3ddd
|
47
|
+
X-Backend:
|
48
|
+
- sbox-priv-gateway-a
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"successful":true,"response":{"id":"071-C-PCKV4X63","email":null,"reference":"c88bb12b679fca7af7d9cd1ae7dc9b6e","first_name":"Harrold","last_name":"Humphries","created_at":"2019-04-29T19:17:12+10:00","address":{"address":"1
|
52
|
+
Harriet Road","city":"Kooliablin","state":"NSW","postcode":"2222","country":"Australia"},"card_token":"vv1ypdx34cprtdg0bvsh","card_number":"512345XXXXXX2346","bank_account":null,"metadata":null},"errors":[],"test":true}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Mon, 29 Apr 2019 09:17:12 GMT
|
55
|
+
- request:
|
56
|
+
method: post
|
57
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"payment_method":"Credit Card","customer":"071-C-PCKV4X63","reference":"df3d4d491a04b7f892c7e91fb6a53325","setup_fee":0,"amount":100,"start_date":"2019-07-28","frequency":"Weekly","anniversary":5,"total_count":5,"total_amount":500,"test":true}'
|
61
|
+
headers:
|
62
|
+
Accept-Encoding:
|
63
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
64
|
+
Accept:
|
65
|
+
- application/json
|
66
|
+
User-Agent:
|
67
|
+
- Ruby
|
68
|
+
Authorization:
|
69
|
+
- Basic VEVTVDpURVNU
|
70
|
+
Content-Type:
|
71
|
+
- application/json
|
72
|
+
response:
|
73
|
+
status:
|
74
|
+
code: 201
|
75
|
+
message: Created
|
76
|
+
headers:
|
77
|
+
Date:
|
78
|
+
- Mon, 29 Apr 2019 09:17:13 GMT
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Transfer-Encoding:
|
82
|
+
- chunked
|
83
|
+
Connection:
|
84
|
+
- keep-alive
|
85
|
+
Status:
|
86
|
+
- 201 Created
|
87
|
+
Cache-Control:
|
88
|
+
- no-store
|
89
|
+
X-Request-Version:
|
90
|
+
- 1.16.9-3941@c1d8236
|
91
|
+
X-Runtime:
|
92
|
+
- '0.283646'
|
93
|
+
Pragma:
|
94
|
+
- no-cache
|
95
|
+
X-Request-Id:
|
96
|
+
- c7863c447ad31848a824508c
|
97
|
+
X-Backend:
|
98
|
+
- sbox-priv-gateway-a
|
99
|
+
body:
|
100
|
+
encoding: UTF-8
|
101
|
+
string: '{"successful":true,"response":{"id":"071-PP-WHO5KPNI","customer":"071-C-PCKV4X63","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
102
|
+
Card","reference":"df3d4d491a04b7f892c7e91fb6a53325","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:12+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-5BGXEV7C","payment_plan":"071-PP-WHO5KPNI","reference":"df3d4d491a04b7f892c7e91fb6a53325-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
|
103
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-KIADZAMB","payment_plan":"071-PP-WHO5KPNI","reference":"df3d4d491a04b7f892c7e91fb6a53325-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
|
104
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-B8KK43CN","payment_plan":"071-PP-WHO5KPNI","reference":"df3d4d491a04b7f892c7e91fb6a53325-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
|
105
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-QC08X83P","payment_plan":"071-PP-WHO5KPNI","reference":"df3d4d491a04b7f892c7e91fb6a53325-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
|
106
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-55RNQABD","payment_plan":"071-PP-WHO5KPNI","reference":"df3d4d491a04b7f892c7e91fb6a53325-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
|
107
|
+
Card","status":"Scheduled","result":null,"records":[]}]},"errors":[],"test":true}'
|
108
|
+
http_version:
|
109
|
+
recorded_at: Mon, 29 Apr 2019 09:17:13 GMT
|
110
|
+
- request:
|
111
|
+
method: put
|
112
|
+
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/payment_plans/071-PP-WHO5KPNI
|
113
|
+
body:
|
114
|
+
encoding: UTF-8
|
115
|
+
string: '{"customer":"071-C-PCKV4X63","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
116
|
+
Card","reference":"df3d4d491a04b7f892c7e91fb6a53325","description":null,"status":"Active","status_reason":"None","created_at":"2019-04-29T19:17:12+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[{"id":"071-PT-5BGXEV7C","payment_plan":"071-PP-WHO5KPNI","reference":"df3d4d491a04b7f892c7e91fb6a53325-0001","amount":100,"currency":null,"scheduled_date":"2019-08-02","payment_method":"Credit
|
117
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-KIADZAMB","payment_plan":"071-PP-WHO5KPNI","reference":"df3d4d491a04b7f892c7e91fb6a53325-0002","amount":100,"currency":null,"scheduled_date":"2019-08-09","payment_method":"Credit
|
118
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-B8KK43CN","payment_plan":"071-PP-WHO5KPNI","reference":"df3d4d491a04b7f892c7e91fb6a53325-0003","amount":100,"currency":null,"scheduled_date":"2019-08-16","payment_method":"Credit
|
119
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-QC08X83P","payment_plan":"071-PP-WHO5KPNI","reference":"df3d4d491a04b7f892c7e91fb6a53325-0004","amount":100,"currency":null,"scheduled_date":"2019-08-23","payment_method":"Credit
|
120
|
+
Card","status":"Scheduled","result":null,"records":[]},{"id":"071-PT-55RNQABD","payment_plan":"071-PP-WHO5KPNI","reference":"df3d4d491a04b7f892c7e91fb6a53325-0005","amount":100,"currency":null,"scheduled_date":"2019-08-30","payment_method":"Credit
|
121
|
+
Card","status":"Scheduled","result":null,"records":[]}],"new_status":"Suspended","test":true}'
|
122
|
+
headers:
|
123
|
+
Accept-Encoding:
|
124
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
125
|
+
Accept:
|
126
|
+
- application/json
|
127
|
+
User-Agent:
|
128
|
+
- Ruby
|
129
|
+
Authorization:
|
130
|
+
- Basic VEVTVDpURVNU
|
131
|
+
Content-Type:
|
132
|
+
- application/json
|
133
|
+
response:
|
134
|
+
status:
|
135
|
+
code: 200
|
136
|
+
message: OK
|
137
|
+
headers:
|
138
|
+
Date:
|
139
|
+
- Mon, 29 Apr 2019 09:17:13 GMT
|
140
|
+
Content-Type:
|
141
|
+
- application/json; charset=utf-8
|
142
|
+
Transfer-Encoding:
|
143
|
+
- chunked
|
144
|
+
Connection:
|
145
|
+
- keep-alive
|
146
|
+
Status:
|
147
|
+
- 200 OK
|
148
|
+
Cache-Control:
|
149
|
+
- no-store
|
150
|
+
X-Request-Version:
|
151
|
+
- 1.16.9-3941@c1d8236
|
152
|
+
X-Runtime:
|
153
|
+
- '0.124886'
|
154
|
+
Pragma:
|
155
|
+
- no-cache
|
156
|
+
X-Request-Id:
|
157
|
+
- ba1b3b74e044591417626802
|
158
|
+
X-Backend:
|
159
|
+
- sbox-priv-gateway-a
|
160
|
+
body:
|
161
|
+
encoding: UTF-8
|
162
|
+
string: '{"successful":true,"response":{"id":"071-PP-WHO5KPNI","customer":"071-C-PCKV4X63","amount":100,"currency":null,"setup_fee":0,"frequency":"Weekly","anniversary":5,"start_date":"2019-07-28","end_date":null,"total_count":5,"total_amount":500,"payment_method":"Credit
|
163
|
+
Card","reference":"df3d4d491a04b7f892c7e91fb6a53325","description":null,"status":"Suspended","status_reason":"Other","created_at":"2019-04-29T19:17:12+10:00","failed_payment_fee":0,"retry_interval":3,"status_change_date":null,"payments":[]},"errors":[],"test":true}'
|
164
|
+
http_version:
|
165
|
+
recorded_at: Mon, 29 Apr 2019 09:17:13 GMT
|
166
|
+
recorded_with: VCR 3.0.3
|