diff --git a/lib/recurly/plan.rb b/lib/recurly/plan.rb index 6162dad6d..b026b720a 100644 --- a/lib/recurly/plan.rb +++ b/lib/recurly/plan.rb @@ -43,6 +43,7 @@ class Plan < Resource setup_fee_revenue_schedule_type tax_exempt tax_code + vertex_transaction_type trial_requires_billing_info auto_renew allow_any_item_on_subscriptions diff --git a/spec/fixtures/plans/show-200.xml b/spec/fixtures/plans/show-200.xml index 2d9d942c6..71270622a 100644 --- a/spec/fixtures/plans/show-200.xml +++ b/spec/fixtures/plans/show-200.xml @@ -30,6 +30,7 @@ Content-Type: application/xml; charset=utf-8 4 evenly evenly + lease false 2016-04-13T21:59:18Z diff --git a/spec/recurly/plan_spec.rb b/spec/recurly/plan_spec.rb index 6caa935db..8b74fa123 100644 --- a/spec/recurly/plan_spec.rb +++ b/spec/recurly/plan_spec.rb @@ -135,6 +135,10 @@ plan.plan_code.must_equal('gold') end + it 'returns plan with vertex transaction type' do + plan.vertex_transaction_type.must_equal('lease') + end + it 'returns plan with the custom fields' do plan.custom_fields[0].name.must_equal('color') plan.custom_fields[0].value.must_equal('Red')