mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
87 lines
1.8 KiB
Go
87 lines
1.8 KiB
Go
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
|
|
package operations
|
|
|
|
import (
|
|
"github.com/formancehq/formance-sdk-go/v2/pkg/utils"
|
|
"net/http"
|
|
"time"
|
|
)
|
|
|
|
type V2CountTransactionsRequest struct {
|
|
RequestBody map[string]any `request:"mediaType=application/json"`
|
|
// Name of the ledger.
|
|
Ledger string `pathParam:"style=simple,explode=false,name=ledger"`
|
|
Pit *time.Time `queryParam:"style=form,explode=true,name=pit"`
|
|
}
|
|
|
|
func (v V2CountTransactionsRequest) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(v, "", false)
|
|
}
|
|
|
|
func (v *V2CountTransactionsRequest) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &v, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *V2CountTransactionsRequest) GetRequestBody() map[string]any {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.RequestBody
|
|
}
|
|
|
|
func (o *V2CountTransactionsRequest) GetLedger() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Ledger
|
|
}
|
|
|
|
func (o *V2CountTransactionsRequest) GetPit() *time.Time {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Pit
|
|
}
|
|
|
|
type V2CountTransactionsResponse struct {
|
|
// HTTP response content type for this operation
|
|
ContentType string
|
|
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 *V2CountTransactionsResponse) GetContentType() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.ContentType
|
|
}
|
|
|
|
func (o *V2CountTransactionsResponse) GetHeaders() map[string][]string {
|
|
if o == nil {
|
|
return map[string][]string{}
|
|
}
|
|
return o.Headers
|
|
}
|
|
|
|
func (o *V2CountTransactionsResponse) GetStatusCode() int {
|
|
if o == nil {
|
|
return 0
|
|
}
|
|
return o.StatusCode
|
|
}
|
|
|
|
func (o *V2CountTransactionsResponse) GetRawResponse() *http.Response {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.RawResponse
|
|
}
|