mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
41 lines
871 B
Go
41 lines
871 B
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 ConfirmHoldRequest struct {
|
|
// Define the amount to transfer.
|
|
Amount *big.Int `json:"amount,omitempty"`
|
|
// Define a final confirmation. Remaining funds will be returned to the wallet.
|
|
Final *bool `json:"final,omitempty"`
|
|
}
|
|
|
|
func (c ConfirmHoldRequest) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(c, "", false)
|
|
}
|
|
|
|
func (c *ConfirmHoldRequest) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *ConfirmHoldRequest) GetAmount() *big.Int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Amount
|
|
}
|
|
|
|
func (o *ConfirmHoldRequest) GetFinal() *bool {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Final
|
|
}
|