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

48 lines
1.1 KiB
Go

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