diff --git a/lib/recurly.d.ts b/lib/recurly.d.ts index 3440fd72..5f29c2bc 100644 --- a/lib/recurly.d.ts +++ b/lib/recurly.d.ts @@ -1321,7 +1321,7 @@ export declare class ExternalSubscription { */ quantity?: number | null; /** - * External subscriptions can be active, canceled, expired, or past_due. + * External subscriptions can be active, canceled, expired, past_due, voided, revoked, or paused. */ state?: string | null; /** @@ -4807,6 +4807,10 @@ export interface InvoiceUpdate { */ netTerms?: number | null; address?: InvoiceAddress | null; + /** + * An alphanumeric code shown per gateway on your site's payment gateways page. Set this code to ensure that a given invoice targets a given gateway. + */ + gatewayCode?: string | null; } diff --git a/lib/recurly/resources/ExternalSubscription.js b/lib/recurly/resources/ExternalSubscription.js index f70944ba..3f180190 100644 --- a/lib/recurly/resources/ExternalSubscription.js +++ b/lib/recurly/resources/ExternalSubscription.js @@ -26,7 +26,7 @@ const Resource = require('../Resource') * @prop {Date} lastPurchased - When a new billing event occurred on the external subscription in conjunction with a recent billing period, reactivation or upgrade/downgrade. * @prop {string} object - Object type * @prop {number} quantity - An indication of the quantity of a subscribed item's quantity. - * @prop {string} state - External subscriptions can be active, canceled, expired, or past_due. + * @prop {string} state - External subscriptions can be active, canceled, expired, past_due, voided, revoked, or paused. * @prop {boolean} test - An indication of whether or not the external subscription was purchased in a sandbox environment. * @prop {Date} trialEndsAt - When the external subscription trial period ends in the external platform. * @prop {Date} trialStartedAt - When the external subscription trial period started in the external platform. diff --git a/openapi/api.yaml b/openapi/api.yaml index 08c63a4d..29d475d6 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -19877,6 +19877,11 @@ components: maximum: 999 address: "$ref": "#/components/schemas/InvoiceAddress" + gateway_code: + type: string + description: An alphanumeric code shown per gateway on your site's payment + gateways page. Set this code to ensure that a given invoice targets a + given gateway. InvoiceMini: type: object title: Invoice mini details @@ -24309,8 +24314,8 @@ components: minimum: 0 state: type: string - description: External subscriptions can be active, canceled, expired, or - past_due. + description: External subscriptions can be active, canceled, expired, past_due, + voided, revoked, or paused. default: active activated_at: type: string @@ -25626,6 +25631,7 @@ components: - wire_transfer - braintree_v_zero - boleto + - cash_app CardTypeEnum: type: string enum: diff --git a/package-lock.json b/package-lock.json index cd2fc9fb..53b9265e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "recurly", - "version": "4.50.0", + "version": "4.51.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "recurly", - "version": "4.50.0", + "version": "4.51.0", "license": "MIT", "devDependencies": { "@types/node": "^12.11.1",