feat(t217): verify authorized order dry runs
This commit is contained in:
@@ -328,6 +328,33 @@ type DeviceOrderCommand struct {
|
||||
AuthorizationStatus OrderAuthorizationStatus
|
||||
}
|
||||
|
||||
type OrderDryRunStatus string
|
||||
|
||||
const (
|
||||
OrderDryRunPreparing OrderDryRunStatus = "PREPARING"
|
||||
OrderDryRunReady OrderDryRunStatus = "READY"
|
||||
)
|
||||
|
||||
type OrderDryRun struct {
|
||||
ID string
|
||||
AuthorizationID string
|
||||
TaskID string
|
||||
ExecutionID string
|
||||
CommandSHA256 string
|
||||
Status OrderDryRunStatus
|
||||
CardSignature *string
|
||||
DetailSignature *string
|
||||
ObservedTitle *string
|
||||
SelectedSKU *string
|
||||
Quantity *int
|
||||
UnitPriceCents *int64
|
||||
TotalPriceCents *int64
|
||||
EvidenceAssetID *string
|
||||
EvidenceSHA256 *string
|
||||
StartedAt time.Time
|
||||
ReadyAt *time.Time
|
||||
}
|
||||
|
||||
type ExecutionReport struct {
|
||||
Events []ExecutionEvent
|
||||
EvidenceAssets []ExecutionEvidenceAsset
|
||||
|
||||
Reference in New Issue
Block a user