mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
63 lines
1.4 KiB
Go
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 TriggerOccurrence struct {
|
|
Date time.Time `json:"date"`
|
|
Event map[string]interface{} `json:"event"`
|
|
TriggerID string `json:"triggerID"`
|
|
WorkflowInstance WorkflowInstance `json:"workflowInstance"`
|
|
WorkflowInstanceID string `json:"workflowInstanceID"`
|
|
}
|
|
|
|
func (t TriggerOccurrence) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(t, "", false)
|
|
}
|
|
|
|
func (t *TriggerOccurrence) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *TriggerOccurrence) GetDate() time.Time {
|
|
if o == nil {
|
|
return time.Time{}
|
|
}
|
|
return o.Date
|
|
}
|
|
|
|
func (o *TriggerOccurrence) GetEvent() map[string]interface{} {
|
|
if o == nil {
|
|
return map[string]interface{}{}
|
|
}
|
|
return o.Event
|
|
}
|
|
|
|
func (o *TriggerOccurrence) GetTriggerID() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.TriggerID
|
|
}
|
|
|
|
func (o *TriggerOccurrence) GetWorkflowInstance() WorkflowInstance {
|
|
if o == nil {
|
|
return WorkflowInstance{}
|
|
}
|
|
return o.WorkflowInstance
|
|
}
|
|
|
|
func (o *TriggerOccurrence) GetWorkflowInstanceID() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.WorkflowInstanceID
|
|
}
|