accountsv1

package
v1.33.0-20240417131334... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 (*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
	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"`
	// 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

func (x *MoneyRequest) GetIdempotencyKey() string

func (*MoneyRequest) GetReason

func (x *MoneyRequest) GetReason() 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"`
	// 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) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL