Skip to content

Commit dcfd65f

Browse files
Merge pull request #372 from recurly/v3-v2021-02-25-26175519407
Generated Latest Changes for v2021-02-25
2 parents c044224 + 63b7a1f commit dcfd65f

10 files changed

Lines changed: 108 additions & 42 deletions

File tree

lib/recurly.d.ts

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export declare class Address {
7373
*/
7474
country?: string | null;
7575
/**
76-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
76+
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
7777
*/
7878
geoCode?: string | null;
7979

@@ -278,7 +278,7 @@ export declare class ShippingAddress {
278278
*/
279279
country?: string | null;
280280
/**
281-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
281+
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
282282
*/
283283
geoCode?: string | null;
284284
/**
@@ -496,6 +496,14 @@ export declare class CustomField {
496496
* Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.
497497
*/
498498
value?: string | null;
499+
/**
500+
* The type of record this custom field was automatically copied from. Only present when the field was copied from another record.
501+
*/
502+
sourceRecordType?: string | null;
503+
/**
504+
* The UUID of the record this custom field was automatically copied from. Only present when the field was copied from another record.
505+
*/
506+
sourceRecordId?: string | null;
499507

500508
}
501509

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

@@ -1069,11 +1077,11 @@ export declare class Coupon {
10691077
*/
10701078
duration?: string | null;
10711079
/**
1072-
* If `duration` is "temporal" than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for.
1080+
* If `duration` is "temporal" than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for. When `temporal_unit` is "billing_period", this is the number of complete billing cycles.
10731081
*/
10741082
temporalAmount?: number | null;
10751083
/**
1076-
* If `duration` is "temporal" than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for.
1084+
* If `duration` is "temporal" than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for. Use "billing_period" to apply the coupon for a fixed number of billing cycles. Requires `redemption_resource=subscription`.
10771085
*/
10781086
temporalUnit?: string | null;
10791087
/**
@@ -1728,6 +1736,10 @@ export declare class Invoice {
17281736
* Unique ID to identify the business entity assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled.
17291737
*/
17301738
businessEntityId?: string | null;
1739+
/**
1740+
* 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.
1741+
*/
1742+
customFields?: CustomField[] | null;
17311743

17321744
}
17331745

@@ -1769,7 +1781,7 @@ export declare class InvoiceAddress {
17691781
*/
17701782
country?: string | null;
17711783
/**
1772-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
1784+
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
17731785
*/
17741786
geoCode?: string | null;
17751787
/**
@@ -4354,7 +4366,7 @@ export interface ShippingAddressCreate {
43544366
*/
43554367
postalCode?: string | null;
43564368
/**
4357-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
4369+
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
43584370
*/
43594371
geoCode?: string | null;
43604372
/**
@@ -4394,7 +4406,7 @@ export interface Address {
43944406
*/
43954407
country?: string | null;
43964408
/**
4397-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
4409+
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
43984410
*/
43994411
geoCode?: string | null;
44004412

@@ -4583,6 +4595,14 @@ export interface CustomField {
45834595
* Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.
45844596
*/
45854597
value?: string | null;
4598+
/**
4599+
* The type of record this custom field was automatically copied from. Only present when the field was copied from another record.
4600+
*/
4601+
sourceRecordType?: string | null;
4602+
/**
4603+
* The UUID of the record this custom field was automatically copied from. Only present when the field was copied from another record.
4604+
*/
4605+
sourceRecordId?: string | null;
45864606

45874607
}
45884608

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

@@ -5023,11 +5043,11 @@ export interface CouponCreate {
50235043
*/
50245044
duration?: string | null;
50255045
/**
5026-
* If `duration` is "temporal" than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for.
5046+
* If `duration` is "temporal" than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for. When `temporal_unit` is "billing_period", this is the number of complete billing cycles.
50275047
*/
50285048
temporalAmount?: number | null;
50295049
/**
5030-
* If `duration` is "temporal" than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for.
5050+
* If `duration` is "temporal" than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for. Use "billing_period" to apply the coupon for a fixed number of billing cycles. Requires `redemption_resource=subscription`.
50315051
*/
50325052
temporalUnit?: string | null;
50335053
/**
@@ -5621,7 +5641,7 @@ export interface InvoiceAddress {
56215641
*/
56225642
country?: string | null;
56235643
/**
5624-
* Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
5644+
* Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
56255645
*/
56265646
geoCode?: string | null;
56275647
/**

lib/recurly/resources/Address.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const Resource = require('../Resource')
1414
* @typedef {Object} Address
1515
* @prop {string} city - City
1616
* @prop {string} country - Country, 2-letter ISO 3166-1 alpha-2 code.
17-
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
17+
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
1818
* @prop {string} phone - Phone number
1919
* @prop {string} postalCode - Zip or postal code.
2020
* @prop {string} region - State or province.

lib/recurly/resources/AddressWithName.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Resource = require('../Resource')
1515
* @prop {string} city - City
1616
* @prop {string} country - Country, 2-letter ISO 3166-1 alpha-2 code.
1717
* @prop {string} firstName - First name
18-
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
18+
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
1919
* @prop {string} lastName - Last name
2020
* @prop {string} phone - Phone number
2121
* @prop {string} postalCode - Zip or postal code.

lib/recurly/resources/Coupon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const Resource = require('../Resource')
3535
* @prop {Date} redeemBy - The date and time the coupon will expire and can no longer be redeemed. Time is always 11:59:59, the end-of-day Pacific time.
3636
* @prop {string} redemptionResource - Whether the discount is for all eligible charges on the account, or only a specific subscription.
3737
* @prop {string} state - Indicates if the coupon is redeemable, and if it is not, why.
38-
* @prop {number} temporalAmount - If `duration` is "temporal" than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for.
39-
* @prop {string} temporalUnit - If `duration` is "temporal" than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for.
38+
* @prop {number} temporalAmount - If `duration` is "temporal" than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for. When `temporal_unit` is "billing_period", this is the number of complete billing cycles.
39+
* @prop {string} temporalUnit - If `duration` is "temporal" than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for. Use "billing_period" to apply the coupon for a fixed number of billing cycles. Requires `redemption_resource=subscription`.
4040
* @prop {string} uniqueCodeTemplate - On a bulk coupon, the template from which unique coupon codes are generated.
4141
* @prop {Object} uniqueCouponCode - Will be populated when the Coupon being returned is a `UniqueCouponCode`.
4242
* @prop {number} uniqueCouponCodesCount - When this number reaches `max_redemptions` the coupon will no longer be redeemable.

lib/recurly/resources/CustomField.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@ const Resource = require('../Resource')
1313
* CustomField
1414
* @typedef {Object} CustomField
1515
* @prop {string} name - Fields must be created in the UI before values can be assigned to them.
16+
* @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.
17+
* @prop {string} sourceRecordType - The type of record this custom field was automatically copied from. Only present when the field was copied from another record.
1618
* @prop {string} value - Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.
1719
*/
1820
class CustomField extends Resource {
1921
static getSchema () {
2022
return {
2123
name: String,
24+
sourceRecordId: String,
25+
sourceRecordType: String,
2226
value: String
2327
}
2428
}

lib/recurly/resources/Invoice.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const Resource = require('../Resource')
2222
* @prop {Date} createdAt - Created at
2323
* @prop {Array.<CreditPayment>} creditPayments - Credit payments
2424
* @prop {string} currency - 3-letter ISO 4217 currency code.
25+
* @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.
2526
* @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.
2627
* @prop {number} discount - Total discounts applied to this invoice.
2728
* @prop {Date} dueAt - Date invoice is due. This is the date the net terms are reached.
@@ -71,6 +72,7 @@ class Invoice extends Resource {
7172
createdAt: Date,
7273
creditPayments: ['CreditPayment'],
7374
currency: String,
75+
customFields: ['CustomField'],
7476
customerNotes: String,
7577
discount: Number,
7678
dueAt: Date,

lib/recurly/resources/InvoiceAddress.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Resource = require('../Resource')
1616
* @prop {string} company - Company
1717
* @prop {string} country - Country, 2-letter ISO 3166-1 alpha-2 code.
1818
* @prop {string} firstName - First name
19-
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
19+
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
2020
* @prop {string} lastName - Last name
2121
* @prop {string} nameOnAccount - Name on account
2222
* @prop {string} phone - Phone number

lib/recurly/resources/ShippingAddress.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const Resource = require('../Resource')
1919
* @prop {Date} createdAt - Created at
2020
* @prop {string} email
2121
* @prop {string} firstName
22-
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
22+
* @prop {string} geoCode - Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
2323
* @prop {string} id - Shipping Address ID
2424
* @prop {string} lastName
2525
* @prop {string} nickname

0 commit comments

Comments
 (0)