-
Notifications
You must be signed in to change notification settings - Fork 11
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 #42 from recurly/v3-v2019-10-10
Upgrade API version v2019-10-10
- Loading branch information
Showing
16 changed files
with
2,033 additions
and
967 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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') | ||
|
||
/** | ||
* ShippingMethod | ||
* @typedef {Object} ShippingMethod | ||
* @prop {string} code - The internal name used identify the shipping method. | ||
* @prop {datetime} createdAt - Created at | ||
* @prop {datetime} deletedAt - Deleted at | ||
* @prop {string} id - Shipping Method ID | ||
* @prop {string} name - The name of the shipping method displayed to customers. | ||
* @prop {string} taxCode - Used by Avalara, Vertex, and Recurly’s built-in tax feature. The tax code values are specific to each tax system. If you are using Recurly’s built-in taxes the values are: - `FR` – Common Carrier FOB Destination - `FR022000` – Common Carrier FOB Origin - `FR020400` – Non Common Carrier FOB Destination - `FR020500` – Non Common Carrier FOB Origin - `FR010100` – Delivery by Company Vehicle Before Passage of Title - `FR010200` – Delivery by Company Vehicle After Passage of Title - `NT` – Non-Taxable | ||
* @prop {datetime} updatedAt - Last updated at | ||
*/ | ||
class ShippingMethod extends Resource { | ||
static getSchema () { | ||
return { | ||
code: String, | ||
createdAt: Date, | ||
deletedAt: Date, | ||
id: String, | ||
name: String, | ||
taxCode: String, | ||
updatedAt: Date | ||
} | ||
} | ||
} | ||
|
||
module.exports = ShippingMethod |
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') | ||
|
||
/** | ||
* ShippingMethodMini | ||
* @typedef {Object} ShippingMethodMini | ||
* @prop {string} code - The internal name used identify the shipping method. | ||
* @prop {string} id - Shipping Method ID | ||
* @prop {string} name - The name of the shipping method displayed to customers. | ||
*/ | ||
class ShippingMethodMini extends Resource { | ||
static getSchema () { | ||
return { | ||
code: String, | ||
id: String, | ||
name: String | ||
} | ||
} | ||
} | ||
|
||
module.exports = ShippingMethodMini |
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,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') | ||
|
||
/** | ||
* SubscriptionShipping | ||
* @typedef {Object} SubscriptionShipping | ||
* @prop {ShippingAddress} address | ||
* @prop {number} amount - Subscription's shipping cost | ||
* @prop {ShippingMethodMini} method | ||
*/ | ||
class SubscriptionShipping extends Resource { | ||
static getSchema () { | ||
return { | ||
address: 'ShippingAddress', | ||
amount: Number, | ||
method: 'ShippingMethodMini' | ||
} | ||
} | ||
} | ||
|
||
module.exports = SubscriptionShipping |
Oops, something went wrong.