client

package module
v0.0.0-...-a065685 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 22 Imported by: 0

README

Go API client for Numary

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: LEDGER_VERSION
  • Package version: latest
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/numary/go-ledgerclient

Put the package under your project folder and add the following in import:

import sw "./client"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://.o.numary.cloud/ledger

Class Method HTTP request Description
AccountsApi AddMetadataToAccount Post /{ledger}/accounts/{address}/metadata Add metadata to an account.
AccountsApi CountAccounts Head /{ledger}/accounts Count the accounts from a ledger.
AccountsApi GetAccount Get /{ledger}/accounts/{address} Get account by its address.
AccountsApi ListAccounts Get /{ledger}/accounts List accounts from a ledger.
BalancesApi GetBalances Get /{ledger}/balances Get the balances from a ledger's account
BalancesApi GetBalancesAggregated Get /{ledger}/aggregate/balances Get the aggregated balances from selected accounts
MappingApi GetMapping Get /{ledger}/mapping Get the mapping of a ledger.
MappingApi UpdateMapping Put /{ledger}/mapping Update the mapping of a ledger.
ScriptApi RunScript Post /{ledger}/script Execute a Numscript.
ServerApi GetInfo Get /_info Show server information.
StatsApi ReadStats Get /{ledger}/stats Get Stats
TransactionsApi AddMetadataOnTransaction Post /{ledger}/transactions/{txid}/metadata Set the metadata of a transaction by its ID.
TransactionsApi CountTransactions Head /{ledger}/transactions Count the transactions from a ledger.
TransactionsApi CreateTransaction Post /{ledger}/transactions Create a new transaction to a ledger.
TransactionsApi CreateTransactions Post /{ledger}/transactions/batch Create a new batch of transactions to a ledger.
TransactionsApi GetTransaction Get /{ledger}/transactions/{txid} Get transaction from a ledger by its ID.
TransactionsApi ListTransactions Get /{ledger}/transactions List transactions from a ledger.
TransactionsApi RevertTransaction Post /{ledger}/transactions/{txid}/revert Revert a ledger transaction by its ID.

Documentation For Models

Documentation For Authorization

basicAuth
  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
    UserName: "username",
    Password: "password",
})
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var AllowedErrorCodeEnumValues = []ErrorCode{
	"INTERNAL",
	"INSUFFICIENT_FUND",
	"VALIDATION",
	"CONFLICT",
}

All allowed values of ErrorCode enum

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	AccountsApi *AccountsApiService

	BalancesApi *BalancesApiService

	MappingApi *MappingApiService

	ScriptApi *ScriptApiService

	ServerApi *ServerApiService

	StatsApi *StatsApiService

	TransactionsApi *TransactionsApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Ledger API API vLEDGER_VERSION In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type Account

type Account struct {
	Address  string                  `json:"address"`
	Type     *string                 `json:"type,omitempty"`
	Metadata *map[string]interface{} `json:"metadata,omitempty"`
}

Account struct for Account

func NewAccount

func NewAccount(address string) *Account

NewAccount instantiates a new Account object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountWithDefaults

func NewAccountWithDefaults() *Account

NewAccountWithDefaults instantiates a new Account object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Account) GetAddress

func (o *Account) GetAddress() string

GetAddress returns the Address field value

func (*Account) GetAddressOk

func (o *Account) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.

func (*Account) GetMetadata

func (o *Account) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*Account) GetMetadataOk

func (o *Account) GetMetadataOk() (*map[string]interface{}, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Account) GetType

func (o *Account) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*Account) GetTypeOk

func (o *Account) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Account) HasMetadata

func (o *Account) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*Account) HasType

func (o *Account) HasType() bool

HasType returns a boolean if a field has been set.

func (Account) MarshalJSON

func (o Account) MarshalJSON() ([]byte, error)

func (*Account) SetAddress

func (o *Account) SetAddress(v string)

SetAddress sets field value

func (*Account) SetMetadata

func (o *Account) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*Account) SetType

func (o *Account) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

type AccountWithVolumesAndBalances

type AccountWithVolumesAndBalances struct {
	Address  string                       `json:"address"`
	Type     *string                      `json:"type,omitempty"`
	Metadata *map[string]interface{}      `json:"metadata,omitempty"`
	Volumes  *map[string]map[string]int32 `json:"volumes,omitempty"`
	Balances *map[string]int32            `json:"balances,omitempty"`
}

AccountWithVolumesAndBalances struct for AccountWithVolumesAndBalances

func NewAccountWithVolumesAndBalances

func NewAccountWithVolumesAndBalances(address string) *AccountWithVolumesAndBalances

NewAccountWithVolumesAndBalances instantiates a new AccountWithVolumesAndBalances object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountWithVolumesAndBalancesWithDefaults

func NewAccountWithVolumesAndBalancesWithDefaults() *AccountWithVolumesAndBalances

NewAccountWithVolumesAndBalancesWithDefaults instantiates a new AccountWithVolumesAndBalances object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountWithVolumesAndBalances) GetAddress

func (o *AccountWithVolumesAndBalances) GetAddress() string

GetAddress returns the Address field value

func (*AccountWithVolumesAndBalances) GetAddressOk

func (o *AccountWithVolumesAndBalances) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.

func (*AccountWithVolumesAndBalances) GetBalances

func (o *AccountWithVolumesAndBalances) GetBalances() map[string]int32

GetBalances returns the Balances field value if set, zero value otherwise.

func (*AccountWithVolumesAndBalances) GetBalancesOk

func (o *AccountWithVolumesAndBalances) GetBalancesOk() (*map[string]int32, bool)

GetBalancesOk returns a tuple with the Balances field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountWithVolumesAndBalances) GetMetadata

func (o *AccountWithVolumesAndBalances) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*AccountWithVolumesAndBalances) GetMetadataOk

func (o *AccountWithVolumesAndBalances) GetMetadataOk() (*map[string]interface{}, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountWithVolumesAndBalances) GetType

GetType returns the Type field value if set, zero value otherwise.

func (*AccountWithVolumesAndBalances) GetTypeOk

func (o *AccountWithVolumesAndBalances) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountWithVolumesAndBalances) GetVolumes

func (o *AccountWithVolumesAndBalances) GetVolumes() map[string]map[string]int32

GetVolumes returns the Volumes field value if set, zero value otherwise.

func (*AccountWithVolumesAndBalances) GetVolumesOk

func (o *AccountWithVolumesAndBalances) GetVolumesOk() (*map[string]map[string]int32, bool)

GetVolumesOk returns a tuple with the Volumes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountWithVolumesAndBalances) HasBalances

func (o *AccountWithVolumesAndBalances) HasBalances() bool

HasBalances returns a boolean if a field has been set.

func (*AccountWithVolumesAndBalances) HasMetadata

func (o *AccountWithVolumesAndBalances) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*AccountWithVolumesAndBalances) HasType

func (o *AccountWithVolumesAndBalances) HasType() bool

HasType returns a boolean if a field has been set.

func (*AccountWithVolumesAndBalances) HasVolumes

func (o *AccountWithVolumesAndBalances) HasVolumes() bool

HasVolumes returns a boolean if a field has been set.

func (AccountWithVolumesAndBalances) MarshalJSON

func (o AccountWithVolumesAndBalances) MarshalJSON() ([]byte, error)

func (*AccountWithVolumesAndBalances) SetAddress

func (o *AccountWithVolumesAndBalances) SetAddress(v string)

SetAddress sets field value

func (*AccountWithVolumesAndBalances) SetBalances

func (o *AccountWithVolumesAndBalances) SetBalances(v map[string]int32)

SetBalances gets a reference to the given map[string]int32 and assigns it to the Balances field.

func (*AccountWithVolumesAndBalances) SetMetadata

func (o *AccountWithVolumesAndBalances) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*AccountWithVolumesAndBalances) SetType

func (o *AccountWithVolumesAndBalances) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*AccountWithVolumesAndBalances) SetVolumes

func (o *AccountWithVolumesAndBalances) SetVolumes(v map[string]map[string]int32)

SetVolumes gets a reference to the given map[string]map[string]int32 and assigns it to the Volumes field.

type AccountsApiService

type AccountsApiService service

AccountsApiService AccountsApi service

func (*AccountsApiService) AddMetadataToAccount

func (a *AccountsApiService) AddMetadataToAccount(ctx _context.Context, ledger string, address string) ApiAddMetadataToAccountRequest

AddMetadataToAccount Add metadata to an account.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@param address Exact address of the account. It must match the following regular expressions pattern: ``` ^\\w+(:\\w+)*$ ```
@return ApiAddMetadataToAccountRequest

func (*AccountsApiService) AddMetadataToAccountExecute

func (a *AccountsApiService) AddMetadataToAccountExecute(r ApiAddMetadataToAccountRequest) (*_nethttp.Response, error)

Execute executes the request

func (*AccountsApiService) CountAccounts

func (a *AccountsApiService) CountAccounts(ctx _context.Context, ledger string) ApiCountAccountsRequest

CountAccounts Count the accounts from a ledger.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@return ApiCountAccountsRequest

func (*AccountsApiService) CountAccountsExecute

func (a *AccountsApiService) CountAccountsExecute(r ApiCountAccountsRequest) (*_nethttp.Response, error)

Execute executes the request

func (*AccountsApiService) GetAccount

func (a *AccountsApiService) GetAccount(ctx _context.Context, ledger string, address string) ApiGetAccountRequest

GetAccount Get account by its address.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@param address Exact address of the account. It must match the following regular expressions pattern: ``` ^\\w+(:\\w+)*$ ```
@return ApiGetAccountRequest

func (*AccountsApiService) GetAccountExecute

Execute executes the request

@return GetAccount200Response

func (*AccountsApiService) ListAccounts

func (a *AccountsApiService) ListAccounts(ctx _context.Context, ledger string) ApiListAccountsRequest

ListAccounts List accounts from a ledger.

List accounts from a ledger, sorted by address in descending order.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@return ApiListAccountsRequest

func (*AccountsApiService) ListAccountsExecute

Execute executes the request

@return ListAccounts200Response

type ApiAddMetadataOnTransactionRequest

type ApiAddMetadataOnTransactionRequest struct {
	ApiService *TransactionsApiService
	// contains filtered or unexported fields
}

func (ApiAddMetadataOnTransactionRequest) Execute

func (ApiAddMetadataOnTransactionRequest) RequestBody

func (r ApiAddMetadataOnTransactionRequest) RequestBody(requestBody map[string]interface{}) ApiAddMetadataOnTransactionRequest

metadata

type ApiAddMetadataToAccountRequest

type ApiAddMetadataToAccountRequest struct {
	ApiService *AccountsApiService
	// contains filtered or unexported fields
}

func (ApiAddMetadataToAccountRequest) Execute

func (ApiAddMetadataToAccountRequest) RequestBody

func (r ApiAddMetadataToAccountRequest) RequestBody(requestBody map[string]interface{}) ApiAddMetadataToAccountRequest

metadata

type ApiCountAccountsRequest

type ApiCountAccountsRequest struct {
	ApiService *AccountsApiService
	// contains filtered or unexported fields
}

func (ApiCountAccountsRequest) Address

Filter accounts by address pattern (regular expression placed between ^ and $).

func (ApiCountAccountsRequest) Execute

func (ApiCountAccountsRequest) Metadata

func (r ApiCountAccountsRequest) Metadata(metadata map[string]interface{}) ApiCountAccountsRequest

Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example below.

type ApiCountTransactionsRequest

type ApiCountTransactionsRequest struct {
	ApiService *TransactionsApiService
	// contains filtered or unexported fields
}

func (ApiCountTransactionsRequest) Account

Filter transactions with postings involving given account, either as source or destination (regular expression placed between ^ and $).

func (ApiCountTransactionsRequest) Destination

Filter transactions with postings involving given account at destination (regular expression placed between ^ and $).

func (ApiCountTransactionsRequest) Execute

func (ApiCountTransactionsRequest) Metadata

func (r ApiCountTransactionsRequest) Metadata(metadata map[string]interface{}) ApiCountTransactionsRequest

Filter transactions by metadata key value pairs. Nested objects can be used as seen in the example below.

func (ApiCountTransactionsRequest) Reference

Filter transactions by reference field.

func (ApiCountTransactionsRequest) Source

Filter transactions with postings involving given account at source (regular expression placed between ^ and $).

type ApiCreateTransactionRequest

type ApiCreateTransactionRequest struct {
	ApiService *TransactionsApiService
	// contains filtered or unexported fields
}

func (ApiCreateTransactionRequest) Execute

func (ApiCreateTransactionRequest) Preview

Set the preview mode. Preview mode doesn't add the logs to the database or publish a message to the message broker.

func (ApiCreateTransactionRequest) TransactionData

func (r ApiCreateTransactionRequest) TransactionData(transactionData TransactionData) ApiCreateTransactionRequest

type ApiCreateTransactionsRequest

type ApiCreateTransactionsRequest struct {
	ApiService *TransactionsApiService
	// contains filtered or unexported fields
}

func (ApiCreateTransactionsRequest) Execute

func (ApiCreateTransactionsRequest) Transactions

type ApiGetAccountRequest

type ApiGetAccountRequest struct {
	ApiService *AccountsApiService
	// contains filtered or unexported fields
}

func (ApiGetAccountRequest) Execute

type ApiGetBalancesAggregatedRequest

type ApiGetBalancesAggregatedRequest struct {
	ApiService *BalancesApiService
	// contains filtered or unexported fields
}

func (ApiGetBalancesAggregatedRequest) Address

Filter balances involving given account, either as source or destination.

func (ApiGetBalancesAggregatedRequest) Execute

type ApiGetBalancesRequest

type ApiGetBalancesRequest struct {
	ApiService *BalancesApiService
	// contains filtered or unexported fields
}

func (ApiGetBalancesRequest) Address

Filter balances involving given account, either as source or destination.

func (ApiGetBalancesRequest) After

Pagination cursor, will return accounts after given address, in descending order.

func (ApiGetBalancesRequest) Execute

func (ApiGetBalancesRequest) PaginationToken

func (r ApiGetBalancesRequest) PaginationToken(paginationToken string) ApiGetBalancesRequest

Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results.

type ApiGetInfoRequest

type ApiGetInfoRequest struct {
	ApiService *ServerApiService
	// contains filtered or unexported fields
}

func (ApiGetInfoRequest) Execute

type ApiGetMappingRequest

type ApiGetMappingRequest struct {
	ApiService *MappingApiService
	// contains filtered or unexported fields
}

func (ApiGetMappingRequest) Execute

type ApiGetTransactionRequest

type ApiGetTransactionRequest struct {
	ApiService *TransactionsApiService
	// contains filtered or unexported fields
}

func (ApiGetTransactionRequest) Execute

type ApiListAccountsRequest

type ApiListAccountsRequest struct {
	ApiService *AccountsApiService
	// contains filtered or unexported fields
}

func (ApiListAccountsRequest) Address

Filter accounts by address pattern (regular expression placed between ^ and $).

func (ApiListAccountsRequest) After

Pagination cursor, will return accounts after given address, in descending order.

func (ApiListAccountsRequest) Balance

Filter accounts by their balance (default operator is gte)

func (ApiListAccountsRequest) BalanceOperator

func (r ApiListAccountsRequest) BalanceOperator(balanceOperator string) ApiListAccountsRequest

Operator used for the filtering of balances can be greater than/equal, less than/equal, greater than, less than, or equal

func (ApiListAccountsRequest) Execute

func (ApiListAccountsRequest) Metadata

func (r ApiListAccountsRequest) Metadata(metadata map[string]interface{}) ApiListAccountsRequest

Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example below.

func (ApiListAccountsRequest) PageSize

The maximum number of results to return per page

func (ApiListAccountsRequest) PaginationToken

func (r ApiListAccountsRequest) PaginationToken(paginationToken string) ApiListAccountsRequest

Parameter used in pagination requests. Maximum page size is set to 15. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when the pagination token is set.

type ApiListTransactionsRequest

type ApiListTransactionsRequest struct {
	ApiService *TransactionsApiService
	// contains filtered or unexported fields
}

func (ApiListTransactionsRequest) Account

Find transactions with postings involving given account, either as source or destination.

func (ApiListTransactionsRequest) After

Pagination cursor, will return transactions after given txid (in descending order).

func (ApiListTransactionsRequest) Destination

Find transactions with postings involving given account at destination.

func (ApiListTransactionsRequest) EndTime

Filter transactions that occurred before this timestamp. The format is RFC3339 and is exclusive (for example, 12:00:01 excludes the first second of the minute).

func (ApiListTransactionsRequest) Execute

func (ApiListTransactionsRequest) Metadata

func (r ApiListTransactionsRequest) Metadata(metadata map[string]interface{}) ApiListTransactionsRequest

Filter transactions by metadata key value pairs. Nested objects can be used as seen in the example below.

func (ApiListTransactionsRequest) PageSize

The maximum number of results to return per page

func (ApiListTransactionsRequest) PaginationToken

func (r ApiListTransactionsRequest) PaginationToken(paginationToken string) ApiListTransactionsRequest

Parameter used in pagination requests. Maximum page size is set to 15. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when the pagination token is set.

func (ApiListTransactionsRequest) Reference

Find transactions by reference field.

func (ApiListTransactionsRequest) Source

Find transactions with postings involving given account at source.

func (ApiListTransactionsRequest) StartTime

Filter transactions that occurred after this timestamp. The format is RFC3339 and is inclusive (for example, 12:00:01 includes the first second of the minute).

type ApiReadStatsRequest

type ApiReadStatsRequest struct {
	ApiService *StatsApiService
	// contains filtered or unexported fields
}

func (ApiReadStatsRequest) Execute

type ApiRevertTransactionRequest

type ApiRevertTransactionRequest struct {
	ApiService *TransactionsApiService
	// contains filtered or unexported fields
}

func (ApiRevertTransactionRequest) Execute

type ApiRunScriptRequest

type ApiRunScriptRequest struct {
	ApiService *ScriptApiService
	// contains filtered or unexported fields
}

func (ApiRunScriptRequest) Execute

func (ApiRunScriptRequest) Preview

func (r ApiRunScriptRequest) Preview(preview bool) ApiRunScriptRequest

Set the preview mode. Preview mode doesn't add the logs to the database or publish a message to the message broker.

func (ApiRunScriptRequest) Script

type ApiUpdateMappingRequest

type ApiUpdateMappingRequest struct {
	ApiService *MappingApiService
	// contains filtered or unexported fields
}

func (ApiUpdateMappingRequest) Execute

func (ApiUpdateMappingRequest) Mapping

type BalancesApiService

type BalancesApiService service

BalancesApiService BalancesApi service

func (*BalancesApiService) GetBalances

func (a *BalancesApiService) GetBalances(ctx _context.Context, ledger string) ApiGetBalancesRequest

GetBalances Get the balances from a ledger's account

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@return ApiGetBalancesRequest

func (*BalancesApiService) GetBalancesAggregated

func (a *BalancesApiService) GetBalancesAggregated(ctx _context.Context, ledger string) ApiGetBalancesAggregatedRequest

GetBalancesAggregated Get the aggregated balances from selected accounts

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@return ApiGetBalancesAggregatedRequest

func (*BalancesApiService) GetBalancesAggregatedExecute

Execute executes the request

@return GetBalancesAggregated200Response

func (*BalancesApiService) GetBalancesExecute

Execute executes the request

@return GetBalances200Response

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Config

type Config struct {
	Storage LedgerStorage `json:"storage"`
}

Config struct for Config

func NewConfig

func NewConfig(storage LedgerStorage) *Config

NewConfig instantiates a new Config object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewConfigWithDefaults

func NewConfigWithDefaults() *Config

NewConfigWithDefaults instantiates a new Config object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Config) GetStorage

func (o *Config) GetStorage() LedgerStorage

GetStorage returns the Storage field value

func (*Config) GetStorageOk

func (o *Config) GetStorageOk() (*LedgerStorage, bool)

GetStorageOk returns a tuple with the Storage field value and a boolean to check if the value has been set.

func (Config) MarshalJSON

func (o Config) MarshalJSON() ([]byte, error)

func (*Config) SetStorage

func (o *Config) SetStorage(v LedgerStorage)

SetStorage sets field value

type ConfigInfo

type ConfigInfo struct {
	Config  Config `json:"config"`
	Server  string `json:"server"`
	Version string `json:"version"`
}

ConfigInfo struct for ConfigInfo

func NewConfigInfo

func NewConfigInfo(config Config, server string, version string) *ConfigInfo

NewConfigInfo instantiates a new ConfigInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewConfigInfoWithDefaults

func NewConfigInfoWithDefaults() *ConfigInfo

NewConfigInfoWithDefaults instantiates a new ConfigInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ConfigInfo) GetConfig

func (o *ConfigInfo) GetConfig() Config

GetConfig returns the Config field value

func (*ConfigInfo) GetConfigOk

func (o *ConfigInfo) GetConfigOk() (*Config, bool)

GetConfigOk returns a tuple with the Config field value and a boolean to check if the value has been set.

func (*ConfigInfo) GetServer

func (o *ConfigInfo) GetServer() string

GetServer returns the Server field value

func (*ConfigInfo) GetServerOk

func (o *ConfigInfo) GetServerOk() (*string, bool)

GetServerOk returns a tuple with the Server field value and a boolean to check if the value has been set.

func (*ConfigInfo) GetVersion

func (o *ConfigInfo) GetVersion() string

GetVersion returns the Version field value

func (*ConfigInfo) GetVersionOk

func (o *ConfigInfo) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (ConfigInfo) MarshalJSON

func (o ConfigInfo) MarshalJSON() ([]byte, error)

func (*ConfigInfo) SetConfig

func (o *ConfigInfo) SetConfig(v Config)

SetConfig sets field value

func (*ConfigInfo) SetServer

func (o *ConfigInfo) SetServer(v string)

SetServer sets field value

func (*ConfigInfo) SetVersion

func (o *ConfigInfo) SetVersion(v string)

SetVersion sets field value

type ConfigInfoResponse

type ConfigInfoResponse struct {
	Data ConfigInfo `json:"data"`
}

ConfigInfoResponse struct for ConfigInfoResponse

func NewConfigInfoResponse

func NewConfigInfoResponse(data ConfigInfo) *ConfigInfoResponse

NewConfigInfoResponse instantiates a new ConfigInfoResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewConfigInfoResponseWithDefaults

func NewConfigInfoResponseWithDefaults() *ConfigInfoResponse

NewConfigInfoResponseWithDefaults instantiates a new ConfigInfoResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ConfigInfoResponse) GetData

func (o *ConfigInfoResponse) GetData() ConfigInfo

GetData returns the Data field value

func (*ConfigInfoResponse) GetDataOk

func (o *ConfigInfoResponse) GetDataOk() (*ConfigInfo, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (ConfigInfoResponse) MarshalJSON

func (o ConfigInfoResponse) MarshalJSON() ([]byte, error)

func (*ConfigInfoResponse) SetData

func (o *ConfigInfoResponse) SetData(v ConfigInfo)

SetData sets field value

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type Contract

type Contract struct {
	Account *string                `json:"account,omitempty"`
	Expr    map[string]interface{} `json:"expr"`
}

Contract struct for Contract

func NewContract

func NewContract(expr map[string]interface{}) *Contract

NewContract instantiates a new Contract object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewContractWithDefaults

func NewContractWithDefaults() *Contract

NewContractWithDefaults instantiates a new Contract object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Contract) GetAccount

func (o *Contract) GetAccount() string

GetAccount returns the Account field value if set, zero value otherwise.

func (*Contract) GetAccountOk

func (o *Contract) GetAccountOk() (*string, bool)

GetAccountOk returns a tuple with the Account field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Contract) GetExpr

func (o *Contract) GetExpr() map[string]interface{}

GetExpr returns the Expr field value

func (*Contract) GetExprOk

func (o *Contract) GetExprOk() (*map[string]interface{}, bool)

GetExprOk returns a tuple with the Expr field value and a boolean to check if the value has been set.

func (*Contract) HasAccount

func (o *Contract) HasAccount() bool

HasAccount returns a boolean if a field has been set.

func (Contract) MarshalJSON

func (o Contract) MarshalJSON() ([]byte, error)

func (*Contract) SetAccount

func (o *Contract) SetAccount(v string)

SetAccount gets a reference to the given string and assigns it to the Account field.

func (*Contract) SetExpr

func (o *Contract) SetExpr(v map[string]interface{})

SetExpr sets field value

type CreateTransaction400Response

type CreateTransaction400Response struct {
	ErrorCode    string  `json:"error_code"`
	ErrorMessage *string `json:"error_message,omitempty"`
}

CreateTransaction400Response struct for CreateTransaction400Response

func NewCreateTransaction400Response

func NewCreateTransaction400Response(errorCode string) *CreateTransaction400Response

NewCreateTransaction400Response instantiates a new CreateTransaction400Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateTransaction400ResponseWithDefaults

func NewCreateTransaction400ResponseWithDefaults() *CreateTransaction400Response

NewCreateTransaction400ResponseWithDefaults instantiates a new CreateTransaction400Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateTransaction400Response) GetErrorCode

func (o *CreateTransaction400Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*CreateTransaction400Response) GetErrorCodeOk

func (o *CreateTransaction400Response) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*CreateTransaction400Response) GetErrorMessage

func (o *CreateTransaction400Response) GetErrorMessage() string

GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise.

func (*CreateTransaction400Response) GetErrorMessageOk

func (o *CreateTransaction400Response) GetErrorMessageOk() (*string, bool)

GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateTransaction400Response) HasErrorMessage

func (o *CreateTransaction400Response) HasErrorMessage() bool

HasErrorMessage returns a boolean if a field has been set.

func (CreateTransaction400Response) MarshalJSON

func (o CreateTransaction400Response) MarshalJSON() ([]byte, error)

func (*CreateTransaction400Response) SetErrorCode

func (o *CreateTransaction400Response) SetErrorCode(v string)

SetErrorCode sets field value

func (*CreateTransaction400Response) SetErrorMessage

func (o *CreateTransaction400Response) SetErrorMessage(v string)

SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.

type CreateTransaction409Response

type CreateTransaction409Response struct {
	ErrorCode    string  `json:"error_code"`
	ErrorMessage *string `json:"error_message,omitempty"`
}

CreateTransaction409Response struct for CreateTransaction409Response

func NewCreateTransaction409Response

func NewCreateTransaction409Response(errorCode string) *CreateTransaction409Response

NewCreateTransaction409Response instantiates a new CreateTransaction409Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateTransaction409ResponseWithDefaults

func NewCreateTransaction409ResponseWithDefaults() *CreateTransaction409Response

NewCreateTransaction409ResponseWithDefaults instantiates a new CreateTransaction409Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateTransaction409Response) GetErrorCode

func (o *CreateTransaction409Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*CreateTransaction409Response) GetErrorCodeOk

func (o *CreateTransaction409Response) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*CreateTransaction409Response) GetErrorMessage

func (o *CreateTransaction409Response) GetErrorMessage() string

GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise.

func (*CreateTransaction409Response) GetErrorMessageOk

func (o *CreateTransaction409Response) GetErrorMessageOk() (*string, bool)

GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateTransaction409Response) HasErrorMessage

func (o *CreateTransaction409Response) HasErrorMessage() bool

HasErrorMessage returns a boolean if a field has been set.

func (CreateTransaction409Response) MarshalJSON

func (o CreateTransaction409Response) MarshalJSON() ([]byte, error)

func (*CreateTransaction409Response) SetErrorCode

func (o *CreateTransaction409Response) SetErrorCode(v string)

SetErrorCode sets field value

func (*CreateTransaction409Response) SetErrorMessage

func (o *CreateTransaction409Response) SetErrorMessage(v string)

SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.

type CreateTransactions400Response

type CreateTransactions400Response struct {
	ErrorCode    string  `json:"error_code"`
	ErrorMessage *string `json:"error_message,omitempty"`
}

CreateTransactions400Response struct for CreateTransactions400Response

func NewCreateTransactions400Response

func NewCreateTransactions400Response(errorCode string) *CreateTransactions400Response

NewCreateTransactions400Response instantiates a new CreateTransactions400Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateTransactions400ResponseWithDefaults

func NewCreateTransactions400ResponseWithDefaults() *CreateTransactions400Response

NewCreateTransactions400ResponseWithDefaults instantiates a new CreateTransactions400Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateTransactions400Response) GetErrorCode

func (o *CreateTransactions400Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*CreateTransactions400Response) GetErrorCodeOk

func (o *CreateTransactions400Response) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*CreateTransactions400Response) GetErrorMessage

func (o *CreateTransactions400Response) GetErrorMessage() string

GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise.

func (*CreateTransactions400Response) GetErrorMessageOk

func (o *CreateTransactions400Response) GetErrorMessageOk() (*string, bool)

GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateTransactions400Response) HasErrorMessage

func (o *CreateTransactions400Response) HasErrorMessage() bool

HasErrorMessage returns a boolean if a field has been set.

func (CreateTransactions400Response) MarshalJSON

func (o CreateTransactions400Response) MarshalJSON() ([]byte, error)

func (*CreateTransactions400Response) SetErrorCode

func (o *CreateTransactions400Response) SetErrorCode(v string)

SetErrorCode sets field value

func (*CreateTransactions400Response) SetErrorMessage

func (o *CreateTransactions400Response) SetErrorMessage(v string)

SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.

type Cursor

type Cursor struct {
	PageSize int32   `json:"page_size"`
	HasMore  *bool   `json:"has_more,omitempty"`
	Previous *string `json:"previous,omitempty"`
	Next     *string `json:"next,omitempty"`
}

Cursor struct for Cursor

func NewCursor

func NewCursor(pageSize int32) *Cursor

NewCursor instantiates a new Cursor object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCursorWithDefaults

func NewCursorWithDefaults() *Cursor

NewCursorWithDefaults instantiates a new Cursor object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Cursor) GetHasMore

func (o *Cursor) GetHasMore() bool

GetHasMore returns the HasMore field value if set, zero value otherwise.

func (*Cursor) GetHasMoreOk

func (o *Cursor) GetHasMoreOk() (*bool, bool)

GetHasMoreOk returns a tuple with the HasMore field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cursor) GetNext

func (o *Cursor) GetNext() string

GetNext returns the Next field value if set, zero value otherwise.

func (*Cursor) GetNextOk

func (o *Cursor) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cursor) GetPageSize

func (o *Cursor) GetPageSize() int32

GetPageSize returns the PageSize field value

func (*Cursor) GetPageSizeOk

func (o *Cursor) GetPageSizeOk() (*int32, bool)

GetPageSizeOk returns a tuple with the PageSize field value and a boolean to check if the value has been set.

func (*Cursor) GetPrevious

func (o *Cursor) GetPrevious() string

GetPrevious returns the Previous field value if set, zero value otherwise.

func (*Cursor) GetPreviousOk

func (o *Cursor) GetPreviousOk() (*string, bool)

GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cursor) HasHasMore

func (o *Cursor) HasHasMore() bool

HasHasMore returns a boolean if a field has been set.

func (*Cursor) HasNext

func (o *Cursor) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*Cursor) HasPrevious

func (o *Cursor) HasPrevious() bool

HasPrevious returns a boolean if a field has been set.

func (Cursor) MarshalJSON

func (o Cursor) MarshalJSON() ([]byte, error)

func (*Cursor) SetHasMore

func (o *Cursor) SetHasMore(v bool)

SetHasMore gets a reference to the given bool and assigns it to the HasMore field.

func (*Cursor) SetNext

func (o *Cursor) SetNext(v string)

SetNext gets a reference to the given string and assigns it to the Next field.

func (*Cursor) SetPageSize

func (o *Cursor) SetPageSize(v int32)

SetPageSize sets field value

func (*Cursor) SetPrevious

func (o *Cursor) SetPrevious(v string)

SetPrevious gets a reference to the given string and assigns it to the Previous field.

type ErrorCode

type ErrorCode string

ErrorCode the model 'ErrorCode'

const (
	INTERNAL          ErrorCode = "INTERNAL"
	INSUFFICIENT_FUND ErrorCode = "INSUFFICIENT_FUND"
	VALIDATION        ErrorCode = "VALIDATION"
	CONFLICT          ErrorCode = "CONFLICT"
)

List of ErrorCode

func NewErrorCodeFromValue

func NewErrorCodeFromValue(v string) (*ErrorCode, error)

NewErrorCodeFromValue returns a pointer to a valid ErrorCode for the value passed as argument, or an error if the value passed is not allowed by the enum

func (ErrorCode) IsValid

func (v ErrorCode) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (ErrorCode) Ptr

func (v ErrorCode) Ptr() *ErrorCode

Ptr returns reference to ErrorCode value

func (*ErrorCode) UnmarshalJSON

func (v *ErrorCode) UnmarshalJSON(src []byte) error

type ErrorResponse

type ErrorResponse struct {
	ErrorCode    ErrorCode `json:"error_code"`
	ErrorMessage *string   `json:"error_message,omitempty"`
}

ErrorResponse struct for ErrorResponse

func NewErrorResponse

func NewErrorResponse(errorCode ErrorCode) *ErrorResponse

NewErrorResponse instantiates a new ErrorResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorResponseWithDefaults

func NewErrorResponseWithDefaults() *ErrorResponse

NewErrorResponseWithDefaults instantiates a new ErrorResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ErrorResponse) GetErrorCode

func (o *ErrorResponse) GetErrorCode() ErrorCode

GetErrorCode returns the ErrorCode field value

func (*ErrorResponse) GetErrorCodeOk

func (o *ErrorResponse) GetErrorCodeOk() (*ErrorCode, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*ErrorResponse) GetErrorMessage

func (o *ErrorResponse) GetErrorMessage() string

GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise.

func (*ErrorResponse) GetErrorMessageOk

func (o *ErrorResponse) GetErrorMessageOk() (*string, bool)

GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorResponse) HasErrorMessage

func (o *ErrorResponse) HasErrorMessage() bool

HasErrorMessage returns a boolean if a field has been set.

func (ErrorResponse) MarshalJSON

func (o ErrorResponse) MarshalJSON() ([]byte, error)

func (*ErrorResponse) SetErrorCode

func (o *ErrorResponse) SetErrorCode(v ErrorCode)

SetErrorCode sets field value

func (*ErrorResponse) SetErrorMessage

func (o *ErrorResponse) SetErrorMessage(v string)

SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GetAccount200Response

type GetAccount200Response struct {
	Data AccountWithVolumesAndBalances `json:"data"`
}

GetAccount200Response struct for GetAccount200Response

func NewGetAccount200Response

func NewGetAccount200Response(data AccountWithVolumesAndBalances) *GetAccount200Response

NewGetAccount200Response instantiates a new GetAccount200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetAccount200ResponseWithDefaults

func NewGetAccount200ResponseWithDefaults() *GetAccount200Response

NewGetAccount200ResponseWithDefaults instantiates a new GetAccount200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetAccount200Response) GetData

GetData returns the Data field value

func (*GetAccount200Response) GetDataOk

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (GetAccount200Response) MarshalJSON

func (o GetAccount200Response) MarshalJSON() ([]byte, error)

func (*GetAccount200Response) SetData

SetData sets field value

type GetAccount400Response

type GetAccount400Response struct {
	ErrorCode    string  `json:"error_code"`
	ErrorMessage *string `json:"error_message,omitempty"`
}

GetAccount400Response struct for GetAccount400Response

func NewGetAccount400Response

func NewGetAccount400Response(errorCode string) *GetAccount400Response

NewGetAccount400Response instantiates a new GetAccount400Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetAccount400ResponseWithDefaults

func NewGetAccount400ResponseWithDefaults() *GetAccount400Response

NewGetAccount400ResponseWithDefaults instantiates a new GetAccount400Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetAccount400Response) GetErrorCode

func (o *GetAccount400Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*GetAccount400Response) GetErrorCodeOk

func (o *GetAccount400Response) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*GetAccount400Response) GetErrorMessage

func (o *GetAccount400Response) GetErrorMessage() string

GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise.

func (*GetAccount400Response) GetErrorMessageOk

func (o *GetAccount400Response) GetErrorMessageOk() (*string, bool)

GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetAccount400Response) HasErrorMessage

func (o *GetAccount400Response) HasErrorMessage() bool

HasErrorMessage returns a boolean if a field has been set.

func (GetAccount400Response) MarshalJSON

func (o GetAccount400Response) MarshalJSON() ([]byte, error)

func (*GetAccount400Response) SetErrorCode

func (o *GetAccount400Response) SetErrorCode(v string)

SetErrorCode sets field value

func (*GetAccount400Response) SetErrorMessage

func (o *GetAccount400Response) SetErrorMessage(v string)

SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.

type GetBalances200Response

type GetBalances200Response struct {
	Cursor GetBalances200ResponseCursor `json:"cursor"`
}

GetBalances200Response struct for GetBalances200Response

func NewGetBalances200Response

func NewGetBalances200Response(cursor GetBalances200ResponseCursor) *GetBalances200Response

NewGetBalances200Response instantiates a new GetBalances200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetBalances200ResponseWithDefaults

func NewGetBalances200ResponseWithDefaults() *GetBalances200Response

NewGetBalances200ResponseWithDefaults instantiates a new GetBalances200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetBalances200Response) GetCursor

GetCursor returns the Cursor field value

func (*GetBalances200Response) GetCursorOk

GetCursorOk returns a tuple with the Cursor field value and a boolean to check if the value has been set.

func (GetBalances200Response) MarshalJSON

func (o GetBalances200Response) MarshalJSON() ([]byte, error)

func (*GetBalances200Response) SetCursor

SetCursor sets field value

type GetBalances200ResponseCursor

type GetBalances200ResponseCursor struct {
	PageSize int32                         `json:"page_size"`
	HasMore  *bool                         `json:"has_more,omitempty"`
	Previous *string                       `json:"previous,omitempty"`
	Next     *string                       `json:"next,omitempty"`
	Data     []map[string]map[string]int32 `json:"data"`
}

GetBalances200ResponseCursor struct for GetBalances200ResponseCursor

func NewGetBalances200ResponseCursor

func NewGetBalances200ResponseCursor(pageSize int32, data []map[string]map[string]int32) *GetBalances200ResponseCursor

NewGetBalances200ResponseCursor instantiates a new GetBalances200ResponseCursor object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetBalances200ResponseCursorWithDefaults

func NewGetBalances200ResponseCursorWithDefaults() *GetBalances200ResponseCursor

NewGetBalances200ResponseCursorWithDefaults instantiates a new GetBalances200ResponseCursor object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetBalances200ResponseCursor) GetData

func (o *GetBalances200ResponseCursor) GetData() []map[string]map[string]int32

GetData returns the Data field value

func (*GetBalances200ResponseCursor) GetDataOk

func (o *GetBalances200ResponseCursor) GetDataOk() (*[]map[string]map[string]int32, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*GetBalances200ResponseCursor) GetHasMore

func (o *GetBalances200ResponseCursor) GetHasMore() bool

GetHasMore returns the HasMore field value if set, zero value otherwise.

func (*GetBalances200ResponseCursor) GetHasMoreOk

func (o *GetBalances200ResponseCursor) GetHasMoreOk() (*bool, bool)

GetHasMoreOk returns a tuple with the HasMore field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetBalances200ResponseCursor) GetNext

func (o *GetBalances200ResponseCursor) GetNext() string

GetNext returns the Next field value if set, zero value otherwise.

func (*GetBalances200ResponseCursor) GetNextOk

func (o *GetBalances200ResponseCursor) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetBalances200ResponseCursor) GetPageSize

func (o *GetBalances200ResponseCursor) GetPageSize() int32

GetPageSize returns the PageSize field value

func (*GetBalances200ResponseCursor) GetPageSizeOk

func (o *GetBalances200ResponseCursor) GetPageSizeOk() (*int32, bool)

GetPageSizeOk returns a tuple with the PageSize field value and a boolean to check if the value has been set.

func (*GetBalances200ResponseCursor) GetPrevious

func (o *GetBalances200ResponseCursor) GetPrevious() string

GetPrevious returns the Previous field value if set, zero value otherwise.

func (*GetBalances200ResponseCursor) GetPreviousOk

func (o *GetBalances200ResponseCursor) GetPreviousOk() (*string, bool)

GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetBalances200ResponseCursor) HasHasMore

func (o *GetBalances200ResponseCursor) HasHasMore() bool

HasHasMore returns a boolean if a field has been set.

func (*GetBalances200ResponseCursor) HasNext

func (o *GetBalances200ResponseCursor) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*GetBalances200ResponseCursor) HasPrevious

func (o *GetBalances200ResponseCursor) HasPrevious() bool

HasPrevious returns a boolean if a field has been set.

func (GetBalances200ResponseCursor) MarshalJSON

func (o GetBalances200ResponseCursor) MarshalJSON() ([]byte, error)

func (*GetBalances200ResponseCursor) SetData

func (o *GetBalances200ResponseCursor) SetData(v []map[string]map[string]int32)

SetData sets field value

func (*GetBalances200ResponseCursor) SetHasMore

func (o *GetBalances200ResponseCursor) SetHasMore(v bool)

SetHasMore gets a reference to the given bool and assigns it to the HasMore field.

func (*GetBalances200ResponseCursor) SetNext

func (o *GetBalances200ResponseCursor) SetNext(v string)

SetNext gets a reference to the given string and assigns it to the Next field.

func (*GetBalances200ResponseCursor) SetPageSize

func (o *GetBalances200ResponseCursor) SetPageSize(v int32)

SetPageSize sets field value

func (*GetBalances200ResponseCursor) SetPrevious

func (o *GetBalances200ResponseCursor) SetPrevious(v string)

SetPrevious gets a reference to the given string and assigns it to the Previous field.

type GetBalances200ResponseCursorAllOf

type GetBalances200ResponseCursorAllOf struct {
	Data []map[string]map[string]int32 `json:"data"`
}

GetBalances200ResponseCursorAllOf struct for GetBalances200ResponseCursorAllOf

func NewGetBalances200ResponseCursorAllOf

func NewGetBalances200ResponseCursorAllOf(data []map[string]map[string]int32) *GetBalances200ResponseCursorAllOf

NewGetBalances200ResponseCursorAllOf instantiates a new GetBalances200ResponseCursorAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetBalances200ResponseCursorAllOfWithDefaults

func NewGetBalances200ResponseCursorAllOfWithDefaults() *GetBalances200ResponseCursorAllOf

NewGetBalances200ResponseCursorAllOfWithDefaults instantiates a new GetBalances200ResponseCursorAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetBalances200ResponseCursorAllOf) GetData

func (o *GetBalances200ResponseCursorAllOf) GetData() []map[string]map[string]int32

GetData returns the Data field value

func (*GetBalances200ResponseCursorAllOf) GetDataOk

func (o *GetBalances200ResponseCursorAllOf) GetDataOk() (*[]map[string]map[string]int32, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (GetBalances200ResponseCursorAllOf) MarshalJSON

func (o GetBalances200ResponseCursorAllOf) MarshalJSON() ([]byte, error)

func (*GetBalances200ResponseCursorAllOf) SetData

func (o *GetBalances200ResponseCursorAllOf) SetData(v []map[string]map[string]int32)

SetData sets field value

type GetBalancesAggregated200Response

type GetBalancesAggregated200Response struct {
	Data map[string]int32 `json:"data"`
}

GetBalancesAggregated200Response struct for GetBalancesAggregated200Response

func NewGetBalancesAggregated200Response

func NewGetBalancesAggregated200Response(data map[string]int32) *GetBalancesAggregated200Response

NewGetBalancesAggregated200Response instantiates a new GetBalancesAggregated200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetBalancesAggregated200ResponseWithDefaults

func NewGetBalancesAggregated200ResponseWithDefaults() *GetBalancesAggregated200Response

NewGetBalancesAggregated200ResponseWithDefaults instantiates a new GetBalancesAggregated200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetBalancesAggregated200Response) GetData

GetData returns the Data field value

func (*GetBalancesAggregated200Response) GetDataOk

func (o *GetBalancesAggregated200Response) GetDataOk() (*map[string]int32, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (GetBalancesAggregated200Response) MarshalJSON

func (o GetBalancesAggregated200Response) MarshalJSON() ([]byte, error)

func (*GetBalancesAggregated200Response) SetData

func (o *GetBalancesAggregated200Response) SetData(v map[string]int32)

SetData sets field value

type GetBalancesAggregated400Response

type GetBalancesAggregated400Response struct {
	ErrorCode    string  `json:"error_code"`
	ErrorMessage *string `json:"error_message,omitempty"`
}

GetBalancesAggregated400Response struct for GetBalancesAggregated400Response

func NewGetBalancesAggregated400Response

func NewGetBalancesAggregated400Response(errorCode string) *GetBalancesAggregated400Response

NewGetBalancesAggregated400Response instantiates a new GetBalancesAggregated400Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetBalancesAggregated400ResponseWithDefaults

func NewGetBalancesAggregated400ResponseWithDefaults() *GetBalancesAggregated400Response

NewGetBalancesAggregated400ResponseWithDefaults instantiates a new GetBalancesAggregated400Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetBalancesAggregated400Response) GetErrorCode

func (o *GetBalancesAggregated400Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*GetBalancesAggregated400Response) GetErrorCodeOk

func (o *GetBalancesAggregated400Response) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*GetBalancesAggregated400Response) GetErrorMessage

func (o *GetBalancesAggregated400Response) GetErrorMessage() string

GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise.

func (*GetBalancesAggregated400Response) GetErrorMessageOk

func (o *GetBalancesAggregated400Response) GetErrorMessageOk() (*string, bool)

GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetBalancesAggregated400Response) HasErrorMessage

func (o *GetBalancesAggregated400Response) HasErrorMessage() bool

HasErrorMessage returns a boolean if a field has been set.

func (GetBalancesAggregated400Response) MarshalJSON

func (o GetBalancesAggregated400Response) MarshalJSON() ([]byte, error)

func (*GetBalancesAggregated400Response) SetErrorCode

func (o *GetBalancesAggregated400Response) SetErrorCode(v string)

SetErrorCode sets field value

func (*GetBalancesAggregated400Response) SetErrorMessage

func (o *GetBalancesAggregated400Response) SetErrorMessage(v string)

SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.

type GetTransaction400Response

type GetTransaction400Response struct {
	ErrorCode    string  `json:"error_code"`
	ErrorMessage *string `json:"error_message,omitempty"`
}

GetTransaction400Response struct for GetTransaction400Response

func NewGetTransaction400Response

func NewGetTransaction400Response(errorCode string) *GetTransaction400Response

NewGetTransaction400Response instantiates a new GetTransaction400Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetTransaction400ResponseWithDefaults

func NewGetTransaction400ResponseWithDefaults() *GetTransaction400Response

NewGetTransaction400ResponseWithDefaults instantiates a new GetTransaction400Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetTransaction400Response) GetErrorCode

func (o *GetTransaction400Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*GetTransaction400Response) GetErrorCodeOk

func (o *GetTransaction400Response) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*GetTransaction400Response) GetErrorMessage

func (o *GetTransaction400Response) GetErrorMessage() string

GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise.

func (*GetTransaction400Response) GetErrorMessageOk

func (o *GetTransaction400Response) GetErrorMessageOk() (*string, bool)

GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetTransaction400Response) HasErrorMessage

func (o *GetTransaction400Response) HasErrorMessage() bool

HasErrorMessage returns a boolean if a field has been set.

func (GetTransaction400Response) MarshalJSON

func (o GetTransaction400Response) MarshalJSON() ([]byte, error)

func (*GetTransaction400Response) SetErrorCode

func (o *GetTransaction400Response) SetErrorCode(v string)

SetErrorCode sets field value

func (*GetTransaction400Response) SetErrorMessage

func (o *GetTransaction400Response) SetErrorMessage(v string)

SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.

type GetTransaction404Response

type GetTransaction404Response struct {
	ErrorCode    string  `json:"error_code"`
	ErrorMessage *string `json:"error_message,omitempty"`
}

GetTransaction404Response struct for GetTransaction404Response

func NewGetTransaction404Response

func NewGetTransaction404Response(errorCode string) *GetTransaction404Response

NewGetTransaction404Response instantiates a new GetTransaction404Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetTransaction404ResponseWithDefaults

func NewGetTransaction404ResponseWithDefaults() *GetTransaction404Response

NewGetTransaction404ResponseWithDefaults instantiates a new GetTransaction404Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetTransaction404Response) GetErrorCode

func (o *GetTransaction404Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*GetTransaction404Response) GetErrorCodeOk

func (o *GetTransaction404Response) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*GetTransaction404Response) GetErrorMessage

func (o *GetTransaction404Response) GetErrorMessage() string

GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise.

func (*GetTransaction404Response) GetErrorMessageOk

func (o *GetTransaction404Response) GetErrorMessageOk() (*string, bool)

GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetTransaction404Response) HasErrorMessage

func (o *GetTransaction404Response) HasErrorMessage() bool

HasErrorMessage returns a boolean if a field has been set.

func (GetTransaction404Response) MarshalJSON

func (o GetTransaction404Response) MarshalJSON() ([]byte, error)

func (*GetTransaction404Response) SetErrorCode

func (o *GetTransaction404Response) SetErrorCode(v string)

SetErrorCode sets field value

func (*GetTransaction404Response) SetErrorMessage

func (o *GetTransaction404Response) SetErrorMessage(v string)

SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.

type LedgerStorage

type LedgerStorage struct {
	Driver  string   `json:"driver"`
	Ledgers []string `json:"ledgers"`
}

LedgerStorage struct for LedgerStorage

func NewLedgerStorage

func NewLedgerStorage(driver string, ledgers []string) *LedgerStorage

NewLedgerStorage instantiates a new LedgerStorage object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLedgerStorageWithDefaults

func NewLedgerStorageWithDefaults() *LedgerStorage

NewLedgerStorageWithDefaults instantiates a new LedgerStorage object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*LedgerStorage) GetDriver

func (o *LedgerStorage) GetDriver() string

GetDriver returns the Driver field value

func (*LedgerStorage) GetDriverOk

func (o *LedgerStorage) GetDriverOk() (*string, bool)

GetDriverOk returns a tuple with the Driver field value and a boolean to check if the value has been set.

func (*LedgerStorage) GetLedgers

func (o *LedgerStorage) GetLedgers() []string

GetLedgers returns the Ledgers field value

func (*LedgerStorage) GetLedgersOk

func (o *LedgerStorage) GetLedgersOk() (*[]string, bool)

GetLedgersOk returns a tuple with the Ledgers field value and a boolean to check if the value has been set.

func (LedgerStorage) MarshalJSON

func (o LedgerStorage) MarshalJSON() ([]byte, error)

func (*LedgerStorage) SetDriver

func (o *LedgerStorage) SetDriver(v string)

SetDriver sets field value

func (*LedgerStorage) SetLedgers

func (o *LedgerStorage) SetLedgers(v []string)

SetLedgers sets field value

type ListAccounts200Response

type ListAccounts200Response struct {
	Cursor ListAccounts200ResponseCursor `json:"cursor"`
}

ListAccounts200Response struct for ListAccounts200Response

func NewListAccounts200Response

func NewListAccounts200Response(cursor ListAccounts200ResponseCursor) *ListAccounts200Response

NewListAccounts200Response instantiates a new ListAccounts200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewListAccounts200ResponseWithDefaults

func NewListAccounts200ResponseWithDefaults() *ListAccounts200Response

NewListAccounts200ResponseWithDefaults instantiates a new ListAccounts200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ListAccounts200Response) GetCursor

GetCursor returns the Cursor field value

func (*ListAccounts200Response) GetCursorOk

GetCursorOk returns a tuple with the Cursor field value and a boolean to check if the value has been set.

func (ListAccounts200Response) MarshalJSON

func (o ListAccounts200Response) MarshalJSON() ([]byte, error)

func (*ListAccounts200Response) SetCursor

SetCursor sets field value

type ListAccounts200ResponseCursor

type ListAccounts200ResponseCursor struct {
	PageSize int32     `json:"page_size"`
	HasMore  *bool     `json:"has_more,omitempty"`
	Previous *string   `json:"previous,omitempty"`
	Next     *string   `json:"next,omitempty"`
	Data     []Account `json:"data"`
}

ListAccounts200ResponseCursor struct for ListAccounts200ResponseCursor

func NewListAccounts200ResponseCursor

func NewListAccounts200ResponseCursor(pageSize int32, data []Account) *ListAccounts200ResponseCursor

NewListAccounts200ResponseCursor instantiates a new ListAccounts200ResponseCursor object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewListAccounts200ResponseCursorWithDefaults

func NewListAccounts200ResponseCursorWithDefaults() *ListAccounts200ResponseCursor

NewListAccounts200ResponseCursorWithDefaults instantiates a new ListAccounts200ResponseCursor object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ListAccounts200ResponseCursor) GetData

func (o *ListAccounts200ResponseCursor) GetData() []Account

GetData returns the Data field value

func (*ListAccounts200ResponseCursor) GetDataOk

func (o *ListAccounts200ResponseCursor) GetDataOk() (*[]Account, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*ListAccounts200ResponseCursor) GetHasMore

func (o *ListAccounts200ResponseCursor) GetHasMore() bool

GetHasMore returns the HasMore field value if set, zero value otherwise.

func (*ListAccounts200ResponseCursor) GetHasMoreOk

func (o *ListAccounts200ResponseCursor) GetHasMoreOk() (*bool, bool)

GetHasMoreOk returns a tuple with the HasMore field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ListAccounts200ResponseCursor) GetNext

GetNext returns the Next field value if set, zero value otherwise.

func (*ListAccounts200ResponseCursor) GetNextOk

func (o *ListAccounts200ResponseCursor) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ListAccounts200ResponseCursor) GetPageSize

func (o *ListAccounts200ResponseCursor) GetPageSize() int32

GetPageSize returns the PageSize field value

func (*ListAccounts200ResponseCursor) GetPageSizeOk

func (o *ListAccounts200ResponseCursor) GetPageSizeOk() (*int32, bool)

GetPageSizeOk returns a tuple with the PageSize field value and a boolean to check if the value has been set.

func (*ListAccounts200ResponseCursor) GetPrevious

func (o *ListAccounts200ResponseCursor) GetPrevious() string

GetPrevious returns the Previous field value if set, zero value otherwise.

func (*ListAccounts200ResponseCursor) GetPreviousOk

func (o *ListAccounts200ResponseCursor) GetPreviousOk() (*string, bool)

GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ListAccounts200ResponseCursor) HasHasMore

func (o *ListAccounts200ResponseCursor) HasHasMore() bool

HasHasMore returns a boolean if a field has been set.

func (*ListAccounts200ResponseCursor) HasNext

func (o *ListAccounts200ResponseCursor) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*ListAccounts200ResponseCursor) HasPrevious

func (o *ListAccounts200ResponseCursor) HasPrevious() bool

HasPrevious returns a boolean if a field has been set.

func (ListAccounts200ResponseCursor) MarshalJSON

func (o ListAccounts200ResponseCursor) MarshalJSON() ([]byte, error)

func (*ListAccounts200ResponseCursor) SetData

func (o *ListAccounts200ResponseCursor) SetData(v []Account)

SetData sets field value

func (*ListAccounts200ResponseCursor) SetHasMore

func (o *ListAccounts200ResponseCursor) SetHasMore(v bool)

SetHasMore gets a reference to the given bool and assigns it to the HasMore field.

func (*ListAccounts200ResponseCursor) SetNext

func (o *ListAccounts200ResponseCursor) SetNext(v string)

SetNext gets a reference to the given string and assigns it to the Next field.

func (*ListAccounts200ResponseCursor) SetPageSize

func (o *ListAccounts200ResponseCursor) SetPageSize(v int32)

SetPageSize sets field value

func (*ListAccounts200ResponseCursor) SetPrevious

func (o *ListAccounts200ResponseCursor) SetPrevious(v string)

SetPrevious gets a reference to the given string and assigns it to the Previous field.

type ListAccounts200ResponseCursorAllOf

type ListAccounts200ResponseCursorAllOf struct {
	Data []Account `json:"data"`
}

ListAccounts200ResponseCursorAllOf struct for ListAccounts200ResponseCursorAllOf

func NewListAccounts200ResponseCursorAllOf

func NewListAccounts200ResponseCursorAllOf(data []Account) *ListAccounts200ResponseCursorAllOf

NewListAccounts200ResponseCursorAllOf instantiates a new ListAccounts200ResponseCursorAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewListAccounts200ResponseCursorAllOfWithDefaults

func NewListAccounts200ResponseCursorAllOfWithDefaults() *ListAccounts200ResponseCursorAllOf

NewListAccounts200ResponseCursorAllOfWithDefaults instantiates a new ListAccounts200ResponseCursorAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ListAccounts200ResponseCursorAllOf) GetData

GetData returns the Data field value

func (*ListAccounts200ResponseCursorAllOf) GetDataOk

func (o *ListAccounts200ResponseCursorAllOf) GetDataOk() (*[]Account, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (ListAccounts200ResponseCursorAllOf) MarshalJSON

func (o ListAccounts200ResponseCursorAllOf) MarshalJSON() ([]byte, error)

func (*ListAccounts200ResponseCursorAllOf) SetData

SetData sets field value

type ListAccounts400Response

type ListAccounts400Response struct {
	ErrorCode    string  `json:"error_code"`
	ErrorMessage *string `json:"error_message,omitempty"`
}

ListAccounts400Response struct for ListAccounts400Response

func NewListAccounts400Response

func NewListAccounts400Response(errorCode string) *ListAccounts400Response

NewListAccounts400Response instantiates a new ListAccounts400Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewListAccounts400ResponseWithDefaults

func NewListAccounts400ResponseWithDefaults() *ListAccounts400Response

NewListAccounts400ResponseWithDefaults instantiates a new ListAccounts400Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ListAccounts400Response) GetErrorCode

func (o *ListAccounts400Response) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*ListAccounts400Response) GetErrorCodeOk

func (o *ListAccounts400Response) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*ListAccounts400Response) GetErrorMessage

func (o *ListAccounts400Response) GetErrorMessage() string

GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise.

func (*ListAccounts400Response) GetErrorMessageOk

func (o *ListAccounts400Response) GetErrorMessageOk() (*string, bool)

GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ListAccounts400Response) HasErrorMessage

func (o *ListAccounts400Response) HasErrorMessage() bool

HasErrorMessage returns a boolean if a field has been set.

func (ListAccounts400Response) MarshalJSON

func (o ListAccounts400Response) MarshalJSON() ([]byte, error)

func (*ListAccounts400Response) SetErrorCode

func (o *ListAccounts400Response) SetErrorCode(v string)

SetErrorCode sets field value

func (*ListAccounts400Response) SetErrorMessage

func (o *ListAccounts400Response) SetErrorMessage(v string)

SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.

type ListTransactions200Response

type ListTransactions200Response struct {
	Cursor ListTransactions200ResponseCursor `json:"cursor"`
}

ListTransactions200Response struct for ListTransactions200Response

func NewListTransactions200Response

func NewListTransactions200Response(cursor ListTransactions200ResponseCursor) *ListTransactions200Response

NewListTransactions200Response instantiates a new ListTransactions200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewListTransactions200ResponseWithDefaults

func NewListTransactions200ResponseWithDefaults() *ListTransactions200Response

NewListTransactions200ResponseWithDefaults instantiates a new ListTransactions200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ListTransactions200Response) GetCursor

GetCursor returns the Cursor field value

func (*ListTransactions200Response) GetCursorOk

GetCursorOk returns a tuple with the Cursor field value and a boolean to check if the value has been set.

func (ListTransactions200Response) MarshalJSON

func (o ListTransactions200Response) MarshalJSON() ([]byte, error)

func (*ListTransactions200Response) SetCursor

SetCursor sets field value

type ListTransactions200ResponseCursor

type ListTransactions200ResponseCursor struct {
	PageSize int32         `json:"page_size"`
	HasMore  *bool         `json:"has_more,omitempty"`
	Previous *string       `json:"previous,omitempty"`
	Next     *string       `json:"next,omitempty"`
	Data     []Transaction `json:"data"`
}

ListTransactions200ResponseCursor struct for ListTransactions200ResponseCursor

func NewListTransactions200ResponseCursor

func NewListTransactions200ResponseCursor(pageSize int32, data []Transaction) *ListTransactions200ResponseCursor

NewListTransactions200ResponseCursor instantiates a new ListTransactions200ResponseCursor object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewListTransactions200ResponseCursorWithDefaults

func NewListTransactions200ResponseCursorWithDefaults() *ListTransactions200ResponseCursor

NewListTransactions200ResponseCursorWithDefaults instantiates a new ListTransactions200ResponseCursor object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ListTransactions200ResponseCursor) GetData

GetData returns the Data field value

func (*ListTransactions200ResponseCursor) GetDataOk

func (o *ListTransactions200ResponseCursor) GetDataOk() (*[]Transaction, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*ListTransactions200ResponseCursor) GetHasMore

func (o *ListTransactions200ResponseCursor) GetHasMore() bool

GetHasMore returns the HasMore field value if set, zero value otherwise.

func (*ListTransactions200ResponseCursor) GetHasMoreOk

func (o *ListTransactions200ResponseCursor) GetHasMoreOk() (*bool, bool)

GetHasMoreOk returns a tuple with the HasMore field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ListTransactions200ResponseCursor) GetNext

GetNext returns the Next field value if set, zero value otherwise.

func (*ListTransactions200ResponseCursor) GetNextOk

func (o *ListTransactions200ResponseCursor) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ListTransactions200ResponseCursor) GetPageSize

func (o *ListTransactions200ResponseCursor) GetPageSize() int32

GetPageSize returns the PageSize field value

func (*ListTransactions200ResponseCursor) GetPageSizeOk

func (o *ListTransactions200ResponseCursor) GetPageSizeOk() (*int32, bool)

GetPageSizeOk returns a tuple with the PageSize field value and a boolean to check if the value has been set.

func (*ListTransactions200ResponseCursor) GetPrevious

func (o *ListTransactions200ResponseCursor) GetPrevious() string

GetPrevious returns the Previous field value if set, zero value otherwise.

func (*ListTransactions200ResponseCursor) GetPreviousOk

func (o *ListTransactions200ResponseCursor) GetPreviousOk() (*string, bool)

GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ListTransactions200ResponseCursor) HasHasMore

func (o *ListTransactions200ResponseCursor) HasHasMore() bool

HasHasMore returns a boolean if a field has been set.

func (*ListTransactions200ResponseCursor) HasNext

HasNext returns a boolean if a field has been set.

func (*ListTransactions200ResponseCursor) HasPrevious

func (o *ListTransactions200ResponseCursor) HasPrevious() bool

HasPrevious returns a boolean if a field has been set.

func (ListTransactions200ResponseCursor) MarshalJSON

func (o ListTransactions200ResponseCursor) MarshalJSON() ([]byte, error)

func (*ListTransactions200ResponseCursor) SetData

SetData sets field value

func (*ListTransactions200ResponseCursor) SetHasMore

func (o *ListTransactions200ResponseCursor) SetHasMore(v bool)

SetHasMore gets a reference to the given bool and assigns it to the HasMore field.

func (*ListTransactions200ResponseCursor) SetNext

SetNext gets a reference to the given string and assigns it to the Next field.

func (*ListTransactions200ResponseCursor) SetPageSize

func (o *ListTransactions200ResponseCursor) SetPageSize(v int32)

SetPageSize sets field value

func (*ListTransactions200ResponseCursor) SetPrevious

func (o *ListTransactions200ResponseCursor) SetPrevious(v string)

SetPrevious gets a reference to the given string and assigns it to the Previous field.

type ListTransactions200ResponseCursorAllOf

type ListTransactions200ResponseCursorAllOf struct {
	Data []Transaction `json:"data"`
}

ListTransactions200ResponseCursorAllOf struct for ListTransactions200ResponseCursorAllOf

func NewListTransactions200ResponseCursorAllOf

func NewListTransactions200ResponseCursorAllOf(data []Transaction) *ListTransactions200ResponseCursorAllOf

NewListTransactions200ResponseCursorAllOf instantiates a new ListTransactions200ResponseCursorAllOf object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewListTransactions200ResponseCursorAllOfWithDefaults

func NewListTransactions200ResponseCursorAllOfWithDefaults() *ListTransactions200ResponseCursorAllOf

NewListTransactions200ResponseCursorAllOfWithDefaults instantiates a new ListTransactions200ResponseCursorAllOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ListTransactions200ResponseCursorAllOf) GetData

GetData returns the Data field value

func (*ListTransactions200ResponseCursorAllOf) GetDataOk

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (ListTransactions200ResponseCursorAllOf) MarshalJSON

func (o ListTransactions200ResponseCursorAllOf) MarshalJSON() ([]byte, error)

func (*ListTransactions200ResponseCursorAllOf) SetData

SetData sets field value

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type Mapping

type Mapping struct {
	Contracts []Contract `json:"contracts"`
}

Mapping struct for Mapping

func NewMapping

func NewMapping(contracts []Contract) *Mapping

NewMapping instantiates a new Mapping object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMappingWithDefaults

func NewMappingWithDefaults() *Mapping

NewMappingWithDefaults instantiates a new Mapping object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Mapping) GetContracts

func (o *Mapping) GetContracts() []Contract

GetContracts returns the Contracts field value

func (*Mapping) GetContractsOk

func (o *Mapping) GetContractsOk() (*[]Contract, bool)

GetContractsOk returns a tuple with the Contracts field value and a boolean to check if the value has been set.

func (Mapping) MarshalJSON

func (o Mapping) MarshalJSON() ([]byte, error)

func (*Mapping) SetContracts

func (o *Mapping) SetContracts(v []Contract)

SetContracts sets field value

type MappingApiService

type MappingApiService service

MappingApiService MappingApi service

func (*MappingApiService) GetMapping

func (a *MappingApiService) GetMapping(ctx _context.Context, ledger string) ApiGetMappingRequest

GetMapping Get the mapping of a ledger.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@return ApiGetMappingRequest

func (*MappingApiService) GetMappingExecute

Execute executes the request

@return MappingResponse

func (*MappingApiService) UpdateMapping

func (a *MappingApiService) UpdateMapping(ctx _context.Context, ledger string) ApiUpdateMappingRequest

UpdateMapping Update the mapping of a ledger.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@return ApiUpdateMappingRequest

func (*MappingApiService) UpdateMappingExecute

Execute executes the request

@return MappingResponse

type MappingResponse

type MappingResponse struct {
	Data NullableMapping `json:"data,omitempty"`
}

MappingResponse struct for MappingResponse

func NewMappingResponse

func NewMappingResponse() *MappingResponse

NewMappingResponse instantiates a new MappingResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMappingResponseWithDefaults

func NewMappingResponseWithDefaults() *MappingResponse

NewMappingResponseWithDefaults instantiates a new MappingResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MappingResponse) GetData

func (o *MappingResponse) GetData() Mapping

GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null).

func (*MappingResponse) GetDataOk

func (o *MappingResponse) GetDataOk() (*Mapping, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MappingResponse) HasData

func (o *MappingResponse) HasData() bool

HasData returns a boolean if a field has been set.

func (MappingResponse) MarshalJSON

func (o MappingResponse) MarshalJSON() ([]byte, error)

func (*MappingResponse) SetData

func (o *MappingResponse) SetData(v Mapping)

SetData gets a reference to the given NullableMapping and assigns it to the Data field.

func (*MappingResponse) SetDataNil

func (o *MappingResponse) SetDataNil()

SetDataNil sets the value for Data to be an explicit nil

func (*MappingResponse) UnsetData

func (o *MappingResponse) UnsetData()

UnsetData ensures that no value is present for Data, not even an explicit nil

type NullableAccount

type NullableAccount struct {
	// contains filtered or unexported fields
}

func NewNullableAccount

func NewNullableAccount(val *Account) *NullableAccount

func (NullableAccount) Get

func (v NullableAccount) Get() *Account

func (NullableAccount) IsSet

func (v NullableAccount) IsSet() bool

func (NullableAccount) MarshalJSON

func (v NullableAccount) MarshalJSON() ([]byte, error)

func (*NullableAccount) Set

func (v *NullableAccount) Set(val *Account)

func (*NullableAccount) UnmarshalJSON

func (v *NullableAccount) UnmarshalJSON(src []byte) error

func (*NullableAccount) Unset

func (v *NullableAccount) Unset()

type NullableAccountWithVolumesAndBalances

type NullableAccountWithVolumesAndBalances struct {
	// contains filtered or unexported fields
}

func (NullableAccountWithVolumesAndBalances) Get

func (NullableAccountWithVolumesAndBalances) IsSet

func (NullableAccountWithVolumesAndBalances) MarshalJSON

func (v NullableAccountWithVolumesAndBalances) MarshalJSON() ([]byte, error)

func (*NullableAccountWithVolumesAndBalances) Set

func (*NullableAccountWithVolumesAndBalances) UnmarshalJSON

func (v *NullableAccountWithVolumesAndBalances) UnmarshalJSON(src []byte) error

func (*NullableAccountWithVolumesAndBalances) Unset

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableConfig

type NullableConfig struct {
	// contains filtered or unexported fields
}

func NewNullableConfig

func NewNullableConfig(val *Config) *NullableConfig

func (NullableConfig) Get

func (v NullableConfig) Get() *Config

func (NullableConfig) IsSet

func (v NullableConfig) IsSet() bool

func (NullableConfig) MarshalJSON

func (v NullableConfig) MarshalJSON() ([]byte, error)

func (*NullableConfig) Set

func (v *NullableConfig) Set(val *Config)

func (*NullableConfig) UnmarshalJSON

func (v *NullableConfig) UnmarshalJSON(src []byte) error

func (*NullableConfig) Unset

func (v *NullableConfig) Unset()

type NullableConfigInfo

type NullableConfigInfo struct {
	// contains filtered or unexported fields
}

func NewNullableConfigInfo

func NewNullableConfigInfo(val *ConfigInfo) *NullableConfigInfo

func (NullableConfigInfo) Get

func (v NullableConfigInfo) Get() *ConfigInfo

func (NullableConfigInfo) IsSet

func (v NullableConfigInfo) IsSet() bool

func (NullableConfigInfo) MarshalJSON

func (v NullableConfigInfo) MarshalJSON() ([]byte, error)

func (*NullableConfigInfo) Set

func (v *NullableConfigInfo) Set(val *ConfigInfo)

func (*NullableConfigInfo) UnmarshalJSON

func (v *NullableConfigInfo) UnmarshalJSON(src []byte) error

func (*NullableConfigInfo) Unset

func (v *NullableConfigInfo) Unset()

type NullableConfigInfoResponse

type NullableConfigInfoResponse struct {
	// contains filtered or unexported fields
}

func NewNullableConfigInfoResponse

func NewNullableConfigInfoResponse(val *ConfigInfoResponse) *NullableConfigInfoResponse

func (NullableConfigInfoResponse) Get

func (NullableConfigInfoResponse) IsSet

func (v NullableConfigInfoResponse) IsSet() bool

func (NullableConfigInfoResponse) MarshalJSON

func (v NullableConfigInfoResponse) MarshalJSON() ([]byte, error)

func (*NullableConfigInfoResponse) Set

func (*NullableConfigInfoResponse) UnmarshalJSON

func (v *NullableConfigInfoResponse) UnmarshalJSON(src []byte) error

func (*NullableConfigInfoResponse) Unset

func (v *NullableConfigInfoResponse) Unset()

type NullableContract

type NullableContract struct {
	// contains filtered or unexported fields
}

func NewNullableContract

func NewNullableContract(val *Contract) *NullableContract

func (NullableContract) Get

func (v NullableContract) Get() *Contract

func (NullableContract) IsSet

func (v NullableContract) IsSet() bool

func (NullableContract) MarshalJSON

func (v NullableContract) MarshalJSON() ([]byte, error)

func (*NullableContract) Set

func (v *NullableContract) Set(val *Contract)

func (*NullableContract) UnmarshalJSON

func (v *NullableContract) UnmarshalJSON(src []byte) error

func (*NullableContract) Unset

func (v *NullableContract) Unset()

type NullableCreateTransaction400Response

type NullableCreateTransaction400Response struct {
	// contains filtered or unexported fields
}

func (NullableCreateTransaction400Response) Get

func (NullableCreateTransaction400Response) IsSet

func (NullableCreateTransaction400Response) MarshalJSON

func (v NullableCreateTransaction400Response) MarshalJSON() ([]byte, error)

func (*NullableCreateTransaction400Response) Set

func (*NullableCreateTransaction400Response) UnmarshalJSON

func (v *NullableCreateTransaction400Response) UnmarshalJSON(src []byte) error

func (*NullableCreateTransaction400Response) Unset

type NullableCreateTransaction409Response

type NullableCreateTransaction409Response struct {
	// contains filtered or unexported fields
}

func (NullableCreateTransaction409Response) Get

func (NullableCreateTransaction409Response) IsSet

func (NullableCreateTransaction409Response) MarshalJSON

func (v NullableCreateTransaction409Response) MarshalJSON() ([]byte, error)

func (*NullableCreateTransaction409Response) Set

func (*NullableCreateTransaction409Response) UnmarshalJSON

func (v *NullableCreateTransaction409Response) UnmarshalJSON(src []byte) error

func (*NullableCreateTransaction409Response) Unset

type NullableCreateTransactions400Response

type NullableCreateTransactions400Response struct {
	// contains filtered or unexported fields
}

func (NullableCreateTransactions400Response) Get

func (NullableCreateTransactions400Response) IsSet

func (NullableCreateTransactions400Response) MarshalJSON

func (v NullableCreateTransactions400Response) MarshalJSON() ([]byte, error)

func (*NullableCreateTransactions400Response) Set

func (*NullableCreateTransactions400Response) UnmarshalJSON

func (v *NullableCreateTransactions400Response) UnmarshalJSON(src []byte) error

func (*NullableCreateTransactions400Response) Unset

type NullableCursor

type NullableCursor struct {
	// contains filtered or unexported fields
}

func NewNullableCursor

func NewNullableCursor(val *Cursor) *NullableCursor

func (NullableCursor) Get

func (v NullableCursor) Get() *Cursor

func (NullableCursor) IsSet

func (v NullableCursor) IsSet() bool

func (NullableCursor) MarshalJSON

func (v NullableCursor) MarshalJSON() ([]byte, error)

func (*NullableCursor) Set

func (v *NullableCursor) Set(val *Cursor)

func (*NullableCursor) UnmarshalJSON

func (v *NullableCursor) UnmarshalJSON(src []byte) error

func (*NullableCursor) Unset

func (v *NullableCursor) Unset()

type NullableErrorCode

type NullableErrorCode struct {
	// contains filtered or unexported fields
}

func NewNullableErrorCode

func NewNullableErrorCode(val *ErrorCode) *NullableErrorCode

func (NullableErrorCode) Get

func (v NullableErrorCode) Get() *ErrorCode

func (NullableErrorCode) IsSet

func (v NullableErrorCode) IsSet() bool

func (NullableErrorCode) MarshalJSON

func (v NullableErrorCode) MarshalJSON() ([]byte, error)

func (*NullableErrorCode) Set

func (v *NullableErrorCode) Set(val *ErrorCode)

func (*NullableErrorCode) UnmarshalJSON

func (v *NullableErrorCode) UnmarshalJSON(src []byte) error

func (*NullableErrorCode) Unset

func (v *NullableErrorCode) Unset()

type NullableErrorResponse

type NullableErrorResponse struct {
	// contains filtered or unexported fields
}

func NewNullableErrorResponse

func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse

func (NullableErrorResponse) Get

func (NullableErrorResponse) IsSet

func (v NullableErrorResponse) IsSet() bool

func (NullableErrorResponse) MarshalJSON

func (v NullableErrorResponse) MarshalJSON() ([]byte, error)

func (*NullableErrorResponse) Set

func (v *NullableErrorResponse) Set(val *ErrorResponse)

func (*NullableErrorResponse) UnmarshalJSON

func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error

func (*NullableErrorResponse) Unset

func (v *NullableErrorResponse) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGetAccount200Response

type NullableGetAccount200Response struct {
	// contains filtered or unexported fields
}

func (NullableGetAccount200Response) Get

func (NullableGetAccount200Response) IsSet

func (NullableGetAccount200Response) MarshalJSON

func (v NullableGetAccount200Response) MarshalJSON() ([]byte, error)

func (*NullableGetAccount200Response) Set

func (*NullableGetAccount200Response) UnmarshalJSON

func (v *NullableGetAccount200Response) UnmarshalJSON(src []byte) error

func (*NullableGetAccount200Response) Unset

func (v *NullableGetAccount200Response) Unset()

type NullableGetAccount400Response

type NullableGetAccount400Response struct {
	// contains filtered or unexported fields
}

func (NullableGetAccount400Response) Get

func (NullableGetAccount400Response) IsSet

func (NullableGetAccount400Response) MarshalJSON

func (v NullableGetAccount400Response) MarshalJSON() ([]byte, error)

func (*NullableGetAccount400Response) Set

func (*NullableGetAccount400Response) UnmarshalJSON

func (v *NullableGetAccount400Response) UnmarshalJSON(src []byte) error

func (*NullableGetAccount400Response) Unset

func (v *NullableGetAccount400Response) Unset()

type NullableGetBalances200Response

type NullableGetBalances200Response struct {
	// contains filtered or unexported fields
}

func (NullableGetBalances200Response) Get

func (NullableGetBalances200Response) IsSet

func (NullableGetBalances200Response) MarshalJSON

func (v NullableGetBalances200Response) MarshalJSON() ([]byte, error)

func (*NullableGetBalances200Response) Set

func (*NullableGetBalances200Response) UnmarshalJSON

func (v *NullableGetBalances200Response) UnmarshalJSON(src []byte) error

func (*NullableGetBalances200Response) Unset

func (v *NullableGetBalances200Response) Unset()

type NullableGetBalances200ResponseCursor

type NullableGetBalances200ResponseCursor struct {
	// contains filtered or unexported fields
}

func (NullableGetBalances200ResponseCursor) Get

func (NullableGetBalances200ResponseCursor) IsSet

func (NullableGetBalances200ResponseCursor) MarshalJSON

func (v NullableGetBalances200ResponseCursor) MarshalJSON() ([]byte, error)

func (*NullableGetBalances200ResponseCursor) Set

func (*NullableGetBalances200ResponseCursor) UnmarshalJSON

func (v *NullableGetBalances200ResponseCursor) UnmarshalJSON(src []byte) error

func (*NullableGetBalances200ResponseCursor) Unset

type NullableGetBalances200ResponseCursorAllOf

type NullableGetBalances200ResponseCursorAllOf struct {
	// contains filtered or unexported fields
}

func (NullableGetBalances200ResponseCursorAllOf) Get

func (NullableGetBalances200ResponseCursorAllOf) IsSet

func (NullableGetBalances200ResponseCursorAllOf) MarshalJSON

func (*NullableGetBalances200ResponseCursorAllOf) Set

func (*NullableGetBalances200ResponseCursorAllOf) UnmarshalJSON

func (v *NullableGetBalances200ResponseCursorAllOf) UnmarshalJSON(src []byte) error

func (*NullableGetBalances200ResponseCursorAllOf) Unset

type NullableGetBalancesAggregated200Response

type NullableGetBalancesAggregated200Response struct {
	// contains filtered or unexported fields
}

func (NullableGetBalancesAggregated200Response) Get

func (NullableGetBalancesAggregated200Response) IsSet

func (NullableGetBalancesAggregated200Response) MarshalJSON

func (*NullableGetBalancesAggregated200Response) Set

func (*NullableGetBalancesAggregated200Response) UnmarshalJSON

func (v *NullableGetBalancesAggregated200Response) UnmarshalJSON(src []byte) error

func (*NullableGetBalancesAggregated200Response) Unset

type NullableGetBalancesAggregated400Response

type NullableGetBalancesAggregated400Response struct {
	// contains filtered or unexported fields
}

func (NullableGetBalancesAggregated400Response) Get

func (NullableGetBalancesAggregated400Response) IsSet

func (NullableGetBalancesAggregated400Response) MarshalJSON

func (*NullableGetBalancesAggregated400Response) Set

func (*NullableGetBalancesAggregated400Response) UnmarshalJSON

func (v *NullableGetBalancesAggregated400Response) UnmarshalJSON(src []byte) error

func (*NullableGetBalancesAggregated400Response) Unset

type NullableGetTransaction400Response

type NullableGetTransaction400Response struct {
	// contains filtered or unexported fields
}

func (NullableGetTransaction400Response) Get

func (NullableGetTransaction400Response) IsSet

func (NullableGetTransaction400Response) MarshalJSON

func (v NullableGetTransaction400Response) MarshalJSON() ([]byte, error)

func (*NullableGetTransaction400Response) Set

func (*NullableGetTransaction400Response) UnmarshalJSON

func (v *NullableGetTransaction400Response) UnmarshalJSON(src []byte) error

func (*NullableGetTransaction400Response) Unset

type NullableGetTransaction404Response

type NullableGetTransaction404Response struct {
	// contains filtered or unexported fields
}

func (NullableGetTransaction404Response) Get

func (NullableGetTransaction404Response) IsSet

func (NullableGetTransaction404Response) MarshalJSON

func (v NullableGetTransaction404Response) MarshalJSON() ([]byte, error)

func (*NullableGetTransaction404Response) Set

func (*NullableGetTransaction404Response) UnmarshalJSON

func (v *NullableGetTransaction404Response) UnmarshalJSON(src []byte) error

func (*NullableGetTransaction404Response) Unset

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableLedgerStorage

type NullableLedgerStorage struct {
	// contains filtered or unexported fields
}

func NewNullableLedgerStorage

func NewNullableLedgerStorage(val *LedgerStorage) *NullableLedgerStorage

func (NullableLedgerStorage) Get

func (NullableLedgerStorage) IsSet

func (v NullableLedgerStorage) IsSet() bool

func (NullableLedgerStorage) MarshalJSON

func (v NullableLedgerStorage) MarshalJSON() ([]byte, error)

func (*NullableLedgerStorage) Set

func (v *NullableLedgerStorage) Set(val *LedgerStorage)

func (*NullableLedgerStorage) UnmarshalJSON

func (v *NullableLedgerStorage) UnmarshalJSON(src []byte) error

func (*NullableLedgerStorage) Unset

func (v *NullableLedgerStorage) Unset()

type NullableListAccounts200Response

type NullableListAccounts200Response struct {
	// contains filtered or unexported fields
}

func (NullableListAccounts200Response) Get

func (NullableListAccounts200Response) IsSet

func (NullableListAccounts200Response) MarshalJSON

func (v NullableListAccounts200Response) MarshalJSON() ([]byte, error)

func (*NullableListAccounts200Response) Set

func (*NullableListAccounts200Response) UnmarshalJSON

func (v *NullableListAccounts200Response) UnmarshalJSON(src []byte) error

func (*NullableListAccounts200Response) Unset

type NullableListAccounts200ResponseCursor

type NullableListAccounts200ResponseCursor struct {
	// contains filtered or unexported fields
}

func (NullableListAccounts200ResponseCursor) Get

func (NullableListAccounts200ResponseCursor) IsSet

func (NullableListAccounts200ResponseCursor) MarshalJSON

func (v NullableListAccounts200ResponseCursor) MarshalJSON() ([]byte, error)

func (*NullableListAccounts200ResponseCursor) Set

func (*NullableListAccounts200ResponseCursor) UnmarshalJSON

func (v *NullableListAccounts200ResponseCursor) UnmarshalJSON(src []byte) error

func (*NullableListAccounts200ResponseCursor) Unset

type NullableListAccounts200ResponseCursorAllOf

type NullableListAccounts200ResponseCursorAllOf struct {
	// contains filtered or unexported fields
}

func (NullableListAccounts200ResponseCursorAllOf) Get

func (NullableListAccounts200ResponseCursorAllOf) IsSet

func (NullableListAccounts200ResponseCursorAllOf) MarshalJSON

func (*NullableListAccounts200ResponseCursorAllOf) Set

func (*NullableListAccounts200ResponseCursorAllOf) UnmarshalJSON

func (v *NullableListAccounts200ResponseCursorAllOf) UnmarshalJSON(src []byte) error

func (*NullableListAccounts200ResponseCursorAllOf) Unset

type NullableListAccounts400Response

type NullableListAccounts400Response struct {
	// contains filtered or unexported fields
}

func (NullableListAccounts400Response) Get

func (NullableListAccounts400Response) IsSet

func (NullableListAccounts400Response) MarshalJSON

func (v NullableListAccounts400Response) MarshalJSON() ([]byte, error)

func (*NullableListAccounts400Response) Set

func (*NullableListAccounts400Response) UnmarshalJSON

func (v *NullableListAccounts400Response) UnmarshalJSON(src []byte) error

func (*NullableListAccounts400Response) Unset

type NullableListTransactions200Response

type NullableListTransactions200Response struct {
	// contains filtered or unexported fields
}

func (NullableListTransactions200Response) Get

func (NullableListTransactions200Response) IsSet

func (NullableListTransactions200Response) MarshalJSON

func (v NullableListTransactions200Response) MarshalJSON() ([]byte, error)

func (*NullableListTransactions200Response) Set

func (*NullableListTransactions200Response) UnmarshalJSON

func (v *NullableListTransactions200Response) UnmarshalJSON(src []byte) error

func (*NullableListTransactions200Response) Unset

type NullableListTransactions200ResponseCursor

type NullableListTransactions200ResponseCursor struct {
	// contains filtered or unexported fields
}

func (NullableListTransactions200ResponseCursor) Get

func (NullableListTransactions200ResponseCursor) IsSet

func (NullableListTransactions200ResponseCursor) MarshalJSON

func (*NullableListTransactions200ResponseCursor) Set

func (*NullableListTransactions200ResponseCursor) UnmarshalJSON

func (v *NullableListTransactions200ResponseCursor) UnmarshalJSON(src []byte) error

func (*NullableListTransactions200ResponseCursor) Unset

type NullableListTransactions200ResponseCursorAllOf

type NullableListTransactions200ResponseCursorAllOf struct {
	// contains filtered or unexported fields
}

func (NullableListTransactions200ResponseCursorAllOf) Get

func (NullableListTransactions200ResponseCursorAllOf) IsSet

func (NullableListTransactions200ResponseCursorAllOf) MarshalJSON

func (*NullableListTransactions200ResponseCursorAllOf) Set

func (*NullableListTransactions200ResponseCursorAllOf) UnmarshalJSON

func (*NullableListTransactions200ResponseCursorAllOf) Unset

type NullableMapping

type NullableMapping struct {
	// contains filtered or unexported fields
}

func NewNullableMapping

func NewNullableMapping(val *Mapping) *NullableMapping

func (NullableMapping) Get

func (v NullableMapping) Get() *Mapping

func (NullableMapping) IsSet

func (v NullableMapping) IsSet() bool

func (NullableMapping) MarshalJSON

func (v NullableMapping) MarshalJSON() ([]byte, error)

func (*NullableMapping) Set

func (v *NullableMapping) Set(val *Mapping)

func (*NullableMapping) UnmarshalJSON

func (v *NullableMapping) UnmarshalJSON(src []byte) error

func (*NullableMapping) Unset

func (v *NullableMapping) Unset()

type NullableMappingResponse

type NullableMappingResponse struct {
	// contains filtered or unexported fields
}

func NewNullableMappingResponse

func NewNullableMappingResponse(val *MappingResponse) *NullableMappingResponse

func (NullableMappingResponse) Get

func (NullableMappingResponse) IsSet

func (v NullableMappingResponse) IsSet() bool

func (NullableMappingResponse) MarshalJSON

func (v NullableMappingResponse) MarshalJSON() ([]byte, error)

func (*NullableMappingResponse) Set

func (*NullableMappingResponse) UnmarshalJSON

func (v *NullableMappingResponse) UnmarshalJSON(src []byte) error

func (*NullableMappingResponse) Unset

func (v *NullableMappingResponse) Unset()

type NullablePosting

type NullablePosting struct {
	// contains filtered or unexported fields
}

func NewNullablePosting

func NewNullablePosting(val *Posting) *NullablePosting

func (NullablePosting) Get

func (v NullablePosting) Get() *Posting

func (NullablePosting) IsSet

func (v NullablePosting) IsSet() bool

func (NullablePosting) MarshalJSON

func (v NullablePosting) MarshalJSON() ([]byte, error)

func (*NullablePosting) Set

func (v *NullablePosting) Set(val *Posting)

func (*NullablePosting) UnmarshalJSON

func (v *NullablePosting) UnmarshalJSON(src []byte) error

func (*NullablePosting) Unset

func (v *NullablePosting) Unset()

type NullableScript

type NullableScript struct {
	// contains filtered or unexported fields
}

func NewNullableScript

func NewNullableScript(val *Script) *NullableScript

func (NullableScript) Get

func (v NullableScript) Get() *Script

func (NullableScript) IsSet

func (v NullableScript) IsSet() bool

func (NullableScript) MarshalJSON

func (v NullableScript) MarshalJSON() ([]byte, error)

func (*NullableScript) Set

func (v *NullableScript) Set(val *Script)

func (*NullableScript) UnmarshalJSON

func (v *NullableScript) UnmarshalJSON(src []byte) error

func (*NullableScript) Unset

func (v *NullableScript) Unset()

type NullableScriptResult

type NullableScriptResult struct {
	// contains filtered or unexported fields
}

func NewNullableScriptResult

func NewNullableScriptResult(val *ScriptResult) *NullableScriptResult

func (NullableScriptResult) Get

func (NullableScriptResult) IsSet

func (v NullableScriptResult) IsSet() bool

func (NullableScriptResult) MarshalJSON

func (v NullableScriptResult) MarshalJSON() ([]byte, error)

func (*NullableScriptResult) Set

func (v *NullableScriptResult) Set(val *ScriptResult)

func (*NullableScriptResult) UnmarshalJSON

func (v *NullableScriptResult) UnmarshalJSON(src []byte) error

func (*NullableScriptResult) Unset

func (v *NullableScriptResult) Unset()

type NullableStats

type NullableStats struct {
	// contains filtered or unexported fields
}

func NewNullableStats

func NewNullableStats(val *Stats) *NullableStats

func (NullableStats) Get

func (v NullableStats) Get() *Stats

func (NullableStats) IsSet

func (v NullableStats) IsSet() bool

func (NullableStats) MarshalJSON

func (v NullableStats) MarshalJSON() ([]byte, error)

func (*NullableStats) Set

func (v *NullableStats) Set(val *Stats)

func (*NullableStats) UnmarshalJSON

func (v *NullableStats) UnmarshalJSON(src []byte) error

func (*NullableStats) Unset

func (v *NullableStats) Unset()

type NullableStatsResponse

type NullableStatsResponse struct {
	// contains filtered or unexported fields
}

func NewNullableStatsResponse

func NewNullableStatsResponse(val *StatsResponse) *NullableStatsResponse

func (NullableStatsResponse) Get

func (NullableStatsResponse) IsSet

func (v NullableStatsResponse) IsSet() bool

func (NullableStatsResponse) MarshalJSON

func (v NullableStatsResponse) MarshalJSON() ([]byte, error)

func (*NullableStatsResponse) Set

func (v *NullableStatsResponse) Set(val *StatsResponse)

func (*NullableStatsResponse) UnmarshalJSON

func (v *NullableStatsResponse) UnmarshalJSON(src []byte) error

func (*NullableStatsResponse) Unset

func (v *NullableStatsResponse) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableTransaction

type NullableTransaction struct {
	// contains filtered or unexported fields
}

func NewNullableTransaction

func NewNullableTransaction(val *Transaction) *NullableTransaction

func (NullableTransaction) Get

func (NullableTransaction) IsSet

func (v NullableTransaction) IsSet() bool

func (NullableTransaction) MarshalJSON

func (v NullableTransaction) MarshalJSON() ([]byte, error)

func (*NullableTransaction) Set

func (v *NullableTransaction) Set(val *Transaction)

func (*NullableTransaction) UnmarshalJSON

func (v *NullableTransaction) UnmarshalJSON(src []byte) error

func (*NullableTransaction) Unset

func (v *NullableTransaction) Unset()

type NullableTransactionData

type NullableTransactionData struct {
	// contains filtered or unexported fields
}

func NewNullableTransactionData

func NewNullableTransactionData(val *TransactionData) *NullableTransactionData

func (NullableTransactionData) Get

func (NullableTransactionData) IsSet

func (v NullableTransactionData) IsSet() bool

func (NullableTransactionData) MarshalJSON

func (v NullableTransactionData) MarshalJSON() ([]byte, error)

func (*NullableTransactionData) Set

func (*NullableTransactionData) UnmarshalJSON

func (v *NullableTransactionData) UnmarshalJSON(src []byte) error

func (*NullableTransactionData) Unset

func (v *NullableTransactionData) Unset()

type NullableTransactionResponse

type NullableTransactionResponse struct {
	// contains filtered or unexported fields
}

func NewNullableTransactionResponse

func NewNullableTransactionResponse(val *TransactionResponse) *NullableTransactionResponse

func (NullableTransactionResponse) Get

func (NullableTransactionResponse) IsSet

func (NullableTransactionResponse) MarshalJSON

func (v NullableTransactionResponse) MarshalJSON() ([]byte, error)

func (*NullableTransactionResponse) Set

func (*NullableTransactionResponse) UnmarshalJSON

func (v *NullableTransactionResponse) UnmarshalJSON(src []byte) error

func (*NullableTransactionResponse) Unset

func (v *NullableTransactionResponse) Unset()

type NullableTransactions

type NullableTransactions struct {
	// contains filtered or unexported fields
}

func NewNullableTransactions

func NewNullableTransactions(val *Transactions) *NullableTransactions

func (NullableTransactions) Get

func (NullableTransactions) IsSet

func (v NullableTransactions) IsSet() bool

func (NullableTransactions) MarshalJSON

func (v NullableTransactions) MarshalJSON() ([]byte, error)

func (*NullableTransactions) Set

func (v *NullableTransactions) Set(val *Transactions)

func (*NullableTransactions) UnmarshalJSON

func (v *NullableTransactions) UnmarshalJSON(src []byte) error

func (*NullableTransactions) Unset

func (v *NullableTransactions) Unset()

type NullableTransactionsResponse

type NullableTransactionsResponse struct {
	// contains filtered or unexported fields
}

func NewNullableTransactionsResponse

func NewNullableTransactionsResponse(val *TransactionsResponse) *NullableTransactionsResponse

func (NullableTransactionsResponse) Get

func (NullableTransactionsResponse) IsSet

func (NullableTransactionsResponse) MarshalJSON

func (v NullableTransactionsResponse) MarshalJSON() ([]byte, error)

func (*NullableTransactionsResponse) Set

func (*NullableTransactionsResponse) UnmarshalJSON

func (v *NullableTransactionsResponse) UnmarshalJSON(src []byte) error

func (*NullableTransactionsResponse) Unset

func (v *NullableTransactionsResponse) Unset()

type NullableVolume

type NullableVolume struct {
	// contains filtered or unexported fields
}

func NewNullableVolume

func NewNullableVolume(val *Volume) *NullableVolume

func (NullableVolume) Get

func (v NullableVolume) Get() *Volume

func (NullableVolume) IsSet

func (v NullableVolume) IsSet() bool

func (NullableVolume) MarshalJSON

func (v NullableVolume) MarshalJSON() ([]byte, error)

func (*NullableVolume) Set

func (v *NullableVolume) Set(val *Volume)

func (*NullableVolume) UnmarshalJSON

func (v *NullableVolume) UnmarshalJSON(src []byte) error

func (*NullableVolume) Unset

func (v *NullableVolume) Unset()

type Posting

type Posting struct {
	Amount      int32  `json:"amount"`
	Asset       string `json:"asset"`
	Destination string `json:"destination"`
	Source      string `json:"source"`
}

Posting struct for Posting

func NewPosting

func NewPosting(amount int32, asset string, destination string, source string) *Posting

NewPosting instantiates a new Posting object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPostingWithDefaults

func NewPostingWithDefaults() *Posting

NewPostingWithDefaults instantiates a new Posting object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Posting) GetAmount

func (o *Posting) GetAmount() int32

GetAmount returns the Amount field value

func (*Posting) GetAmountOk

func (o *Posting) GetAmountOk() (*int32, bool)

GetAmountOk returns a tuple with the Amount field value and a boolean to check if the value has been set.

func (*Posting) GetAsset

func (o *Posting) GetAsset() string

GetAsset returns the Asset field value

func (*Posting) GetAssetOk

func (o *Posting) GetAssetOk() (*string, bool)

GetAssetOk returns a tuple with the Asset field value and a boolean to check if the value has been set.

func (*Posting) GetDestination

func (o *Posting) GetDestination() string

GetDestination returns the Destination field value

func (*Posting) GetDestinationOk

func (o *Posting) GetDestinationOk() (*string, bool)

GetDestinationOk returns a tuple with the Destination field value and a boolean to check if the value has been set.

func (*Posting) GetSource

func (o *Posting) GetSource() string

GetSource returns the Source field value

func (*Posting) GetSourceOk

func (o *Posting) GetSourceOk() (*string, bool)

GetSourceOk returns a tuple with the Source field value and a boolean to check if the value has been set.

func (Posting) MarshalJSON

func (o Posting) MarshalJSON() ([]byte, error)

func (*Posting) SetAmount

func (o *Posting) SetAmount(v int32)

SetAmount sets field value

func (*Posting) SetAsset

func (o *Posting) SetAsset(v string)

SetAsset sets field value

func (*Posting) SetDestination

func (o *Posting) SetDestination(v string)

SetDestination sets field value

func (*Posting) SetSource

func (o *Posting) SetSource(v string)

SetSource sets field value

type Script

type Script struct {
	// Reference to attach to the generated transaction
	Reference *string                 `json:"reference,omitempty"`
	Metadata  map[string]interface{}  `json:"metadata,omitempty"`
	Plain     string                  `json:"plain"`
	Vars      *map[string]interface{} `json:"vars,omitempty"`
}

Script struct for Script

func NewScript

func NewScript(plain string) *Script

NewScript instantiates a new Script object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewScriptWithDefaults

func NewScriptWithDefaults() *Script

NewScriptWithDefaults instantiates a new Script object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Script) GetMetadata

func (o *Script) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Script) GetMetadataOk

func (o *Script) GetMetadataOk() (*map[string]interface{}, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Script) GetPlain

func (o *Script) GetPlain() string

GetPlain returns the Plain field value

func (*Script) GetPlainOk

func (o *Script) GetPlainOk() (*string, bool)

GetPlainOk returns a tuple with the Plain field value and a boolean to check if the value has been set.

func (*Script) GetReference

func (o *Script) GetReference() string

GetReference returns the Reference field value if set, zero value otherwise.

func (*Script) GetReferenceOk

func (o *Script) GetReferenceOk() (*string, bool)

GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Script) GetVars

func (o *Script) GetVars() map[string]interface{}

GetVars returns the Vars field value if set, zero value otherwise.

func (*Script) GetVarsOk

func (o *Script) GetVarsOk() (*map[string]interface{}, bool)

GetVarsOk returns a tuple with the Vars field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Script) HasMetadata

func (o *Script) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*Script) HasReference

func (o *Script) HasReference() bool

HasReference returns a boolean if a field has been set.

func (*Script) HasVars

func (o *Script) HasVars() bool

HasVars returns a boolean if a field has been set.

func (Script) MarshalJSON

func (o Script) MarshalJSON() ([]byte, error)

func (*Script) SetMetadata

func (o *Script) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*Script) SetPlain

func (o *Script) SetPlain(v string)

SetPlain sets field value

func (*Script) SetReference

func (o *Script) SetReference(v string)

SetReference gets a reference to the given string and assigns it to the Reference field.

func (*Script) SetVars

func (o *Script) SetVars(v map[string]interface{})

SetVars gets a reference to the given map[string]interface{} and assigns it to the Vars field.

type ScriptApiService

type ScriptApiService service

ScriptApiService ScriptApi service

func (*ScriptApiService) RunScript

func (a *ScriptApiService) RunScript(ctx _context.Context, ledger string) ApiRunScriptRequest

RunScript Execute a Numscript.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@return ApiRunScriptRequest

func (*ScriptApiService) RunScriptExecute

Execute executes the request

@return ScriptResult

type ScriptResult

type ScriptResult struct {
	Details      *string      `json:"details,omitempty"`
	ErrorCode    *string      `json:"error_code,omitempty"`
	ErrorMessage *string      `json:"error_message,omitempty"`
	Transaction  *Transaction `json:"transaction,omitempty"`
}

ScriptResult struct for ScriptResult

func NewScriptResult

func NewScriptResult() *ScriptResult

NewScriptResult instantiates a new ScriptResult object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewScriptResultWithDefaults

func NewScriptResultWithDefaults() *ScriptResult

NewScriptResultWithDefaults instantiates a new ScriptResult object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ScriptResult) GetDetails

func (o *ScriptResult) GetDetails() string

GetDetails returns the Details field value if set, zero value otherwise.

func (*ScriptResult) GetDetailsOk

func (o *ScriptResult) GetDetailsOk() (*string, bool)

GetDetailsOk returns a tuple with the Details field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ScriptResult) GetErrorCode

func (o *ScriptResult) GetErrorCode() string

GetErrorCode returns the ErrorCode field value if set, zero value otherwise.

func (*ScriptResult) GetErrorCodeOk

func (o *ScriptResult) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ScriptResult) GetErrorMessage

func (o *ScriptResult) GetErrorMessage() string

GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise.

func (*ScriptResult) GetErrorMessageOk

func (o *ScriptResult) GetErrorMessageOk() (*string, bool)

GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ScriptResult) GetTransaction

func (o *ScriptResult) GetTransaction() Transaction

GetTransaction returns the Transaction field value if set, zero value otherwise.

func (*ScriptResult) GetTransactionOk

func (o *ScriptResult) GetTransactionOk() (*Transaction, bool)

GetTransactionOk returns a tuple with the Transaction field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ScriptResult) HasDetails

func (o *ScriptResult) HasDetails() bool

HasDetails returns a boolean if a field has been set.

func (*ScriptResult) HasErrorCode

func (o *ScriptResult) HasErrorCode() bool

HasErrorCode returns a boolean if a field has been set.

func (*ScriptResult) HasErrorMessage

func (o *ScriptResult) HasErrorMessage() bool

HasErrorMessage returns a boolean if a field has been set.

func (*ScriptResult) HasTransaction

func (o *ScriptResult) HasTransaction() bool

HasTransaction returns a boolean if a field has been set.

func (ScriptResult) MarshalJSON

func (o ScriptResult) MarshalJSON() ([]byte, error)

func (*ScriptResult) SetDetails

func (o *ScriptResult) SetDetails(v string)

SetDetails gets a reference to the given string and assigns it to the Details field.

func (*ScriptResult) SetErrorCode

func (o *ScriptResult) SetErrorCode(v string)

SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.

func (*ScriptResult) SetErrorMessage

func (o *ScriptResult) SetErrorMessage(v string)

SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.

func (*ScriptResult) SetTransaction

func (o *ScriptResult) SetTransaction(v Transaction)

SetTransaction gets a reference to the given Transaction and assigns it to the Transaction field.

type ServerApiService

type ServerApiService service

ServerApiService ServerApi service

func (*ServerApiService) GetInfo

GetInfo Show server information.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetInfoRequest

func (*ServerApiService) GetInfoExecute

Execute executes the request

@return ConfigInfoResponse

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type Stats

type Stats struct {
	Accounts     int32 `json:"accounts"`
	Transactions int32 `json:"transactions"`
}

Stats struct for Stats

func NewStats

func NewStats(accounts int32, transactions int32) *Stats

NewStats instantiates a new Stats object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStatsWithDefaults

func NewStatsWithDefaults() *Stats

NewStatsWithDefaults instantiates a new Stats object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Stats) GetAccounts

func (o *Stats) GetAccounts() int32

GetAccounts returns the Accounts field value

func (*Stats) GetAccountsOk

func (o *Stats) GetAccountsOk() (*int32, bool)

GetAccountsOk returns a tuple with the Accounts field value and a boolean to check if the value has been set.

func (*Stats) GetTransactions

func (o *Stats) GetTransactions() int32

GetTransactions returns the Transactions field value

func (*Stats) GetTransactionsOk

func (o *Stats) GetTransactionsOk() (*int32, bool)

GetTransactionsOk returns a tuple with the Transactions field value and a boolean to check if the value has been set.

func (Stats) MarshalJSON

func (o Stats) MarshalJSON() ([]byte, error)

func (*Stats) SetAccounts

func (o *Stats) SetAccounts(v int32)

SetAccounts sets field value

func (*Stats) SetTransactions

func (o *Stats) SetTransactions(v int32)

SetTransactions sets field value

type StatsApiService

type StatsApiService service

StatsApiService StatsApi service

func (*StatsApiService) ReadStats

func (a *StatsApiService) ReadStats(ctx _context.Context, ledger string) ApiReadStatsRequest

ReadStats Get Stats

Get ledger stats (aggregate metrics on accounts and transactions) The stats for account

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger name of the ledger
@return ApiReadStatsRequest

func (*StatsApiService) ReadStatsExecute

Execute executes the request

@return StatsResponse

type StatsResponse

type StatsResponse struct {
	Data Stats `json:"data"`
}

StatsResponse struct for StatsResponse

func NewStatsResponse

func NewStatsResponse(data Stats) *StatsResponse

NewStatsResponse instantiates a new StatsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStatsResponseWithDefaults

func NewStatsResponseWithDefaults() *StatsResponse

NewStatsResponseWithDefaults instantiates a new StatsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StatsResponse) GetData

func (o *StatsResponse) GetData() Stats

GetData returns the Data field value

func (*StatsResponse) GetDataOk

func (o *StatsResponse) GetDataOk() (*Stats, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (StatsResponse) MarshalJSON

func (o StatsResponse) MarshalJSON() ([]byte, error)

func (*StatsResponse) SetData

func (o *StatsResponse) SetData(v Stats)

SetData sets field value

type Transaction

type Transaction struct {
	Timestamp         time.Time                     `json:"timestamp"`
	Postings          []Posting                     `json:"postings"`
	Reference         *string                       `json:"reference,omitempty"`
	Metadata          map[string]interface{}        `json:"metadata,omitempty"`
	Txid              int32                         `json:"txid"`
	PreCommitVolumes  *map[string]map[string]Volume `json:"preCommitVolumes,omitempty"`
	PostCommitVolumes *map[string]map[string]Volume `json:"postCommitVolumes,omitempty"`
}

Transaction struct for Transaction

func NewTransaction

func NewTransaction(timestamp time.Time, postings []Posting, txid int32) *Transaction

NewTransaction instantiates a new Transaction object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransactionWithDefaults

func NewTransactionWithDefaults() *Transaction

NewTransactionWithDefaults instantiates a new Transaction object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Transaction) GetMetadata

func (o *Transaction) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Transaction) GetMetadataOk

func (o *Transaction) GetMetadataOk() (*map[string]interface{}, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Transaction) GetPostCommitVolumes

func (o *Transaction) GetPostCommitVolumes() map[string]map[string]Volume

GetPostCommitVolumes returns the PostCommitVolumes field value if set, zero value otherwise.

func (*Transaction) GetPostCommitVolumesOk

func (o *Transaction) GetPostCommitVolumesOk() (*map[string]map[string]Volume, bool)

GetPostCommitVolumesOk returns a tuple with the PostCommitVolumes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Transaction) GetPostings

func (o *Transaction) GetPostings() []Posting

GetPostings returns the Postings field value

func (*Transaction) GetPostingsOk

func (o *Transaction) GetPostingsOk() (*[]Posting, bool)

GetPostingsOk returns a tuple with the Postings field value and a boolean to check if the value has been set.

func (*Transaction) GetPreCommitVolumes

func (o *Transaction) GetPreCommitVolumes() map[string]map[string]Volume

GetPreCommitVolumes returns the PreCommitVolumes field value if set, zero value otherwise.

func (*Transaction) GetPreCommitVolumesOk

func (o *Transaction) GetPreCommitVolumesOk() (*map[string]map[string]Volume, bool)

GetPreCommitVolumesOk returns a tuple with the PreCommitVolumes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Transaction) GetReference

func (o *Transaction) GetReference() string

GetReference returns the Reference field value if set, zero value otherwise.

func (*Transaction) GetReferenceOk

func (o *Transaction) GetReferenceOk() (*string, bool)

GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Transaction) GetTimestamp

func (o *Transaction) GetTimestamp() time.Time

GetTimestamp returns the Timestamp field value

func (*Transaction) GetTimestampOk

func (o *Transaction) GetTimestampOk() (*time.Time, bool)

GetTimestampOk returns a tuple with the Timestamp field value and a boolean to check if the value has been set.

func (*Transaction) GetTxid

func (o *Transaction) GetTxid() int32

GetTxid returns the Txid field value

func (*Transaction) GetTxidOk

func (o *Transaction) GetTxidOk() (*int32, bool)

GetTxidOk returns a tuple with the Txid field value and a boolean to check if the value has been set.

func (*Transaction) HasMetadata

func (o *Transaction) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*Transaction) HasPostCommitVolumes

func (o *Transaction) HasPostCommitVolumes() bool

HasPostCommitVolumes returns a boolean if a field has been set.

func (*Transaction) HasPreCommitVolumes

func (o *Transaction) HasPreCommitVolumes() bool

HasPreCommitVolumes returns a boolean if a field has been set.

func (*Transaction) HasReference

func (o *Transaction) HasReference() bool

HasReference returns a boolean if a field has been set.

func (Transaction) MarshalJSON

func (o Transaction) MarshalJSON() ([]byte, error)

func (*Transaction) SetMetadata

func (o *Transaction) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*Transaction) SetPostCommitVolumes

func (o *Transaction) SetPostCommitVolumes(v map[string]map[string]Volume)

SetPostCommitVolumes gets a reference to the given map[string]map[string]Volume and assigns it to the PostCommitVolumes field.

func (*Transaction) SetPostings

func (o *Transaction) SetPostings(v []Posting)

SetPostings sets field value

func (*Transaction) SetPreCommitVolumes

func (o *Transaction) SetPreCommitVolumes(v map[string]map[string]Volume)

SetPreCommitVolumes gets a reference to the given map[string]map[string]Volume and assigns it to the PreCommitVolumes field.

func (*Transaction) SetReference

func (o *Transaction) SetReference(v string)

SetReference gets a reference to the given string and assigns it to the Reference field.

func (*Transaction) SetTimestamp

func (o *Transaction) SetTimestamp(v time.Time)

SetTimestamp sets field value

func (*Transaction) SetTxid

func (o *Transaction) SetTxid(v int32)

SetTxid sets field value

type TransactionData

type TransactionData struct {
	Timestamp *time.Time             `json:"timestamp,omitempty"`
	Postings  []Posting              `json:"postings"`
	Reference *string                `json:"reference,omitempty"`
	Metadata  map[string]interface{} `json:"metadata,omitempty"`
}

TransactionData struct for TransactionData

func NewTransactionData

func NewTransactionData(postings []Posting) *TransactionData

NewTransactionData instantiates a new TransactionData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransactionDataWithDefaults

func NewTransactionDataWithDefaults() *TransactionData

NewTransactionDataWithDefaults instantiates a new TransactionData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TransactionData) GetMetadata

func (o *TransactionData) GetMetadata() map[string]interface{}

GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null).

func (*TransactionData) GetMetadataOk

func (o *TransactionData) GetMetadataOk() (*map[string]interface{}, bool)

GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*TransactionData) GetPostings

func (o *TransactionData) GetPostings() []Posting

GetPostings returns the Postings field value

func (*TransactionData) GetPostingsOk

func (o *TransactionData) GetPostingsOk() (*[]Posting, bool)

GetPostingsOk returns a tuple with the Postings field value and a boolean to check if the value has been set.

func (*TransactionData) GetReference

func (o *TransactionData) GetReference() string

GetReference returns the Reference field value if set, zero value otherwise.

func (*TransactionData) GetReferenceOk

func (o *TransactionData) GetReferenceOk() (*string, bool)

GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransactionData) GetTimestamp

func (o *TransactionData) GetTimestamp() time.Time

GetTimestamp returns the Timestamp field value if set, zero value otherwise.

func (*TransactionData) GetTimestampOk

func (o *TransactionData) GetTimestampOk() (*time.Time, bool)

GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TransactionData) HasMetadata

func (o *TransactionData) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*TransactionData) HasReference

func (o *TransactionData) HasReference() bool

HasReference returns a boolean if a field has been set.

func (*TransactionData) HasTimestamp

func (o *TransactionData) HasTimestamp() bool

HasTimestamp returns a boolean if a field has been set.

func (TransactionData) MarshalJSON

func (o TransactionData) MarshalJSON() ([]byte, error)

func (*TransactionData) SetMetadata

func (o *TransactionData) SetMetadata(v map[string]interface{})

SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field.

func (*TransactionData) SetPostings

func (o *TransactionData) SetPostings(v []Posting)

SetPostings sets field value

func (*TransactionData) SetReference

func (o *TransactionData) SetReference(v string)

SetReference gets a reference to the given string and assigns it to the Reference field.

func (*TransactionData) SetTimestamp

func (o *TransactionData) SetTimestamp(v time.Time)

SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.

type TransactionResponse

type TransactionResponse struct {
	Data Transaction `json:"data"`
}

TransactionResponse struct for TransactionResponse

func NewTransactionResponse

func NewTransactionResponse(data Transaction) *TransactionResponse

NewTransactionResponse instantiates a new TransactionResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransactionResponseWithDefaults

func NewTransactionResponseWithDefaults() *TransactionResponse

NewTransactionResponseWithDefaults instantiates a new TransactionResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TransactionResponse) GetData

func (o *TransactionResponse) GetData() Transaction

GetData returns the Data field value

func (*TransactionResponse) GetDataOk

func (o *TransactionResponse) GetDataOk() (*Transaction, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (TransactionResponse) MarshalJSON

func (o TransactionResponse) MarshalJSON() ([]byte, error)

func (*TransactionResponse) SetData

func (o *TransactionResponse) SetData(v Transaction)

SetData sets field value

type Transactions

type Transactions struct {
	Transactions []TransactionData `json:"transactions"`
}

Transactions struct for Transactions

func NewTransactions

func NewTransactions(transactions []TransactionData) *Transactions

NewTransactions instantiates a new Transactions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransactionsWithDefaults

func NewTransactionsWithDefaults() *Transactions

NewTransactionsWithDefaults instantiates a new Transactions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Transactions) GetTransactions

func (o *Transactions) GetTransactions() []TransactionData

GetTransactions returns the Transactions field value

func (*Transactions) GetTransactionsOk

func (o *Transactions) GetTransactionsOk() (*[]TransactionData, bool)

GetTransactionsOk returns a tuple with the Transactions field value and a boolean to check if the value has been set.

func (Transactions) MarshalJSON

func (o Transactions) MarshalJSON() ([]byte, error)

func (*Transactions) SetTransactions

func (o *Transactions) SetTransactions(v []TransactionData)

SetTransactions sets field value

type TransactionsApiService

type TransactionsApiService service

TransactionsApiService TransactionsApi service

func (*TransactionsApiService) AddMetadataOnTransaction

func (a *TransactionsApiService) AddMetadataOnTransaction(ctx _context.Context, ledger string, txid int32) ApiAddMetadataOnTransactionRequest

AddMetadataOnTransaction Set the metadata of a transaction by its ID.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@param txid Transaction ID.
@return ApiAddMetadataOnTransactionRequest

func (*TransactionsApiService) AddMetadataOnTransactionExecute

func (a *TransactionsApiService) AddMetadataOnTransactionExecute(r ApiAddMetadataOnTransactionRequest) (*_nethttp.Response, error)

Execute executes the request

func (*TransactionsApiService) CountTransactions

func (a *TransactionsApiService) CountTransactions(ctx _context.Context, ledger string) ApiCountTransactionsRequest

CountTransactions Count the transactions from a ledger.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@return ApiCountTransactionsRequest

func (*TransactionsApiService) CountTransactionsExecute

func (a *TransactionsApiService) CountTransactionsExecute(r ApiCountTransactionsRequest) (*_nethttp.Response, error)

Execute executes the request

func (*TransactionsApiService) CreateTransaction

func (a *TransactionsApiService) CreateTransaction(ctx _context.Context, ledger string) ApiCreateTransactionRequest

CreateTransaction Create a new transaction to a ledger.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@return ApiCreateTransactionRequest

func (*TransactionsApiService) CreateTransactionExecute

Execute executes the request

@return TransactionsResponse

func (*TransactionsApiService) CreateTransactions

func (a *TransactionsApiService) CreateTransactions(ctx _context.Context, ledger string) ApiCreateTransactionsRequest

CreateTransactions Create a new batch of transactions to a ledger.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@return ApiCreateTransactionsRequest

func (*TransactionsApiService) CreateTransactionsExecute

Execute executes the request

@return TransactionsResponse

func (*TransactionsApiService) GetTransaction

func (a *TransactionsApiService) GetTransaction(ctx _context.Context, ledger string, txid int32) ApiGetTransactionRequest

GetTransaction Get transaction from a ledger by its ID.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@param txid Transaction ID.
@return ApiGetTransactionRequest

func (*TransactionsApiService) GetTransactionExecute

Execute executes the request

@return TransactionResponse

func (*TransactionsApiService) ListTransactions

func (a *TransactionsApiService) ListTransactions(ctx _context.Context, ledger string) ApiListTransactionsRequest

ListTransactions List transactions from a ledger.

List transactions from a ledger, sorted by txid in descending order.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@return ApiListTransactionsRequest

func (*TransactionsApiService) ListTransactionsExecute

Execute executes the request

@return ListTransactions200Response

func (*TransactionsApiService) RevertTransaction

func (a *TransactionsApiService) RevertTransaction(ctx _context.Context, ledger string, txid int32) ApiRevertTransactionRequest

RevertTransaction Revert a ledger transaction by its ID.

@param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ledger Name of the ledger.
@param txid Transaction ID.
@return ApiRevertTransactionRequest

func (*TransactionsApiService) RevertTransactionExecute

Execute executes the request

@return TransactionResponse

type TransactionsResponse

type TransactionsResponse struct {
	Data []Transaction `json:"data"`
}

TransactionsResponse struct for TransactionsResponse

func NewTransactionsResponse

func NewTransactionsResponse(data []Transaction) *TransactionsResponse

NewTransactionsResponse instantiates a new TransactionsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTransactionsResponseWithDefaults

func NewTransactionsResponseWithDefaults() *TransactionsResponse

NewTransactionsResponseWithDefaults instantiates a new TransactionsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TransactionsResponse) GetData

func (o *TransactionsResponse) GetData() []Transaction

GetData returns the Data field value

func (*TransactionsResponse) GetDataOk

func (o *TransactionsResponse) GetDataOk() (*[]Transaction, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (TransactionsResponse) MarshalJSON

func (o TransactionsResponse) MarshalJSON() ([]byte, error)

func (*TransactionsResponse) SetData

func (o *TransactionsResponse) SetData(v []Transaction)

SetData sets field value

type Volume

type Volume struct {
	Input   float32  `json:"input"`
	Output  float32  `json:"output"`
	Balance *float32 `json:"balance,omitempty"`
}

Volume struct for Volume

func NewVolume

func NewVolume(input float32, output float32) *Volume

NewVolume instantiates a new Volume object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVolumeWithDefaults

func NewVolumeWithDefaults() *Volume

NewVolumeWithDefaults instantiates a new Volume object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Volume) GetBalance

func (o *Volume) GetBalance() float32

GetBalance returns the Balance field value if set, zero value otherwise.

func (*Volume) GetBalanceOk

func (o *Volume) GetBalanceOk() (*float32, bool)

GetBalanceOk returns a tuple with the Balance field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetInput

func (o *Volume) GetInput() float32

GetInput returns the Input field value

func (*Volume) GetInputOk

func (o *Volume) GetInputOk() (*float32, bool)

GetInputOk returns a tuple with the Input field value and a boolean to check if the value has been set.

func (*Volume) GetOutput

func (o *Volume) GetOutput() float32

GetOutput returns the Output field value

func (*Volume) GetOutputOk

func (o *Volume) GetOutputOk() (*float32, bool)

GetOutputOk returns a tuple with the Output field value and a boolean to check if the value has been set.

func (*Volume) HasBalance

func (o *Volume) HasBalance() bool

HasBalance returns a boolean if a field has been set.

func (Volume) MarshalJSON

func (o Volume) MarshalJSON() ([]byte, error)

func (*Volume) SetBalance

func (o *Volume) SetBalance(v float32)

SetBalance gets a reference to the given float32 and assigns it to the Balance field.

func (*Volume) SetInput

func (o *Volume) SetInput(v float32)

SetInput sets field value

func (*Volume) SetOutput

func (o *Volume) SetOutput(v float32)

SetOutput sets field value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL