Files
2e03d96084 feat: update speakeasy (#1100)
Co-authored-by: Maxence Maireaux <[email protected]>
Co-authored-by: David Ragot <[email protected]>
2024-01-08 18:23:33 +00:00

86 lines
1.9 KiB
Go

// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package operations
import (
"github.com/formancehq/formance-sdk-go/pkg/models/sdkerrors"
"net/http"
)
type CountAccountsRequest struct {
// Filter accounts by address pattern (regular expression placed between ^ and $).
Address *string `queryParam:"style=form,explode=true,name=address"`
// Name of the ledger.
Ledger string `pathParam:"style=simple,explode=false,name=ledger"`
// 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]interface{} `queryParam:"style=deepObject,explode=true,name=metadata"`
}
func (o *CountAccountsRequest) GetAddress() *string {
if o == nil {
return nil
}
return o.Address
}
func (o *CountAccountsRequest) GetLedger() string {
if o == nil {
return ""
}
return o.Ledger
}
func (o *CountAccountsRequest) GetMetadata() map[string]interface{} {
if o == nil {
return nil
}
return o.Metadata
}
type CountAccountsResponse struct {
// HTTP response content type for this operation
ContentType string
// Error
ErrorResponse *sdkerrors.ErrorResponse
Headers map[string][]string
// HTTP response status code for this operation
StatusCode int
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
func (o *CountAccountsResponse) GetContentType() string {
if o == nil {
return ""
}
return o.ContentType
}
func (o *CountAccountsResponse) GetErrorResponse() *sdkerrors.ErrorResponse {
if o == nil {
return nil
}
return o.ErrorResponse
}
func (o *CountAccountsResponse) GetHeaders() map[string][]string {
if o == nil {
return map[string][]string{}
}
return o.Headers
}
func (o *CountAccountsResponse) GetStatusCode() int {
if o == nil {
return 0
}
return o.StatusCode
}
func (o *CountAccountsResponse) GetRawResponse() *http.Response {
if o == nil {
return nil
}
return o.RawResponse
}