Skip to content

Commit d349520

Browse files
authored
feat(billing): fix documentation for discounts (#433)
1 parent 8f9e99d commit d349520

File tree

2 files changed

+26
-0
lines changed
  • scaleway/scaleway/billing/v2beta1
  • scaleway-async/scaleway_async/billing/v2beta1

2 files changed

+26
-0
lines changed

scaleway-async/scaleway_async/billing/v2beta1/api.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,13 @@ async def list_discounts(
455455
organization_id: Optional[str] = None,
456456
) -> ListDiscountsResponse:
457457
"""
458+
List discounts.
459+
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
460+
:param order_by: Order discounts in the response by their description.
461+
:param page: Positive integer to choose the page to return.
462+
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
463+
:param organization_id: ID of the organization.
464+
:return: :class:`ListDiscountsResponse <ListDiscountsResponse>`
458465
459466
Usage:
460467
::
@@ -486,6 +493,12 @@ async def list_discounts_all(
486493
organization_id: Optional[str] = None,
487494
) -> List[Discount]:
488495
"""
496+
List discounts.
497+
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
498+
:param order_by: Order discounts in the response by their description.
499+
:param page: Positive integer to choose the page to return.
500+
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
501+
:param organization_id: ID of the organization.
489502
:return: :class:`List[ListDiscountsResponse] <List[ListDiscountsResponse]>`
490503
491504
Usage:

scaleway/scaleway/billing/v2beta1/api.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,13 @@ def list_discounts(
455455
organization_id: Optional[str] = None,
456456
) -> ListDiscountsResponse:
457457
"""
458+
List discounts.
459+
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
460+
:param order_by: Order discounts in the response by their description.
461+
:param page: Positive integer to choose the page to return.
462+
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
463+
:param organization_id: ID of the organization.
464+
:return: :class:`ListDiscountsResponse <ListDiscountsResponse>`
458465
459466
Usage:
460467
::
@@ -486,6 +493,12 @@ def list_discounts_all(
486493
organization_id: Optional[str] = None,
487494
) -> List[Discount]:
488495
"""
496+
List discounts.
497+
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
498+
:param order_by: Order discounts in the response by their description.
499+
:param page: Positive integer to choose the page to return.
500+
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
501+
:param organization_id: ID of the organization.
489502
:return: :class:`List[ListDiscountsResponse] <List[ListDiscountsResponse]>`
490503
491504
Usage:

0 commit comments

Comments
 (0)