Skip to content

Commit

Permalink
adds_vertex_transaction_type_to_plans
Browse files Browse the repository at this point in the history
  • Loading branch information
8eth committed Oct 31, 2024
1 parent 4c3f944 commit c5f7596
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions recurly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,7 @@ class Plan(Resource):
'updated_at',
'tax_exempt',
'tax_code',
'vertex_transaction_type',
'unit_amount_in_cents',
'setup_fee_in_cents',
'total_billing_cycles',
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/plan/created.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Location: https://api.recurly.com/v2/plans/planmock
<trial_interval_unit>days</trial_interval_unit>
<total_billing_cycles type="integer">10</total_billing_cycles>
<created_at type="datetime">2011-10-03T22:23:12Z</created_at>
<vertex_transaction_type>sale</vertex_transaction_type>
<unit_amount_in_cents>
<USD type="integer">1000</USD>
</unit_amount_in_cents>
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/plan/show-taxed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Content-Type: application/xml; charset=utf-8
<trial_interval_unit>days</trial_interval_unit>
<created_at type="datetime">2011-10-03T22:23:12Z</created_at>
<tax_exempt type="boolean">true</tax_exempt>
<vertex_transaction_type>sale</vertex_transaction_type>
<unit_amount_in_cents>
</unit_amount_in_cents>
<setup_fee_in_cents>
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/plan/updated.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Content-Type: application/xml; charset=utf-8
<trial_interval_unit>days</trial_interval_unit>
<setup_fee_accounting_code>Setup Fee AC</setup_fee_accounting_code>
<created_at type="datetime">2011-10-03T22:23:12Z</created_at>
<vertex_transaction_type>sale</vertex_transaction_type>
<unit_amount_in_cents>
<USD type="integer">2000</USD>
</unit_amount_in_cents>
Expand Down
3 changes: 2 additions & 1 deletion tests/test_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -2094,6 +2094,7 @@ def test_plan(self):
plan.unit_amount_in_cents = Money(USD=2000)
plan.setup_fee_in_cents = Money(USD=200)
plan.setup_fee_accounting_code = 'Setup Fee AC'
plan.vertex_transaction_type = 'sale'
with self.mock_request('plan/updated.xml'):
plan.save()
finally:
Expand Down Expand Up @@ -2290,7 +2291,7 @@ def test_subscription_change_proration(self):

assert isinstance(manualsub.proration_settings, ProrationSettings)
ElementTree.tostring(account.to_element(), encoding='UTF-8')


def test_subscription_with_plan_ramp(self):
plan_code = 'plan%s' % self.test_id
Expand Down

0 comments on commit c5f7596

Please sign in to comment.