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
+66-6Lines changed: 66 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -983,6 +983,10 @@ export declare class CouponRedemption {
983
983
* Will always be `coupon`.
984
984
*/
985
985
object?: string|null;
986
+
/**
987
+
* The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.
988
+
*/
989
+
uuid?: string|null;
986
990
/**
987
991
* The Account on which the coupon was applied.
988
992
*/
@@ -2110,6 +2114,10 @@ export declare class InvoiceCollection {
2110
2114
* Credit invoices
2111
2115
*/
2112
2116
creditInvoices?: Invoice[]|null;
2117
+
/**
2118
+
* Verification transactions (used for free trial payment method validation)
2119
+
*/
2120
+
verificationTransactions?: Transaction[]|null;
2113
2121
2114
2122
}
2115
2123
@@ -2295,7 +2303,7 @@ export declare class Subscription {
2295
2303
*/
2296
2304
netTermsType?: string|null;
2297
2305
/**
2298
-
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior.
2306
+
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior. When mode is `all`, the optional `allowed_origins` array can restrict which credit invoice origins are applied.
@@ -2765,6 +2773,10 @@ export declare class CreditApplicationPolicy {
2765
2773
* Determines which credit invoices are applied to invoices: - `all`: All available credit invoices are applied (default) - `none`: No credit invoices are applied automatically
2766
2774
*/
2767
2775
mode?: string|null;
2776
+
/**
2777
+
* Optional array of credit invoice origin types to allow when mode is `all`. If not specified when mode is `all`, credits from all origins are applied. Only valid when mode is `all`.
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior.
4752
+
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior. When mode is `all`, the optional `allowed_origins` array can restrict which credit invoice origins are applied.
* Determines which credit invoices are applied to invoices: - `all`: All available credit invoices are applied (default) - `none`: No credit invoices are applied automatically
4765
4777
*/
4766
4778
mode?: string|null;
4779
+
/**
4780
+
* Optional array of credit invoice origin types to allow when mode is `all`. If not specified when mode is `all`, credits from all origins are applied. Only valid when mode is `all`.
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior.
6557
+
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior. When mode is `all`, the optional `allowed_origins` array can restrict which credit invoice origins are applied.
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior.
6754
+
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior. When mode is `all`, the optional `allowed_origins` array can restrict which credit invoice origins are applied.
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior.
7038
+
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior. When mode is `all`, the optional `allowed_origins` array can restrict which credit invoice origins are applied.
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior.
7282
+
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior. When mode is `all`, the optional `allowed_origins` array can restrict which credit invoice origins are applied.
* API docs: https://developers.recurly.com/api/v2021-02-25#operation/get_coupon_redemption
8085
+
*
8086
+
*
8087
+
* @param {string} accountId - Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
8088
+
* @param {string} couponRedemptionId - Coupon Redemption ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
8089
+
* @return {Promise<CouponRedemption>} A coupon redemption.
* API docs: https://developers.recurly.com/api/v2021-02-25#operation/remove_coupon_redemption_by_id
8096
+
*
8097
+
*
8098
+
* @param {string} accountId - Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
8099
+
* @param {string} couponRedemptionId - Coupon Redemption ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
* API docs: https://developers.recurly.com/api/v2021-02-25#operation/get_subscription_coupon_redemption
11288
+
*
11289
+
*
11290
+
* @param {string} subscriptionId - Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
11291
+
* @param {string} couponRedemptionId - Coupon Redemption ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
11292
+
* @return {Promise<CouponRedemption>} The coupon redemption on a subscription.
* Delete the coupon redemption from a subscription
11297
+
*
11298
+
* API docs: https://developers.recurly.com/api/v2021-02-25#operation/remove_subscription_coupon_redemption
11299
+
*
11300
+
*
11301
+
* @param {string} subscriptionId - Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
11302
+
* @param {string} couponRedemptionId - Coupon Redemption ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
* API docs: {@link https://developers.recurly.com/api/v2021-02-25#operation/get_coupon_redemption}
840
+
*
841
+
*
842
+
* @param {string} accountId - Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
843
+
* @param {string} couponRedemptionId - Coupon Redemption ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
844
+
* @return {Promise<CouponRedemption>} A coupon redemption.
* API docs: {@link https://developers.recurly.com/api/v2021-02-25#operation/remove_coupon_redemption_by_id}
856
+
*
857
+
*
858
+
* @param {string} accountId - Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
859
+
* @param {string} couponRedemptionId - Coupon Redemption ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
@@ -4642,6 +4674,38 @@ endpoint to obtain only the newly generated `UniqueCouponCodes`.
4642
4674
returnnewPager(this,path,options)
4643
4675
}
4644
4676
4677
+
/**
4678
+
* Show the coupon redemption for a subscription
4679
+
*
4680
+
* API docs: {@link https://developers.recurly.com/api/v2021-02-25#operation/get_subscription_coupon_redemption}
4681
+
*
4682
+
*
4683
+
* @param {string} subscriptionId - Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
4684
+
* @param {string} couponRedemptionId - Coupon Redemption ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
4685
+
* @return {Promise<CouponRedemption>} The coupon redemption on a subscription.
* Delete the coupon redemption from a subscription
4695
+
*
4696
+
* API docs: {@link https://developers.recurly.com/api/v2021-02-25#operation/remove_subscription_coupon_redemption}
4697
+
*
4698
+
*
4699
+
* @param {string} subscriptionId - Subscription ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
4700
+
* @param {string} couponRedemptionId - Coupon Redemption ID or UUID. For ID no prefix is used e.g. `e28zov4fw0v2`. For UUID use prefix `uuid-`, e.g. `uuid-123457890`.
* @prop {Array.<string>} allowedOrigins - Optional array of credit invoice origin types to allow when mode is `all`. If not specified when mode is `all`, credits from all origins are applied. Only valid when mode is `all`.
15
16
* @prop {string} mode - Determines which credit invoices are applied to invoices: - `all`: All available credit invoices are applied (default) - `none`: No credit invoices are applied automatically
* @prop {Date} convertedAt - When the subscription was converted from a gift card.
28
28
* @prop {Array.<CouponRedemptionMini>} couponRedemptions - Returns subscription level coupon redemptions that are tied to this subscription.
29
29
* @prop {Date} createdAt - Created at
30
-
* @prop {CreditApplicationPolicy} creditApplicationPolicy - Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior.
30
+
* @prop {CreditApplicationPolicy} creditApplicationPolicy - Controls whether credit invoices are automatically applied to new invoices. The `mode` field determines the application behavior. When mode is `all`, the optional `allowed_origins` array can restrict which credit invoice origins are applied.
31
31
* @prop {string} currency - 3-letter ISO 4217 currency code.
32
32
* @prop {Date} currentPeriodEndsAt - Current billing period ends at
33
33
* @prop {Date} currentPeriodStartedAt - Current billing period started at
0 commit comments