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
 
    
        data/spec/spec_helper.rb
    CHANGED
    
    
    
        data/spec/support/payloads.rb
    CHANGED
    
    | 
         @@ -40,4 +40,139 @@ shared_context 'payloads' do 
     | 
|
| 
       40 
40 
     | 
    
         
             
                }
         
     | 
| 
       41 
41 
     | 
    
         
             
              }}
         
     | 
| 
       42 
42 
     | 
    
         | 
| 
      
 43 
     | 
    
         
            +
              let(:valid_sca_enrollment_payload) {{
         
     | 
| 
      
 44 
     | 
    
         
            +
                customer: {
         
     | 
| 
      
 45 
     | 
    
         
            +
                  address_1: '23 Smith Road',
         
     | 
| 
      
 46 
     | 
    
         
            +
                  address_2: 'North Shore',
         
     | 
| 
      
 47 
     | 
    
         
            +
                  city: 'Canberra',
         
     | 
| 
      
 48 
     | 
    
         
            +
                  country: 'AU',
         
     | 
| 
      
 49 
     | 
    
         
            +
                  state: 'NSW',
         
     | 
| 
      
 50 
     | 
    
         
            +
                  email: 'test@test.com',
         
     | 
| 
      
 51 
     | 
    
         
            +
                  first_name: 'James',
         
     | 
| 
      
 52 
     | 
    
         
            +
                  last_name: 'Smith',
         
     | 
| 
      
 53 
     | 
    
         
            +
                  phone_number: '0444555666',
         
     | 
| 
      
 54 
     | 
    
         
            +
                  post_code: '2000',
         
     | 
| 
      
 55 
     | 
    
         
            +
                  passport_number: 'X1234567890',
         
     | 
| 
      
 56 
     | 
    
         
            +
                  passport_country: '036',
         
     | 
| 
      
 57 
     | 
    
         
            +
                  account_changed_at: '20191210',
         
     | 
| 
      
 58 
     | 
    
         
            +
                  account_created_at: '20191210',
         
     | 
| 
      
 59 
     | 
    
         
            +
                  account_password_changed_at: '20191210'
         
     | 
| 
      
 60 
     | 
    
         
            +
                },
         
     | 
| 
      
 61 
     | 
    
         
            +
                shipping_address: {
         
     | 
| 
      
 62 
     | 
    
         
            +
                  address_1: '23 Smith Road',
         
     | 
| 
      
 63 
     | 
    
         
            +
                  address_2: 'North Shore',
         
     | 
| 
      
 64 
     | 
    
         
            +
                  city: 'Sydney',
         
     | 
| 
      
 65 
     | 
    
         
            +
                  country: 'AU',
         
     | 
| 
      
 66 
     | 
    
         
            +
                  state: 'NSW',
         
     | 
| 
      
 67 
     | 
    
         
            +
                  email: 'test@test.com',
         
     | 
| 
      
 68 
     | 
    
         
            +
                  first_name: 'James',
         
     | 
| 
      
 69 
     | 
    
         
            +
                  last_name: 'Smith',
         
     | 
| 
      
 70 
     | 
    
         
            +
                  phone_number: '0444555666',
         
     | 
| 
      
 71 
     | 
    
         
            +
                  post_code: '2000',
         
     | 
| 
      
 72 
     | 
    
         
            +
                  method: 'pickup',
         
     | 
| 
      
 73 
     | 
    
         
            +
                  destination_code: '01',
         
     | 
| 
      
 74 
     | 
    
         
            +
                },
         
     | 
| 
      
 75 
     | 
    
         
            +
                custom: {
         
     | 
| 
      
 76 
     | 
    
         
            +
                  transaction_mode: 'mobile',
         
     | 
| 
      
 77 
     | 
    
         
            +
                  reference_id: SecureRandom.hex,
         
     | 
| 
      
 78 
     | 
    
         
            +
             
     | 
| 
      
 79 
     | 
    
         
            +
                  merchant_name: 'TEST',
         
     | 
| 
      
 80 
     | 
    
         
            +
                  merchant_new_customer: true,
         
     | 
| 
      
 81 
     | 
    
         
            +
                  preorder: 1,
         
     | 
| 
      
 82 
     | 
    
         
            +
             
     | 
| 
      
 83 
     | 
    
         
            +
                  http_accept: 'text/html',
         
     | 
| 
      
 84 
     | 
    
         
            +
                  http_user_agent: 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0',
         
     | 
| 
      
 85 
     | 
    
         
            +
             
     | 
| 
      
 86 
     | 
    
         
            +
                  recurring_end_date: '20201201',
         
     | 
| 
      
 87 
     | 
    
         
            +
                  recurring_frequency: 3,
         
     | 
| 
      
 88 
     | 
    
         
            +
                  recurring_original_purchase_date: '2019120112:00:00'
         
     | 
| 
      
 89 
     | 
    
         
            +
                },
         
     | 
| 
      
 90 
     | 
    
         
            +
                items: [
         
     | 
| 
      
 91 
     | 
    
         
            +
                  {
         
     | 
| 
      
 92 
     | 
    
         
            +
                    unit_price: 23.3,
         
     | 
| 
      
 93 
     | 
    
         
            +
                    product_description: 'Widgets',
         
     | 
| 
      
 94 
     | 
    
         
            +
                    product_name: 'Watch',
         
     | 
| 
      
 95 
     | 
    
         
            +
                    quantity: 1,
         
     | 
| 
      
 96 
     | 
    
         
            +
                    product_sku: '9999',
         
     | 
| 
      
 97 
     | 
    
         
            +
                    passenger_first_name: 'John',
         
     | 
| 
      
 98 
     | 
    
         
            +
                    passenger_last_name: 'Smith',
         
     | 
| 
      
 99 
     | 
    
         
            +
                  }
         
     | 
| 
      
 100 
     | 
    
         
            +
                ],
         
     | 
| 
      
 101 
     | 
    
         
            +
                airline_data: {
         
     | 
| 
      
 102 
     | 
    
         
            +
                  legs: [
         
     | 
| 
      
 103 
     | 
    
         
            +
                    {
         
     | 
| 
      
 104 
     | 
    
         
            +
                      carrier_code: 'code',
         
     | 
| 
      
 105 
     | 
    
         
            +
                      departure_date: '20221012',
         
     | 
| 
      
 106 
     | 
    
         
            +
                      destination: 'SYD',
         
     | 
| 
      
 107 
     | 
    
         
            +
                      originating_airport_code: 'MEL',
         
     | 
| 
      
 108 
     | 
    
         
            +
                    }
         
     | 
| 
      
 109 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 110 
     | 
    
         
            +
                  number_of_passengers: 2,
         
     | 
| 
      
 111 
     | 
    
         
            +
                  passengers: [
         
     | 
| 
      
 112 
     | 
    
         
            +
                    {
         
     | 
| 
      
 113 
     | 
    
         
            +
                      first_name: 'John',
         
     | 
| 
      
 114 
     | 
    
         
            +
                      last_name: 'Smith',
         
     | 
| 
      
 115 
     | 
    
         
            +
                    },
         
     | 
| 
      
 116 
     | 
    
         
            +
                    {
         
     | 
| 
      
 117 
     | 
    
         
            +
                      first_name: 'Megan',
         
     | 
| 
      
 118 
     | 
    
         
            +
                      last_name: 'Doe',
         
     | 
| 
      
 119 
     | 
    
         
            +
                    }
         
     | 
| 
      
 120 
     | 
    
         
            +
                  ]
         
     | 
| 
      
 121 
     | 
    
         
            +
                }
         
     | 
| 
      
 122 
     | 
    
         
            +
              }}
         
     | 
| 
      
 123 
     | 
    
         
            +
             
     | 
| 
      
 124 
     | 
    
         
            +
              let(:valid_sca_validation_payload) {{
         
     | 
| 
      
 125 
     | 
    
         
            +
                authentication_transaction_id: SecureRandom.hex,
         
     | 
| 
      
 126 
     | 
    
         
            +
                signed_pares: SecureRandom.hex
         
     | 
| 
      
 127 
     | 
    
         
            +
              }}
         
     | 
| 
      
 128 
     | 
    
         
            +
             
     | 
| 
      
 129 
     | 
    
         
            +
              let(:valid_sca_authentication_payload) {{
         
     | 
| 
      
 130 
     | 
    
         
            +
                card_token: credit_card.token,
         
     | 
| 
      
 131 
     | 
    
         
            +
                amount: 100,
         
     | 
| 
      
 132 
     | 
    
         
            +
                currency: 'AUD',
         
     | 
| 
      
 133 
     | 
    
         
            +
                customer_ip: '111.111.111.111',
         
     | 
| 
      
 134 
     | 
    
         
            +
                sca: {
         
     | 
| 
      
 135 
     | 
    
         
            +
                  type: 'enrollment',
         
     | 
| 
      
 136 
     | 
    
         
            +
                  merchant_reference_code: SecureRandom.uuid,
         
     | 
| 
      
 137 
     | 
    
         
            +
                }
         
     | 
| 
      
 138 
     | 
    
         
            +
              }}
         
     | 
| 
      
 139 
     | 
    
         
            +
             
     | 
| 
      
 140 
     | 
    
         
            +
              let(:valid_charge_billing_agreement_payload) {{
         
     | 
| 
      
 141 
     | 
    
         
            +
                reference: SecureRandom.uuid,
         
     | 
| 
      
 142 
     | 
    
         
            +
                amount: 1100,
         
     | 
| 
      
 143 
     | 
    
         
            +
                currency: "AUD",
         
     | 
| 
      
 144 
     | 
    
         
            +
                customer_ip: '1.2.3.4',
         
     | 
| 
      
 145 
     | 
    
         
            +
                options: {
         
     | 
| 
      
 146 
     | 
    
         
            +
                  brand_name: "EXAMPLE INC"
         
     | 
| 
      
 147 
     | 
    
         
            +
                },
         
     | 
| 
      
 148 
     | 
    
         
            +
                purchases: [{
         
     | 
| 
      
 149 
     | 
    
         
            +
                  description: "Sporting Goods",
         
     | 
| 
      
 150 
     | 
    
         
            +
                  custom_id: "CUST-HighFashions",
         
     | 
| 
      
 151 
     | 
    
         
            +
                  soft_descriptor: "HighFashions",
         
     | 
| 
      
 152 
     | 
    
         
            +
                  amount: {
         
     | 
| 
      
 153 
     | 
    
         
            +
                    item_total: 900,
         
     | 
| 
      
 154 
     | 
    
         
            +
                    shipping: 200
         
     | 
| 
      
 155 
     | 
    
         
            +
                  },
         
     | 
| 
      
 156 
     | 
    
         
            +
                  items: [{
         
     | 
| 
      
 157 
     | 
    
         
            +
                    name: "T-Shirt",
         
     | 
| 
      
 158 
     | 
    
         
            +
                    unit_amount: 900,
         
     | 
| 
      
 159 
     | 
    
         
            +
                    qty: 1,
         
     | 
| 
      
 160 
     | 
    
         
            +
                    category: "PHYSICAL_GOODS"
         
     | 
| 
      
 161 
     | 
    
         
            +
                  }],
         
     | 
| 
      
 162 
     | 
    
         
            +
                  shipping_address: {
         
     | 
| 
      
 163 
     | 
    
         
            +
                    method: "United States Postal Service 1",
         
     | 
| 
      
 164 
     | 
    
         
            +
                    address: {
         
     | 
| 
      
 165 
     | 
    
         
            +
                      first_name: "John",
         
     | 
| 
      
 166 
     | 
    
         
            +
                      last_name: "Doe",
         
     | 
| 
      
 167 
     | 
    
         
            +
                      address_1: "100 Kent Street",
         
     | 
| 
      
 168 
     | 
    
         
            +
                      address_2: "Cafe Lane",
         
     | 
| 
      
 169 
     | 
    
         
            +
                      city: "Sydney",
         
     | 
| 
      
 170 
     | 
    
         
            +
                      state: "NSW",
         
     | 
| 
      
 171 
     | 
    
         
            +
                      postcode: "2000",
         
     | 
| 
      
 172 
     | 
    
         
            +
                      country: "AU"
         
     | 
| 
      
 173 
     | 
    
         
            +
                    }
         
     | 
| 
      
 174 
     | 
    
         
            +
                  }
         
     | 
| 
      
 175 
     | 
    
         
            +
                }]
         
     | 
| 
      
 176 
     | 
    
         
            +
              }}
         
     | 
| 
      
 177 
     | 
    
         
            +
             
     | 
| 
       43 
178 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,17 +1,17 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: fat_zebra
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 3. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 3.2.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
     | 
    
         
            -
            -  
     | 
| 
       8 
     | 
    
         
            -
            autorequire: 
     | 
| 
      
 7 
     | 
    
         
            +
            - Fat Zebra
         
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-03-04 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
     | 
    
         
            -
              name:  
     | 
| 
      
 14 
     | 
    
         
            +
              name: byebug
         
     | 
| 
       15 
15 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       16 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       17 
17 
     | 
    
         
             
                - - ">="
         
     | 
| 
         @@ -58,14 +58,14 @@ dependencies: 
     | 
|
| 
       58 
58 
     | 
    
         
             
                requirements:
         
     | 
| 
       59 
59 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       60 
60 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       61 
     | 
    
         
            -
                    version:  
     | 
| 
      
 61 
     | 
    
         
            +
                    version: 0.58.1
         
     | 
| 
       62 
62 
     | 
    
         
             
              type: :development
         
     | 
| 
       63 
63 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       64 
64 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       65 
65 
     | 
    
         
             
                requirements:
         
     | 
| 
       66 
66 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       67 
67 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       68 
     | 
    
         
            -
                    version:  
     | 
| 
      
 68 
     | 
    
         
            +
                    version: 0.58.1
         
     | 
| 
       69 
69 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       70 
70 
     | 
    
         
             
              name: vcr
         
     | 
| 
       71 
71 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -94,10 +94,10 @@ dependencies: 
     | 
|
| 
       94 
94 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       95 
95 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       96 
96 
     | 
    
         
             
                    version: '3.0'
         
     | 
| 
       97 
     | 
    
         
            -
            description: Provides integration with the Fat Zebra internet payment gateway (www.fatzebra.com 
     | 
| 
      
 97 
     | 
    
         
            +
            description: Provides integration with the Fat Zebra internet payment gateway (www.fatzebra.com),
         
     | 
| 
       98 
98 
     | 
    
         
             
              including purchase, refund, auth, capture and recurring billing functionality.
         
     | 
| 
       99 
99 
     | 
    
         
             
            email:
         
     | 
| 
       100 
     | 
    
         
            -
            -  
     | 
| 
      
 100 
     | 
    
         
            +
            - support@fatzebra.com
         
     | 
| 
       101 
101 
     | 
    
         
             
            executables: []
         
     | 
| 
       102 
102 
     | 
    
         
             
            extensions: []
         
     | 
| 
       103 
103 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
         @@ -118,6 +118,7 @@ files: 
     | 
|
| 
       118 
118 
     | 
    
         
             
            - lib/fat_zebra/api_operation/search.rb
         
     | 
| 
       119 
119 
     | 
    
         
             
            - lib/fat_zebra/api_operation/void.rb
         
     | 
| 
       120 
120 
     | 
    
         
             
            - lib/fat_zebra/api_resource.rb
         
     | 
| 
      
 121 
     | 
    
         
            +
            - lib/fat_zebra/authenticate.rb
         
     | 
| 
       121 
122 
     | 
    
         
             
            - lib/fat_zebra/bank_account.rb
         
     | 
| 
       122 
123 
     | 
    
         
             
            - lib/fat_zebra/batch.rb
         
     | 
| 
       123 
124 
     | 
    
         
             
            - lib/fat_zebra/card.rb
         
     | 
| 
         @@ -130,6 +131,11 @@ files: 
     | 
|
| 
       130 
131 
     | 
    
         
             
            - lib/fat_zebra/information.rb
         
     | 
| 
       131 
132 
     | 
    
         
             
            - lib/fat_zebra/object_helper.rb
         
     | 
| 
       132 
133 
     | 
    
         
             
            - lib/fat_zebra/payment_plan.rb
         
     | 
| 
      
 134 
     | 
    
         
            +
            - lib/fat_zebra/paypal/authorization.rb
         
     | 
| 
      
 135 
     | 
    
         
            +
            - lib/fat_zebra/paypal/billing_agreement.rb
         
     | 
| 
      
 136 
     | 
    
         
            +
            - lib/fat_zebra/paypal/capture.rb
         
     | 
| 
      
 137 
     | 
    
         
            +
            - lib/fat_zebra/paypal/order.rb
         
     | 
| 
      
 138 
     | 
    
         
            +
            - lib/fat_zebra/paypal/refund.rb
         
     | 
| 
       133 
139 
     | 
    
         
             
            - lib/fat_zebra/purchase.rb
         
     | 
| 
       134 
140 
     | 
    
         
             
            - lib/fat_zebra/refund.rb
         
     | 
| 
       135 
141 
     | 
    
         
             
            - lib/fat_zebra/request.rb
         
     | 
| 
         @@ -142,6 +148,22 @@ files: 
     | 
|
| 
       142 
148 
     | 
    
         
             
            - lib/fat_zebra/validation.rb
         
     | 
| 
       143 
149 
     | 
    
         
             
            - lib/fat_zebra/version.rb
         
     | 
| 
       144 
150 
     | 
    
         
             
            - lib/fat_zebra/web_hook.rb
         
     | 
| 
      
 151 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_authenticate/validations/1_3_5_1.yml
         
     | 
| 
      
 152 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_1.yml
         
     | 
| 
      
 153 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_authenticate/with_challenge_response/1_3_3_2.yml
         
     | 
| 
      
 154 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_1.yml
         
     | 
| 
      
 155 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_authenticate/with_frictionless_response/1_3_2_2.yml
         
     | 
| 
      
 156 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_1.yml
         
     | 
| 
      
 157 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_2.yml
         
     | 
| 
      
 158 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_3.yml
         
     | 
| 
      
 159 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_authenticate/with_invalid_input/1_3_1_4.yml
         
     | 
| 
      
 160 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_authenticate/with_type_validation/1_3_4_1.yml
         
     | 
| 
      
 161 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_invalid/returns_error_when_invalid_token.yml
         
     | 
| 
      
 162 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_decode_session/when_token_is_valid/decodes_JWT.yml
         
     | 
| 
      
 163 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_given_params.yml
         
     | 
| 
      
 164 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_session/returns_JWT_with_no_amount.yml
         
     | 
| 
      
 165 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_amount_is_invalid.yml
         
     | 
| 
      
 166 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Authenticate/_session/returns_error_when_currency_is_invalid.yml
         
     | 
| 
       145 
167 
     | 
    
         
             
            - spec/cassettes/FatZebra_BankAccount/_create/1_1_1.yml
         
     | 
| 
       146 
168 
     | 
    
         
             
            - spec/cassettes/FatZebra_BankAccount/_create/1_1_2.yml
         
     | 
| 
       147 
169 
     | 
    
         
             
            - spec/cassettes/FatZebra_BankAccount/_search/1_2_1.yml
         
     | 
| 
         @@ -163,6 +185,8 @@ files: 
     | 
|
| 
       163 
185 
     | 
    
         
             
            - spec/cassettes/FatZebra_Card/_create/1_1_4.yml
         
     | 
| 
       164 
186 
     | 
    
         
             
            - spec/cassettes/FatZebra_Card/_create/1_1_5.yml
         
     | 
| 
       165 
187 
     | 
    
         
             
            - spec/cassettes/FatZebra_Card/_create/1_1_6.yml
         
     | 
| 
      
 188 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Card/_find/1_3_1.yml
         
     | 
| 
      
 189 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Card/_find/1_3_2.yml
         
     | 
| 
       166 
190 
     | 
    
         
             
            - spec/cassettes/FatZebra_Card/_update/1_2_1.yml
         
     | 
| 
       167 
191 
     | 
    
         
             
            - spec/cassettes/FatZebra_Card/_update/1_2_2.yml
         
     | 
| 
       168 
192 
     | 
    
         
             
            - spec/cassettes/FatZebra_Card/_update/1_2_3.yml
         
     | 
| 
         @@ -189,6 +213,7 @@ files: 
     | 
|
| 
       189 
213 
     | 
    
         
             
            - spec/cassettes/FatZebra_DirectCredit/_delete/1_4_1.yml
         
     | 
| 
       190 
214 
     | 
    
         
             
            - spec/cassettes/FatZebra_DirectCredit/_find/1_2_1.yml
         
     | 
| 
       191 
215 
     | 
    
         
             
            - spec/cassettes/FatZebra_DirectCredit/_find/1_2_2.yml
         
     | 
| 
      
 216 
     | 
    
         
            +
            - spec/cassettes/FatZebra_DirectCredit/_find/1_2_3.yml
         
     | 
| 
       192 
217 
     | 
    
         
             
            - spec/cassettes/FatZebra_DirectCredit/_search/1_3_1.yml
         
     | 
| 
       193 
218 
     | 
    
         
             
            - spec/cassettes/FatZebra_DirectCredit/_search/1_3_2.yml
         
     | 
| 
       194 
219 
     | 
    
         
             
            - spec/cassettes/FatZebra_DirectDebit/_create/1_1_1.yml
         
     | 
| 
         @@ -199,6 +224,7 @@ files: 
     | 
|
| 
       199 
224 
     | 
    
         
             
            - spec/cassettes/FatZebra_DirectDebit/_delete/1_4_1.yml
         
     | 
| 
       200 
225 
     | 
    
         
             
            - spec/cassettes/FatZebra_DirectDebit/_find/1_2_1.yml
         
     | 
| 
       201 
226 
     | 
    
         
             
            - spec/cassettes/FatZebra_DirectDebit/_find/1_2_2.yml
         
     | 
| 
      
 227 
     | 
    
         
            +
            - spec/cassettes/FatZebra_DirectDebit/_find/1_2_3.yml
         
     | 
| 
       202 
228 
     | 
    
         
             
            - spec/cassettes/FatZebra_DirectDebit/_search/1_3_1.yml
         
     | 
| 
       203 
229 
     | 
    
         
             
            - spec/cassettes/FatZebra_DirectDebit/_search/1_3_2.yml
         
     | 
| 
       204 
230 
     | 
    
         
             
            - spec/cassettes/FatZebra_Information/_ping/1_1_1.yml
         
     | 
| 
         @@ -220,6 +246,20 @@ files: 
     | 
|
| 
       220 
246 
     | 
    
         
             
            - spec/cassettes/FatZebra_PaymentPlan/_update/1_3_3.yml
         
     | 
| 
       221 
247 
     | 
    
         
             
            - spec/cassettes/FatZebra_PaymentPlan/_update/1_4_1.yml
         
     | 
| 
       222 
248 
     | 
    
         
             
            - spec/cassettes/FatZebra_PaymentPlan/_update/1_4_2.yml
         
     | 
| 
      
 249 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_Authorization/_capture/returns_a_new_capture_record.yml
         
     | 
| 
      
 250 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_Authorization/_find/when_found/returns_authorization.yml
         
     | 
| 
      
 251 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_Authorization/_search/with_date_filter/returns_records_created_after_start_date.yml
         
     | 
| 
      
 252 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_Authorization/_void/returns_a_voided_capture_record.yml
         
     | 
| 
      
 253 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_BillingAgreement/_charge/Valid_payload/returns_a_new_order_record.yml
         
     | 
| 
      
 254 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_BillingAgreement/_find/when_found/returns_billing_agreement.yml
         
     | 
| 
      
 255 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_BillingAgreement/_search/with_date_filter/returns_records_created_after_start_date.yml
         
     | 
| 
      
 256 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_Capture/_find/when_found/returns_capture.yml
         
     | 
| 
      
 257 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_Capture/_refund/returns_a_new_refund_record.yml
         
     | 
| 
      
 258 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_Capture/_search/with_date_filter/returns_records_created_after_start_date.yml
         
     | 
| 
      
 259 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_Order/_find/when_found/returns_order.yml
         
     | 
| 
      
 260 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_Order/_search/with_date_filter/returns_orders_created_after_start_date.yml
         
     | 
| 
      
 261 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_Refund/_find/when_found/returns_refund.yml
         
     | 
| 
      
 262 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Paypal_Refund/_search/with_date_filter/returns_all_refund_records_created_after_start_date.yml
         
     | 
| 
       223 
263 
     | 
    
         
             
            - spec/cassettes/FatZebra_Purchase/_capture/1_5_1.yml
         
     | 
| 
       224 
264 
     | 
    
         
             
            - spec/cassettes/FatZebra_Purchase/_capture/1_5_2.yml
         
     | 
| 
       225 
265 
     | 
    
         
             
            - spec/cassettes/FatZebra_Purchase/_capture/1_5_3.yml
         
     | 
| 
         @@ -272,8 +312,7 @@ files: 
     | 
|
| 
       272 
312 
     | 
    
         
             
            - spec/cassettes/FatZebra_Refund/_find/1_2_1.yml
         
     | 
| 
       273 
313 
     | 
    
         
             
            - spec/cassettes/FatZebra_Refund/_find/1_2_2.yml
         
     | 
| 
       274 
314 
     | 
    
         
             
            - spec/cassettes/FatZebra_Refund/_find/1_2_3.yml
         
     | 
| 
       275 
     | 
    
         
            -
            - spec/cassettes/FatZebra_Refund/_search/ 
     | 
| 
       276 
     | 
    
         
            -
            - spec/cassettes/FatZebra_Refund/_search/1_3_2.yml
         
     | 
| 
      
 315 
     | 
    
         
            +
            - spec/cassettes/FatZebra_Refund/_search/responds_with_the_newly-created_refunds.yml
         
     | 
| 
       277 
316 
     | 
    
         
             
            - spec/cassettes/FatZebra_Refund/_void/1_4_1.yml
         
     | 
| 
       278 
317 
     | 
    
         
             
            - spec/cassettes/FatZebra_Refund/_void/1_4_2.yml
         
     | 
| 
       279 
318 
     | 
    
         
             
            - spec/cassettes/FatZebra_Refund/_void/1_4_3.yml
         
     | 
| 
         @@ -288,6 +327,7 @@ files: 
     | 
|
| 
       288 
327 
     | 
    
         
             
            - spec/cassettes/FatZebra_WebHook/_update/1_3_2.yml
         
     | 
| 
       289 
328 
     | 
    
         
             
            - spec/fixtures/batch_test.csv
         
     | 
| 
       290 
329 
     | 
    
         
             
            - spec/lib/fat_zebra/api_resource_spec.rb
         
     | 
| 
      
 330 
     | 
    
         
            +
            - spec/lib/fat_zebra/authenticate_spec.rb
         
     | 
| 
       291 
331 
     | 
    
         
             
            - spec/lib/fat_zebra/bank_account_spec.rb
         
     | 
| 
       292 
332 
     | 
    
         
             
            - spec/lib/fat_zebra/batch_spec.rb
         
     | 
| 
       293 
333 
     | 
    
         
             
            - spec/lib/fat_zebra/card_spec.rb
         
     | 
| 
         @@ -298,6 +338,11 @@ files: 
     | 
|
| 
       298 
338 
     | 
    
         
             
            - spec/lib/fat_zebra/fat_zebra_object_spec.rb
         
     | 
| 
       299 
339 
     | 
    
         
             
            - spec/lib/fat_zebra/information_spec.rb
         
     | 
| 
       300 
340 
     | 
    
         
             
            - spec/lib/fat_zebra/payment_plan_spec.rb
         
     | 
| 
      
 341 
     | 
    
         
            +
            - spec/lib/fat_zebra/paypal/authorization_spec.rb
         
     | 
| 
      
 342 
     | 
    
         
            +
            - spec/lib/fat_zebra/paypal/billing_agreement_spec.rb
         
     | 
| 
      
 343 
     | 
    
         
            +
            - spec/lib/fat_zebra/paypal/capture_spec.rb
         
     | 
| 
      
 344 
     | 
    
         
            +
            - spec/lib/fat_zebra/paypal/order_spec.rb
         
     | 
| 
      
 345 
     | 
    
         
            +
            - spec/lib/fat_zebra/paypal/refund_spec.rb
         
     | 
| 
       301 
346 
     | 
    
         
             
            - spec/lib/fat_zebra/purchase_spec.rb
         
     | 
| 
       302 
347 
     | 
    
         
             
            - spec/lib/fat_zebra/refund_spec.rb
         
     | 
| 
       303 
348 
     | 
    
         
             
            - spec/lib/fat_zebra/request_spec.rb
         
     | 
| 
         @@ -310,7 +355,7 @@ files: 
     | 
|
| 
       310 
355 
     | 
    
         
             
            homepage: ''
         
     | 
| 
       311 
356 
     | 
    
         
             
            licenses: []
         
     | 
| 
       312 
357 
     | 
    
         
             
            metadata: {}
         
     | 
| 
       313 
     | 
    
         
            -
            post_install_message: 
     | 
| 
      
 358 
     | 
    
         
            +
            post_install_message:
         
     | 
| 
       314 
359 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       315 
360 
     | 
    
         
             
            require_paths:
         
     | 
| 
       316 
361 
     | 
    
         
             
            - lib
         
     | 
| 
         @@ -325,9 +370,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       325 
370 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       326 
371 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       327 
372 
     | 
    
         
             
            requirements: []
         
     | 
| 
       328 
     | 
    
         
            -
             
     | 
| 
       329 
     | 
    
         
            -
             
     | 
| 
       330 
     | 
    
         
            -
            signing_key: 
         
     | 
| 
      
 373 
     | 
    
         
            +
            rubygems_version: 3.1.2
         
     | 
| 
      
 374 
     | 
    
         
            +
            signing_key:
         
     | 
| 
       331 
375 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       332 
376 
     | 
    
         
             
            summary: Fat Zebra payments gem - integrate your ruby app with Fat Zebra
         
     | 
| 
       333 
377 
     | 
    
         
             
            test_files: []
         
     | 
| 
         @@ -1,295 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            ---
         
     | 
| 
       2 
     | 
    
         
            -
            http_interactions:
         
     | 
| 
       3 
     | 
    
         
            -
            - request:
         
     | 
| 
       4 
     | 
    
         
            -
                method: post
         
     | 
| 
       5 
     | 
    
         
            -
                uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
         
     | 
| 
       6 
     | 
    
         
            -
                body:
         
     | 
| 
       7 
     | 
    
         
            -
                  encoding: UTF-8
         
     | 
| 
       8 
     | 
    
         
            -
                  string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"ddf1e8ae88a05082c79733e5bbf7fb14","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
         
     | 
| 
       9 
     | 
    
         
            -
                headers:
         
     | 
| 
       10 
     | 
    
         
            -
                  Accept-Encoding:
         
     | 
| 
       11 
     | 
    
         
            -
                  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
         
     | 
| 
       12 
     | 
    
         
            -
                  Accept:
         
     | 
| 
       13 
     | 
    
         
            -
                  - application/json
         
     | 
| 
       14 
     | 
    
         
            -
                  User-Agent:
         
     | 
| 
       15 
     | 
    
         
            -
                  - Ruby
         
     | 
| 
       16 
     | 
    
         
            -
                  Authorization:
         
     | 
| 
       17 
     | 
    
         
            -
                  - Basic VEVTVDpURVNU
         
     | 
| 
       18 
     | 
    
         
            -
                  Content-Type:
         
     | 
| 
       19 
     | 
    
         
            -
                  - application/json
         
     | 
| 
       20 
     | 
    
         
            -
              response:
         
     | 
| 
       21 
     | 
    
         
            -
                status:
         
     | 
| 
       22 
     | 
    
         
            -
                  code: 200
         
     | 
| 
       23 
     | 
    
         
            -
                  message: OK
         
     | 
| 
       24 
     | 
    
         
            -
                headers:
         
     | 
| 
       25 
     | 
    
         
            -
                  Date:
         
     | 
| 
       26 
     | 
    
         
            -
                  - Tue, 08 May 2018 11:08:12 GMT
         
     | 
| 
       27 
     | 
    
         
            -
                  Content-Type:
         
     | 
| 
       28 
     | 
    
         
            -
                  - application/json; charset=utf-8
         
     | 
| 
       29 
     | 
    
         
            -
                  Transfer-Encoding:
         
     | 
| 
       30 
     | 
    
         
            -
                  - chunked
         
     | 
| 
       31 
     | 
    
         
            -
                  Connection:
         
     | 
| 
       32 
     | 
    
         
            -
                  - keep-alive
         
     | 
| 
       33 
     | 
    
         
            -
                  Status:
         
     | 
| 
       34 
     | 
    
         
            -
                  - 200 OK
         
     | 
| 
       35 
     | 
    
         
            -
                  Cache-Control:
         
     | 
| 
       36 
     | 
    
         
            -
                  - no-store
         
     | 
| 
       37 
     | 
    
         
            -
                  X-Request-Version:
         
     | 
| 
       38 
     | 
    
         
            -
                  - 1.16.9-3186@7b619da
         
     | 
| 
       39 
     | 
    
         
            -
                  Pragma:
         
     | 
| 
       40 
     | 
    
         
            -
                  - no-cache
         
     | 
| 
       41 
     | 
    
         
            -
                  X-Xss-Protection:
         
     | 
| 
       42 
     | 
    
         
            -
                  - 1; mode=block
         
     | 
| 
       43 
     | 
    
         
            -
                  X-Request-Id:
         
     | 
| 
       44 
     | 
    
         
            -
                  - a7706efc04a5343a1a382818
         
     | 
| 
       45 
     | 
    
         
            -
                  X-Runtime:
         
     | 
| 
       46 
     | 
    
         
            -
                  - '0.528024'
         
     | 
| 
       47 
     | 
    
         
            -
                  X-Frame-Options:
         
     | 
| 
       48 
     | 
    
         
            -
                  - SAMEORIGIN
         
     | 
| 
       49 
     | 
    
         
            -
                  X-Content-Type-Options:
         
     | 
| 
       50 
     | 
    
         
            -
                  - nosniff
         
     | 
| 
       51 
     | 
    
         
            -
                  X-Backend:
         
     | 
| 
       52 
     | 
    
         
            -
                  - sbox-priv-gateway-a
         
     | 
| 
       53 
     | 
    
         
            -
                body:
         
     | 
| 
       54 
     | 
    
         
            -
                  encoding: UTF-8
         
     | 
| 
       55 
     | 
    
         
            -
                  string: '{"successful":true,"response":{"authorization":"628933","id":"071-P-BWVVJ4KA","card_number":"512345XXXXXX2346","card_holder":"Matthew
         
     | 
| 
       56 
     | 
    
         
            -
                    Savage","card_expiry":"2030-02-28","card_token":"fke85hn1","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":true,"message":"Approved","reference":"ddf1e8ae88a05082c79733e5bbf7fb14","currency":"AUD","transaction_id":"071-P-BWVVJ4KA","settlement_date":"2018-05-08","transaction_date":"2018-05-08T21:08:12.191+10:00","response_code":"00","captured":true,"captured_amount":10000,"rrn":"071PBWVVJ4KA","cvv_match":"M","metadata":{},"addendum_data":{}},"errors":[],"test":true}'
         
     | 
| 
       57 
     | 
    
         
            -
                http_version: 
         
     | 
| 
       58 
     | 
    
         
            -
              recorded_at: Tue, 08 May 2018 11:08:12 GMT
         
     | 
| 
       59 
     | 
    
         
            -
            - request:
         
     | 
| 
       60 
     | 
    
         
            -
                method: post
         
     | 
| 
       61 
     | 
    
         
            -
                uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
         
     | 
| 
       62 
     | 
    
         
            -
                body:
         
     | 
| 
       63 
     | 
    
         
            -
                  encoding: UTF-8
         
     | 
| 
       64 
     | 
    
         
            -
                  string: '{"amount":10000,"reference":"ddf1e8ae88a05082c79733e5bbf7fb14","transaction_id":"071-P-BWVVJ4KA","test":true}'
         
     | 
| 
       65 
     | 
    
         
            -
                headers:
         
     | 
| 
       66 
     | 
    
         
            -
                  Accept-Encoding:
         
     | 
| 
       67 
     | 
    
         
            -
                  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
         
     | 
| 
       68 
     | 
    
         
            -
                  Accept:
         
     | 
| 
       69 
     | 
    
         
            -
                  - application/json
         
     | 
| 
       70 
     | 
    
         
            -
                  User-Agent:
         
     | 
| 
       71 
     | 
    
         
            -
                  - Ruby
         
     | 
| 
       72 
     | 
    
         
            -
                  Authorization:
         
     | 
| 
       73 
     | 
    
         
            -
                  - Basic VEVTVDpURVNU
         
     | 
| 
       74 
     | 
    
         
            -
                  Content-Type:
         
     | 
| 
       75 
     | 
    
         
            -
                  - application/json
         
     | 
| 
       76 
     | 
    
         
            -
              response:
         
     | 
| 
       77 
     | 
    
         
            -
                status:
         
     | 
| 
       78 
     | 
    
         
            -
                  code: 200
         
     | 
| 
       79 
     | 
    
         
            -
                  message: OK
         
     | 
| 
       80 
     | 
    
         
            -
                headers:
         
     | 
| 
       81 
     | 
    
         
            -
                  Date:
         
     | 
| 
       82 
     | 
    
         
            -
                  - Tue, 08 May 2018 11:08:12 GMT
         
     | 
| 
       83 
     | 
    
         
            -
                  Content-Type:
         
     | 
| 
       84 
     | 
    
         
            -
                  - application/json; charset=utf-8
         
     | 
| 
       85 
     | 
    
         
            -
                  Transfer-Encoding:
         
     | 
| 
       86 
     | 
    
         
            -
                  - chunked
         
     | 
| 
       87 
     | 
    
         
            -
                  Connection:
         
     | 
| 
       88 
     | 
    
         
            -
                  - keep-alive
         
     | 
| 
       89 
     | 
    
         
            -
                  Status:
         
     | 
| 
       90 
     | 
    
         
            -
                  - 200 OK
         
     | 
| 
       91 
     | 
    
         
            -
                  Cache-Control:
         
     | 
| 
       92 
     | 
    
         
            -
                  - no-store
         
     | 
| 
       93 
     | 
    
         
            -
                  X-Request-Version:
         
     | 
| 
       94 
     | 
    
         
            -
                  - 1.16.9-3186@7b619da
         
     | 
| 
       95 
     | 
    
         
            -
                  Pragma:
         
     | 
| 
       96 
     | 
    
         
            -
                  - no-cache
         
     | 
| 
       97 
     | 
    
         
            -
                  X-Xss-Protection:
         
     | 
| 
       98 
     | 
    
         
            -
                  - 1; mode=block
         
     | 
| 
       99 
     | 
    
         
            -
                  X-Request-Id:
         
     | 
| 
       100 
     | 
    
         
            -
                  - 96cceca64280a3b4ab4ba99a
         
     | 
| 
       101 
     | 
    
         
            -
                  X-Runtime:
         
     | 
| 
       102 
     | 
    
         
            -
                  - '0.125631'
         
     | 
| 
       103 
     | 
    
         
            -
                  X-Frame-Options:
         
     | 
| 
       104 
     | 
    
         
            -
                  - SAMEORIGIN
         
     | 
| 
       105 
     | 
    
         
            -
                  X-Content-Type-Options:
         
     | 
| 
       106 
     | 
    
         
            -
                  - nosniff
         
     | 
| 
       107 
     | 
    
         
            -
                  X-Backend:
         
     | 
| 
       108 
     | 
    
         
            -
                  - sbox-priv-gateway-a
         
     | 
| 
       109 
     | 
    
         
            -
                body:
         
     | 
| 
       110 
     | 
    
         
            -
                  encoding: UTF-8
         
     | 
| 
       111 
     | 
    
         
            -
                  string: '{"successful":true,"response":{"authorization":"1525777692","id":"071-R-QG16ZJJN","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
         
     | 
| 
       112 
     | 
    
         
            -
                    Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-QG16ZJJN","reference":"ddf1e8ae88a05082c79733e5bbf7fb14","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:08:12.405+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071RQG16ZJJN"},"errors":[],"test":true}'
         
     | 
| 
       113 
     | 
    
         
            -
                http_version: 
         
     | 
| 
       114 
     | 
    
         
            -
              recorded_at: Tue, 08 May 2018 11:08:12 GMT
         
     | 
| 
       115 
     | 
    
         
            -
            - request:
         
     | 
| 
       116 
     | 
    
         
            -
                method: post
         
     | 
| 
       117 
     | 
    
         
            -
                uri: https://gateway.sandbox.fatzebra.com.au/v1.0/purchases
         
     | 
| 
       118 
     | 
    
         
            -
                body:
         
     | 
| 
       119 
     | 
    
         
            -
                  encoding: UTF-8
         
     | 
| 
       120 
     | 
    
         
            -
                  string: '{"amount":10000,"card_holder":"Matthew Savage","card_number":"5123456789012346","card_expiry":"02/2030","cvv":123,"reference":"ddf1e8ae88a05082c79733e5bbf7fb14","customer_ip":"1.2.3.4","currency":"AUD","test":true}'
         
     | 
| 
       121 
     | 
    
         
            -
                headers:
         
     | 
| 
       122 
     | 
    
         
            -
                  Accept-Encoding:
         
     | 
| 
       123 
     | 
    
         
            -
                  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
         
     | 
| 
       124 
     | 
    
         
            -
                  Accept:
         
     | 
| 
       125 
     | 
    
         
            -
                  - application/json
         
     | 
| 
       126 
     | 
    
         
            -
                  User-Agent:
         
     | 
| 
       127 
     | 
    
         
            -
                  - Ruby
         
     | 
| 
       128 
     | 
    
         
            -
                  Authorization:
         
     | 
| 
       129 
     | 
    
         
            -
                  - Basic VEVTVDpURVNU
         
     | 
| 
       130 
     | 
    
         
            -
                  Content-Type:
         
     | 
| 
       131 
     | 
    
         
            -
                  - application/json
         
     | 
| 
       132 
     | 
    
         
            -
              response:
         
     | 
| 
       133 
     | 
    
         
            -
                status:
         
     | 
| 
       134 
     | 
    
         
            -
                  code: 200
         
     | 
| 
       135 
     | 
    
         
            -
                  message: OK
         
     | 
| 
       136 
     | 
    
         
            -
                headers:
         
     | 
| 
       137 
     | 
    
         
            -
                  Date:
         
     | 
| 
       138 
     | 
    
         
            -
                  - Tue, 08 May 2018 11:08:13 GMT
         
     | 
| 
       139 
     | 
    
         
            -
                  Content-Type:
         
     | 
| 
       140 
     | 
    
         
            -
                  - application/json; charset=utf-8
         
     | 
| 
       141 
     | 
    
         
            -
                  Transfer-Encoding:
         
     | 
| 
       142 
     | 
    
         
            -
                  - chunked
         
     | 
| 
       143 
     | 
    
         
            -
                  Connection:
         
     | 
| 
       144 
     | 
    
         
            -
                  - keep-alive
         
     | 
| 
       145 
     | 
    
         
            -
                  Status:
         
     | 
| 
       146 
     | 
    
         
            -
                  - 200 OK
         
     | 
| 
       147 
     | 
    
         
            -
                  Cache-Control:
         
     | 
| 
       148 
     | 
    
         
            -
                  - no-store
         
     | 
| 
       149 
     | 
    
         
            -
                  X-Request-Version:
         
     | 
| 
       150 
     | 
    
         
            -
                  - 1.16.9-3186@7b619da
         
     | 
| 
       151 
     | 
    
         
            -
                  Pragma:
         
     | 
| 
       152 
     | 
    
         
            -
                  - no-cache
         
     | 
| 
       153 
     | 
    
         
            -
                  X-Xss-Protection:
         
     | 
| 
       154 
     | 
    
         
            -
                  - 1; mode=block
         
     | 
| 
       155 
     | 
    
         
            -
                  X-Request-Id:
         
     | 
| 
       156 
     | 
    
         
            -
                  - 98235284fa2d8e0d6c04644b
         
     | 
| 
       157 
     | 
    
         
            -
                  X-Runtime:
         
     | 
| 
       158 
     | 
    
         
            -
                  - '0.404966'
         
     | 
| 
       159 
     | 
    
         
            -
                  X-Frame-Options:
         
     | 
| 
       160 
     | 
    
         
            -
                  - SAMEORIGIN
         
     | 
| 
       161 
     | 
    
         
            -
                  X-Content-Type-Options:
         
     | 
| 
       162 
     | 
    
         
            -
                  - nosniff
         
     | 
| 
       163 
     | 
    
         
            -
                  X-Backend:
         
     | 
| 
       164 
     | 
    
         
            -
                  - sbox-priv-gateway-a
         
     | 
| 
       165 
     | 
    
         
            -
                body:
         
     | 
| 
       166 
     | 
    
         
            -
                  encoding: UTF-8
         
     | 
| 
       167 
     | 
    
         
            -
                  string: '{"successful":false,"response":{"authorization":null,"id":"071-P-UU8N1NGX","card_number":"512345XXXXXX2346","card_holder":"Matthew
         
     | 
| 
       168 
     | 
    
         
            -
                    Savage","card_expiry":"2030-02-28","card_token":"fke8xs3p","card_type":"MasterCard","card_category":"Credit","card_subcategory":"Standard","amount":10000,"decimal_amount":100.0,"successful":false,"message":null,"reference":"ddf1e8ae88a05082c79733e5bbf7fb14","currency":"AUD","transaction_id":"071-P-UU8N1NGX","settlement_date":null,"transaction_date":null,"response_code":"99","captured":false,"captured_amount":null,"rrn":null,"cvv_match":"U","metadata":{},"addendum_data":{}},"errors":["Reference
         
     | 
| 
       169 
     | 
    
         
            -
                    is already taken"],"test":true}'
         
     | 
| 
       170 
     | 
    
         
            -
                http_version: 
         
     | 
| 
       171 
     | 
    
         
            -
              recorded_at: Tue, 08 May 2018 11:08:13 GMT
         
     | 
| 
       172 
     | 
    
         
            -
            - request:
         
     | 
| 
       173 
     | 
    
         
            -
                method: post
         
     | 
| 
       174 
     | 
    
         
            -
                uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds
         
     | 
| 
       175 
     | 
    
         
            -
                body:
         
     | 
| 
       176 
     | 
    
         
            -
                  encoding: UTF-8
         
     | 
| 
       177 
     | 
    
         
            -
                  string: '{"amount":10000,"reference":"ddf1e8ae88a05082c79733e5bbf7fb14","transaction_id":"071-P-UU8N1NGX","test":true}'
         
     | 
| 
       178 
     | 
    
         
            -
                headers:
         
     | 
| 
       179 
     | 
    
         
            -
                  Accept-Encoding:
         
     | 
| 
       180 
     | 
    
         
            -
                  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
         
     | 
| 
       181 
     | 
    
         
            -
                  Accept:
         
     | 
| 
       182 
     | 
    
         
            -
                  - application/json
         
     | 
| 
       183 
     | 
    
         
            -
                  User-Agent:
         
     | 
| 
       184 
     | 
    
         
            -
                  - Ruby
         
     | 
| 
       185 
     | 
    
         
            -
                  Authorization:
         
     | 
| 
       186 
     | 
    
         
            -
                  - Basic VEVTVDpURVNU
         
     | 
| 
       187 
     | 
    
         
            -
                  Content-Type:
         
     | 
| 
       188 
     | 
    
         
            -
                  - application/json
         
     | 
| 
       189 
     | 
    
         
            -
              response:
         
     | 
| 
       190 
     | 
    
         
            -
                status:
         
     | 
| 
       191 
     | 
    
         
            -
                  code: 200
         
     | 
| 
       192 
     | 
    
         
            -
                  message: OK
         
     | 
| 
       193 
     | 
    
         
            -
                headers:
         
     | 
| 
       194 
     | 
    
         
            -
                  Date:
         
     | 
| 
       195 
     | 
    
         
            -
                  - Tue, 08 May 2018 11:08:13 GMT
         
     | 
| 
       196 
     | 
    
         
            -
                  Content-Type:
         
     | 
| 
       197 
     | 
    
         
            -
                  - application/json; charset=utf-8
         
     | 
| 
       198 
     | 
    
         
            -
                  Transfer-Encoding:
         
     | 
| 
       199 
     | 
    
         
            -
                  - chunked
         
     | 
| 
       200 
     | 
    
         
            -
                  Connection:
         
     | 
| 
       201 
     | 
    
         
            -
                  - keep-alive
         
     | 
| 
       202 
     | 
    
         
            -
                  Status:
         
     | 
| 
       203 
     | 
    
         
            -
                  - 200 OK
         
     | 
| 
       204 
     | 
    
         
            -
                  Cache-Control:
         
     | 
| 
       205 
     | 
    
         
            -
                  - no-store
         
     | 
| 
       206 
     | 
    
         
            -
                  X-Request-Version:
         
     | 
| 
       207 
     | 
    
         
            -
                  - 1.16.9-3186@7b619da
         
     | 
| 
       208 
     | 
    
         
            -
                  Pragma:
         
     | 
| 
       209 
     | 
    
         
            -
                  - no-cache
         
     | 
| 
       210 
     | 
    
         
            -
                  X-Xss-Protection:
         
     | 
| 
       211 
     | 
    
         
            -
                  - 1; mode=block
         
     | 
| 
       212 
     | 
    
         
            -
                  X-Request-Id:
         
     | 
| 
       213 
     | 
    
         
            -
                  - 685bdf8e5061cc6820efeac0
         
     | 
| 
       214 
     | 
    
         
            -
                  X-Runtime:
         
     | 
| 
       215 
     | 
    
         
            -
                  - '0.028726'
         
     | 
| 
       216 
     | 
    
         
            -
                  X-Frame-Options:
         
     | 
| 
       217 
     | 
    
         
            -
                  - SAMEORIGIN
         
     | 
| 
       218 
     | 
    
         
            -
                  X-Content-Type-Options:
         
     | 
| 
       219 
     | 
    
         
            -
                  - nosniff
         
     | 
| 
       220 
     | 
    
         
            -
                  X-Backend:
         
     | 
| 
       221 
     | 
    
         
            -
                  - sbox-priv-gateway-a
         
     | 
| 
       222 
     | 
    
         
            -
                body:
         
     | 
| 
       223 
     | 
    
         
            -
                  encoding: UTF-8
         
     | 
| 
       224 
     | 
    
         
            -
                  string: '{"successful":false,"response":{},"errors":["Original transaction could
         
     | 
| 
       225 
     | 
    
         
            -
                    not be found"],"test":true}'
         
     | 
| 
       226 
     | 
    
         
            -
                http_version: 
         
     | 
| 
       227 
     | 
    
         
            -
              recorded_at: Tue, 08 May 2018 11:08:13 GMT
         
     | 
| 
       228 
     | 
    
         
            -
            - request:
         
     | 
| 
       229 
     | 
    
         
            -
                method: get
         
     | 
| 
       230 
     | 
    
         
            -
                uri: https://gateway.sandbox.fatzebra.com.au/v1.0/refunds?limit=10&offets=0&test=true
         
     | 
| 
       231 
     | 
    
         
            -
                body:
         
     | 
| 
       232 
     | 
    
         
            -
                  encoding: US-ASCII
         
     | 
| 
       233 
     | 
    
         
            -
                  string: ''
         
     | 
| 
       234 
     | 
    
         
            -
                headers:
         
     | 
| 
       235 
     | 
    
         
            -
                  Accept-Encoding:
         
     | 
| 
       236 
     | 
    
         
            -
                  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
         
     | 
| 
       237 
     | 
    
         
            -
                  Accept:
         
     | 
| 
       238 
     | 
    
         
            -
                  - application/json
         
     | 
| 
       239 
     | 
    
         
            -
                  User-Agent:
         
     | 
| 
       240 
     | 
    
         
            -
                  - Ruby
         
     | 
| 
       241 
     | 
    
         
            -
                  Host:
         
     | 
| 
       242 
     | 
    
         
            -
                  - gateway.sandbox.fatzebra.com.au
         
     | 
| 
       243 
     | 
    
         
            -
                  Authorization:
         
     | 
| 
       244 
     | 
    
         
            -
                  - Basic VEVTVDpURVNU
         
     | 
| 
       245 
     | 
    
         
            -
                  Content-Type:
         
     | 
| 
       246 
     | 
    
         
            -
                  - application/json
         
     | 
| 
       247 
     | 
    
         
            -
              response:
         
     | 
| 
       248 
     | 
    
         
            -
                status:
         
     | 
| 
       249 
     | 
    
         
            -
                  code: 200
         
     | 
| 
       250 
     | 
    
         
            -
                  message: OK
         
     | 
| 
       251 
     | 
    
         
            -
                headers:
         
     | 
| 
       252 
     | 
    
         
            -
                  Date:
         
     | 
| 
       253 
     | 
    
         
            -
                  - Tue, 08 May 2018 11:08:13 GMT
         
     | 
| 
       254 
     | 
    
         
            -
                  Content-Type:
         
     | 
| 
       255 
     | 
    
         
            -
                  - application/json; charset=utf-8
         
     | 
| 
       256 
     | 
    
         
            -
                  Transfer-Encoding:
         
     | 
| 
       257 
     | 
    
         
            -
                  - chunked
         
     | 
| 
       258 
     | 
    
         
            -
                  Connection:
         
     | 
| 
       259 
     | 
    
         
            -
                  - keep-alive
         
     | 
| 
       260 
     | 
    
         
            -
                  Status:
         
     | 
| 
       261 
     | 
    
         
            -
                  - 200 OK
         
     | 
| 
       262 
     | 
    
         
            -
                  Cache-Control:
         
     | 
| 
       263 
     | 
    
         
            -
                  - no-store
         
     | 
| 
       264 
     | 
    
         
            -
                  X-Request-Version:
         
     | 
| 
       265 
     | 
    
         
            -
                  - 1.16.9-3186@7b619da
         
     | 
| 
       266 
     | 
    
         
            -
                  Pragma:
         
     | 
| 
       267 
     | 
    
         
            -
                  - no-cache
         
     | 
| 
       268 
     | 
    
         
            -
                  X-Xss-Protection:
         
     | 
| 
       269 
     | 
    
         
            -
                  - 1; mode=block
         
     | 
| 
       270 
     | 
    
         
            -
                  X-Request-Id:
         
     | 
| 
       271 
     | 
    
         
            -
                  - 687b1d7bfc4c42b600b4ba95
         
     | 
| 
       272 
     | 
    
         
            -
                  X-Runtime:
         
     | 
| 
       273 
     | 
    
         
            -
                  - '0.057844'
         
     | 
| 
       274 
     | 
    
         
            -
                  X-Frame-Options:
         
     | 
| 
       275 
     | 
    
         
            -
                  - SAMEORIGIN
         
     | 
| 
       276 
     | 
    
         
            -
                  X-Content-Type-Options:
         
     | 
| 
       277 
     | 
    
         
            -
                  - nosniff
         
     | 
| 
       278 
     | 
    
         
            -
                  X-Backend:
         
     | 
| 
       279 
     | 
    
         
            -
                  - sbox-priv-gateway-a
         
     | 
| 
       280 
     | 
    
         
            -
                body:
         
     | 
| 
       281 
     | 
    
         
            -
                  encoding: UTF-8
         
     | 
| 
       282 
     | 
    
         
            -
                  string: '{"successful":true,"response":[{"authorization":"1525777692","id":"071-R-QG16ZJJN","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
         
     | 
| 
       283 
     | 
    
         
            -
                    Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-QG16ZJJN","reference":"ddf1e8ae88a05082c79733e5bbf7fb14","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:08:12.405+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071RQG16ZJJN"},{"authorization":"1525777691","id":"071-R-4PXAP2MQ","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
         
     | 
| 
       284 
     | 
    
         
            -
                    Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-4PXAP2MQ","reference":"ec85dc4165d93a6e2fb475a158c58c33","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:08:11.479+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071R4PXAP2MQ"},{"authorization":"1525777690","id":"071-R-1HK62871","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
         
     | 
| 
       285 
     | 
    
         
            -
                    Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-1HK62871","reference":"3e0801ec06b1b2e87b73fe5c38dd16c6","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:08:10.447+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071R1HK62871"},{"authorization":"1525777689","id":"071-R-DZAJ0WA8","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
         
     | 
| 
       286 
     | 
    
         
            -
                    Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-DZAJ0WA8","reference":"13f7fcbfcc375959df2da4209aa09f79","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:08:09.331+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071RDZAJ0WA8"},{"authorization":"1525777688","id":"071-R-C9LWIOFS","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
         
     | 
| 
       287 
     | 
    
         
            -
                    Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-C9LWIOFS","reference":"32b2fb72529154d47f1a777ff21b0346","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:08:08.501+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071RC9LWIOFS"},{"authorization":"1525777687","id":"071-R-G8R0DFW7","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
         
     | 
| 
       288 
     | 
    
         
            -
                    Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-G8R0DFW7","reference":"90e3097078f2bf999df0f3ef47d3e36a","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:08:07.672+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071RG8R0DFW7"},{"authorization":"1525777686","id":"071-R-DQ1AEZZI","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
         
     | 
| 
       289 
     | 
    
         
            -
                    Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-DQ1AEZZI","reference":"5af6d2ada82e8698826fb6aeb9cba46e","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:08:06.685+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071RDQ1AEZZI"},{"authorization":"1525777685","id":"071-R-6H7L7SZE","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
         
     | 
| 
       290 
     | 
    
         
            -
                    Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-6H7L7SZE","reference":"34c068b48d3c551d937b96773b862249","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:08:05.756+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071R6H7L7SZE"},{"authorization":"1525777684","id":"071-R-8001963D","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
         
     | 
| 
       291 
     | 
    
         
            -
                    Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-8001963D","reference":"448f9dbc503dc14bd355522ec8727c4b","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:08:04.818+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071R8001963D"},{"authorization":"1525777683","id":"071-R-FUR9XQPL","amount":10000,"refunded":"Approved","message":"Approved","card_holder":"Matthew
         
     | 
| 
       292 
     | 
    
         
            -
                    Savage","card_number":"512345XXXXXX2346","card_expiry":"2030-02-28","card_type":"MasterCard","transaction_id":"071-R-FUR9XQPL","reference":"331251231068a31e79fcc952e4a1fa00","currency":"AUD","successful":true,"transaction_date":"2018-05-08T21:08:03.923+10:00","response_code":"00","settlement_date":"2018-05-09","metadata":{},"standalone":false,"rrn":"071RFUR9XQPL"}],"errors":[],"test":true,"records":10,"total_records":22004,"page":1,"total_pages":2201}'
         
     | 
| 
       293 
     | 
    
         
            -
                http_version: 
         
     | 
| 
       294 
     | 
    
         
            -
              recorded_at: Tue, 08 May 2018 11:08:13 GMT
         
     | 
| 
       295 
     | 
    
         
            -
            recorded_with: VCR 3.0.3
         
     |