lago-javascript-client 1.33.3 → 1.36.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.
@@ -152,7 +152,7 @@ class HttpClient {
152
152
  exports.HttpClient = HttpClient;
153
153
  /**
154
154
  * @title Lago API documentation
155
- * @version 1.33.3
155
+ * @version 1.36.0
156
156
  * @license AGPLv3
157
157
  * @baseUrl https://api.getlago.com/api/v1
158
158
  * @externalDocs https://github.com/getlago
@@ -1013,6 +1013,23 @@ class Api extends HttpClient {
1013
1013
  format: "json",
1014
1014
  ...params,
1015
1015
  }),
1016
+ /**
1017
+ * @description This endpoint is used to list all applied coupons for a customer.
1018
+ *
1019
+ * @tags customers, coupons
1020
+ * @name FindAllCustomerAppliedCoupons
1021
+ * @summary List all customer's applied coupons
1022
+ * @request GET:/customers/{external_customer_id}/applied_coupons
1023
+ * @secure
1024
+ */
1025
+ findAllCustomerAppliedCoupons: (externalCustomerId, query, params = {}) => this.request({
1026
+ path: `/customers/${externalCustomerId}/applied_coupons`,
1027
+ method: "GET",
1028
+ query: query,
1029
+ secure: true,
1030
+ format: "json",
1031
+ ...params,
1032
+ }),
1016
1033
  /**
1017
1034
  * @description This endpoint is used to delete a specific coupon that has been applied to a customer.
1018
1035
  *
@@ -1029,6 +1046,74 @@ class Api extends HttpClient {
1029
1046
  format: "json",
1030
1047
  ...params,
1031
1048
  }),
1049
+ /**
1050
+ * @description This endpoint list all existing credit notes for a customer.
1051
+ *
1052
+ * @tags customers, credit_notes
1053
+ * @name FindAllCustomerCreditNotes
1054
+ * @summary List all customer's credit notes
1055
+ * @request GET:/customers/{external_customer_id}/credit_notes
1056
+ * @secure
1057
+ */
1058
+ findAllCustomerCreditNotes: (externalCustomerId, query, params = {}) => this.request({
1059
+ path: `/customers/${externalCustomerId}/credit_notes`,
1060
+ method: "GET",
1061
+ query: query,
1062
+ secure: true,
1063
+ format: "json",
1064
+ ...params,
1065
+ }),
1066
+ /**
1067
+ * @description This endpoint is used for retrieving all invoices of a customer.
1068
+ *
1069
+ * @tags customers, invoices
1070
+ * @name FindAllCustomerInvoices
1071
+ * @summary List all customer's invoices
1072
+ * @request GET:/customers/{external_customer_id}/invoices
1073
+ * @secure
1074
+ */
1075
+ findAllCustomerInvoices: (externalCustomerId, query, params = {}) => this.request({
1076
+ path: `/customers/${externalCustomerId}/invoices`,
1077
+ method: "GET",
1078
+ query: query,
1079
+ secure: true,
1080
+ format: "json",
1081
+ ...params,
1082
+ }),
1083
+ /**
1084
+ * @description This endpoint is used to list all payments of a customer
1085
+ *
1086
+ * @tags customers, payments
1087
+ * @name FindAllCustomerPayments
1088
+ * @summary List all customer's payments
1089
+ * @request GET:/customers/{external_customer_id}/payments
1090
+ * @secure
1091
+ */
1092
+ findAllCustomerPayments: (externalCustomerId, query, params = {}) => this.request({
1093
+ path: `/customers/${externalCustomerId}/payments`,
1094
+ method: "GET",
1095
+ query: query,
1096
+ secure: true,
1097
+ format: "json",
1098
+ ...params,
1099
+ }),
1100
+ /**
1101
+ * @description This endpoint is used to list all existing payment requests of a customer.
1102
+ *
1103
+ * @tags customers, payment_requests
1104
+ * @name FindAllCustomerPaymentRequests
1105
+ * @summary List all customer's payment requests
1106
+ * @request GET:/customers/{external_customer_id}/payment_requests
1107
+ * @secure
1108
+ */
1109
+ findAllCustomerPaymentRequests: (externalCustomerId, query, params = {}) => this.request({
1110
+ path: `/customers/${externalCustomerId}/payment_requests`,
1111
+ method: "GET",
1112
+ query: query,
1113
+ secure: true,
1114
+ format: "json",
1115
+ ...params,
1116
+ }),
1032
1117
  /**
1033
1118
  * @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
1034
1119
  *
@@ -1045,6 +1130,40 @@ class Api extends HttpClient {
1045
1130
  format: "json",
1046
1131
  ...params,
1047
1132
  }),
1133
+ /**
1134
+ * @description This endpoint retrieves all active subscriptions for a customer.
1135
+ *
1136
+ * @tags customers, subscriptions
1137
+ * @name FindAllCustomerSubscriptions
1138
+ * @summary List all customer's subscriptions
1139
+ * @request GET:/customers/{external_customer_id}/subscriptions
1140
+ * @secure
1141
+ */
1142
+ findAllCustomerSubscriptions: (externalCustomerId, query, params = {}) => this.request({
1143
+ path: `/customers/${externalCustomerId}/subscriptions`,
1144
+ method: "GET",
1145
+ query: query,
1146
+ secure: true,
1147
+ format: "json",
1148
+ ...params,
1149
+ }),
1150
+ /**
1151
+ * @description This endpoint is used to list all wallets with prepaid credits of a customer
1152
+ *
1153
+ * @tags customers, wallets
1154
+ * @name FindAllCustomerWallets
1155
+ * @summary List all customer's wallets
1156
+ * @request GET:/customers/{external_customer_id}/wallets
1157
+ * @secure
1158
+ */
1159
+ findAllCustomerWallets: (externalCustomerId, query, params = {}) => this.request({
1160
+ path: `/customers/${externalCustomerId}/wallets`,
1161
+ method: "GET",
1162
+ query: query,
1163
+ secure: true,
1164
+ format: "json",
1165
+ ...params,
1166
+ }),
1048
1167
  /**
1049
1168
  * @description This endpoint enables the retrieval of the usage-based billing data for a customer within the current period.
1050
1169
  *