lago-javascript-client 1.55.0 → 1.56.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 +1481 -972
- package/esm/openapi/client.js +46 -46
- package/esm/openapi/webhooks.d.ts +2035 -1018
- package/package.json +1 -1
- package/script/openapi/client.d.ts +1481 -972
- package/script/openapi/client.js +46 -46
- package/script/openapi/webhooks.d.ts +2035 -1018
package/esm/openapi/client.js
CHANGED
|
@@ -156,7 +156,7 @@ export class HttpClient {
|
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
158
|
* @title Lago API documentation
|
|
159
|
-
* @version 1.
|
|
159
|
+
* @version 1.56.0
|
|
160
160
|
* @license AGPLv3 (https://github.com/getlago/lago-openapi/blob/main/LICENSE)
|
|
161
161
|
* @baseUrl https://api.getlago.com/api/v1
|
|
162
162
|
* @externalDocs https://github.com/getlago
|
|
@@ -341,7 +341,7 @@ export class Api extends HttpClient {
|
|
|
341
341
|
...params,
|
|
342
342
|
}),
|
|
343
343
|
/**
|
|
344
|
-
* @description This endpoint is used to delete an existing add-on.
|
|
344
|
+
* @description This endpoint is used to delete an existing add-on. The fixed charges that use this add-on are deleted too.
|
|
345
345
|
*
|
|
346
346
|
* @tags add_ons
|
|
347
347
|
* @name DestroyAddOn
|
|
@@ -359,11 +359,11 @@ export class Api extends HttpClient {
|
|
|
359
359
|
};
|
|
360
360
|
apiLogs = {
|
|
361
361
|
/**
|
|
362
|
-
* @description This endpoint retrieves all existing
|
|
362
|
+
* @description This endpoint retrieves all existing API logs, which represent the requests made to Lago's API. Logs older than the retention period of your organization are left out. The retention period is 30 days unless another one was set for your organization.
|
|
363
363
|
*
|
|
364
364
|
* @tags api_logs
|
|
365
365
|
* @name FindAllApiLogs
|
|
366
|
-
* @summary List all
|
|
366
|
+
* @summary List all API logs
|
|
367
367
|
* @request GET:/api_logs
|
|
368
368
|
* @secure
|
|
369
369
|
*/
|
|
@@ -376,11 +376,11 @@ export class Api extends HttpClient {
|
|
|
376
376
|
...params,
|
|
377
377
|
}),
|
|
378
378
|
/**
|
|
379
|
-
* @description This endpoint retrieves an existing
|
|
379
|
+
* @description This endpoint retrieves an existing API log, which represents a request made to Lago's API. The API log is identified by its request id.
|
|
380
380
|
*
|
|
381
381
|
* @tags api_logs
|
|
382
382
|
* @name FindApiLog
|
|
383
|
-
* @summary Retrieve an
|
|
383
|
+
* @summary Retrieve an API log
|
|
384
384
|
* @request GET:/api_logs/{request_id}
|
|
385
385
|
* @secure
|
|
386
386
|
*/
|
|
@@ -394,7 +394,7 @@ export class Api extends HttpClient {
|
|
|
394
394
|
};
|
|
395
395
|
analytics = {
|
|
396
396
|
/**
|
|
397
|
-
* @description Gross revenue is the sum of
|
|
397
|
+
* @description Gross revenue is the monthly sum of the totals of `finalized` invoices and of the amounts of the fees paid in advance that are not attached to an invoice. Invoice totals include taxes, are net of coupons, and are reduced by the amounts refunded through credit notes. Self-billed invoices and invoices with a lost payment dispute are excluded.
|
|
398
398
|
*
|
|
399
399
|
* @tags analytics
|
|
400
400
|
* @name FindAllGrossRevenues
|
|
@@ -411,7 +411,7 @@ export class Api extends HttpClient {
|
|
|
411
411
|
...params,
|
|
412
412
|
}),
|
|
413
413
|
/**
|
|
414
|
-
* @description Represents a monthly aggregation, detailing both the total count and the cumulative amount of invoices that have been marked as `finalized`. This report sorts invoices categorically based on their `payment_status`.
|
|
414
|
+
* @description Represents a monthly aggregation, detailing both the total count and the cumulative amount of invoices that have been marked as `finalized`. This report sorts invoices categorically based on their `payment_status`. Self-billed invoices and invoices with a lost payment dispute are excluded. This is a premium feature.
|
|
415
415
|
*
|
|
416
416
|
* @tags analytics
|
|
417
417
|
* @name FindAllInvoiceCollections
|
|
@@ -428,7 +428,7 @@ export class Api extends HttpClient {
|
|
|
428
428
|
...params,
|
|
429
429
|
}),
|
|
430
430
|
/**
|
|
431
|
-
* @description Reports
|
|
431
|
+
* @description Reports the monthly revenue generated by usage-based fees, broken down by billable metric. It only counts usage that has already been invoiced, so the usage of the current billing period is not included. Amounts exclude taxes and are net of coupons. Fees on self-billed invoices and on invoices with a lost payment dispute are left out.
|
|
432
432
|
*
|
|
433
433
|
* @tags analytics
|
|
434
434
|
* @name FindAllInvoicedUsages
|
|
@@ -462,7 +462,7 @@ export class Api extends HttpClient {
|
|
|
462
462
|
...params,
|
|
463
463
|
}),
|
|
464
464
|
/**
|
|
465
|
-
* @description Overdue balance is the
|
|
465
|
+
* @description Overdue balance is the amount still due on invoices that are past their payment due date. Each entry covers one month of payment due dates and sums the invoice totals minus the amounts already paid and minus the credits applied by finalized credit notes. Self-billed invoices are excluded.
|
|
466
466
|
*
|
|
467
467
|
* @tags analytics
|
|
468
468
|
* @name FindAllOverdueBalances
|
|
@@ -479,7 +479,7 @@ export class Api extends HttpClient {
|
|
|
479
479
|
...params,
|
|
480
480
|
}),
|
|
481
481
|
/**
|
|
482
|
-
* @description Returns
|
|
482
|
+
* @description Returns the usage billed by each billable metric, aggregated over the requested period and time granularity. This is a premium feature. On a non-premium license the response always covers the last 30 days with a daily granularity, and only the `billable_metric_code` filter is applied.
|
|
483
483
|
*
|
|
484
484
|
* @tags analytics
|
|
485
485
|
* @name FindAllUsages
|
|
@@ -588,7 +588,7 @@ export class Api extends HttpClient {
|
|
|
588
588
|
...params,
|
|
589
589
|
}),
|
|
590
590
|
/**
|
|
591
|
-
* @description This endpoint updates an existing billable metric representing a pricing component of your application.
|
|
591
|
+
* @description This endpoint updates an existing billable metric representing a pricing component of your application. Once the billable metric is used by a plan charge, only `name`, `description` and `filters` are applied. The other fields are ignored.
|
|
592
592
|
*
|
|
593
593
|
* @tags billable_metrics
|
|
594
594
|
* @name UpdateBillableMetric
|
|
@@ -675,7 +675,7 @@ export class Api extends HttpClient {
|
|
|
675
675
|
...params,
|
|
676
676
|
}),
|
|
677
677
|
/**
|
|
678
|
-
* @description This endpoint updates an existing feature representing an entitlement component of your application.
|
|
678
|
+
* @description This endpoint updates an existing feature representing an entitlement component of your application. Only the fields present in the payload are updated. Privileges are matched by their code, an unknown code adds a new privilege and a known one updates its name and adds the select options of the payload to the existing ones. The value type of an existing privilege cannot be changed. Privileges left out of the payload are kept, use the delete privilege endpoint to remove one.
|
|
679
679
|
*
|
|
680
680
|
* @tags features
|
|
681
681
|
* @name UpdateFeature
|
|
@@ -778,7 +778,7 @@ export class Api extends HttpClient {
|
|
|
778
778
|
...params,
|
|
779
779
|
}),
|
|
780
780
|
/**
|
|
781
|
-
* @description This endpoint is used to update a coupon that can be then attached to a customer to create a discount.
|
|
781
|
+
* @description This endpoint is used to update a coupon that can be then attached to a customer to create a discount. Once the coupon has been applied to at least one customer, only `name`, `description`, `expiration` and `expiration_at` are updated. The other fields in the payload are ignored.
|
|
782
782
|
*
|
|
783
783
|
* @tags coupons
|
|
784
784
|
* @name UpdateCoupon
|
|
@@ -830,7 +830,7 @@ export class Api extends HttpClient {
|
|
|
830
830
|
};
|
|
831
831
|
creditNotes = {
|
|
832
832
|
/**
|
|
833
|
-
* @description This endpoint creates a new credit note.
|
|
833
|
+
* @description This endpoint creates a new credit note. This is a premium feature. A credit note cannot be issued on an invoice in a `pending` or `failed` status. In that case the endpoint returns a `405` error with the `invalid_type_or_status` code.
|
|
834
834
|
*
|
|
835
835
|
* @tags credit_notes
|
|
836
836
|
* @name CreateCreditNote
|
|
@@ -848,7 +848,7 @@ export class Api extends HttpClient {
|
|
|
848
848
|
...params,
|
|
849
849
|
}),
|
|
850
850
|
/**
|
|
851
|
-
* @description This endpoint
|
|
851
|
+
* @description This endpoint lists all existing credit notes.
|
|
852
852
|
*
|
|
853
853
|
* @tags credit_notes
|
|
854
854
|
* @name FindAllCreditNotes
|
|
@@ -899,7 +899,7 @@ export class Api extends HttpClient {
|
|
|
899
899
|
...params,
|
|
900
900
|
}),
|
|
901
901
|
/**
|
|
902
|
-
* @description This endpoint downloads the PDF of an existing credit note.
|
|
902
|
+
* @description This endpoint downloads the PDF of an existing credit note. Only `finalized` credit notes can be downloaded; any other credit note returns a `404` error. When the PDF has already been generated, the credit note object is returned and its `file_url` points to the document. When it has not been generated yet, the response is a `200` with an empty body and the generation starts in the background. Call the endpoint again to get the credit note object with its `file_url`.
|
|
903
903
|
*
|
|
904
904
|
* @tags credit_notes
|
|
905
905
|
* @name DownloadCreditNote
|
|
@@ -915,7 +915,7 @@ export class Api extends HttpClient {
|
|
|
915
915
|
...params,
|
|
916
916
|
}),
|
|
917
917
|
/**
|
|
918
|
-
* @description This endpoint allows you to retrieve amounts for a new credit note creation.
|
|
918
|
+
* @description This endpoint allows you to retrieve amounts for a new credit note creation. This is a premium feature. Amounts cannot be estimated on an invoice in a `pending` or `failed` status. In that case the endpoint returns a `405` error with the `invalid_type_or_status` code.
|
|
919
919
|
*
|
|
920
920
|
* @tags credit_notes
|
|
921
921
|
* @name EstimateCreditNote
|
|
@@ -1019,7 +1019,7 @@ export class Api extends HttpClient {
|
|
|
1019
1019
|
};
|
|
1020
1020
|
customers = {
|
|
1021
1021
|
/**
|
|
1022
|
-
* @description This endpoint creates a
|
|
1022
|
+
* @description This endpoint creates a customer. When a customer with the same `external_id` already exists, it is updated instead, and only the fields present in the payload are changed.
|
|
1023
1023
|
*
|
|
1024
1024
|
* @tags customers
|
|
1025
1025
|
* @name CreateCustomer
|
|
@@ -1119,7 +1119,7 @@ export class Api extends HttpClient {
|
|
|
1119
1119
|
...params,
|
|
1120
1120
|
}),
|
|
1121
1121
|
/**
|
|
1122
|
-
* @description This endpoint
|
|
1122
|
+
* @description This endpoint lists all existing credit notes for a customer.
|
|
1123
1123
|
*
|
|
1124
1124
|
* @tags customers, credit_notes
|
|
1125
1125
|
* @name FindAllCustomerCreditNotes
|
|
@@ -1187,7 +1187,7 @@ export class Api extends HttpClient {
|
|
|
1187
1187
|
...params,
|
|
1188
1188
|
}),
|
|
1189
1189
|
/**
|
|
1190
|
-
* @description Retrieves an embeddable link for displaying a customer portal. This endpoint allows you to fetch the URL that can be embedded to provide customers access to a dedicated portal
|
|
1190
|
+
* @description Retrieves an embeddable link for displaying a customer portal. This endpoint allows you to fetch the URL that can be embedded to provide customers access to a dedicated portal. The portal lets the customer update their information and top up their wallets, so when API key permissions are enabled, the API key needs the `write` permission on `customer`.
|
|
1191
1191
|
*
|
|
1192
1192
|
* @tags customers
|
|
1193
1193
|
* @name GetCustomerPortalUrl
|
|
@@ -1238,7 +1238,7 @@ export class Api extends HttpClient {
|
|
|
1238
1238
|
...params,
|
|
1239
1239
|
}),
|
|
1240
1240
|
/**
|
|
1241
|
-
* @description This endpoint is used to list all wallets with prepaid credits of a customer
|
|
1241
|
+
* @description This endpoint is used to list all wallets with prepaid credits of a customer.
|
|
1242
1242
|
*
|
|
1243
1243
|
* @tags wallets
|
|
1244
1244
|
* @name FindAllCustomerWallets
|
|
@@ -1439,7 +1439,7 @@ export class Api extends HttpClient {
|
|
|
1439
1439
|
...params,
|
|
1440
1440
|
}),
|
|
1441
1441
|
/**
|
|
1442
|
-
* @description This endpoint allows you to update an existing alert for a wallet.
|
|
1442
|
+
* @description This endpoint allows you to update an existing alert for a wallet. A non-empty `thresholds` array replaces the whole set of thresholds on the alert. When `thresholds` is left out, or sent as an empty array, the thresholds already on the alert are kept. A threshold sent with a `code` it already had, and without `notify_on`, keeps the `notify_on` it had.
|
|
1443
1443
|
*
|
|
1444
1444
|
* @tags wallets
|
|
1445
1445
|
* @name UpdateCustomerWalletAlert
|
|
@@ -1540,7 +1540,7 @@ export class Api extends HttpClient {
|
|
|
1540
1540
|
...params,
|
|
1541
1541
|
}),
|
|
1542
1542
|
/**
|
|
1543
|
-
* @description This endpoint retrieves all payment methods of a
|
|
1543
|
+
* @description This endpoint retrieves all payment methods of a customer.
|
|
1544
1544
|
*
|
|
1545
1545
|
* @tags payment_methods
|
|
1546
1546
|
* @name FindAllCustomersPaymentMethods
|
|
@@ -1591,11 +1591,11 @@ export class Api extends HttpClient {
|
|
|
1591
1591
|
};
|
|
1592
1592
|
events = {
|
|
1593
1593
|
/**
|
|
1594
|
-
* @description This endpoint is used for transmitting usage measurement
|
|
1594
|
+
* @description This endpoint is used for transmitting a usage measurement event to a subscription.
|
|
1595
1595
|
*
|
|
1596
1596
|
* @tags events
|
|
1597
1597
|
* @name CreateEvent
|
|
1598
|
-
* @summary Send usage
|
|
1598
|
+
* @summary Send a usage event
|
|
1599
1599
|
* @request POST:/events
|
|
1600
1600
|
* @secure
|
|
1601
1601
|
*/
|
|
@@ -1698,7 +1698,7 @@ export class Api extends HttpClient {
|
|
|
1698
1698
|
...params,
|
|
1699
1699
|
}),
|
|
1700
1700
|
/**
|
|
1701
|
-
* @description This endpoint is used for retrieving a specific usage measurement event that has been sent to a
|
|
1701
|
+
* @description This endpoint is used for retrieving a specific usage measurement event that has been sent to a subscription. Note that transaction_id is unique per external_subscription_id so multiple subscriptions can share the same transaction_id. This endpoint will only return the first event found with the given transaction_id. WARNING: If your Lago organization is configured to use the Clickhouse-based event pipeline, multiple events can share the same `transaction_id` (with different timestamps). This endpoint will only return the first event found.
|
|
1702
1702
|
*
|
|
1703
1703
|
* @tags events
|
|
1704
1704
|
* @name FindEvent
|
|
@@ -1749,7 +1749,7 @@ export class Api extends HttpClient {
|
|
|
1749
1749
|
...params,
|
|
1750
1750
|
}),
|
|
1751
1751
|
/**
|
|
1752
|
-
* @description This endpoint is used for updating a specific fee that
|
|
1752
|
+
* @description This endpoint is used for updating the payment status of a specific fee. Only a fee that is not attached to an invoice can be updated; once the fee is on an invoice, its payment status follows the invoice and the endpoint returns a `405` error.
|
|
1753
1753
|
*
|
|
1754
1754
|
* @tags fees
|
|
1755
1755
|
* @name UpdateFee
|
|
@@ -1870,7 +1870,7 @@ export class Api extends HttpClient {
|
|
|
1870
1870
|
...params,
|
|
1871
1871
|
}),
|
|
1872
1872
|
/**
|
|
1873
|
-
* @description This endpoint is used for downloading a specific invoice PDF document.
|
|
1873
|
+
* @description This endpoint is used for downloading a specific invoice PDF document. Only `finalized` invoices can be downloaded; any other invoice returns a `404` error. When the PDF has already been generated, the invoice object is returned and its `file_url` points to the document. When it has not been generated yet, the response is a `200` with an empty body and the generation starts in the background. Call the endpoint again to get the invoice object with its `file_url`.
|
|
1874
1874
|
*
|
|
1875
1875
|
* @tags invoices
|
|
1876
1876
|
* @name DownloadInvoice
|
|
@@ -2159,7 +2159,7 @@ export class Api extends HttpClient {
|
|
|
2159
2159
|
...params,
|
|
2160
2160
|
}),
|
|
2161
2161
|
/**
|
|
2162
|
-
* @description This endpoint is used to update your own organization's settings.
|
|
2162
|
+
* @description This endpoint is used to update your own organization's settings. The same payload is also applied to the default billing entity of your organization.
|
|
2163
2163
|
*
|
|
2164
2164
|
* @tags organizations
|
|
2165
2165
|
* @name UpdateOrganization
|
|
@@ -2214,7 +2214,7 @@ export class Api extends HttpClient {
|
|
|
2214
2214
|
};
|
|
2215
2215
|
paymentRequests = {
|
|
2216
2216
|
/**
|
|
2217
|
-
* @description This endpoint is used to create a payment request to collect
|
|
2217
|
+
* @description This endpoint is used to create a payment request to collect the payment of the overdue invoices of a customer.
|
|
2218
2218
|
*
|
|
2219
2219
|
* @tags payment_requests
|
|
2220
2220
|
* @name CreatePaymentRequest
|
|
@@ -2405,7 +2405,7 @@ export class Api extends HttpClient {
|
|
|
2405
2405
|
...params,
|
|
2406
2406
|
}),
|
|
2407
2407
|
/**
|
|
2408
|
-
* @description This endpoint creates new entitlements by adding features to a plan. Note that all existing entitlements will be deleted and replaced by the ones provided. To add a new entitlement without removing the existing ones, use PATCH. The feature must exist and all privileges must be valid for the feature.
|
|
2408
|
+
* @description This endpoint creates new entitlements by adding features to a plan. Note that all existing entitlements will be deleted and replaced by the ones provided. Sending an empty `entitlements` object, or omitting the key, therefore removes every entitlement of the plan. To add a new entitlement without removing the existing ones, use PATCH. The feature must exist and all privileges must be valid for the feature.
|
|
2409
2409
|
*
|
|
2410
2410
|
* @tags entitlements
|
|
2411
2411
|
* @name CreateEntitlement
|
|
@@ -2624,7 +2624,7 @@ export class Api extends HttpClient {
|
|
|
2624
2624
|
...params,
|
|
2625
2625
|
}),
|
|
2626
2626
|
/**
|
|
2627
|
-
* @description This endpoint updates a specific charge for a plan.
|
|
2627
|
+
* @description This endpoint updates a specific charge for a plan. The payload replaces the charge configuration: `charge_model` must be sent on every update, and `invoice_display_name` is cleared when it is left out. Once the plan is attached to a subscription, only `invoice_display_name`, `properties`, `filters`, `tax_codes`, `applied_pricing_unit` and `accepts_target_wallet` are applied. The other fields are ignored.
|
|
2628
2628
|
*
|
|
2629
2629
|
* @tags plans
|
|
2630
2630
|
* @name UpdatePlanCharge
|
|
@@ -2798,7 +2798,7 @@ export class Api extends HttpClient {
|
|
|
2798
2798
|
...params,
|
|
2799
2799
|
}),
|
|
2800
2800
|
/**
|
|
2801
|
-
* @description This endpoint updates a specific fixed charge for a plan.
|
|
2801
|
+
* @description This endpoint updates a specific fixed charge for a plan. The payload replaces the fixed charge configuration: `units` and `charge_model` must be sent on every update, and `invoice_display_name` is cleared when it is left out. Once the plan is attached to a subscription, `code` and `charge_model` are ignored.
|
|
2802
2802
|
*
|
|
2803
2803
|
* @tags plans
|
|
2804
2804
|
* @name UpdatePlanFixedCharge
|
|
@@ -3147,7 +3147,7 @@ export class Api extends HttpClient {
|
|
|
3147
3147
|
...params,
|
|
3148
3148
|
}),
|
|
3149
3149
|
/**
|
|
3150
|
-
* @description This endpoint allows you to update an existing alert for a subscription.
|
|
3150
|
+
* @description This endpoint allows you to update an existing alert for a subscription. A non-empty `thresholds` array replaces the whole set of thresholds on the alert. When `thresholds` is left out, or sent as an empty array, the thresholds already on the alert are kept. A threshold sent with a `code` it already had, and without `notify_on`, keeps the `notify_on` it had.
|
|
3151
3151
|
*
|
|
3152
3152
|
* @tags subscriptions
|
|
3153
3153
|
* @name UpdateSubscriptionAlert
|
|
@@ -3219,7 +3219,7 @@ export class Api extends HttpClient {
|
|
|
3219
3219
|
...params,
|
|
3220
3220
|
}),
|
|
3221
3221
|
/**
|
|
3222
|
-
* @description This endpoint removes a specific feature entitlement from a subscription. The
|
|
3222
|
+
* @description This endpoint removes a specific feature entitlement from a subscription. The plan keeps the feature and other subscriptions are not affected, but this subscription stops getting it. It returns the full list of entitlements remaining on the subscription.
|
|
3223
3223
|
*
|
|
3224
3224
|
* @tags entitlements
|
|
3225
3225
|
* @name DestroySubscriptionEntitlement
|
|
@@ -3236,7 +3236,7 @@ export class Api extends HttpClient {
|
|
|
3236
3236
|
...params,
|
|
3237
3237
|
}),
|
|
3238
3238
|
/**
|
|
3239
|
-
* @description This endpoint removes a specific privilege from a subscription entitlement. The privilege
|
|
3239
|
+
* @description This endpoint removes a specific privilege from a subscription entitlement. The plan keeps the privilege and other subscriptions are not affected, but this subscription stops getting it. It returns the full list of entitlements remaining on the subscription.
|
|
3240
3240
|
*
|
|
3241
3241
|
* @tags entitlements
|
|
3242
3242
|
* @name DestroySubscriptionEntitlementPrivilege
|
|
@@ -3450,7 +3450,7 @@ export class Api extends HttpClient {
|
|
|
3450
3450
|
};
|
|
3451
3451
|
taxes = {
|
|
3452
3452
|
/**
|
|
3453
|
-
* @description This endpoint creates a new tax representing a customizable tax rate applicable to either
|
|
3453
|
+
* @description This endpoint creates a new tax representing a customizable tax rate applicable to either a billing entity or a specific customer.
|
|
3454
3454
|
*
|
|
3455
3455
|
* @tags taxes
|
|
3456
3456
|
* @name CreateTax
|
|
@@ -3468,7 +3468,7 @@ export class Api extends HttpClient {
|
|
|
3468
3468
|
...params,
|
|
3469
3469
|
}),
|
|
3470
3470
|
/**
|
|
3471
|
-
* @description This endpoint retrieves all existing taxes representing a customizable tax rate applicable to either
|
|
3471
|
+
* @description This endpoint retrieves all existing taxes representing a customizable tax rate applicable to either a billing entity or a specific customer.
|
|
3472
3472
|
*
|
|
3473
3473
|
* @tags taxes
|
|
3474
3474
|
* @name FindAllTaxes
|
|
@@ -3485,7 +3485,7 @@ export class Api extends HttpClient {
|
|
|
3485
3485
|
...params,
|
|
3486
3486
|
}),
|
|
3487
3487
|
/**
|
|
3488
|
-
* @description This endpoint updates an existing tax representing a customizable tax rate applicable to either
|
|
3488
|
+
* @description This endpoint updates an existing tax representing a customizable tax rate applicable to either a billing entity or a specific customer.
|
|
3489
3489
|
*
|
|
3490
3490
|
* @tags taxes
|
|
3491
3491
|
* @name UpdateTax
|
|
@@ -3503,11 +3503,11 @@ export class Api extends HttpClient {
|
|
|
3503
3503
|
...params,
|
|
3504
3504
|
}),
|
|
3505
3505
|
/**
|
|
3506
|
-
* @description This endpoint retrieves an existing tax representing a customizable tax rate applicable to either
|
|
3506
|
+
* @description This endpoint retrieves an existing tax representing a customizable tax rate applicable to either a billing entity or a specific customer. The tax is identified by its unique code.
|
|
3507
3507
|
*
|
|
3508
3508
|
* @tags taxes
|
|
3509
3509
|
* @name FindTax
|
|
3510
|
-
* @summary Retrieve a
|
|
3510
|
+
* @summary Retrieve a tax
|
|
3511
3511
|
* @request GET:/taxes/{code}
|
|
3512
3512
|
* @secure
|
|
3513
3513
|
*/
|
|
@@ -3727,7 +3727,7 @@ export class Api extends HttpClient {
|
|
|
3727
3727
|
...params,
|
|
3728
3728
|
}),
|
|
3729
3729
|
/**
|
|
3730
|
-
* @description This endpoint is used to retrieve a specific wallet
|
|
3730
|
+
* @description This endpoint is used to retrieve a specific wallet transaction.
|
|
3731
3731
|
*
|
|
3732
3732
|
* @tags wallets
|
|
3733
3733
|
* @name FindWalletTransaction
|
|
@@ -3795,7 +3795,7 @@ export class Api extends HttpClient {
|
|
|
3795
3795
|
};
|
|
3796
3796
|
webhooks = {
|
|
3797
3797
|
/**
|
|
3798
|
-
* @description This endpoint is used to retrieve the public key used to verify the
|
|
3798
|
+
* @description **Deprecated.** Use `GET /webhooks/json_public_key` instead. This endpoint is used to retrieve the public key used to verify the webhook signature.
|
|
3799
3799
|
*
|
|
3800
3800
|
* @tags webhooks
|
|
3801
3801
|
* @name FetchPublicKey
|
|
@@ -3812,7 +3812,7 @@ export class Api extends HttpClient {
|
|
|
3812
3812
|
...params,
|
|
3813
3813
|
}),
|
|
3814
3814
|
/**
|
|
3815
|
-
* @description This endpoint is used to retrieve the public key used to verify the
|
|
3815
|
+
* @description This endpoint is used to retrieve the public key used to verify the webhook signature, wrapped in a JSON object. Prefer this endpoint over the deprecated `GET /webhooks/public_key`.
|
|
3816
3816
|
*
|
|
3817
3817
|
* @tags webhooks
|
|
3818
3818
|
* @name FetchJsonPublicKey
|
|
@@ -3834,7 +3834,7 @@ export class Api extends HttpClient {
|
|
|
3834
3834
|
*
|
|
3835
3835
|
* @tags webhook_endpoints
|
|
3836
3836
|
* @name CreateWebhookEndpoint
|
|
3837
|
-
* @summary Create a
|
|
3837
|
+
* @summary Create a webhook endpoint
|
|
3838
3838
|
* @request POST:/webhook_endpoints
|
|
3839
3839
|
* @secure
|
|
3840
3840
|
*/
|