lago-javascript-client 0.21.0-beta → 0.22.0-beta
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/swagger/client.js +34 -1
- package/package.json +1 -1
- package/script/swagger/client.js +34 -1
- package/types/swagger/client.d.ts +46 -2
package/esm/swagger/client.js
CHANGED
|
@@ -148,7 +148,7 @@ export class HttpClient {
|
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
150
|
* @title Lago API documentation
|
|
151
|
-
* @version 0.
|
|
151
|
+
* @version 0.22.0-beta
|
|
152
152
|
* @baseUrl https://api.getlago.com/api/v1
|
|
153
153
|
* @externalDocs https://github.com/getlago
|
|
154
154
|
* @contact <tech@getlago.com>
|
|
@@ -546,6 +546,22 @@ export class Api extends HttpClient {
|
|
|
546
546
|
format: "json",
|
|
547
547
|
...params,
|
|
548
548
|
}),
|
|
549
|
+
/**
|
|
550
|
+
* @description Return the deleted customer
|
|
551
|
+
*
|
|
552
|
+
* @tags customers
|
|
553
|
+
* @name DeleteCustomer
|
|
554
|
+
* @summary Delete a customer
|
|
555
|
+
* @request DELETE:/customers/{external_id}
|
|
556
|
+
* @secure
|
|
557
|
+
*/
|
|
558
|
+
deleteCustomer: (externalId, params = {}) => this.request({
|
|
559
|
+
path: `/customers/${externalId}`,
|
|
560
|
+
method: "DELETE",
|
|
561
|
+
secure: true,
|
|
562
|
+
format: "json",
|
|
563
|
+
...params,
|
|
564
|
+
}),
|
|
549
565
|
/**
|
|
550
566
|
* @description Return a customer current usage
|
|
551
567
|
*
|
|
@@ -1010,6 +1026,23 @@ export class Api extends HttpClient {
|
|
|
1010
1026
|
format: "json",
|
|
1011
1027
|
...params,
|
|
1012
1028
|
}),
|
|
1029
|
+
/**
|
|
1030
|
+
* @description Find all wallet transactions for certain wallet
|
|
1031
|
+
*
|
|
1032
|
+
* @tags wallets
|
|
1033
|
+
* @name FindAllWalletTransactions
|
|
1034
|
+
* @summary Find wallet transactions
|
|
1035
|
+
* @request GET:/wallets/{id}/wallet_transactions
|
|
1036
|
+
* @secure
|
|
1037
|
+
*/
|
|
1038
|
+
findAllWalletTransactions: (id, query, params = {}) => this.request({
|
|
1039
|
+
path: `/wallets/${id}/wallet_transactions`,
|
|
1040
|
+
method: "GET",
|
|
1041
|
+
query: query,
|
|
1042
|
+
secure: true,
|
|
1043
|
+
format: "json",
|
|
1044
|
+
...params,
|
|
1045
|
+
}),
|
|
1013
1046
|
};
|
|
1014
1047
|
walletTransactions = {
|
|
1015
1048
|
/**
|
package/package.json
CHANGED
package/script/swagger/client.js
CHANGED
|
@@ -152,7 +152,7 @@ class HttpClient {
|
|
|
152
152
|
exports.HttpClient = HttpClient;
|
|
153
153
|
/**
|
|
154
154
|
* @title Lago API documentation
|
|
155
|
-
* @version 0.
|
|
155
|
+
* @version 0.22.0-beta
|
|
156
156
|
* @baseUrl https://api.getlago.com/api/v1
|
|
157
157
|
* @externalDocs https://github.com/getlago
|
|
158
158
|
* @contact <tech@getlago.com>
|
|
@@ -550,6 +550,22 @@ class Api extends HttpClient {
|
|
|
550
550
|
format: "json",
|
|
551
551
|
...params,
|
|
552
552
|
}),
|
|
553
|
+
/**
|
|
554
|
+
* @description Return the deleted customer
|
|
555
|
+
*
|
|
556
|
+
* @tags customers
|
|
557
|
+
* @name DeleteCustomer
|
|
558
|
+
* @summary Delete a customer
|
|
559
|
+
* @request DELETE:/customers/{external_id}
|
|
560
|
+
* @secure
|
|
561
|
+
*/
|
|
562
|
+
deleteCustomer: (externalId, params = {}) => this.request({
|
|
563
|
+
path: `/customers/${externalId}`,
|
|
564
|
+
method: "DELETE",
|
|
565
|
+
secure: true,
|
|
566
|
+
format: "json",
|
|
567
|
+
...params,
|
|
568
|
+
}),
|
|
553
569
|
/**
|
|
554
570
|
* @description Return a customer current usage
|
|
555
571
|
*
|
|
@@ -1014,6 +1030,23 @@ class Api extends HttpClient {
|
|
|
1014
1030
|
format: "json",
|
|
1015
1031
|
...params,
|
|
1016
1032
|
}),
|
|
1033
|
+
/**
|
|
1034
|
+
* @description Find all wallet transactions for certain wallet
|
|
1035
|
+
*
|
|
1036
|
+
* @tags wallets
|
|
1037
|
+
* @name FindAllWalletTransactions
|
|
1038
|
+
* @summary Find wallet transactions
|
|
1039
|
+
* @request GET:/wallets/{id}/wallet_transactions
|
|
1040
|
+
* @secure
|
|
1041
|
+
*/
|
|
1042
|
+
findAllWalletTransactions: (id, query, params = {}) => this.request({
|
|
1043
|
+
path: `/wallets/${id}/wallet_transactions`,
|
|
1044
|
+
method: "GET",
|
|
1045
|
+
query: query,
|
|
1046
|
+
secure: true,
|
|
1047
|
+
format: "json",
|
|
1048
|
+
...params,
|
|
1049
|
+
}),
|
|
1017
1050
|
};
|
|
1018
1051
|
walletTransactions = {
|
|
1019
1052
|
/**
|
|
@@ -852,6 +852,9 @@ export interface WalletTransactionObject {
|
|
|
852
852
|
export interface WalletTransaction {
|
|
853
853
|
wallet_transaction?: WalletTransactionObject;
|
|
854
854
|
}
|
|
855
|
+
export interface WalletTransactions {
|
|
856
|
+
wallet_transactions?: WalletTransactionObject[];
|
|
857
|
+
}
|
|
855
858
|
export interface WalletTransactionInput {
|
|
856
859
|
wallet_transaction?: {
|
|
857
860
|
/** @example "985da83c-c007-4fbb-afcd-b00c07c41ffe" */
|
|
@@ -1069,7 +1072,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
1069
1072
|
}
|
|
1070
1073
|
/**
|
|
1071
1074
|
* @title Lago API documentation
|
|
1072
|
-
* @version 0.
|
|
1075
|
+
* @version 0.22.0-beta
|
|
1073
1076
|
* @baseUrl https://api.getlago.com/api/v1
|
|
1074
1077
|
* @externalDocs https://github.com/getlago
|
|
1075
1078
|
* @contact <tech@getlago.com>
|
|
@@ -1372,6 +1375,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1372
1375
|
* @secure
|
|
1373
1376
|
*/
|
|
1374
1377
|
findCustomer: (externalId: string, params?: RequestParams) => Promise<HttpResponse<Customer, ApiResponseUnauthorized | ApiResponseNotFound>>;
|
|
1378
|
+
/**
|
|
1379
|
+
* @description Return the deleted customer
|
|
1380
|
+
*
|
|
1381
|
+
* @tags customers
|
|
1382
|
+
* @name DeleteCustomer
|
|
1383
|
+
* @summary Delete a customer
|
|
1384
|
+
* @request DELETE:/customers/{external_id}
|
|
1385
|
+
* @secure
|
|
1386
|
+
*/
|
|
1387
|
+
deleteCustomer: (externalId: string, params?: RequestParams) => Promise<HttpResponse<Customer, ApiResponseUnauthorized | ApiResponseNotFound | ApiResponseNotAllowed>>;
|
|
1375
1388
|
/**
|
|
1376
1389
|
* @description Return a customer current usage
|
|
1377
1390
|
*
|
|
@@ -1745,6 +1758,37 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1745
1758
|
*/
|
|
1746
1759
|
external_customer_id: string;
|
|
1747
1760
|
}, params?: RequestParams) => Promise<HttpResponse<Wallets, ApiResponseUnauthorized>>;
|
|
1761
|
+
/**
|
|
1762
|
+
* @description Find all wallet transactions for certain wallet
|
|
1763
|
+
*
|
|
1764
|
+
* @tags wallets
|
|
1765
|
+
* @name FindAllWalletTransactions
|
|
1766
|
+
* @summary Find wallet transactions
|
|
1767
|
+
* @request GET:/wallets/{id}/wallet_transactions
|
|
1768
|
+
* @secure
|
|
1769
|
+
*/
|
|
1770
|
+
findAllWalletTransactions: (id: string, query?: {
|
|
1771
|
+
/**
|
|
1772
|
+
* Number of page
|
|
1773
|
+
* @example 2
|
|
1774
|
+
*/
|
|
1775
|
+
page?: number;
|
|
1776
|
+
/**
|
|
1777
|
+
* Number of records per page
|
|
1778
|
+
* @example 20
|
|
1779
|
+
*/
|
|
1780
|
+
per_page?: number;
|
|
1781
|
+
/**
|
|
1782
|
+
* Status (pending or settled)
|
|
1783
|
+
* @example "pending"
|
|
1784
|
+
*/
|
|
1785
|
+
status?: string;
|
|
1786
|
+
/**
|
|
1787
|
+
* Transaction Type (inbound or outbound)
|
|
1788
|
+
* @example "inbound"
|
|
1789
|
+
*/
|
|
1790
|
+
transaction_type?: string;
|
|
1791
|
+
}, params?: RequestParams) => Promise<HttpResponse<WalletTransactions, ApiResponseUnauthorized | ApiResponseNotFound>>;
|
|
1748
1792
|
};
|
|
1749
1793
|
walletTransactions: {
|
|
1750
1794
|
/**
|
|
@@ -1756,7 +1800,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
1756
1800
|
* @request POST:/wallet_transactions
|
|
1757
1801
|
* @secure
|
|
1758
1802
|
*/
|
|
1759
|
-
createWalletTransaction: (data: WalletTransactionInput, params?: RequestParams) => Promise<HttpResponse<
|
|
1803
|
+
createWalletTransaction: (data: WalletTransactionInput, params?: RequestParams) => Promise<HttpResponse<WalletTransactions, ApiResponseBadRequest | ApiResponseUnauthorized | ApiResponseUnprocessableEntity>>;
|
|
1760
1804
|
};
|
|
1761
1805
|
creditNotes: {
|
|
1762
1806
|
/**
|