lago-javascript-client 1.33.1 → 1.33.4
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 +1697 -1343
- package/esm/openapi/client.js +124 -4
- package/package.json +1 -1
- package/script/openapi/client.d.ts +1697 -1343
- package/script/openapi/client.js +124 -4
package/esm/openapi/client.js
CHANGED
|
@@ -148,7 +148,7 @@ export class HttpClient {
|
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
150
|
* @title Lago API documentation
|
|
151
|
-
* @version 1.
|
|
151
|
+
* @version 1.33.3
|
|
152
152
|
* @license AGPLv3
|
|
153
153
|
* @baseUrl https://api.getlago.com/api/v1
|
|
154
154
|
* @externalDocs https://github.com/getlago
|
|
@@ -1009,6 +1009,23 @@ export class Api extends HttpClient {
|
|
|
1009
1009
|
format: "json",
|
|
1010
1010
|
...params,
|
|
1011
1011
|
}),
|
|
1012
|
+
/**
|
|
1013
|
+
* @description This endpoint is used to list all applied coupons for a customer.
|
|
1014
|
+
*
|
|
1015
|
+
* @tags customers, coupons
|
|
1016
|
+
* @name FindAllCustomerAppliedCoupons
|
|
1017
|
+
* @summary List all customer's applied coupons
|
|
1018
|
+
* @request GET:/customers/{external_customer_id}/applied_coupons
|
|
1019
|
+
* @secure
|
|
1020
|
+
*/
|
|
1021
|
+
findAllCustomerAppliedCoupons: (externalCustomerId, query, params = {}) => this.request({
|
|
1022
|
+
path: `/customers/${externalCustomerId}/applied_coupons`,
|
|
1023
|
+
method: "GET",
|
|
1024
|
+
query: query,
|
|
1025
|
+
secure: true,
|
|
1026
|
+
format: "json",
|
|
1027
|
+
...params,
|
|
1028
|
+
}),
|
|
1012
1029
|
/**
|
|
1013
1030
|
* @description This endpoint is used to delete a specific coupon that has been applied to a customer.
|
|
1014
1031
|
*
|
|
@@ -1025,6 +1042,74 @@ export class Api extends HttpClient {
|
|
|
1025
1042
|
format: "json",
|
|
1026
1043
|
...params,
|
|
1027
1044
|
}),
|
|
1045
|
+
/**
|
|
1046
|
+
* @description This endpoint list all existing credit notes for a customer.
|
|
1047
|
+
*
|
|
1048
|
+
* @tags customers, credit_notes
|
|
1049
|
+
* @name FindAllCustomerCreditNotes
|
|
1050
|
+
* @summary List all customer's credit notes
|
|
1051
|
+
* @request GET:/customers/{external_customer_id}/credit_notes
|
|
1052
|
+
* @secure
|
|
1053
|
+
*/
|
|
1054
|
+
findAllCustomerCreditNotes: (externalCustomerId, query, params = {}) => this.request({
|
|
1055
|
+
path: `/customers/${externalCustomerId}/credit_notes`,
|
|
1056
|
+
method: "GET",
|
|
1057
|
+
query: query,
|
|
1058
|
+
secure: true,
|
|
1059
|
+
format: "json",
|
|
1060
|
+
...params,
|
|
1061
|
+
}),
|
|
1062
|
+
/**
|
|
1063
|
+
* @description This endpoint is used for retrieving all invoices of a customer.
|
|
1064
|
+
*
|
|
1065
|
+
* @tags customers, invoices
|
|
1066
|
+
* @name FindAllCustomerInvoices
|
|
1067
|
+
* @summary List all customer's invoices
|
|
1068
|
+
* @request GET:/customers/{external_customer_id}/invoices
|
|
1069
|
+
* @secure
|
|
1070
|
+
*/
|
|
1071
|
+
findAllCustomerInvoices: (externalCustomerId, query, params = {}) => this.request({
|
|
1072
|
+
path: `/customers/${externalCustomerId}/invoices`,
|
|
1073
|
+
method: "GET",
|
|
1074
|
+
query: query,
|
|
1075
|
+
secure: true,
|
|
1076
|
+
format: "json",
|
|
1077
|
+
...params,
|
|
1078
|
+
}),
|
|
1079
|
+
/**
|
|
1080
|
+
* @description This endpoint is used to list all payments of a customer
|
|
1081
|
+
*
|
|
1082
|
+
* @tags customers, payments
|
|
1083
|
+
* @name FindAllCustomerPayments
|
|
1084
|
+
* @summary List all customer's payments
|
|
1085
|
+
* @request GET:/customers/{external_customer_id}/payments
|
|
1086
|
+
* @secure
|
|
1087
|
+
*/
|
|
1088
|
+
findAllCustomerPayments: (externalCustomerId, query, params = {}) => this.request({
|
|
1089
|
+
path: `/customers/${externalCustomerId}/payments`,
|
|
1090
|
+
method: "GET",
|
|
1091
|
+
query: query,
|
|
1092
|
+
secure: true,
|
|
1093
|
+
format: "json",
|
|
1094
|
+
...params,
|
|
1095
|
+
}),
|
|
1096
|
+
/**
|
|
1097
|
+
* @description This endpoint is used to list all existing payment requests of a customer.
|
|
1098
|
+
*
|
|
1099
|
+
* @tags customers, payment_requests
|
|
1100
|
+
* @name FindAllCustomerPaymentRequests
|
|
1101
|
+
* @summary List all customer's payment requests
|
|
1102
|
+
* @request GET:/customers/{external_customer_id}/payment_requests
|
|
1103
|
+
* @secure
|
|
1104
|
+
*/
|
|
1105
|
+
findAllCustomerPaymentRequests: (externalCustomerId, query, params = {}) => this.request({
|
|
1106
|
+
path: `/customers/${externalCustomerId}/payment_requests`,
|
|
1107
|
+
method: "GET",
|
|
1108
|
+
query: query,
|
|
1109
|
+
secure: true,
|
|
1110
|
+
format: "json",
|
|
1111
|
+
...params,
|
|
1112
|
+
}),
|
|
1028
1113
|
/**
|
|
1029
1114
|
* @description Retrieves an embeddable link for displaying a customer portal. This endpoint allows you to fetch the URL that can be embedded to provide customers access to a dedicated portal
|
|
1030
1115
|
*
|
|
@@ -1041,6 +1126,40 @@ export class Api extends HttpClient {
|
|
|
1041
1126
|
format: "json",
|
|
1042
1127
|
...params,
|
|
1043
1128
|
}),
|
|
1129
|
+
/**
|
|
1130
|
+
* @description This endpoint retrieves all active subscriptions for a customer.
|
|
1131
|
+
*
|
|
1132
|
+
* @tags customers, subscriptions
|
|
1133
|
+
* @name FindAllCustomerSubscriptions
|
|
1134
|
+
* @summary List all customer's subscriptions
|
|
1135
|
+
* @request GET:/customers/{external_customer_id}/subscriptions
|
|
1136
|
+
* @secure
|
|
1137
|
+
*/
|
|
1138
|
+
findAllCustomerSubscriptions: (externalCustomerId, query, params = {}) => this.request({
|
|
1139
|
+
path: `/customers/${externalCustomerId}/subscriptions`,
|
|
1140
|
+
method: "GET",
|
|
1141
|
+
query: query,
|
|
1142
|
+
secure: true,
|
|
1143
|
+
format: "json",
|
|
1144
|
+
...params,
|
|
1145
|
+
}),
|
|
1146
|
+
/**
|
|
1147
|
+
* @description This endpoint is used to list all wallets with prepaid credits of a customer
|
|
1148
|
+
*
|
|
1149
|
+
* @tags customers, wallets
|
|
1150
|
+
* @name FindAllCustomerWallets
|
|
1151
|
+
* @summary List all customer's wallets
|
|
1152
|
+
* @request GET:/customers/{external_customer_id}/wallets
|
|
1153
|
+
* @secure
|
|
1154
|
+
*/
|
|
1155
|
+
findAllCustomerWallets: (externalCustomerId, query, params = {}) => this.request({
|
|
1156
|
+
path: `/customers/${externalCustomerId}/wallets`,
|
|
1157
|
+
method: "GET",
|
|
1158
|
+
query: query,
|
|
1159
|
+
secure: true,
|
|
1160
|
+
format: "json",
|
|
1161
|
+
...params,
|
|
1162
|
+
}),
|
|
1044
1163
|
/**
|
|
1045
1164
|
* @description This endpoint enables the retrieval of the usage-based billing data for a customer within the current period.
|
|
1046
1165
|
*
|
|
@@ -1803,7 +1922,7 @@ export class Api extends HttpClient {
|
|
|
1803
1922
|
...params,
|
|
1804
1923
|
}),
|
|
1805
1924
|
/**
|
|
1806
|
-
* @description This
|
|
1925
|
+
* @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.
|
|
1807
1926
|
*
|
|
1808
1927
|
* @tags entitlements
|
|
1809
1928
|
* @name UpdateEntitlement
|
|
@@ -1931,9 +2050,10 @@ export class Api extends HttpClient {
|
|
|
1931
2050
|
* @request PUT:/subscriptions/{external_id}
|
|
1932
2051
|
* @secure
|
|
1933
2052
|
*/
|
|
1934
|
-
updateSubscription: (externalId, data, params = {}) => this.request({
|
|
2053
|
+
updateSubscription: (externalId, data, query, params = {}) => this.request({
|
|
1935
2054
|
path: `/subscriptions/${externalId}`,
|
|
1936
2055
|
method: "PUT",
|
|
2056
|
+
query: query,
|
|
1937
2057
|
body: data,
|
|
1938
2058
|
secure: true,
|
|
1939
2059
|
type: ContentType.Json,
|
|
@@ -2092,7 +2212,7 @@ export class Api extends HttpClient {
|
|
|
2092
2212
|
...params,
|
|
2093
2213
|
}),
|
|
2094
2214
|
/**
|
|
2095
|
-
* @description This
|
|
2215
|
+
* @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.
|
|
2096
2216
|
*
|
|
2097
2217
|
* @tags entitlements
|
|
2098
2218
|
* @name UpdateSubscriptionEntitlements
|