Skip to content

Commit 6f11af3

Browse files
authored
docs(billing): add info about resellers (scaleway#2452)
1 parent 9c7eed1 commit 6f11af3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

api/billing/v2beta1/billing_sdk.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ type Discount struct {
564564
// CreationDate: the creation date of the discount.
565565
CreationDate *time.Time `json:"creation_date"`
566566

567-
// OrganizationID: the organization ID of the discount.
567+
// OrganizationID: the Organization ID of the discount.
568568
OrganizationID string `json:"organization_id"`
569569

570570
// Description: the description of the discount.
@@ -1124,7 +1124,10 @@ func (s *API) DownloadInvoice(req *DownloadInvoiceRequest, opts ...scw.RequestOp
11241124
return &resp, nil
11251125
}
11261126

1127-
// ListDiscounts: List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
1127+
// ListDiscounts: List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
1128+
// - If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
1129+
// - If you indicate your `organization_id` you will list only the discounts applied to your Organization
1130+
// - If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
11281131
func (s *API) ListDiscounts(req *ListDiscountsRequest, opts ...scw.RequestOption) (*ListDiscountsResponse, error) {
11291132
var err error
11301133

0 commit comments

Comments
 (0)