Skip to content

Commit b22de82

Browse files
authored
docs(billing): add info about resellers (#890)
1 parent a79fe48 commit b22de82

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,10 @@ async def list_discounts(
438438
) -> ListDiscountsResponse:
439439
"""
440440
List discounts.
441-
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
441+
List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
442+
- If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
443+
- If you indicate your `organization_id` you will list only the discounts applied to your Organization
444+
- If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
442445
:param order_by: Order discounts in the response by their description.
443446
:param page: Positive integer to choose the page to return.
444447
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
@@ -476,7 +479,10 @@ async def list_discounts_all(
476479
) -> List[Discount]:
477480
"""
478481
List discounts.
479-
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
482+
List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
483+
- If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
484+
- If you indicate your `organization_id` you will list only the discounts applied to your Organization
485+
- If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
480486
:param order_by: Order discounts in the response by their description.
481487
:param page: Positive integer to choose the page to return.
482488
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class Discount:
211211

212212
organization_id: str
213213
"""
214-
The organization ID of the discount.
214+
The Organization ID of the discount.
215215
"""
216216

217217
description: str

scaleway/scaleway/billing/v2beta1/api.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,10 @@ def list_discounts(
438438
) -> ListDiscountsResponse:
439439
"""
440440
List discounts.
441-
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
441+
List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
442+
- If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
443+
- If you indicate your `organization_id` you will list only the discounts applied to your Organization
444+
- If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
442445
:param order_by: Order discounts in the response by their description.
443446
:param page: Positive integer to choose the page to return.
444447
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.
@@ -476,7 +479,10 @@ def list_discounts_all(
476479
) -> List[Discount]:
477480
"""
478481
List discounts.
479-
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
482+
List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
483+
- If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
484+
- If you indicate your `organization_id` you will list only the discounts applied to your Organization
485+
- If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
480486
:param order_by: Order discounts in the response by their description.
481487
:param page: Positive integer to choose the page to return.
482488
:param page_size: Positive integer lower or equal to 100 to select the number of items to return.

scaleway/scaleway/billing/v2beta1/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class Discount:
211211

212212
organization_id: str
213213
"""
214-
The organization ID of the discount.
214+
The Organization ID of the discount.
215215
"""
216216

217217
description: str

0 commit comments

Comments
 (0)