+source currency pick fix +fx side propagation
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
package model
|
||||
|
||||
// QuoteRequestShape identifies the API surface that created the quote record.
|
||||
type QuoteRequestShape string
|
||||
|
||||
const (
|
||||
QuoteRequestShapeUnspecified QuoteRequestShape = "unspecified"
|
||||
QuoteRequestShapeSingle QuoteRequestShape = "single"
|
||||
QuoteRequestShapeBatch QuoteRequestShape = "batch"
|
||||
)
|
||||
|
||||
// QuoteState captures v2 quote state metadata for persistence.
|
||||
type QuoteState string
|
||||
|
||||
@@ -30,3 +39,10 @@ type QuoteStatusV2 struct {
|
||||
State QuoteState `bson:"state,omitempty" json:"state,omitempty"`
|
||||
BlockReason QuoteBlockReason `bson:"blockReason,omitempty" json:"blockReason,omitempty"`
|
||||
}
|
||||
|
||||
// PaymentQuoteItemV2 keeps one intent/quote/status tuple in a stable shape.
|
||||
type PaymentQuoteItemV2 struct {
|
||||
Intent *PaymentIntent `bson:"intent,omitempty" json:"intent,omitempty"`
|
||||
Quote *PaymentQuoteSnapshot `bson:"quote,omitempty" json:"quote,omitempty"`
|
||||
Status *QuoteStatusV2 `bson:"status,omitempty" json:"status,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user