lago-javascript-client 1.33.3 → 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 +1562 -1284
- package/esm/openapi/client.js +119 -0
- package/package.json +1 -1
- package/script/openapi/client.d.ts +1562 -1284
- package/script/openapi/client.js +119 -0
package/esm/openapi/client.js
CHANGED
|
@@ -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
|
*
|