lago-javascript-client 1.54.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 +1585 -1034
- package/esm/openapi/client.js +51 -51
- package/esm/openapi/webhooks.d.ts +2122 -1059
- package/package.json +1 -1
- package/script/openapi/client.d.ts +1585 -1034
- package/script/openapi/client.js +51 -51
- package/script/openapi/webhooks.d.ts +2122 -1059
package/script/openapi/client.js
CHANGED
|
@@ -160,7 +160,7 @@ class HttpClient {
|
|
|
160
160
|
exports.HttpClient = HttpClient;
|
|
161
161
|
/**
|
|
162
162
|
* @title Lago API documentation
|
|
163
|
-
* @version 1.
|
|
163
|
+
* @version 1.56.0
|
|
164
164
|
* @license AGPLv3 (https://github.com/getlago/lago-openapi/blob/main/LICENSE)
|
|
165
165
|
* @baseUrl https://api.getlago.com/api/v1
|
|
166
166
|
* @externalDocs https://github.com/getlago
|
|
@@ -345,7 +345,7 @@ class Api extends HttpClient {
|
|
|
345
345
|
...params,
|
|
346
346
|
}),
|
|
347
347
|
/**
|
|
348
|
-
* @description This endpoint is used to delete an existing add-on.
|
|
348
|
+
* @description This endpoint is used to delete an existing add-on. The fixed charges that use this add-on are deleted too.
|
|
349
349
|
*
|
|
350
350
|
* @tags add_ons
|
|
351
351
|
* @name DestroyAddOn
|
|
@@ -363,11 +363,11 @@ class Api extends HttpClient {
|
|
|
363
363
|
};
|
|
364
364
|
apiLogs = {
|
|
365
365
|
/**
|
|
366
|
-
* @description This endpoint retrieves all existing
|
|
366
|
+
* @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.
|
|
367
367
|
*
|
|
368
368
|
* @tags api_logs
|
|
369
369
|
* @name FindAllApiLogs
|
|
370
|
-
* @summary List all
|
|
370
|
+
* @summary List all API logs
|
|
371
371
|
* @request GET:/api_logs
|
|
372
372
|
* @secure
|
|
373
373
|
*/
|
|
@@ -380,11 +380,11 @@ class Api extends HttpClient {
|
|
|
380
380
|
...params,
|
|
381
381
|
}),
|
|
382
382
|
/**
|
|
383
|
-
* @description This endpoint retrieves an existing
|
|
383
|
+
* @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.
|
|
384
384
|
*
|
|
385
385
|
* @tags api_logs
|
|
386
386
|
* @name FindApiLog
|
|
387
|
-
* @summary Retrieve an
|
|
387
|
+
* @summary Retrieve an API log
|
|
388
388
|
* @request GET:/api_logs/{request_id}
|
|
389
389
|
* @secure
|
|
390
390
|
*/
|
|
@@ -398,7 +398,7 @@ class Api extends HttpClient {
|
|
|
398
398
|
};
|
|
399
399
|
analytics = {
|
|
400
400
|
/**
|
|
401
|
-
* @description Gross revenue is the sum of
|
|
401
|
+
* @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.
|
|
402
402
|
*
|
|
403
403
|
* @tags analytics
|
|
404
404
|
* @name FindAllGrossRevenues
|
|
@@ -415,7 +415,7 @@ class Api extends HttpClient {
|
|
|
415
415
|
...params,
|
|
416
416
|
}),
|
|
417
417
|
/**
|
|
418
|
-
* @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`.
|
|
418
|
+
* @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.
|
|
419
419
|
*
|
|
420
420
|
* @tags analytics
|
|
421
421
|
* @name FindAllInvoiceCollections
|
|
@@ -432,7 +432,7 @@ class Api extends HttpClient {
|
|
|
432
432
|
...params,
|
|
433
433
|
}),
|
|
434
434
|
/**
|
|
435
|
-
* @description Reports
|
|
435
|
+
* @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.
|
|
436
436
|
*
|
|
437
437
|
* @tags analytics
|
|
438
438
|
* @name FindAllInvoicedUsages
|
|
@@ -449,7 +449,7 @@ class Api extends HttpClient {
|
|
|
449
449
|
...params,
|
|
450
450
|
}),
|
|
451
451
|
/**
|
|
452
|
-
* @description This
|
|
452
|
+
* @description Quantifies the revenue generated from `subscription` fees on a monthly basis. This figure is calculated post-application of applicable taxes and deduction of any applicable discounts. The method of calculation varies based on the subscription billing cycle: - Revenue from `monthly` subscription invoices is included in the MRR for the month in which the invoice is issued. - Revenue from `quarterly` subscription invoices is distributed evenly over three months. This distribution applies to fees paid in advance (allocated to the next remaining months depending on calendar or anniversary billing) as well as to fees paid in arrears (allocated to the preceding months depending on calendar or anniversary billing). - Revenue from `yearly` subscription invoices is distributed evenly over twelve months. This allocation is applicable for fees paid in advance (spread over the next remaining months depending on calendar or anniversary billing) and for fees paid in arrears (spread over the previous months depending on calendar or anniversary billing). - Revenue from `semiannual` subscription invoices is distributed evenly over six months. This allocation is applicable for fees paid in advance (spread over the next remaining months depending on calendar or anniversary billing) and for fees paid in arrears (spread over the previous months depending on calendar or anniversary billing). - Revenue from `weekly` subscription invoices, the total revenue from all invoices issued within a month is summed up. This total is then divided by the number of invoices issued during that month, and the result is multiplied by 4.33, representing the average number of weeks in a month.
|
|
453
453
|
*
|
|
454
454
|
* @tags analytics
|
|
455
455
|
* @name FindAllMrrs
|
|
@@ -466,7 +466,7 @@ class Api extends HttpClient {
|
|
|
466
466
|
...params,
|
|
467
467
|
}),
|
|
468
468
|
/**
|
|
469
|
-
* @description Overdue balance is the
|
|
469
|
+
* @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.
|
|
470
470
|
*
|
|
471
471
|
* @tags analytics
|
|
472
472
|
* @name FindAllOverdueBalances
|
|
@@ -483,7 +483,7 @@ class Api extends HttpClient {
|
|
|
483
483
|
...params,
|
|
484
484
|
}),
|
|
485
485
|
/**
|
|
486
|
-
* @description Returns
|
|
486
|
+
* @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.
|
|
487
487
|
*
|
|
488
488
|
* @tags analytics
|
|
489
489
|
* @name FindAllUsages
|
|
@@ -592,7 +592,7 @@ class Api extends HttpClient {
|
|
|
592
592
|
...params,
|
|
593
593
|
}),
|
|
594
594
|
/**
|
|
595
|
-
* @description This endpoint updates an existing billable metric representing a pricing component of your application.
|
|
595
|
+
* @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.
|
|
596
596
|
*
|
|
597
597
|
* @tags billable_metrics
|
|
598
598
|
* @name UpdateBillableMetric
|
|
@@ -679,7 +679,7 @@ class Api extends HttpClient {
|
|
|
679
679
|
...params,
|
|
680
680
|
}),
|
|
681
681
|
/**
|
|
682
|
-
* @description This endpoint updates an existing feature representing an entitlement component of your application.
|
|
682
|
+
* @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.
|
|
683
683
|
*
|
|
684
684
|
* @tags features
|
|
685
685
|
* @name UpdateFeature
|
|
@@ -729,11 +729,11 @@ class Api extends HttpClient {
|
|
|
729
729
|
...params,
|
|
730
730
|
}),
|
|
731
731
|
/**
|
|
732
|
-
* @description
|
|
732
|
+
* @description This endpoint deletes a privilege from a feature. Deleting a privilege removes it from all plans and subscriptions.
|
|
733
733
|
*
|
|
734
734
|
* @tags features
|
|
735
735
|
* @name DeleteFeaturePrivilege
|
|
736
|
-
* @summary Delete a privilege
|
|
736
|
+
* @summary Delete a privilege
|
|
737
737
|
* @request DELETE:/features/{code}/privileges/{privilege_code}
|
|
738
738
|
* @secure
|
|
739
739
|
*/
|
|
@@ -782,7 +782,7 @@ class Api extends HttpClient {
|
|
|
782
782
|
...params,
|
|
783
783
|
}),
|
|
784
784
|
/**
|
|
785
|
-
* @description This endpoint is used to update a coupon that can be then attached to a customer to create a discount.
|
|
785
|
+
* @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.
|
|
786
786
|
*
|
|
787
787
|
* @tags coupons
|
|
788
788
|
* @name UpdateCoupon
|
|
@@ -834,7 +834,7 @@ class Api extends HttpClient {
|
|
|
834
834
|
};
|
|
835
835
|
creditNotes = {
|
|
836
836
|
/**
|
|
837
|
-
* @description This endpoint creates a new credit note.
|
|
837
|
+
* @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.
|
|
838
838
|
*
|
|
839
839
|
* @tags credit_notes
|
|
840
840
|
* @name CreateCreditNote
|
|
@@ -852,7 +852,7 @@ class Api extends HttpClient {
|
|
|
852
852
|
...params,
|
|
853
853
|
}),
|
|
854
854
|
/**
|
|
855
|
-
* @description This endpoint
|
|
855
|
+
* @description This endpoint lists all existing credit notes.
|
|
856
856
|
*
|
|
857
857
|
* @tags credit_notes
|
|
858
858
|
* @name FindAllCreditNotes
|
|
@@ -903,7 +903,7 @@ class Api extends HttpClient {
|
|
|
903
903
|
...params,
|
|
904
904
|
}),
|
|
905
905
|
/**
|
|
906
|
-
* @description This endpoint downloads the PDF of an existing credit note.
|
|
906
|
+
* @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`.
|
|
907
907
|
*
|
|
908
908
|
* @tags credit_notes
|
|
909
909
|
* @name DownloadCreditNote
|
|
@@ -919,7 +919,7 @@ class Api extends HttpClient {
|
|
|
919
919
|
...params,
|
|
920
920
|
}),
|
|
921
921
|
/**
|
|
922
|
-
* @description This endpoint allows you to retrieve amounts for a new credit note creation.
|
|
922
|
+
* @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.
|
|
923
923
|
*
|
|
924
924
|
* @tags credit_notes
|
|
925
925
|
* @name EstimateCreditNote
|
|
@@ -1023,7 +1023,7 @@ class Api extends HttpClient {
|
|
|
1023
1023
|
};
|
|
1024
1024
|
customers = {
|
|
1025
1025
|
/**
|
|
1026
|
-
* @description This endpoint creates a
|
|
1026
|
+
* @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.
|
|
1027
1027
|
*
|
|
1028
1028
|
* @tags customers
|
|
1029
1029
|
* @name CreateCustomer
|
|
@@ -1123,7 +1123,7 @@ class Api extends HttpClient {
|
|
|
1123
1123
|
...params,
|
|
1124
1124
|
}),
|
|
1125
1125
|
/**
|
|
1126
|
-
* @description This endpoint
|
|
1126
|
+
* @description This endpoint lists all existing credit notes for a customer.
|
|
1127
1127
|
*
|
|
1128
1128
|
* @tags customers, credit_notes
|
|
1129
1129
|
* @name FindAllCustomerCreditNotes
|
|
@@ -1191,7 +1191,7 @@ class Api extends HttpClient {
|
|
|
1191
1191
|
...params,
|
|
1192
1192
|
}),
|
|
1193
1193
|
/**
|
|
1194
|
-
* @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
|
|
1194
|
+
* @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`.
|
|
1195
1195
|
*
|
|
1196
1196
|
* @tags customers
|
|
1197
1197
|
* @name GetCustomerPortalUrl
|
|
@@ -1242,7 +1242,7 @@ class Api extends HttpClient {
|
|
|
1242
1242
|
...params,
|
|
1243
1243
|
}),
|
|
1244
1244
|
/**
|
|
1245
|
-
* @description This endpoint is used to list all wallets with prepaid credits of a customer
|
|
1245
|
+
* @description This endpoint is used to list all wallets with prepaid credits of a customer.
|
|
1246
1246
|
*
|
|
1247
1247
|
* @tags wallets
|
|
1248
1248
|
* @name FindAllCustomerWallets
|
|
@@ -1443,7 +1443,7 @@ class Api extends HttpClient {
|
|
|
1443
1443
|
...params,
|
|
1444
1444
|
}),
|
|
1445
1445
|
/**
|
|
1446
|
-
* @description This endpoint allows you to update an existing alert for a wallet.
|
|
1446
|
+
* @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.
|
|
1447
1447
|
*
|
|
1448
1448
|
* @tags wallets
|
|
1449
1449
|
* @name UpdateCustomerWalletAlert
|
|
@@ -1544,7 +1544,7 @@ class Api extends HttpClient {
|
|
|
1544
1544
|
...params,
|
|
1545
1545
|
}),
|
|
1546
1546
|
/**
|
|
1547
|
-
* @description This endpoint retrieves all payment methods of a
|
|
1547
|
+
* @description This endpoint retrieves all payment methods of a customer.
|
|
1548
1548
|
*
|
|
1549
1549
|
* @tags payment_methods
|
|
1550
1550
|
* @name FindAllCustomersPaymentMethods
|
|
@@ -1595,11 +1595,11 @@ class Api extends HttpClient {
|
|
|
1595
1595
|
};
|
|
1596
1596
|
events = {
|
|
1597
1597
|
/**
|
|
1598
|
-
* @description This endpoint is used for transmitting usage measurement
|
|
1598
|
+
* @description This endpoint is used for transmitting a usage measurement event to a subscription.
|
|
1599
1599
|
*
|
|
1600
1600
|
* @tags events
|
|
1601
1601
|
* @name CreateEvent
|
|
1602
|
-
* @summary Send usage
|
|
1602
|
+
* @summary Send a usage event
|
|
1603
1603
|
* @request POST:/events
|
|
1604
1604
|
* @secure
|
|
1605
1605
|
*/
|
|
@@ -1702,7 +1702,7 @@ class Api extends HttpClient {
|
|
|
1702
1702
|
...params,
|
|
1703
1703
|
}),
|
|
1704
1704
|
/**
|
|
1705
|
-
* @description This endpoint is used for retrieving a specific usage measurement event that has been sent to a
|
|
1705
|
+
* @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.
|
|
1706
1706
|
*
|
|
1707
1707
|
* @tags events
|
|
1708
1708
|
* @name FindEvent
|
|
@@ -1753,7 +1753,7 @@ class Api extends HttpClient {
|
|
|
1753
1753
|
...params,
|
|
1754
1754
|
}),
|
|
1755
1755
|
/**
|
|
1756
|
-
* @description This endpoint is used for updating a specific fee that
|
|
1756
|
+
* @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.
|
|
1757
1757
|
*
|
|
1758
1758
|
* @tags fees
|
|
1759
1759
|
* @name UpdateFee
|
|
@@ -1874,7 +1874,7 @@ class Api extends HttpClient {
|
|
|
1874
1874
|
...params,
|
|
1875
1875
|
}),
|
|
1876
1876
|
/**
|
|
1877
|
-
* @description This endpoint is used for downloading a specific invoice PDF document.
|
|
1877
|
+
* @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`.
|
|
1878
1878
|
*
|
|
1879
1879
|
* @tags invoices
|
|
1880
1880
|
* @name DownloadInvoice
|
|
@@ -2163,7 +2163,7 @@ class Api extends HttpClient {
|
|
|
2163
2163
|
...params,
|
|
2164
2164
|
}),
|
|
2165
2165
|
/**
|
|
2166
|
-
* @description This endpoint is used to update your own organization's settings.
|
|
2166
|
+
* @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.
|
|
2167
2167
|
*
|
|
2168
2168
|
* @tags organizations
|
|
2169
2169
|
* @name UpdateOrganization
|
|
@@ -2218,7 +2218,7 @@ class Api extends HttpClient {
|
|
|
2218
2218
|
};
|
|
2219
2219
|
paymentRequests = {
|
|
2220
2220
|
/**
|
|
2221
|
-
* @description This endpoint is used to create a payment request to collect
|
|
2221
|
+
* @description This endpoint is used to create a payment request to collect the payment of the overdue invoices of a customer.
|
|
2222
2222
|
*
|
|
2223
2223
|
* @tags payment_requests
|
|
2224
2224
|
* @name CreatePaymentRequest
|
|
@@ -2409,7 +2409,7 @@ class Api extends HttpClient {
|
|
|
2409
2409
|
...params,
|
|
2410
2410
|
}),
|
|
2411
2411
|
/**
|
|
2412
|
-
* @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.
|
|
2412
|
+
* @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.
|
|
2413
2413
|
*
|
|
2414
2414
|
* @tags entitlements
|
|
2415
2415
|
* @name CreateEntitlement
|
|
@@ -2443,7 +2443,7 @@ class Api extends HttpClient {
|
|
|
2443
2443
|
...params,
|
|
2444
2444
|
}),
|
|
2445
2445
|
/**
|
|
2446
|
-
* @description This accepts a list of entitlements to update. If the feature isn't part of the plan yet, it's added with all the privileges from the payload. If the feature is already part of the plan, the privilege and values are updated or added. All privileges must be valid for the feature. All features
|
|
2446
|
+
* @description This accepts a list of entitlements to update. If the feature isn't part of the plan yet, it's added with all the privileges from the payload. If the feature is already part of the plan, the privilege and values are updated or added. All privileges must be valid for the feature. All features and privileges not part of the payload are left untouched. To remove privileges or features, use the DELETE endpoints.
|
|
2447
2447
|
*
|
|
2448
2448
|
* @tags entitlements
|
|
2449
2449
|
* @name UpdateEntitlement
|
|
@@ -2628,7 +2628,7 @@ class Api extends HttpClient {
|
|
|
2628
2628
|
...params,
|
|
2629
2629
|
}),
|
|
2630
2630
|
/**
|
|
2631
|
-
* @description This endpoint updates a specific charge for a plan.
|
|
2631
|
+
* @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.
|
|
2632
2632
|
*
|
|
2633
2633
|
* @tags plans
|
|
2634
2634
|
* @name UpdatePlanCharge
|
|
@@ -2802,7 +2802,7 @@ class Api extends HttpClient {
|
|
|
2802
2802
|
...params,
|
|
2803
2803
|
}),
|
|
2804
2804
|
/**
|
|
2805
|
-
* @description This endpoint updates a specific fixed charge for a plan.
|
|
2805
|
+
* @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.
|
|
2806
2806
|
*
|
|
2807
2807
|
* @tags plans
|
|
2808
2808
|
* @name UpdatePlanFixedCharge
|
|
@@ -3151,7 +3151,7 @@ class Api extends HttpClient {
|
|
|
3151
3151
|
...params,
|
|
3152
3152
|
}),
|
|
3153
3153
|
/**
|
|
3154
|
-
* @description This endpoint allows you to update an existing alert for a subscription.
|
|
3154
|
+
* @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.
|
|
3155
3155
|
*
|
|
3156
3156
|
* @tags subscriptions
|
|
3157
3157
|
* @name UpdateSubscriptionAlert
|
|
@@ -3204,7 +3204,7 @@ class Api extends HttpClient {
|
|
|
3204
3204
|
...params,
|
|
3205
3205
|
}),
|
|
3206
3206
|
/**
|
|
3207
|
-
* @description This accepts a list of entitlements to update. If the feature isn't part of the subscription yet, it's added with all the privileges from the payload. If the feature is already part of the subscription (via plan or via override), the privilege and values are updated or added. All privileges must be valid for the feature. All features
|
|
3207
|
+
* @description This accepts a list of entitlements to update. If the feature isn't part of the subscription yet, it's added with all the privileges from the payload. If the feature is already part of the subscription (via plan or via override), the privilege and values are updated or added. All privileges must be valid for the feature. All features and privileges not part of the payload are left untouched. To remove privileges or features, use the DELETE endpoints.
|
|
3208
3208
|
*
|
|
3209
3209
|
* @tags entitlements
|
|
3210
3210
|
* @name UpdateSubscriptionEntitlements
|
|
@@ -3223,7 +3223,7 @@ class Api extends HttpClient {
|
|
|
3223
3223
|
...params,
|
|
3224
3224
|
}),
|
|
3225
3225
|
/**
|
|
3226
|
-
* @description This endpoint removes a specific feature entitlement from a subscription. The
|
|
3226
|
+
* @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.
|
|
3227
3227
|
*
|
|
3228
3228
|
* @tags entitlements
|
|
3229
3229
|
* @name DestroySubscriptionEntitlement
|
|
@@ -3240,7 +3240,7 @@ class Api extends HttpClient {
|
|
|
3240
3240
|
...params,
|
|
3241
3241
|
}),
|
|
3242
3242
|
/**
|
|
3243
|
-
* @description This endpoint removes a specific privilege from a subscription entitlement. The privilege
|
|
3243
|
+
* @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.
|
|
3244
3244
|
*
|
|
3245
3245
|
* @tags entitlements
|
|
3246
3246
|
* @name DestroySubscriptionEntitlementPrivilege
|
|
@@ -3454,7 +3454,7 @@ class Api extends HttpClient {
|
|
|
3454
3454
|
};
|
|
3455
3455
|
taxes = {
|
|
3456
3456
|
/**
|
|
3457
|
-
* @description This endpoint creates a new tax representing a customizable tax rate applicable to either
|
|
3457
|
+
* @description This endpoint creates a new tax representing a customizable tax rate applicable to either a billing entity or a specific customer.
|
|
3458
3458
|
*
|
|
3459
3459
|
* @tags taxes
|
|
3460
3460
|
* @name CreateTax
|
|
@@ -3472,7 +3472,7 @@ class Api extends HttpClient {
|
|
|
3472
3472
|
...params,
|
|
3473
3473
|
}),
|
|
3474
3474
|
/**
|
|
3475
|
-
* @description This endpoint retrieves all existing taxes representing a customizable tax rate applicable to either
|
|
3475
|
+
* @description This endpoint retrieves all existing taxes representing a customizable tax rate applicable to either a billing entity or a specific customer.
|
|
3476
3476
|
*
|
|
3477
3477
|
* @tags taxes
|
|
3478
3478
|
* @name FindAllTaxes
|
|
@@ -3489,7 +3489,7 @@ class Api extends HttpClient {
|
|
|
3489
3489
|
...params,
|
|
3490
3490
|
}),
|
|
3491
3491
|
/**
|
|
3492
|
-
* @description This endpoint updates an existing tax representing a customizable tax rate applicable to either
|
|
3492
|
+
* @description This endpoint updates an existing tax representing a customizable tax rate applicable to either a billing entity or a specific customer.
|
|
3493
3493
|
*
|
|
3494
3494
|
* @tags taxes
|
|
3495
3495
|
* @name UpdateTax
|
|
@@ -3507,11 +3507,11 @@ class Api extends HttpClient {
|
|
|
3507
3507
|
...params,
|
|
3508
3508
|
}),
|
|
3509
3509
|
/**
|
|
3510
|
-
* @description This endpoint retrieves an existing tax representing a customizable tax rate applicable to either
|
|
3510
|
+
* @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.
|
|
3511
3511
|
*
|
|
3512
3512
|
* @tags taxes
|
|
3513
3513
|
* @name FindTax
|
|
3514
|
-
* @summary Retrieve a
|
|
3514
|
+
* @summary Retrieve a tax
|
|
3515
3515
|
* @request GET:/taxes/{code}
|
|
3516
3516
|
* @secure
|
|
3517
3517
|
*/
|
|
@@ -3731,7 +3731,7 @@ class Api extends HttpClient {
|
|
|
3731
3731
|
...params,
|
|
3732
3732
|
}),
|
|
3733
3733
|
/**
|
|
3734
|
-
* @description This endpoint is used to retrieve a specific wallet
|
|
3734
|
+
* @description This endpoint is used to retrieve a specific wallet transaction.
|
|
3735
3735
|
*
|
|
3736
3736
|
* @tags wallets
|
|
3737
3737
|
* @name FindWalletTransaction
|
|
@@ -3799,7 +3799,7 @@ class Api extends HttpClient {
|
|
|
3799
3799
|
};
|
|
3800
3800
|
webhooks = {
|
|
3801
3801
|
/**
|
|
3802
|
-
* @description This endpoint is used to retrieve the public key used to verify the
|
|
3802
|
+
* @description **Deprecated.** Use `GET /webhooks/json_public_key` instead. This endpoint is used to retrieve the public key used to verify the webhook signature.
|
|
3803
3803
|
*
|
|
3804
3804
|
* @tags webhooks
|
|
3805
3805
|
* @name FetchPublicKey
|
|
@@ -3816,7 +3816,7 @@ class Api extends HttpClient {
|
|
|
3816
3816
|
...params,
|
|
3817
3817
|
}),
|
|
3818
3818
|
/**
|
|
3819
|
-
* @description This endpoint is used to retrieve the public key used to verify the
|
|
3819
|
+
* @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`.
|
|
3820
3820
|
*
|
|
3821
3821
|
* @tags webhooks
|
|
3822
3822
|
* @name FetchJsonPublicKey
|
|
@@ -3838,7 +3838,7 @@ class Api extends HttpClient {
|
|
|
3838
3838
|
*
|
|
3839
3839
|
* @tags webhook_endpoints
|
|
3840
3840
|
* @name CreateWebhookEndpoint
|
|
3841
|
-
* @summary Create a
|
|
3841
|
+
* @summary Create a webhook endpoint
|
|
3842
3842
|
* @request POST:/webhook_endpoints
|
|
3843
3843
|
* @secure
|
|
3844
3844
|
*/
|