generic

package
v0.99999.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_trisa_data_generic_v1beta1_transaction_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConfirmationReceipt

type ConfirmationReceipt struct {
	EnvelopeId       string `protobuf:"bytes,1,opt,name=envelope_id,json=envelopeId,proto3" json:"envelope_id,omitempty"`                    // the TRISA envelope ID for reference
	ReceivedBy       string `protobuf:"bytes,2,opt,name=received_by,json=receivedBy,proto3" json:"received_by,omitempty"`                    // name of the recipient or recipient VASP
	ReceivedAt       string `protobuf:"bytes,3,opt,name=received_at,json=receivedAt,proto3" json:"received_at,omitempty"`                    // RFC 3339 timestamp of the receipt of request
	Message          string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`                                            // A generic message to respond with
	ResponseRequired bool   `protobuf:"varint,5,opt,name=response_required,json=responseRequired,proto3" json:"response_required,omitempty"` // If the message requires an additional transfer message
	// contains filtered or unexported fields
}

DEPRECATED: the ConfirmationReceipt message was deemed to cause confusion as it could signal that the confirmation payload was received and the transfer is concluded. Use the Pending message instead to signal that this is a control flow message.

func (*ConfirmationReceipt) Descriptor deprecated

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

Deprecated: Use ConfirmationReceipt.ProtoReflect.Descriptor instead.

func (*ConfirmationReceipt) GetEnvelopeId

func (x *ConfirmationReceipt) GetEnvelopeId() string

func (*ConfirmationReceipt) GetMessage

func (x *ConfirmationReceipt) GetMessage() string

func (*ConfirmationReceipt) GetReceivedAt

func (x *ConfirmationReceipt) GetReceivedAt() string

func (*ConfirmationReceipt) GetReceivedBy

func (x *ConfirmationReceipt) GetReceivedBy() string

func (*ConfirmationReceipt) GetResponseRequired added in v0.3.1

func (x *ConfirmationReceipt) GetResponseRequired() bool

func (*ConfirmationReceipt) ProtoMessage

func (*ConfirmationReceipt) ProtoMessage()

func (*ConfirmationReceipt) ProtoReflect

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

func (*ConfirmationReceipt) Reset

func (x *ConfirmationReceipt) Reset()

func (*ConfirmationReceipt) String

func (x *ConfirmationReceipt) String() string

type Pending added in v0.3.2

type Pending struct {
	EnvelopeId     string       `protobuf:"bytes,1,opt,name=envelope_id,json=envelopeId,proto3" json:"envelope_id,omitempty"`               // the TRISA envelope ID that refers to the compliance communication
	ReceivedBy     string       `protobuf:"bytes,2,opt,name=received_by,json=receivedBy,proto3" json:"received_by,omitempty"`               // the name of the recipient or recipient VASP
	ReceivedAt     string       `protobuf:"bytes,3,opt,name=received_at,json=receivedAt,proto3" json:"received_at,omitempty"`               // the RFC3339 formatted timestamp when the request was received
	Message        string       `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`                                       // an optional message to respond with to the counterparty
	ReplyNotAfter  string       `protobuf:"bytes,5,opt,name=reply_not_after,json=replyNotAfter,proto3" json:"reply_not_after,omitempty"`    // the RFC3339 formatted timestamp when the response will be returned by
	ReplyNotBefore string       `protobuf:"bytes,6,opt,name=reply_not_before,json=replyNotBefore,proto3" json:"reply_not_before,omitempty"` // the RFC339 formatted timestamp that the response will not be sent before
	ExtraJson      string       `protobuf:"bytes,7,opt,name=extra_json,json=extraJson,proto3" json:"extra_json,omitempty"`                  // any extra data as a JSON formatted object
	Transaction    *Transaction `protobuf:"bytes,15,opt,name=transaction,proto3" json:"transaction,omitempty"`                              // the original transaction for reference
	// contains filtered or unexported fields
}

A control flow message to support asynchronous TRISA transfers. Pending messages can be returned as an intermediate response during a compliance transfer if further processing is required before a response can be sent. The Pending message should provide information to the originator about when they can expect a response via the reply_not_before and reply_not_after timestamps. The Pending message should also provide collation information such as the envelope_id and original transaction so that the response message can be matched to the original request.

func (*Pending) Descriptor deprecated added in v0.3.2

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

Deprecated: Use Pending.ProtoReflect.Descriptor instead.

func (*Pending) GetEnvelopeId added in v0.3.2

func (x *Pending) GetEnvelopeId() string

func (*Pending) GetExtraJson added in v0.3.2

func (x *Pending) GetExtraJson() string

func (*Pending) GetMessage added in v0.3.2

func (x *Pending) GetMessage() string

func (*Pending) GetReceivedAt added in v0.3.2

func (x *Pending) GetReceivedAt() string

func (*Pending) GetReceivedBy added in v0.3.2

func (x *Pending) GetReceivedBy() string

func (*Pending) GetReplyNotAfter added in v0.3.2

func (x *Pending) GetReplyNotAfter() string

func (*Pending) GetReplyNotBefore added in v0.3.2

func (x *Pending) GetReplyNotBefore() string

func (*Pending) GetTransaction added in v0.3.2

func (x *Pending) GetTransaction() *Transaction

func (*Pending) ProtoMessage added in v0.3.2

func (*Pending) ProtoMessage()

func (*Pending) ProtoReflect added in v0.3.2

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

func (*Pending) Reset added in v0.3.2

func (x *Pending) Reset()

func (*Pending) String added in v0.3.2

func (x *Pending) String() string

type Transaction

type Transaction struct {
	Txid        string  `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`                            // a transaction ID unique to the chain/network
	Originator  string  `protobuf:"bytes,2,opt,name=originator,proto3" json:"originator,omitempty"`                // crypto address of the originator
	Beneficiary string  `protobuf:"bytes,3,opt,name=beneficiary,proto3" json:"beneficiary,omitempty"`              // crypto address of the beneficiary
	Amount      float64 `protobuf:"fixed64,4,opt,name=amount,proto3" json:"amount,omitempty"`                      // amount of the transaction
	Network     string  `protobuf:"bytes,5,opt,name=network,proto3" json:"network,omitempty"`                      // the chain/network of the transaction
	Timestamp   string  `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`                  // RFC 3339 timestamp of the transaction
	ExtraJson   string  `protobuf:"bytes,7,opt,name=extra_json,json=extraJson,proto3" json:"extra_json,omitempty"` // any extra data as a JSON formatted object
	AssetType   string  `protobuf:"bytes,8,opt,name=asset_type,json=assetType,proto3" json:"asset_type,omitempty"` // the type of virtual asset for mult-asset chains
	Tag         string  `protobuf:"bytes,9,opt,name=tag,proto3" json:"tag,omitempty"`                              // optional memo/destination-tag required by some ledgers to identify transactions
	// contains filtered or unexported fields
}

Generic Transaction message for TRISA transaction payloads. The goal of this payload is to provide enough information to link Travel Rule Compliance information in the identity payload with a transaction on the blockchain or network. All fields are optional, this message serves as a convienience for parsing transaction payloads.

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetAmount

func (x *Transaction) GetAmount() float64

func (*Transaction) GetAssetType added in v0.3.1

func (x *Transaction) GetAssetType() string

func (*Transaction) GetBeneficiary

func (x *Transaction) GetBeneficiary() string

func (*Transaction) GetExtraJson

func (x *Transaction) GetExtraJson() string

func (*Transaction) GetNetwork

func (x *Transaction) GetNetwork() string

func (*Transaction) GetOriginator

func (x *Transaction) GetOriginator() string

func (*Transaction) GetTag added in v0.3.2

func (x *Transaction) GetTag() string

func (*Transaction) GetTimestamp

func (x *Transaction) GetTimestamp() string

func (*Transaction) GetTxid

func (x *Transaction) GetTxid() 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

Jump to

Keyboard shortcuts

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