Skip to content

Commit

Permalink
Merge pull request #238 from recurly/v3-v2019-10-10-1643661869
Browse files Browse the repository at this point in the history
Generated Latest Changes for v2019-10-10
  • Loading branch information
douglasmiller authored Jan 31, 2022
2 parents 153768e + ab340ab commit aedc47f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 22 deletions.
17 changes: 9 additions & 8 deletions lib/recurly.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1330,15 +1330,15 @@ export declare class LineItem {
*/
type?: string | null;
/**
* Unique code to identify an item. Available when the Credit Invoices and Subscription Billing Terms features are enabled.
* Unique code to identify an item. Available when the Credit Invoices feature is enabled.
*/
itemCode?: string | null;
/**
* System-generated unique identifier for an item. Available when the Credit Invoices and Subscription Billing Terms features are enabled.
* System-generated unique identifier for an item. Available when the Credit Invoices feature is enabled.
*/
itemId?: string | null;
/**
* Optional Stock Keeping Unit assigned to an item. Available when the Credit Invoices and Subscription Billing Terms features are enabled.
* Optional Stock Keeping Unit assigned to an item. Available when the Credit Invoices feature is enabled.
*/
externalSku?: string | null;
/**
Expand Down Expand Up @@ -3142,7 +3142,7 @@ export interface BillingInfoCreate {
*/
sortCode?: string | null;
/**
* The payment method type for a non-credit card based billing info. The value of `bacs` is the only accepted value (Bacs only)
* The payment method type for a non-credit card based billing info. `bacs` and `becs` are the only accepted values.
*/
type?: string | null;
/**
Expand Down Expand Up @@ -3323,11 +3323,11 @@ export interface LineItemCreate {
*/
description?: string | null;
/**
* Unique code to identify an item. Avaliable when the Credit Invoices and Subscription Billing Terms features are enabled.
* Unique code to identify an item. Avaliable when the Credit Invoices feature is enabled.
*/
itemCode?: string | null;
/**
* System-generated unique identifier for an item. Available when the Credit Invoices and Subscription Billing Terms features are enabled.
* System-generated unique identifier for an item. Available when the Credit Invoices feature is enabled.
*/
itemId?: string | null;
/**
Expand Down Expand Up @@ -4014,11 +4014,11 @@ export interface PlanHostedPages {

export interface AddOnCreate {
/**
* Unique code to identify an item. Avaliable when the `Credit Invoices` and `Subscription Billing Terms` features are enabled. If `item_id` and `item_code` are both present, `item_id` will be used.
* Unique code to identify an item. Avaliable when the `Credit Invoices` feature is enabled. If `item_id` and `item_code` are both present, `item_id` will be used.
*/
itemCode?: string | null;
/**
* System-generated unique identifier for an item. Available when the `Credit Invoices` and `Subscription Billing Terms` features are enabled. If `item_id` and `item_code` are both present, `item_id` will be used.
* System-generated unique identifier for an item. Available when the `Credit Invoices` feature is enabled. If `item_id` and `item_code` are both present, `item_id` will be used.
*/
itemId?: string | null;
/**
Expand Down Expand Up @@ -8634,6 +8634,7 @@ declare namespace errors {
export class ServerError extends ResponseError { }
export class InternalServerError extends ServerError { }
export class ServiceNotAvailableError extends InternalServerError { }
export class TaxServiceError extends InternalServerError { }
export class BadGatewayError extends ServerError { }
export class ServiceUnavailableError extends ServerError { }
export class TimeoutError extends ServerError { }
Expand Down
2 changes: 2 additions & 0 deletions lib/recurly/api_errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class ResponseError extends ApiError { }
class ServerError extends ResponseError { }
class InternalServerError extends ServerError { }
class ServiceNotAvailableError extends InternalServerError { }
class TaxServiceError extends InternalServerError { }
class BadGatewayError extends ServerError { }
class ServiceUnavailableError extends ServerError { }
class TimeoutError extends ServerError { }
Expand Down Expand Up @@ -65,6 +66,7 @@ module.exports = {
ServerError: ServerError,
InternalServerError: InternalServerError,
ServiceNotAvailableError: ServiceNotAvailableError,
TaxServiceError: TaxServiceError,
BadGatewayError: BadGatewayError,
ServiceUnavailableError: ServiceUnavailableError,
TimeoutError: TimeoutError,
Expand Down
6 changes: 3 additions & 3 deletions lib/recurly/resources/LineItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ const Resource = require('../Resource')
* @prop {string} description - Description that appears on the invoice. For subscription related items this will be filled in automatically.
* @prop {number} discount - The discount applied to the line item.
* @prop {Date} endDate - If this date is provided, it indicates the end of a time range.
* @prop {string} externalSku - Optional Stock Keeping Unit assigned to an item. Available when the Credit Invoices and Subscription Billing Terms features are enabled.
* @prop {string} externalSku - Optional Stock Keeping Unit assigned to an item. Available when the Credit Invoices feature is enabled.
* @prop {string} id - Line item ID
* @prop {string} invoiceId - Once the line item has been invoiced this will be the invoice's ID.
* @prop {string} invoiceNumber - Once the line item has been invoiced this will be the invoice's number. If VAT taxation and the Country Invoice Sequencing feature are enabled, invoices will have country-specific invoice numbers for invoices billed to EU countries (ex: FR1001). Non-EU invoices will continue to use the site-level invoice number sequence.
* @prop {string} itemCode - Unique code to identify an item. Available when the Credit Invoices and Subscription Billing Terms features are enabled.
* @prop {string} itemId - System-generated unique identifier for an item. Available when the Credit Invoices and Subscription Billing Terms features are enabled.
* @prop {string} itemCode - Unique code to identify an item. Available when the Credit Invoices feature is enabled.
* @prop {string} itemId - System-generated unique identifier for an item. Available when the Credit Invoices feature is enabled.
* @prop {string} legacyCategory - Category to describe the role of a line item on a legacy invoice: - "charges" refers to charges being billed for on this invoice. - "credits" refers to refund or proration credits. This portion of the invoice can be considered a credit memo. - "applied_credits" refers to previous credits applied to this invoice. See their original_line_item_id to determine where the credit first originated. - "carryforwards" can be ignored. They exist to consume any remaining credit balance. A new credit with the same amount will be created and placed back on the account.
* @prop {string} object - Object type
* @prop {string} origin - A credit created from an original charge will have the value of the charge's origin.
Expand Down
24 changes: 13 additions & 11 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ tags:
description: |-
For merchants who sell the same things to many customers, documenting those offerings in a catalog allows for faster charge creation, easier management of offerings, and analytics about your offerings across all sales channels. Because your offerings can be physical, digital, or service-oriented, Recurly collectively calls these offerings "Items".

Recurly's item catalog requires the Credit Invoices and Subscription Billing Terms features to be enabled.
Recurly's item catalog requires the Credit Invoices feature to be enabled.
- name: plan
x-displayName: Plan
description: A plan tells Recurly how often and how much to charge your customers.
Expand Down Expand Up @@ -16006,16 +16006,16 @@ components:
type: string
title: Item Code
description: Unique code to identify an item. Avaliable when the `Credit
Invoices` and `Subscription Billing Terms` features are enabled. If `item_id`
and `item_code` are both present, `item_id` will be used.
Invoices` feature is enabled. If `item_id` and `item_code` are both present,
`item_id` will be used.
pattern: "/^[a-z0-9_+-]+$/"
maxLength: 50
item_id:
type: string
title: Item ID
description: System-generated unique identifier for an item. Available when
the `Credit Invoices` and `Subscription Billing Terms` features are enabled.
If `item_id` and `item_code` are both present, `item_id` will be used.
the `Credit Invoices` feature is enabled. If `item_id` and `item_code`
are both present, `item_id` will be used.
maxLength: 13
code:
type: string
Expand Down Expand Up @@ -16517,8 +16517,9 @@ components:
type: string
enum:
- bacs
- becs
description: The payment method type for a non-credit card based billing
info. The value of `bacs` is the only accepted value (Bacs only)
info. `bacs` and `becs` are the only accepted values.
account_type:
type: string
enum:
Expand Down Expand Up @@ -18233,20 +18234,20 @@ components:
type: string
title: Item Code
description: Unique code to identify an item. Available when the Credit
Invoices and Subscription Billing Terms features are enabled.
Invoices feature is enabled.
pattern: "/^[a-z0-9_+-]+$/"
maxLength: 50
item_id:
type: string
title: Item ID
description: System-generated unique identifier for an item. Available when
the Credit Invoices and Subscription Billing Terms features are enabled.
the Credit Invoices feature is enabled.
maxLength: 13
external_sku:
type: string
title: External SKU
description: Optional Stock Keeping Unit assigned to an item. Available
when the Credit Invoices and Subscription Billing Terms features are enabled.
when the Credit Invoices feature is enabled.
maxLength: 50
revenue_schedule_type:
type: string
Expand Down Expand Up @@ -18577,14 +18578,14 @@ components:
type: string
title: Item Code
description: Unique code to identify an item. Avaliable when the Credit
Invoices and Subscription Billing Terms features are enabled.
Invoices feature is enabled.
pattern: "/^[a-z0-9_+-]+$/"
maxLength: 50
item_id:
type: string
title: Item ID
description: System-generated unique identifier for an item. Available when
the Credit Invoices and Subscription Billing Terms features are enabled.
the Credit Invoices feature is enabled.
maxLength: 13
revenue_schedule_type:
type: string
Expand Down Expand Up @@ -21912,6 +21913,7 @@ components:
- validation
- missing_feature
- rate_limited
- tax_service_error
message:
type: string
title: Message
Expand Down

0 comments on commit aedc47f

Please sign in to comment.