mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
71 lines
1.5 KiB
Go
71 lines
1.5 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package shared
|
|
|
|
import (
|
|
"github.com/formancehq/formance-sdk-go/v2/pkg/utils"
|
|
"time"
|
|
)
|
|
|
|
type TriggerOccurrence struct {
|
|
Date time.Time `json:"date"`
|
|
Error *string `json:"error,omitempty"`
|
|
Event map[string]any `json:"event"`
|
|
TriggerID string `json:"triggerID"`
|
|
WorkflowInstance *WorkflowInstance `json:"workflowInstance,omitempty"`
|
|
WorkflowInstanceID *string `json:"workflowInstanceID,omitempty"`
|
|
}
|
|
|
|
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) GetError() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Error
|
|
}
|
|
|
|
func (o *TriggerOccurrence) GetEvent() map[string]any {
|
|
if o == nil {
|
|
return map[string]any{}
|
|
}
|
|
return o.Event
|
|
}
|
|
|
|
func (o *TriggerOccurrence) GetTriggerID() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.TriggerID
|
|
}
|
|
|
|
func (o *TriggerOccurrence) GetWorkflowInstance() *WorkflowInstance {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.WorkflowInstance
|
|
}
|
|
|
|
func (o *TriggerOccurrence) GetWorkflowInstanceID() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.WorkflowInstanceID
|
|
}
|