Documentation ¶
Index ¶
- Variables
- type AccountsResponse
- func (*AccountsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AccountsResponse) GetAccounts() []*GetBalanceResponse
- func (*AccountsResponse) ProtoMessage()
- func (x *AccountsResponse) ProtoReflect() protoreflect.Message
- func (x *AccountsResponse) Reset()
- func (x *AccountsResponse) String() string
- type ApplyBalancesChangesRequestdeprecated
- func (*ApplyBalancesChangesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyBalancesChangesRequest) GetBalanceTransactions() []*BalanceTransaction
- func (x *ApplyBalancesChangesRequest) GetCurrency() string
- func (*ApplyBalancesChangesRequest) ProtoMessage()
- func (x *ApplyBalancesChangesRequest) ProtoReflect() protoreflect.Message
- func (x *ApplyBalancesChangesRequest) Reset()
- func (x *ApplyBalancesChangesRequest) String() string
- type BalanceTransactiondeprecated
- func (*BalanceTransaction) Descriptor() ([]byte, []int)deprecated
- func (x *BalanceTransaction) GetAccessToken() string
- func (x *BalanceTransaction) GetAmount() int32
- func (x *BalanceTransaction) GetExtra() string
- func (x *BalanceTransaction) GetFee() int32
- func (x *BalanceTransaction) GetReason() string
- func (x *BalanceTransaction) GetTimestamp() *timestamppb.Timestamp
- func (*BalanceTransaction) ProtoMessage()
- func (x *BalanceTransaction) ProtoReflect() protoreflect.Message
- func (x *BalanceTransaction) Reset()
- func (x *BalanceTransaction) String() string
- type GetBalanceRequest
- type GetBalanceResponse
- func (*GetBalanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBalanceResponse) GetBalance() uint32
- func (x *GetBalanceResponse) GetCurrency() string
- func (x *GetBalanceResponse) GetNumber() string
- func (*GetBalanceResponse) ProtoMessage()
- func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message
- func (x *GetBalanceResponse) Reset()
- func (x *GetBalanceResponse) String() string
- type MoneyRequest
- func (*MoneyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MoneyRequest) GetAmount() uint32
- func (x *MoneyRequest) GetCurrency() string
- func (x *MoneyRequest) GetExtra() string
- func (x *MoneyRequest) GetFee() uint32
- func (x *MoneyRequest) GetIdempotencyKey() stringdeprecated
- func (x *MoneyRequest) GetReason() string
- func (x *MoneyRequest) GetReference() string
- func (*MoneyRequest) ProtoMessage()
- func (x *MoneyRequest) ProtoReflect() protoreflect.Message
- func (x *MoneyRequest) Reset()
- func (x *MoneyRequest) String() string
- type MoneyResponse
- func (*MoneyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MoneyResponse) GetAccount() *GetBalanceResponse
- func (x *MoneyResponse) GetAmount() uint32
- func (x *MoneyResponse) GetId() string
- func (x *MoneyResponse) GetReference() string
- func (x *MoneyResponse) GetStatus() string
- func (*MoneyResponse) ProtoMessage()
- func (x *MoneyResponse) ProtoReflect() protoreflect.Message
- func (x *MoneyResponse) Reset()
- func (x *MoneyResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_linq_money_accounts_v1_accounts_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AccountsResponse ¶
type AccountsResponse struct { // Returns list of accounts, limited by user access // For the game request only LinQ and this game accounts will be returned Accounts []*GetBalanceResponse `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
List of active assets accounts for the current user
func (*AccountsResponse) Descriptor
deprecated
func (*AccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use AccountsResponse.ProtoReflect.Descriptor instead.
func (*AccountsResponse) GetAccounts ¶
func (x *AccountsResponse) GetAccounts() []*GetBalanceResponse
func (*AccountsResponse) ProtoMessage ¶
func (*AccountsResponse) ProtoMessage()
func (*AccountsResponse) ProtoReflect ¶
func (x *AccountsResponse) ProtoReflect() protoreflect.Message
func (*AccountsResponse) Reset ¶
func (x *AccountsResponse) Reset()
func (*AccountsResponse) String ¶
func (x *AccountsResponse) String() string
type ApplyBalancesChangesRequest
deprecated
type ApplyBalancesChangesRequest struct { // Internal currency code Currency string `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"` // List of transactions in the request BalanceTransactions []*BalanceTransaction `protobuf:"bytes,2,rep,name=balance_transactions,json=balanceTransactions,proto3" json:"balance_transactions,omitempty"` // contains filtered or unexported fields }
Request with list if transactions to apply DO NOT USE!
Deprecated: Marked as deprecated in linq/money/accounts/v1/accounts.proto.
func (*ApplyBalancesChangesRequest) Descriptor
deprecated
func (*ApplyBalancesChangesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplyBalancesChangesRequest.ProtoReflect.Descriptor instead.
func (*ApplyBalancesChangesRequest) GetBalanceTransactions ¶
func (x *ApplyBalancesChangesRequest) GetBalanceTransactions() []*BalanceTransaction
func (*ApplyBalancesChangesRequest) GetCurrency ¶
func (x *ApplyBalancesChangesRequest) GetCurrency() string
func (*ApplyBalancesChangesRequest) ProtoMessage ¶
func (*ApplyBalancesChangesRequest) ProtoMessage()
func (*ApplyBalancesChangesRequest) ProtoReflect ¶
func (x *ApplyBalancesChangesRequest) ProtoReflect() protoreflect.Message
func (*ApplyBalancesChangesRequest) Reset ¶
func (x *ApplyBalancesChangesRequest) Reset()
func (*ApplyBalancesChangesRequest) String ¶
func (x *ApplyBalancesChangesRequest) String() string
type BalanceTransaction
deprecated
type BalanceTransaction struct { // Access token for applying transaction AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // Amount of money in the transaction Amount int32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` // Fee value which has to be applied Fee *int32 `protobuf:"varint,3,opt,name=fee,proto3,oneof" json:"fee,omitempty"` // Reason of that transations Reason *string `protobuf:"bytes,4,opt,name=reason,proto3,oneof" json:"reason,omitempty"` // Additional informations related to the transactions Extra *string `protobuf:"bytes,5,opt,name=extra,proto3,oneof" json:"extra,omitempty"` // Time when transactions held Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3,oneof" json:"timestamp,omitempty"` // contains filtered or unexported fields }
Balance transactions description DO NOT USE!
Deprecated: Marked as deprecated in linq/money/accounts/v1/accounts.proto.
func (*BalanceTransaction) Descriptor
deprecated
func (*BalanceTransaction) Descriptor() ([]byte, []int)
Deprecated: Use BalanceTransaction.ProtoReflect.Descriptor instead.
func (*BalanceTransaction) GetAccessToken ¶
func (x *BalanceTransaction) GetAccessToken() string
func (*BalanceTransaction) GetAmount ¶
func (x *BalanceTransaction) GetAmount() int32
func (*BalanceTransaction) GetExtra ¶
func (x *BalanceTransaction) GetExtra() string
func (*BalanceTransaction) GetFee ¶
func (x *BalanceTransaction) GetFee() int32
func (*BalanceTransaction) GetReason ¶
func (x *BalanceTransaction) GetReason() string
func (*BalanceTransaction) GetTimestamp ¶
func (x *BalanceTransaction) GetTimestamp() *timestamppb.Timestamp
func (*BalanceTransaction) ProtoMessage ¶
func (*BalanceTransaction) ProtoMessage()
func (*BalanceTransaction) ProtoReflect ¶
func (x *BalanceTransaction) ProtoReflect() protoreflect.Message
func (*BalanceTransaction) Reset ¶
func (x *BalanceTransaction) Reset()
func (*BalanceTransaction) String ¶
func (x *BalanceTransaction) String() string
type GetBalanceRequest ¶
type GetBalanceRequest struct { // Internal currency code // If not specified, by default it returns balance for LNQ currency Currency *string `protobuf:"bytes,1,opt,name=currency,proto3,oneof" json:"currency,omitempty"` // contains filtered or unexported fields }
Requests information about current user balance
func (*GetBalanceRequest) Descriptor
deprecated
func (*GetBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceRequest.ProtoReflect.Descriptor instead.
func (*GetBalanceRequest) GetCurrency ¶
func (x *GetBalanceRequest) GetCurrency() string
func (*GetBalanceRequest) ProtoMessage ¶
func (*GetBalanceRequest) ProtoMessage()
func (*GetBalanceRequest) ProtoReflect ¶
func (x *GetBalanceRequest) ProtoReflect() protoreflect.Message
func (*GetBalanceRequest) Reset ¶
func (x *GetBalanceRequest) Reset()
func (*GetBalanceRequest) String ¶
func (x *GetBalanceRequest) String() string
type GetBalanceResponse ¶
type GetBalanceResponse struct { // number of internal account Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` // Internal currency 3-letters code // LNQ for wallet balance, for example Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"` // Current balance of the user in coins // It means, that real balance should be devided by 100 // before displaying to the user Balance uint32 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"` // contains filtered or unexported fields }
Returns detailed information about user balance on the requested account
func (*GetBalanceResponse) Descriptor
deprecated
func (*GetBalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBalanceResponse.ProtoReflect.Descriptor instead.
func (*GetBalanceResponse) GetBalance ¶
func (x *GetBalanceResponse) GetBalance() uint32
func (*GetBalanceResponse) GetCurrency ¶
func (x *GetBalanceResponse) GetCurrency() string
func (*GetBalanceResponse) GetNumber ¶
func (x *GetBalanceResponse) GetNumber() string
func (*GetBalanceResponse) ProtoMessage ¶
func (*GetBalanceResponse) ProtoMessage()
func (*GetBalanceResponse) ProtoReflect ¶
func (x *GetBalanceResponse) ProtoReflect() protoreflect.Message
func (*GetBalanceResponse) Reset ¶
func (x *GetBalanceResponse) Reset()
func (*GetBalanceResponse) String ¶
func (x *GetBalanceResponse) String() string
type MoneyRequest ¶
type MoneyRequest struct { // Unique key for idempotency // Deprecated: use reference field instead // // Deprecated: Marked as deprecated in linq/money/accounts/v1/accounts.proto. IdempotencyKey string `protobuf:"bytes,1,opt,name=idempotency_key,json=idempotencyKey,proto3" json:"idempotency_key,omitempty"` // Internal currency 3-letters code Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"` // Amount of money to take or give without a fee Amount uint32 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // Fee value if applicable Fee *uint32 `protobuf:"varint,4,opt,name=fee,proto3,oneof" json:"fee,omitempty"` // Some string data to describe money transaction // e.g. Entry fee for super tournament Reason *string `protobuf:"bytes,5,opt,name=reason,proto3,oneof" json:"reason,omitempty"` // Some JSON string for correlation data // e.g. {"tournament_id":123} Extra *string `protobuf:"bytes,6,opt,name=extra,proto3,oneof" json:"extra,omitempty"` // Reference data that will be placed into the order // In future versions will replace idempotency_key Reference *string `protobuf:"bytes,7,opt,name=reference,proto3,oneof" json:"reference,omitempty"` // contains filtered or unexported fields }
Amount of money to deposit/withdrawal
func (*MoneyRequest) Descriptor
deprecated
func (*MoneyRequest) Descriptor() ([]byte, []int)
Deprecated: Use MoneyRequest.ProtoReflect.Descriptor instead.
func (*MoneyRequest) GetAmount ¶
func (x *MoneyRequest) GetAmount() uint32
func (*MoneyRequest) GetCurrency ¶
func (x *MoneyRequest) GetCurrency() string
func (*MoneyRequest) GetExtra ¶
func (x *MoneyRequest) GetExtra() string
func (*MoneyRequest) GetFee ¶
func (x *MoneyRequest) GetFee() uint32
func (*MoneyRequest) GetIdempotencyKey
deprecated
func (x *MoneyRequest) GetIdempotencyKey() string
Deprecated: Marked as deprecated in linq/money/accounts/v1/accounts.proto.
func (*MoneyRequest) GetReason ¶
func (x *MoneyRequest) GetReason() string
func (*MoneyRequest) GetReference ¶
func (x *MoneyRequest) GetReference() string
func (*MoneyRequest) ProtoMessage ¶
func (*MoneyRequest) ProtoMessage()
func (*MoneyRequest) ProtoReflect ¶
func (x *MoneyRequest) ProtoReflect() protoreflect.Message
func (*MoneyRequest) Reset ¶
func (x *MoneyRequest) Reset()
func (*MoneyRequest) String ¶
func (x *MoneyRequest) String() string
type MoneyResponse ¶
type MoneyResponse struct { // Order identifier, uuid string Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Order status // Possible values: // - completed: order completed and its status may be used // as final for futher decisions Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // Amount in the order Amount uint32 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // see GetBalanceResponse Account *GetBalanceResponse `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"` // Reference data that was placed into the order during the creation Reference string `protobuf:"bytes,5,opt,name=reference,proto3" json:"reference,omitempty"` // contains filtered or unexported fields }
Returns order id and account data
func (*MoneyResponse) Descriptor
deprecated
func (*MoneyResponse) Descriptor() ([]byte, []int)
Deprecated: Use MoneyResponse.ProtoReflect.Descriptor instead.
func (*MoneyResponse) GetAccount ¶
func (x *MoneyResponse) GetAccount() *GetBalanceResponse
func (*MoneyResponse) GetAmount ¶
func (x *MoneyResponse) GetAmount() uint32
func (*MoneyResponse) GetId ¶
func (x *MoneyResponse) GetId() string
func (*MoneyResponse) GetReference ¶
func (x *MoneyResponse) GetReference() string
func (*MoneyResponse) GetStatus ¶
func (x *MoneyResponse) GetStatus() string
func (*MoneyResponse) ProtoMessage ¶
func (*MoneyResponse) ProtoMessage()
func (*MoneyResponse) ProtoReflect ¶
func (x *MoneyResponse) ProtoReflect() protoreflect.Message
func (*MoneyResponse) Reset ¶
func (x *MoneyResponse) Reset()
func (*MoneyResponse) String ¶
func (x *MoneyResponse) String() string