diff --git a/lib/recurly/invoice.rb b/lib/recurly/invoice.rb index 8a4fe7698..ae48b145b 100644 --- a/lib/recurly/invoice.rb +++ b/lib/recurly/invoice.rb @@ -117,6 +117,7 @@ def invoice_number_with_prefix billing_info_uuid dunning_campaign_id refundable_total_in_cents + used_tax_service ) alias to_param invoice_number_with_prefix diff --git a/spec/fixtures/invoices/show-200-taxed.xml b/spec/fixtures/invoices/show-200-taxed.xml index 586827c49..ec6036c1f 100644 --- a/spec/fixtures/invoices/show-200-taxed.xml +++ b/spec/fixtures/invoices/show-200-taxed.xml @@ -60,6 +60,7 @@ Content-Type: application/xml; charset=utf-8 20 + true diff --git a/spec/recurly/invoice_spec.rb b/spec/recurly/invoice_spec.rb index 578c015af..6724d44a6 100644 --- a/spec/recurly/invoice_spec.rb +++ b/spec/recurly/invoice_spec.rb @@ -64,6 +64,10 @@ invoice.tax_type.must_equal 'usst' end + it 'used_tax_service is true' do + invoice.used_tax_service.must_equal true + end + it 'has a vertex fields' do invoice.refund_tax_date.must_equal DateTime.new(2017, 04, 30) invoice.refund_geo_code.must_equal 'ABC123'