mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
55 lines
1019 B
Go
55 lines
1019 B
Go
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
|
|
package shared
|
|
|
|
import (
|
|
"github.com/formancehq/formance-sdk-go/v2/pkg/utils"
|
|
"time"
|
|
)
|
|
|
|
type Workflow struct {
|
|
Config WorkflowConfig `json:"config"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
ID string `json:"id"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
func (w Workflow) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(w, "", false)
|
|
}
|
|
|
|
func (w *Workflow) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &w, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *Workflow) GetConfig() WorkflowConfig {
|
|
if o == nil {
|
|
return WorkflowConfig{}
|
|
}
|
|
return o.Config
|
|
}
|
|
|
|
func (o *Workflow) GetCreatedAt() time.Time {
|
|
if o == nil {
|
|
return time.Time{}
|
|
}
|
|
return o.CreatedAt
|
|
}
|
|
|
|
func (o *Workflow) GetID() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
func (o *Workflow) GetUpdatedAt() time.Time {
|
|
if o == nil {
|
|
return time.Time{}
|
|
}
|
|
return o.UpdatedAt
|
|
}
|