2018-12-20 13:42:28 +03:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2021-04-28 16:30:59 +03:00
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.23.0
|
|
|
|
// protoc v3.6.1
|
2018-12-20 13:42:28 +03:00
|
|
|
// source: invoicesrpc/invoices.proto
|
|
|
|
|
2019-05-15 16:07:30 +03:00
|
|
|
package invoicesrpc
|
2018-12-20 13:42:28 +03:00
|
|
|
|
|
|
|
import (
|
2019-05-15 16:07:30 +03:00
|
|
|
context "context"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
lnrpc "github.com/lightningnetwork/lnd/lnrpc"
|
2018-12-20 13:42:28 +03:00
|
|
|
grpc "google.golang.org/grpc"
|
2020-05-28 14:07:31 +03:00
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
status "google.golang.org/grpc/status"
|
2021-04-28 16:30:59 +03:00
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
2018-12-20 13:42:28 +03:00
|
|
|
)
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
2018-12-20 13:42:28 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
|
// of the legacy proto package is being used.
|
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
2018-12-20 13:42:28 +03:00
|
|
|
|
2019-01-11 13:19:16 +03:00
|
|
|
type CancelInvoiceMsg struct {
|
2021-04-28 16:30:59 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// Hash corresponding to the (hold) invoice to cancel.
|
2021-04-28 16:30:59 +03:00
|
|
|
PaymentHash []byte `protobuf:"bytes,1,opt,name=payment_hash,json=paymentHash,proto3" json:"payment_hash,omitempty"`
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *CancelInvoiceMsg) Reset() {
|
|
|
|
*x = CancelInvoiceMsg{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[0]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *CancelInvoiceMsg) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (*CancelInvoiceMsg) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CancelInvoiceMsg) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[0]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Deprecated: Use CancelInvoiceMsg.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CancelInvoiceMsg) Descriptor() ([]byte, []int) {
|
|
|
|
return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{0}
|
|
|
|
}
|
2019-01-11 13:19:16 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *CancelInvoiceMsg) GetPaymentHash() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.PaymentHash
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type CancelInvoiceResp struct {
|
2021-04-28 16:30:59 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *CancelInvoiceResp) Reset() {
|
|
|
|
*x = CancelInvoiceResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[1]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *CancelInvoiceResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (*CancelInvoiceResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *CancelInvoiceResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[1]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-01-11 13:19:16 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Deprecated: Use CancelInvoiceResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*CancelInvoiceResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{1}
|
|
|
|
}
|
2019-01-11 13:19:16 +03:00
|
|
|
|
2019-01-15 14:11:22 +03:00
|
|
|
type AddHoldInvoiceRequest struct {
|
2021-04-28 16:30:59 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//An optional memo to attach along with the invoice. Used for record keeping
|
|
|
|
//purposes for the invoice's creator, and will also be set in the description
|
|
|
|
//field of the encoded payment request if the description_hash field is not
|
|
|
|
//being used.
|
2019-01-15 14:11:22 +03:00
|
|
|
Memo string `protobuf:"bytes,1,opt,name=memo,proto3" json:"memo,omitempty"`
|
2020-05-06 17:51:14 +03:00
|
|
|
// The hash of the preimage
|
2019-01-15 14:11:22 +03:00
|
|
|
Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-11-15 10:59:14 +03:00
|
|
|
//The value of this invoice in satoshis
|
|
|
|
//
|
|
|
|
//The fields value and value_msat are mutually exclusive.
|
2019-01-15 14:11:22 +03:00
|
|
|
Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-11-15 10:59:14 +03:00
|
|
|
//The value of this invoice in millisatoshis
|
|
|
|
//
|
|
|
|
//The fields value and value_msat are mutually exclusive.
|
2020-02-11 15:57:40 +03:00
|
|
|
ValueMsat int64 `protobuf:"varint,10,opt,name=value_msat,json=valueMsat,proto3" json:"value_msat,omitempty"`
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//Hash (SHA-256) of a description of the payment. Used if the description of
|
|
|
|
//payment (memo) is too long to naturally fit within the description field
|
|
|
|
//of an encoded payment request.
|
2020-02-11 15:57:40 +03:00
|
|
|
DescriptionHash []byte `protobuf:"bytes,4,opt,name=description_hash,json=descriptionHash,proto3" json:"description_hash,omitempty"`
|
2020-05-06 17:51:14 +03:00
|
|
|
// Payment request expiry time in seconds. Default is 3600 (1 hour).
|
2019-01-15 14:11:22 +03:00
|
|
|
Expiry int64 `protobuf:"varint,5,opt,name=expiry,proto3" json:"expiry,omitempty"`
|
2020-05-06 17:51:14 +03:00
|
|
|
// Fallback on-chain address.
|
2020-02-11 15:57:40 +03:00
|
|
|
FallbackAddr string `protobuf:"bytes,6,opt,name=fallback_addr,json=fallbackAddr,proto3" json:"fallback_addr,omitempty"`
|
2020-05-06 17:51:14 +03:00
|
|
|
// Delta to use for the time-lock of the CLTV extended to the final hop.
|
2020-02-11 15:57:40 +03:00
|
|
|
CltvExpiry uint64 `protobuf:"varint,7,opt,name=cltv_expiry,json=cltvExpiry,proto3" json:"cltv_expiry,omitempty"`
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//Route hints that can each be individually used to assist in reaching the
|
|
|
|
//invoice's destination.
|
2020-02-11 15:57:40 +03:00
|
|
|
RouteHints []*lnrpc.RouteHint `protobuf:"bytes,8,rep,name=route_hints,json=routeHints,proto3" json:"route_hints,omitempty"`
|
2020-05-06 17:51:14 +03:00
|
|
|
// Whether this invoice should include routing hints for private channels.
|
2021-04-28 16:30:59 +03:00
|
|
|
Private bool `protobuf:"varint,9,opt,name=private,proto3" json:"private,omitempty"`
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceRequest) Reset() {
|
|
|
|
*x = AddHoldInvoiceRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[2]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (*AddHoldInvoiceRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *AddHoldInvoiceRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[2]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Deprecated: Use AddHoldInvoiceRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*AddHoldInvoiceRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{2}
|
|
|
|
}
|
2019-01-15 14:11:22 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceRequest) GetMemo() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Memo
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceRequest) GetHash() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Hash
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceRequest) GetValue() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Value
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceRequest) GetValueMsat() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.ValueMsat
|
2019-11-15 10:59:14 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceRequest) GetDescriptionHash() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.DescriptionHash
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceRequest) GetExpiry() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Expiry
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceRequest) GetFallbackAddr() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.FallbackAddr
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceRequest) GetCltvExpiry() uint64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.CltvExpiry
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceRequest) GetRouteHints() []*lnrpc.RouteHint {
|
|
|
|
if x != nil {
|
|
|
|
return x.RouteHints
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceRequest) GetPrivate() bool {
|
|
|
|
if x != nil {
|
|
|
|
return x.Private
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddHoldInvoiceResp struct {
|
2021-04-28 16:30:59 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//A bare-bones invoice for a payment within the Lightning Network. With the
|
|
|
|
//details of the invoice, the sender has all the data necessary to send a
|
|
|
|
//payment to the recipient.
|
2021-04-28 16:30:59 +03:00
|
|
|
PaymentRequest string `protobuf:"bytes,1,opt,name=payment_request,json=paymentRequest,proto3" json:"payment_request,omitempty"`
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceResp) Reset() {
|
|
|
|
*x = AddHoldInvoiceResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[3]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (*AddHoldInvoiceResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *AddHoldInvoiceResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[3]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Deprecated: Use AddHoldInvoiceResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*AddHoldInvoiceResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{3}
|
|
|
|
}
|
2019-01-15 14:11:22 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *AddHoldInvoiceResp) GetPaymentRequest() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.PaymentRequest
|
2019-01-15 14:11:22 +03:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-02-11 14:02:39 +03:00
|
|
|
type SettleInvoiceMsg struct {
|
2021-04-28 16:30:59 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// Externally discovered pre-image that should be used to settle the hold
|
|
|
|
// invoice.
|
2021-04-28 16:30:59 +03:00
|
|
|
Preimage []byte `protobuf:"bytes,1,opt,name=preimage,proto3" json:"preimage,omitempty"`
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *SettleInvoiceMsg) Reset() {
|
|
|
|
*x = SettleInvoiceMsg{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[4]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *SettleInvoiceMsg) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (*SettleInvoiceMsg) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *SettleInvoiceMsg) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[4]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Deprecated: Use SettleInvoiceMsg.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SettleInvoiceMsg) Descriptor() ([]byte, []int) {
|
|
|
|
return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{4}
|
|
|
|
}
|
2019-02-11 14:02:39 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *SettleInvoiceMsg) GetPreimage() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.Preimage
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type SettleInvoiceResp struct {
|
2021-04-28 16:30:59 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *SettleInvoiceResp) Reset() {
|
|
|
|
*x = SettleInvoiceResp{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[5]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *SettleInvoiceResp) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (*SettleInvoiceResp) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *SettleInvoiceResp) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[5]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-02-11 14:02:39 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Deprecated: Use SettleInvoiceResp.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SettleInvoiceResp) Descriptor() ([]byte, []int) {
|
|
|
|
return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{5}
|
|
|
|
}
|
2019-02-11 14:02:39 +03:00
|
|
|
|
2019-04-27 12:30:26 +03:00
|
|
|
type SubscribeSingleInvoiceRequest struct {
|
2021-04-28 16:30:59 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
2020-05-06 17:51:14 +03:00
|
|
|
// Hash corresponding to the (hold) invoice to subscribe to.
|
2021-04-28 16:30:59 +03:00
|
|
|
RHash []byte `protobuf:"bytes,2,opt,name=r_hash,json=rHash,proto3" json:"r_hash,omitempty"`
|
2019-04-27 12:30:26 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *SubscribeSingleInvoiceRequest) Reset() {
|
|
|
|
*x = SubscribeSingleInvoiceRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[6]
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
2019-04-27 12:30:26 +03:00
|
|
|
}
|
2019-05-15 16:07:30 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *SubscribeSingleInvoiceRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
2019-04-27 12:30:26 +03:00
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
|
|
|
|
func (*SubscribeSingleInvoiceRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *SubscribeSingleInvoiceRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_invoicesrpc_invoices_proto_msgTypes[6]
|
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
2019-04-27 12:30:26 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
// Deprecated: Use SubscribeSingleInvoiceRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*SubscribeSingleInvoiceRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_invoicesrpc_invoices_proto_rawDescGZIP(), []int{6}
|
|
|
|
}
|
2019-04-27 12:30:26 +03:00
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (x *SubscribeSingleInvoiceRequest) GetRHash() []byte {
|
|
|
|
if x != nil {
|
|
|
|
return x.RHash
|
2019-04-27 12:30:26 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
var File_invoicesrpc_invoices_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_invoicesrpc_invoices_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x1a, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2f, 0x69, 0x6e,
|
|
|
|
0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x69, 0x6e,
|
|
|
|
0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x1a, 0x09, 0x72, 0x70, 0x63, 0x2e, 0x70,
|
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x35, 0x0a, 0x10, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x49, 0x6e,
|
|
|
|
0x76, 0x6f, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6d,
|
|
|
|
0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b,
|
|
|
|
0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x22, 0x13, 0x0a, 0x11, 0x43,
|
|
|
|
0x61, 0x6e, 0x63, 0x65, 0x6c, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70,
|
|
|
|
0x22, 0xca, 0x02, 0x0a, 0x15, 0x41, 0x64, 0x64, 0x48, 0x6f, 0x6c, 0x64, 0x49, 0x6e, 0x76, 0x6f,
|
|
|
|
0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65,
|
|
|
|
0x6d, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, 0x6d, 0x6f, 0x12, 0x12,
|
|
|
|
0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61,
|
|
|
|
0x73, 0x68, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
|
|
|
|
0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75,
|
|
|
|
0x65, 0x5f, 0x6d, 0x73, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x76, 0x61,
|
|
|
|
0x6c, 0x75, 0x65, 0x4d, 0x73, 0x61, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, 0x72,
|
|
|
|
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
|
|
0x0c, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x61,
|
|
|
|
0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x05, 0x20, 0x01,
|
|
|
|
0x28, 0x03, 0x52, 0x06, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x61,
|
|
|
|
0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x0c, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x41, 0x64, 0x64, 0x72, 0x12,
|
|
|
|
0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x74, 0x76, 0x5f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x79, 0x18, 0x07,
|
|
|
|
0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x63, 0x6c, 0x74, 0x76, 0x45, 0x78, 0x70, 0x69, 0x72, 0x79,
|
|
|
|
0x12, 0x31, 0x0a, 0x0b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x73, 0x18,
|
|
|
|
0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x6f,
|
|
|
|
0x75, 0x74, 0x65, 0x48, 0x69, 0x6e, 0x74, 0x52, 0x0a, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x48, 0x69,
|
|
|
|
0x6e, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x18, 0x09,
|
|
|
|
0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x22, 0x3d, 0x0a,
|
|
|
|
0x12, 0x41, 0x64, 0x64, 0x48, 0x6f, 0x6c, 0x64, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52,
|
|
|
|
0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x72,
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x61,
|
|
|
|
0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x2e, 0x0a, 0x10,
|
|
|
|
0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67,
|
|
|
|
0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x65, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x13, 0x0a, 0x11,
|
|
|
|
0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73,
|
|
|
|
0x70, 0x22, 0x3c, 0x0a, 0x1d, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x69,
|
|
|
|
0x6e, 0x67, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x0c, 0x52, 0x05, 0x72, 0x48, 0x61, 0x73, 0x68, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x32,
|
|
|
|
0xd9, 0x02, 0x0a, 0x08, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x12, 0x56, 0x0a, 0x16,
|
|
|
|
0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x49,
|
|
|
|
0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x2a, 0x2e, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65,
|
|
|
|
0x73, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x53, 0x69,
|
|
|
|
0x6e, 0x67, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x69,
|
|
|
|
0x63, 0x65, 0x30, 0x01, 0x12, 0x4e, 0x0a, 0x0d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x49, 0x6e,
|
|
|
|
0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73,
|
|
|
|
0x72, 0x70, 0x63, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63,
|
|
|
|
0x65, 0x4d, 0x73, 0x67, 0x1a, 0x1e, 0x2e, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72,
|
|
|
|
0x70, 0x63, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65,
|
|
|
|
0x52, 0x65, 0x73, 0x70, 0x12, 0x55, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x48, 0x6f, 0x6c, 0x64, 0x49,
|
|
|
|
0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65,
|
|
|
|
0x73, 0x72, 0x70, 0x63, 0x2e, 0x41, 0x64, 0x64, 0x48, 0x6f, 0x6c, 0x64, 0x49, 0x6e, 0x76, 0x6f,
|
|
|
|
0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x69, 0x6e, 0x76,
|
|
|
|
0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2e, 0x41, 0x64, 0x64, 0x48, 0x6f, 0x6c, 0x64,
|
|
|
|
0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4e, 0x0a, 0x0d, 0x53,
|
|
|
|
0x65, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x69,
|
|
|
|
0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x6c,
|
|
|
|
0x65, 0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x4d, 0x73, 0x67, 0x1a, 0x1e, 0x2e, 0x69, 0x6e,
|
|
|
|
0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65,
|
|
|
|
0x49, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x42, 0x33, 0x5a, 0x31, 0x67,
|
|
|
|
0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x6e,
|
|
|
|
0x69, 0x6e, 0x67, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x6c, 0x6e, 0x64, 0x2f, 0x6c,
|
|
|
|
0x6e, 0x72, 0x70, 0x63, 0x2f, 0x69, 0x6e, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x73, 0x72, 0x70, 0x63,
|
|
|
|
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
file_invoicesrpc_invoices_proto_rawDescOnce sync.Once
|
|
|
|
file_invoicesrpc_invoices_proto_rawDescData = file_invoicesrpc_invoices_proto_rawDesc
|
|
|
|
)
|
|
|
|
|
|
|
|
func file_invoicesrpc_invoices_proto_rawDescGZIP() []byte {
|
|
|
|
file_invoicesrpc_invoices_proto_rawDescOnce.Do(func() {
|
|
|
|
file_invoicesrpc_invoices_proto_rawDescData = protoimpl.X.CompressGZIP(file_invoicesrpc_invoices_proto_rawDescData)
|
|
|
|
})
|
|
|
|
return file_invoicesrpc_invoices_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
|
|
|
var file_invoicesrpc_invoices_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
|
|
var file_invoicesrpc_invoices_proto_goTypes = []interface{}{
|
|
|
|
(*CancelInvoiceMsg)(nil), // 0: invoicesrpc.CancelInvoiceMsg
|
|
|
|
(*CancelInvoiceResp)(nil), // 1: invoicesrpc.CancelInvoiceResp
|
|
|
|
(*AddHoldInvoiceRequest)(nil), // 2: invoicesrpc.AddHoldInvoiceRequest
|
|
|
|
(*AddHoldInvoiceResp)(nil), // 3: invoicesrpc.AddHoldInvoiceResp
|
|
|
|
(*SettleInvoiceMsg)(nil), // 4: invoicesrpc.SettleInvoiceMsg
|
|
|
|
(*SettleInvoiceResp)(nil), // 5: invoicesrpc.SettleInvoiceResp
|
|
|
|
(*SubscribeSingleInvoiceRequest)(nil), // 6: invoicesrpc.SubscribeSingleInvoiceRequest
|
|
|
|
(*lnrpc.RouteHint)(nil), // 7: lnrpc.RouteHint
|
|
|
|
(*lnrpc.Invoice)(nil), // 8: lnrpc.Invoice
|
|
|
|
}
|
|
|
|
var file_invoicesrpc_invoices_proto_depIdxs = []int32{
|
|
|
|
7, // 0: invoicesrpc.AddHoldInvoiceRequest.route_hints:type_name -> lnrpc.RouteHint
|
|
|
|
6, // 1: invoicesrpc.Invoices.SubscribeSingleInvoice:input_type -> invoicesrpc.SubscribeSingleInvoiceRequest
|
|
|
|
0, // 2: invoicesrpc.Invoices.CancelInvoice:input_type -> invoicesrpc.CancelInvoiceMsg
|
|
|
|
2, // 3: invoicesrpc.Invoices.AddHoldInvoice:input_type -> invoicesrpc.AddHoldInvoiceRequest
|
|
|
|
4, // 4: invoicesrpc.Invoices.SettleInvoice:input_type -> invoicesrpc.SettleInvoiceMsg
|
|
|
|
8, // 5: invoicesrpc.Invoices.SubscribeSingleInvoice:output_type -> lnrpc.Invoice
|
|
|
|
1, // 6: invoicesrpc.Invoices.CancelInvoice:output_type -> invoicesrpc.CancelInvoiceResp
|
|
|
|
3, // 7: invoicesrpc.Invoices.AddHoldInvoice:output_type -> invoicesrpc.AddHoldInvoiceResp
|
|
|
|
5, // 8: invoicesrpc.Invoices.SettleInvoice:output_type -> invoicesrpc.SettleInvoiceResp
|
|
|
|
5, // [5:9] is the sub-list for method output_type
|
|
|
|
1, // [1:5] is the sub-list for method input_type
|
|
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
|
|
0, // [0:1] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { file_invoicesrpc_invoices_proto_init() }
|
|
|
|
func file_invoicesrpc_invoices_proto_init() {
|
|
|
|
if File_invoicesrpc_invoices_proto != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
file_invoicesrpc_invoices_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*CancelInvoiceMsg); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_invoicesrpc_invoices_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*CancelInvoiceResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_invoicesrpc_invoices_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*AddHoldInvoiceRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_invoicesrpc_invoices_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*AddHoldInvoiceResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_invoicesrpc_invoices_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*SettleInvoiceMsg); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_invoicesrpc_invoices_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*SettleInvoiceResp); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
file_invoicesrpc_invoices_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*SubscribeSingleInvoiceRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
RawDescriptor: file_invoicesrpc_invoices_proto_rawDesc,
|
|
|
|
NumEnums: 0,
|
|
|
|
NumMessages: 7,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
|
|
|
GoTypes: file_invoicesrpc_invoices_proto_goTypes,
|
|
|
|
DependencyIndexes: file_invoicesrpc_invoices_proto_depIdxs,
|
|
|
|
MessageInfos: file_invoicesrpc_invoices_proto_msgTypes,
|
|
|
|
}.Build()
|
|
|
|
File_invoicesrpc_invoices_proto = out.File
|
|
|
|
file_invoicesrpc_invoices_proto_rawDesc = nil
|
|
|
|
file_invoicesrpc_invoices_proto_goTypes = nil
|
|
|
|
file_invoicesrpc_invoices_proto_depIdxs = nil
|
2019-05-15 16:07:30 +03:00
|
|
|
}
|
|
|
|
|
2018-12-20 13:42:28 +03:00
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ context.Context
|
2021-04-28 16:30:59 +03:00
|
|
|
var _ grpc.ClientConnInterface
|
2018-12-20 13:42:28 +03:00
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
2021-04-28 16:30:59 +03:00
|
|
|
const _ = grpc.SupportPackageIsVersion6
|
2018-12-20 13:42:28 +03:00
|
|
|
|
|
|
|
// InvoicesClient is the client API for Invoices service.
|
|
|
|
//
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
type InvoicesClient interface {
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//SubscribeSingleInvoice returns a uni-directional stream (server -> client)
|
|
|
|
//to notify the client of state transitions of the specified invoice.
|
|
|
|
//Initially the current invoice state is always sent out.
|
2019-04-27 12:30:26 +03:00
|
|
|
SubscribeSingleInvoice(ctx context.Context, in *SubscribeSingleInvoiceRequest, opts ...grpc.CallOption) (Invoices_SubscribeSingleInvoiceClient, error)
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//CancelInvoice cancels a currently open invoice. If the invoice is already
|
|
|
|
//canceled, this call will succeed. If the invoice is already settled, it will
|
|
|
|
//fail.
|
2019-01-11 13:19:16 +03:00
|
|
|
CancelInvoice(ctx context.Context, in *CancelInvoiceMsg, opts ...grpc.CallOption) (*CancelInvoiceResp, error)
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
|
|
|
|
//supplied in the request.
|
2019-01-15 14:11:22 +03:00
|
|
|
AddHoldInvoice(ctx context.Context, in *AddHoldInvoiceRequest, opts ...grpc.CallOption) (*AddHoldInvoiceResp, error)
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//SettleInvoice settles an accepted invoice. If the invoice is already
|
|
|
|
//settled, this call will succeed.
|
2019-02-11 14:02:39 +03:00
|
|
|
SettleInvoice(ctx context.Context, in *SettleInvoiceMsg, opts ...grpc.CallOption) (*SettleInvoiceResp, error)
|
2018-12-20 13:42:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type invoicesClient struct {
|
2021-04-28 16:30:59 +03:00
|
|
|
cc grpc.ClientConnInterface
|
2018-12-20 13:42:28 +03:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func NewInvoicesClient(cc grpc.ClientConnInterface) InvoicesClient {
|
2018-12-20 13:42:28 +03:00
|
|
|
return &invoicesClient{cc}
|
|
|
|
}
|
|
|
|
|
2019-04-27 12:30:26 +03:00
|
|
|
func (c *invoicesClient) SubscribeSingleInvoice(ctx context.Context, in *SubscribeSingleInvoiceRequest, opts ...grpc.CallOption) (Invoices_SubscribeSingleInvoiceClient, error) {
|
2019-01-03 21:15:14 +03:00
|
|
|
stream, err := c.cc.NewStream(ctx, &_Invoices_serviceDesc.Streams[0], "/invoicesrpc.Invoices/SubscribeSingleInvoice", opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
x := &invoicesSubscribeSingleInvoiceClient{stream}
|
|
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return x, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Invoices_SubscribeSingleInvoiceClient interface {
|
|
|
|
Recv() (*lnrpc.Invoice, error)
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type invoicesSubscribeSingleInvoiceClient struct {
|
|
|
|
grpc.ClientStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *invoicesSubscribeSingleInvoiceClient) Recv() (*lnrpc.Invoice, error) {
|
|
|
|
m := new(lnrpc.Invoice)
|
|
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return m, nil
|
|
|
|
}
|
|
|
|
|
2019-01-11 13:19:16 +03:00
|
|
|
func (c *invoicesClient) CancelInvoice(ctx context.Context, in *CancelInvoiceMsg, opts ...grpc.CallOption) (*CancelInvoiceResp, error) {
|
|
|
|
out := new(CancelInvoiceResp)
|
|
|
|
err := c.cc.Invoke(ctx, "/invoicesrpc.Invoices/CancelInvoice", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-01-15 14:11:22 +03:00
|
|
|
func (c *invoicesClient) AddHoldInvoice(ctx context.Context, in *AddHoldInvoiceRequest, opts ...grpc.CallOption) (*AddHoldInvoiceResp, error) {
|
|
|
|
out := new(AddHoldInvoiceResp)
|
|
|
|
err := c.cc.Invoke(ctx, "/invoicesrpc.Invoices/AddHoldInvoice", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2019-02-11 14:02:39 +03:00
|
|
|
func (c *invoicesClient) SettleInvoice(ctx context.Context, in *SettleInvoiceMsg, opts ...grpc.CallOption) (*SettleInvoiceResp, error) {
|
|
|
|
out := new(SettleInvoiceResp)
|
|
|
|
err := c.cc.Invoke(ctx, "/invoicesrpc.Invoices/SettleInvoice", in, out, opts...)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
|
2018-12-20 13:42:28 +03:00
|
|
|
// InvoicesServer is the server API for Invoices service.
|
|
|
|
type InvoicesServer interface {
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//SubscribeSingleInvoice returns a uni-directional stream (server -> client)
|
|
|
|
//to notify the client of state transitions of the specified invoice.
|
|
|
|
//Initially the current invoice state is always sent out.
|
2019-04-27 12:30:26 +03:00
|
|
|
SubscribeSingleInvoice(*SubscribeSingleInvoiceRequest, Invoices_SubscribeSingleInvoiceServer) error
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//CancelInvoice cancels a currently open invoice. If the invoice is already
|
|
|
|
//canceled, this call will succeed. If the invoice is already settled, it will
|
|
|
|
//fail.
|
2019-01-11 13:19:16 +03:00
|
|
|
CancelInvoice(context.Context, *CancelInvoiceMsg) (*CancelInvoiceResp, error)
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//AddHoldInvoice creates a hold invoice. It ties the invoice to the hash
|
|
|
|
//supplied in the request.
|
2019-01-15 14:11:22 +03:00
|
|
|
AddHoldInvoice(context.Context, *AddHoldInvoiceRequest) (*AddHoldInvoiceResp, error)
|
2020-05-06 17:51:14 +03:00
|
|
|
//
|
2019-05-15 16:07:30 +03:00
|
|
|
//SettleInvoice settles an accepted invoice. If the invoice is already
|
|
|
|
//settled, this call will succeed.
|
2019-02-11 14:02:39 +03:00
|
|
|
SettleInvoice(context.Context, *SettleInvoiceMsg) (*SettleInvoiceResp, error)
|
2018-12-20 13:42:28 +03:00
|
|
|
}
|
|
|
|
|
2020-05-28 14:07:31 +03:00
|
|
|
// UnimplementedInvoicesServer can be embedded to have forward compatible implementations.
|
|
|
|
type UnimplementedInvoicesServer struct {
|
|
|
|
}
|
|
|
|
|
2021-04-28 16:30:59 +03:00
|
|
|
func (*UnimplementedInvoicesServer) SubscribeSingleInvoice(*SubscribeSingleInvoiceRequest, Invoices_SubscribeSingleInvoiceServer) error {
|
2020-05-28 14:07:31 +03:00
|
|
|
return status.Errorf(codes.Unimplemented, "method SubscribeSingleInvoice not implemented")
|
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
func (*UnimplementedInvoicesServer) CancelInvoice(context.Context, *CancelInvoiceMsg) (*CancelInvoiceResp, error) {
|
2020-05-28 14:07:31 +03:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CancelInvoice not implemented")
|
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
func (*UnimplementedInvoicesServer) AddHoldInvoice(context.Context, *AddHoldInvoiceRequest) (*AddHoldInvoiceResp, error) {
|
2020-05-28 14:07:31 +03:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method AddHoldInvoice not implemented")
|
|
|
|
}
|
2021-04-28 16:30:59 +03:00
|
|
|
func (*UnimplementedInvoicesServer) SettleInvoice(context.Context, *SettleInvoiceMsg) (*SettleInvoiceResp, error) {
|
2020-05-28 14:07:31 +03:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SettleInvoice not implemented")
|
|
|
|
}
|
|
|
|
|
2018-12-20 13:42:28 +03:00
|
|
|
func RegisterInvoicesServer(s *grpc.Server, srv InvoicesServer) {
|
|
|
|
s.RegisterService(&_Invoices_serviceDesc, srv)
|
|
|
|
}
|
|
|
|
|
2019-01-03 21:15:14 +03:00
|
|
|
func _Invoices_SubscribeSingleInvoice_Handler(srv interface{}, stream grpc.ServerStream) error {
|
2019-04-27 12:30:26 +03:00
|
|
|
m := new(SubscribeSingleInvoiceRequest)
|
2019-01-03 21:15:14 +03:00
|
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return srv.(InvoicesServer).SubscribeSingleInvoice(m, &invoicesSubscribeSingleInvoiceServer{stream})
|
|
|
|
}
|
|
|
|
|
|
|
|
type Invoices_SubscribeSingleInvoiceServer interface {
|
|
|
|
Send(*lnrpc.Invoice) error
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
type invoicesSubscribeSingleInvoiceServer struct {
|
|
|
|
grpc.ServerStream
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *invoicesSubscribeSingleInvoiceServer) Send(m *lnrpc.Invoice) error {
|
|
|
|
return x.ServerStream.SendMsg(m)
|
|
|
|
}
|
|
|
|
|
2019-01-11 13:19:16 +03:00
|
|
|
func _Invoices_CancelInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(CancelInvoiceMsg)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(InvoicesServer).CancelInvoice(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/invoicesrpc.Invoices/CancelInvoice",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(InvoicesServer).CancelInvoice(ctx, req.(*CancelInvoiceMsg))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-01-15 14:11:22 +03:00
|
|
|
func _Invoices_AddHoldInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(AddHoldInvoiceRequest)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(InvoicesServer).AddHoldInvoice(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/invoicesrpc.Invoices/AddHoldInvoice",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(InvoicesServer).AddHoldInvoice(ctx, req.(*AddHoldInvoiceRequest))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2019-02-11 14:02:39 +03:00
|
|
|
func _Invoices_SettleInvoice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(SettleInvoiceMsg)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
if interceptor == nil {
|
|
|
|
return srv.(InvoicesServer).SettleInvoice(ctx, in)
|
|
|
|
}
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
Server: srv,
|
|
|
|
FullMethod: "/invoicesrpc.Invoices/SettleInvoice",
|
|
|
|
}
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
return srv.(InvoicesServer).SettleInvoice(ctx, req.(*SettleInvoiceMsg))
|
|
|
|
}
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
|
2018-12-20 13:42:28 +03:00
|
|
|
var _Invoices_serviceDesc = grpc.ServiceDesc{
|
|
|
|
ServiceName: "invoicesrpc.Invoices",
|
|
|
|
HandlerType: (*InvoicesServer)(nil),
|
2019-01-11 13:19:16 +03:00
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
{
|
|
|
|
MethodName: "CancelInvoice",
|
|
|
|
Handler: _Invoices_CancelInvoice_Handler,
|
|
|
|
},
|
2019-01-15 14:11:22 +03:00
|
|
|
{
|
|
|
|
MethodName: "AddHoldInvoice",
|
|
|
|
Handler: _Invoices_AddHoldInvoice_Handler,
|
|
|
|
},
|
2019-02-11 14:02:39 +03:00
|
|
|
{
|
|
|
|
MethodName: "SettleInvoice",
|
|
|
|
Handler: _Invoices_SettleInvoice_Handler,
|
|
|
|
},
|
2019-01-11 13:19:16 +03:00
|
|
|
},
|
2019-01-03 21:15:14 +03:00
|
|
|
Streams: []grpc.StreamDesc{
|
|
|
|
{
|
|
|
|
StreamName: "SubscribeSingleInvoice",
|
|
|
|
Handler: _Invoices_SubscribeSingleInvoice_Handler,
|
|
|
|
ServerStreams: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Metadata: "invoicesrpc/invoices.proto",
|
2018-12-20 13:42:28 +03:00
|
|
|
}
|