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
10 changes: 8 additions & 2 deletions scaleway-async/scaleway_async/billing/v2beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,10 @@ async def list_discounts(
) -> ListDiscountsResponse:
"""
List discounts.
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the 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 order_by: Order discounts in the response by their description.
:param page: Positive integer to choose the page to return.
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
Expand Down Expand Up @@ -476,7 +479,10 @@ async def list_discounts_all(
) -> List[Discount]:
"""
List discounts.
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the 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 order_by: Order discounts in the response by their description.
:param page: Positive integer to choose the page to return.
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
Expand Down
2 changes: 1 addition & 1 deletion scaleway-async/scaleway_async/billing/v2beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class Discount:

organization_id: str
"""
The organization ID of the discount.
The Organization ID of the discount.
"""

description: str
Expand Down
10 changes: 8 additions & 2 deletions scaleway/scaleway/billing/v2beta1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,10 @@ def list_discounts(
) -> ListDiscountsResponse:
"""
List discounts.
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the 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 order_by: Order discounts in the response by their description.
:param page: Positive integer to choose the page to return.
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
Expand Down Expand Up @@ -476,7 +479,10 @@ def list_discounts_all(
) -> List[Discount]:
"""
List discounts.
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the 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 order_by: Order discounts in the response by their description.
:param page: Positive integer to choose the page to return.
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
Expand Down
2 changes: 1 addition & 1 deletion scaleway/scaleway/billing/v2beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class Discount:

organization_id: str
"""
The organization ID of the discount.
The Organization ID of the discount.
"""

description: str
Expand Down