From 4dd271a67f6ab530199c77159138df3c5e7b8a9b Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 6 Mar 2025 15:20:46 +0000 Subject: [PATCH] feat: update generated APIs --- packages/clients/src/api/billing/v2beta1/api.gen.ts | 11 +++++++++-- packages/clients/src/api/billing/v2beta1/types.gen.ts | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/clients/src/api/billing/v2beta1/api.gen.ts b/packages/clients/src/api/billing/v2beta1/api.gen.ts index f63616c67..039be94bf 100644 --- a/packages/clients/src/api/billing/v2beta1/api.gen.ts +++ b/packages/clients/src/api/billing/v2beta1/api.gen.ts @@ -221,9 +221,16 @@ export class API extends ParentAPI { ) /** - * List discounts. List all discounts for your organization and usable + * List discounts. List all discounts for your Organization and usable * categories, products, offers, references, regions and zones where the - * discount can be applied. + * discount can be applied. As a reseller: + * + * - If you do not specify an `organization_id` you will list the discounts + * applied to your own Organization and your customers + * - If you indicate your `organization_id` you will list only the discounts + * applied to your Organization + * - If you indicate `the organization_id` of one of your customers, you will + * list the discounts applied to their Organization. * * @param request - The request {@link ListDiscountsRequest} * @returns A Promise of ListDiscountsResponse diff --git a/packages/clients/src/api/billing/v2beta1/types.gen.ts b/packages/clients/src/api/billing/v2beta1/types.gen.ts index d22f5178e..158117f25 100644 --- a/packages/clients/src/api/billing/v2beta1/types.gen.ts +++ b/packages/clients/src/api/billing/v2beta1/types.gen.ts @@ -119,7 +119,7 @@ export interface Discount { id: string /** The creation date of the discount. */ creationDate?: Date - /** The organization ID of the discount. */ + /** The Organization ID of the discount. */ organizationId: string /** The description of the discount. */ description: string