fat_zebra 3.2.9 → 3.3.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 +4 -4
- data/README.md +2 -9
- data/fat_zebra.gemspec +9 -9
- data/lib/fat_zebra/api_resource.rb +0 -1
- data/lib/fat_zebra/object_helper.rb +2 -2
- data/lib/fat_zebra/request.rb +5 -9
- data/lib/fat_zebra/util.rb +3 -3
- data/lib/fat_zebra/validation.rb +1 -1
- data/lib/fat_zebra/version.rb +1 -2
- data/lib/fat_zebra.rb +0 -1
- metadata +20 -246
- data/.buildkite/pipeline.yml +0 -34
- data/.gitignore +0 -8
- data/.rspec +0 -0
- data/.rubocop.yml +0 -42
- data/.tool-versions +0 -1
- data/.travis.yml +0 -8
- data/Gemfile +0 -6
- data/Rakefile +0 -10
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/validations/1_3_5_1.yml +0 -46
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_1.yml +0 -90
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_2.yml +0 -90
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_1.yml +0 -90
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_2.yml +0 -90
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_1.yml +0 -90
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_2.yml +0 -87
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_3.yml +0 -92
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_4.yml +0 -91
- data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_type_validation/1_3_4_1.yml +0 -46
- data/spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_invalid/returns_error_when_invalid_token.yml +0 -47
- data/spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_valid/decodes_JWT.yml +0 -87
- data/spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_given_params.yml +0 -44
- data/spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_no_amount.yml +0 -44
- data/spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_amount_is_invalid.yml +0 -44
- data/spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_currency_is_invalid.yml +0 -46
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +0 -53
- data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +0 -53
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +0 -164
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +0 -164
- data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +0 -164
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +0 -61
- data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +0 -61
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +0 -61
- data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +0 -61
- data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +0 -112
- data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +0 -112
- data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +0 -163
- data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +0 -54
- data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +0 -54
- data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +0 -54
- data/spec/cassettes/FatZebra_Card/_create/1_1_1.yml +0 -54
- data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +0 -54
- data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +0 -54
- data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +0 -54
- data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +0 -54
- data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +0 -54
- data/spec/cassettes/FatZebra_Card/_find/1_3_1.yml +0 -111
- data/spec/cassettes/FatZebra_Card/_find/1_3_2.yml +0 -111
- data/spec/cassettes/FatZebra_Card/_update/1_2_1.yml +0 -105
- data/spec/cassettes/FatZebra_Card/_update/1_2_2.yml +0 -105
- data/spec/cassettes/FatZebra_Card/_update/1_2_3.yml +0 -105
- data/spec/cassettes/FatZebra_Card/_update/validations/1_2_4_1.yml +0 -54
- data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +0 -55
- data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +0 -55
- data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +0 -55
- data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +0 -55
- data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +0 -55
- data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +0 -55
- data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +0 -103
- data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +0 -107
- data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +0 -107
- data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +0 -60
- data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +0 -60
- data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +0 -60
- data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +0 -106
- data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +0 -106
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +0 -52
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +0 -52
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +0 -52
- data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +0 -52
- data/spec/cassettes/FatZebra_DirectCredit/_create/validations/valid/1_1_5_1_1.yml +0 -52
- data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +0 -99
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +0 -103
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +0 -103
- data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +0 -103
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +0 -152
- data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +0 -152
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +0 -52
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +0 -52
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +0 -52
- data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +0 -52
- data/spec/cassettes/FatZebra_DirectDebit/_create/validations/valid/1_1_5_1_1.yml +0 -52
- data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +0 -99
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +0 -103
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +0 -103
- data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +0 -103
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +0 -152
- data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +0 -152
- data/spec/cassettes/FatZebra_Information/_ping/1_1_1.yml +0 -54
- data/spec/cassettes/FatZebra_Information/_ping/1_1_2.yml +0 -54
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +0 -222
- data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +0 -222
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +0 -110
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +0 -110
- data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +0 -110
- data/spec/cassettes/FatZebra_PaymentPlan/_create/perpetual_subscription/1_1_4_1.yml +0 -183
- data/spec/cassettes/FatZebra_PaymentPlan/_create/perpetual_subscription/1_1_4_2.yml +0 -183
- data/spec/cassettes/FatZebra_PaymentPlan/_create/perpetual_subscription/1_1_4_3.yml +0 -183
- data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +0 -158
- data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +0 -158
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +0 -167
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +0 -167
- data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +0 -167
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +0 -166
- data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +0 -166
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +0 -160
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +0 -160
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +0 -160
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +0 -166
- data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +0 -166
- data/spec/cassettes/FatZebra_Paypal_Authorization/_capture/returns_a_new_capture_record.yml +0 -45
- data/spec/cassettes/FatZebra_Paypal_Authorization/_find/when_found/returns_authorization.yml +0 -46
- data/spec/cassettes/FatZebra_Paypal_Authorization/_search/with_date_filter/returns_records_created_after_start_date.yml +0 -46
- data/spec/cassettes/FatZebra_Paypal_Authorization/_void/returns_a_voided_capture_record.yml +0 -44
- data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_charge/Valid_payload/returns_a_new_order_record.yml +0 -48
- data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_find/when_found/returns_billing_agreement.yml +0 -48
- data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_search/with_date_filter/returns_records_created_after_start_date.yml +0 -48
- data/spec/cassettes/FatZebra_Paypal_Capture/_find/when_found/returns_capture.yml +0 -47
- data/spec/cassettes/FatZebra_Paypal_Capture/_refund/returns_a_new_refund_record.yml +0 -45
- data/spec/cassettes/FatZebra_Paypal_Capture/_search/with_date_filter/returns_records_created_after_start_date.yml +0 -49
- data/spec/cassettes/FatZebra_Paypal_Order/_find/when_found/returns_order.yml +0 -48
- data/spec/cassettes/FatZebra_Paypal_Order/_search/with_date_filter/returns_orders_created_after_start_date.yml +0 -55
- data/spec/cassettes/FatZebra_Paypal_Refund/_find/when_found/returns_refund.yml +0 -47
- data/spec/cassettes/FatZebra_Paypal_Refund/_search/with_date_filter/returns_all_refund_records_created_after_start_date.yml +0 -50
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_1.yml +0 -115
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_2.yml +0 -115
- data/spec/cassettes/FatZebra_Purchase/_capture/1_5_3.yml +0 -115
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_13.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +0 -53
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_1.yml +0 -55
- data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_2.yml +0 -55
- data/spec/cassettes/FatZebra_Purchase/_extend_/1_9_1.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_extend_/1_9_2.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_extend_/1_9_3.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_1.yml +0 -117
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_2.yml +0 -117
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_3.yml +0 -117
- data/spec/cassettes/FatZebra_Purchase/_find/1_2_4.yml +0 -117
- data/spec/cassettes/FatZebra_Purchase/_increment/1_10_1.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_increment/1_10_2.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_increment/1_10_3.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_increment/1_10_4.yml +0 -109
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_1.yml +0 -115
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_2.yml +0 -115
- data/spec/cassettes/FatZebra_Purchase/_refund/1_4_3.yml +0 -115
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +0 -164
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +0 -164
- data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +0 -164
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_1.yml +0 -652
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_2.yml +0 -652
- data/spec/cassettes/FatZebra_Purchase/_settlement/1_8_3.yml +0 -652
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +0 -103
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +0 -103
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +0 -103
- data/spec/cassettes/FatZebra_Purchase/_void/1_6_4.yml +0 -103
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +0 -103
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +0 -103
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +0 -103
- data/spec/cassettes/FatZebra_Purchase/_void/1_7_4.yml +0 -103
- data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +0 -103
- data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +0 -103
- data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +0 -103
- data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +0 -103
- data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +0 -103
- data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +0 -103
- data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +0 -103
- data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +0 -103
- data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +0 -103
- data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +0 -103
- data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +0 -155
- data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +0 -155
- data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +0 -155
- data/spec/cassettes/FatZebra_Refund/_search/responds_with_the_newly-created_refunds.yml +0 -214
- data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +0 -153
- data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +0 -153
- data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +0 -153
- data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +0 -153
- data/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_delete_/deletes_the_domain.yml +0 -52
- data/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_find_/fetches_the_domain.yml +0 -86
- data/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_list/fetches_the_merchant_domains.yml +0 -86
- data/spec/cassettes/FatZebra_Utilities_ApplePay_Domain/_register_/creates_the_domain.yml +0 -84
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +0 -53
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +0 -53
- data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +0 -53
- data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +0 -101
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +0 -298
- data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +0 -300
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +0 -104
- data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +0 -104
- data/spec/fixtures/batch_test.csv +0 -4
- data/spec/lib/fat_zebra/api_resource_spec.rb +0 -25
- data/spec/lib/fat_zebra/authenticate_spec.rb +0 -187
- data/spec/lib/fat_zebra/bank_account_spec.rb +0 -34
- data/spec/lib/fat_zebra/batch_spec.rb +0 -59
- data/spec/lib/fat_zebra/card_spec.rb +0 -49
- data/spec/lib/fat_zebra/config_spec.rb +0 -69
- data/spec/lib/fat_zebra/customer_spec.rb +0 -53
- data/spec/lib/fat_zebra/direct_credit_spec.rb +0 -74
- data/spec/lib/fat_zebra/direct_debit_spec.rb +0 -74
- data/spec/lib/fat_zebra/fat_zebra_object_spec.rb +0 -117
- data/spec/lib/fat_zebra/information_spec.rb +0 -13
- data/spec/lib/fat_zebra/payment_plan_spec.rb +0 -117
- data/spec/lib/fat_zebra/paypal/authorization_spec.rb +0 -79
- data/spec/lib/fat_zebra/paypal/billing_agreement_spec.rb +0 -62
- data/spec/lib/fat_zebra/paypal/capture_spec.rb +0 -60
- data/spec/lib/fat_zebra/paypal/order_spec.rb +0 -35
- data/spec/lib/fat_zebra/paypal/refund_spec.rb +0 -36
- data/spec/lib/fat_zebra/purchase_spec.rb +0 -123
- data/spec/lib/fat_zebra/refund_spec.rb +0 -95
- data/spec/lib/fat_zebra/request_spec.rb +0 -59
- data/spec/lib/fat_zebra/util_spec.rb +0 -29
- data/spec/lib/fat_zebra/utilities/apple_pay/domain_spec.rb +0 -60
- data/spec/lib/fat_zebra/validation_spec.rb +0 -22
- data/spec/lib/fat_zebra/web_hook_spec.rb +0 -50
- data/spec/spec_helper.rb +0 -53
- data/spec/support/payloads.rb +0 -178
- data/vendor/cacert.pem +0 -3390
@@ -1,300 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/web_hooks
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"events":"*","mode":"Test","name":"test hook","address":"http://stage.example.com.au/v1/api/hook_listener","test":true}'
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- application/json
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
Authorization:
|
17
|
-
- Basic VEVTVDpURVNU
|
18
|
-
Content-Type:
|
19
|
-
- application/json
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Date:
|
26
|
-
- Mon, 29 Apr 2019 09:20:37 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json; charset=utf-8
|
29
|
-
Transfer-Encoding:
|
30
|
-
- chunked
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
|
-
Status:
|
34
|
-
- 200 OK
|
35
|
-
Cache-Control:
|
36
|
-
- no-store
|
37
|
-
X-Request-Version:
|
38
|
-
- 1.16.9-3941@c1d8236
|
39
|
-
X-Runtime:
|
40
|
-
- '0.033894'
|
41
|
-
Pragma:
|
42
|
-
- no-cache
|
43
|
-
X-Request-Id:
|
44
|
-
- 40b0bc3f8aff4afaedf1759a
|
45
|
-
X-Backend:
|
46
|
-
- sbox-priv-gateway-a
|
47
|
-
body:
|
48
|
-
encoding: UTF-8
|
49
|
-
string: '{"successful":true,"response":{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
50
|
-
hook","id":"071-WH-DJDYU9ZA"},"errors":[],"test":true}'
|
51
|
-
http_version:
|
52
|
-
recorded_at: Mon, 29 Apr 2019 09:20:37 GMT
|
53
|
-
- request:
|
54
|
-
method: post
|
55
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/web_hooks
|
56
|
-
body:
|
57
|
-
encoding: UTF-8
|
58
|
-
string: '{"events":"*","mode":"Test","name":"test hook","address":"http://stage.example.com.au/v1/api/hook_listener","test":true}'
|
59
|
-
headers:
|
60
|
-
Accept-Encoding:
|
61
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
|
-
Accept:
|
63
|
-
- application/json
|
64
|
-
User-Agent:
|
65
|
-
- Ruby
|
66
|
-
Authorization:
|
67
|
-
- Basic VEVTVDpURVNU
|
68
|
-
Content-Type:
|
69
|
-
- application/json
|
70
|
-
response:
|
71
|
-
status:
|
72
|
-
code: 200
|
73
|
-
message: OK
|
74
|
-
headers:
|
75
|
-
Date:
|
76
|
-
- Mon, 29 Apr 2019 09:20:37 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.032197'
|
91
|
-
Pragma:
|
92
|
-
- no-cache
|
93
|
-
X-Request-Id:
|
94
|
-
- 788e194760c63d4a05335f8c
|
95
|
-
X-Backend:
|
96
|
-
- sbox-priv-gateway-a
|
97
|
-
body:
|
98
|
-
encoding: UTF-8
|
99
|
-
string: '{"successful":true,"response":{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
100
|
-
hook","id":"071-WH-KXDEUD81"},"errors":[],"test":true}'
|
101
|
-
http_version:
|
102
|
-
recorded_at: Mon, 29 Apr 2019 09:20:37 GMT
|
103
|
-
- request:
|
104
|
-
method: get
|
105
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/web_hooks?limit=10&offset=0&test=true
|
106
|
-
body:
|
107
|
-
encoding: US-ASCII
|
108
|
-
string: ''
|
109
|
-
headers:
|
110
|
-
Accept-Encoding:
|
111
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
112
|
-
Accept:
|
113
|
-
- application/json
|
114
|
-
User-Agent:
|
115
|
-
- Ruby
|
116
|
-
Host:
|
117
|
-
- gateway.sandbox.fatzebra.com.au
|
118
|
-
Authorization:
|
119
|
-
- Basic VEVTVDpURVNU
|
120
|
-
Content-Type:
|
121
|
-
- application/json
|
122
|
-
response:
|
123
|
-
status:
|
124
|
-
code: 200
|
125
|
-
message: OK
|
126
|
-
headers:
|
127
|
-
Date:
|
128
|
-
- Mon, 29 Apr 2019 09:20:37 GMT
|
129
|
-
Content-Type:
|
130
|
-
- application/json; charset=utf-8
|
131
|
-
Transfer-Encoding:
|
132
|
-
- chunked
|
133
|
-
Connection:
|
134
|
-
- keep-alive
|
135
|
-
Status:
|
136
|
-
- 200 OK
|
137
|
-
Cache-Control:
|
138
|
-
- no-store
|
139
|
-
X-Request-Version:
|
140
|
-
- 1.16.9-3941@c1d8236
|
141
|
-
X-Runtime:
|
142
|
-
- '0.041893'
|
143
|
-
Pragma:
|
144
|
-
- no-cache
|
145
|
-
X-Request-Id:
|
146
|
-
- 0caf5083d70fb82e8b4e50d7
|
147
|
-
X-Backend:
|
148
|
-
- sbox-priv-gateway-a
|
149
|
-
body:
|
150
|
-
encoding: UTF-8
|
151
|
-
string: '{"successful":true,"response":[{"address":"https://nosnch.in/cc300bb516","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":true,"name":"Test","id":"071-WH-3W2KM1L3"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
152
|
-
hook","id":"071-WH-59WBB09S"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
153
|
-
hook","id":"071-WH-B4PU09SR"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
154
|
-
hook","id":"071-WH-BDGKELWC"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
155
|
-
hook","id":"071-WH-1K3BR0FQ"},{"address":"http://requestbin.pmnts-sandbox.io/15itqsp1","events":"*","mode":"Test","authentication_username":"pmnts","authentication_password":"******","is_active":true,"name":"Test","id":"071-WH-17G8TV1C"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
156
|
-
hook","id":"071-WH-H4GJOG0N"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
157
|
-
hook","id":"071-WH-VTOHWEW3"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
158
|
-
hook","id":"071-WH-5W9QOBWP"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
159
|
-
hook","id":"071-WH-AJDNL1B9"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
160
|
-
hook","id":"071-WH-GVPQIPSU"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
161
|
-
hook","id":"071-WH-DJDYU9ZA"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
162
|
-
hook","id":"071-WH-KXDEUD81"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
163
|
-
hook","id":"071-WH-5UWU3B16"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
164
|
-
hook","id":"071-WH-SJ5IMZ0O"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
165
|
-
hook","id":"071-WH-65P737MQ"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
166
|
-
hook","id":"071-WH-ID3H5FKN"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
167
|
-
hook","id":"071-WH-QW5S2ZZH"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
168
|
-
hook","id":"071-WH-4LUQFJWC"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
169
|
-
hook","id":"071-WH-RXF8W7I7"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
170
|
-
hook","id":"071-WH-W0USUJ2M"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
171
|
-
hook","id":"071-WH-SQ0PZMZE"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
172
|
-
hook","id":"071-WH-1OVBGYE1"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
173
|
-
hook","id":"071-WH-YO64KR3X"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
174
|
-
hook","id":"071-WH-HBWDF8EM"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
175
|
-
hook","id":"071-WH-4U0O3LQ3"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
176
|
-
hook","id":"071-WH-JCLJC427"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
177
|
-
hook","id":"071-WH-XID631NJ"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
178
|
-
hook","id":"071-WH-NVXD7G34"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
179
|
-
Test hook","id":"071-WH-8I8NRWR1"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
180
|
-
Test hook","id":"071-WH-H9B1G0OJ"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
181
|
-
hook","id":"071-WH-8ZYOZ6R7"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
182
|
-
hook","id":"071-WH-7H3RDH30"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
183
|
-
hook","id":"071-WH-78NOPBD3"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
184
|
-
hook","id":"071-WH-HUN8MZFS"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
185
|
-
hook","id":"071-WH-DK8OHKYJ"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
186
|
-
hook","id":"071-WH-GJTNVHDA"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
187
|
-
hook","id":"071-WH-P3A1D3UV"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
188
|
-
Test hook","id":"071-WH-KJHS8C3I"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
189
|
-
Test hook","id":"071-WH-1GCPXGEW"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
190
|
-
hook","id":"071-WH-FB5K3I7L"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
191
|
-
hook","id":"071-WH-EOCT20ER"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
192
|
-
hook","id":"071-WH-Y54NGCRI"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
193
|
-
hook","id":"071-WH-Y6XERW9T"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
194
|
-
hook","id":"071-WH-BQ6Z8QNN"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
195
|
-
hook","id":"071-WH-FNXJDTHV"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
196
|
-
hook","id":"071-WH-KY73XCEI"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
197
|
-
Test hook","id":"071-WH-1IT0ODXR"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
198
|
-
Test hook","id":"071-WH-O3JYYZP6"},{"address":"https://www.your-server.com/payment/hook","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"Test
|
199
|
-
Hook","id":"071-WH-7RNNJP9T"},{"address":"https://www.your-server.com/payment/hook","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"Test
|
200
|
-
Hook","id":"071-WH-MJZN06HT"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
201
|
-
hook","id":"071-WH-CQIOMJQ5"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
202
|
-
hook","id":"071-WH-OBDDB2M5"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
203
|
-
hook","id":"071-WH-5SFTPD5A"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
204
|
-
hook","id":"071-WH-COB7WARB"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
205
|
-
hook","id":"071-WH-33N0SGUL"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
206
|
-
hook","id":"071-WH-7UQ23Z88"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
207
|
-
hook","id":"071-WH-B3QYERUW"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
208
|
-
Test hook","id":"071-WH-FH95KX3"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
209
|
-
Test hook","id":"071-WH-BQ53FWKR"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
210
|
-
hook","id":"071-WH-8522IHPY"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
211
|
-
hook","id":"071-WH-UI4DDPAV"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
212
|
-
hook","id":"071-WH-51RDNB5C"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
213
|
-
hook","id":"071-WH-XRI3VWA4"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
214
|
-
hook","id":"071-WH-OV26VN20"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
215
|
-
hook","id":"071-WH-JKDV6S0Z"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
216
|
-
hook","id":"071-WH-IFMCIB5A"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
217
|
-
Test hook","id":"071-WH-IU6R12ZF"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
218
|
-
Test hook","id":"071-WH-1H7L5ZCI"},{"address":"https://www.your-server.com/payment/hook","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"Test
|
219
|
-
Hook","id":"071-WH-L6UDV1UN"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
220
|
-
hook","id":"071-WH-AJRIFECP"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
221
|
-
hook","id":"071-WH-YJ2WU6RT"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
222
|
-
hook","id":"071-WH-QRTVX85G"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
223
|
-
hook","id":"071-WH-1VHTN24O"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
224
|
-
hook","id":"071-WH-5Y5OZD4L"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
225
|
-
hook","id":"071-WH-J9NWFUMA"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
226
|
-
hook","id":"071-WH-I2LQBYJD"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
227
|
-
Test hook","id":"071-WH-1PZF9UFM"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
228
|
-
Test hook","id":"071-WH-HEIB7O0S"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
229
|
-
hook","id":"071-WH-FE6LDUM5"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
230
|
-
hook","id":"071-WH-Z7N1C7TM"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
231
|
-
Test hook","id":"071-WH-EWSTKQMJ"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
232
|
-
Test hook","id":"071-WH-2Y5C9ISE"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
233
|
-
hook","id":"071-WH-H2P1YLDR"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
234
|
-
hook","id":"071-WH-GYOOIN9F"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
235
|
-
hook","id":"071-WH-MVMY3652"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
236
|
-
hook","id":"071-WH-ZWMI68PR"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
237
|
-
hook","id":"071-WH-PXUXHDFB"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
238
|
-
hook","id":"071-WH-QJ8V4Y6"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
239
|
-
hook","id":"071-WH-884J1HQH"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
240
|
-
hook","id":"071-WH-RAAKULZA"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
241
|
-
Test hook","id":"071-WH-S7VL0Z7R"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
242
|
-
Test hook","id":"071-WH-UQC6KCE4"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
243
|
-
hook","id":"071-WH-MKHUJAGA"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
244
|
-
hook","id":"071-WH-FERO0FGQ"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
245
|
-
hook","id":"071-WH-ELD916O5"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
246
|
-
hook","id":"071-WH-2633UB4C"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
247
|
-
hook","id":"071-WH-1GLC38PA"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
248
|
-
hook","id":"071-WH-R04RNU4F"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
249
|
-
hook","id":"071-WH-9MN33BBJ"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
250
|
-
hook","id":"071-WH-VHBY61ZG"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
251
|
-
hook","id":"071-WH-IWBVZIJL"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
252
|
-
hook","id":"071-WH-B5RTPW8G"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
253
|
-
hook","id":"071-WH-5HXRYE8L"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
254
|
-
hook","id":"071-WH-Y5PVDD7R"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
255
|
-
Test hook","id":"071-WH-5AR9MJJJ"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
256
|
-
Test hook","id":"071-WH-99KJFHBJ"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
257
|
-
hook","id":"071-WH-MHJMG09"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
258
|
-
hook","id":"071-WH-EHA8OUN"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
259
|
-
hook","id":"071-WH-58JFZWN3"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
260
|
-
hook","id":"071-WH-WKML9ZH5"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
261
|
-
hook","id":"071-WH-D2447VN1"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
262
|
-
hook","id":"071-WH-4N1WLY1Q"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
263
|
-
hook","id":"071-WH-UERM4052"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
264
|
-
Test hook","id":"071-WH-SO8DU26D"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
265
|
-
Test hook","id":"071-WH-MN855CZY"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
266
|
-
hook","id":"071-WH-MJYI2MPK"},{"address":"http://requestbin.pmnts-sandbox.io/12xf8hq1","events":"chargeback:*","mode":"Test","authentication_username":"pmnts","authentication_password":"******","is_active":true,"name":"Chargebacks","id":"071-WH-IQITZMWZ"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
267
|
-
hook","id":"071-WH-T9GWRGUJ"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
268
|
-
hook","id":"071-WH-WNUCMF2J"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
269
|
-
hook","id":"071-WH-5S8OZVD"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
270
|
-
hook","id":"071-WH-T6UKNVSE"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
271
|
-
hook","id":"071-WH-RCOHFEK2"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
272
|
-
hook","id":"071-WH-GX528GDG"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
273
|
-
Test hook","id":"071-WH-5LP21F2E"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
274
|
-
Test hook","id":"071-WH-O46GZKRR"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
275
|
-
hook","id":"071-WH-G2ETIJ26"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
276
|
-
hook","id":"071-WH-ULA0ZNQ9"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
277
|
-
hook","id":"071-WH-G34SWHK5"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
278
|
-
hook","id":"071-WH-EW17FI36"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
279
|
-
hook","id":"071-WH-RTR44MQK"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
280
|
-
hook","id":"071-WH-2BOHCZUI"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
281
|
-
hook","id":"071-WH-QASOXU5Z"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
282
|
-
hook","id":"071-WH-WP9F36IL"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
283
|
-
hook","id":"071-WH-5T42PXO0"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
284
|
-
hook","id":"071-WH-JSAWOF8I"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
285
|
-
Test hook","id":"071-WH-87QV0GRB"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
286
|
-
Test hook","id":"071-WH-PUTITJDA"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
287
|
-
hook","id":"071-WH-E7I8SRMF"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
288
|
-
hook","id":"071-WH-VGOVU82W"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
289
|
-
hook","id":"071-WH-8YHLBVV5"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
290
|
-
hook","id":"071-WH-IOM0BGHY"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
291
|
-
hook","id":"071-WH-G6SJ9HHZ"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
292
|
-
hook","id":"071-WH-BE8J6WTV"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
293
|
-
hook","id":"071-WH-N69ITHIM"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
294
|
-
Test hook","id":"071-WH-EVZ6T0YK"},{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
295
|
-
Test hook","id":"071-WH-LPN9BZVS"},{"address":"https://www.your-server.com/payment/hook","events":"*","mode":"Test","authentication_username":"test_user","authentication_password":"*********","is_active":null,"name":"Test
|
296
|
-
Hook","id":"071-WH-JGIDLXUF"},{"address":"https://www.your-server.com/payment/hook","events":"*","mode":"Test","authentication_username":"test_user","authentication_password":"***","is_active":null,"name":"Test
|
297
|
-
Hook 123","id":"071-WH-V11EEUW7"}],"errors":[],"test":true}'
|
298
|
-
http_version:
|
299
|
-
recorded_at: Mon, 29 Apr 2019 09:20:37 GMT
|
300
|
-
recorded_with: VCR 3.0.3
|
@@ -1,104 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/web_hooks
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"events":"*","mode":"Test","name":"test hook","address":"http://stage.example.com.au/v1/api/hook_listener","test":true}'
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- application/json
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
Authorization:
|
17
|
-
- Basic VEVTVDpURVNU
|
18
|
-
Content-Type:
|
19
|
-
- application/json
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Date:
|
26
|
-
- Mon, 29 Apr 2019 09:20:37 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json; charset=utf-8
|
29
|
-
Transfer-Encoding:
|
30
|
-
- chunked
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
|
-
Status:
|
34
|
-
- 200 OK
|
35
|
-
Cache-Control:
|
36
|
-
- no-store
|
37
|
-
X-Request-Version:
|
38
|
-
- 1.16.9-3941@c1d8236
|
39
|
-
X-Runtime:
|
40
|
-
- '0.032522'
|
41
|
-
Pragma:
|
42
|
-
- no-cache
|
43
|
-
X-Request-Id:
|
44
|
-
- 8cb733fcf021fd9072423e58
|
45
|
-
X-Backend:
|
46
|
-
- sbox-priv-gateway-a
|
47
|
-
body:
|
48
|
-
encoding: UTF-8
|
49
|
-
string: '{"successful":true,"response":{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
50
|
-
hook","id":"071-WH-NOQIX4KB"},"errors":[],"test":true}'
|
51
|
-
http_version:
|
52
|
-
recorded_at: Mon, 29 Apr 2019 09:20:37 GMT
|
53
|
-
- request:
|
54
|
-
method: put
|
55
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/web_hooks/071-WH-NOQIX4KB
|
56
|
-
body:
|
57
|
-
encoding: UTF-8
|
58
|
-
string: '{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
59
|
-
hook","name":"New Test hook","test":true}'
|
60
|
-
headers:
|
61
|
-
Accept-Encoding:
|
62
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
63
|
-
Accept:
|
64
|
-
- application/json
|
65
|
-
User-Agent:
|
66
|
-
- Ruby
|
67
|
-
Authorization:
|
68
|
-
- Basic VEVTVDpURVNU
|
69
|
-
Content-Type:
|
70
|
-
- application/json
|
71
|
-
response:
|
72
|
-
status:
|
73
|
-
code: 200
|
74
|
-
message: OK
|
75
|
-
headers:
|
76
|
-
Date:
|
77
|
-
- Mon, 29 Apr 2019 09:20:37 GMT
|
78
|
-
Content-Type:
|
79
|
-
- application/json; charset=utf-8
|
80
|
-
Transfer-Encoding:
|
81
|
-
- chunked
|
82
|
-
Connection:
|
83
|
-
- keep-alive
|
84
|
-
Status:
|
85
|
-
- 200 OK
|
86
|
-
Cache-Control:
|
87
|
-
- no-store
|
88
|
-
X-Request-Version:
|
89
|
-
- 1.16.9-3941@c1d8236
|
90
|
-
X-Runtime:
|
91
|
-
- '0.031956'
|
92
|
-
Pragma:
|
93
|
-
- no-cache
|
94
|
-
X-Request-Id:
|
95
|
-
- 94529f48078709302340b848
|
96
|
-
X-Backend:
|
97
|
-
- sbox-priv-gateway-a
|
98
|
-
body:
|
99
|
-
encoding: UTF-8
|
100
|
-
string: '{"successful":true,"response":{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
101
|
-
Test hook","id":"071-WH-NOQIX4KB"},"errors":[],"test":true}'
|
102
|
-
http_version:
|
103
|
-
recorded_at: Mon, 29 Apr 2019 09:20:37 GMT
|
104
|
-
recorded_with: VCR 3.0.3
|
@@ -1,104 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/web_hooks
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"events":"*","mode":"Test","name":"test hook","address":"http://stage.example.com.au/v1/api/hook_listener","test":true}'
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- application/json
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
Authorization:
|
17
|
-
- Basic VEVTVDpURVNU
|
18
|
-
Content-Type:
|
19
|
-
- application/json
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 200
|
23
|
-
message: OK
|
24
|
-
headers:
|
25
|
-
Date:
|
26
|
-
- Mon, 29 Apr 2019 09:20:38 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json; charset=utf-8
|
29
|
-
Transfer-Encoding:
|
30
|
-
- chunked
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
|
-
Status:
|
34
|
-
- 200 OK
|
35
|
-
Cache-Control:
|
36
|
-
- no-store
|
37
|
-
X-Request-Version:
|
38
|
-
- 1.16.9-3941@c1d8236
|
39
|
-
X-Runtime:
|
40
|
-
- '0.030886'
|
41
|
-
Pragma:
|
42
|
-
- no-cache
|
43
|
-
X-Request-Id:
|
44
|
-
- 1d1740ccf6ae9e943b19214c
|
45
|
-
X-Backend:
|
46
|
-
- sbox-priv-gateway-a
|
47
|
-
body:
|
48
|
-
encoding: UTF-8
|
49
|
-
string: '{"successful":true,"response":{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
50
|
-
hook","id":"071-WH-Q5W5NSU9"},"errors":[],"test":true}'
|
51
|
-
http_version:
|
52
|
-
recorded_at: Mon, 29 Apr 2019 09:20:38 GMT
|
53
|
-
- request:
|
54
|
-
method: put
|
55
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0/web_hooks/071-WH-Q5W5NSU9
|
56
|
-
body:
|
57
|
-
encoding: UTF-8
|
58
|
-
string: '{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"test
|
59
|
-
hook","name":"New Test hook","test":true}'
|
60
|
-
headers:
|
61
|
-
Accept-Encoding:
|
62
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
63
|
-
Accept:
|
64
|
-
- application/json
|
65
|
-
User-Agent:
|
66
|
-
- Ruby
|
67
|
-
Authorization:
|
68
|
-
- Basic VEVTVDpURVNU
|
69
|
-
Content-Type:
|
70
|
-
- application/json
|
71
|
-
response:
|
72
|
-
status:
|
73
|
-
code: 200
|
74
|
-
message: OK
|
75
|
-
headers:
|
76
|
-
Date:
|
77
|
-
- Mon, 29 Apr 2019 09:20:38 GMT
|
78
|
-
Content-Type:
|
79
|
-
- application/json; charset=utf-8
|
80
|
-
Transfer-Encoding:
|
81
|
-
- chunked
|
82
|
-
Connection:
|
83
|
-
- keep-alive
|
84
|
-
Status:
|
85
|
-
- 200 OK
|
86
|
-
Cache-Control:
|
87
|
-
- no-store
|
88
|
-
X-Request-Version:
|
89
|
-
- 1.16.9-3941@c1d8236
|
90
|
-
X-Runtime:
|
91
|
-
- '0.034236'
|
92
|
-
Pragma:
|
93
|
-
- no-cache
|
94
|
-
X-Request-Id:
|
95
|
-
- 0ca930a64c9287f6466e0332
|
96
|
-
X-Backend:
|
97
|
-
- sbox-priv-gateway-a
|
98
|
-
body:
|
99
|
-
encoding: UTF-8
|
100
|
-
string: '{"successful":true,"response":{"address":"http://stage.example.com.au/v1/api/hook_listener","events":"*","mode":"Test","authentication_username":null,"authentication_password":"","is_active":null,"name":"New
|
101
|
-
Test hook","id":"071-WH-Q5W5NSU9"},"errors":[],"test":true}'
|
102
|
-
http_version:
|
103
|
-
recorded_at: Mon, 29 Apr 2019 09:20:38 GMT
|
104
|
-
recorded_with: VCR 3.0.3
|
@@ -1,4 +0,0 @@
|
|
1
|
-
1000,AUD,Order12345,John Doe 1,4444333322221111,12/2020,,Gizmo ABC 1
|
2
|
-
2051,AUD,Order22345,John Doe 2,4444333322221111,12/2020,,Gizmo ABC 2
|
3
|
-
3000,AUD,Order32345,John Doe 3,4444333322221111,12/2020,,Gizmo ABC 3
|
4
|
-
4000,AUD,Order42345,John Doe 4,4444333322221111,12/2020,,Gizmo ABC 4
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe FatZebra::APIResource do
|
4
|
-
|
5
|
-
describe '#request' do
|
6
|
-
subject(:resource) { FatZebra::APIResource.request(:post, '/test') }
|
7
|
-
|
8
|
-
context 'with errors' do
|
9
|
-
before { allow(FatZebra::Request).to receive(:execute).and_raise(FatZebra::RequestError.new(response)) }
|
10
|
-
|
11
|
-
context 'with Net::HTTPUnprocessableEntity' do
|
12
|
-
let(:response) { double('response', code: '422', code_type: Net::HTTPUnprocessableEntity, body: {}.to_json, message: 'failed') }
|
13
|
-
|
14
|
-
it { expect { resource }.to_not raise_error }
|
15
|
-
end
|
16
|
-
|
17
|
-
context 'with Net::HTTPBadRequest' do
|
18
|
-
let(:response) { double('response', code: '400', code_type: Net::HTTPBadRequest, body: {}.to_json, message: 'failed') }
|
19
|
-
|
20
|
-
it { expect { resource }.to raise_error(FatZebra::RequestError) }
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|