diff --git a/internal/incoming/models.go b/internal/incoming/models.go index 37dafa9..401be13 100644 --- a/internal/incoming/models.go +++ b/internal/incoming/models.go @@ -24,9 +24,10 @@ import ( ) type ACHFile struct { - FileID string `json:"id"` - ShardKey string `json:"shardKey"` - File *ach.File `json:"file"` + FileID string `json:"id"` + ShardKey string `json:"shardKey"` + ShardName string `json:"shardName"` + File *ach.File `json:"file"` } func (f ACHFile) Validate() error { @@ -43,12 +44,14 @@ func (f ACHFile) Validate() error { } type CancelACHFile struct { - FileID string `json:"id"` - ShardKey string `json:"shardKey"` + FileID string `json:"id"` + ShardKey string `json:"shardKey"` + ShardName string `json:"shardName"` } type FileCancellationResponse struct { FileID string `json:"id"` ShardKey string `json:"shardKey"` + ShardName string `json:"shardName"` Successful bool `json:"successful"` } diff --git a/pkg/models/events.go b/pkg/models/events.go index 6c1099a..b13d6d2 100644 --- a/pkg/models/events.go +++ b/pkg/models/events.go @@ -300,6 +300,7 @@ type FileCancellationResponse incoming.FileCancellationResponse type FileUploaded struct { FileID string `json:"fileID"` ShardKey string `json:"shardKey"` + ShardName string `json:"shardName"` Filename string `json:"filename"` UploadedAt time.Time `json:"uploadedAt"` }