Sha256: 50e7c04b622ed0dbf6b5095da2b35a7b9fe41117a04b887d2383fed2f3c8e016
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
require 'spec_helper' module GoTransverseTractApi RSpec.describe BillingAccount::Invoice do before(:each) { http_auth } let(:eid) { '48406' } let(:response) { {a: 'b', c: 'd'} } context ".apply_payment" do it "applies a payment to the invoice" do data = { :billing_account => { eid: '123' }, :invoice => { eid: '456' }, :payment => { :amount => '27', :use_recurring_payment => 'false', :credit_card_payment => { :card_type => 'VISA', :card_holder_first_name => 'Mary', :card_holder_last_name => 'Smith', :card_identifier_number => '4111111111111111111', :card_verification_number => '123', :card_expiration => '12/2016' }, :billing_account => { eid: '123' } } } allow(subject).to receive(:apply_payment).with(eid, data).and_return(response) expect(subject.apply_payment(eid, data)).to eq(response) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gotransverse-tract-api-0.5.3 | spec/gotransverse-tract-api/billing_account/invoice_spec.rb |