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/script/openapi/client.js
CHANGED
|
@@ -160,7 +160,7 @@ class HttpClient {
|
|
|
160
160
|
exports.HttpClient = HttpClient;
|
|
161
161
|
/**
|
|
162
162
|
* @title Lago API documentation
|
|
163
|
-
* @version 1.
|
|
163
|
+
* @version 1.55.0
|
|
164
164
|
* @license AGPLv3 (https://github.com/getlago/lago-openapi/blob/main/LICENSE)
|
|
165
165
|
* @baseUrl https://api.getlago.com/api/v1
|
|
166
166
|
* @externalDocs https://github.com/getlago
|
|
@@ -449,7 +449,7 @@ class Api extends HttpClient {
|
|
|
449
449
|
...params,
|
|
450
450
|
}),
|
|
451
451
|
/**
|
|
452
|
-
* @description This
|
|
452
|
+
* @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.
|
|
453
453
|
*
|
|
454
454
|
* @tags analytics
|
|
455
455
|
* @name FindAllMrrs
|
|
@@ -729,11 +729,11 @@ class Api extends HttpClient {
|
|
|
729
729
|
...params,
|
|
730
730
|
}),
|
|
731
731
|
/**
|
|
732
|
-
* @description
|
|
732
|
+
* @description This endpoint deletes a privilege from a feature. Deleting a privilege removes it from all plans and subscriptions.
|
|
733
733
|
*
|
|
734
734
|
* @tags features
|
|
735
735
|
* @name DeleteFeaturePrivilege
|
|
736
|
-
* @summary Delete a privilege
|
|
736
|
+
* @summary Delete a privilege
|
|
737
737
|
* @request DELETE:/features/{code}/privileges/{privilege_code}
|
|
738
738
|
* @secure
|
|
739
739
|
*/
|
|
@@ -1385,9 +1385,10 @@ class Api extends HttpClient {
|
|
|
1385
1385
|
* @request GET:/customers/{external_customer_id}/wallets/{wallet_code}/alerts
|
|
1386
1386
|
* @secure
|
|
1387
1387
|
*/
|
|
1388
|
-
getCustomerWalletAlerts: (externalCustomerId, walletCode, params = {}) => this.request({
|
|
1388
|
+
getCustomerWalletAlerts: (externalCustomerId, walletCode, query, params = {}) => this.request({
|
|
1389
1389
|
path: `/customers/${externalCustomerId}/wallets/${walletCode}/alerts`,
|
|
1390
1390
|
method: "GET",
|
|
1391
|
+
query: query,
|
|
1391
1392
|
secure: true,
|
|
1392
1393
|
format: "json",
|
|
1393
1394
|
...params,
|
|
@@ -1560,7 +1561,7 @@ class Api extends HttpClient {
|
|
|
1560
1561
|
...params,
|
|
1561
1562
|
}),
|
|
1562
1563
|
/**
|
|
1563
|
-
* @description
|
|
1564
|
+
* @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.
|
|
1564
1565
|
*
|
|
1565
1566
|
* @tags payment_methods
|
|
1566
1567
|
* @name PaymentMethodSetAsDefault
|
|
@@ -2442,7 +2443,7 @@ class Api extends HttpClient {
|
|
|
2442
2443
|
...params,
|
|
2443
2444
|
}),
|
|
2444
2445
|
/**
|
|
2445
|
-
* @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
|
|
2446
|
+
* @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.
|
|
2446
2447
|
*
|
|
2447
2448
|
* @tags entitlements
|
|
2448
2449
|
* @name UpdateEntitlement
|
|
@@ -3203,7 +3204,7 @@ class Api extends HttpClient {
|
|
|
3203
3204
|
...params,
|
|
3204
3205
|
}),
|
|
3205
3206
|
/**
|
|
3206
|
-
* @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
|
|
3207
|
+
* @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.
|
|
3207
3208
|
*
|
|
3208
3209
|
* @tags entitlements
|
|
3209
3210
|
* @name UpdateSubscriptionEntitlements
|
|
@@ -3222,7 +3223,7 @@ class Api extends HttpClient {
|
|
|
3222
3223
|
...params,
|
|
3223
3224
|
}),
|
|
3224
3225
|
/**
|
|
3225
|
-
* @description This endpoint removes a specific feature entitlement from a subscription. The entitlement remains available from the plan.
|
|
3226
|
+
* @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.
|
|
3226
3227
|
*
|
|
3227
3228
|
* @tags entitlements
|
|
3228
3229
|
* @name DestroySubscriptionEntitlement
|
|
@@ -3239,7 +3240,7 @@ class Api extends HttpClient {
|
|
|
3239
3240
|
...params,
|
|
3240
3241
|
}),
|
|
3241
3242
|
/**
|
|
3242
|
-
* @description This endpoint removes a specific privilege from a subscription entitlement. The privilege entitlement remains available from the plan.
|
|
3243
|
+
* @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.
|
|
3243
3244
|
*
|
|
3244
3245
|
* @tags entitlements
|
|
3245
3246
|
* @name DestroySubscriptionEntitlementPrivilege
|