Files
payments/pkg/client/models/components/transferinitiationadjustments.go
f420ffbe54 chore: rename adjustement to adjustment sdk generation (#521)
* chore: rename 'adjustement' to 'adjustment'

* chore: rename more 'adjustement' and also redundant 'status'

* chore: regenerate openapi files

* chore: remove all typos referencing 'adjusments'

* chore: fix some typos in comment, allow for backward compatibility

* chore: improve backward comp

* chore: also rename file names

* chore: drop change in payment_status enum to keep backward compatibility

* chore: also revert openapi + sdk

---------

Co-authored-by: Alecz <[email protected]>
Co-authored-by: fabrice guery <[email protected]>
2025-08-29 15:29:20 +00:00

63 lines
1.4 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package components
import (
"github.com/formancehq/payments/pkg/client/internal/utils"
"time"
)
type TransferInitiationAdjustments struct {
AdjustmentID string `json:"adjustmentID"`
CreatedAt time.Time `json:"createdAt"`
Status TransferInitiationStatus `json:"status"`
Error *string `json:"error,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
}
func (t TransferInitiationAdjustments) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(t, "", false)
}
func (t *TransferInitiationAdjustments) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil {
return err
}
return nil
}
func (o *TransferInitiationAdjustments) GetAdjustmentID() string {
if o == nil {
return ""
}
return o.AdjustmentID
}
func (o *TransferInitiationAdjustments) GetCreatedAt() time.Time {
if o == nil {
return time.Time{}
}
return o.CreatedAt
}
func (o *TransferInitiationAdjustments) GetStatus() TransferInitiationStatus {
if o == nil {
return TransferInitiationStatus("")
}
return o.Status
}
func (o *TransferInitiationAdjustments) GetError() *string {
if o == nil {
return nil
}
return o.Error
}
func (o *TransferInitiationAdjustments) GetMetadata() map[string]string {
if o == nil {
return nil
}
return o.Metadata
}