mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* 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
49 lines
1.1 KiB
Go
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
|
|
}
|