mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
55 lines
1.2 KiB
Go
55 lines
1.2 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 TransferInitiationPayments struct {
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
Error string `json:"error"`
|
|
PaymentID string `json:"paymentID"`
|
|
Status TransferInitiationStatus `json:"status"`
|
|
}
|
|
|
|
func (t TransferInitiationPayments) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(t, "", false)
|
|
}
|
|
|
|
func (t *TransferInitiationPayments) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *TransferInitiationPayments) GetCreatedAt() time.Time {
|
|
if o == nil {
|
|
return time.Time{}
|
|
}
|
|
return o.CreatedAt
|
|
}
|
|
|
|
func (o *TransferInitiationPayments) GetError() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Error
|
|
}
|
|
|
|
func (o *TransferInitiationPayments) GetPaymentID() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.PaymentID
|
|
}
|
|
|
|
func (o *TransferInitiationPayments) GetStatus() TransferInitiationStatus {
|
|
if o == nil {
|
|
return TransferInitiationStatus("")
|
|
}
|
|
return o.Status
|
|
}
|