Skip to content

Commit 85a8b50

Browse files
authored
feat(billing): update ListDiscount order_by to accept start_date and expiration_date (scaleway#4318)
1 parent 0244601 commit 85a8b50

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ USAGE:
66
scw billing discount list [arg=value ...]
77

88
ARGS:
9-
[order-by] Order discounts in the response by their description (creation_date_desc | creation_date_asc)
9+
[order-by] Order discounts in the response by their description (creation_date_desc | creation_date_asc | start_date_desc | start_date_asc | stop_date_desc | stop_date_asc)
1010
[organization-id] ID of the organization
1111

1212
FLAGS:

docs/commands/billing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ scw billing discount list [arg=value ...]
8383

8484
| Name | | Description |
8585
|------|---|-------------|
86-
| order-by | One of: `creation_date_desc`, `creation_date_asc` | Order discounts in the response by their description |
86+
| order-by | One of: `creation_date_desc`, `creation_date_asc`, `start_date_desc`, `start_date_asc`, `stop_date_desc`, `stop_date_asc` | Order discounts in the response by their description |
8787
| organization-id | | ID of the organization |
8888

8989

internal/namespaces/billing/v2beta1/billing_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func billingDiscountList() *core.Command {
390390
Required: false,
391391
Deprecated: false,
392392
Positional: false,
393-
EnumValues: []string{"creation_date_desc", "creation_date_asc"},
393+
EnumValues: []string{"creation_date_desc", "creation_date_asc", "start_date_desc", "start_date_asc", "stop_date_desc", "stop_date_asc"},
394394
},
395395
{
396396
Name: "organization-id",

0 commit comments

Comments
 (0)