Files
2024-01-19 11:33:42 +00:00

83 lines
1.7 KiB
Go

// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package operations
import (
"github.com/formancehq/formance-sdk-go/v2/pkg/models/shared"
"github.com/formancehq/formance-sdk-go/v2/pkg/utils"
"net/http"
"time"
)
type GetPoolBalancesRequest struct {
// Filter balances by date.
//
At time.Time `queryParam:"style=form,explode=true,name=at"`
// The pool ID.
PoolID string `pathParam:"style=simple,explode=false,name=poolId"`
}
func (g GetPoolBalancesRequest) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(g, "", false)
}
func (g *GetPoolBalancesRequest) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &g, "", false, false); err != nil {
return err
}
return nil
}
func (o *GetPoolBalancesRequest) GetAt() time.Time {
if o == nil {
return time.Time{}
}
return o.At
}
func (o *GetPoolBalancesRequest) GetPoolID() string {
if o == nil {
return ""
}
return o.PoolID
}
type GetPoolBalancesResponse struct {
// HTTP response content type for this operation
ContentType string
// OK
PoolBalancesResponse *shared.PoolBalancesResponse
// HTTP response status code for this operation
StatusCode int
// Raw HTTP response; suitable for custom response parsing
RawResponse *http.Response
}
func (o *GetPoolBalancesResponse) GetContentType() string {
if o == nil {
return ""
}
return o.ContentType
}
func (o *GetPoolBalancesResponse) GetPoolBalancesResponse() *shared.PoolBalancesResponse {
if o == nil {
return nil
}
return o.PoolBalancesResponse
}
func (o *GetPoolBalancesResponse) GetStatusCode() int {
if o == nil {
return 0
}
return o.StatusCode
}
func (o *GetPoolBalancesResponse) GetRawResponse() *http.Response {
if o == nil {
return nil
}
return o.RawResponse
}