wallet

package
v0.0.0-...-49c8f32 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-auth. DO NOT EDIT! source: balance.proto

Package wallet is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by protoc-gen-auth. DO NOT EDIT! source: deposit.proto

Package wallet is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by protoc-gen-auth. DO NOT EDIT! source: exchange.proto

Code generated by protoc-gen-auth. DO NOT EDIT! source: include.proto

Code generated by protoc-gen-auth. DO NOT EDIT! source: inner_budget.proto

Code generated by protoc-gen-auth. DO NOT EDIT! source: inner_currency.proto

Package wallet is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by protoc-gen-auth. DO NOT EDIT! source: withdraw.proto

Index

Constants

This section is empty.

Variables

View Source
var AccountType_name = map[int32]string{
	0: "ACCOUNT_TYPE_UNSPECIFIED",
	1: "ACCOUNT_TYPE_NORMAL",
	2: "ACCOUNT_TYPE_SYSTEM",
}
View Source
var AccountType_value = map[string]int32{
	"ACCOUNT_TYPE_UNSPECIFIED": 0,
	"ACCOUNT_TYPE_NORMAL":      1,
	"ACCOUNT_TYPE_SYSTEM":      2,
}
View Source
var ActionType_name = map[int32]string{
	0: "ACTION_TYPE_UNSPECIFIED",
}
View Source
var ActionType_value = map[string]int32{
	"ACTION_TYPE_UNSPECIFIED": 0,
}
View Source
var ActiveStatus_name = map[int32]string{
	0: "ACTIVE_STATUS_UNSPECIFIED",
}
View Source
var ActiveStatus_value = map[string]int32{
	"ACTIVE_STATUS_UNSPECIFIED": 0,
}
View Source
var Channel_name = map[int32]string{
	0: "CHANNEL_UNSPECIFIED",
	1: "CHANNEL_WECHAT",
	2: "CHANNEL_ALIPAY",
	3: "CHANNEL_IN_APP_APPLE",
	4: "CHANNEL_IN_APP_GOOGLE",
}
View Source
var Channel_value = map[string]int32{
	"CHANNEL_UNSPECIFIED":   0,
	"CHANNEL_WECHAT":        1,
	"CHANNEL_ALIPAY":        2,
	"CHANNEL_IN_APP_APPLE":  3,
	"CHANNEL_IN_APP_GOOGLE": 4,
}
View Source
var JournalType_name = map[int32]string{
	0: "JOURNAL_TYPE_UNSPECIFIED",
}
View Source
var JournalType_value = map[string]int32{
	"JOURNAL_TYPE_UNSPECIFIED": 0,
}
View Source
var OrderStatus_name = map[int32]string{
	0: "ORDER_STATUS_UNSPECIFIED",
}
View Source
var OrderStatus_value = map[string]int32{
	"ORDER_STATUS_UNSPECIFIED": 0,
}
View Source
var SubjectType_name = map[int32]string{
	0: "SUBJECT_TYPE_UNSPECIFIED",
}
View Source
var SubjectType_value = map[string]int32{
	"SUBJECT_TYPE_UNSPECIFIED": 0,
}

Functions

func RegisterBalanceHandler

func RegisterBalanceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterBalanceHandler registers the http handlers for service Balance to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterBalanceHandlerClient

func RegisterBalanceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BalanceClient) error

RegisterBalanceHandlerClient registers the http handlers for service Balance to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BalanceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BalanceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BalanceClient" to call the correct interceptors.

func RegisterBalanceHandlerFromEndpoint

func RegisterBalanceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterBalanceHandlerFromEndpoint is same as RegisterBalanceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterBalanceHandlerServer

func RegisterBalanceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BalanceServer) error

RegisterBalanceHandlerServer registers the http handlers for service Balance to "mux". UnaryRPC :call BalanceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterBalanceScopeServer

func RegisterBalanceScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv BalanceServer) error

Register scoped server.

func RegisterBalanceServer

func RegisterBalanceServer(s *grpc.Server, srv BalanceServer)

func RegisterDepositHandler

func RegisterDepositHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterDepositHandler registers the http handlers for service Deposit to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterDepositHandlerClient

func RegisterDepositHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DepositClient) error

RegisterDepositHandlerClient registers the http handlers for service Deposit to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DepositClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DepositClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DepositClient" to call the correct interceptors.

func RegisterDepositHandlerFromEndpoint

func RegisterDepositHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterDepositHandlerFromEndpoint is same as RegisterDepositHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterDepositHandlerServer

func RegisterDepositHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DepositServer) error

RegisterDepositHandlerServer registers the http handlers for service Deposit to "mux". UnaryRPC :call DepositServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterDepositScopeServer

func RegisterDepositScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv DepositServer) error

Register scoped server.

func RegisterDepositServer

func RegisterDepositServer(s *grpc.Server, srv DepositServer)

func RegisterExchangeScopeServer

func RegisterExchangeScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv ExchangeServer) error

Register scoped server.

func RegisterExchangeServer

func RegisterExchangeServer(s *grpc.Server, srv ExchangeServer)

func RegisterInnerBudgetScopeServer

func RegisterInnerBudgetScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv InnerBudgetServer) error

Register scoped server.

func RegisterInnerBudgetServer

func RegisterInnerBudgetServer(s *grpc.Server, srv InnerBudgetServer)

func RegisterInnerCurrencyHandler

func RegisterInnerCurrencyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterInnerCurrencyHandler registers the http handlers for service InnerCurrency to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterInnerCurrencyHandlerClient

func RegisterInnerCurrencyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerCurrencyClient) error

RegisterInnerCurrencyHandlerClient registers the http handlers for service InnerCurrency to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InnerCurrencyClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InnerCurrencyClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InnerCurrencyClient" to call the correct interceptors.

func RegisterInnerCurrencyHandlerFromEndpoint

func RegisterInnerCurrencyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterInnerCurrencyHandlerFromEndpoint is same as RegisterInnerCurrencyHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterInnerCurrencyHandlerServer

func RegisterInnerCurrencyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerCurrencyServer) error

RegisterInnerCurrencyHandlerServer registers the http handlers for service InnerCurrency to "mux". UnaryRPC :call InnerCurrencyServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterInnerCurrencyScopeServer

func RegisterInnerCurrencyScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv InnerCurrencyServer) error

Register scoped server.

func RegisterInnerCurrencyServer

func RegisterInnerCurrencyServer(s *grpc.Server, srv InnerCurrencyServer)

func RegisterWithdrawScopeServer

func RegisterWithdrawScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv WithdrawServer) error

Register scoped server.

func RegisterWithdrawServer

func RegisterWithdrawServer(s *grpc.Server, srv WithdrawServer)

Types

type AccountBalance

type AccountBalance struct {
	Account              *uint64              `protobuf:"varint,1,req,name=account" json:"account,omitempty"`
	Currency             *uint64              `protobuf:"varint,2,req,name=currency" json:"currency,omitempty"`
	Balance              *uint64              `protobuf:"varint,3,req,name=balance" json:"balance,omitempty"`
	Frozen               *uint64              `protobuf:"varint,4,req,name=frozen" json:"frozen,omitempty"`
	Type                 *AccountType         `protobuf:"varint,5,req,name=type,enum=appootb.wallet.AccountType" json:"type,omitempty"`
	Status               *ActiveStatus        `protobuf:"varint,6,req,name=status,enum=appootb.wallet.ActiveStatus" json:"status,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,10,req,name=created_at,json=createdAt" json:"created_at,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,11,req,name=updated_at,json=updatedAt" json:"updated_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Account balance message type.

func (*AccountBalance) Descriptor

func (*AccountBalance) Descriptor() ([]byte, []int)

func (*AccountBalance) GetAccount

func (m *AccountBalance) GetAccount() uint64

func (*AccountBalance) GetBalance

func (m *AccountBalance) GetBalance() uint64

func (*AccountBalance) GetCreatedAt

func (m *AccountBalance) GetCreatedAt() *timestamp.Timestamp

func (*AccountBalance) GetCurrency

func (m *AccountBalance) GetCurrency() uint64

func (*AccountBalance) GetFrozen

func (m *AccountBalance) GetFrozen() uint64

func (*AccountBalance) GetStatus

func (m *AccountBalance) GetStatus() ActiveStatus

func (*AccountBalance) GetType

func (m *AccountBalance) GetType() AccountType

func (*AccountBalance) GetUpdatedAt

func (m *AccountBalance) GetUpdatedAt() *timestamp.Timestamp

func (*AccountBalance) ProtoMessage

func (*AccountBalance) ProtoMessage()

func (*AccountBalance) Reset

func (m *AccountBalance) Reset()

func (*AccountBalance) String

func (m *AccountBalance) String() string

func (*AccountBalance) Validate

func (m *AccountBalance) Validate() error

Validate checks the field values on AccountBalance with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*AccountBalance) XXX_DiscardUnknown

func (m *AccountBalance) XXX_DiscardUnknown()

func (*AccountBalance) XXX_Marshal

func (m *AccountBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccountBalance) XXX_Merge

func (m *AccountBalance) XXX_Merge(src proto.Message)

func (*AccountBalance) XXX_Size

func (m *AccountBalance) XXX_Size() int

func (*AccountBalance) XXX_Unmarshal

func (m *AccountBalance) XXX_Unmarshal(b []byte) error

type AccountBalanceValidationError

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

AccountBalanceValidationError is the validation error returned by AccountBalance.Validate if the designated constraints aren't met.

func (AccountBalanceValidationError) Cause

Cause function returns cause value.

func (AccountBalanceValidationError) Error

Error satisfies the builtin error interface

func (AccountBalanceValidationError) ErrorName

func (e AccountBalanceValidationError) ErrorName() string

ErrorName returns error name.

func (AccountBalanceValidationError) Field

Field function returns field value.

func (AccountBalanceValidationError) Key

Key function returns key value.

func (AccountBalanceValidationError) Reason

Reason function returns reason value.

type AccountType

type AccountType int32

Account type enums.

const (
	AccountType_ACCOUNT_TYPE_UNSPECIFIED AccountType = 0
	AccountType_ACCOUNT_TYPE_NORMAL      AccountType = 1
	AccountType_ACCOUNT_TYPE_SYSTEM      AccountType = 2
)

func (AccountType) Enum

func (x AccountType) Enum() *AccountType

func (AccountType) EnumDescriptor

func (AccountType) EnumDescriptor() ([]byte, []int)

func (AccountType) String

func (x AccountType) String() string

func (*AccountType) UnmarshalJSON

func (x *AccountType) UnmarshalJSON(data []byte) error

type ActionType

type ActionType int32

Action type enums.

const (
	ActionType_ACTION_TYPE_UNSPECIFIED ActionType = 0
)

func (ActionType) Enum

func (x ActionType) Enum() *ActionType

func (ActionType) EnumDescriptor

func (ActionType) EnumDescriptor() ([]byte, []int)

func (ActionType) String

func (x ActionType) String() string

func (*ActionType) UnmarshalJSON

func (x *ActionType) UnmarshalJSON(data []byte) error

type ActiveStatus

type ActiveStatus int32

Active status enums.

const (
	ActiveStatus_ACTIVE_STATUS_UNSPECIFIED ActiveStatus = 0
)

func (ActiveStatus) Enum

func (x ActiveStatus) Enum() *ActiveStatus

func (ActiveStatus) EnumDescriptor

func (ActiveStatus) EnumDescriptor() ([]byte, []int)

func (ActiveStatus) String

func (x ActiveStatus) String() string

func (*ActiveStatus) UnmarshalJSON

func (x *ActiveStatus) UnmarshalJSON(data []byte) error

type BalanceClient

type BalanceClient interface {
	// Get balance.
	Get(ctx context.Context, in *WalletId, opts ...grpc.CallOption) (*AccountBalance, error)
}

BalanceClient is the client API for Balance service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBalanceClient

func NewBalanceClient(cc *grpc.ClientConn) BalanceClient

type BalanceServer

type BalanceServer interface {
	// Get balance.
	Get(context.Context, *WalletId) (*AccountBalance, error)
}

BalanceServer is the server API for Balance service.

type Channel

type Channel int32

Channel enums.

const (
	Channel_CHANNEL_UNSPECIFIED   Channel = 0
	Channel_CHANNEL_WECHAT        Channel = 1
	Channel_CHANNEL_ALIPAY        Channel = 2
	Channel_CHANNEL_IN_APP_APPLE  Channel = 3
	Channel_CHANNEL_IN_APP_GOOGLE Channel = 4
)

func (Channel) Enum

func (x Channel) Enum() *Channel

func (Channel) EnumDescriptor

func (Channel) EnumDescriptor() ([]byte, []int)

func (Channel) String

func (x Channel) String() string

func (*Channel) UnmarshalJSON

func (x *Channel) UnmarshalJSON(data []byte) error

type ChargeOption

type ChargeOption struct {
	UniqueId             *uint64  `protobuf:"varint,1,req,name=unique_id,json=uniqueId" json:"unique_id,omitempty"`
	Name                 *string  `protobuf:"bytes,2,req,name=name" json:"name,omitempty"`
	Avatar               *string  `protobuf:"bytes,3,opt,name=avatar" json:"avatar,omitempty"`
	Description          *string  `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
	Currency             *uint64  `protobuf:"varint,5,req,name=currency" json:"currency,omitempty"`
	Amount               *uint64  `protobuf:"varint,6,req,name=amount" json:"amount,omitempty"`
	Price                *uint64  `protobuf:"varint,7,req,name=price" json:"price,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Charge option.

func (*ChargeOption) Descriptor

func (*ChargeOption) Descriptor() ([]byte, []int)

func (*ChargeOption) GetAmount

func (m *ChargeOption) GetAmount() uint64

func (*ChargeOption) GetAvatar

func (m *ChargeOption) GetAvatar() string

func (*ChargeOption) GetCurrency

func (m *ChargeOption) GetCurrency() uint64

func (*ChargeOption) GetDescription

func (m *ChargeOption) GetDescription() string

func (*ChargeOption) GetName

func (m *ChargeOption) GetName() string

func (*ChargeOption) GetPrice

func (m *ChargeOption) GetPrice() uint64

func (*ChargeOption) GetUniqueId

func (m *ChargeOption) GetUniqueId() uint64

func (*ChargeOption) ProtoMessage

func (*ChargeOption) ProtoMessage()

func (*ChargeOption) Reset

func (m *ChargeOption) Reset()

func (*ChargeOption) String

func (m *ChargeOption) String() string

func (*ChargeOption) Validate

func (m *ChargeOption) Validate() error

Validate checks the field values on ChargeOption with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ChargeOption) XXX_DiscardUnknown

func (m *ChargeOption) XXX_DiscardUnknown()

func (*ChargeOption) XXX_Marshal

func (m *ChargeOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChargeOption) XXX_Merge

func (m *ChargeOption) XXX_Merge(src proto.Message)

func (*ChargeOption) XXX_Size

func (m *ChargeOption) XXX_Size() int

func (*ChargeOption) XXX_Unmarshal

func (m *ChargeOption) XXX_Unmarshal(b []byte) error

type ChargeOptionValidationError

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

ChargeOptionValidationError is the validation error returned by ChargeOption.Validate if the designated constraints aren't met.

func (ChargeOptionValidationError) Cause

Cause function returns cause value.

func (ChargeOptionValidationError) Error

Error satisfies the builtin error interface

func (ChargeOptionValidationError) ErrorName

func (e ChargeOptionValidationError) ErrorName() string

ErrorName returns error name.

func (ChargeOptionValidationError) Field

Field function returns field value.

func (ChargeOptionValidationError) Key

Key function returns key value.

func (ChargeOptionValidationError) Reason

Reason function returns reason value.

type ChargeOptions

type ChargeOptions struct {
	Options              []*ChargeOption `protobuf:"bytes,1,rep,name=options" json:"options,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

Charge options.

func (*ChargeOptions) Descriptor

func (*ChargeOptions) Descriptor() ([]byte, []int)

func (*ChargeOptions) GetOptions

func (m *ChargeOptions) GetOptions() []*ChargeOption

func (*ChargeOptions) ProtoMessage

func (*ChargeOptions) ProtoMessage()

func (*ChargeOptions) Reset

func (m *ChargeOptions) Reset()

func (*ChargeOptions) String

func (m *ChargeOptions) String() string

func (*ChargeOptions) Validate

func (m *ChargeOptions) Validate() error

Validate checks the field values on ChargeOptions with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ChargeOptions) XXX_DiscardUnknown

func (m *ChargeOptions) XXX_DiscardUnknown()

func (*ChargeOptions) XXX_Marshal

func (m *ChargeOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChargeOptions) XXX_Merge

func (m *ChargeOptions) XXX_Merge(src proto.Message)

func (*ChargeOptions) XXX_Size

func (m *ChargeOptions) XXX_Size() int

func (*ChargeOptions) XXX_Unmarshal

func (m *ChargeOptions) XXX_Unmarshal(b []byte) error

type ChargeOptionsValidationError

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

ChargeOptionsValidationError is the validation error returned by ChargeOptions.Validate if the designated constraints aren't met.

func (ChargeOptionsValidationError) Cause

Cause function returns cause value.

func (ChargeOptionsValidationError) Error

Error satisfies the builtin error interface

func (ChargeOptionsValidationError) ErrorName

func (e ChargeOptionsValidationError) ErrorName() string

ErrorName returns error name.

func (ChargeOptionsValidationError) Field

Field function returns field value.

func (ChargeOptionsValidationError) Key

Key function returns key value.

func (ChargeOptionsValidationError) Reason

Reason function returns reason value.

type ChargeOrder

type ChargeOrder struct {
	OrderId              *uint64              `protobuf:"varint,1,opt,name=order_id,json=orderId" json:"order_id,omitempty"`
	RequestSn            *string              `protobuf:"bytes,2,req,name=request_sn,json=requestSn" json:"request_sn,omitempty"`
	Account              *uint64              `protobuf:"varint,3,req,name=account" json:"account,omitempty"`
	Channel              *uint64              `protobuf:"varint,4,req,name=channel" json:"channel,omitempty"`
	Currency             *uint64              `protobuf:"varint,5,req,name=currency" json:"currency,omitempty"`
	Product              *string              `protobuf:"bytes,6,req,name=product" json:"product,omitempty"`
	OptionId             *uint64              `protobuf:"varint,7,opt,name=option_id,json=optionId" json:"option_id,omitempty"`
	OptionCount          *uint32              `protobuf:"varint,8,opt,name=option_count,json=optionCount" json:"option_count,omitempty"`
	Price                *uint64              `protobuf:"varint,9,opt,name=price" json:"price,omitempty"`
	PayOrderId           *string              `protobuf:"bytes,10,opt,name=pay_order_id,json=payOrderId" json:"pay_order_id,omitempty"`
	ChannelResponse      *string              `protobuf:"bytes,11,opt,name=channel_response,json=channelResponse" json:"channel_response,omitempty"`
	MerchantOrderId      *string              `protobuf:"bytes,12,opt,name=merchant_order_id,json=merchantOrderId" json:"merchant_order_id,omitempty"`
	Status               *OrderStatus         `protobuf:"varint,13,opt,name=status,enum=appootb.wallet.OrderStatus" json:"status,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,14,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
	SuccessAt            *timestamp.Timestamp `protobuf:"bytes,15,opt,name=success_at,json=successAt" json:"success_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Charge order.

func (*ChargeOrder) Descriptor

func (*ChargeOrder) Descriptor() ([]byte, []int)

func (*ChargeOrder) GetAccount

func (m *ChargeOrder) GetAccount() uint64

func (*ChargeOrder) GetChannel

func (m *ChargeOrder) GetChannel() uint64

func (*ChargeOrder) GetChannelResponse

func (m *ChargeOrder) GetChannelResponse() string

func (*ChargeOrder) GetCreatedAt

func (m *ChargeOrder) GetCreatedAt() *timestamp.Timestamp

func (*ChargeOrder) GetCurrency

func (m *ChargeOrder) GetCurrency() uint64

func (*ChargeOrder) GetMerchantOrderId

func (m *ChargeOrder) GetMerchantOrderId() string

func (*ChargeOrder) GetOptionCount

func (m *ChargeOrder) GetOptionCount() uint32

func (*ChargeOrder) GetOptionId

func (m *ChargeOrder) GetOptionId() uint64

func (*ChargeOrder) GetOrderId

func (m *ChargeOrder) GetOrderId() uint64

func (*ChargeOrder) GetPayOrderId

func (m *ChargeOrder) GetPayOrderId() string

func (*ChargeOrder) GetPrice

func (m *ChargeOrder) GetPrice() uint64

func (*ChargeOrder) GetProduct

func (m *ChargeOrder) GetProduct() string

func (*ChargeOrder) GetRequestSn

func (m *ChargeOrder) GetRequestSn() string

func (*ChargeOrder) GetStatus

func (m *ChargeOrder) GetStatus() OrderStatus

func (*ChargeOrder) GetSuccessAt

func (m *ChargeOrder) GetSuccessAt() *timestamp.Timestamp

func (*ChargeOrder) ProtoMessage

func (*ChargeOrder) ProtoMessage()

func (*ChargeOrder) Reset

func (m *ChargeOrder) Reset()

func (*ChargeOrder) String

func (m *ChargeOrder) String() string

func (*ChargeOrder) Validate

func (m *ChargeOrder) Validate() error

Validate checks the field values on ChargeOrder with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ChargeOrder) XXX_DiscardUnknown

func (m *ChargeOrder) XXX_DiscardUnknown()

func (*ChargeOrder) XXX_Marshal

func (m *ChargeOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChargeOrder) XXX_Merge

func (m *ChargeOrder) XXX_Merge(src proto.Message)

func (*ChargeOrder) XXX_Size

func (m *ChargeOrder) XXX_Size() int

func (*ChargeOrder) XXX_Unmarshal

func (m *ChargeOrder) XXX_Unmarshal(b []byte) error

type ChargeOrderValidationError

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

ChargeOrderValidationError is the validation error returned by ChargeOrder.Validate if the designated constraints aren't met.

func (ChargeOrderValidationError) Cause

Cause function returns cause value.

func (ChargeOrderValidationError) Error

Error satisfies the builtin error interface

func (ChargeOrderValidationError) ErrorName

func (e ChargeOrderValidationError) ErrorName() string

ErrorName returns error name.

func (ChargeOrderValidationError) Field

Field function returns field value.

func (ChargeOrderValidationError) Key

Key function returns key value.

func (ChargeOrderValidationError) Reason

Reason function returns reason value.

type Currencies

type Currencies struct {
	List                 []*Currency `protobuf:"bytes,1,rep,name=list" json:"list,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Virtual currencies.

func (*Currencies) Descriptor

func (*Currencies) Descriptor() ([]byte, []int)

func (*Currencies) GetList

func (m *Currencies) GetList() []*Currency

func (*Currencies) ProtoMessage

func (*Currencies) ProtoMessage()

func (*Currencies) Reset

func (m *Currencies) Reset()

func (*Currencies) String

func (m *Currencies) String() string

func (*Currencies) Validate

func (m *Currencies) Validate() error

Validate checks the field values on Currencies with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Currencies) XXX_DiscardUnknown

func (m *Currencies) XXX_DiscardUnknown()

func (*Currencies) XXX_Marshal

func (m *Currencies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Currencies) XXX_Merge

func (m *Currencies) XXX_Merge(src proto.Message)

func (*Currencies) XXX_Size

func (m *Currencies) XXX_Size() int

func (*Currencies) XXX_Unmarshal

func (m *Currencies) XXX_Unmarshal(b []byte) error

type CurrenciesValidationError

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

CurrenciesValidationError is the validation error returned by Currencies.Validate if the designated constraints aren't met.

func (CurrenciesValidationError) Cause

func (e CurrenciesValidationError) Cause() error

Cause function returns cause value.

func (CurrenciesValidationError) Error

Error satisfies the builtin error interface

func (CurrenciesValidationError) ErrorName

func (e CurrenciesValidationError) ErrorName() string

ErrorName returns error name.

func (CurrenciesValidationError) Field

Field function returns field value.

func (CurrenciesValidationError) Key

Key function returns key value.

func (CurrenciesValidationError) Reason

func (e CurrenciesValidationError) Reason() string

Reason function returns reason value.

type Currency

type Currency struct {
	UniqueId             *uint64       `protobuf:"varint,1,req,name=unique_id,json=uniqueId" json:"unique_id,omitempty"`
	Name                 *string       `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Description          *string       `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
	Metric               *string       `protobuf:"bytes,4,opt,name=metric" json:"metric,omitempty"`
	ExchangeRate         *float32      `protobuf:"fixed32,5,opt,name=exchange_rate,json=exchangeRate" json:"exchange_rate,omitempty"`
	Status               *ActiveStatus `protobuf:"varint,6,opt,name=status,enum=appootb.wallet.ActiveStatus" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Virtual currency.

func (*Currency) Descriptor

func (*Currency) Descriptor() ([]byte, []int)

func (*Currency) GetDescription

func (m *Currency) GetDescription() string

func (*Currency) GetExchangeRate

func (m *Currency) GetExchangeRate() float32

func (*Currency) GetMetric

func (m *Currency) GetMetric() string

func (*Currency) GetName

func (m *Currency) GetName() string

func (*Currency) GetStatus

func (m *Currency) GetStatus() ActiveStatus

func (*Currency) GetUniqueId

func (m *Currency) GetUniqueId() uint64

func (*Currency) ProtoMessage

func (*Currency) ProtoMessage()

func (*Currency) Reset

func (m *Currency) Reset()

func (*Currency) String

func (m *Currency) String() string

func (*Currency) Validate

func (m *Currency) Validate() error

Validate checks the field values on Currency with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Currency) XXX_DiscardUnknown

func (m *Currency) XXX_DiscardUnknown()

func (*Currency) XXX_Marshal

func (m *Currency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Currency) XXX_Merge

func (m *Currency) XXX_Merge(src proto.Message)

func (*Currency) XXX_Size

func (m *Currency) XXX_Size() int

func (*Currency) XXX_Unmarshal

func (m *Currency) XXX_Unmarshal(b []byte) error

type CurrencyChargeConfig

type CurrencyChargeConfig struct {
	Operate              *CurrencyOperateConfig `protobuf:"bytes,1,req,name=operate" json:"operate,omitempty"`
	RefundStatus         *ActiveStatus          `protobuf:"varint,2,req,name=refund_status,json=refundStatus,enum=appootb.wallet.ActiveStatus" json:"refund_status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

Virtual

func (*CurrencyChargeConfig) Descriptor

func (*CurrencyChargeConfig) Descriptor() ([]byte, []int)

func (*CurrencyChargeConfig) GetOperate

func (*CurrencyChargeConfig) GetRefundStatus

func (m *CurrencyChargeConfig) GetRefundStatus() ActiveStatus

func (*CurrencyChargeConfig) ProtoMessage

func (*CurrencyChargeConfig) ProtoMessage()

func (*CurrencyChargeConfig) Reset

func (m *CurrencyChargeConfig) Reset()

func (*CurrencyChargeConfig) String

func (m *CurrencyChargeConfig) String() string

func (*CurrencyChargeConfig) Validate

func (m *CurrencyChargeConfig) Validate() error

Validate checks the field values on CurrencyChargeConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*CurrencyChargeConfig) XXX_DiscardUnknown

func (m *CurrencyChargeConfig) XXX_DiscardUnknown()

func (*CurrencyChargeConfig) XXX_Marshal

func (m *CurrencyChargeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CurrencyChargeConfig) XXX_Merge

func (m *CurrencyChargeConfig) XXX_Merge(src proto.Message)

func (*CurrencyChargeConfig) XXX_Size

func (m *CurrencyChargeConfig) XXX_Size() int

func (*CurrencyChargeConfig) XXX_Unmarshal

func (m *CurrencyChargeConfig) XXX_Unmarshal(b []byte) error

type CurrencyChargeConfigValidationError

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

CurrencyChargeConfigValidationError is the validation error returned by CurrencyChargeConfig.Validate if the designated constraints aren't met.

func (CurrencyChargeConfigValidationError) Cause

Cause function returns cause value.

func (CurrencyChargeConfigValidationError) Error

Error satisfies the builtin error interface

func (CurrencyChargeConfigValidationError) ErrorName

ErrorName returns error name.

func (CurrencyChargeConfigValidationError) Field

Field function returns field value.

func (CurrencyChargeConfigValidationError) Key

Key function returns key value.

func (CurrencyChargeConfigValidationError) Reason

Reason function returns reason value.

type CurrencyConfig

type CurrencyConfig struct {
	SourceCurrency       *uint64                            `protobuf:"varint,1,req,name=source_currency,json=sourceCurrency" json:"source_currency,omitempty"`
	Consume              map[uint64]*CurrencyOperateConfig  `` /* 135-byte string literal not displayed */
	Charge               map[uint64]*CurrencyChargeConfig   `` /* 133-byte string literal not displayed */
	Withdraw             map[uint64]*CurrencyWithdrawConfig `` /* 137-byte string literal not displayed */
	Exchange             map[uint64]*CurrencyExchangeConfig `` /* 137-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

Virtual currency config.

func (*CurrencyConfig) Descriptor

func (*CurrencyConfig) Descriptor() ([]byte, []int)

func (*CurrencyConfig) GetCharge

func (m *CurrencyConfig) GetCharge() map[uint64]*CurrencyChargeConfig

func (*CurrencyConfig) GetConsume

func (m *CurrencyConfig) GetConsume() map[uint64]*CurrencyOperateConfig

func (*CurrencyConfig) GetExchange

func (m *CurrencyConfig) GetExchange() map[uint64]*CurrencyExchangeConfig

func (*CurrencyConfig) GetSourceCurrency

func (m *CurrencyConfig) GetSourceCurrency() uint64

func (*CurrencyConfig) GetWithdraw

func (m *CurrencyConfig) GetWithdraw() map[uint64]*CurrencyWithdrawConfig

func (*CurrencyConfig) ProtoMessage

func (*CurrencyConfig) ProtoMessage()

func (*CurrencyConfig) Reset

func (m *CurrencyConfig) Reset()

func (*CurrencyConfig) String

func (m *CurrencyConfig) String() string

func (*CurrencyConfig) Validate

func (m *CurrencyConfig) Validate() error

Validate checks the field values on CurrencyConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*CurrencyConfig) XXX_DiscardUnknown

func (m *CurrencyConfig) XXX_DiscardUnknown()

func (*CurrencyConfig) XXX_Marshal

func (m *CurrencyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CurrencyConfig) XXX_Merge

func (m *CurrencyConfig) XXX_Merge(src proto.Message)

func (*CurrencyConfig) XXX_Size

func (m *CurrencyConfig) XXX_Size() int

func (*CurrencyConfig) XXX_Unmarshal

func (m *CurrencyConfig) XXX_Unmarshal(b []byte) error

type CurrencyConfigValidationError

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

CurrencyConfigValidationError is the validation error returned by CurrencyConfig.Validate if the designated constraints aren't met.

func (CurrencyConfigValidationError) Cause

Cause function returns cause value.

func (CurrencyConfigValidationError) Error

Error satisfies the builtin error interface

func (CurrencyConfigValidationError) ErrorName

func (e CurrencyConfigValidationError) ErrorName() string

ErrorName returns error name.

func (CurrencyConfigValidationError) Field

Field function returns field value.

func (CurrencyConfigValidationError) Key

Key function returns key value.

func (CurrencyConfigValidationError) Reason

Reason function returns reason value.

type CurrencyExchangeConfig

type CurrencyExchangeConfig struct {
	TargetCurrency       *uint64       `protobuf:"varint,1,req,name=target_currency,json=targetCurrency" json:"target_currency,omitempty"`
	DiscountRate         *uint64       `protobuf:"varint,2,req,name=discount_rate,json=discountRate" json:"discount_rate,omitempty"`
	ExchangeRate         *uint64       `protobuf:"varint,3,req,name=exchange_rate,json=exchangeRate" json:"exchange_rate,omitempty"`
	SystemBudgetId       *string       `protobuf:"bytes,4,req,name=system_budget_id,json=systemBudgetId" json:"system_budget_id,omitempty"`
	DiscountAction       *ActionType   `` /* 128-byte string literal not displayed */
	Status               *ActiveStatus `protobuf:"varint,6,req,name=status,enum=appootb.wallet.ActiveStatus" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Virtual currency exchange config.

func (*CurrencyExchangeConfig) Descriptor

func (*CurrencyExchangeConfig) Descriptor() ([]byte, []int)

func (*CurrencyExchangeConfig) GetDiscountAction

func (m *CurrencyExchangeConfig) GetDiscountAction() ActionType

func (*CurrencyExchangeConfig) GetDiscountRate

func (m *CurrencyExchangeConfig) GetDiscountRate() uint64

func (*CurrencyExchangeConfig) GetExchangeRate

func (m *CurrencyExchangeConfig) GetExchangeRate() uint64

func (*CurrencyExchangeConfig) GetStatus

func (m *CurrencyExchangeConfig) GetStatus() ActiveStatus

func (*CurrencyExchangeConfig) GetSystemBudgetId

func (m *CurrencyExchangeConfig) GetSystemBudgetId() string

func (*CurrencyExchangeConfig) GetTargetCurrency

func (m *CurrencyExchangeConfig) GetTargetCurrency() uint64

func (*CurrencyExchangeConfig) ProtoMessage

func (*CurrencyExchangeConfig) ProtoMessage()

func (*CurrencyExchangeConfig) Reset

func (m *CurrencyExchangeConfig) Reset()

func (*CurrencyExchangeConfig) String

func (m *CurrencyExchangeConfig) String() string

func (*CurrencyExchangeConfig) Validate

func (m *CurrencyExchangeConfig) Validate() error

Validate checks the field values on CurrencyExchangeConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*CurrencyExchangeConfig) XXX_DiscardUnknown

func (m *CurrencyExchangeConfig) XXX_DiscardUnknown()

func (*CurrencyExchangeConfig) XXX_Marshal

func (m *CurrencyExchangeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CurrencyExchangeConfig) XXX_Merge

func (m *CurrencyExchangeConfig) XXX_Merge(src proto.Message)

func (*CurrencyExchangeConfig) XXX_Size

func (m *CurrencyExchangeConfig) XXX_Size() int

func (*CurrencyExchangeConfig) XXX_Unmarshal

func (m *CurrencyExchangeConfig) XXX_Unmarshal(b []byte) error

type CurrencyExchangeConfigValidationError

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

CurrencyExchangeConfigValidationError is the validation error returned by CurrencyExchangeConfig.Validate if the designated constraints aren't met.

func (CurrencyExchangeConfigValidationError) Cause

Cause function returns cause value.

func (CurrencyExchangeConfigValidationError) Error

Error satisfies the builtin error interface

func (CurrencyExchangeConfigValidationError) ErrorName

ErrorName returns error name.

func (CurrencyExchangeConfigValidationError) Field

Field function returns field value.

func (CurrencyExchangeConfigValidationError) Key

Key function returns key value.

func (CurrencyExchangeConfigValidationError) Reason

Reason function returns reason value.

type CurrencyOperateConfig

type CurrencyOperateConfig struct {
	TargetCurrency       *uint64       `protobuf:"varint,1,req,name=target_currency,json=targetCurrency" json:"target_currency,omitempty"`
	Description          *string       `protobuf:"bytes,2,req,name=description" json:"description,omitempty"`
	SourceBudgetId       *uint64       `protobuf:"varint,3,req,name=source_budget_id,json=sourceBudgetId" json:"source_budget_id,omitempty"`
	TargetBudgetId       *uint64       `protobuf:"varint,4,req,name=target_budget_id,json=targetBudgetId" json:"target_budget_id,omitempty"`
	SourceSubject        *SubjectType  `` /* 126-byte string literal not displayed */
	TargetSubject        *SubjectType  `` /* 126-byte string literal not displayed */
	SourceAction         *ActionType   `protobuf:"varint,7,req,name=source_action,json=sourceAction,enum=appootb.wallet.ActionType" json:"source_action,omitempty"`
	TargetAction         *ActionType   `protobuf:"varint,8,req,name=target_action,json=targetAction,enum=appootb.wallet.ActionType" json:"target_action,omitempty"`
	SourceJournal        *JournalType  `` /* 126-byte string literal not displayed */
	TargetJournal        *JournalType  `` /* 127-byte string literal not displayed */
	Status               *ActiveStatus `protobuf:"varint,11,req,name=status,enum=appootb.wallet.ActiveStatus" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Virtual currency operation config.

func (*CurrencyOperateConfig) Descriptor

func (*CurrencyOperateConfig) Descriptor() ([]byte, []int)

func (*CurrencyOperateConfig) GetDescription

func (m *CurrencyOperateConfig) GetDescription() string

func (*CurrencyOperateConfig) GetSourceAction

func (m *CurrencyOperateConfig) GetSourceAction() ActionType

func (*CurrencyOperateConfig) GetSourceBudgetId

func (m *CurrencyOperateConfig) GetSourceBudgetId() uint64

func (*CurrencyOperateConfig) GetSourceJournal

func (m *CurrencyOperateConfig) GetSourceJournal() JournalType

func (*CurrencyOperateConfig) GetSourceSubject

func (m *CurrencyOperateConfig) GetSourceSubject() SubjectType

func (*CurrencyOperateConfig) GetStatus

func (m *CurrencyOperateConfig) GetStatus() ActiveStatus

func (*CurrencyOperateConfig) GetTargetAction

func (m *CurrencyOperateConfig) GetTargetAction() ActionType

func (*CurrencyOperateConfig) GetTargetBudgetId

func (m *CurrencyOperateConfig) GetTargetBudgetId() uint64

func (*CurrencyOperateConfig) GetTargetCurrency

func (m *CurrencyOperateConfig) GetTargetCurrency() uint64

func (*CurrencyOperateConfig) GetTargetJournal

func (m *CurrencyOperateConfig) GetTargetJournal() JournalType

func (*CurrencyOperateConfig) GetTargetSubject

func (m *CurrencyOperateConfig) GetTargetSubject() SubjectType

func (*CurrencyOperateConfig) ProtoMessage

func (*CurrencyOperateConfig) ProtoMessage()

func (*CurrencyOperateConfig) Reset

func (m *CurrencyOperateConfig) Reset()

func (*CurrencyOperateConfig) String

func (m *CurrencyOperateConfig) String() string

func (*CurrencyOperateConfig) Validate

func (m *CurrencyOperateConfig) Validate() error

Validate checks the field values on CurrencyOperateConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*CurrencyOperateConfig) XXX_DiscardUnknown

func (m *CurrencyOperateConfig) XXX_DiscardUnknown()

func (*CurrencyOperateConfig) XXX_Marshal

func (m *CurrencyOperateConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CurrencyOperateConfig) XXX_Merge

func (m *CurrencyOperateConfig) XXX_Merge(src proto.Message)

func (*CurrencyOperateConfig) XXX_Size

func (m *CurrencyOperateConfig) XXX_Size() int

func (*CurrencyOperateConfig) XXX_Unmarshal

func (m *CurrencyOperateConfig) XXX_Unmarshal(b []byte) error

type CurrencyOperateConfigValidationError

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

CurrencyOperateConfigValidationError is the validation error returned by CurrencyOperateConfig.Validate if the designated constraints aren't met.

func (CurrencyOperateConfigValidationError) Cause

Cause function returns cause value.

func (CurrencyOperateConfigValidationError) Error

Error satisfies the builtin error interface

func (CurrencyOperateConfigValidationError) ErrorName

ErrorName returns error name.

func (CurrencyOperateConfigValidationError) Field

Field function returns field value.

func (CurrencyOperateConfigValidationError) Key

Key function returns key value.

func (CurrencyOperateConfigValidationError) Reason

Reason function returns reason value.

type CurrencyValidationError

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

CurrencyValidationError is the validation error returned by Currency.Validate if the designated constraints aren't met.

func (CurrencyValidationError) Cause

func (e CurrencyValidationError) Cause() error

Cause function returns cause value.

func (CurrencyValidationError) Error

func (e CurrencyValidationError) Error() string

Error satisfies the builtin error interface

func (CurrencyValidationError) ErrorName

func (e CurrencyValidationError) ErrorName() string

ErrorName returns error name.

func (CurrencyValidationError) Field

func (e CurrencyValidationError) Field() string

Field function returns field value.

func (CurrencyValidationError) Key

func (e CurrencyValidationError) Key() bool

Key function returns key value.

func (CurrencyValidationError) Reason

func (e CurrencyValidationError) Reason() string

Reason function returns reason value.

type CurrencyWithdrawConfig

type CurrencyWithdrawConfig struct {
	TargetCurrency       *string           `protobuf:"bytes,1,req,name=target_currency,json=targetCurrency" json:"target_currency,omitempty"`
	PayerName            *string           `protobuf:"bytes,2,req,name=payer_name,json=payerName" json:"payer_name,omitempty"`
	PayerMessage         *string           `protobuf:"bytes,3,req,name=payer_message,json=payerMessage" json:"payer_message,omitempty"`
	TaxRate              *uint64           `protobuf:"varint,4,req,name=tax_rate,json=taxRate" json:"tax_rate,omitempty"`
	FeeRate              *uint64           `protobuf:"varint,5,req,name=fee_rate,json=feeRate" json:"fee_rate,omitempty"`
	TaxBudgetId          *string           `protobuf:"bytes,6,req,name=tax_budget_id,json=taxBudgetId" json:"tax_budget_id,omitempty"`
	FeeBudgetId          *string           `protobuf:"bytes,7,req,name=fee_budget_id,json=feeBudgetId" json:"fee_budget_id,omitempty"`
	FeeAction            *ActionType       `protobuf:"varint,8,req,name=fee_action,json=feeAction,enum=appootb.wallet.ActionType" json:"fee_action,omitempty"`
	TaxAction            *ActionType       `protobuf:"varint,9,req,name=tax_action,json=taxAction,enum=appootb.wallet.ActionType" json:"tax_action,omitempty"`
	Status               *ActiveStatus     `protobuf:"varint,10,req,name=status,enum=appootb.wallet.ActiveStatus" json:"status,omitempty"`
	Channels             map[string]string `` /* 137-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*CurrencyWithdrawConfig) Descriptor

func (*CurrencyWithdrawConfig) Descriptor() ([]byte, []int)

func (*CurrencyWithdrawConfig) GetChannels

func (m *CurrencyWithdrawConfig) GetChannels() map[string]string

func (*CurrencyWithdrawConfig) GetFeeAction

func (m *CurrencyWithdrawConfig) GetFeeAction() ActionType

func (*CurrencyWithdrawConfig) GetFeeBudgetId

func (m *CurrencyWithdrawConfig) GetFeeBudgetId() string

func (*CurrencyWithdrawConfig) GetFeeRate

func (m *CurrencyWithdrawConfig) GetFeeRate() uint64

func (*CurrencyWithdrawConfig) GetPayerMessage

func (m *CurrencyWithdrawConfig) GetPayerMessage() string

func (*CurrencyWithdrawConfig) GetPayerName

func (m *CurrencyWithdrawConfig) GetPayerName() string

func (*CurrencyWithdrawConfig) GetStatus

func (m *CurrencyWithdrawConfig) GetStatus() ActiveStatus

func (*CurrencyWithdrawConfig) GetTargetCurrency

func (m *CurrencyWithdrawConfig) GetTargetCurrency() string

func (*CurrencyWithdrawConfig) GetTaxAction

func (m *CurrencyWithdrawConfig) GetTaxAction() ActionType

func (*CurrencyWithdrawConfig) GetTaxBudgetId

func (m *CurrencyWithdrawConfig) GetTaxBudgetId() string

func (*CurrencyWithdrawConfig) GetTaxRate

func (m *CurrencyWithdrawConfig) GetTaxRate() uint64

func (*CurrencyWithdrawConfig) ProtoMessage

func (*CurrencyWithdrawConfig) ProtoMessage()

func (*CurrencyWithdrawConfig) Reset

func (m *CurrencyWithdrawConfig) Reset()

func (*CurrencyWithdrawConfig) String

func (m *CurrencyWithdrawConfig) String() string

func (*CurrencyWithdrawConfig) Validate

func (m *CurrencyWithdrawConfig) Validate() error

Validate checks the field values on CurrencyWithdrawConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*CurrencyWithdrawConfig) XXX_DiscardUnknown

func (m *CurrencyWithdrawConfig) XXX_DiscardUnknown()

func (*CurrencyWithdrawConfig) XXX_Marshal

func (m *CurrencyWithdrawConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CurrencyWithdrawConfig) XXX_Merge

func (m *CurrencyWithdrawConfig) XXX_Merge(src proto.Message)

func (*CurrencyWithdrawConfig) XXX_Size

func (m *CurrencyWithdrawConfig) XXX_Size() int

func (*CurrencyWithdrawConfig) XXX_Unmarshal

func (m *CurrencyWithdrawConfig) XXX_Unmarshal(b []byte) error

type CurrencyWithdrawConfigValidationError

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

CurrencyWithdrawConfigValidationError is the validation error returned by CurrencyWithdrawConfig.Validate if the designated constraints aren't met.

func (CurrencyWithdrawConfigValidationError) Cause

Cause function returns cause value.

func (CurrencyWithdrawConfigValidationError) Error

Error satisfies the builtin error interface

func (CurrencyWithdrawConfigValidationError) ErrorName

ErrorName returns error name.

func (CurrencyWithdrawConfigValidationError) Field

Field function returns field value.

func (CurrencyWithdrawConfigValidationError) Key

Key function returns key value.

func (CurrencyWithdrawConfigValidationError) Reason

Reason function returns reason value.

type DepositClient

type DepositClient interface {
	// Get charge options.
	GetOptions(ctx context.Context, in *ChargeOption, opts ...grpc.CallOption) (*ChargeOptions, error)
	// Charge request.
	Charge(ctx context.Context, in *ChargeOrder, opts ...grpc.CallOption) (*ChargeOrder, error)
	// Confirm charge order.
	Confirm(ctx context.Context, in *ChargeOrder, opts ...grpc.CallOption) (*ChargeOrder, error)
}

DepositClient is the client API for Deposit service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDepositClient

func NewDepositClient(cc *grpc.ClientConn) DepositClient

type DepositServer

type DepositServer interface {
	// Get charge options.
	GetOptions(context.Context, *ChargeOption) (*ChargeOptions, error)
	// Charge request.
	Charge(context.Context, *ChargeOrder) (*ChargeOrder, error)
	// Confirm charge order.
	Confirm(context.Context, *ChargeOrder) (*ChargeOrder, error)
}

DepositServer is the server API for Deposit service.

type ExchangeClient

type ExchangeClient interface {
}

ExchangeClient is the client API for Exchange service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewExchangeClient

func NewExchangeClient(cc *grpc.ClientConn) ExchangeClient

type ExchangeServer

type ExchangeServer interface {
}

ExchangeServer is the server API for Exchange service.

type InnerBudgetClient

type InnerBudgetClient interface {
}

InnerBudgetClient is the client API for InnerBudget service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewInnerBudgetClient

func NewInnerBudgetClient(cc *grpc.ClientConn) InnerBudgetClient

type InnerBudgetServer

type InnerBudgetServer interface {
}

InnerBudgetServer is the server API for InnerBudget service.

type InnerCurrencyClient

type InnerCurrencyClient interface {
	// Get virtual currency of specified ID.
	Get(ctx context.Context, in *common.UniqueId, opts ...grpc.CallOption) (*Currency, error)
	// Get all virtual currencies.
	GetAll(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Currencies, error)
	// Add new virtual currency.
	Add(ctx context.Context, in *Currency, opts ...grpc.CallOption) (*Currency, error)
	// Update virtual currency.
	Update(ctx context.Context, in *Currency, opts ...grpc.CallOption) (*Currency, error)
	// Get specified virtual currency config.
	GetConfig(ctx context.Context, in *common.UniqueId, opts ...grpc.CallOption) (*CurrencyConfig, error)
	// Add virtual currency config.
	AddConfig(ctx context.Context, in *CurrencyConfig, opts ...grpc.CallOption) (*CurrencyConfig, error)
	// Update specified virtual currency config.
	UpdateConfig(ctx context.Context, in *CurrencyConfig, opts ...grpc.CallOption) (*CurrencyConfig, error)
}

InnerCurrencyClient is the client API for InnerCurrency service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewInnerCurrencyClient

func NewInnerCurrencyClient(cc *grpc.ClientConn) InnerCurrencyClient

type InnerCurrencyServer

type InnerCurrencyServer interface {
	// Get virtual currency of specified ID.
	Get(context.Context, *common.UniqueId) (*Currency, error)
	// Get all virtual currencies.
	GetAll(context.Context, *empty.Empty) (*Currencies, error)
	// Add new virtual currency.
	Add(context.Context, *Currency) (*Currency, error)
	// Update virtual currency.
	Update(context.Context, *Currency) (*Currency, error)
	// Get specified virtual currency config.
	GetConfig(context.Context, *common.UniqueId) (*CurrencyConfig, error)
	// Add virtual currency config.
	AddConfig(context.Context, *CurrencyConfig) (*CurrencyConfig, error)
	// Update specified virtual currency config.
	UpdateConfig(context.Context, *CurrencyConfig) (*CurrencyConfig, error)
}

InnerCurrencyServer is the server API for InnerCurrency service.

type JournalType

type JournalType int32

Journal type enums.

const (
	JournalType_JOURNAL_TYPE_UNSPECIFIED JournalType = 0
)

func (JournalType) Enum

func (x JournalType) Enum() *JournalType

func (JournalType) EnumDescriptor

func (JournalType) EnumDescriptor() ([]byte, []int)

func (JournalType) String

func (x JournalType) String() string

func (*JournalType) UnmarshalJSON

func (x *JournalType) UnmarshalJSON(data []byte) error

type OrderStatus

type OrderStatus int32

Order status enums.

const (
	OrderStatus_ORDER_STATUS_UNSPECIFIED OrderStatus = 0
)

func (OrderStatus) Enum

func (x OrderStatus) Enum() *OrderStatus

func (OrderStatus) EnumDescriptor

func (OrderStatus) EnumDescriptor() ([]byte, []int)

func (OrderStatus) String

func (x OrderStatus) String() string

func (*OrderStatus) UnmarshalJSON

func (x *OrderStatus) UnmarshalJSON(data []byte) error

type SubjectType

type SubjectType int32

Subject type enums.

const (
	SubjectType_SUBJECT_TYPE_UNSPECIFIED SubjectType = 0
)

func (SubjectType) Enum

func (x SubjectType) Enum() *SubjectType

func (SubjectType) EnumDescriptor

func (SubjectType) EnumDescriptor() ([]byte, []int)

func (SubjectType) String

func (x SubjectType) String() string

func (*SubjectType) UnmarshalJSON

func (x *SubjectType) UnmarshalJSON(data []byte) error

type UnimplementedBalanceServer

type UnimplementedBalanceServer struct {
}

UnimplementedBalanceServer can be embedded to have forward compatible implementations.

func (*UnimplementedBalanceServer) Get

type UnimplementedDepositServer

type UnimplementedDepositServer struct {
}

UnimplementedDepositServer can be embedded to have forward compatible implementations.

func (*UnimplementedDepositServer) Charge

func (*UnimplementedDepositServer) Confirm

func (*UnimplementedDepositServer) GetOptions

type UnimplementedExchangeServer

type UnimplementedExchangeServer struct {
}

UnimplementedExchangeServer can be embedded to have forward compatible implementations.

type UnimplementedInnerBudgetServer

type UnimplementedInnerBudgetServer struct {
}

UnimplementedInnerBudgetServer can be embedded to have forward compatible implementations.

type UnimplementedInnerCurrencyServer

type UnimplementedInnerCurrencyServer struct {
}

UnimplementedInnerCurrencyServer can be embedded to have forward compatible implementations.

func (*UnimplementedInnerCurrencyServer) Add

func (*UnimplementedInnerCurrencyServer) AddConfig

func (*UnimplementedInnerCurrencyServer) Get

func (*UnimplementedInnerCurrencyServer) GetAll

func (*UnimplementedInnerCurrencyServer) GetConfig

func (*UnimplementedInnerCurrencyServer) Update

func (*UnimplementedInnerCurrencyServer) UpdateConfig

type UnimplementedWithdrawServer

type UnimplementedWithdrawServer struct {
}

UnimplementedWithdrawServer can be embedded to have forward compatible implementations.

type WalletId

type WalletId struct {
	Account              *uint64  `protobuf:"varint,1,req,name=account" json:"account,omitempty"`
	Currency             *uint64  `protobuf:"varint,2,opt,name=currency" json:"currency,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Account wallet ID.

func (*WalletId) Descriptor

func (*WalletId) Descriptor() ([]byte, []int)

func (*WalletId) GetAccount

func (m *WalletId) GetAccount() uint64

func (*WalletId) GetCurrency

func (m *WalletId) GetCurrency() uint64

func (*WalletId) ProtoMessage

func (*WalletId) ProtoMessage()

func (*WalletId) Reset

func (m *WalletId) Reset()

func (*WalletId) String

func (m *WalletId) String() string

func (*WalletId) Validate

func (m *WalletId) Validate() error

Validate checks the field values on WalletId with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*WalletId) XXX_DiscardUnknown

func (m *WalletId) XXX_DiscardUnknown()

func (*WalletId) XXX_Marshal

func (m *WalletId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WalletId) XXX_Merge

func (m *WalletId) XXX_Merge(src proto.Message)

func (*WalletId) XXX_Size

func (m *WalletId) XXX_Size() int

func (*WalletId) XXX_Unmarshal

func (m *WalletId) XXX_Unmarshal(b []byte) error

type WalletIdValidationError

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

WalletIdValidationError is the validation error returned by WalletId.Validate if the designated constraints aren't met.

func (WalletIdValidationError) Cause

func (e WalletIdValidationError) Cause() error

Cause function returns cause value.

func (WalletIdValidationError) Error

func (e WalletIdValidationError) Error() string

Error satisfies the builtin error interface

func (WalletIdValidationError) ErrorName

func (e WalletIdValidationError) ErrorName() string

ErrorName returns error name.

func (WalletIdValidationError) Field

func (e WalletIdValidationError) Field() string

Field function returns field value.

func (WalletIdValidationError) Key

func (e WalletIdValidationError) Key() bool

Key function returns key value.

func (WalletIdValidationError) Reason

func (e WalletIdValidationError) Reason() string

Reason function returns reason value.

type WithdrawClient

type WithdrawClient interface {
}

WithdrawClient is the client API for Withdraw service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewWithdrawClient

func NewWithdrawClient(cc *grpc.ClientConn) WithdrawClient

type WithdrawServer

type WithdrawServer interface {
}

WithdrawServer is the server API for Withdraw service.

Jump to

Keyboard shortcuts

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