diff --git a/lib/recurly.d.ts b/lib/recurly.d.ts index 37f5c59b..3440fd72 100644 --- a/lib/recurly.d.ts +++ b/lib/recurly.d.ts @@ -231,6 +231,10 @@ export declare class Account { * The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value. */ customFields?: CustomField[] | null; + /** + * The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive. + */ + entityUseCode?: string | null; } @@ -3885,6 +3889,10 @@ export interface AccountCreate { * The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value. */ customFields?: CustomField[] | null; + /** + * The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive. + */ + entityUseCode?: string | null; } @@ -4230,6 +4238,10 @@ export interface AccountUpdate { * The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value. */ customFields?: CustomField[] | null; + /** + * The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive. + */ + entityUseCode?: string | null; } @@ -6164,6 +6176,10 @@ export interface AccountPurchase { * The custom fields will only be altered when they are included in a request. Sending an empty array will not remove any existing values. To remove a field send the name with a null or empty value. */ customFields?: CustomField[] | null; + /** + * The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive. + */ + entityUseCode?: string | null; } diff --git a/lib/recurly/resources/Account.js b/lib/recurly/resources/Account.js index fa14c75d..c411291b 100644 --- a/lib/recurly/resources/Account.js +++ b/lib/recurly/resources/Account.js @@ -23,6 +23,7 @@ const Resource = require('../Resource') * @prop {Date} deletedAt - If present, when the account was last marked inactive. * @prop {string} dunningCampaignId - Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign should be assigned to this account. For sites without multiple dunning campaigns enabled, the default dunning campaign will always be used. * @prop {string} email - The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique. + * @prop {string} entityUseCode - The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive. * @prop {string} exemptionCertificate - The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account. * @prop {Array.} externalAccounts - The external accounts belonging to this account * @prop {string} firstName @@ -62,6 +63,7 @@ class Account extends Resource { deletedAt: Date, dunningCampaignId: String, email: String, + entityUseCode: String, exemptionCertificate: String, externalAccounts: ['ExternalAccount'], firstName: String, diff --git a/openapi/api.yaml b/openapi/api.yaml index 73b3d734..08c63a4d 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -17474,6 +17474,11 @@ components: "$ref": "#/components/schemas/BillingInfoCreate" custom_fields: "$ref": "#/components/schemas/CustomFields" + entity_use_code: + type: string + description: The Avalara AvaTax value that can be passed to identify the + customer type for tax purposes. The range of values can be A - R (more + info at Avalara). Value is case-sensitive. AccountResponse: type: object properties: @@ -17575,6 +17580,11 @@ components: "$ref": "#/components/schemas/BillingInfo" custom_fields: "$ref": "#/components/schemas/CustomFields" + entity_use_code: + type: string + description: The Avalara AvaTax value that can be passed to identify the + customer type for tax purposes. The range of values can be A - R (more + info at Avalara). Value is case-sensitive. AccountNote: type: object required: diff --git a/package-lock.json b/package-lock.json index 9930eefe..cd2fc9fb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "recurly", - "version": "4.49.0", + "version": "4.50.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "recurly", - "version": "4.49.0", + "version": "4.50.0", "license": "MIT", "devDependencies": { "@types/node": "^12.11.1",