You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/recurly.d.ts
+32-12Lines changed: 32 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ export declare class Address {
73
73
*/
74
74
country?: string|null;
75
75
/**
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.
77
77
*/
78
78
geoCode?: string|null;
79
79
@@ -278,7 +278,7 @@ export declare class ShippingAddress {
278
278
*/
279
279
country?: string|null;
280
280
/**
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.
282
282
*/
283
283
geoCode?: string|null;
284
284
/**
@@ -496,6 +496,14 @@ export declare class CustomField {
496
496
* Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.
497
497
*/
498
498
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;
499
507
500
508
}
501
509
@@ -945,7 +953,7 @@ export declare class AddressWithName {
945
953
*/
946
954
country?: string|null;
947
955
/**
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.
949
957
*/
950
958
geoCode?: string|null;
951
959
@@ -1069,11 +1077,11 @@ export declare class Coupon {
1069
1077
*/
1070
1078
duration?: string|null;
1071
1079
/**
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.
1073
1081
*/
1074
1082
temporalAmount?: number|null;
1075
1083
/**
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`.
1077
1085
*/
1078
1086
temporalUnit?: string|null;
1079
1087
/**
@@ -1728,6 +1736,10 @@ export declare class Invoice {
1728
1736
* Unique ID to identify the business entity assigned to the invoice. Available when the `Multiple Business Entities` feature is enabled.
1729
1737
*/
1730
1738
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;
1731
1743
1732
1744
}
1733
1745
@@ -1769,7 +1781,7 @@ export declare class InvoiceAddress {
1769
1781
*/
1770
1782
country?: string|null;
1771
1783
/**
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.
* 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.
5027
5047
*/
5028
5048
temporalAmount?: number|null;
5029
5049
/**
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`.
* @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.
* @prop {string} country - Country, 2-letter ISO 3166-1 alpha-2 code.
17
17
* @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.
* @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.
36
36
* @prop {string} redemptionResource - Whether the discount is for all eligible charges on the account, or only a specific subscription.
37
37
* @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`.
40
40
* @prop {string} uniqueCodeTemplate - On a bulk coupon, the template from which unique coupon codes are generated.
41
41
* @prop {Object} uniqueCouponCode - Will be populated when the Coupon being returned is a `UniqueCouponCode`.
42
42
* @prop {number} uniqueCouponCodesCount - When this number reaches `max_redemptions` the coupon will no longer be redeemable.
* @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.
16
18
* @prop {string} value - Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.
* @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.
25
26
* @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.
26
27
* @prop {number} discount - Total discounts applied to this invoice.
27
28
* @prop {Date} dueAt - Date invoice is due. This is the date the net terms are reached.
@@ -71,6 +72,7 @@ class Invoice extends Resource {
* @prop {string} country - Country, 2-letter ISO 3166-1 alpha-2 code.
18
18
* @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.
* @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.
0 commit comments