Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 28 additions & 8 deletions lib/recurly.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export declare class Address {
*/
country?: string | null;
/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
*/
geoCode?: string | null;

Expand Down Expand Up @@ -278,7 +278,7 @@ export declare class ShippingAddress {
*/
country?: string | null;
/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
*/
geoCode?: string | null;
/**
Expand Down Expand Up @@ -496,6 +496,14 @@ export declare class CustomField {
* Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.
*/
value?: string | null;
/**
* The type of record this custom field was automatically copied from. Only present when the field was copied from another record.
*/
sourceRecordType?: string | null;
/**
* The UUID of the record this custom field was automatically copied from. Only present when the field was copied from another record.
*/
sourceRecordId?: string | null;

}

Expand Down Expand Up @@ -945,7 +953,7 @@ export declare class AddressWithName {
*/
country?: string | null;
/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
*/
geoCode?: string | null;

Expand Down Expand Up @@ -1728,6 +1736,10 @@ export declare class Invoice {
* Unique ID to identify the business entity assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled.
*/
businessEntityId?: string | null;
/**
* A list of custom fields that were on the account at the time of invoice creation and were marked to be displayed on invoices. Read-only; cannot be set directly on the invoice.
*/
customFields?: CustomField[] | null;

}

Expand Down Expand Up @@ -1769,7 +1781,7 @@ export declare class InvoiceAddress {
*/
country?: string | null;
/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
*/
geoCode?: string | null;
/**
Expand Down Expand Up @@ -4354,7 +4366,7 @@ export interface ShippingAddressCreate {
*/
postalCode?: string | null;
/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
*/
geoCode?: string | null;
/**
Expand Down Expand Up @@ -4394,7 +4406,7 @@ export interface Address {
*/
country?: string | null;
/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
*/
geoCode?: string | null;

Expand Down Expand Up @@ -4583,6 +4595,14 @@ export interface CustomField {
* Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.
*/
value?: string | null;
/**
* The type of record this custom field was automatically copied from. Only present when the field was copied from another record.
*/
sourceRecordType?: string | null;
/**
* The UUID of the record this custom field was automatically copied from. Only present when the field was copied from another record.
*/
sourceRecordId?: string | null;

}

Expand Down Expand Up @@ -4943,7 +4963,7 @@ export interface ShippingAddressUpdate {
*/
country?: string | null;
/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
*/
geoCode?: string | null;

Expand Down Expand Up @@ -5621,7 +5641,7 @@ export interface InvoiceAddress {
*/
country?: string | null;
/**
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
*/
geoCode?: string | null;
/**
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/Address.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Resource = require('../Resource')
* @typedef {Object} Address
* @prop {string} city - City
* @prop {string} country - Country, 2-letter ISO 3166-1 alpha-2 code.
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
* @prop {string} phone - Phone number
* @prop {string} postalCode - Zip or postal code.
* @prop {string} region - State or province.
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/AddressWithName.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Resource = require('../Resource')
* @prop {string} city - City
* @prop {string} country - Country, 2-letter ISO 3166-1 alpha-2 code.
* @prop {string} firstName - First name
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
* @prop {string} lastName - Last name
* @prop {string} phone - Phone number
* @prop {string} postalCode - Zip or postal code.
Expand Down
4 changes: 4 additions & 0 deletions lib/recurly/resources/CustomField.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ const Resource = require('../Resource')
* CustomField
* @typedef {Object} CustomField
* @prop {string} name - Fields must be created in the UI before values can be assigned to them.
* @prop {string} sourceRecordId - The UUID of the record this custom field was automatically copied from. Only present when the field was copied from another record.
* @prop {string} sourceRecordType - The type of record this custom field was automatically copied from. Only present when the field was copied from another record.
* @prop {string} value - Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.
*/
class CustomField extends Resource {
static getSchema () {
return {
name: String,
sourceRecordId: String,
sourceRecordType: String,
value: String
}
}
Expand Down
2 changes: 2 additions & 0 deletions lib/recurly/resources/Invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const Resource = require('../Resource')
* @prop {Date} createdAt - Created at
* @prop {Array.<CreditPayment>} creditPayments - Credit payments
* @prop {string} currency - 3-letter ISO 4217 currency code.
* @prop {Array.<CustomField>} customFields - A list of custom fields that were on the account at the time of invoice creation and were marked to be displayed on invoices. Read-only; cannot be set directly on the invoice.
* @prop {string} customerNotes - This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes.
* @prop {number} discount - Total discounts applied to this invoice.
* @prop {Date} dueAt - Date invoice is due. This is the date the net terms are reached.
Expand Down Expand Up @@ -71,6 +72,7 @@ class Invoice extends Resource {
createdAt: Date,
creditPayments: ['CreditPayment'],
currency: String,
customFields: ['CustomField'],
customerNotes: String,
discount: Number,
dueAt: Date,
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/InvoiceAddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Resource = require('../Resource')
* @prop {string} company - Company
* @prop {string} country - Country, 2-letter ISO 3166-1 alpha-2 code.
* @prop {string} firstName - First name
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
* @prop {string} lastName - Last name
* @prop {string} nameOnAccount - Name on account
* @prop {string} phone - Phone number
Expand Down
2 changes: 1 addition & 1 deletion lib/recurly/resources/ShippingAddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Resource = require('../Resource')
* @prop {Date} createdAt - Created at
* @prop {string} email
* @prop {string} firstName
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
* @prop {string} id - Shipping Address ID
* @prop {string} lastName
* @prop {string} nickname
Expand Down
41 changes: 36 additions & 5 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9245,7 +9245,6 @@ paths:
description: Apply credit payment to the outstanding balance on an existing
charge invoice from an account’s available balance from existing credit invoices.
parameters:
- "$ref": "#/components/parameters/site_id"
- "$ref": "#/components/parameters/invoice_id"
responses:
'200':
Expand Down Expand Up @@ -18621,7 +18620,7 @@ components:
type: string
maxLength: 20
description: Code that represents a geographic entity (location or object).
Only returned for Sling Vertex Integration
Only returned when Vertex or Avalara for Communications is enabled.
AddressWithName:
allOf:
- "$ref": "#/components/schemas/Address"
Expand Down Expand Up @@ -20195,6 +20194,19 @@ components:
description: Any values that resemble a credit card number or security code
(CVV/CVC) will be rejected.
maxLength: 255
source_record_type:
type: string
title: Source record type
description: The type of record this custom field was automatically copied
from. Only present when the field was copied from another record.
readOnly: true
"$ref": "#/components/schemas/SourceRecordTypeEnum"
source_record_id:
type: string
title: Source record ID
description: The UUID of the record this custom field was automatically
copied from. Only present when the field was copied from another record.
readOnly: true
required:
- name
- value
Expand All @@ -20206,6 +20218,15 @@ components:
remove a field send the name with a null or empty value.
items:
"$ref": "#/components/schemas/CustomField"
InvoiceCustomFields:
type: array
title: Custom fields
description: A list of custom fields that were on the account at the time of
invoice creation and were marked to be displayed on invoices. Read-only; cannot
be set directly on the invoice.
readOnly: true
items:
"$ref": "#/components/schemas/CustomField"
CustomFieldDefinition:
type: object
title: Custom field definition
Expand Down Expand Up @@ -21084,6 +21105,8 @@ components:
title: Business Entity ID
description: Unique ID to identify the business entity assigned to the invoice.
Available when the `Multiple Business Entities` feature is enabled.
custom_fields:
"$ref": "#/components/schemas/InvoiceCustomFields"
InvoiceCreate:
type: object
properties:
Expand Down Expand Up @@ -22735,7 +22758,7 @@ components:
type: string
maxLength: 20
description: Code that represents a geographic entity (location or object).
Only returned for Sling Vertex Integration
Only returned when Vertex or Avalara for Communications is enabled.
created_at:
type: string
title: Created at
Expand Down Expand Up @@ -22823,7 +22846,7 @@ components:
type: string
maxLength: 20
description: Code that represents a geographic entity (location or object).
Only returned for Sling Vertex Integration
Only returned when Vertex or Avalara for Communications is enabled.
country:
type: string
maxLength: 50
Expand Down Expand Up @@ -23154,7 +23177,7 @@ components:
type: string
maxLength: 20
description: Code that represents a geographic entity (location or object).
Only returned for Sling Vertex Integration
Only returned when Vertex or Avalara for Communications is enabled.
Site:
type: object
properties:
Expand Down Expand Up @@ -28104,3 +28127,11 @@ components:
enum:
- customer
- merchant
SourceRecordTypeEnum:
type: string
description: The type of record a custom field was automatically copied from.
enum:
- account
- plan
- product
- subscription
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.

Loading