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

71 lines
1.7 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package operations
import (
"github.com/formancehq/stack/ledger/client/models/components"
)
type V2AddMetadataToAccountRequest 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"`
// Set the dry run mode. Dry run mode doesn't add the logs to the database or publish a message to the message broker.
DryRun *bool `queryParam:"style=form,explode=true,name=dryRun"`
// Use an idempotency key
IdempotencyKey *string `header:"style=simple,explode=false,name=Idempotency-Key"`
// metadata
RequestBody map[string]string `request:"mediaType=application/json"`
}
func (o *V2AddMetadataToAccountRequest) GetLedger() string {
if o == nil {
return ""
}
return o.Ledger
}
func (o *V2AddMetadataToAccountRequest) GetAddress() string {
if o == nil {
return ""
}
return o.Address
}
func (o *V2AddMetadataToAccountRequest) GetDryRun() *bool {
if o == nil {
return nil
}
return o.DryRun
}
func (o *V2AddMetadataToAccountRequest) GetIdempotencyKey() *string {
if o == nil {
return nil
}
return o.IdempotencyKey
}
func (o *V2AddMetadataToAccountRequest) GetRequestBody() map[string]string {
if o == nil {
return map[string]string{}
}
return o.RequestBody
}
type V2AddMetadataToAccountResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
}
func (o *V2AddMetadataToAccountResponse) GetHTTPMeta() components.HTTPMetadata {
if o == nil {
return components.HTTPMetadata{}
}
return o.HTTPMeta
}