Files
stack/releases/sdks/go/pkg/models/shared/v2triggeroccurrence.go
2024-01-19 11:33:42 +00:00

63 lines
1.4 KiB
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 V2TriggerOccurrence struct {
Date time.Time `json:"date"`
Event map[string]interface{} `json:"event"`
TriggerID string `json:"triggerID"`
WorkflowInstance V2WorkflowInstance `json:"workflowInstance"`
WorkflowInstanceID string `json:"workflowInstanceID"`
}
func (v V2TriggerOccurrence) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(v, "", false)
}
func (v *V2TriggerOccurrence) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &v, "", false, false); err != nil {
return err
}
return nil
}
func (o *V2TriggerOccurrence) GetDate() time.Time {
if o == nil {
return time.Time{}
}
return o.Date
}
func (o *V2TriggerOccurrence) GetEvent() map[string]interface{} {
if o == nil {
return map[string]interface{}{}
}
return o.Event
}
func (o *V2TriggerOccurrence) GetTriggerID() string {
if o == nil {
return ""
}
return o.TriggerID
}
func (o *V2TriggerOccurrence) GetWorkflowInstance() V2WorkflowInstance {
if o == nil {
return V2WorkflowInstance{}
}
return o.WorkflowInstance
}
func (o *V2TriggerOccurrence) GetWorkflowInstanceID() string {
if o == nil {
return ""
}
return o.WorkflowInstanceID
}