lago-javascript-client 0.22.0-beta → 0.26.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 +35 -1
- package/package.json +1 -1
- package/script/swagger/client.js +35 -1
- package/types/swagger/client.d.ts +388 -298
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.26.0-beta
|
|
152
152
|
* @baseUrl https://api.getlago.com/api/v1
|
|
153
153
|
* @externalDocs https://github.com/getlago
|
|
154
154
|
* @contact <tech@getlago.com>
|
|
@@ -579,6 +579,22 @@ export class Api extends HttpClient {
|
|
|
579
579
|
format: "json",
|
|
580
580
|
...params,
|
|
581
581
|
}),
|
|
582
|
+
/**
|
|
583
|
+
* @description Delete customer's appplied coupon
|
|
584
|
+
*
|
|
585
|
+
* @tags customers
|
|
586
|
+
* @name DeleteAppliedCoupon
|
|
587
|
+
* @summary Delete customer's appplied coupon
|
|
588
|
+
* @request DELETE:/customers/{customer_external_id}/applied_coupons/{applied_coupon_id}
|
|
589
|
+
* @secure
|
|
590
|
+
*/
|
|
591
|
+
deleteAppliedCoupon: (customerExternalId, appliedCouponId, params = {}) => this.request({
|
|
592
|
+
path: `/customers/${customerExternalId}/applied_coupons/${appliedCouponId}`,
|
|
593
|
+
method: "DELETE",
|
|
594
|
+
secure: true,
|
|
595
|
+
format: "json",
|
|
596
|
+
...params,
|
|
597
|
+
}),
|
|
582
598
|
/**
|
|
583
599
|
* @description Find all customers in certain organisation
|
|
584
600
|
*
|
|
@@ -940,6 +956,24 @@ export class Api extends HttpClient {
|
|
|
940
956
|
...params,
|
|
941
957
|
}),
|
|
942
958
|
};
|
|
959
|
+
fees = {
|
|
960
|
+
/**
|
|
961
|
+
* @description Return a single fee
|
|
962
|
+
*
|
|
963
|
+
* @tags fees
|
|
964
|
+
* @name FindFee
|
|
965
|
+
* @summary Find fee by ID
|
|
966
|
+
* @request GET:/fees/{id}
|
|
967
|
+
* @secure
|
|
968
|
+
*/
|
|
969
|
+
findFee: (id, params = {}) => this.request({
|
|
970
|
+
path: `/fees/${id}`,
|
|
971
|
+
method: "GET",
|
|
972
|
+
secure: true,
|
|
973
|
+
format: "json",
|
|
974
|
+
...params,
|
|
975
|
+
}),
|
|
976
|
+
};
|
|
943
977
|
wallets = {
|
|
944
978
|
/**
|
|
945
979
|
* @description Create a new wallet
|
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.26.0-beta
|
|
156
156
|
* @baseUrl https://api.getlago.com/api/v1
|
|
157
157
|
* @externalDocs https://github.com/getlago
|
|
158
158
|
* @contact <tech@getlago.com>
|
|
@@ -583,6 +583,22 @@ class Api extends HttpClient {
|
|
|
583
583
|
format: "json",
|
|
584
584
|
...params,
|
|
585
585
|
}),
|
|
586
|
+
/**
|
|
587
|
+
* @description Delete customer's appplied coupon
|
|
588
|
+
*
|
|
589
|
+
* @tags customers
|
|
590
|
+
* @name DeleteAppliedCoupon
|
|
591
|
+
* @summary Delete customer's appplied coupon
|
|
592
|
+
* @request DELETE:/customers/{customer_external_id}/applied_coupons/{applied_coupon_id}
|
|
593
|
+
* @secure
|
|
594
|
+
*/
|
|
595
|
+
deleteAppliedCoupon: (customerExternalId, appliedCouponId, params = {}) => this.request({
|
|
596
|
+
path: `/customers/${customerExternalId}/applied_coupons/${appliedCouponId}`,
|
|
597
|
+
method: "DELETE",
|
|
598
|
+
secure: true,
|
|
599
|
+
format: "json",
|
|
600
|
+
...params,
|
|
601
|
+
}),
|
|
586
602
|
/**
|
|
587
603
|
* @description Find all customers in certain organisation
|
|
588
604
|
*
|
|
@@ -944,6 +960,24 @@ class Api extends HttpClient {
|
|
|
944
960
|
...params,
|
|
945
961
|
}),
|
|
946
962
|
};
|
|
963
|
+
fees = {
|
|
964
|
+
/**
|
|
965
|
+
* @description Return a single fee
|
|
966
|
+
*
|
|
967
|
+
* @tags fees
|
|
968
|
+
* @name FindFee
|
|
969
|
+
* @summary Find fee by ID
|
|
970
|
+
* @request GET:/fees/{id}
|
|
971
|
+
* @secure
|
|
972
|
+
*/
|
|
973
|
+
findFee: (id, params = {}) => this.request({
|
|
974
|
+
path: `/fees/${id}`,
|
|
975
|
+
method: "GET",
|
|
976
|
+
secure: true,
|
|
977
|
+
format: "json",
|
|
978
|
+
...params,
|
|
979
|
+
}),
|
|
980
|
+
};
|
|
947
981
|
wallets = {
|
|
948
982
|
/**
|
|
949
983
|
* @description Create a new wallet
|