lago-javascript-client 0.32.0-beta → 0.35.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/openapi/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.35.0-beta
|
|
152
152
|
* @baseUrl https://api.getlago.com/api/v1
|
|
153
153
|
* @externalDocs https://github.com/getlago
|
|
154
154
|
* @contact <tech@getlago.com>
|
|
@@ -681,11 +681,11 @@ export class Api extends HttpClient {
|
|
|
681
681
|
...params,
|
|
682
682
|
}),
|
|
683
683
|
/**
|
|
684
|
-
* @description Estimate the fees that would be created after reception of an event for a billable metric attached to one or multiple
|
|
684
|
+
* @description Estimate the fees that would be created after reception of an event for a billable metric attached to one or multiple pay in advance charges
|
|
685
685
|
*
|
|
686
686
|
* @tags events
|
|
687
687
|
* @name EventEstimateFees
|
|
688
|
-
* @summary Estimate fees for an
|
|
688
|
+
* @summary Estimate fees for an pay in advance charge
|
|
689
689
|
* @request POST:/events/estimate_fees
|
|
690
690
|
* @secure
|
|
691
691
|
*/
|
package/package.json
CHANGED
package/script/openapi/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.35.0-beta
|
|
156
156
|
* @baseUrl https://api.getlago.com/api/v1
|
|
157
157
|
* @externalDocs https://github.com/getlago
|
|
158
158
|
* @contact <tech@getlago.com>
|
|
@@ -685,11 +685,11 @@ class Api extends HttpClient {
|
|
|
685
685
|
...params,
|
|
686
686
|
}),
|
|
687
687
|
/**
|
|
688
|
-
* @description Estimate the fees that would be created after reception of an event for a billable metric attached to one or multiple
|
|
688
|
+
* @description Estimate the fees that would be created after reception of an event for a billable metric attached to one or multiple pay in advance charges
|
|
689
689
|
*
|
|
690
690
|
* @tags events
|
|
691
691
|
* @name EventEstimateFees
|
|
692
|
-
* @summary Estimate fees for an
|
|
692
|
+
* @summary Estimate fees for an pay in advance charge
|
|
693
693
|
* @request POST:/events/estimate_fees
|
|
694
694
|
* @secure
|
|
695
695
|
*/
|
|
@@ -567,7 +567,7 @@ export interface ChargeUsageObject {
|
|
|
567
567
|
lago_id?: string;
|
|
568
568
|
/** Charge model type */
|
|
569
569
|
charge_model?: "standard" | "graduated" | "package" | "percentage" | "volume";
|
|
570
|
-
|
|
570
|
+
pay_in_advance?: boolean;
|
|
571
571
|
/** @example 1200 */
|
|
572
572
|
min_amount_cents?: number;
|
|
573
573
|
};
|
|
@@ -750,7 +750,9 @@ export interface ChargeObject {
|
|
|
750
750
|
/** Charge model type */
|
|
751
751
|
charge_model: "standard" | "graduated" | "package" | "percentage" | "volume";
|
|
752
752
|
/** @example true */
|
|
753
|
-
|
|
753
|
+
pay_in_advance?: boolean;
|
|
754
|
+
/** @example true */
|
|
755
|
+
invoiceable?: boolean;
|
|
754
756
|
/** @example 1200 */
|
|
755
757
|
min_amount_cents?: number;
|
|
756
758
|
properties?: object;
|
|
@@ -831,7 +833,8 @@ export interface PlanInput {
|
|
|
831
833
|
billable_metric_id?: string;
|
|
832
834
|
/** Charge model type */
|
|
833
835
|
charge_model?: "standard" | "graduated" | "package" | "percentage" | "volume";
|
|
834
|
-
|
|
836
|
+
pay_in_advance?: boolean;
|
|
837
|
+
invoiceable?: boolean;
|
|
835
838
|
min_amount_cents?: number;
|
|
836
839
|
properties?: object;
|
|
837
840
|
group_properties?: {
|
|
@@ -1015,6 +1018,10 @@ export interface FeeObject {
|
|
|
1015
1018
|
total_amount_currency?: string;
|
|
1016
1019
|
/** @example 5 */
|
|
1017
1020
|
events_count?: number;
|
|
1021
|
+
/** @example true */
|
|
1022
|
+
pay_in_advance?: boolean;
|
|
1023
|
+
/** @example true */
|
|
1024
|
+
invoiceable?: boolean;
|
|
1018
1025
|
/**
|
|
1019
1026
|
* @format date-time
|
|
1020
1027
|
* @example "2022-08-08T00:00:00Z"
|
|
@@ -1623,7 +1630,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
1623
1630
|
}
|
|
1624
1631
|
/**
|
|
1625
1632
|
* @title Lago API documentation
|
|
1626
|
-
* @version 0.
|
|
1633
|
+
* @version 0.35.0-beta
|
|
1627
1634
|
* @baseUrl https://api.getlago.com/api/v1
|
|
1628
1635
|
* @externalDocs https://github.com/getlago
|
|
1629
1636
|
* @contact <tech@getlago.com>
|
|
@@ -2031,11 +2038,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2031
2038
|
*/
|
|
2032
2039
|
findEvent: (id: string, params?: RequestParams) => Promise<HttpResponse<Event, ApiResponseUnauthorized | ApiResponseNotFound>>;
|
|
2033
2040
|
/**
|
|
2034
|
-
* @description Estimate the fees that would be created after reception of an event for a billable metric attached to one or multiple
|
|
2041
|
+
* @description Estimate the fees that would be created after reception of an event for a billable metric attached to one or multiple pay in advance charges
|
|
2035
2042
|
*
|
|
2036
2043
|
* @tags events
|
|
2037
2044
|
* @name EventEstimateFees
|
|
2038
|
-
* @summary Estimate fees for an
|
|
2045
|
+
* @summary Estimate fees for an pay in advance charge
|
|
2039
2046
|
* @request POST:/events/estimate_fees
|
|
2040
2047
|
* @secure
|
|
2041
2048
|
*/
|
|
@@ -2124,7 +2131,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2124
2131
|
* @request GET:/subscriptions
|
|
2125
2132
|
* @secure
|
|
2126
2133
|
*/
|
|
2127
|
-
findAllSubscriptions: (query
|
|
2134
|
+
findAllSubscriptions: (query?: {
|
|
2128
2135
|
/**
|
|
2129
2136
|
* Number of page
|
|
2130
2137
|
* @example 2
|
|
@@ -2139,7 +2146,12 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2139
2146
|
* External customer ID
|
|
2140
2147
|
* @example "12345"
|
|
2141
2148
|
*/
|
|
2142
|
-
external_customer_id
|
|
2149
|
+
external_customer_id?: string;
|
|
2150
|
+
/**
|
|
2151
|
+
* Code of the plan attached to the subscription
|
|
2152
|
+
* @example "example_code"
|
|
2153
|
+
*/
|
|
2154
|
+
plan_code?: string;
|
|
2143
2155
|
}, params?: RequestParams) => Promise<HttpResponse<SubscriptionsPaginated, ApiResponseUnauthorized | ApiResponseNotFound>>;
|
|
2144
2156
|
/**
|
|
2145
2157
|
* @description Update an existing subscription by external ID
|