Skip to content

Commit

Permalink
Add tax_code to plan, add on and adjustment
Browse files Browse the repository at this point in the history
Used in tax calculations for VAT 2015 and
Avalara integration taxes.
  • Loading branch information
judith committed Nov 20, 2014
1 parent fedc403 commit d645377
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/recurly/addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static function init()
{
Recurly_Addon::$_writeableAttributes = array(
'add_on_code','name','display_quantity','default_quantity',
'unit_amount_in_cents','accounting_code'
'unit_amount_in_cents','accounting_code','tax_code'
);
Recurly_Addon::$_nestedAttributes = array();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/adjustment.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public static function init()
{
Recurly_Adjustment::$_writeableAttributes = array(
'currency','unit_amount_in_cents','quantity','description',
'accounting_code','tax_exempt'
'accounting_code','tax_exempt','tax_code'
);
Recurly_Adjustment::$_nestedAttributes = array(
'invoice'
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static function init()
'bypass_hosted_confirmation','unit_name','payment_page_tos_link',
'plan_interval_length','plan_interval_unit','trial_interval_length',
'trial_interval_unit','unit_amount_in_cents','setup_fee_in_cents',
'total_billing_cycles','accounting_code','tax_exempt'
'total_billing_cycles','accounting_code','tax_exempt','tax_code'
);
Recurly_Plan::$_nestedAttributes = array(
'add_ons'
Expand Down

0 comments on commit d645377

Please sign in to comment.