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
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
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.

USAGE:
scw billing discount list [arg=value ...]
Expand Down
5 changes: 4 additions & 1 deletion docs/commands/billing.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ Discount management commands.

### 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.

**Usage:**

Expand Down
7 changes: 5 additions & 2 deletions internal/namespaces/billing/v2beta1/billing_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,11 @@ func billingInvoiceDownload() *core.Command {

func billingDiscountList() *core.Command {
return &core.Command{
Short: `List discounts`,
Long: `List all discounts for your organization and usable categories, products, offers, references, regions and zones where the discount can be applied.`,
Short: `List discounts`,
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:
- 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.`,
Namespace: "billing",
Resource: "discount",
Verb: "list",
Expand Down
Loading