Files
stack/components/ledger/pkg/client/models/operations/addmetadatatoaccount.go

53 lines
1.1 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package operations
import (
"github.com/formancehq/stack/ledger/client/models/components"
)
type AddMetadataToAccountRequest struct {
// Name of the ledger.
Ledger string `pathParam:"style=simple,explode=false,name=ledger"`
// Exact address of the account. It must match the following regular expressions pattern:
// ```
// ^\w+(:\w+)*$
// ```
//
Address string `pathParam:"style=simple,explode=false,name=address"`
// metadata
RequestBody map[string]any `request:"mediaType=application/json"`
}
func (o *AddMetadataToAccountRequest) GetLedger() string {
if o == nil {
return ""
}
return o.Ledger
}
func (o *AddMetadataToAccountRequest) GetAddress() string {
if o == nil {
return ""
}
return o.Address
}
func (o *AddMetadataToAccountRequest) GetRequestBody() map[string]any {
if o == nil {
return nil
}
return o.RequestBody
}
type AddMetadataToAccountResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
}
func (o *AddMetadataToAccountResponse) GetHTTPMeta() components.HTTPMetadata {
if o == nil {
return components.HTTPMetadata{}
}
return o.HTTPMeta
}