-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #282 from recurly/v3-v2021-02-25-1667937927
Generated Latest Changes for v2021-02-25 (External Subscriptions feature)
- Loading branch information
Showing
13 changed files
with
908 additions
and
48 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* istanbul ignore file */ | ||
/** | ||
* This file is automatically created by Recurly's OpenAPI generation process | ||
* and thus any edits you make by hand will be lost. If you wish to make a | ||
* change to this file, please create a Github issue explaining the changes you | ||
* need and we will usher them to the appropriate places. | ||
*/ | ||
'use strict' | ||
|
||
const Resource = require('../Resource') | ||
|
||
/** | ||
* ExternalProduct | ||
* @typedef {Object} ExternalProduct | ||
* @prop {Date} createdAt - When the external product was created in Recurly. | ||
* @prop {Array.<ExternalProductReferenceMini>} externalProductReferences - List of external product references of the external product. | ||
* @prop {string} id - System-generated unique identifier for an external product ID, e.g. `e28zov4fw0v2`. | ||
* @prop {string} name - Name to identify the external product in Recurly. | ||
* @prop {string} object - Object type | ||
* @prop {PlanMini} plan - Just the important parts. | ||
* @prop {Date} updatedAt - When the external product was updated in Recurly. | ||
*/ | ||
class ExternalProduct extends Resource { | ||
static getSchema () { | ||
return { | ||
createdAt: Date, | ||
externalProductReferences: ['ExternalProductReferenceMini'], | ||
id: String, | ||
name: String, | ||
object: String, | ||
plan: 'PlanMini', | ||
updatedAt: Date | ||
} | ||
} | ||
} | ||
|
||
module.exports = ExternalProduct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* istanbul ignore file */ | ||
/** | ||
* This file is automatically created by Recurly's OpenAPI generation process | ||
* and thus any edits you make by hand will be lost. If you wish to make a | ||
* change to this file, please create a Github issue explaining the changes you | ||
* need and we will usher them to the appropriate places. | ||
*/ | ||
'use strict' | ||
|
||
const Resource = require('../Resource') | ||
|
||
/** | ||
* ExternalProductReferenceMini | ||
* @typedef {Object} ExternalProductReferenceMini | ||
* @prop {Date} createdAt - When the external product was created in Recurly. | ||
* @prop {string} externalConnectionType - Source connection platform. | ||
* @prop {string} id - System-generated unique identifier for an external product ID, e.g. `e28zov4fw0v2`. | ||
* @prop {string} object - object | ||
* @prop {string} referenceCode - A code which associates the external product to a corresponding object or resource in an external platform like the Apple App Store or Google Play Store. | ||
* @prop {Date} updatedAt - When the external product was updated in Recurly. | ||
*/ | ||
class ExternalProductReferenceMini extends Resource { | ||
static getSchema () { | ||
return { | ||
createdAt: Date, | ||
externalConnectionType: String, | ||
id: String, | ||
object: String, | ||
referenceCode: String, | ||
updatedAt: Date | ||
} | ||
} | ||
} | ||
|
||
module.exports = ExternalProductReferenceMini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* istanbul ignore file */ | ||
/** | ||
* This file is automatically created by Recurly's OpenAPI generation process | ||
* and thus any edits you make by hand will be lost. If you wish to make a | ||
* change to this file, please create a Github issue explaining the changes you | ||
* need and we will usher them to the appropriate places. | ||
*/ | ||
'use strict' | ||
|
||
const Resource = require('../Resource') | ||
|
||
/** | ||
* ExternalResourceMini | ||
* @typedef {Object} ExternalResourceMini | ||
* @prop {string} externalObjectReference - Identifier or URL reference where the resource is canonically available in the external platform. | ||
* @prop {string} id - System-generated unique identifier for an external resource ID, e.g. `e28zov4fw0v2`. | ||
* @prop {string} object - Object type | ||
*/ | ||
class ExternalResourceMini extends Resource { | ||
static getSchema () { | ||
return { | ||
externalObjectReference: String, | ||
id: String, | ||
object: String | ||
} | ||
} | ||
} | ||
|
||
module.exports = ExternalResourceMini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* istanbul ignore file */ | ||
/** | ||
* This file is automatically created by Recurly's OpenAPI generation process | ||
* and thus any edits you make by hand will be lost. If you wish to make a | ||
* change to this file, please create a Github issue explaining the changes you | ||
* need and we will usher them to the appropriate places. | ||
*/ | ||
'use strict' | ||
|
||
const Resource = require('../Resource') | ||
|
||
/** | ||
* ExternalSubscription | ||
* @typedef {Object} ExternalSubscription | ||
* @prop {AccountMini} account - Account mini details | ||
* @prop {Date} activatedAt - When the external subscription was activated in the external platform. | ||
* @prop {string} appIdentifier - Identifier of the app that generated the external subscription. | ||
* @prop {boolean} autoRenew - An indication of whether or not the external subscription will auto-renew at the expiration date. | ||
* @prop {Date} createdAt - When the external subscription was created in Recurly. | ||
* @prop {Date} expiresAt - When the external subscription expires in the external platform. | ||
* @prop {ExternalProductReferenceMini} externalProductReference - External Product Reference details | ||
* @prop {ExternalResourceMini} externalResource - External Resource mini details | ||
* @prop {string} id - System-generated unique identifier for an external subscription ID, e.g. `e28zov4fw0v2`. | ||
* @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 {Date} updatedAt - When the external subscription was updated in Recurly. | ||
*/ | ||
class ExternalSubscription extends Resource { | ||
static getSchema () { | ||
return { | ||
account: 'AccountMini', | ||
activatedAt: Date, | ||
appIdentifier: String, | ||
autoRenew: Boolean, | ||
createdAt: Date, | ||
expiresAt: Date, | ||
externalProductReference: 'ExternalProductReferenceMini', | ||
externalResource: 'ExternalResourceMini', | ||
id: String, | ||
lastPurchased: Date, | ||
object: String, | ||
quantity: Number, | ||
updatedAt: Date | ||
} | ||
} | ||
} | ||
|
||
module.exports = ExternalSubscription |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.