diff --git a/scaleway-async/scaleway_async/billing/v2beta1/api.py b/scaleway-async/scaleway_async/billing/v2beta1/api.py index bbd172ffc..ceb1e18b8 100644 --- a/scaleway-async/scaleway_async/billing/v2beta1/api.py +++ b/scaleway-async/scaleway_async/billing/v2beta1/api.py @@ -245,7 +245,7 @@ async def list_invoices( :param organization_id: Organization ID. If specified, only invoices from this Organization will be returned. :param billing_period_start_after: Return only invoice with start date greater than billing_period_start. :param billing_period_start_before: Return only invoice with start date less than billing_period_start. - :param invoice_type: Invoice type. It can either be `periodic` or `purchase`. + :param invoice_type: Invoice type. It can either be `periodic`, `purchase` or `credit_note`. :param page: Page number. :param page_size: Positive integer lower or equal to 100 to select the number of items to return. :param order_by: How invoices are ordered in the response. @@ -292,7 +292,7 @@ async def list_invoices_all( :param organization_id: Organization ID. If specified, only invoices from this Organization will be returned. :param billing_period_start_after: Return only invoice with start date greater than billing_period_start. :param billing_period_start_before: Return only invoice with start date less than billing_period_start. - :param invoice_type: Invoice type. It can either be `periodic` or `purchase`. + :param invoice_type: Invoice type. It can either be `periodic`, `purchase` or `credit_note`. :param page: Page number. :param page_size: Positive integer lower or equal to 100 to select the number of items to return. :param order_by: How invoices are ordered in the response. @@ -337,7 +337,7 @@ async def export_invoices( :param organization_id: Organization ID. If specified, only invoices from this Organization will be returned. :param billing_period_start_after: Return only invoice with start date greater than billing_period_start. :param billing_period_start_before: Return only invoice with start date less than billing_period_start. - :param invoice_type: Invoice type. It can either be `periodic` or `purchase`. + :param invoice_type: Invoice type. It can either be `periodic`, `purchase` or `credit_note`. :param page: Page number. :param page_size: Positive integer lower or equal to 100 to select the number of items to return. :param order_by: How invoices are ordered in the response. diff --git a/scaleway-async/scaleway_async/billing/v2beta1/types.py b/scaleway-async/scaleway_async/billing/v2beta1/types.py index cffc9fcbb..9fb3713d7 100644 --- a/scaleway-async/scaleway_async/billing/v2beta1/types.py +++ b/scaleway-async/scaleway_async/billing/v2beta1/types.py @@ -76,6 +76,7 @@ class InvoiceType(str, Enum, metaclass=StrEnumMeta): UNKNOWN_TYPE = "unknown_type" PERIODIC = "periodic" PURCHASE = "purchase" + CREDIT_NOTE = "credit_note" def __str__(self) -> str: return str(self.value) @@ -464,7 +465,7 @@ class ExportInvoicesRequest: invoice_type: Optional[InvoiceType] = InvoiceType.UNKNOWN_TYPE """ - Invoice type. It can either be `periodic` or `purchase`. + Invoice type. It can either be `periodic`, `purchase` or `credit_note`. """ page: Optional[int] = 0 @@ -692,7 +693,7 @@ class ListInvoicesRequest: invoice_type: Optional[InvoiceType] = InvoiceType.UNKNOWN_TYPE """ - Invoice type. It can either be `periodic` or `purchase`. + Invoice type. It can either be `periodic`, `purchase` or `credit_note`. """ page: Optional[int] = 0 diff --git a/scaleway/scaleway/billing/v2beta1/api.py b/scaleway/scaleway/billing/v2beta1/api.py index dec434860..24e554736 100644 --- a/scaleway/scaleway/billing/v2beta1/api.py +++ b/scaleway/scaleway/billing/v2beta1/api.py @@ -245,7 +245,7 @@ def list_invoices( :param organization_id: Organization ID. If specified, only invoices from this Organization will be returned. :param billing_period_start_after: Return only invoice with start date greater than billing_period_start. :param billing_period_start_before: Return only invoice with start date less than billing_period_start. - :param invoice_type: Invoice type. It can either be `periodic` or `purchase`. + :param invoice_type: Invoice type. It can either be `periodic`, `purchase` or `credit_note`. :param page: Page number. :param page_size: Positive integer lower or equal to 100 to select the number of items to return. :param order_by: How invoices are ordered in the response. @@ -292,7 +292,7 @@ def list_invoices_all( :param organization_id: Organization ID. If specified, only invoices from this Organization will be returned. :param billing_period_start_after: Return only invoice with start date greater than billing_period_start. :param billing_period_start_before: Return only invoice with start date less than billing_period_start. - :param invoice_type: Invoice type. It can either be `periodic` or `purchase`. + :param invoice_type: Invoice type. It can either be `periodic`, `purchase` or `credit_note`. :param page: Page number. :param page_size: Positive integer lower or equal to 100 to select the number of items to return. :param order_by: How invoices are ordered in the response. @@ -337,7 +337,7 @@ def export_invoices( :param organization_id: Organization ID. If specified, only invoices from this Organization will be returned. :param billing_period_start_after: Return only invoice with start date greater than billing_period_start. :param billing_period_start_before: Return only invoice with start date less than billing_period_start. - :param invoice_type: Invoice type. It can either be `periodic` or `purchase`. + :param invoice_type: Invoice type. It can either be `periodic`, `purchase` or `credit_note`. :param page: Page number. :param page_size: Positive integer lower or equal to 100 to select the number of items to return. :param order_by: How invoices are ordered in the response. diff --git a/scaleway/scaleway/billing/v2beta1/types.py b/scaleway/scaleway/billing/v2beta1/types.py index cffc9fcbb..9fb3713d7 100644 --- a/scaleway/scaleway/billing/v2beta1/types.py +++ b/scaleway/scaleway/billing/v2beta1/types.py @@ -76,6 +76,7 @@ class InvoiceType(str, Enum, metaclass=StrEnumMeta): UNKNOWN_TYPE = "unknown_type" PERIODIC = "periodic" PURCHASE = "purchase" + CREDIT_NOTE = "credit_note" def __str__(self) -> str: return str(self.value) @@ -464,7 +465,7 @@ class ExportInvoicesRequest: invoice_type: Optional[InvoiceType] = InvoiceType.UNKNOWN_TYPE """ - Invoice type. It can either be `periodic` or `purchase`. + Invoice type. It can either be `periodic`, `purchase` or `credit_note`. """ page: Optional[int] = 0 @@ -692,7 +693,7 @@ class ListInvoicesRequest: invoice_type: Optional[InvoiceType] = InvoiceType.UNKNOWN_TYPE """ - Invoice type. It can either be `periodic` or `purchase`. + Invoice type. It can either be `periodic`, `purchase` or `credit_note`. """ page: Optional[int] = 0