Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTRISADemoServer(s grpc.ServiceRegistrar, srv TRISADemoServer)
- func RegisterTRISAIntegrationServer(s grpc.ServiceRegistrar, srv TRISAIntegrationServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetEmail() string
- func (x *Account) GetProvider() string
- func (x *Account) GetWalletAddress() string
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountReply
- func (*AccountReply) Descriptor() ([]byte, []int)deprecated
- func (x *AccountReply) GetBalance() float32
- func (x *AccountReply) GetCompleted() uint64
- func (x *AccountReply) GetEmail() string
- func (x *AccountReply) GetError() *Error
- func (x *AccountReply) GetName() string
- func (x *AccountReply) GetPending() uint64
- func (x *AccountReply) GetTransactions() []*Transaction
- func (x *AccountReply) GetWalletAddress() string
- func (*AccountReply) ProtoMessage()
- func (x *AccountReply) ProtoReflect() protoreflect.Message
- func (x *AccountReply) Reset()
- func (x *AccountReply) String() string
- type AccountRequest
- func (*AccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AccountRequest) GetAccount() string
- func (x *AccountRequest) GetNoTransactions() bool
- func (x *AccountRequest) GetPage() uint32
- func (x *AccountRequest) GetPerPage() uint32
- func (*AccountRequest) ProtoMessage()
- func (x *AccountRequest) ProtoReflect() protoreflect.Message
- func (x *AccountRequest) Reset()
- func (x *AccountRequest) String() string
- type Command
- func (*Command) Descriptor() ([]byte, []int)deprecated
- func (x *Command) GetAccount() *AccountRequest
- func (x *Command) GetClient() string
- func (x *Command) GetId() uint64
- func (m *Command) GetRequest() isCommand_Request
- func (x *Command) GetTransfer() *TransferRequest
- func (x *Command) GetType() RPC
- func (*Command) ProtoMessage()
- func (x *Command) ProtoReflect() protoreflect.Message
- func (x *Command) Reset()
- func (x *Command) String() string
- type Command_Account
- type Command_Transfer
- type Error
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetAccount() *AccountReply
- func (x *Message) GetCategory() MessageCategory
- func (x *Message) GetId() uint64
- func (m *Message) GetReply() isMessage_Reply
- func (x *Message) GetTimestamp() string
- func (x *Message) GetTransfer() *TransferReply
- func (x *Message) GetType() RPC
- func (x *Message) GetUpdate() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageCategory
- func (MessageCategory) Descriptor() protoreflect.EnumDescriptor
- func (x MessageCategory) Enum() *MessageCategory
- func (MessageCategory) EnumDescriptor() ([]byte, []int)deprecated
- func (x MessageCategory) Number() protoreflect.EnumNumber
- func (x MessageCategory) String() string
- func (MessageCategory) Type() protoreflect.EnumType
- type Message_Account
- type Message_Transfer
- type RPC
- type TRISADemoClient
- type TRISADemoServer
- type TRISADemo_LiveUpdatesClient
- type TRISADemo_LiveUpdatesServer
- type TRISAIntegrationClient
- type TRISAIntegrationServer
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetAmount() float32
- func (x *Transaction) GetBeneficiary() *Account
- func (x *Transaction) GetEnvelopeId() string
- func (x *Transaction) GetIdentity() string
- func (x *Transaction) GetOriginator() *Account
- func (x *Transaction) GetState() TransactionState
- func (x *Transaction) GetTimestamp() string
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TransactionState
- func (TransactionState) Descriptor() protoreflect.EnumDescriptor
- func (x TransactionState) Enum() *TransactionState
- func (TransactionState) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransactionState) Number() protoreflect.EnumNumber
- func (x TransactionState) String() string
- func (TransactionState) Type() protoreflect.EnumType
- type TransferReply
- func (*TransferReply) Descriptor() ([]byte, []int)deprecated
- func (x *TransferReply) GetError() *Error
- func (x *TransferReply) GetTransaction() *Transaction
- func (*TransferReply) ProtoMessage()
- func (x *TransferReply) ProtoReflect() protoreflect.Message
- func (x *TransferReply) Reset()
- func (x *TransferReply) String() string
- type TransferRequest
- func (*TransferRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TransferRequest) GetAccount() string
- func (x *TransferRequest) GetAmount() float32
- func (x *TransferRequest) GetBeneficiary() string
- func (x *TransferRequest) GetBeneficiaryVasp() string
- func (x *TransferRequest) GetCheckBeneficiary() bool
- func (x *TransferRequest) GetExternalDemo() bool
- func (x *TransferRequest) GetOriginatingVasp() string
- func (*TransferRequest) ProtoMessage()
- func (x *TransferRequest) ProtoReflect() protoreflect.Message
- func (x *TransferRequest) Reset()
- func (x *TransferRequest) String() string
- type UnimplementedTRISADemoServer
- type UnimplementedTRISAIntegrationServer
- type UnsafeTRISADemoServer
- type UnsafeTRISAIntegrationServer
Constants ¶
const ( ErrNotFound = 404 ErrWrongVASP = 405 ErrInternal = 500 )
Error codes for quick reference and lookups
Variables ¶
var ( TransactionState_name = map[int32]string{ 0: "INVALID", 1: "AWAITING_REPLY", 2: "PENDING_SENT", 3: "AWAITING_FULL_TRANSFER", 4: "PENDING_RECEIVED", 5: "PENDING_ACKNOWLEDGED", 6: "ACCEPTED", 7: "FAILED", 8: "EXPIRED", 9: "REJECTED", 10: "COMPLETED", } TransactionState_value = map[string]int32{ "INVALID": 0, "AWAITING_REPLY": 1, "PENDING_SENT": 2, "AWAITING_FULL_TRANSFER": 3, "PENDING_RECEIVED": 4, "PENDING_ACKNOWLEDGED": 5, "ACCEPTED": 6, "FAILED": 7, "EXPIRED": 8, "REJECTED": 9, "COMPLETED": 10, } )
Enum value maps for TransactionState.
var ( RPC_name = map[int32]string{ 0: "NORPC", 1: "TRANSFER", 2: "ACCOUNT", } RPC_value = map[string]int32{ "NORPC": 0, "TRANSFER": 1, "ACCOUNT": 2, } )
Enum value maps for RPC.
var ( MessageCategory_name = map[int32]string{ 0: "LEDGER", 1: "TRISADS", 2: "TRISAP2P", 3: "BLOCKCHAIN", 4: "ERROR", } MessageCategory_value = map[string]int32{ "LEDGER": 0, "TRISADS": 1, "TRISAP2P": 2, "BLOCKCHAIN": 3, "ERROR": 4, } )
Enum value maps for MessageCategory.
var File_rvasp_v1_api_proto protoreflect.FileDescriptor
var TRISADemo_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rvasp.v1.TRISADemo", HandlerType: (*TRISADemoServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "LiveUpdates", Handler: _TRISADemo_LiveUpdates_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "rvasp/v1/api.proto", }
TRISADemo_ServiceDesc is the grpc.ServiceDesc for TRISADemo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TRISAIntegration_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rvasp.v1.TRISAIntegration", HandlerType: (*TRISAIntegrationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Transfer", Handler: _TRISAIntegration_Transfer_Handler, }, { MethodName: "AccountStatus", Handler: _TRISAIntegration_AccountStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rvasp/v1/api.proto", }
TRISAIntegration_ServiceDesc is the grpc.ServiceDesc for TRISAIntegration service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTRISADemoServer ¶
func RegisterTRISADemoServer(s grpc.ServiceRegistrar, srv TRISADemoServer)
func RegisterTRISAIntegrationServer ¶
func RegisterTRISAIntegrationServer(s grpc.ServiceRegistrar, srv TRISAIntegrationServer)
Types ¶
type Account ¶
type Account struct { WalletAddress string `protobuf:"bytes,1,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Provider string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"` // contains filtered or unexported fields }
Identity maps a wallet address, email, and VASP provider and is used to store originator and beneficiary data as well as the KYC information that is collected during the TRISA protocol exchange in JSON format.
func (*Account) Descriptor
deprecated
func (*Account) GetProvider ¶
func (*Account) GetWalletAddress ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountReply ¶
type AccountReply struct { Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // Only used in live stream Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` WalletAddress string `protobuf:"bytes,4,opt,name=wallet_address,json=walletAddress,proto3" json:"wallet_address,omitempty"` Balance float32 `protobuf:"fixed32,5,opt,name=balance,proto3" json:"balance,omitempty"` Completed uint64 `protobuf:"varint,6,opt,name=completed,proto3" json:"completed,omitempty"` Pending uint64 `protobuf:"varint,7,opt,name=pending,proto3" json:"pending,omitempty"` Transactions []*Transaction `protobuf:"bytes,8,rep,name=transactions,proto3" json:"transactions,omitempty"` // contains filtered or unexported fields }
Returns the account information and balance as well as transactions ordered from most to least recent. An error is returned if the account cannot be found.
func (*AccountReply) Descriptor
deprecated
func (*AccountReply) Descriptor() ([]byte, []int)
Deprecated: Use AccountReply.ProtoReflect.Descriptor instead.
func (*AccountReply) GetBalance ¶
func (x *AccountReply) GetBalance() float32
func (*AccountReply) GetCompleted ¶
func (x *AccountReply) GetCompleted() uint64
func (*AccountReply) GetEmail ¶
func (x *AccountReply) GetEmail() string
func (*AccountReply) GetError ¶
func (x *AccountReply) GetError() *Error
func (*AccountReply) GetName ¶
func (x *AccountReply) GetName() string
func (*AccountReply) GetPending ¶
func (x *AccountReply) GetPending() uint64
func (*AccountReply) GetTransactions ¶
func (x *AccountReply) GetTransactions() []*Transaction
func (*AccountReply) GetWalletAddress ¶
func (x *AccountReply) GetWalletAddress() string
func (*AccountReply) ProtoMessage ¶
func (*AccountReply) ProtoMessage()
func (*AccountReply) ProtoReflect ¶
func (x *AccountReply) ProtoReflect() protoreflect.Message
func (*AccountReply) Reset ¶
func (x *AccountReply) Reset()
func (*AccountReply) String ¶
func (x *AccountReply) String() string
type AccountRequest ¶
type AccountRequest struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // email address of the account to get information for. NoTransactions bool `protobuf:"varint,2,opt,name=no_transactions,json=noTransactions,proto3" json:"no_transactions,omitempty"` // do not return list of transactions, just status info. Page uint32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` // not implemented yet PerPage uint32 `protobuf:"varint,4,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"` // not implemented yet // contains filtered or unexported fields }
Account request is used to fetch the status information of the account as well as all the transactions associated with the account (unless otherwise requested). TODO: implement transaction pagination.
func (*AccountRequest) Descriptor
deprecated
func (*AccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use AccountRequest.ProtoReflect.Descriptor instead.
func (*AccountRequest) GetAccount ¶
func (x *AccountRequest) GetAccount() string
func (*AccountRequest) GetNoTransactions ¶
func (x *AccountRequest) GetNoTransactions() bool
func (*AccountRequest) GetPage ¶
func (x *AccountRequest) GetPage() uint32
func (*AccountRequest) GetPerPage ¶
func (x *AccountRequest) GetPerPage() uint32
func (*AccountRequest) ProtoMessage ¶
func (*AccountRequest) ProtoMessage()
func (*AccountRequest) ProtoReflect ¶
func (x *AccountRequest) ProtoReflect() protoreflect.Message
func (*AccountRequest) Reset ¶
func (x *AccountRequest) Reset()
func (*AccountRequest) String ¶
func (x *AccountRequest) String() string
type Command ¶
type Command struct { Type RPC `protobuf:"varint,1,opt,name=type,proto3,enum=rvasp.v1.RPC" json:"type,omitempty"` // what type of command is being sent to the rVASP Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // client side message id for req/rep tracking Client string `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"` // unique ID so the rVASP can correctly dispatch messages // only one of these fields can be set, and the field that is set should // match the RPC type described above. // // Types that are assignable to Request: // *Command_Transfer // *Command_Account Request isCommand_Request `protobuf_oneof:"request"` // contains filtered or unexported fields }
A wrapper for the TransferRequet and AccountRequest RPCs to be sent via streaming.
func (*Command) Descriptor
deprecated
func (*Command) GetAccount ¶
func (x *Command) GetAccount() *AccountRequest
func (*Command) GetRequest ¶
func (m *Command) GetRequest() isCommand_Request
func (*Command) GetTransfer ¶
func (x *Command) GetTransfer() *TransferRequest
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) ProtoReflect ¶
func (x *Command) ProtoReflect() protoreflect.Message
type Command_Account ¶
type Command_Account struct {
Account *AccountRequest `protobuf:"bytes,12,opt,name=account,proto3,oneof"`
}
type Command_Transfer ¶
type Command_Transfer struct {
Transfer *TransferRequest `protobuf:"bytes,11,opt,name=transfer,proto3,oneof"`
}
type Error ¶
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
Allows for standardized error handling for demo purposes.
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct { Type RPC `protobuf:"varint,1,opt,name=type,proto3,enum=rvasp.v1.RPC" json:"type,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Update string `protobuf:"bytes,3,opt,name=update,proto3" json:"update,omitempty"` Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Category MessageCategory `protobuf:"varint,5,opt,name=category,proto3,enum=rvasp.v1.MessageCategory" json:"category,omitempty"` // if type and id are greater than zero, one of these fields will be set, matching // the RPC type described above. // // Types that are assignable to Reply: // *Message_Transfer // *Message_Account Reply isMessage_Reply `protobuf_oneof:"reply"` // contains filtered or unexported fields }
Message is either a wrapper for a TransferReply or AccountReply RPCs or it is a live update message sent from the rVASP to show the communication interactions of the InterVASP protocol. If it is a wrapper, then type will be > 0 and the ID will match the id of the command request sent by the client. Otherwise both of these fields will be zero and the update string will be populated.
func (*Message) Descriptor
deprecated
func (*Message) GetAccount ¶
func (x *Message) GetAccount() *AccountReply
func (*Message) GetCategory ¶
func (x *Message) GetCategory() MessageCategory
func (*Message) GetTimestamp ¶
func (*Message) GetTransfer ¶
func (x *Message) GetTransfer() *TransferReply
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageCategory ¶
type MessageCategory int32
Specifies the category the message is related to for rVASP UI colorization
const ( MessageCategory_LEDGER MessageCategory = 0 MessageCategory_TRISADS MessageCategory = 1 MessageCategory_TRISAP2P MessageCategory = 2 MessageCategory_BLOCKCHAIN MessageCategory = 3 MessageCategory_ERROR MessageCategory = 4 )
func (MessageCategory) Descriptor ¶
func (MessageCategory) Descriptor() protoreflect.EnumDescriptor
func (MessageCategory) Enum ¶
func (x MessageCategory) Enum() *MessageCategory
func (MessageCategory) EnumDescriptor
deprecated
func (MessageCategory) EnumDescriptor() ([]byte, []int)
Deprecated: Use MessageCategory.Descriptor instead.
func (MessageCategory) Number ¶
func (x MessageCategory) Number() protoreflect.EnumNumber
func (MessageCategory) String ¶
func (x MessageCategory) String() string
func (MessageCategory) Type ¶
func (MessageCategory) Type() protoreflect.EnumType
type Message_Account ¶
type Message_Account struct {
Account *AccountReply `protobuf:"bytes,12,opt,name=account,proto3,oneof"`
}
type Message_Transfer ¶
type Message_Transfer struct {
Transfer *TransferReply `protobuf:"bytes,11,opt,name=transfer,proto3,oneof"`
}
type RPC ¶
type RPC int32
Specifies the RPC the command is wrapping in the bidirectional stream.
func (RPC) Descriptor ¶
func (RPC) Descriptor() protoreflect.EnumDescriptor
func (RPC) EnumDescriptor
deprecated
func (RPC) Number ¶
func (x RPC) Number() protoreflect.EnumNumber
func (RPC) Type ¶
func (RPC) Type() protoreflect.EnumType
type TRISADemoClient ¶
type TRISADemoClient interface {
LiveUpdates(ctx context.Context, opts ...grpc.CallOption) (TRISADemo_LiveUpdatesClient, error)
}
TRISADemoClient is the client API for TRISADemo service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTRISADemoClient ¶
func NewTRISADemoClient(cc grpc.ClientConnInterface) TRISADemoClient
type TRISADemoServer ¶
type TRISADemoServer interface { LiveUpdates(TRISADemo_LiveUpdatesServer) error // contains filtered or unexported methods }
TRISADemoServer is the server API for TRISADemo service. All implementations must embed UnimplementedTRISADemoServer for forward compatibility
type TRISAIntegrationClient ¶
type TRISAIntegrationClient interface { Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferReply, error) AccountStatus(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*AccountReply, error) }
TRISAIntegrationClient is the client API for TRISAIntegration service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTRISAIntegrationClient ¶
func NewTRISAIntegrationClient(cc grpc.ClientConnInterface) TRISAIntegrationClient
type TRISAIntegrationServer ¶
type TRISAIntegrationServer interface { Transfer(context.Context, *TransferRequest) (*TransferReply, error) AccountStatus(context.Context, *AccountRequest) (*AccountReply, error) // contains filtered or unexported methods }
TRISAIntegrationServer is the server API for TRISAIntegration service. All implementations must embed UnimplementedTRISAIntegrationServer for forward compatibility
type Transaction ¶
type Transaction struct { Originator *Account `protobuf:"bytes,1,opt,name=originator,proto3" json:"originator,omitempty"` // Source described by wallet address or email of originator Beneficiary *Account `protobuf:"bytes,2,opt,name=beneficiary,proto3" json:"beneficiary,omitempty"` // Target described by wallet address or email of beneficiary Amount float32 `protobuf:"fixed32,3,opt,name=amount,proto3" json:"amount,omitempty"` // amount of the transaction Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // timestamp of completion on the account provider side EnvelopeId string `protobuf:"bytes,5,opt,name=envelope_id,json=envelopeId,proto3" json:"envelope_id,omitempty"` // envelope ID from TRISA (not included between TRISA peers) Identity string `protobuf:"bytes,6,opt,name=identity,proto3" json:"identity,omitempty"` // identity payload from TRISA (not included between TRISA peers) State TransactionState `protobuf:"varint,7,opt,name=state,proto3,enum=rvasp.v1.TransactionState" json:"state,omitempty"` // state of the transaction // contains filtered or unexported fields }
Describes a simple transaction between an originator and beneficiary. NOTE: this is an rVASP-specific transaction that is used for debugging.
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetAmount ¶
func (x *Transaction) GetAmount() float32
func (*Transaction) GetBeneficiary ¶
func (x *Transaction) GetBeneficiary() *Account
func (*Transaction) GetEnvelopeId ¶ added in v1.0.3
func (x *Transaction) GetEnvelopeId() string
func (*Transaction) GetIdentity ¶
func (x *Transaction) GetIdentity() string
func (*Transaction) GetOriginator ¶
func (x *Transaction) GetOriginator() *Account
func (*Transaction) GetState ¶ added in v1.0.0
func (x *Transaction) GetState() TransactionState
func (*Transaction) GetTimestamp ¶
func (x *Transaction) GetTimestamp() string
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type TransactionState ¶ added in v1.0.0
type TransactionState int32
Describes the current state of a transaction.
const ( TransactionState_INVALID TransactionState = 0 // Not a valid transaction state TransactionState_AWAITING_REPLY TransactionState = 1 // (Async) Originator is awaiting a response from the beneficiary TransactionState_PENDING_SENT TransactionState = 2 // (Async) Beneficiary has sent a pending message to the originator TransactionState_AWAITING_FULL_TRANSFER TransactionState = 3 // (Async) Beneficiary is awaiting a complete transfer request from the originator TransactionState_PENDING_RECEIVED TransactionState = 4 // (Async) Originator has received a pending message from the beneficiary TransactionState_PENDING_ACKNOWLEDGED TransactionState = 5 // (Async) Beneficiary has acknowledged the originator transaction TransactionState_ACCEPTED TransactionState = 6 // (Async) Originator has received the transaction acknowledgement from the beneficiary TransactionState_FAILED TransactionState = 7 // The transaction has failed TransactionState_EXPIRED TransactionState = 8 // The asynchronous transaction has expired before completion TransactionState_REJECTED TransactionState = 9 // The transaction has been rejected TransactionState_COMPLETED TransactionState = 10 // The transaction is completed )
func (TransactionState) Descriptor ¶ added in v1.0.0
func (TransactionState) Descriptor() protoreflect.EnumDescriptor
func (TransactionState) Enum ¶ added in v1.0.0
func (x TransactionState) Enum() *TransactionState
func (TransactionState) EnumDescriptor
deprecated
added in
v1.0.0
func (TransactionState) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransactionState.Descriptor instead.
func (TransactionState) Number ¶ added in v1.0.0
func (x TransactionState) Number() protoreflect.EnumNumber
func (TransactionState) String ¶ added in v1.0.0
func (x TransactionState) String() string
func (TransactionState) Type ¶ added in v1.0.0
func (TransactionState) Type() protoreflect.EnumType
type TransferReply ¶
type TransferReply struct { Error *Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // populated with an error encountered during the transfer or from the response envelope Transaction *Transaction `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"` // contains filtered or unexported fields }
The transfer reply will contain the details of the transaction initiated or completed or an error if there are insufficient funds or the account or beneficiary could not be looked up. Errors encountered during the TRISA protocol may also be returned.
func (*TransferReply) Descriptor
deprecated
func (*TransferReply) Descriptor() ([]byte, []int)
Deprecated: Use TransferReply.ProtoReflect.Descriptor instead.
func (*TransferReply) GetError ¶
func (x *TransferReply) GetError() *Error
func (*TransferReply) GetTransaction ¶
func (x *TransferReply) GetTransaction() *Transaction
func (*TransferReply) ProtoMessage ¶
func (*TransferReply) ProtoMessage()
func (*TransferReply) ProtoReflect ¶
func (x *TransferReply) ProtoReflect() protoreflect.Message
func (*TransferReply) Reset ¶
func (x *TransferReply) Reset()
func (*TransferReply) String ¶
func (x *TransferReply) String() string
type TransferRequest ¶
type TransferRequest struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // email address or crypto wallet of the account to debit Beneficiary string `protobuf:"bytes,2,opt,name=beneficiary,proto3" json:"beneficiary,omitempty"` // email address or crypto wallet to look up beneficiary with Amount float32 `protobuf:"fixed32,3,opt,name=amount,proto3" json:"amount,omitempty"` // amount to transfer to the beneficiary (will be truncated to 2 decimal points) OriginatingVasp string `protobuf:"bytes,4,opt,name=originating_vasp,json=originatingVasp,proto3" json:"originating_vasp,omitempty"` // common name of the originating VASP for demo UI error handling (optional) BeneficiaryVasp string `protobuf:"bytes,5,opt,name=beneficiary_vasp,json=beneficiaryVasp,proto3" json:"beneficiary_vasp,omitempty"` // common name of the beneficiary VASP for demo UI error handling or external demo lookup (optional if external_demo is false) CheckBeneficiary bool `protobuf:"varint,6,opt,name=check_beneficiary,json=checkBeneficiary,proto3" json:"check_beneficiary,omitempty"` // if set, confirm that the beneficiary wallet belongs to the beneficiary VASP (optional) ExternalDemo bool `protobuf:"varint,7,opt,name=external_demo,json=externalDemo,proto3" json:"external_demo,omitempty"` // if true, beneficiary is resolved via beneficiary_vasp common name and the directory service // contains filtered or unexported fields }
Initiates a transfer from the specified account to the specified wallet address or email address for a known wallet at some other rVASP.
func (*TransferRequest) Descriptor
deprecated
func (*TransferRequest) Descriptor() ([]byte, []int)
Deprecated: Use TransferRequest.ProtoReflect.Descriptor instead.
func (*TransferRequest) GetAccount ¶
func (x *TransferRequest) GetAccount() string
func (*TransferRequest) GetAmount ¶
func (x *TransferRequest) GetAmount() float32
func (*TransferRequest) GetBeneficiary ¶
func (x *TransferRequest) GetBeneficiary() string
func (*TransferRequest) GetBeneficiaryVasp ¶
func (x *TransferRequest) GetBeneficiaryVasp() string
func (*TransferRequest) GetCheckBeneficiary ¶
func (x *TransferRequest) GetCheckBeneficiary() bool
func (*TransferRequest) GetExternalDemo ¶
func (x *TransferRequest) GetExternalDemo() bool
func (*TransferRequest) GetOriginatingVasp ¶
func (x *TransferRequest) GetOriginatingVasp() string
func (*TransferRequest) ProtoMessage ¶
func (*TransferRequest) ProtoMessage()
func (*TransferRequest) ProtoReflect ¶
func (x *TransferRequest) ProtoReflect() protoreflect.Message
func (*TransferRequest) Reset ¶
func (x *TransferRequest) Reset()
func (*TransferRequest) String ¶
func (x *TransferRequest) String() string
type UnimplementedTRISADemoServer ¶
type UnimplementedTRISADemoServer struct { }
UnimplementedTRISADemoServer must be embedded to have forward compatible implementations.
func (UnimplementedTRISADemoServer) LiveUpdates ¶
func (UnimplementedTRISADemoServer) LiveUpdates(TRISADemo_LiveUpdatesServer) error
type UnimplementedTRISAIntegrationServer ¶
type UnimplementedTRISAIntegrationServer struct { }
UnimplementedTRISAIntegrationServer must be embedded to have forward compatible implementations.
func (UnimplementedTRISAIntegrationServer) AccountStatus ¶
func (UnimplementedTRISAIntegrationServer) AccountStatus(context.Context, *AccountRequest) (*AccountReply, error)
func (UnimplementedTRISAIntegrationServer) Transfer ¶
func (UnimplementedTRISAIntegrationServer) Transfer(context.Context, *TransferRequest) (*TransferReply, error)
type UnsafeTRISADemoServer ¶
type UnsafeTRISADemoServer interface {
// contains filtered or unexported methods
}
UnsafeTRISADemoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TRISADemoServer will result in compilation errors.
type UnsafeTRISAIntegrationServer ¶
type UnsafeTRISAIntegrationServer interface {
// contains filtered or unexported methods
}
UnsafeTRISAIntegrationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TRISAIntegrationServer will result in compilation errors.