Fixes + stable gateway ids
This commit is contained in:
@@ -1,21 +1,14 @@
|
||||
package model
|
||||
|
||||
// QuoteKind captures v2 quote kind metadata for persistence.
|
||||
type QuoteKind string
|
||||
// QuoteState captures v2 quote state metadata for persistence.
|
||||
type QuoteState string
|
||||
|
||||
const (
|
||||
QuoteKindUnspecified QuoteKind = "unspecified"
|
||||
QuoteKindExecutable QuoteKind = "executable"
|
||||
QuoteKindIndicative QuoteKind = "indicative"
|
||||
)
|
||||
|
||||
// QuoteLifecycle captures v2 quote lifecycle metadata for persistence.
|
||||
type QuoteLifecycle string
|
||||
|
||||
const (
|
||||
QuoteLifecycleUnspecified QuoteLifecycle = "unspecified"
|
||||
QuoteLifecycleActive QuoteLifecycle = "active"
|
||||
QuoteLifecycleExpired QuoteLifecycle = "expired"
|
||||
QuoteStateUnspecified QuoteState = "unspecified"
|
||||
QuoteStateIndicative QuoteState = "indicative"
|
||||
QuoteStateExecutable QuoteState = "executable"
|
||||
QuoteStateBlocked QuoteState = "blocked"
|
||||
QuoteStateExpired QuoteState = "expired"
|
||||
)
|
||||
|
||||
// QuoteBlockReason captures v2 non-executability reason for persistence.
|
||||
@@ -34,8 +27,6 @@ const (
|
||||
|
||||
// QuoteStatusV2 stores execution status metadata from quotation v2.
|
||||
type QuoteStatusV2 struct {
|
||||
Kind QuoteKind `bson:"kind,omitempty" json:"kind,omitempty"`
|
||||
Lifecycle QuoteLifecycle `bson:"lifecycle,omitempty" json:"lifecycle,omitempty"`
|
||||
Executable *bool `bson:"executable,omitempty" json:"executable,omitempty"`
|
||||
State QuoteState `bson:"state,omitempty" json:"state,omitempty"`
|
||||
BlockReason QuoteBlockReason `bson:"blockReason,omitempty" json:"blockReason,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user