lago-javascript-client 1.53.0 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/openapi/client.d.ts +233 -110
- package/esm/openapi/client.js +11 -10
- package/esm/openapi/webhooks.d.ts +222 -121
- package/package.json +1 -1
- package/script/openapi/client.d.ts +233 -110
- package/script/openapi/client.js +11 -10
- package/script/openapi/webhooks.d.ts +222 -121
package/esm/openapi/client.js
CHANGED
|
@@ -156,7 +156,7 @@ export class HttpClient {
|
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
158
|
* @title Lago API documentation
|
|
159
|
-
* @version 1.
|
|
159
|
+
* @version 1.55.0
|
|
160
160
|
* @license AGPLv3 (https://github.com/getlago/lago-openapi/blob/main/LICENSE)
|
|
161
161
|
* @baseUrl https://api.getlago.com/api/v1
|
|
162
162
|
* @externalDocs https://github.com/getlago
|
|
@@ -445,7 +445,7 @@ export class Api extends HttpClient {
|
|
|
445
445
|
...params,
|
|
446
446
|
}),
|
|
447
447
|
/**
|
|
448
|
-
* @description This
|
|
448
|
+
* @description Quantifies the revenue generated from `subscription` fees on a monthly basis. This figure is calculated post-application of applicable taxes and deduction of any applicable discounts. The method of calculation varies based on the subscription billing cycle: - Revenue from `monthly` subscription invoices is included in the MRR for the month in which the invoice is issued. - Revenue from `quarterly` subscription invoices is distributed evenly over three months. This distribution applies to fees paid in advance (allocated to the next remaining months depending on calendar or anniversary billing) as well as to fees paid in arrears (allocated to the preceding months depending on calendar or anniversary billing). - Revenue from `yearly` subscription invoices is distributed evenly over twelve months. This allocation is applicable for fees paid in advance (spread over the next remaining months depending on calendar or anniversary billing) and for fees paid in arrears (spread over the previous months depending on calendar or anniversary billing). - Revenue from `semiannual` subscription invoices is distributed evenly over six months. This allocation is applicable for fees paid in advance (spread over the next remaining months depending on calendar or anniversary billing) and for fees paid in arrears (spread over the previous months depending on calendar or anniversary billing). - Revenue from `weekly` subscription invoices, the total revenue from all invoices issued within a month is summed up. This total is then divided by the number of invoices issued during that month, and the result is multiplied by 4.33, representing the average number of weeks in a month.
|
|
449
449
|
*
|
|
450
450
|
* @tags analytics
|
|
451
451
|
* @name FindAllMrrs
|
|
@@ -725,11 +725,11 @@ export class Api extends HttpClient {
|
|
|
725
725
|
...params,
|
|
726
726
|
}),
|
|
727
727
|
/**
|
|
728
|
-
* @description
|
|
728
|
+
* @description This endpoint deletes a privilege from a feature. Deleting a privilege removes it from all plans and subscriptions.
|
|
729
729
|
*
|
|
730
730
|
* @tags features
|
|
731
731
|
* @name DeleteFeaturePrivilege
|
|
732
|
-
* @summary Delete a privilege
|
|
732
|
+
* @summary Delete a privilege
|
|
733
733
|
* @request DELETE:/features/{code}/privileges/{privilege_code}
|
|
734
734
|
* @secure
|
|
735
735
|
*/
|
|
@@ -1381,9 +1381,10 @@ export class Api extends HttpClient {
|
|
|
1381
1381
|
* @request GET:/customers/{external_customer_id}/wallets/{wallet_code}/alerts
|
|
1382
1382
|
* @secure
|
|
1383
1383
|
*/
|
|
1384
|
-
getCustomerWalletAlerts: (externalCustomerId, walletCode, params = {}) => this.request({
|
|
1384
|
+
getCustomerWalletAlerts: (externalCustomerId, walletCode, query, params = {}) => this.request({
|
|
1385
1385
|
path: `/customers/${externalCustomerId}/wallets/${walletCode}/alerts`,
|
|
1386
1386
|
method: "GET",
|
|
1387
|
+
query: query,
|
|
1387
1388
|
secure: true,
|
|
1388
1389
|
format: "json",
|
|
1389
1390
|
...params,
|
|
@@ -1556,7 +1557,7 @@ export class Api extends HttpClient {
|
|
|
1556
1557
|
...params,
|
|
1557
1558
|
}),
|
|
1558
1559
|
/**
|
|
1559
|
-
* @description
|
|
1560
|
+
* @description This endpoint sets a payment method as the customer's default one. It is the payment method Lago uses when a payment is triggered without an explicit one. Any other default payment method of the customer is unset.
|
|
1560
1561
|
*
|
|
1561
1562
|
* @tags payment_methods
|
|
1562
1563
|
* @name PaymentMethodSetAsDefault
|
|
@@ -2438,7 +2439,7 @@ export class Api extends HttpClient {
|
|
|
2438
2439
|
...params,
|
|
2439
2440
|
}),
|
|
2440
2441
|
/**
|
|
2441
|
-
* @description This accepts a list of entitlements to update. If the feature isn't part of the plan yet, it's added with all the privileges from the payload. If the feature is already part of the plan, the privilege and values are updated or added. All privileges must be valid for the feature. All features
|
|
2442
|
+
* @description This accepts a list of entitlements to update. If the feature isn't part of the plan yet, it's added with all the privileges from the payload. If the feature is already part of the plan, the privilege and values are updated or added. All privileges must be valid for the feature. All features and privileges not part of the payload are left untouched. To remove privileges or features, use the DELETE endpoints.
|
|
2442
2443
|
*
|
|
2443
2444
|
* @tags entitlements
|
|
2444
2445
|
* @name UpdateEntitlement
|
|
@@ -3199,7 +3200,7 @@ export class Api extends HttpClient {
|
|
|
3199
3200
|
...params,
|
|
3200
3201
|
}),
|
|
3201
3202
|
/**
|
|
3202
|
-
* @description This accepts a list of entitlements to update. If the feature isn't part of the subscription yet, it's added with all the privileges from the payload. If the feature is already part of the subscription (via plan or via override), the privilege and values are updated or added. All privileges must be valid for the feature. All features
|
|
3203
|
+
* @description This accepts a list of entitlements to update. If the feature isn't part of the subscription yet, it's added with all the privileges from the payload. If the feature is already part of the subscription (via plan or via override), the privilege and values are updated or added. All privileges must be valid for the feature. All features and privileges not part of the payload are left untouched. To remove privileges or features, use the DELETE endpoints.
|
|
3203
3204
|
*
|
|
3204
3205
|
* @tags entitlements
|
|
3205
3206
|
* @name UpdateSubscriptionEntitlements
|
|
@@ -3218,7 +3219,7 @@ export class Api extends HttpClient {
|
|
|
3218
3219
|
...params,
|
|
3219
3220
|
}),
|
|
3220
3221
|
/**
|
|
3221
|
-
* @description This endpoint removes a specific feature entitlement from a subscription. The entitlement remains available from the plan.
|
|
3222
|
+
* @description This endpoint removes a specific feature entitlement from a subscription. The entitlement remains available from the plan. It returns the full list of entitlements remaining on the subscription.
|
|
3222
3223
|
*
|
|
3223
3224
|
* @tags entitlements
|
|
3224
3225
|
* @name DestroySubscriptionEntitlement
|
|
@@ -3235,7 +3236,7 @@ export class Api extends HttpClient {
|
|
|
3235
3236
|
...params,
|
|
3236
3237
|
}),
|
|
3237
3238
|
/**
|
|
3238
|
-
* @description This endpoint removes a specific privilege from a subscription entitlement. The privilege entitlement remains available from the plan.
|
|
3239
|
+
* @description This endpoint removes a specific privilege from a subscription entitlement. The privilege entitlement remains available from the plan. It returns the full list of entitlements remaining on the subscription.
|
|
3239
3240
|
*
|
|
3240
3241
|
* @tags entitlements
|
|
3241
3242
|
* @name DestroySubscriptionEntitlementPrivilege
|