Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scaleway-async/scaleway_async/billing/v2beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions scaleway-async/scaleway_async/billing/v2beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions scaleway/scaleway/billing/v2beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions scaleway/scaleway/billing/v2beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading