fat_zebra 3.0.11 → 3.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
 - data/.gitignore +2 -0
 - data/.rubocop.yml +3 -5
 - data/.travis.yml +3 -3
 - data/README.md +5 -5
 - data/fat_zebra.gemspec +5 -7
 - data/lib/fat_zebra.rb +8 -0
 - data/lib/fat_zebra/api_operation/search.rb +1 -1
 - data/lib/fat_zebra/authenticate.rb +64 -0
 - data/lib/fat_zebra/card.rb +1 -0
 - data/lib/fat_zebra/direct_credit.rb +1 -1
 - data/lib/fat_zebra/direct_debit.rb +1 -1
 - data/lib/fat_zebra/paypal/authorization.rb +49 -0
 - data/lib/fat_zebra/paypal/billing_agreement.rb +56 -0
 - data/lib/fat_zebra/paypal/capture.rb +36 -0
 - data/lib/fat_zebra/paypal/order.rb +22 -0
 - data/lib/fat_zebra/paypal/refund.rb +22 -0
 - data/lib/fat_zebra/refund.rb +4 -0
 - data/lib/fat_zebra/util.rb +1 -1
 - data/lib/fat_zebra/validation.rb +4 -0
 - data/lib/fat_zebra/version.rb +1 -1
 - data/spec/cassettes/FatZebra_Authenticate/_authenticate/validations/1_3_5_1.yml +46 -0
 - data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_1.yml +90 -0
 - data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_2.yml +90 -0
 - data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_1.yml +90 -0
 - data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_2.yml +90 -0
 - data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_1.yml +90 -0
 - data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_2.yml +87 -0
 - data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_3.yml +92 -0
 - data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_4.yml +91 -0
 - data/spec/cassettes/FatZebra_Authenticate/_authenticate/with_type_validation/1_3_4_1.yml +46 -0
 - data/spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_invalid/returns_error_when_invalid_token.yml +47 -0
 - data/spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_valid/decodes_JWT.yml +87 -0
 - data/spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_given_params.yml +44 -0
 - data/spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_no_amount.yml +44 -0
 - data/spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_amount_is_invalid.yml +44 -0
 - data/spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_currency_is_invalid.yml +46 -0
 - data/spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml +8 -14
 - data/spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml +8 -14
 - data/spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml +34 -52
 - data/spec/cassettes/FatZebra_BankAccount/_search/1_2_2.yml +34 -52
 - data/spec/cassettes/FatZebra_BankAccount/_search/1_2_3.yml +34 -52
 - data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_1.yml +11 -17
 - data/spec/cassettes/FatZebra_Batch/_create/with_file/1_1_1_2.yml +11 -17
 - data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_1.yml +11 -17
 - data/spec/cassettes/FatZebra_Batch/_create/with_path/1_1_2_2.yml +11 -17
 - data/spec/cassettes/FatZebra_Batch/_find/1_2_1.yml +19 -31
 - data/spec/cassettes/FatZebra_Batch/_find/1_2_2.yml +19 -31
 - data/spec/cassettes/FatZebra_Batch/_result/1_4_1.yml +26 -44
 - data/spec/cassettes/FatZebra_Batch/_search/1_3_1.yml +8 -14
 - data/spec/cassettes/FatZebra_Batch/_search/1_3_2.yml +8 -14
 - data/spec/cassettes/FatZebra_Batch/_search/1_3_3.yml +8 -14
 - data/spec/cassettes/FatZebra_Card/_create/1_1_1.yml +7 -13
 - data/spec/cassettes/FatZebra_Card/_create/1_1_2.yml +7 -13
 - data/spec/cassettes/FatZebra_Card/_create/1_1_3.yml +7 -13
 - data/spec/cassettes/FatZebra_Card/_create/1_1_4.yml +7 -13
 - data/spec/cassettes/FatZebra_Card/_create/1_1_5.yml +7 -13
 - data/spec/cassettes/FatZebra_Card/_create/1_1_6.yml +7 -13
 - data/spec/cassettes/FatZebra_Card/_find/1_3_1.yml +111 -0
 - data/spec/cassettes/FatZebra_Card/_find/1_3_2.yml +111 -0
 - data/spec/cassettes/FatZebra_Card/_update/1_2_1.yml +15 -27
 - data/spec/cassettes/FatZebra_Card/_update/1_2_2.yml +15 -27
 - data/spec/cassettes/FatZebra_Card/_update/1_2_3.yml +15 -27
 - data/spec/cassettes/FatZebra_Card/_update/validations/1_2_4_1.yml +7 -13
 - data/spec/cassettes/FatZebra_Customer/_create/1_1_1.yml +9 -15
 - data/spec/cassettes/FatZebra_Customer/_create/1_1_2.yml +9 -15
 - data/spec/cassettes/FatZebra_Customer/_create/1_1_3.yml +9 -15
 - data/spec/cassettes/FatZebra_Customer/_create/1_1_4.yml +9 -15
 - data/spec/cassettes/FatZebra_Customer/_create/1_1_5.yml +9 -15
 - data/spec/cassettes/FatZebra_Customer/_create/1_1_6.yml +9 -15
 - data/spec/cassettes/FatZebra_Customer/_delete/1_5_1.yml +18 -30
 - data/spec/cassettes/FatZebra_Customer/_find/1_3_1.yml +18 -30
 - data/spec/cassettes/FatZebra_Customer/_find/1_3_2.yml +18 -30
 - data/spec/cassettes/FatZebra_Customer/_search/1_2_1.yml +14 -24
 - data/spec/cassettes/FatZebra_Customer/_search/1_2_2.yml +14 -24
 - data/spec/cassettes/FatZebra_Customer/_search/1_2_3.yml +14 -24
 - data/spec/cassettes/FatZebra_Customer/_update/1_4_1.yml +19 -31
 - data/spec/cassettes/FatZebra_Customer/_update/1_4_2.yml +19 -31
 - data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_1.yml +8 -14
 - data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_2.yml +8 -14
 - data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_3.yml +8 -14
 - data/spec/cassettes/FatZebra_DirectCredit/_create/1_1_4.yml +8 -14
 - data/spec/cassettes/FatZebra_DirectCredit/_create/validations/valid/1_1_5_1_1.yml +7 -13
 - data/spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml +16 -28
 - data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml +16 -28
 - data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml +16 -28
 - data/spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml +103 -0
 - data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml +24 -42
 - data/spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml +24 -42
 - data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml +8 -14
 - data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_2.yml +8 -14
 - data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_3.yml +8 -14
 - data/spec/cassettes/FatZebra_DirectDebit/_create/1_1_4.yml +8 -14
 - data/spec/cassettes/FatZebra_DirectDebit/_create/validations/valid/1_1_5_1_1.yml +7 -13
 - data/spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml +16 -28
 - data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml +16 -28
 - data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml +16 -28
 - data/spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml +103 -0
 - data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml +24 -42
 - data/spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml +24 -42
 - data/spec/cassettes/FatZebra_Information/_ping/1_1_1.yml +7 -13
 - data/spec/cassettes/FatZebra_Information/_ping/1_1_2.yml +7 -13
 - data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_1.yml +52 -76
 - data/spec/cassettes/FatZebra_PaymentPlan/_active_/1_8_2.yml +52 -76
 - data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_1.yml +22 -34
 - data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_2.yml +22 -34
 - data/spec/cassettes/FatZebra_PaymentPlan/_create/1_1_3.yml +22 -34
 - data/spec/cassettes/FatZebra_PaymentPlan/_delete/1_5_1.yml +31 -49
 - data/spec/cassettes/FatZebra_PaymentPlan/_destroy/1_6_1.yml +31 -49
 - data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_1.yml +35 -53
 - data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_2.yml +35 -53
 - data/spec/cassettes/FatZebra_PaymentPlan/_find/1_2_3.yml +35 -53
 - data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_1.yml +37 -55
 - data/spec/cassettes/FatZebra_PaymentPlan/_suspend_/1_7_2.yml +37 -55
 - data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_1.yml +31 -49
 - data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_2.yml +31 -49
 - data/spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml +31 -49
 - data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml +37 -55
 - data/spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml +37 -55
 - data/spec/cassettes/FatZebra_Paypal_Authorization/_capture/returns_a_new_capture_record.yml +45 -0
 - data/spec/cassettes/FatZebra_Paypal_Authorization/_find/when_found/returns_authorization.yml +46 -0
 - data/spec/cassettes/FatZebra_Paypal_Authorization/_search/with_date_filter/returns_records_created_after_start_date.yml +46 -0
 - data/spec/cassettes/FatZebra_Paypal_Authorization/_void/returns_a_voided_capture_record.yml +44 -0
 - data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_charge/Valid_payload/returns_a_new_order_record.yml +48 -0
 - data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_find/when_found/returns_billing_agreement.yml +48 -0
 - data/spec/cassettes/FatZebra_Paypal_BillingAgreement/_search/with_date_filter/returns_records_created_after_start_date.yml +48 -0
 - data/spec/cassettes/FatZebra_Paypal_Capture/_find/when_found/returns_capture.yml +47 -0
 - data/spec/cassettes/FatZebra_Paypal_Capture/_refund/returns_a_new_refund_record.yml +45 -0
 - data/spec/cassettes/FatZebra_Paypal_Capture/_search/with_date_filter/returns_records_created_after_start_date.yml +49 -0
 - data/spec/cassettes/FatZebra_Paypal_Order/_find/when_found/returns_order.yml +48 -0
 - data/spec/cassettes/FatZebra_Paypal_Order/_search/with_date_filter/returns_orders_created_after_start_date.yml +55 -0
 - data/spec/cassettes/FatZebra_Paypal_Refund/_find/when_found/returns_refund.yml +47 -0
 - data/spec/cassettes/FatZebra_Paypal_Refund/_search/with_date_filter/returns_all_refund_records_created_after_start_date.yml +50 -0
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_1.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_10.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_11.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_12.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_13.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_2.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_3.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_4.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_5.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_6.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_7.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_8.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/1_1_9.yml +9 -15
 - data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_1.yml +11 -17
 - data/spec/cassettes/FatZebra_Purchase/_create/bad_request/1_1_14_2.yml +11 -17
 - data/spec/cassettes/FatZebra_Purchase/_search/1_3_1.yml +36 -54
 - data/spec/cassettes/FatZebra_Purchase/_search/1_3_2.yml +36 -54
 - data/spec/cassettes/FatZebra_Purchase/_search/1_3_3.yml +36 -54
 - data/spec/cassettes/FatZebra_Purchase/_void/1_6_1.yml +18 -30
 - data/spec/cassettes/FatZebra_Purchase/_void/1_6_2.yml +18 -30
 - data/spec/cassettes/FatZebra_Purchase/_void/1_6_3.yml +18 -30
 - data/spec/cassettes/FatZebra_Purchase/_void/1_6_4.yml +18 -30
 - data/spec/cassettes/FatZebra_Purchase/_void/1_7_1.yml +18 -30
 - data/spec/cassettes/FatZebra_Purchase/_void/1_7_2.yml +18 -30
 - data/spec/cassettes/FatZebra_Purchase/_void/1_7_3.yml +18 -30
 - data/spec/cassettes/FatZebra_Purchase/_void/1_7_4.yml +18 -30
 - data/spec/cassettes/FatZebra_Refund/_create/1_1_1.yml +18 -30
 - data/spec/cassettes/FatZebra_Refund/_create/1_1_10.yml +18 -30
 - data/spec/cassettes/FatZebra_Refund/_create/1_1_2.yml +18 -30
 - data/spec/cassettes/FatZebra_Refund/_create/1_1_3.yml +18 -30
 - data/spec/cassettes/FatZebra_Refund/_create/1_1_4.yml +18 -30
 - data/spec/cassettes/FatZebra_Refund/_create/1_1_5.yml +18 -30
 - data/spec/cassettes/FatZebra_Refund/_create/1_1_6.yml +18 -30
 - data/spec/cassettes/FatZebra_Refund/_create/1_1_7.yml +18 -30
 - data/spec/cassettes/FatZebra_Refund/_create/1_1_8.yml +18 -30
 - data/spec/cassettes/FatZebra_Refund/_create/1_1_9.yml +18 -30
 - data/spec/cassettes/FatZebra_Refund/_find/1_2_1.yml +27 -45
 - data/spec/cassettes/FatZebra_Refund/_find/1_2_2.yml +27 -45
 - data/spec/cassettes/FatZebra_Refund/_find/1_2_3.yml +27 -45
 - data/spec/cassettes/FatZebra_Refund/_search/responds_with_the_newly-created_refunds.yml +214 -0
 - data/spec/cassettes/FatZebra_Refund/_void/1_4_1.yml +27 -45
 - data/spec/cassettes/FatZebra_Refund/_void/1_4_2.yml +27 -45
 - data/spec/cassettes/FatZebra_Refund/_void/1_4_3.yml +27 -45
 - data/spec/cassettes/FatZebra_Refund/_void/1_4_4.yml +27 -45
 - data/spec/cassettes/FatZebra_WebHook/_create/1_1_1.yml +7 -13
 - data/spec/cassettes/FatZebra_WebHook/_create/1_1_2.yml +7 -13
 - data/spec/cassettes/FatZebra_WebHook/_create/1_1_3.yml +7 -13
 - data/spec/cassettes/FatZebra_WebHook/_delete/1_4_1.yml +15 -27
 - data/spec/cassettes/FatZebra_WebHook/_search/1_2_1.yml +115 -43
 - data/spec/cassettes/FatZebra_WebHook/_search/1_2_2.yml +115 -43
 - data/spec/cassettes/FatZebra_WebHook/_update/1_3_1.yml +15 -27
 - data/spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml +15 -27
 - data/spec/lib/fat_zebra/authenticate_spec.rb +187 -0
 - data/spec/lib/fat_zebra/card_spec.rb +8 -0
 - data/spec/lib/fat_zebra/direct_credit_spec.rb +14 -1
 - data/spec/lib/fat_zebra/direct_debit_spec.rb +14 -1
 - data/spec/lib/fat_zebra/payment_plan_spec.rb +1 -1
 - data/spec/lib/fat_zebra/paypal/authorization_spec.rb +79 -0
 - data/spec/lib/fat_zebra/paypal/billing_agreement_spec.rb +62 -0
 - data/spec/lib/fat_zebra/paypal/capture_spec.rb +60 -0
 - data/spec/lib/fat_zebra/paypal/order_spec.rb +35 -0
 - data/spec/lib/fat_zebra/paypal/refund_spec.rb +36 -0
 - data/spec/lib/fat_zebra/purchase_spec.rb +3 -3
 - data/spec/lib/fat_zebra/refund_spec.rb +37 -17
 - data/spec/spec_helper.rb +0 -1
 - data/spec/support/payloads.rb +135 -0
 - metadata +59 -15
 - data/spec/cassettes/FatZebra_Refund/_search/1_3_1.yml +0 -295
 - data/spec/cassettes/FatZebra_Refund/_search/1_3_2.yml +0 -295
 
| 
         @@ -0,0 +1,45 @@ 
     | 
|
| 
      
 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
         
     | 
| 
         @@ -0,0 +1,46 @@ 
     | 
|
| 
      
 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
         
     | 
| 
         @@ -0,0 +1,46 @@ 
     | 
|
| 
      
 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
         
     | 
| 
         @@ -0,0 +1,44 @@ 
     | 
|
| 
      
 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
         
     | 
| 
         @@ -0,0 +1,48 @@ 
     | 
|
| 
      
 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
    ADDED
    
    | 
         @@ -0,0 +1,48 @@ 
     | 
|
| 
      
 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
         
     | 
| 
         @@ -0,0 +1,48 @@ 
     | 
|
| 
      
 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
         
     | 
| 
         @@ -0,0 +1,47 @@ 
     | 
|
| 
      
 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
         
     | 
| 
         @@ -0,0 +1,45 @@ 
     | 
|
| 
      
 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
         
     | 
| 
         @@ -0,0 +1,49 @@ 
     | 
|
| 
      
 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
         
     |