mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
53 lines
1.1 KiB
Go
53 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 GetAccountRequest struct {
|
|
// Name of the ledger.
|
|
Ledger string `pathParam:"style=simple,explode=false,name=ledger"`
|
|
// Exact address of the account. It must match the following regular expressions pattern:
|
|
// ```
|
|
// ^\w+(:\w+)*$
|
|
// ```
|
|
//
|
|
Address string `pathParam:"style=simple,explode=false,name=address"`
|
|
}
|
|
|
|
func (o *GetAccountRequest) GetLedger() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Ledger
|
|
}
|
|
|
|
func (o *GetAccountRequest) GetAddress() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Address
|
|
}
|
|
|
|
type GetAccountResponse struct {
|
|
HTTPMeta components.HTTPMetadata `json:"-"`
|
|
// OK
|
|
AccountResponse *components.AccountResponse
|
|
}
|
|
|
|
func (o *GetAccountResponse) GetHTTPMeta() components.HTTPMetadata {
|
|
if o == nil {
|
|
return components.HTTPMetadata{}
|
|
}
|
|
return o.HTTPMeta
|
|
}
|
|
|
|
func (o *GetAccountResponse) GetAccountResponse() *components.AccountResponse {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.AccountResponse
|
|
}
|