mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
74 lines
1.6 KiB
Go
74 lines
1.6 KiB
Go
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
|
|
package shared
|
|
|
|
import (
|
|
"github.com/formancehq/formance-sdk-go/v2/pkg/utils"
|
|
"math/big"
|
|
)
|
|
|
|
type V2BulkElementRevertTransactionData struct {
|
|
AtEffectiveDate *bool `json:"atEffectiveDate,omitempty"`
|
|
Force *bool `json:"force,omitempty"`
|
|
ID *big.Int `json:"id"`
|
|
}
|
|
|
|
func (v V2BulkElementRevertTransactionData) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(v, "", false)
|
|
}
|
|
|
|
func (v *V2BulkElementRevertTransactionData) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &v, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *V2BulkElementRevertTransactionData) GetAtEffectiveDate() *bool {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.AtEffectiveDate
|
|
}
|
|
|
|
func (o *V2BulkElementRevertTransactionData) GetForce() *bool {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Force
|
|
}
|
|
|
|
func (o *V2BulkElementRevertTransactionData) GetID() *big.Int {
|
|
if o == nil {
|
|
return big.NewInt(0)
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
type V2BulkElementRevertTransaction struct {
|
|
Action string `json:"action"`
|
|
Data *V2BulkElementRevertTransactionData `json:"data,omitempty"`
|
|
Ik *string `json:"ik,omitempty"`
|
|
}
|
|
|
|
func (o *V2BulkElementRevertTransaction) GetAction() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Action
|
|
}
|
|
|
|
func (o *V2BulkElementRevertTransaction) GetData() *V2BulkElementRevertTransactionData {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Data
|
|
}
|
|
|
|
func (o *V2BulkElementRevertTransaction) GetIk() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Ik
|
|
}
|