Files
stack/components/ledger/pkg/client/models/operations/v2getledgerinfo.go

40 lines
857 B
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package operations
import (
"github.com/formancehq/stack/ledger/client/models/components"
)
type V2GetLedgerInfoRequest struct {
// Name of the ledger.
Ledger string `pathParam:"style=simple,explode=false,name=ledger"`
}
func (o *V2GetLedgerInfoRequest) GetLedger() string {
if o == nil {
return ""
}
return o.Ledger
}
type V2GetLedgerInfoResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// OK
V2LedgerInfoResponse *components.V2LedgerInfoResponse
}
func (o *V2GetLedgerInfoResponse) GetHTTPMeta() components.HTTPMetadata {
if o == nil {
return components.HTTPMetadata{}
}
return o.HTTPMeta
}
func (o *V2GetLedgerInfoResponse) GetV2LedgerInfoResponse() *components.V2LedgerInfoResponse {
if o == nil {
return nil
}
return o.V2LedgerInfoResponse
}