Files
payments/pkg/client/models/operations/v3getpoolbalanceslatest.go
CrimsonandGitHub 5bc95257a2 feat(pools): Add new endpoint that returns latest pool balance (#442)
* Add method to fetch latest balance from storage

* Add functionality to fetch latest pool balance if at value is current time

* Add new API endpoint for fetching latest pool balances

* Generate openapi specs for new latest balances endpoint

* Add e2e test for new pool balances endpoint
2025-05-14 14:57:07 +00:00

49 lines
1.1 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package operations
import (
"github.com/formancehq/payments/pkg/client/models/components"
)
type V3GetPoolBalancesLatestRequest struct {
// The pool ID
PoolID string `pathParam:"style=simple,explode=false,name=poolID"`
}
func (o *V3GetPoolBalancesLatestRequest) GetPoolID() string {
if o == nil {
return ""
}
return o.PoolID
}
type V3GetPoolBalancesLatestResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// OK
V3PoolBalancesResponse *components.V3PoolBalancesResponse
// Error
V3ErrorResponse *components.V3ErrorResponse
}
func (o *V3GetPoolBalancesLatestResponse) GetHTTPMeta() components.HTTPMetadata {
if o == nil {
return components.HTTPMetadata{}
}
return o.HTTPMeta
}
func (o *V3GetPoolBalancesLatestResponse) GetV3PoolBalancesResponse() *components.V3PoolBalancesResponse {
if o == nil {
return nil
}
return o.V3PoolBalancesResponse
}
func (o *V3GetPoolBalancesLatestResponse) GetV3ErrorResponse() *components.V3ErrorResponse {
if o == nil {
return nil
}
return o.V3ErrorResponse
}