transactionpb

package
v0.0.0-...-ce97478 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "FAILED",
		1: "PENDING",
		2: "SUCCESS",
	}
	Status_value = map[string]int32{
		"FAILED":  0,
		"PENDING": 1,
		"SUCCESS": 2,
	}
)

Enum value maps for Status.

View Source
var File_proto_transaction_transaction_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BalanceRequest

type BalanceRequest struct {
	UserId    int32                  `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	StartDate *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=startDate,proto3" json:"startDate,omitempty"`
	// contains filtered or unexported fields
}

func (*BalanceRequest) Descriptor deprecated

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

Deprecated: Use BalanceRequest.ProtoReflect.Descriptor instead.

func (*BalanceRequest) GetStartDate

func (x *BalanceRequest) GetStartDate() *timestamppb.Timestamp

func (*BalanceRequest) GetUserId

func (x *BalanceRequest) GetUserId() int32

func (*BalanceRequest) ProtoMessage

func (*BalanceRequest) ProtoMessage()

func (*BalanceRequest) ProtoReflect

func (x *BalanceRequest) ProtoReflect() protoreflect.Message

func (*BalanceRequest) Reset

func (x *BalanceRequest) Reset()

func (*BalanceRequest) String

func (x *BalanceRequest) String() string

type BalanceResponse

type BalanceResponse struct {
	UserId        int32   `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	BalanceAmount float32 `protobuf:"fixed32,2,opt,name=balance_amount,json=balanceAmount,proto3" json:"balance_amount,omitempty"`
	// contains filtered or unexported fields
}

func (*BalanceResponse) Descriptor deprecated

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

Deprecated: Use BalanceResponse.ProtoReflect.Descriptor instead.

func (*BalanceResponse) GetBalanceAmount

func (x *BalanceResponse) GetBalanceAmount() float32

func (*BalanceResponse) GetUserId

func (x *BalanceResponse) GetUserId() int32

func (*BalanceResponse) ProtoMessage

func (*BalanceResponse) ProtoMessage()

func (*BalanceResponse) ProtoReflect

func (x *BalanceResponse) ProtoReflect() protoreflect.Message

func (*BalanceResponse) Reset

func (x *BalanceResponse) Reset()

func (*BalanceResponse) String

func (x *BalanceResponse) String() string

type DepositRequest

type DepositRequest struct {
	Id      string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId  int32                  `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Amount  float32                `protobuf:"fixed32,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Updated *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated,proto3" json:"updated,omitempty"`
	// contains filtered or unexported fields
}

func (*DepositRequest) Descriptor deprecated

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

Deprecated: Use DepositRequest.ProtoReflect.Descriptor instead.

func (*DepositRequest) GetAmount

func (x *DepositRequest) GetAmount() float32

func (*DepositRequest) GetId

func (x *DepositRequest) GetId() string

func (*DepositRequest) GetUpdated

func (x *DepositRequest) GetUpdated() *timestamppb.Timestamp

func (*DepositRequest) GetUserId

func (x *DepositRequest) GetUserId() int32

func (*DepositRequest) ProtoMessage

func (*DepositRequest) ProtoMessage()

func (*DepositRequest) ProtoReflect

func (x *DepositRequest) ProtoReflect() protoreflect.Message

func (*DepositRequest) Reset

func (x *DepositRequest) Reset()

func (*DepositRequest) String

func (x *DepositRequest) String() string

type DepositResponse

type DepositResponse struct {
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DepositStatus Status                 `protobuf:"varint,2,opt,name=depositStatus,proto3,enum=transaction.Status" json:"depositStatus,omitempty"`
	DateCreated   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=dateCreated,proto3" json:"dateCreated,omitempty"`
	// contains filtered or unexported fields
}

func (*DepositResponse) Descriptor deprecated

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

Deprecated: Use DepositResponse.ProtoReflect.Descriptor instead.

func (*DepositResponse) GetDateCreated

func (x *DepositResponse) GetDateCreated() *timestamppb.Timestamp

func (*DepositResponse) GetDepositStatus

func (x *DepositResponse) GetDepositStatus() Status

func (*DepositResponse) GetId

func (x *DepositResponse) GetId() string

func (*DepositResponse) ProtoMessage

func (*DepositResponse) ProtoMessage()

func (*DepositResponse) ProtoReflect

func (x *DepositResponse) ProtoReflect() protoreflect.Message

func (*DepositResponse) Reset

func (x *DepositResponse) Reset()

func (*DepositResponse) String

func (x *DepositResponse) String() string

type LockRequest

type LockRequest struct {
	LockId   string                 `protobuf:"bytes,1,opt,name=lockId,proto3" json:"lockId,omitempty"`
	Amount   float32                `protobuf:"fixed32,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Duration *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*LockRequest) Descriptor deprecated

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

Deprecated: Use LockRequest.ProtoReflect.Descriptor instead.

func (*LockRequest) GetAmount

func (x *LockRequest) GetAmount() float32

func (*LockRequest) GetDuration

func (x *LockRequest) GetDuration() *timestamppb.Timestamp

func (*LockRequest) GetLockId

func (x *LockRequest) GetLockId() string

func (*LockRequest) ProtoMessage

func (*LockRequest) ProtoMessage()

func (*LockRequest) ProtoReflect

func (x *LockRequest) ProtoReflect() protoreflect.Message

func (*LockRequest) Reset

func (x *LockRequest) Reset()

func (*LockRequest) String

func (x *LockRequest) String() string

type LockResponse

type LockResponse struct {
	LockResponse string                 `protobuf:"bytes,1,opt,name=lockResponse,proto3" json:"lockResponse,omitempty"`
	LockStatus   Status                 `protobuf:"varint,2,opt,name=lockStatus,proto3,enum=transaction.Status" json:"lockStatus,omitempty"`
	MaturityDate *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=maturityDate,proto3" json:"maturityDate,omitempty"`
	// contains filtered or unexported fields
}

func (*LockResponse) Descriptor deprecated

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

Deprecated: Use LockResponse.ProtoReflect.Descriptor instead.

func (*LockResponse) GetLockResponse

func (x *LockResponse) GetLockResponse() string

func (*LockResponse) GetLockStatus

func (x *LockResponse) GetLockStatus() Status

func (*LockResponse) GetMaturityDate

func (x *LockResponse) GetMaturityDate() *timestamppb.Timestamp

func (*LockResponse) ProtoMessage

func (*LockResponse) ProtoMessage()

func (*LockResponse) ProtoReflect

func (x *LockResponse) ProtoReflect() protoreflect.Message

func (*LockResponse) Reset

func (x *LockResponse) Reset()

func (*LockResponse) String

func (x *LockResponse) String() string

type Status

type Status int32
const (
	Status_FAILED  Status = 0
	Status_PENDING Status = 1
	Status_SUCCESS Status = 2
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type WithdrawalRequest

type WithdrawalRequest struct {
	Id          string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId      int32                  `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Amount      float32                `protobuf:"fixed32,3,opt,name=amount,proto3" json:"amount,omitempty"`
	DateCreated *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=dateCreated,proto3" json:"dateCreated,omitempty"`
	// contains filtered or unexported fields
}

func (*WithdrawalRequest) Descriptor deprecated

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

Deprecated: Use WithdrawalRequest.ProtoReflect.Descriptor instead.

func (*WithdrawalRequest) GetAmount

func (x *WithdrawalRequest) GetAmount() float32

func (*WithdrawalRequest) GetDateCreated

func (x *WithdrawalRequest) GetDateCreated() *timestamppb.Timestamp

func (*WithdrawalRequest) GetId

func (x *WithdrawalRequest) GetId() string

func (*WithdrawalRequest) GetUserId

func (x *WithdrawalRequest) GetUserId() int32

func (*WithdrawalRequest) ProtoMessage

func (*WithdrawalRequest) ProtoMessage()

func (*WithdrawalRequest) ProtoReflect

func (x *WithdrawalRequest) ProtoReflect() protoreflect.Message

func (*WithdrawalRequest) Reset

func (x *WithdrawalRequest) Reset()

func (*WithdrawalRequest) String

func (x *WithdrawalRequest) String() string

type WithdrawalResponse

type WithdrawalResponse struct {
	WithdrawalId       string `protobuf:"bytes,1,opt,name=withdrawalId,proto3" json:"withdrawalId,omitempty"`
	WithdrawalResponse string `protobuf:"bytes,2,opt,name=withdrawalResponse,proto3" json:"withdrawalResponse,omitempty"`
	WithdrawalStatus   Status `protobuf:"varint,3,opt,name=withdrawalStatus,proto3,enum=transaction.Status" json:"withdrawalStatus,omitempty"`
	// contains filtered or unexported fields
}

func (*WithdrawalResponse) Descriptor deprecated

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

Deprecated: Use WithdrawalResponse.ProtoReflect.Descriptor instead.

func (*WithdrawalResponse) GetWithdrawalId

func (x *WithdrawalResponse) GetWithdrawalId() string

func (*WithdrawalResponse) GetWithdrawalResponse

func (x *WithdrawalResponse) GetWithdrawalResponse() string

func (*WithdrawalResponse) GetWithdrawalStatus

func (x *WithdrawalResponse) GetWithdrawalStatus() Status

func (*WithdrawalResponse) ProtoMessage

func (*WithdrawalResponse) ProtoMessage()

func (*WithdrawalResponse) ProtoReflect

func (x *WithdrawalResponse) ProtoReflect() protoreflect.Message

func (*WithdrawalResponse) Reset

func (x *WithdrawalResponse) Reset()

func (*WithdrawalResponse) String

func (x *WithdrawalResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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