schema

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CommercialPaper_State_name = map[int32]string{
		0: "STATE_ISSUED",
		1: "STATE_TRADING",
		2: "STATE_REDEEMED",
	}
	CommercialPaper_State_value = map[string]int32{
		"STATE_ISSUED":   0,
		"STATE_TRADING":  1,
		"STATE_REDEEMED": 2,
	}
)

Enum value maps for CommercialPaper_State.

View Source
var File_cpaper_extended_schema_payload_proto protoreflect.FileDescriptor
View Source
var File_cpaper_extended_schema_state_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BuyCommercialPaper

type BuyCommercialPaper struct {
	Issuer       string                 `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	PaperNumber  string                 `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber,proto3" json:"paper_number,omitempty"`
	CurrentOwner string                 `protobuf:"bytes,3,opt,name=current_owner,json=currentOwner,proto3" json:"current_owner,omitempty"`
	NewOwner     string                 `protobuf:"bytes,4,opt,name=new_owner,json=newOwner,proto3" json:"new_owner,omitempty"`
	Price        int32                  `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"`
	PurchaseDate *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=purchase_date,json=purchaseDate,proto3" json:"purchase_date,omitempty"`
	// contains filtered or unexported fields
}

BuyCommercialPaper event

func (*BuyCommercialPaper) Descriptor deprecated

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

Deprecated: Use BuyCommercialPaper.ProtoReflect.Descriptor instead.

func (*BuyCommercialPaper) GetCurrentOwner

func (x *BuyCommercialPaper) GetCurrentOwner() string

func (*BuyCommercialPaper) GetIssuer

func (x *BuyCommercialPaper) GetIssuer() string

func (*BuyCommercialPaper) GetNewOwner

func (x *BuyCommercialPaper) GetNewOwner() string

func (*BuyCommercialPaper) GetPaperNumber

func (x *BuyCommercialPaper) GetPaperNumber() string

func (*BuyCommercialPaper) GetPrice

func (x *BuyCommercialPaper) GetPrice() int32

func (*BuyCommercialPaper) GetPurchaseDate

func (x *BuyCommercialPaper) GetPurchaseDate() *timestamppb.Timestamp

func (*BuyCommercialPaper) ProtoMessage

func (*BuyCommercialPaper) ProtoMessage()

func (*BuyCommercialPaper) ProtoReflect added in v0.7.0

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

func (*BuyCommercialPaper) Reset

func (x *BuyCommercialPaper) Reset()

func (*BuyCommercialPaper) String

func (x *BuyCommercialPaper) String() string

func (*BuyCommercialPaper) Validate

func (this *BuyCommercialPaper) Validate() error

type CommercialPaper

type CommercialPaper struct {

	// Issuer and Paper number comprises composite primary key of Commercial paper entry
	Issuer       string                 `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	PaperNumber  string                 `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber,proto3" json:"paper_number,omitempty"`
	Owner        string                 `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	IssueDate    *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=issue_date,json=issueDate,proto3" json:"issue_date,omitempty"`
	MaturityDate *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=maturity_date,json=maturityDate,proto3" json:"maturity_date,omitempty"`
	FaceValue    int32                  `protobuf:"varint,6,opt,name=face_value,json=faceValue,proto3" json:"face_value,omitempty"`
	State        CommercialPaper_State  `protobuf:"varint,7,opt,name=state,proto3,enum=examples.cpaper_extended.schema.CommercialPaper_State" json:"state,omitempty"`
	// Additional unique field for entry
	ExternalId string `protobuf:"bytes,8,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// contains filtered or unexported fields
}

Commercial Paper state entry

func (*CommercialPaper) Descriptor deprecated

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

Deprecated: Use CommercialPaper.ProtoReflect.Descriptor instead.

func (*CommercialPaper) GetExternalId

func (x *CommercialPaper) GetExternalId() string

func (*CommercialPaper) GetFaceValue

func (x *CommercialPaper) GetFaceValue() int32

func (*CommercialPaper) GetIssueDate

func (x *CommercialPaper) GetIssueDate() *timestamppb.Timestamp

func (*CommercialPaper) GetIssuer

func (x *CommercialPaper) GetIssuer() string

func (*CommercialPaper) GetMaturityDate

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

func (*CommercialPaper) GetOwner

func (x *CommercialPaper) GetOwner() string

func (*CommercialPaper) GetPaperNumber

func (x *CommercialPaper) GetPaperNumber() string

func (*CommercialPaper) GetState

func (x *CommercialPaper) GetState() CommercialPaper_State

func (*CommercialPaper) ProtoMessage

func (*CommercialPaper) ProtoMessage()

func (*CommercialPaper) ProtoReflect added in v0.7.0

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

func (*CommercialPaper) Reset

func (x *CommercialPaper) Reset()

func (*CommercialPaper) String

func (x *CommercialPaper) String() string

func (*CommercialPaper) Validate

func (this *CommercialPaper) Validate() error

type CommercialPaperId

type CommercialPaperId struct {
	Issuer      string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	PaperNumber string `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber,proto3" json:"paper_number,omitempty"`
	// contains filtered or unexported fields
}

CommercialPaperId identifier part

func (*CommercialPaperId) Descriptor deprecated

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

Deprecated: Use CommercialPaperId.ProtoReflect.Descriptor instead.

func (*CommercialPaperId) GetIssuer

func (x *CommercialPaperId) GetIssuer() string

func (*CommercialPaperId) GetPaperNumber

func (x *CommercialPaperId) GetPaperNumber() string

func (*CommercialPaperId) ProtoMessage

func (*CommercialPaperId) ProtoMessage()

func (*CommercialPaperId) ProtoReflect added in v0.7.0

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

func (*CommercialPaperId) Reset

func (x *CommercialPaperId) Reset()

func (*CommercialPaperId) String

func (x *CommercialPaperId) String() string

func (*CommercialPaperId) Validate

func (this *CommercialPaperId) Validate() error

type CommercialPaperList

type CommercialPaperList struct {
	Items []*CommercialPaper `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

Container for returning multiple entities

func (*CommercialPaperList) Descriptor deprecated

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

Deprecated: Use CommercialPaperList.ProtoReflect.Descriptor instead.

func (*CommercialPaperList) GetItems

func (x *CommercialPaperList) GetItems() []*CommercialPaper

func (*CommercialPaperList) ProtoMessage

func (*CommercialPaperList) ProtoMessage()

func (*CommercialPaperList) ProtoReflect added in v0.7.0

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

func (*CommercialPaperList) Reset

func (x *CommercialPaperList) Reset()

func (*CommercialPaperList) String

func (x *CommercialPaperList) String() string

func (*CommercialPaperList) Validate

func (this *CommercialPaperList) Validate() error

type CommercialPaper_State

type CommercialPaper_State int32
const (
	CommercialPaper_STATE_ISSUED   CommercialPaper_State = 0
	CommercialPaper_STATE_TRADING  CommercialPaper_State = 1
	CommercialPaper_STATE_REDEEMED CommercialPaper_State = 2
)

func (CommercialPaper_State) Descriptor added in v0.7.0

func (CommercialPaper_State) Enum added in v0.7.0

func (CommercialPaper_State) EnumDescriptor deprecated

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

Deprecated: Use CommercialPaper_State.Descriptor instead.

func (CommercialPaper_State) Number added in v0.7.0

func (CommercialPaper_State) String

func (x CommercialPaper_State) String() string

func (CommercialPaper_State) Type added in v0.7.0

type IssueCommercialPaper

type IssueCommercialPaper struct {
	Issuer       string                 `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	PaperNumber  string                 `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber,proto3" json:"paper_number,omitempty"`
	IssueDate    *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=issue_date,json=issueDate,proto3" json:"issue_date,omitempty"`
	MaturityDate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=maturity_date,json=maturityDate,proto3" json:"maturity_date,omitempty"`
	FaceValue    int32                  `protobuf:"varint,5,opt,name=face_value,json=faceValue,proto3" json:"face_value,omitempty"`
	// external_id - another unique constraint
	ExternalId string `protobuf:"bytes,6,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// contains filtered or unexported fields
}

IssueCommercialPaper event

func (*IssueCommercialPaper) Descriptor deprecated

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

Deprecated: Use IssueCommercialPaper.ProtoReflect.Descriptor instead.

func (*IssueCommercialPaper) GetExternalId

func (x *IssueCommercialPaper) GetExternalId() string

func (*IssueCommercialPaper) GetFaceValue

func (x *IssueCommercialPaper) GetFaceValue() int32

func (*IssueCommercialPaper) GetIssueDate

func (x *IssueCommercialPaper) GetIssueDate() *timestamppb.Timestamp

func (*IssueCommercialPaper) GetIssuer

func (x *IssueCommercialPaper) GetIssuer() string

func (*IssueCommercialPaper) GetMaturityDate

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

func (*IssueCommercialPaper) GetPaperNumber

func (x *IssueCommercialPaper) GetPaperNumber() string

func (*IssueCommercialPaper) ProtoMessage

func (*IssueCommercialPaper) ProtoMessage()

func (*IssueCommercialPaper) ProtoReflect added in v0.7.0

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

func (*IssueCommercialPaper) Reset

func (x *IssueCommercialPaper) Reset()

func (*IssueCommercialPaper) String

func (x *IssueCommercialPaper) String() string

func (*IssueCommercialPaper) Validate

func (this *IssueCommercialPaper) Validate() error

type RedeemCommercialPaper

type RedeemCommercialPaper struct {
	Issuer         string                 `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	PaperNumber    string                 `protobuf:"bytes,2,opt,name=paper_number,json=paperNumber,proto3" json:"paper_number,omitempty"`
	RedeemingOwner string                 `protobuf:"bytes,3,opt,name=redeeming_owner,json=redeemingOwner,proto3" json:"redeeming_owner,omitempty"`
	RedeemDate     *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=redeem_date,json=redeemDate,proto3" json:"redeem_date,omitempty"`
	// contains filtered or unexported fields
}

RedeemCommercialPaper event

func (*RedeemCommercialPaper) Descriptor deprecated

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

Deprecated: Use RedeemCommercialPaper.ProtoReflect.Descriptor instead.

func (*RedeemCommercialPaper) GetIssuer

func (x *RedeemCommercialPaper) GetIssuer() string

func (*RedeemCommercialPaper) GetPaperNumber

func (x *RedeemCommercialPaper) GetPaperNumber() string

func (*RedeemCommercialPaper) GetRedeemDate

func (x *RedeemCommercialPaper) GetRedeemDate() *timestamppb.Timestamp

func (*RedeemCommercialPaper) GetRedeemingOwner

func (x *RedeemCommercialPaper) GetRedeemingOwner() string

func (*RedeemCommercialPaper) ProtoMessage

func (*RedeemCommercialPaper) ProtoMessage()

func (*RedeemCommercialPaper) ProtoReflect added in v0.7.0

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

func (*RedeemCommercialPaper) Reset

func (x *RedeemCommercialPaper) Reset()

func (*RedeemCommercialPaper) String

func (x *RedeemCommercialPaper) String() string

func (*RedeemCommercialPaper) Validate

func (this *RedeemCommercialPaper) Validate() error

Jump to

Keyboard shortcuts

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