Skip to content

Commit

Permalink
Generated Latest Changes for v2021-02-25
Browse files Browse the repository at this point in the history
  • Loading branch information
Recurly Integrations authored Aug 27, 2024
1 parent b5a5a2f commit 86c485f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
6 changes: 5 additions & 1 deletion lib/recurly.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,10 @@ export declare class ExternalSubscription {
* The id of the subscription in the external systems., I.e. Apple App Store or Google Play Store.
*/
externalId?: string | null;
/**
* Universally Unique Identifier created automatically.
*/
uuid?: string | null;
/**
* When a new billing event occurred on the external subscription in conjunction with a recent billing period, reactivation or upgrade/downgrade.
*/
Expand Down Expand Up @@ -8855,7 +8859,7 @@ endpoint to obtain only the newly generated `UniqueCouponCodes`.
* API docs: https://developers.recurly.com/api/v2021-02-25#operation/get_external_subscription
*
*
* @param {string} externalSubscriptionId - External subscription ID or external_id. For ID no prefix is used e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g. `external-id-123456`.
* @param {string} externalSubscriptionId - External subscription ID, external_id or uuid. For ID no prefix is used e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g. `external-id-123456` and for uuid use prefix `uuid-` e.g. `uuid-7293239bae62777d8c1ae044a9843633`.
* @return {Promise<ExternalSubscription>} Settings for an external subscription.
*/
getExternalSubscription(externalSubscriptionId: string): Promise<ExternalSubscription>;
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ endpoint to obtain only the newly generated `UniqueCouponCodes`.
* API docs: {@link https://developers.recurly.com/api/v2021-02-25#operation/get_external_subscription}
*
*
* @param {string} externalSubscriptionId - External subscription ID or external_id. For ID no prefix is used e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g. `external-id-123456`.
* @param {string} externalSubscriptionId - External subscription ID, external_id or uuid. For ID no prefix is used e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g. `external-id-123456` and for uuid use prefix `uuid-` e.g. `uuid-7293239bae62777d8c1ae044a9843633`.
* @return {Promise<ExternalSubscription>} Settings for an external subscription.
*/
async getExternalSubscription (externalSubscriptionId, options = {}) {
Expand Down
4 changes: 3 additions & 1 deletion lib/recurly/resources/ExternalSubscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const Resource = require('../Resource')
* @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.
* @prop {Date} updatedAt - When the external subscription was updated in Recurly.
* @prop {string} uuid - Universally Unique Identifier created automatically.
*/
class ExternalSubscription extends Resource {
static getSchema () {
Expand All @@ -57,7 +58,8 @@ class ExternalSubscription extends Resource {
test: Boolean,
trialEndsAt: Date,
trialStartedAt: Date,
updatedAt: Date
updatedAt: Date,
uuid: String
}
}
}
Expand Down
9 changes: 7 additions & 2 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16743,8 +16743,9 @@ components:
external_subscription_id_fetch:
name: external_subscription_id
in: path
description: External subscription ID or external_id. For ID no prefix is used
e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g. `external-id-123456`.
description: External subscription ID, external_id or uuid. For ID no prefix
is used e.g. `e28zov4fw0v2`. For external_id use prefix `external-id-`, e.g.
`external-id-123456` and for uuid use prefix `uuid-` e.g. `uuid-7293239bae62777d8c1ae044a9843633`.
required: true
schema:
type: string
Expand Down Expand Up @@ -25100,6 +25101,10 @@ components:
title: External Id
description: The id of the subscription in the external systems., I.e. Apple
App Store or Google Play Store.
uuid:
type: string
title: Uuid
description: Universally Unique Identifier created automatically.
last_purchased:
type: string
format: date-time
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 86c485f

Please sign in to comment.