Skip to content

Commit 4fa0f9b

Browse files
committed
feat: add automation rule NONE to booking proto
1 parent 00da04d commit 4fa0f9b

File tree

5 files changed

+95
-81
lines changed

5 files changed

+95
-81
lines changed

cmd/saga/gen/einride/saga/extend/book/v1beta1/booking.pb.go

Lines changed: 43 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/saga/gen/einride/saga/extend/book/v1beta1/booking_service_cli.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapiv2/book.swagger.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,12 +315,14 @@ definitions:
315315
BookingAutomationRule:
316316
type: string
317317
enum:
318+
- NONE
318319
- CREATE_SHIPMENTS
319320
- CREATE_AND_RELEASE_SHIPMENTS
320321
description: |-
321322
The rule that is applied when a confirmed booking is accepted.
322323
323324
- AUTOMATION_RULE_UNSPECIFIED: Unspecified auto rule.
325+
- NONE: No automation rule
324326
- CREATE_SHIPMENTS: When the confirmed booking is accepted, shipments will be created automatically from its stops and units.
325327
- CREATE_AND_RELEASE_SHIPMENTS: When the confirmed booking is accepted, shipments will be created automatically from its stops and units
326328
and then released.
@@ -619,7 +621,7 @@ definitions:
619621
properties:
620622
automationRule:
621623
$ref: '#/definitions/BookingAutomationRule'
622-
description: The rule that is applied when a confirmed booking is accepted. Defaults to no auto rule.
624+
description: The rule that is applied when a confirmed booking is accepted. Defaults to NONE.
623625
createTime:
624626
type: string
625627
format: date-time

proto/einride/saga/extend/book/v1beta1/booking.proto

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ message Booking {
4646
ServiceType service_type = 8 [(google.api.field_behavior) = REQUIRED];
4747
// External reference ID is a unique identifier that can be set by the client.
4848
string external_reference_id = 9;
49-
// The rule that is applied when a confirmed booking is accepted. Defaults to no auto rule.
49+
// The rule that is applied when a confirmed booking is accepted. Defaults to NONE.
5050
AutomationRule automation_rule = 10;
5151

5252
// The units included in this booking.
@@ -100,11 +100,13 @@ message Booking {
100100
enum AutomationRule {
101101
// Unspecified auto rule.
102102
AUTOMATION_RULE_UNSPECIFIED = 0;
103+
// No automation rule
104+
NONE = 1;
103105
// When the confirmed booking is accepted, shipments will be created automatically from its stops and units.
104-
CREATE_SHIPMENTS = 1;
106+
CREATE_SHIPMENTS = 2;
105107
// When the confirmed booking is accepted, shipments will be created automatically from its stops and units
106108
// and then released.
107-
CREATE_AND_RELEASE_SHIPMENTS = 2;
109+
CREATE_AND_RELEASE_SHIPMENTS = 3;
108110
}
109111

110112
// A stop is an address where an event is going to happen. The event could be

0 commit comments

Comments
 (0)