mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
57 lines
1.4 KiB
Go
57 lines
1.4 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package operations
|
|
|
|
import (
|
|
"github.com/formancehq/stack/ledger/client/models/components"
|
|
)
|
|
|
|
type CountAccountsRequest struct {
|
|
// Name of the ledger.
|
|
Ledger string `pathParam:"style=simple,explode=false,name=ledger"`
|
|
// Filter accounts by address pattern (regular expression placed between ^ and $).
|
|
Address *string `queryParam:"style=form,explode=true,name=address"`
|
|
// Filter accounts by metadata key value pairs. The filter can be used like this metadata[key]=value1&metadata[a.nested.key]=value2
|
|
Metadata map[string]any `queryParam:"style=deepObject,explode=true,name=metadata"`
|
|
}
|
|
|
|
func (o *CountAccountsRequest) GetLedger() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Ledger
|
|
}
|
|
|
|
func (o *CountAccountsRequest) GetAddress() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Address
|
|
}
|
|
|
|
func (o *CountAccountsRequest) GetMetadata() map[string]any {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Metadata
|
|
}
|
|
|
|
type CountAccountsResponse struct {
|
|
HTTPMeta components.HTTPMetadata `json:"-"`
|
|
Headers map[string][]string
|
|
}
|
|
|
|
func (o *CountAccountsResponse) GetHTTPMeta() components.HTTPMetadata {
|
|
if o == nil {
|
|
return components.HTTPMetadata{}
|
|
}
|
|
return o.HTTPMeta
|
|
}
|
|
|
|
func (o *CountAccountsResponse) GetHeaders() map[string][]string {
|
|
if o == nil {
|
|
return map[string][]string{}
|
|
}
|
|
return o.Headers
|
|
}
|