fat_zebra 3.2.8 → 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/utilities/apple_pay/domain.rb +23 -8
- 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,166 +0,0 @@
|
|
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
|
@@ -1,45 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/authorizations/071-PPA-3AM3CXFFKMFYI3QM/capture
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"amount":200,"final_Capture":false,"note_to_payer":"test capture $2","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
|
-
Cache-Control:
|
26
|
-
- no-store
|
27
|
-
Pragma:
|
28
|
-
- no-cache
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
X-Request-Version:
|
32
|
-
- 1.21.8
|
33
|
-
X-Request-Id:
|
34
|
-
- f417482028fb56c5853115e2355ab566
|
35
|
-
X-Runtime:
|
36
|
-
- '9.242708'
|
37
|
-
Transfer-Encoding:
|
38
|
-
- chunked
|
39
|
-
body:
|
40
|
-
encoding: UTF-8
|
41
|
-
string: '{"successful":true,"response":{"id":"071-PPC-1VD9NBDKP4EFQUYW","amount":200,"decimal_amount":2.0,"captured_amount":200,"successful":true,"message":"Approved","reference":"ref_12345_420768","captured":true,"currency":"AUD","transaction_id":"071-PPC-1VD9NBDKP4EFQUYW","transaction_date":"2020-08-07T14:01:30+10:00","response_code":"00","invoice_id":"071-PPC-1VD9NBDKP4EFQUYW","paypal_fee":35,"seller_receivable_net_amount":165,"note_to_payer":"test
|
42
|
-
capture $2","is_final_capture":false,"refunded_amount":0,"balance_available_for_refund":200,"balance_available_for_capture":13400,"authorization":"071-PPA-3AM3CXFFKMFYI3QM","order":"071-PPO-QMNDDIFZMCX0LA0G"},"errors":[],"test":true}'
|
43
|
-
http_version:
|
44
|
-
recorded_at: Fri, 07 Aug 2020 04:01:39 GMT
|
45
|
-
recorded_with: VCR 3.0.3
|
data/spec/cassettes/FatZebra_Paypal_Authorization/_find/when_found/returns_authorization.yml
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/authorizations/071-PPA-3AM3CXFFKMFYI3QM?test=true
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- application/json
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
Host:
|
17
|
-
- gateway.sandbox.fatzebra.com.au
|
18
|
-
Authorization:
|
19
|
-
- Basic VEVTVDpURVNU
|
20
|
-
Content-Type:
|
21
|
-
- application/json
|
22
|
-
response:
|
23
|
-
status:
|
24
|
-
code: 200
|
25
|
-
message: OK
|
26
|
-
headers:
|
27
|
-
Cache-Control:
|
28
|
-
- no-store
|
29
|
-
Pragma:
|
30
|
-
- no-cache
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=utf-8
|
33
|
-
X-Request-Version:
|
34
|
-
- 1.21.8
|
35
|
-
X-Request-Id:
|
36
|
-
- 8b0862c2a71babb0067cf4d3a565a9f0
|
37
|
-
X-Runtime:
|
38
|
-
- '0.063998'
|
39
|
-
Transfer-Encoding:
|
40
|
-
- chunked
|
41
|
-
body:
|
42
|
-
encoding: UTF-8
|
43
|
-
string: '{"successful":true,"response":{"id":"071-PPA-3AM3CXFFKMFYI3QM","amount":12000,"decimal_amount":120.0,"captured_amount":0,"successful":true,"captured":false,"currency":"AUD","transaction_id":"071-PPA-3AM3CXFFKMFYI3QM","transaction_date":"2020-08-06T23:17:27+10:00","message":"Approved","response_code":"00","reference":"ref_12345_420768","refunded_amount":0,"balance_available_for_capture":13800,"order":"071-PPO-QMNDDIFZMCX0LA0G"},"errors":[],"test":true}'
|
44
|
-
http_version:
|
45
|
-
recorded_at: Thu, 06 Aug 2020 13:39:51 GMT
|
46
|
-
recorded_with: VCR 3.0.3
|
@@ -1,46 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/authorizations?from=2020/08/05&limit=10&offset=0&test=true
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- application/json
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
Host:
|
17
|
-
- gateway.sandbox.fatzebra.com.au
|
18
|
-
Authorization:
|
19
|
-
- Basic VEVTVDpURVNU
|
20
|
-
Content-Type:
|
21
|
-
- application/json
|
22
|
-
response:
|
23
|
-
status:
|
24
|
-
code: 200
|
25
|
-
message: OK
|
26
|
-
headers:
|
27
|
-
Cache-Control:
|
28
|
-
- no-store
|
29
|
-
Pragma:
|
30
|
-
- no-cache
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=utf-8
|
33
|
-
X-Request-Version:
|
34
|
-
- 1.21.8
|
35
|
-
X-Request-Id:
|
36
|
-
- fabf10d0564100be367e755ef180cfc0
|
37
|
-
X-Runtime:
|
38
|
-
- '0.054100'
|
39
|
-
Transfer-Encoding:
|
40
|
-
- chunked
|
41
|
-
body:
|
42
|
-
encoding: UTF-8
|
43
|
-
string: '{"successful":true,"response":[{"id":"071-PPA-3AM3CXFFKMFYI3QM","amount":12000,"decimal_amount":120.0,"captured_amount":200,"successful":true,"captured":false,"currency":"AUD","transaction_id":"071-PPA-3AM3CXFFKMFYI3QM","transaction_date":"2020-08-06T23:17:27+10:00","message":"Approved","response_code":"00","reference":"ref_12345_420768","refunded_amount":0,"balance_available_for_capture":13600,"order":"071-PPO-QMNDDIFZMCX0LA0G"},{"id":"071-PPA-QPIVKACDAHBNH3LO","amount":12000,"decimal_amount":120.0,"captured_amount":0,"successful":true,"captured":false,"currency":"AUD","transaction_id":"071-PPA-QPIVKACDAHBNH3LO","transaction_date":"2020-08-06T23:40:58+10:00","message":"Approved","response_code":"00","reference":"ref_12345_108143","refunded_amount":0,"balance_available_for_capture":13800,"order":"071-PPO-TKJOIWAQBL0FUXIY"}],"errors":[],"test":true,"records":2,"total_records":2,"page":1,"total_pages":1}'
|
44
|
-
http_version:
|
45
|
-
recorded_at: Thu, 06 Aug 2020 13:43:13 GMT
|
46
|
-
recorded_with: VCR 3.0.3
|
@@ -1,44 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/authorizations/071-PPA-XB5CXLVNIGCNTB8V/void
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"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
|
-
Cache-Control:
|
26
|
-
- no-store
|
27
|
-
Pragma:
|
28
|
-
- no-cache
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
X-Request-Version:
|
32
|
-
- 1.21.8
|
33
|
-
X-Request-Id:
|
34
|
-
- 3908f81cedc5655b6e7fde76af30806a
|
35
|
-
X-Runtime:
|
36
|
-
- '4.634585'
|
37
|
-
Transfer-Encoding:
|
38
|
-
- chunked
|
39
|
-
body:
|
40
|
-
encoding: UTF-8
|
41
|
-
string: '{"successful":true,"response":{"id":"071-PPA-XB5CXLVNIGCNTB8V","amount":12000,"decimal_amount":120.0,"captured_amount":0,"successful":true,"captured":false,"currency":"AUD","transaction_id":"071-PPA-XB5CXLVNIGCNTB8V","transaction_date":"2020-08-07T15:25:39+10:00","message":"Approved","response_code":"00","reference":"ref_12345_157326","refunded_amount":0,"balance_available_for_capture":0,"order":"071-PPO-HUETI12NMEFQSRZX"},"errors":[],"test":true}'
|
42
|
-
http_version:
|
43
|
-
recorded_at: Fri, 07 Aug 2020 05:28:14 GMT
|
44
|
-
recorded_with: VCR 3.0.3
|
@@ -1,48 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/billing_agreements/071-PBA-PYG1L6M4CV4DYHTZ/charge
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"reference":"677a1d99-5274-4eb2-a666-888985a2b162","amount":1100,"currency":"AUD","customer_ip":"1.2.3.4","options":{"brand_name":"EXAMPLE
|
9
|
-
INC"},"purchases":[{"description":"Sporting Goods","custom_id":"CUST-HighFashions","soft_descriptor":"HighFashions","amount":{"item_total":900,"shipping":200},"items":[{"name":"T-Shirt","unit_amount":900,"qty":1,"category":"PHYSICAL_GOODS"}],"shipping_address":{"method":"United
|
10
|
-
States Postal Service 1","address":{"first_name":"John","last_name":"Doe","address_1":"100
|
11
|
-
Kent Street","address_2":"Cafe Lane","city":"Sydney","state":"NSW","postcode":"2000","country":"AU"}}}],"test":true}'
|
12
|
-
headers:
|
13
|
-
Accept-Encoding:
|
14
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
15
|
-
Accept:
|
16
|
-
- application/json
|
17
|
-
User-Agent:
|
18
|
-
- Ruby
|
19
|
-
Authorization:
|
20
|
-
- Basic VEVTVDpURVNU
|
21
|
-
Content-Type:
|
22
|
-
- application/json
|
23
|
-
response:
|
24
|
-
status:
|
25
|
-
code: 200
|
26
|
-
message: OK
|
27
|
-
headers:
|
28
|
-
Cache-Control:
|
29
|
-
- no-store
|
30
|
-
Pragma:
|
31
|
-
- no-cache
|
32
|
-
Content-Type:
|
33
|
-
- application/json; charset=utf-8
|
34
|
-
X-Request-Version:
|
35
|
-
- 1.21.8
|
36
|
-
X-Request-Id:
|
37
|
-
- 37b760682e49d4a1400f205cf7f58dd3
|
38
|
-
X-Runtime:
|
39
|
-
- '7.284475'
|
40
|
-
Transfer-Encoding:
|
41
|
-
- chunked
|
42
|
-
body:
|
43
|
-
encoding: UTF-8
|
44
|
-
string: '{"successful":true,"response":{"id":"071-PPO-YTDFUYE0K14LAKEY","reference":"677a1d99-5274-4eb2-a666-888985a2b162","amount":1100,"decimal_amount":11.0,"successful":true,"message":"Approved","currency":"AUD","transaction_id":"071-PPO-YTDFUYE0K14LAKEY","transaction_date":"2020-08-07T14:01:48+10:00","intent":"CAPTURE","paypal_reference":"677a1d99-5274-4eb2-a666-888985a2b162","invoice_id":"677a1d99-5274-4eb2-a666-888985a2b162","billing_agreement_id":"071-PBA-PYG1L6M4CV4DYHTZ","status":"COMPLETED","payment_source":"BILLING_AGREEMENT","authorized_amount":0.0,"captured_amount":11.0,"refunded_amount":0.0,"authorizations":[],"captures":[{"id":"071-PPC-CSHGL09PIO4NLU4V","amount":1100,"decimal_amount":11.0,"captured_amount":1100,"successful":true,"message":"Approved","reference":"677a1d99-5274-4eb2-a666-888985a2b162","captured":true,"currency":"AUD","transaction_id":"071-PPC-CSHGL09PIO4NLU4V","transaction_date":"2020-08-07T14:01:48+10:00","response_code":"00","invoice_id":"677a1d99-5274-4eb2-a666-888985a2b162","paypal_fee":56,"seller_receivable_net_amount":1044,"note_to_payer":"Sporting
|
45
|
-
Goods","is_final_capture":true,"refunded_amount":0,"balance_available_for_refund":1100,"order":"071-PPO-YTDFUYE0K14LAKEY"}],"refunds":[],"payer":{"id":"CV5LBGRHGTXHY","email":"sb-qxxvi1315481@personal.example.com","address":{"country_code":"AU"}},"payee":{"id":"GE53HS375QX4J","email":"test-seller@example.com"}},"errors":[],"test":true}'
|
46
|
-
http_version:
|
47
|
-
recorded_at: Fri, 07 Aug 2020 04:01:52 GMT
|
48
|
-
recorded_with: VCR 3.0.3
|
data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_find/when_found/returns_billing_agreement.yml
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/billing_agreements/071-PBA-PYG1L6M4CV4DYHTZ?test=true
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- application/json
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
Host:
|
17
|
-
- gateway.sandbox.fatzebra.com.au
|
18
|
-
Authorization:
|
19
|
-
- Basic VEVTVDpURVNU
|
20
|
-
Content-Type:
|
21
|
-
- application/json
|
22
|
-
response:
|
23
|
-
status:
|
24
|
-
code: 200
|
25
|
-
message: OK
|
26
|
-
headers:
|
27
|
-
Cache-Control:
|
28
|
-
- no-store
|
29
|
-
Pragma:
|
30
|
-
- no-cache
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=utf-8
|
33
|
-
X-Request-Version:
|
34
|
-
- 1.21.8
|
35
|
-
X-Request-Id:
|
36
|
-
- 5b3e68af9cf621142f49ccdffc8116d8
|
37
|
-
X-Runtime:
|
38
|
-
- '0.036524'
|
39
|
-
Transfer-Encoding:
|
40
|
-
- chunked
|
41
|
-
body:
|
42
|
-
encoding: UTF-8
|
43
|
-
string: '{"successful":true,"response":{"id":"071-PBA-PYG1L6M4CV4DYHTZ","name":"Sample
|
44
|
-
Billing Agreement","description":"Stored PayPal account","state":"ACTIVE","payer":{"payer_info":{"email":"sb-qxxvi1315481@personal.example.com","first_name":"John","last_name":"Doe","payer_id":"CV5LBGRHGTXHY"}},"shipping_address":{"first_name":"John","last_name":"Doe","address_1":"100
|
45
|
-
Kent Street","address_2":"Cafe Lane","city":"Sydney","state":"NSW","postcode":"2000","country":"AU"},"merchant_custom_data":"\u003cUUID\u003e","created_at":"2020-08-06T23:23:01+10:00"},"errors":[],"test":true}'
|
46
|
-
http_version:
|
47
|
-
recorded_at: Fri, 07 Aug 2020 03:09:56 GMT
|
48
|
-
recorded_with: VCR 3.0.3
|
@@ -1,48 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/billing_agreements?from=2020/08/05&limit=10&offset=0&test=true
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- application/json
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
Host:
|
17
|
-
- gateway.sandbox.fatzebra.com.au
|
18
|
-
Authorization:
|
19
|
-
- Basic VEVTVDpURVNU
|
20
|
-
Content-Type:
|
21
|
-
- application/json
|
22
|
-
response:
|
23
|
-
status:
|
24
|
-
code: 200
|
25
|
-
message: OK
|
26
|
-
headers:
|
27
|
-
Cache-Control:
|
28
|
-
- no-store
|
29
|
-
Pragma:
|
30
|
-
- no-cache
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=utf-8
|
33
|
-
X-Request-Version:
|
34
|
-
- 1.21.8
|
35
|
-
X-Request-Id:
|
36
|
-
- c101aad30f97840b3c4a4efe5d4eb30a
|
37
|
-
X-Runtime:
|
38
|
-
- '0.035274'
|
39
|
-
Transfer-Encoding:
|
40
|
-
- chunked
|
41
|
-
body:
|
42
|
-
encoding: UTF-8
|
43
|
-
string: '{"successful":true,"response":[{"id":"071-PBA-PYG1L6M4CV4DYHTZ","name":"Sample
|
44
|
-
Billing Agreement","description":"Stored PayPal account","state":"ACTIVE","payer":{"payer_info":{"email":"sb-qxxvi1315481@personal.example.com","first_name":"John","last_name":"Doe","payer_id":"CV5LBGRHGTXHY"}},"shipping_address":{"first_name":"John","last_name":"Doe","address_1":"100
|
45
|
-
Kent Street","address_2":"Cafe Lane","city":"Sydney","state":"NSW","postcode":"2000","country":"AU"},"merchant_custom_data":"\u003cUUID\u003e","created_at":"2020-08-06T23:23:01+10:00"}],"errors":[],"test":true,"records":1,"total_records":1,"page":1,"total_pages":1}'
|
46
|
-
http_version:
|
47
|
-
recorded_at: Fri, 07 Aug 2020 03:09:56 GMT
|
48
|
-
recorded_with: VCR 3.0.3
|
@@ -1,47 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/captures/071-PPC-TUOHT8YJHBY7SBJU?test=true
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- application/json
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
Host:
|
17
|
-
- gateway.sandbox.fatzebra.com.au
|
18
|
-
Authorization:
|
19
|
-
- Basic VEVTVDpURVNU
|
20
|
-
Content-Type:
|
21
|
-
- application/json
|
22
|
-
response:
|
23
|
-
status:
|
24
|
-
code: 200
|
25
|
-
message: OK
|
26
|
-
headers:
|
27
|
-
Cache-Control:
|
28
|
-
- no-store
|
29
|
-
Pragma:
|
30
|
-
- no-cache
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=utf-8
|
33
|
-
X-Request-Version:
|
34
|
-
- 1.21.8
|
35
|
-
X-Request-Id:
|
36
|
-
- c58a5a533d15c569513e509323a18388
|
37
|
-
X-Runtime:
|
38
|
-
- '0.040104'
|
39
|
-
Transfer-Encoding:
|
40
|
-
- chunked
|
41
|
-
body:
|
42
|
-
encoding: UTF-8
|
43
|
-
string: '{"successful":true,"response":{"id":"071-PPC-TUOHT8YJHBY7SBJU","amount":12000,"decimal_amount":120.0,"captured_amount":12000,"successful":true,"message":"Approved","reference":"ref_12345_771673","captured":true,"currency":"AUD","transaction_id":"071-PPC-TUOHT8YJHBY7SBJU","transaction_date":"2020-08-06T23:19:37+10:00","response_code":"00","invoice_id":"ref_12345_771673","paypal_fee":318,"seller_receivable_net_amount":11682,"note_to_payer":"Sporting
|
44
|
-
Goods","is_final_capture":true,"refunded_amount":0,"balance_available_for_refund":12000,"order":"071-PPO-U7RRMGM3OY3V2ZMN"},"errors":[],"test":true}'
|
45
|
-
http_version:
|
46
|
-
recorded_at: Thu, 06 Aug 2020 13:26:56 GMT
|
47
|
-
recorded_with: VCR 3.0.3
|
@@ -1,45 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/captures/071-PPC-TUOHT8YJHBY7SBJU/refund
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"amount":100,"note_to_payer":"test note","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
|
-
Cache-Control:
|
26
|
-
- no-store
|
27
|
-
Pragma:
|
28
|
-
- no-cache
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=utf-8
|
31
|
-
X-Request-Version:
|
32
|
-
- 1.21.8
|
33
|
-
X-Request-Id:
|
34
|
-
- e0ebe48b6e87dd8ee5c32ba79ab48b68
|
35
|
-
X-Runtime:
|
36
|
-
- '6.572899'
|
37
|
-
Transfer-Encoding:
|
38
|
-
- chunked
|
39
|
-
body:
|
40
|
-
encoding: UTF-8
|
41
|
-
string: '{"successful":true,"response":{"id":"071-PPR-MZJV3I5XDDXODL91","amount":100,"refunded":"Approved","message":"Approved","transaction_id":"071-PPR-MZJV3I5XDDXODL91","currency":"AUD","successful":true,"transaction_date":"2020-08-07T14:01:58+10:00","response_code":"00","standalone":false,"note_to_payer":"test
|
42
|
-
note","invoice_id":"071-PPR-MZJV3I5XDDXODL91","decimal_amount":1.0,"paypal_fee":3,"seller_payable_net_amount":97,"balance_available_for_refund":11800,"capture":"071-PPC-TUOHT8YJHBY7SBJU","order":"071-PPO-U7RRMGM3OY3V2ZMN"},"errors":[],"test":true}'
|
43
|
-
http_version:
|
44
|
-
recorded_at: Fri, 07 Aug 2020 04:02:05 GMT
|
45
|
-
recorded_with: VCR 3.0.3
|
@@ -1,49 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://gateway.sandbox.fatzebra.com.au/v1.0//paypal/captures?from=2020/08/05&limit=10&offset=0&test=true
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept-Encoding:
|
11
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
-
Accept:
|
13
|
-
- application/json
|
14
|
-
User-Agent:
|
15
|
-
- Ruby
|
16
|
-
Host:
|
17
|
-
- gateway.sandbox.fatzebra.com.au
|
18
|
-
Authorization:
|
19
|
-
- Basic VEVTVDpURVNU
|
20
|
-
Content-Type:
|
21
|
-
- application/json
|
22
|
-
response:
|
23
|
-
status:
|
24
|
-
code: 200
|
25
|
-
message: OK
|
26
|
-
headers:
|
27
|
-
Cache-Control:
|
28
|
-
- no-store
|
29
|
-
Pragma:
|
30
|
-
- no-cache
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=utf-8
|
33
|
-
X-Request-Version:
|
34
|
-
- 1.21.8
|
35
|
-
X-Request-Id:
|
36
|
-
- 2a6624340cee60843d3a02133af59e2b
|
37
|
-
X-Runtime:
|
38
|
-
- '0.051010'
|
39
|
-
Transfer-Encoding:
|
40
|
-
- chunked
|
41
|
-
body:
|
42
|
-
encoding: UTF-8
|
43
|
-
string: '{"successful":true,"response":[{"id":"071-PPC-JUNNKEGCHIOL1CFR","amount":11000,"decimal_amount":110.0,"captured_amount":11000,"successful":true,"message":"Approved","reference":"82a8bc984e1dda3d10780a1c10eb5cb4","captured":true,"currency":"AUD","transaction_id":"071-PPC-JUNNKEGCHIOL1CFR","transaction_date":"2020-08-05T06:27:55+10:00","response_code":"00","invoice_id":"82a8bc984e1dda3d10780a1c10eb5cb4","paypal_fee":294,"seller_receivable_net_amount":10706,"note_to_payer":"Sporting
|
44
|
-
Goods","is_final_capture":true,"refunded_amount":11000,"balance_available_for_refund":0,"order":"071-PPO-RXFR2E6ILCIE6HKI"},{"id":"071-PPC-RBJV9SSA7PWXVXFB","amount":1100,"decimal_amount":11.0,"captured_amount":1100,"successful":true,"message":"Approved","reference":"f551972b-e61e-4403-bab1-dc2cdc99c7ff","captured":true,"currency":"AUD","transaction_id":"071-PPC-RBJV9SSA7PWXVXFB","transaction_date":"2020-08-05T10:38:47+10:00","response_code":"00","invoice_id":"f551972b-e61e-4403-bab1-dc2cdc99c7ff","paypal_fee":56,"seller_receivable_net_amount":1044,"note_to_payer":"Sporting
|
45
|
-
Goods","is_final_capture":true,"refunded_amount":1100,"balance_available_for_refund":0,"order":"071-PPO-5ICGTHBIMG9T7D4I"},{"id":"071-PPC-TUOHT8YJHBY7SBJU","amount":12000,"decimal_amount":120.0,"captured_amount":12000,"successful":true,"message":"Approved","reference":"ref_12345_771673","captured":true,"currency":"AUD","transaction_id":"071-PPC-TUOHT8YJHBY7SBJU","transaction_date":"2020-08-06T23:19:37+10:00","response_code":"00","invoice_id":"ref_12345_771673","paypal_fee":318,"seller_receivable_net_amount":11682,"note_to_payer":"Sporting
|
46
|
-
Goods","is_final_capture":true,"refunded_amount":0,"balance_available_for_refund":12000,"order":"071-PPO-U7RRMGM3OY3V2ZMN"}],"errors":[],"test":true,"records":3,"total_records":3,"page":1,"total_pages":1}'
|
47
|
-
http_version:
|
48
|
-
recorded_at: Thu, 06 Aug 2020 13:26:56 GMT
|
49
|
-
recorded_with: VCR 3.0.3
|