lago-javascript-client 0.44.0-beta → 0.45.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 +1 -1
- package/package.json +1 -1
- package/script/openapi/client.js +1 -1
- package/types/openapi/client.d.ts +40 -13
package/esm/openapi/client.js
CHANGED
package/package.json
CHANGED
package/script/openapi/client.js
CHANGED
|
@@ -685,7 +685,7 @@ class HttpClient {
|
|
|
685
685
|
exports.HttpClient = HttpClient;
|
|
686
686
|
/**
|
|
687
687
|
* @title Lago API documentation
|
|
688
|
-
* @version 0.
|
|
688
|
+
* @version 0.45.0-beta
|
|
689
689
|
* @license AGPLv3
|
|
690
690
|
* @baseUrl https://api.getlago.com/api/v1
|
|
691
691
|
* @externalDocs https://github.com/getlago
|
|
@@ -564,8 +564,8 @@ export interface ChargeObject {
|
|
|
564
564
|
* @example "2022-09-14T16:35:31Z"
|
|
565
565
|
*/
|
|
566
566
|
created_at: string;
|
|
567
|
-
/** Specifies the pricing model used for the calculation of the final fee. It can be `standard`, `graduated`, `package`, `percentage` or `volume`. */
|
|
568
|
-
charge_model: "standard" | "graduated" | "package" | "percentage" | "volume";
|
|
567
|
+
/** Specifies the pricing model used for the calculation of the final fee. It can be `standard`, `graduated`, `graduated_percentage`, `package`, `percentage` or `volume`. */
|
|
568
|
+
charge_model: "standard" | "graduated" | "graduated_percentage" | "package" | "percentage" | "volume";
|
|
569
569
|
/**
|
|
570
570
|
* This field determines the billing timing for this specific usage-based charge. When set to `true`, the charge is due and invoiced immediately. Conversely, when set to `false`, the charge is due and invoiced at the end of each billing period.
|
|
571
571
|
* @example true
|
|
@@ -625,6 +625,33 @@ export interface ChargeProperties {
|
|
|
625
625
|
*/
|
|
626
626
|
per_unit_amount: string;
|
|
627
627
|
}[];
|
|
628
|
+
/** Graduated percentage ranges, sorted from bottom to top tiers, used for a `graduated_percentage` charge model. */
|
|
629
|
+
graduated_percentage_ranges?: {
|
|
630
|
+
/**
|
|
631
|
+
* Specifies the lower value of a tier for a `graduated_percentage` charge model. It must be either 0 or the previous range's `to_value + 1` to maintain the proper sequence of values.
|
|
632
|
+
* @example 0
|
|
633
|
+
*/
|
|
634
|
+
from_value: number;
|
|
635
|
+
/**
|
|
636
|
+
* Specifies the highest value of a tier for a `graduated_percentage` charge model.
|
|
637
|
+
* - This value must be higher than the from_value of the same tier.
|
|
638
|
+
* - This value must be null for the last tier.
|
|
639
|
+
* @example 10
|
|
640
|
+
*/
|
|
641
|
+
to_value: number | null;
|
|
642
|
+
/**
|
|
643
|
+
* The percentage rate that is applied to the amount of each transaction in the tier for a `graduated_percentage` charge model. It is expressed as a decimal value.
|
|
644
|
+
* @format ^[0-9]+.?[0-9]*$
|
|
645
|
+
* @example "1"
|
|
646
|
+
*/
|
|
647
|
+
rate: string;
|
|
648
|
+
/**
|
|
649
|
+
* The flat amount for a whole tier, excluding tax, for a `graduated_percentage` charge model. It is expressed as a decimal value.
|
|
650
|
+
* @format ^[0-9]+.?[0-9]*$
|
|
651
|
+
* @example "10"
|
|
652
|
+
*/
|
|
653
|
+
flat_amount: string;
|
|
654
|
+
}[];
|
|
628
655
|
/**
|
|
629
656
|
* - The unit price, excluding tax, for a `standard` charge model. It is expressed as a decimal value.
|
|
630
657
|
* - The amount, excluding tax, for a complete set of units in a `package` charge model. It is expressed as a decimal value.
|
|
@@ -2847,10 +2874,10 @@ export interface PlanCreateInput {
|
|
|
2847
2874
|
*/
|
|
2848
2875
|
code?: string;
|
|
2849
2876
|
/**
|
|
2850
|
-
* The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: `yearly`, `monthly`, or `weekly`.
|
|
2877
|
+
* The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: `yearly`, `quarterly`, `monthly`, or `weekly`.
|
|
2851
2878
|
* @example "monthly"
|
|
2852
2879
|
*/
|
|
2853
|
-
interval?: "weekly" | "monthly" | "yearly";
|
|
2880
|
+
interval?: "weekly" | "monthly" | "quarterly" | "yearly";
|
|
2854
2881
|
/**
|
|
2855
2882
|
* The description on the plan.
|
|
2856
2883
|
* @example "Plan for early stage startups."
|
|
@@ -2895,10 +2922,10 @@ export interface PlanCreateInput {
|
|
|
2895
2922
|
*/
|
|
2896
2923
|
billable_metric_id?: string;
|
|
2897
2924
|
/**
|
|
2898
|
-
* Specifies the pricing model used for the calculation of the final fee. It can be `standard`, `graduated`, `package`, `percentage` or `volume`.
|
|
2925
|
+
* Specifies the pricing model used for the calculation of the final fee. It can be `standard`, `graduated`, `graduated_percentage` `package`, `percentage` or `volume`.
|
|
2899
2926
|
* @example "standard"
|
|
2900
2927
|
*/
|
|
2901
|
-
charge_model?: "standard" | "graduated" | "package" | "percentage" | "volume";
|
|
2928
|
+
charge_model?: "standard" | "graduated" | "graduated_percentage" | "package" | "percentage" | "volume";
|
|
2902
2929
|
/**
|
|
2903
2930
|
* This field determines the billing timing for this specific usage-based charge. When set to `true`, the charge is due and invoiced immediately. Conversely, when set to false, the charge is due and invoiced at the end of each billing period.
|
|
2904
2931
|
* @example false
|
|
@@ -2956,10 +2983,10 @@ export interface PlanUpdateInput {
|
|
|
2956
2983
|
*/
|
|
2957
2984
|
code?: string;
|
|
2958
2985
|
/**
|
|
2959
|
-
* The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: `yearly`, `monthly`, or `weekly`.
|
|
2986
|
+
* The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: `yearly`, `quarterly`, `monthly`, or `weekly`.
|
|
2960
2987
|
* @example "monthly"
|
|
2961
2988
|
*/
|
|
2962
|
-
interval?: "weekly" | "monthly" | "yearly";
|
|
2989
|
+
interval?: "weekly" | "monthly" | "quarterly" | "yearly";
|
|
2963
2990
|
/**
|
|
2964
2991
|
* The description on the plan.
|
|
2965
2992
|
* @example "Plan for early stage startups."
|
|
@@ -3010,10 +3037,10 @@ export interface PlanUpdateInput {
|
|
|
3010
3037
|
*/
|
|
3011
3038
|
billable_metric_id?: string;
|
|
3012
3039
|
/**
|
|
3013
|
-
* Specifies the pricing model used for the calculation of the final fee. It can be `standard`, `graduated`, `package`, `percentage` or `volume`.
|
|
3040
|
+
* Specifies the pricing model used for the calculation of the final fee. It can be `standard`, `graduated`, `graduated_percentage`, `package`, `percentage` or `volume`.
|
|
3014
3041
|
* @example "standard"
|
|
3015
3042
|
*/
|
|
3016
|
-
charge_model?: "standard" | "graduated" | "package" | "percentage" | "volume";
|
|
3043
|
+
charge_model?: "standard" | "graduated" | "graduated_percentage" | "package" | "percentage" | "volume";
|
|
3017
3044
|
/**
|
|
3018
3045
|
* This field determines the billing timing for this specific usage-based charge. When set to `true`, the charge is due and invoiced immediately. Conversely, when set to false, the charge is due and invoiced at the end of each billing period.
|
|
3019
3046
|
* @example false
|
|
@@ -3082,10 +3109,10 @@ export interface PlanObject {
|
|
|
3082
3109
|
*/
|
|
3083
3110
|
code: string;
|
|
3084
3111
|
/**
|
|
3085
|
-
* The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: `yearly`, `monthly` or `weekly`.
|
|
3112
|
+
* The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: `yearly`, `quarterly`, `monthly` or `weekly`.
|
|
3086
3113
|
* @example "monthly"
|
|
3087
3114
|
*/
|
|
3088
|
-
interval: "weekly" | "monthly" | "yearly";
|
|
3115
|
+
interval: "weekly" | "monthly" | "quarterly" | "yearly";
|
|
3089
3116
|
/**
|
|
3090
3117
|
* The description on the plan.
|
|
3091
3118
|
* @example ""
|
|
@@ -3806,7 +3833,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
3806
3833
|
}
|
|
3807
3834
|
/**
|
|
3808
3835
|
* @title Lago API documentation
|
|
3809
|
-
* @version 0.
|
|
3836
|
+
* @version 0.45.0-beta
|
|
3810
3837
|
* @license AGPLv3
|
|
3811
3838
|
* @baseUrl https://api.getlago.com/api/v1
|
|
3812
3839
|
* @externalDocs https://github.com/getlago
|