diff --git a/lib/recurly.d.ts b/lib/recurly.d.ts index 54eced1a..123b3733 100644 --- a/lib/recurly.d.ts +++ b/lib/recurly.d.ts @@ -3076,6 +3076,10 @@ export declare class Plan { * `true` exempts tax on the plan, `false` applies tax on the plan. */ taxExempt?: boolean | null; + /** + * Used by Vertex for tax calculations. Possible values are `sale`, `rental`, `lease`. + */ + vertexTransactionType?: string | null; /** * Pricing */ @@ -5297,6 +5301,10 @@ export interface PlanCreate { * `true` exempts tax on the plan, `false` applies tax on the plan. */ taxExempt?: boolean | null; + /** + * Used by Vertex for tax calculations. Possible values are `sale`, `rental`, `lease`. + */ + vertexTransactionType?: string | null; /** * Pricing */ @@ -5673,6 +5681,10 @@ export interface PlanUpdate { * `true` exempts tax on the plan, `false` applies tax on the plan. */ taxExempt?: boolean | null; + /** + * Used by Vertex for tax calculations. Possible values are `sale`, `rental`, `lease`. + */ + vertexTransactionType?: string | null; /** * Optional when the pricing model is 'ramp'. */ diff --git a/lib/recurly/resources/Plan.js b/lib/recurly/resources/Plan.js index c3ed08e6..ca0706b9 100644 --- a/lib/recurly/resources/Plan.js +++ b/lib/recurly/resources/Plan.js @@ -43,6 +43,7 @@ const Resource = require('../Resource') * @prop {boolean} trialRequiresBillingInfo - Allow free trial subscriptions to be created without billing info. Should not be used if billing info is needed for initial invoice due to existing uninvoiced charges or setup fee. * @prop {string} trialUnit - Units for the plan's trial period. * @prop {Date} updatedAt - Last updated at + * @prop {string} vertexTransactionType - Used by Vertex for tax calculations. Possible values are `sale`, `rental`, `lease`. */ class Plan extends Resource { static getSchema () { @@ -77,7 +78,8 @@ class Plan extends Resource { trialLength: Number, trialRequiresBillingInfo: Boolean, trialUnit: String, - updatedAt: Date + updatedAt: Date, + vertexTransactionType: String } } } diff --git a/openapi/api.yaml b/openapi/api.yaml index b8cfb558..bcad8e35 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -21353,6 +21353,11 @@ components: title: Tax exempt? description: "`true` exempts tax on the plan, `false` applies tax on the plan." + vertex_transaction_type: + type: string + title: Vertex Transaction Type + description: Used by Vertex for tax calculations. Possible values are `sale`, + `rental`, `lease`. currencies: type: array title: Pricing @@ -21568,6 +21573,11 @@ components: title: Tax exempt? description: "`true` exempts tax on the plan, `false` applies tax on the plan." + vertex_transaction_type: + type: string + title: Vertex Transaction Type + description: Used by Vertex for tax calculations. Possible values are `sale`, + `rental`, `lease`. currencies: type: array title: Pricing @@ -21832,6 +21842,11 @@ components: title: Tax exempt? description: "`true` exempts tax on the plan, `false` applies tax on the plan." + vertex_transaction_type: + type: string + title: Vertex Transaction Type + description: Used by Vertex for tax calculations. Possible values are `sale`, + `rental`, `lease`. currencies: type: array title: Pricing diff --git a/package-lock.json b/package-lock.json index bff0651d..2f1e177b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "recurly", - "version": "4.55.0", + "version": "4.56.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "recurly", - "version": "4.55.0", + "version": "4.56.0", "license": "MIT", "devDependencies": { "@types/node": "^12.11.1",