From a089815c95f38abb3be4b5f7e5a8ffb506dd9dde Mon Sep 17 00:00:00 2001 From: Faiber Rodriguez Date: Thu, 31 Oct 2024 14:05:15 -0500 Subject: [PATCH] Add vertex_transaction_type to plans --- lib/recurly/plan.rb | 1 + spec/fixtures/plans/show-200.xml | 1 + spec/recurly/plan_spec.rb | 4 ++++ 3 files changed, 6 insertions(+) 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')