Skip to content

Commit fc30a69

Browse files
committed
feat: add prod fourth plan
1 parent 4fce8a9 commit fc30a69

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

util/plans.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const (
2727
ProductionFirst2019
2828
ProductionSecond2019
2929
ProductionThird2019
30+
ProductionFourth2019
3031
)
3132

3233
// String is the implementation of Stringer interface that returns the string representation of Plan type.
@@ -50,6 +51,7 @@ func (o Plan) String() string {
5051
"2019-production-1",
5152
"2019-production-2",
5253
"2019-production-3",
54+
"2019-production-4",
5355
}[o]
5456
}
5557

@@ -97,6 +99,8 @@ func (o *Plan) UnmarshalJSON(bytes []byte) error {
9799
*o = ProductionSecond2019
98100
case ProductionThird2019.String():
99101
*o = ProductionThird2019
102+
case ProductionFourth2019.String():
103+
*o = ProductionFourth2019
100104
default:
101105
return fmt.Errorf("invalid plan encountered: %v", plan)
102106
}
@@ -143,6 +147,8 @@ func (o Plan) MarshalJSON() ([]byte, error) {
143147
plan = ProductionSecond2019.String()
144148
case ProductionThird2019:
145149
plan = ProductionThird2019.String()
150+
case ProductionFourth2019:
151+
plan = ProductionFourth2019.String()
146152
default:
147153
return nil, fmt.Errorf("invalid plan encountered: %v", o)
148154
}

0 commit comments

Comments
 (0)