common

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 14 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvoiceError_Reason_name = map[int32]string{
	0: "UNKNOWN",
	1: "ALREADY_PAID",
	2: "WRONG_DESTINATION",
	3: "SKU_NOT_FOUND",
}
View Source
var InvoiceError_Reason_value = map[string]int32{
	"UNKNOWN":           0,
	"ALREADY_PAID":      1,
	"WRONG_DESTINATION": 2,
	"SKU_NOT_FOUND":     3,
}

Functions

This section is empty.

Types

type Invoice

type Invoice struct {
	Items                []*Invoice_LineItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*Invoice) Descriptor

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

func (*Invoice) GetItems

func (m *Invoice) GetItems() []*Invoice_LineItem

func (*Invoice) ProtoMessage

func (*Invoice) ProtoMessage()

func (*Invoice) Reset

func (m *Invoice) Reset()

func (*Invoice) String

func (m *Invoice) String() string

func (*Invoice) Validate

func (m *Invoice) Validate() error

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

func (*Invoice) XXX_DiscardUnknown

func (m *Invoice) XXX_DiscardUnknown()

func (*Invoice) XXX_Marshal

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

func (*Invoice) XXX_Merge

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

func (*Invoice) XXX_Size

func (m *Invoice) XXX_Size() int

func (*Invoice) XXX_Unmarshal

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

type InvoiceError added in v0.20.0

type InvoiceError struct {
	// The operation index the invoice corresponds to.
	OpIndex uint32 `protobuf:"varint,1,opt,name=op_index,json=opIndex,proto3" json:"op_index,omitempty"`
	// The invoice that was submitted.
	Invoice              *Invoice            `protobuf:"bytes,2,opt,name=invoice,proto3" json:"invoice,omitempty"`
	Reason               InvoiceError_Reason `protobuf:"varint,3,opt,name=reason,proto3,enum=kin.agora.common.v3.InvoiceError_Reason" json:"reason,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*InvoiceError) Descriptor added in v0.20.0

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

func (*InvoiceError) GetInvoice added in v0.20.0

func (m *InvoiceError) GetInvoice() *Invoice

func (*InvoiceError) GetOpIndex added in v0.20.0

func (m *InvoiceError) GetOpIndex() uint32

func (*InvoiceError) GetReason added in v0.20.0

func (m *InvoiceError) GetReason() InvoiceError_Reason

func (*InvoiceError) ProtoMessage added in v0.20.0

func (*InvoiceError) ProtoMessage()

func (*InvoiceError) Reset added in v0.20.0

func (m *InvoiceError) Reset()

func (*InvoiceError) String added in v0.20.0

func (m *InvoiceError) String() string

func (*InvoiceError) Validate added in v0.20.0

func (m *InvoiceError) Validate() error

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

func (*InvoiceError) XXX_DiscardUnknown added in v0.20.0

func (m *InvoiceError) XXX_DiscardUnknown()

func (*InvoiceError) XXX_Marshal added in v0.20.0

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

func (*InvoiceError) XXX_Merge added in v0.20.0

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

func (*InvoiceError) XXX_Size added in v0.20.0

func (m *InvoiceError) XXX_Size() int

func (*InvoiceError) XXX_Unmarshal added in v0.20.0

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

type InvoiceErrorValidationError added in v0.20.0

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

InvoiceErrorValidationError is the validation error returned by InvoiceError.Validate if the designated constraints aren't met.

func (InvoiceErrorValidationError) Cause added in v0.20.0

Cause function returns cause value.

func (InvoiceErrorValidationError) Error added in v0.20.0

Error satisfies the builtin error interface

func (InvoiceErrorValidationError) ErrorName added in v0.20.0

func (e InvoiceErrorValidationError) ErrorName() string

ErrorName returns error name.

func (InvoiceErrorValidationError) Field added in v0.20.0

Field function returns field value.

func (InvoiceErrorValidationError) Key added in v0.20.0

Key function returns key value.

func (InvoiceErrorValidationError) Reason added in v0.20.0

Reason function returns reason value.

type InvoiceError_Reason added in v0.20.0

type InvoiceError_Reason int32
const (
	InvoiceError_UNKNOWN InvoiceError_Reason = 0
	// The provided invoice has already been paid for.
	//
	// This is only applicable when the memo transaction type
	// is SPEND.
	InvoiceError_ALREADY_PAID InvoiceError_Reason = 1
	// The destination in the operation corresponding to this invoice
	// is incorrect.
	InvoiceError_WRONG_DESTINATION InvoiceError_Reason = 2
	// One or more SKUs in the invoice was not found.
	InvoiceError_SKU_NOT_FOUND InvoiceError_Reason = 3
)

func (InvoiceError_Reason) EnumDescriptor added in v0.20.0

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

func (InvoiceError_Reason) String added in v0.20.0

func (x InvoiceError_Reason) String() string

type InvoiceHash

type InvoiceHash struct {
	// The SHA-224 hash of the invoice.
	Value                []byte   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*InvoiceHash) Descriptor

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

func (*InvoiceHash) GetValue

func (m *InvoiceHash) GetValue() []byte

func (*InvoiceHash) ProtoMessage

func (*InvoiceHash) ProtoMessage()

func (*InvoiceHash) Reset

func (m *InvoiceHash) Reset()

func (*InvoiceHash) String

func (m *InvoiceHash) String() string

func (*InvoiceHash) Validate

func (m *InvoiceHash) Validate() error

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

func (*InvoiceHash) XXX_DiscardUnknown

func (m *InvoiceHash) XXX_DiscardUnknown()

func (*InvoiceHash) XXX_Marshal

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

func (*InvoiceHash) XXX_Merge

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

func (*InvoiceHash) XXX_Size

func (m *InvoiceHash) XXX_Size() int

func (*InvoiceHash) XXX_Unmarshal

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

type InvoiceHashValidationError

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

InvoiceHashValidationError is the validation error returned by InvoiceHash.Validate if the designated constraints aren't met.

func (InvoiceHashValidationError) Cause

Cause function returns cause value.

func (InvoiceHashValidationError) Error

Error satisfies the builtin error interface

func (InvoiceHashValidationError) ErrorName

func (e InvoiceHashValidationError) ErrorName() string

ErrorName returns error name.

func (InvoiceHashValidationError) Field

Field function returns field value.

func (InvoiceHashValidationError) Key

Key function returns key value.

func (InvoiceHashValidationError) Reason

Reason function returns reason value.

type InvoiceList

type InvoiceList struct {
	Invoices             []*Invoice `protobuf:"bytes,1,rep,name=invoices,proto3" json:"invoices,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*InvoiceList) Descriptor

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

func (*InvoiceList) GetInvoices

func (m *InvoiceList) GetInvoices() []*Invoice

func (*InvoiceList) ProtoMessage

func (*InvoiceList) ProtoMessage()

func (*InvoiceList) Reset

func (m *InvoiceList) Reset()

func (*InvoiceList) String

func (m *InvoiceList) String() string

func (*InvoiceList) Validate

func (m *InvoiceList) Validate() error

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

func (*InvoiceList) XXX_DiscardUnknown

func (m *InvoiceList) XXX_DiscardUnknown()

func (*InvoiceList) XXX_Marshal

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

func (*InvoiceList) XXX_Merge

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

func (*InvoiceList) XXX_Size

func (m *InvoiceList) XXX_Size() int

func (*InvoiceList) XXX_Unmarshal

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

type InvoiceListValidationError

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

InvoiceListValidationError is the validation error returned by InvoiceList.Validate if the designated constraints aren't met.

func (InvoiceListValidationError) Cause

Cause function returns cause value.

func (InvoiceListValidationError) Error

Error satisfies the builtin error interface

func (InvoiceListValidationError) ErrorName

func (e InvoiceListValidationError) ErrorName() string

ErrorName returns error name.

func (InvoiceListValidationError) Field

Field function returns field value.

func (InvoiceListValidationError) Key

Key function returns key value.

func (InvoiceListValidationError) Reason

Reason function returns reason value.

type InvoiceValidationError

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

InvoiceValidationError is the validation error returned by Invoice.Validate if the designated constraints aren't met.

func (InvoiceValidationError) Cause

func (e InvoiceValidationError) Cause() error

Cause function returns cause value.

func (InvoiceValidationError) Error

func (e InvoiceValidationError) Error() string

Error satisfies the builtin error interface

func (InvoiceValidationError) ErrorName

func (e InvoiceValidationError) ErrorName() string

ErrorName returns error name.

func (InvoiceValidationError) Field

func (e InvoiceValidationError) Field() string

Field function returns field value.

func (InvoiceValidationError) Key

func (e InvoiceValidationError) Key() bool

Key function returns key value.

func (InvoiceValidationError) Reason

func (e InvoiceValidationError) Reason() string

Reason function returns reason value.

type Invoice_LineItem

type Invoice_LineItem struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The amount in quarks.
	Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// The app SKU related to this line item, if applicable.
	Sku                  []byte   `protobuf:"bytes,4,opt,name=sku,proto3" json:"sku,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Invoice_LineItem) Descriptor

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

func (*Invoice_LineItem) GetAmount

func (m *Invoice_LineItem) GetAmount() int64

func (*Invoice_LineItem) GetDescription

func (m *Invoice_LineItem) GetDescription() string

func (*Invoice_LineItem) GetSku

func (m *Invoice_LineItem) GetSku() []byte

func (*Invoice_LineItem) GetTitle

func (m *Invoice_LineItem) GetTitle() string

func (*Invoice_LineItem) ProtoMessage

func (*Invoice_LineItem) ProtoMessage()

func (*Invoice_LineItem) Reset

func (m *Invoice_LineItem) Reset()

func (*Invoice_LineItem) String

func (m *Invoice_LineItem) String() string

func (*Invoice_LineItem) Validate

func (m *Invoice_LineItem) Validate() error

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

func (*Invoice_LineItem) XXX_DiscardUnknown

func (m *Invoice_LineItem) XXX_DiscardUnknown()

func (*Invoice_LineItem) XXX_Marshal

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

func (*Invoice_LineItem) XXX_Merge

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

func (*Invoice_LineItem) XXX_Size

func (m *Invoice_LineItem) XXX_Size() int

func (*Invoice_LineItem) XXX_Unmarshal

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

type Invoice_LineItemValidationError

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

Invoice_LineItemValidationError is the validation error returned by Invoice_LineItem.Validate if the designated constraints aren't met.

func (Invoice_LineItemValidationError) Cause

Cause function returns cause value.

func (Invoice_LineItemValidationError) Error

Error satisfies the builtin error interface

func (Invoice_LineItemValidationError) ErrorName

ErrorName returns error name.

func (Invoice_LineItemValidationError) Field

Field function returns field value.

func (Invoice_LineItemValidationError) Key

Key function returns key value.

func (Invoice_LineItemValidationError) Reason

Reason function returns reason value.

type StellarAccountId

type StellarAccountId struct {
	// The public key of accounts always starts with a G, so we
	// ensure that the value starts with a G to prevent the secret
	// key from being used.
	Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StellarAccountId) Descriptor

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

func (*StellarAccountId) GetValue

func (m *StellarAccountId) GetValue() string

func (*StellarAccountId) ProtoMessage

func (*StellarAccountId) ProtoMessage()

func (*StellarAccountId) Reset

func (m *StellarAccountId) Reset()

func (*StellarAccountId) String

func (m *StellarAccountId) String() string

func (*StellarAccountId) Validate

func (m *StellarAccountId) Validate() error

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

func (*StellarAccountId) XXX_DiscardUnknown

func (m *StellarAccountId) XXX_DiscardUnknown()

func (*StellarAccountId) XXX_Marshal

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

func (*StellarAccountId) XXX_Merge

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

func (*StellarAccountId) XXX_Size

func (m *StellarAccountId) XXX_Size() int

func (*StellarAccountId) XXX_Unmarshal

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

type StellarAccountIdValidationError

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

StellarAccountIdValidationError is the validation error returned by StellarAccountId.Validate if the designated constraints aren't met.

func (StellarAccountIdValidationError) Cause

Cause function returns cause value.

func (StellarAccountIdValidationError) Error

Error satisfies the builtin error interface

func (StellarAccountIdValidationError) ErrorName

ErrorName returns error name.

func (StellarAccountIdValidationError) Field

Field function returns field value.

func (StellarAccountIdValidationError) Key

Key function returns key value.

func (StellarAccountIdValidationError) Reason

Reason function returns reason value.

type TransactionHash

type TransactionHash struct {
	// The sha256 hash of a transaction.
	Value                []byte   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TransactionHash) Descriptor

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

func (*TransactionHash) GetValue

func (m *TransactionHash) GetValue() []byte

func (*TransactionHash) ProtoMessage

func (*TransactionHash) ProtoMessage()

func (*TransactionHash) Reset

func (m *TransactionHash) Reset()

func (*TransactionHash) String

func (m *TransactionHash) String() string

func (*TransactionHash) Validate

func (m *TransactionHash) Validate() error

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

func (*TransactionHash) XXX_DiscardUnknown

func (m *TransactionHash) XXX_DiscardUnknown()

func (*TransactionHash) XXX_Marshal

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

func (*TransactionHash) XXX_Merge

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

func (*TransactionHash) XXX_Size

func (m *TransactionHash) XXX_Size() int

func (*TransactionHash) XXX_Unmarshal

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

type TransactionHashValidationError

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

TransactionHashValidationError is the validation error returned by TransactionHash.Validate if the designated constraints aren't met.

func (TransactionHashValidationError) Cause

Cause function returns cause value.

func (TransactionHashValidationError) Error

Error satisfies the builtin error interface

func (TransactionHashValidationError) ErrorName

func (e TransactionHashValidationError) ErrorName() string

ErrorName returns error name.

func (TransactionHashValidationError) Field

Field function returns field value.

func (TransactionHashValidationError) Key

Key function returns key value.

func (TransactionHashValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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