payments

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: ISC Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const Default_Output_Amount uint64 = 0
View Source
const Default_PaymentDetails_Network string = "main"
View Source
const Default_PaymentRequest_PaymentDetailsVersion uint32 = 1
View Source
const Default_PaymentRequest_PkiType string = "none"

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
	Amount               *uint64  `protobuf:"varint,1,opt,name=amount,def=0" json:"amount,omitempty"`
	Script               []byte   `protobuf:"bytes,2,req,name=script" json:"script,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Generalized form of "send payment to this/these bitcoin addresses"

func (*Output) Descriptor

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

func (*Output) GetAmount

func (m *Output) GetAmount() uint64

func (*Output) GetScript

func (m *Output) GetScript() []byte

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) Reset

func (m *Output) Reset()

func (*Output) String

func (m *Output) String() string

func (*Output) XXX_DiscardUnknown

func (m *Output) XXX_DiscardUnknown()

func (*Output) XXX_Marshal

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

func (*Output) XXX_Merge

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

func (*Output) XXX_Size

func (m *Output) XXX_Size() int

func (*Output) XXX_Unmarshal

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

type Payment

type Payment struct {
	MerchantData         []byte    `protobuf:"bytes,1,opt,name=merchant_data,json=merchantData" json:"merchant_data,omitempty"`
	Transactions         [][]byte  `protobuf:"bytes,2,rep,name=transactions" json:"transactions,omitempty"`
	RefundTo             []*Output `protobuf:"bytes,3,rep,name=refund_to,json=refundTo" json:"refund_to,omitempty"`
	Memo                 *string   `protobuf:"bytes,4,opt,name=memo" json:"memo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Payment) Descriptor

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

func (*Payment) GetMemo

func (m *Payment) GetMemo() string

func (*Payment) GetMerchantData

func (m *Payment) GetMerchantData() []byte

func (*Payment) GetRefundTo

func (m *Payment) GetRefundTo() []*Output

func (*Payment) GetTransactions

func (m *Payment) GetTransactions() [][]byte

func (*Payment) ProtoMessage

func (*Payment) ProtoMessage()

func (*Payment) Reset

func (m *Payment) Reset()

func (*Payment) String

func (m *Payment) String() string

func (*Payment) XXX_DiscardUnknown

func (m *Payment) XXX_DiscardUnknown()

func (*Payment) XXX_Marshal

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

func (*Payment) XXX_Merge

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

func (*Payment) XXX_Size

func (m *Payment) XXX_Size() int

func (*Payment) XXX_Unmarshal

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

type PaymentACK

type PaymentACK struct {
	Payment              *Payment `protobuf:"bytes,1,req,name=payment" json:"payment,omitempty"`
	Memo                 *string  `protobuf:"bytes,2,opt,name=memo" json:"memo,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PaymentACK) Descriptor

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

func (*PaymentACK) GetMemo

func (m *PaymentACK) GetMemo() string

func (*PaymentACK) GetPayment

func (m *PaymentACK) GetPayment() *Payment

func (*PaymentACK) ProtoMessage

func (*PaymentACK) ProtoMessage()

func (*PaymentACK) Reset

func (m *PaymentACK) Reset()

func (*PaymentACK) String

func (m *PaymentACK) String() string

func (*PaymentACK) XXX_DiscardUnknown

func (m *PaymentACK) XXX_DiscardUnknown()

func (*PaymentACK) XXX_Marshal

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

func (*PaymentACK) XXX_Merge

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

func (*PaymentACK) XXX_Size

func (m *PaymentACK) XXX_Size() int

func (*PaymentACK) XXX_Unmarshal

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

type PaymentDetails

type PaymentDetails struct {
	Network              *string   `protobuf:"bytes,1,opt,name=network,def=main" json:"network,omitempty"`
	Outputs              []*Output `protobuf:"bytes,2,rep,name=outputs" json:"outputs,omitempty"`
	Time                 *uint64   `protobuf:"varint,3,req,name=time" json:"time,omitempty"`
	Expires              *uint64   `protobuf:"varint,4,opt,name=expires" json:"expires,omitempty"`
	Memo                 *string   `protobuf:"bytes,5,opt,name=memo" json:"memo,omitempty"`
	PaymentUrl           *string   `protobuf:"bytes,6,opt,name=payment_url,json=paymentUrl" json:"payment_url,omitempty"`
	MerchantData         []byte    `protobuf:"bytes,7,opt,name=merchant_data,json=merchantData" json:"merchant_data,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*PaymentDetails) Descriptor

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

func (*PaymentDetails) GetExpires

func (m *PaymentDetails) GetExpires() uint64

func (*PaymentDetails) GetMemo

func (m *PaymentDetails) GetMemo() string

func (*PaymentDetails) GetMerchantData

func (m *PaymentDetails) GetMerchantData() []byte

func (*PaymentDetails) GetNetwork

func (m *PaymentDetails) GetNetwork() string

func (*PaymentDetails) GetOutputs

func (m *PaymentDetails) GetOutputs() []*Output

func (*PaymentDetails) GetPaymentUrl

func (m *PaymentDetails) GetPaymentUrl() string

func (*PaymentDetails) GetTime

func (m *PaymentDetails) GetTime() uint64

func (*PaymentDetails) ProtoMessage

func (*PaymentDetails) ProtoMessage()

func (*PaymentDetails) Reset

func (m *PaymentDetails) Reset()

func (*PaymentDetails) String

func (m *PaymentDetails) String() string

func (*PaymentDetails) XXX_DiscardUnknown

func (m *PaymentDetails) XXX_DiscardUnknown()

func (*PaymentDetails) XXX_Marshal

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

func (*PaymentDetails) XXX_Merge

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

func (*PaymentDetails) XXX_Size

func (m *PaymentDetails) XXX_Size() int

func (*PaymentDetails) XXX_Unmarshal

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

type PaymentRequest

type PaymentRequest struct {
	PaymentDetailsVersion    *uint32  `` /* 126-byte string literal not displayed */
	PkiType                  *string  `protobuf:"bytes,2,opt,name=pki_type,json=pkiType,def=none" json:"pki_type,omitempty"`
	PkiData                  []byte   `protobuf:"bytes,3,opt,name=pki_data,json=pkiData" json:"pki_data,omitempty"`
	SerializedPaymentDetails []byte   `` /* 128-byte string literal not displayed */
	Signature                []byte   `protobuf:"bytes,5,opt,name=signature" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral     struct{} `json:"-"`
	XXX_unrecognized         []byte   `json:"-"`
	XXX_sizecache            int32    `json:"-"`
}

func (*PaymentRequest) Descriptor

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

func (*PaymentRequest) GetPaymentDetailsVersion

func (m *PaymentRequest) GetPaymentDetailsVersion() uint32

func (*PaymentRequest) GetPkiData

func (m *PaymentRequest) GetPkiData() []byte

func (*PaymentRequest) GetPkiType

func (m *PaymentRequest) GetPkiType() string

func (*PaymentRequest) GetSerializedPaymentDetails

func (m *PaymentRequest) GetSerializedPaymentDetails() []byte

func (*PaymentRequest) GetSignature

func (m *PaymentRequest) GetSignature() []byte

func (*PaymentRequest) ProtoMessage

func (*PaymentRequest) ProtoMessage()

func (*PaymentRequest) Reset

func (m *PaymentRequest) Reset()

func (*PaymentRequest) String

func (m *PaymentRequest) String() string

func (*PaymentRequest) XXX_DiscardUnknown

func (m *PaymentRequest) XXX_DiscardUnknown()

func (*PaymentRequest) XXX_Marshal

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

func (*PaymentRequest) XXX_Merge

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

func (*PaymentRequest) XXX_Size

func (m *PaymentRequest) XXX_Size() int

func (*PaymentRequest) XXX_Unmarshal

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

type X509Certificates

type X509Certificates struct {
	Certificate          [][]byte `protobuf:"bytes,1,rep,name=certificate" json:"certificate,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*X509Certificates) Descriptor

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

func (*X509Certificates) GetCertificate

func (m *X509Certificates) GetCertificate() [][]byte

func (*X509Certificates) ProtoMessage

func (*X509Certificates) ProtoMessage()

func (*X509Certificates) Reset

func (m *X509Certificates) Reset()

func (*X509Certificates) String

func (m *X509Certificates) String() string

func (*X509Certificates) XXX_DiscardUnknown

func (m *X509Certificates) XXX_DiscardUnknown()

func (*X509Certificates) XXX_Marshal

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

func (*X509Certificates) XXX_Merge

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

func (*X509Certificates) XXX_Size

func (m *X509Certificates) XXX_Size() int

func (*X509Certificates) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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