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

40 lines
837 B
Go

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