Files
2024-01-19 11:33:42 +00:00

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
}