Skip to content

Commit 48ad408

Browse files
authoredMar 6, 2025··
docs(billing): add info about resellers (#4570)
1 parent 7304607 commit 48ad408

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed
 

‎cmd/scw/testdata/test-all-usage-billing-discount-list-usage.golden

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
3+
List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
4+
- If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
5+
- If you indicate your `organization_id` you will list only the discounts applied to your Organization
6+
- If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
47

58
USAGE:
69
scw billing discount list [arg=value ...]

‎docs/commands/billing.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ Discount management commands.
7070

7171
### List discounts
7272

73-
List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.
73+
List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
74+
- If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
75+
- If you indicate your `organization_id` you will list only the discounts applied to your Organization
76+
- If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
7477

7578
**Usage:**
7679

‎internal/namespaces/billing/v2beta1/billing_cli.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,11 @@ func billingInvoiceDownload() *core.Command {
376376

377377
func billingDiscountList() *core.Command {
378378
return &core.Command{
379-
Short: `List discounts`,
380-
Long: `List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.`,
379+
Short: `List discounts`,
380+
Long: `List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
381+
- If you do not specify an ` + "`" + `organization_id` + "`" + ` you will list the discounts applied to your own Organization and your customers
382+
- If you indicate your ` + "`" + `organization_id` + "`" + ` you will list only the discounts applied to your Organization
383+
- If you indicate ` + "`" + `the organization_id` + "`" + ` of one of your customers, you will list the discounts applied to their Organization.`,
381384
Namespace: "billing",
382385
Resource: "discount",
383386
Verb: "list",

0 commit comments

Comments
 (0)
Please sign in to comment.