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

68 lines
1.5 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package operations
import (
"github.com/formancehq/stack/ledger/client/internal/utils"
"github.com/formancehq/stack/ledger/client/models/components"
"time"
)
type V2CountAccountsRequest struct {
// Name of the ledger.
Ledger string `pathParam:"style=simple,explode=false,name=ledger"`
Pit *time.Time `queryParam:"style=form,explode=true,name=pit"`
RequestBody map[string]any `request:"mediaType=application/json"`
}
func (v V2CountAccountsRequest) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(v, "", false)
}
func (v *V2CountAccountsRequest) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &v, "", false, false); err != nil {
return err
}
return nil
}
func (o *V2CountAccountsRequest) GetLedger() string {
if o == nil {
return ""
}
return o.Ledger
}
func (o *V2CountAccountsRequest) GetPit() *time.Time {
if o == nil {
return nil
}
return o.Pit
}
func (o *V2CountAccountsRequest) GetRequestBody() map[string]any {
if o == nil {
return nil
}
return o.RequestBody
}
type V2CountAccountsResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
Headers map[string][]string
}
func (o *V2CountAccountsResponse) GetHTTPMeta() components.HTTPMetadata {
if o == nil {
return components.HTTPMetadata{}
}
return o.HTTPMeta
}
func (o *V2CountAccountsResponse) GetHeaders() map[string][]string {
if o == nil {
return map[string][]string{}
}
return o.Headers
}