Skip to content

Commit

Permalink
Merge pull request #916 from recurly/AddVertexTransactionTypeToPlans
Browse files Browse the repository at this point in the history
Add vertex_transaction_type to plans
  • Loading branch information
epagerecurly authored Nov 1, 2024
2 parents c0fb501 + a089815 commit 739f277
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/recurly/plan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions spec/fixtures/plans/show-200.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Content-Type: application/xml; charset=utf-8
<setup_fee_performance_obligation_id>4</setup_fee_performance_obligation_id>
<revenue_schedule_type>evenly</revenue_schedule_type>
<setup_fee_revenue_schedule_type>evenly</setup_fee_revenue_schedule_type>
<vertex_transaction_type>lease</vertex_transaction_type>
<trial_requires_billing_info type="boolean">false</trial_requires_billing_info>
<created_at type="datetime">2016-04-13T21:59:18Z</created_at>
<unit_amount_in_cents>
Expand Down
4 changes: 4 additions & 0 deletions spec/recurly/plan_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 739f277

Please sign in to comment.