Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vertex_transaction_type to plans #916

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading