lago-javascript-client 1.49.0 → 1.50.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.
- package/esm/openapi/client.d.ts +147 -14
- package/esm/openapi/client.js +27 -1
- package/esm/openapi/webhooks.d.ts +299 -14
- package/package.json +1 -1
- package/script/openapi/client.d.ts +147 -14
- package/script/openapi/client.js +27 -1
- package/script/openapi/webhooks.d.ts +299 -14
|
@@ -2904,6 +2904,7 @@ export interface paths {
|
|
|
2904
2904
|
};
|
|
2905
2905
|
/**
|
|
2906
2906
|
* Retrieve webhook public key
|
|
2907
|
+
* @deprecated
|
|
2907
2908
|
* @description This endpoint is used to retrieve the public key used to verify the webhooks signature
|
|
2908
2909
|
*/
|
|
2909
2910
|
get: operations["fetchPublicKey"];
|
|
@@ -2915,6 +2916,26 @@ export interface paths {
|
|
|
2915
2916
|
patch?: never;
|
|
2916
2917
|
trace?: never;
|
|
2917
2918
|
};
|
|
2919
|
+
"/webhooks/json_public_key": {
|
|
2920
|
+
parameters: {
|
|
2921
|
+
query?: never;
|
|
2922
|
+
header?: never;
|
|
2923
|
+
path?: never;
|
|
2924
|
+
cookie?: never;
|
|
2925
|
+
};
|
|
2926
|
+
/**
|
|
2927
|
+
* Retrieve webhook public key (JSON)
|
|
2928
|
+
* @description This endpoint is used to retrieve the public key used to verify the webhooks signature, wrapped in a JSON object. Prefer this endpoint over the deprecated GET /webhooks/public_key.
|
|
2929
|
+
*/
|
|
2930
|
+
get: operations["fetchJsonPublicKey"];
|
|
2931
|
+
put?: never;
|
|
2932
|
+
post?: never;
|
|
2933
|
+
delete?: never;
|
|
2934
|
+
options?: never;
|
|
2935
|
+
head?: never;
|
|
2936
|
+
patch?: never;
|
|
2937
|
+
trace?: never;
|
|
2938
|
+
};
|
|
2918
2939
|
"/webhook_endpoints": {
|
|
2919
2940
|
parameters: {
|
|
2920
2941
|
query?: never;
|
|
@@ -3953,6 +3974,46 @@ export interface webhooks {
|
|
|
3953
3974
|
patch?: never;
|
|
3954
3975
|
trace?: never;
|
|
3955
3976
|
};
|
|
3977
|
+
subscription_incomplete: {
|
|
3978
|
+
parameters: {
|
|
3979
|
+
query?: never;
|
|
3980
|
+
header?: never;
|
|
3981
|
+
path?: never;
|
|
3982
|
+
cookie?: never;
|
|
3983
|
+
};
|
|
3984
|
+
get?: never;
|
|
3985
|
+
put?: never;
|
|
3986
|
+
/**
|
|
3987
|
+
* A subscription is incomplete and waiting for payment
|
|
3988
|
+
* @description A payment-gated subscription has been created in the `incomplete` state and is waiting for the gating payment to succeed before it is activated.
|
|
3989
|
+
*/
|
|
3990
|
+
post: operations["subscriptionIncomplete"];
|
|
3991
|
+
delete?: never;
|
|
3992
|
+
options?: never;
|
|
3993
|
+
head?: never;
|
|
3994
|
+
patch?: never;
|
|
3995
|
+
trace?: never;
|
|
3996
|
+
};
|
|
3997
|
+
subscription_canceled: {
|
|
3998
|
+
parameters: {
|
|
3999
|
+
query?: never;
|
|
4000
|
+
header?: never;
|
|
4001
|
+
path?: never;
|
|
4002
|
+
cookie?: never;
|
|
4003
|
+
};
|
|
4004
|
+
get?: never;
|
|
4005
|
+
put?: never;
|
|
4006
|
+
/**
|
|
4007
|
+
* A subscription has been canceled
|
|
4008
|
+
* @description A subscription has been canceled before its activation. For payment-gated subscriptions this happens when the gating payment fails or the activation rule expires, in which case the `cancellation_reason` field is set.
|
|
4009
|
+
*/
|
|
4010
|
+
post: operations["subscriptionCanceled"];
|
|
4011
|
+
delete?: never;
|
|
4012
|
+
options?: never;
|
|
4013
|
+
head?: never;
|
|
4014
|
+
patch?: never;
|
|
4015
|
+
trace?: never;
|
|
4016
|
+
};
|
|
3956
4017
|
subscription_started: {
|
|
3957
4018
|
parameters: {
|
|
3958
4019
|
query?: never;
|
|
@@ -4515,7 +4576,7 @@ export interface components {
|
|
|
4515
4576
|
rate: number;
|
|
4516
4577
|
/**
|
|
4517
4578
|
* @deprecated
|
|
4518
|
-
* @description This field
|
|
4579
|
+
* @description **Deprecated.** This field will be removed in a future version. When set to true, it applies the tax to the organization's default billing entity. To apply or remove a tax from any billing entity (including the default one), please use the `PUT /billing_entities/:code` endpoint instead.
|
|
4519
4580
|
* @example true
|
|
4520
4581
|
*/
|
|
4521
4582
|
applied_to_organization: boolean;
|
|
@@ -4560,7 +4621,7 @@ export interface components {
|
|
|
4560
4621
|
display_name?: string;
|
|
4561
4622
|
/**
|
|
4562
4623
|
* @deprecated
|
|
4563
|
-
* @description This field
|
|
4624
|
+
* @description **Deprecated.** This field will be removed in a future version. When set to true, it applies the invoice custom section to the organization's default billing entity. To apply or remove an invoice custom section from any billing entity (including the default one), please use the `PUT /billing_entities/:code` endpoint instead.
|
|
4564
4625
|
* @example true
|
|
4565
4626
|
*/
|
|
4566
4627
|
applied_to_organization?: boolean;
|
|
@@ -8154,7 +8215,7 @@ export interface components {
|
|
|
8154
8215
|
/**
|
|
8155
8216
|
* Format: uuid
|
|
8156
8217
|
* @deprecated
|
|
8157
|
-
* @description Unique identifier of the invoice custom section that was applied.
|
|
8218
|
+
* @description **Deprecated.** Unique identifier of the invoice custom section that was applied.
|
|
8158
8219
|
* @example 1a901a90-1a90-1a90-1a90-1a901a901a90
|
|
8159
8220
|
*/
|
|
8160
8221
|
invoice_custom_section_id?: string;
|
|
@@ -8175,6 +8236,56 @@ export interface components {
|
|
|
8175
8236
|
*/
|
|
8176
8237
|
payment_method_id?: string;
|
|
8177
8238
|
};
|
|
8239
|
+
SubscriptionActivationRuleObject: {
|
|
8240
|
+
/**
|
|
8241
|
+
* Format: uuid
|
|
8242
|
+
* @description Unique identifier assigned to the activation rule within the Lago application. This ID is exclusively created by Lago.
|
|
8243
|
+
* @example 1a901a90-1a90-1a90-1a90-1a901a901a90
|
|
8244
|
+
*/
|
|
8245
|
+
lago_id: string;
|
|
8246
|
+
/**
|
|
8247
|
+
* @description The type of the activation rule. Only `payment` is currently supported. A `payment` rule gates the subscription activation on a successful payment of the first invoice.
|
|
8248
|
+
* @example payment
|
|
8249
|
+
* @enum {string}
|
|
8250
|
+
*/
|
|
8251
|
+
type: "payment";
|
|
8252
|
+
/**
|
|
8253
|
+
* @description The number of hours the subscription stays in the `incomplete` state waiting for the payment to succeed before it is automatically canceled.
|
|
8254
|
+
* @example 48
|
|
8255
|
+
*/
|
|
8256
|
+
timeout_hours: number;
|
|
8257
|
+
/**
|
|
8258
|
+
* @description The evaluation status of the activation rule:
|
|
8259
|
+
* - `inactive`: the rule has not been evaluated yet.
|
|
8260
|
+
* - `pending`: the rule is applicable and is waiting to be satisfied (e.g. waiting for the payment).
|
|
8261
|
+
* - `satisfied`: the rule has been satisfied and no longer blocks activation.
|
|
8262
|
+
* - `declined`: the rule was applicable but was declined.
|
|
8263
|
+
* - `failed`: the rule could not be satisfied (e.g. the payment failed).
|
|
8264
|
+
* - `expired`: the rule was not satisfied before its timeout elapsed.
|
|
8265
|
+
* - `not_applicable`: the rule did not apply to this subscription.
|
|
8266
|
+
* @example pending
|
|
8267
|
+
* @enum {string}
|
|
8268
|
+
*/
|
|
8269
|
+
status: "inactive" | "pending" | "satisfied" | "declined" | "failed" | "expired" | "not_applicable";
|
|
8270
|
+
/**
|
|
8271
|
+
* Format: date-time
|
|
8272
|
+
* @description The date and time when the rule expires, after which an unsatisfied rule causes the subscription to be canceled. Represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). Null until the rule starts being evaluated.
|
|
8273
|
+
* @example 2022-08-10T00:00:00Z
|
|
8274
|
+
*/
|
|
8275
|
+
expires_at?: string | null;
|
|
8276
|
+
/**
|
|
8277
|
+
* Format: date-time
|
|
8278
|
+
* @description The creation date of the activation rule, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC).
|
|
8279
|
+
* @example 2022-08-08T00:00:00Z
|
|
8280
|
+
*/
|
|
8281
|
+
created_at: string;
|
|
8282
|
+
/**
|
|
8283
|
+
* Format: date-time
|
|
8284
|
+
* @description The last update date of the activation rule, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC).
|
|
8285
|
+
* @example 2022-08-08T00:00:00Z
|
|
8286
|
+
*/
|
|
8287
|
+
updated_at: string;
|
|
8288
|
+
};
|
|
8178
8289
|
SubscriptionObject: {
|
|
8179
8290
|
/**
|
|
8180
8291
|
* Format: uuid
|
|
@@ -8232,13 +8343,14 @@ export interface components {
|
|
|
8232
8343
|
/**
|
|
8233
8344
|
* @description The status of the subscription, which can have the following values:
|
|
8234
8345
|
* - `active`: the subscription is currently active and applied to the customer.
|
|
8235
|
-
* - `canceled`: the subscription has been stopped before its activation. This can occur when two consecutive downgrades have been applied to a customer
|
|
8346
|
+
* - `canceled`: the subscription has been stopped before its activation. This can occur when two consecutive downgrades have been applied to a customer, when a subscription with a pending status is terminated, or when a payment-gated subscription fails to be paid (or its activation rule expires) before activation. When caused by payment gating, the `cancellation_reason` field is set.
|
|
8347
|
+
* - `incomplete`: the subscription was created with a payment activation rule and is waiting for the gating payment to succeed before it becomes `active`. It is automatically `canceled` if the payment fails or the activation rule expires.
|
|
8236
8348
|
* - `pending`: a previous subscription has been downgraded, and the current one is awaiting automatic activation at the end of the billing period.
|
|
8237
8349
|
* - `terminated`: the subscription is no longer active.
|
|
8238
8350
|
* @example active
|
|
8239
8351
|
* @enum {string}
|
|
8240
8352
|
*/
|
|
8241
|
-
status: "active" | "canceled" | "pending" | "terminated";
|
|
8353
|
+
status: "active" | "canceled" | "incomplete" | "pending" | "terminated";
|
|
8242
8354
|
/**
|
|
8243
8355
|
* Format: date-time
|
|
8244
8356
|
* @description The creation date of the subscription, represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). This date provides a timestamp indicating when the subscription was initially created.
|
|
@@ -8347,6 +8459,23 @@ export interface components {
|
|
|
8347
8459
|
* @example true
|
|
8348
8460
|
*/
|
|
8349
8461
|
consolidate_invoice: boolean;
|
|
8462
|
+
/**
|
|
8463
|
+
* @description The reason a payment-gated subscription was canceled before activation. Null unless the subscription was canceled by payment gating.
|
|
8464
|
+
*
|
|
8465
|
+
* - `payment_failed`: the gating payment failed.
|
|
8466
|
+
* - `timeout`: the activation rule expired before the payment succeeded.
|
|
8467
|
+
* @example payment_failed
|
|
8468
|
+
* @enum {string|null}
|
|
8469
|
+
*/
|
|
8470
|
+
cancellation_reason?: "payment_failed" | "timeout" | null;
|
|
8471
|
+
/**
|
|
8472
|
+
* Format: date-time
|
|
8473
|
+
* @description The date and time when a payment-gated subscription was activated (i.e. moved from `incomplete` to `active` once the gating payment succeeded), represented in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC). Null while the subscription is still `incomplete`.
|
|
8474
|
+
* @example 2022-08-08T00:00:00Z
|
|
8475
|
+
*/
|
|
8476
|
+
activated_at?: string | null;
|
|
8477
|
+
/** @description The activation rules attached to the subscription. A payment activation rule gates activation on a successful first payment, keeping the subscription in the `incomplete` state until the payment succeeds or the rule expires. */
|
|
8478
|
+
activation_rules?: components["schemas"]["SubscriptionActivationRuleObject"][];
|
|
8350
8479
|
};
|
|
8351
8480
|
SubscriptionsPaginated: {
|
|
8352
8481
|
subscriptions: components["schemas"]["SubscriptionObject"][];
|
|
@@ -9700,8 +9829,7 @@ export interface components {
|
|
|
9700
9829
|
};
|
|
9701
9830
|
EventObject: {
|
|
9702
9831
|
/**
|
|
9703
|
-
*
|
|
9704
|
-
* @description Unique identifier assigned to the event within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the event's record within the Lago system
|
|
9832
|
+
* @description Unique identifier assigned to the event within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the event's record within the Lago system. It is an opaque identifier and is not guaranteed to be a UUID; on organizations using the ClickHouse events store it is a composite string.
|
|
9705
9833
|
* @example 1a901a90-1a90-1a90-1a90-1a901a901a90
|
|
9706
9834
|
*/
|
|
9707
9835
|
lago_id?: string | null;
|
|
@@ -10819,8 +10947,8 @@ export interface components {
|
|
|
10819
10947
|
ChargeProperties: {
|
|
10820
10948
|
/**
|
|
10821
10949
|
* @deprecated
|
|
10822
|
-
* @description
|
|
10823
|
-
*
|
|
10950
|
+
* @description **Deprecated.** Replaced by `pricing_group_keys`.
|
|
10951
|
+
* The list of event properties that are used to group the events on the invoice for a `standard` charge model.
|
|
10824
10952
|
* @example [
|
|
10825
10953
|
* "agent_name"
|
|
10826
10954
|
* ]
|
|
@@ -12874,6 +13002,19 @@ export interface components {
|
|
|
12874
13002
|
usage_thresholds?: components["schemas"]["UsageThresholdInput"][];
|
|
12875
13003
|
metadata?: components["schemas"]["MetadataInput"];
|
|
12876
13004
|
};
|
|
13005
|
+
SubscriptionActivationRuleInput: {
|
|
13006
|
+
/**
|
|
13007
|
+
* @description The type of the activation rule. Only `payment` is currently supported. A `payment` rule gates the subscription activation on a successful payment of the first invoice.
|
|
13008
|
+
* @example payment
|
|
13009
|
+
* @enum {string}
|
|
13010
|
+
*/
|
|
13011
|
+
type: "payment";
|
|
13012
|
+
/**
|
|
13013
|
+
* @description The number of hours the subscription stays in the `incomplete` state waiting for the payment to succeed before it is automatically canceled. Must be a positive integer or zero.
|
|
13014
|
+
* @example 48
|
|
13015
|
+
*/
|
|
13016
|
+
timeout_hours?: number;
|
|
13017
|
+
};
|
|
12877
13018
|
SubscriptionCreateInput: {
|
|
12878
13019
|
/**
|
|
12879
13020
|
* @description Optionally, you can create a pre-authorization on the customer's card before creating a subscription. This process places a temporary hold (capture) for a specified amount on the customer's account, but does not actually withdraw the funds.
|
|
@@ -12954,6 +13095,8 @@ export interface components {
|
|
|
12954
13095
|
* @example true
|
|
12955
13096
|
*/
|
|
12956
13097
|
consolidate_invoice: boolean;
|
|
13098
|
+
/** @description Optional list of activation rules that gate the subscription activation. When a `payment` rule is provided and the plan is paid in advance (and the subscription is not in a trial), the subscription is created in the `incomplete` state and is only activated once the gating payment succeeds. If the payment fails or the rule's `timeout_hours` elapses, the subscription is canceled. */
|
|
13099
|
+
activation_rules?: components["schemas"]["SubscriptionActivationRuleInput"][];
|
|
12957
13100
|
};
|
|
12958
13101
|
};
|
|
12959
13102
|
ApplicableUsageThreshold: {
|
|
@@ -13024,6 +13167,8 @@ export interface components {
|
|
|
13024
13167
|
* @example default
|
|
13025
13168
|
*/
|
|
13026
13169
|
billing_entity_code?: string;
|
|
13170
|
+
/** @description Optional list of activation rules that gate the subscription activation. Activation rules can only be set or modified while the subscription is `pending` (future-dated and not yet activated); the request is rejected for `incomplete`, `active`, or `terminated` subscriptions. */
|
|
13171
|
+
activation_rules?: components["schemas"]["SubscriptionActivationRuleInput"][];
|
|
13027
13172
|
};
|
|
13028
13173
|
};
|
|
13029
13174
|
Subscription: {
|
|
@@ -13357,7 +13502,7 @@ export interface components {
|
|
|
13357
13502
|
description?: string | null;
|
|
13358
13503
|
/**
|
|
13359
13504
|
* @deprecated
|
|
13360
|
-
* @description This field
|
|
13505
|
+
* @description **Deprecated.** This field will be removed in a future version. When set to true, it applies the tax to the organization's default billing entity. To apply or remove a tax from any billing entity (including the default one), please use the `PUT /billing_entities/:code` endpoint instead.
|
|
13361
13506
|
* @example true
|
|
13362
13507
|
*/
|
|
13363
13508
|
applied_to_organization?: boolean;
|
|
@@ -13665,6 +13810,16 @@ export interface components {
|
|
|
13665
13810
|
WalletTransactionsPaginated: components["schemas"]["WalletTransactions"] & {
|
|
13666
13811
|
meta: components["schemas"]["PaginationMeta"];
|
|
13667
13812
|
};
|
|
13813
|
+
WebhookPublicKeyObject: {
|
|
13814
|
+
/**
|
|
13815
|
+
* @description Base64-encoded public key used to verify webhook signatures.
|
|
13816
|
+
* @example MEgCQQCo9+BpMRYQ/dL3DS2CyJxRF+j6ctbT3/Qp84+KeFhnii7NT7fELilKUSnxS30WAvQCCo2yU1orfgqr41mM70MBAgMBAAE=
|
|
13817
|
+
*/
|
|
13818
|
+
public_key: string;
|
|
13819
|
+
};
|
|
13820
|
+
WebhookPublicKey: {
|
|
13821
|
+
webhook: components["schemas"]["WebhookPublicKeyObject"];
|
|
13822
|
+
};
|
|
13668
13823
|
WebhookEndpointObject: {
|
|
13669
13824
|
/**
|
|
13670
13825
|
* Format: uuid
|
|
@@ -13936,6 +14091,18 @@ export interface components {
|
|
|
13936
14091
|
[key: string]: unknown;
|
|
13937
14092
|
};
|
|
13938
14093
|
};
|
|
14094
|
+
OverdueBalancePerCurrencyObject: {
|
|
14095
|
+
/**
|
|
14096
|
+
* @description The amount of the overdue balance for this currency, expressed in cents.
|
|
14097
|
+
* @example 120
|
|
14098
|
+
*/
|
|
14099
|
+
amount_cents: number;
|
|
14100
|
+
/**
|
|
14101
|
+
* @description The currency of the overdue balance.
|
|
14102
|
+
* @example EUR
|
|
14103
|
+
*/
|
|
14104
|
+
currency: components["schemas"]["Currency"];
|
|
14105
|
+
};
|
|
13939
14106
|
DunningCampaignFinishedObject: {
|
|
13940
14107
|
/**
|
|
13941
14108
|
* @description The customer external unique identifier (provided by your own application).
|
|
@@ -13957,6 +14124,8 @@ export interface components {
|
|
|
13957
14124
|
* @example EUR
|
|
13958
14125
|
*/
|
|
13959
14126
|
overdue_balance_currency: components["schemas"]["Currency"];
|
|
14127
|
+
/** @description Overdue balance broken down per currency. */
|
|
14128
|
+
overdue_balances?: components["schemas"]["OverdueBalancePerCurrencyObject"][];
|
|
13960
14129
|
};
|
|
13961
14130
|
EventErrorsObject: {
|
|
13962
14131
|
/**
|
|
@@ -13996,7 +14165,10 @@ export interface components {
|
|
|
13996
14165
|
* ]
|
|
13997
14166
|
*/
|
|
13998
14167
|
invalid_filter_values: string[];
|
|
13999
|
-
/**
|
|
14168
|
+
/**
|
|
14169
|
+
* @deprecated
|
|
14170
|
+
* @description **Deprecated.** List of event transaction_id with a missing group key.
|
|
14171
|
+
*/
|
|
14000
14172
|
missing_group_key: string[];
|
|
14001
14173
|
};
|
|
14002
14174
|
FeeTaxProviderErrorObject: {
|
|
@@ -14291,6 +14463,8 @@ export interface components {
|
|
|
14291
14463
|
wallet_code: string;
|
|
14292
14464
|
/** @description Unique identifier assigned to the invoice within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the invoice's record within the Lago system. */
|
|
14293
14465
|
lago_invoice_id: string;
|
|
14466
|
+
/** @description Filter the results by currency, expressed as an ISO 4217 code. */
|
|
14467
|
+
currency: string;
|
|
14294
14468
|
/** @description Code of the existing plan. */
|
|
14295
14469
|
plan_code: string;
|
|
14296
14470
|
/** @description Code of the existing charge. */
|
|
@@ -16649,17 +16823,17 @@ export interface operations {
|
|
|
16649
16823
|
};
|
|
16650
16824
|
/**
|
|
16651
16825
|
* @deprecated
|
|
16652
|
-
* @description Filter usage to a specific charge by its Lago ID (UUID).
|
|
16826
|
+
* @description **Deprecated.** Filter usage to a specific charge by its Lago ID (UUID).
|
|
16653
16827
|
*/
|
|
16654
16828
|
filter_by_charge_id?: string;
|
|
16655
16829
|
/**
|
|
16656
16830
|
* @deprecated
|
|
16657
|
-
* @description Filter usage to a specific charge by its code.
|
|
16831
|
+
* @description **Deprecated.** Filter usage to a specific charge by its code.
|
|
16658
16832
|
*/
|
|
16659
16833
|
filter_by_charge_code?: string;
|
|
16660
16834
|
/**
|
|
16661
16835
|
* @deprecated
|
|
16662
|
-
* @description Filter usage by pricing group. Pass key/value pairs as query parameters, e.g. `filter_by_group[cloud]=aws`.
|
|
16836
|
+
* @description **Deprecated.** Filter usage by pricing group. Pass key/value pairs as query parameters, e.g. `filter_by_group[cloud]=aws`.
|
|
16663
16837
|
*/
|
|
16664
16838
|
filter_by_group?: {
|
|
16665
16839
|
[key: string]: string;
|
|
@@ -17693,6 +17867,8 @@ export interface operations {
|
|
|
17693
17867
|
page?: components["parameters"]["page"];
|
|
17694
17868
|
/** @description Number of records per page. */
|
|
17695
17869
|
per_page?: components["parameters"]["per_page"];
|
|
17870
|
+
/** @description Filter the results by currency, expressed as an ISO 4217 code. */
|
|
17871
|
+
currency?: components["parameters"]["currency"];
|
|
17696
17872
|
/** @description Unique identifier assigned to the customer in your application. */
|
|
17697
17873
|
external_customer_id?: components["parameters"]["external_customer_id"];
|
|
17698
17874
|
/** @description Filter by payment status. Possible values are `pending`, `failed` or `succeeded`. */
|
|
@@ -18757,6 +18933,8 @@ export interface operations {
|
|
|
18757
18933
|
page?: components["parameters"]["page"];
|
|
18758
18934
|
/** @description Number of records per page. */
|
|
18759
18935
|
per_page?: components["parameters"]["per_page"];
|
|
18936
|
+
/** @description Filter the results by currency, expressed as an ISO 4217 code. */
|
|
18937
|
+
currency?: components["parameters"]["currency"];
|
|
18760
18938
|
/** @description The customer external unique identifier (provided by your own application) */
|
|
18761
18939
|
external_customer_id?: string;
|
|
18762
18940
|
/** @description The unique code representing the plan to be attached to the customer. This code must correspond to the code property of one of the active plans. */
|
|
@@ -19845,6 +20023,8 @@ export interface operations {
|
|
|
19845
20023
|
page?: components["parameters"]["page"];
|
|
19846
20024
|
/** @description Number of records per page. */
|
|
19847
20025
|
per_page?: components["parameters"]["per_page"];
|
|
20026
|
+
/** @description Filter the results by currency, expressed as an ISO 4217 code. */
|
|
20027
|
+
currency?: components["parameters"]["currency"];
|
|
19848
20028
|
/** @description The customer external unique identifier (provided by your own application). */
|
|
19849
20029
|
external_customer_id: string;
|
|
19850
20030
|
/** @description Filter wallets by billing entity codes. */
|
|
@@ -20300,6 +20480,27 @@ export interface operations {
|
|
|
20300
20480
|
401: components["responses"]["Unauthorized"];
|
|
20301
20481
|
};
|
|
20302
20482
|
};
|
|
20483
|
+
fetchJsonPublicKey: {
|
|
20484
|
+
parameters: {
|
|
20485
|
+
query?: never;
|
|
20486
|
+
header?: never;
|
|
20487
|
+
path?: never;
|
|
20488
|
+
cookie?: never;
|
|
20489
|
+
};
|
|
20490
|
+
requestBody?: never;
|
|
20491
|
+
responses: {
|
|
20492
|
+
/** @description Public key */
|
|
20493
|
+
200: {
|
|
20494
|
+
headers: {
|
|
20495
|
+
[name: string]: unknown;
|
|
20496
|
+
};
|
|
20497
|
+
content: {
|
|
20498
|
+
"application/json": components["schemas"]["WebhookPublicKey"];
|
|
20499
|
+
};
|
|
20500
|
+
};
|
|
20501
|
+
401: components["responses"]["Unauthorized"];
|
|
20502
|
+
};
|
|
20503
|
+
};
|
|
20303
20504
|
findAllWebhookEndpoints: {
|
|
20304
20505
|
parameters: {
|
|
20305
20506
|
query?: {
|
|
@@ -22489,6 +22690,90 @@ export interface operations {
|
|
|
22489
22690
|
};
|
|
22490
22691
|
};
|
|
22491
22692
|
};
|
|
22693
|
+
subscriptionIncomplete: {
|
|
22694
|
+
parameters: {
|
|
22695
|
+
query?: never;
|
|
22696
|
+
header: {
|
|
22697
|
+
/** @description Signature of the webhook payload */
|
|
22698
|
+
"X-Lago-Signature": components["parameters"]["webhook_signature"];
|
|
22699
|
+
/** @description Algorithm used to generate the signature */
|
|
22700
|
+
"X-Lago-Signature-Algorithm": components["parameters"]["webhook_signature_algorithm"];
|
|
22701
|
+
/** @description Unique id of the webhook. It can be used for idempotency */
|
|
22702
|
+
"X-Lago-Unique-Key": components["parameters"]["webhook_unique_key"];
|
|
22703
|
+
};
|
|
22704
|
+
path?: never;
|
|
22705
|
+
cookie?: never;
|
|
22706
|
+
};
|
|
22707
|
+
/** @description Details of the subscription */
|
|
22708
|
+
requestBody?: {
|
|
22709
|
+
content: {
|
|
22710
|
+
"application/json": {
|
|
22711
|
+
/** @enum {string} */
|
|
22712
|
+
webhook_type: "subscription.incomplete";
|
|
22713
|
+
/** @enum {string} */
|
|
22714
|
+
object_type: "subscription";
|
|
22715
|
+
/**
|
|
22716
|
+
* Format: uuid
|
|
22717
|
+
* @description Unique identifier of the organization, created by Lago.
|
|
22718
|
+
* @example 1a901a90-1a90-1a90-1a90-1a901a901a90
|
|
22719
|
+
*/
|
|
22720
|
+
organization_id: string;
|
|
22721
|
+
subscription: components["schemas"]["SubscriptionWithCustomerObject"];
|
|
22722
|
+
};
|
|
22723
|
+
};
|
|
22724
|
+
};
|
|
22725
|
+
responses: {
|
|
22726
|
+
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
22727
|
+
200: {
|
|
22728
|
+
headers: {
|
|
22729
|
+
[name: string]: unknown;
|
|
22730
|
+
};
|
|
22731
|
+
content?: never;
|
|
22732
|
+
};
|
|
22733
|
+
};
|
|
22734
|
+
};
|
|
22735
|
+
subscriptionCanceled: {
|
|
22736
|
+
parameters: {
|
|
22737
|
+
query?: never;
|
|
22738
|
+
header: {
|
|
22739
|
+
/** @description Signature of the webhook payload */
|
|
22740
|
+
"X-Lago-Signature": components["parameters"]["webhook_signature"];
|
|
22741
|
+
/** @description Algorithm used to generate the signature */
|
|
22742
|
+
"X-Lago-Signature-Algorithm": components["parameters"]["webhook_signature_algorithm"];
|
|
22743
|
+
/** @description Unique id of the webhook. It can be used for idempotency */
|
|
22744
|
+
"X-Lago-Unique-Key": components["parameters"]["webhook_unique_key"];
|
|
22745
|
+
};
|
|
22746
|
+
path?: never;
|
|
22747
|
+
cookie?: never;
|
|
22748
|
+
};
|
|
22749
|
+
/** @description Details of the subscription */
|
|
22750
|
+
requestBody?: {
|
|
22751
|
+
content: {
|
|
22752
|
+
"application/json": {
|
|
22753
|
+
/** @enum {string} */
|
|
22754
|
+
webhook_type: "subscription.canceled";
|
|
22755
|
+
/** @enum {string} */
|
|
22756
|
+
object_type: "subscription";
|
|
22757
|
+
/**
|
|
22758
|
+
* Format: uuid
|
|
22759
|
+
* @description Unique identifier of the organization, created by Lago.
|
|
22760
|
+
* @example 1a901a90-1a90-1a90-1a90-1a901a901a90
|
|
22761
|
+
*/
|
|
22762
|
+
organization_id: string;
|
|
22763
|
+
subscription: components["schemas"]["SubscriptionWithCustomerObject"];
|
|
22764
|
+
};
|
|
22765
|
+
};
|
|
22766
|
+
};
|
|
22767
|
+
responses: {
|
|
22768
|
+
/** @description Return a 200 status to indicate that the data was received successfully */
|
|
22769
|
+
200: {
|
|
22770
|
+
headers: {
|
|
22771
|
+
[name: string]: unknown;
|
|
22772
|
+
};
|
|
22773
|
+
content?: never;
|
|
22774
|
+
};
|
|
22775
|
+
};
|
|
22776
|
+
};
|
|
22492
22777
|
subscriptionStarted: {
|
|
22493
22778
|
parameters: {
|
|
22494
22779
|
query?: never;
|