Files
payments/pkg/client/models/operations/getpoolbalanceslatest.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 GetPoolBalancesLatestRequest struct {
// The pool ID.
PoolID string `pathParam:"style=simple,explode=false,name=poolId"`
}
func (o *GetPoolBalancesLatestRequest) GetPoolID() string {
if o == nil {
return ""
}
return o.PoolID
}
type GetPoolBalancesLatestResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// OK
PoolBalancesResponse *components.PoolBalancesResponse
// Error
PaymentsErrorResponse *components.PaymentsErrorResponse
}
func (o *GetPoolBalancesLatestResponse) GetHTTPMeta() components.HTTPMetadata {
if o == nil {
return components.HTTPMetadata{}
}
return o.HTTPMeta
}
func (o *GetPoolBalancesLatestResponse) GetPoolBalancesResponse() *components.PoolBalancesResponse {
if o == nil {
return nil
}
return o.PoolBalancesResponse
}
func (o *GetPoolBalancesLatestResponse) GetPaymentsErrorResponse() *components.PaymentsErrorResponse {
if o == nil {
return nil
}
return o.PaymentsErrorResponse
}