diff --git a/Tests/Recurly/Plan_Test.php b/Tests/Recurly/Plan_Test.php
index 00f0ced1..bb13c594 100644
--- a/Tests/Recurly/Plan_Test.php
+++ b/Tests/Recurly/Plan_Test.php
@@ -89,9 +89,10 @@ public function testCreateXml() {
$plan->total_billing_cycles = 6;
$plan->auto_renew = false;
$plan->dunning_campaign_id = '1234abcd';
+ $plan->vertex_transaction_type = 'lease';
$this->assertEquals(
- "\nfalse1234abcdPlatinum & Gold Planplatinumfixed5006false15001200\n",
+ "\nfalse1234abcdPlatinum & Gold Planplatinumfixed500lease6false15001200\n",
$plan->xml()
);
}
@@ -145,9 +146,10 @@ public function testUpdateXml() {
$plan->trial_requires_billing_info = false;
$plan->tax_code = 'fake-tax-code';
$plan->dunning_campaign_id = '1234abcd';
+ $plan->vertex_transaction_type = 'rental';
$this->assertEquals(
- "\n1234abcdPlatinum Planplatinum500500fake-tax-codefalsefalse15001200\n",
+ "\n1234abcdPlatinum Planplatinum500500fake-tax-coderentalfalsefalse15001200\n",
$plan->xml()
);
}
diff --git a/lib/recurly/plan.php b/lib/recurly/plan.php
index 805e6cbc..225a1724 100644
--- a/lib/recurly/plan.php
+++ b/lib/recurly/plan.php
@@ -24,6 +24,7 @@
* @property string $cancel_url Deprecated URL to redirect to on canceled signup on the hosted payment pages.
* @property boolean $tax_exempt true exempts tax on the plan, false applies tax on the plan. If not defined, then defaults to the Plan and Site settings.
* @property string $tax_code Optional field for EU VAT merchants and Avalara AvaTax Pro merchants. If you are using Recurly's EU VAT feature, you can use values of unknown, physical, or digital. If you have your own AvaTax account configured, you can use Avalara tax codes to assign custom tax rules.
+ * @property string $vertex_transaction_type Optional field for Vertex merchants. The Vertex "transaction type" input contributes towards accurate tax calculation by identifying the transaction as a standard sale, a rental, or a lease. Either 'sale', 'rental', or 'lease'.
* @property string $add_on_code Add-on code. Max of 50 characters.
* @property string $add_on_type Whether the add-on is Fixed-Price (fixed), or Usage-Based (usage).
* @property integer $default_quantity Default quantity for the hosted pages.
@@ -150,6 +151,7 @@ protected function getWriteableAttributes() {
'setup_fee_revenue_schedule_type',
'success_url',
'tax_code',
+ 'vertex_transaction_type',
'tax_exempt',
'total_billing_cycles',
'trial_interval_length',