feat(t215): add admin order authorization
This commit is contained in:
@@ -117,6 +117,7 @@ type ExecutionCandidateBatch struct {
|
||||
ProvenanceJSON *string
|
||||
CandidatesJSON string
|
||||
RecommendationJSON *string
|
||||
ReadyEvent *TaskEvent
|
||||
ReceivedAt time.Time
|
||||
ReceivedAfterExecutionExpiry bool
|
||||
}
|
||||
@@ -253,6 +254,54 @@ type CandidateDecisionDataset struct {
|
||||
HumanReviews []CandidateHumanReview
|
||||
}
|
||||
|
||||
type OrderAuthorizationStatus string
|
||||
|
||||
const (
|
||||
OrderAuthorizationPendingDelivery OrderAuthorizationStatus = "PENDING_DELIVERY"
|
||||
OrderAuthorizationDelivered OrderAuthorizationStatus = "DELIVERED"
|
||||
OrderAuthorizationAcknowledged OrderAuthorizationStatus = "ACKNOWLEDGED"
|
||||
OrderAuthorizationExecuting OrderAuthorizationStatus = "EXECUTING"
|
||||
OrderAuthorizationConsumed OrderAuthorizationStatus = "CONSUMED"
|
||||
OrderAuthorizationFailed OrderAuthorizationStatus = "FAILED"
|
||||
OrderAuthorizationRevoked OrderAuthorizationStatus = "REVOKED"
|
||||
OrderAuthorizationSuperseded OrderAuthorizationStatus = "SUPERSEDED"
|
||||
)
|
||||
|
||||
type OrderAuthorization struct {
|
||||
ID string
|
||||
TaskID string
|
||||
ExecutionID string
|
||||
AuthorizationVersion int
|
||||
CandidateKey string
|
||||
TaskContentSHA256 string
|
||||
TaskVersion int64
|
||||
ReviewID string
|
||||
ReviewVersion int
|
||||
UserID string
|
||||
DeviceID string
|
||||
ClaimGeneration int64
|
||||
OriginalSKU string
|
||||
Quantity int
|
||||
CandidateSKUText string
|
||||
CandidatePriceText string
|
||||
CardSignature string
|
||||
DetailSignature string
|
||||
DetailEvidenceSHA256 string
|
||||
SpecificationEvidenceSHA256 string
|
||||
Status OrderAuthorizationStatus
|
||||
SupersedesAuthorizationID *string
|
||||
CreatedByUserID string
|
||||
CreatedAt time.Time
|
||||
DeliveredAt *time.Time
|
||||
AcknowledgedAt *time.Time
|
||||
ExecutionStartedAt *time.Time
|
||||
ConsumedAt *time.Time
|
||||
FailedAt *time.Time
|
||||
RevokedAt *time.Time
|
||||
FailureCode *string
|
||||
FailureMessage *string
|
||||
}
|
||||
|
||||
type ExecutionReport struct {
|
||||
Events []ExecutionEvent
|
||||
EvidenceAssets []ExecutionEvidenceAsset
|
||||
@@ -262,11 +311,12 @@ type ExecutionReport struct {
|
||||
}
|
||||
|
||||
type TaskDetail struct {
|
||||
Task PurchaseTask
|
||||
Asset Asset
|
||||
Execution *TaskExecution
|
||||
Events []TaskEvent
|
||||
Report *ExecutionReport
|
||||
Task PurchaseTask
|
||||
Asset Asset
|
||||
Execution *TaskExecution
|
||||
Events []TaskEvent
|
||||
Report *ExecutionReport
|
||||
OrderAuthorizations []OrderAuthorization
|
||||
}
|
||||
|
||||
type TaskValidationError struct {
|
||||
|
||||
Reference in New Issue
Block a user