From 7113dc54e545d0ae0e3284e75fbac8cc3c2c8042 Mon Sep 17 00:00:00 2001 From: skeris Date: Thu, 14 Aug 2025 00:27:14 +0300 Subject: [PATCH] fix: buf --- buf.gen.yaml | 3 + buf.yaml | 4 - internal/proto/callback/service.pb.go | 272 ++++++++++ internal/proto/callback/service_grpc.pb.go | 196 +++++++ internal/proto/treasurer/service.pb.go | 537 ++++++-------------- internal/proto/treasurer/service_grpc.pb.go | 83 ++- 6 files changed, 695 insertions(+), 400 deletions(-) delete mode 100644 buf.yaml create mode 100644 internal/proto/callback/service.pb.go create mode 100644 internal/proto/callback/service_grpc.pb.go diff --git a/buf.gen.yaml b/buf.gen.yaml index 18f30cf..07a6dd7 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -2,7 +2,10 @@ version: v1 plugins: - name: go out: internal/proto + opt: + - paths=source_relative - name: go-grpc out: internal/proto opt: - require_unimplemented_servers=false + - paths=source_relative diff --git a/buf.yaml b/buf.yaml deleted file mode 100644 index 8c4a662..0000000 --- a/buf.yaml +++ /dev/null @@ -1,4 +0,0 @@ -version: v1 -lint: - use: - - DEFAULT diff --git a/internal/proto/callback/service.pb.go b/internal/proto/callback/service.pb.go new file mode 100644 index 0000000..544b5d1 --- /dev/null +++ b/internal/proto/callback/service.pb.go @@ -0,0 +1,272 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.7 +// protoc (unknown) +// source: callback/service.proto + +package payment_callback + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +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) +) + +type Event struct { + state protoimpl.MessageState `protogen:"open.v1"` + Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` + Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` + Payment *Payment `protobuf:"bytes,3,opt,name=Payment,proto3" json:"Payment,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Event) Reset() { + *x = Event{} + mi := &file_callback_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Event) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Event) ProtoMessage() {} + +func (x *Event) ProtoReflect() protoreflect.Message { + mi := &file_callback_service_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Event.ProtoReflect.Descriptor instead. +func (*Event) Descriptor() ([]byte, []int) { + return file_callback_service_proto_rawDescGZIP(), []int{0} +} + +func (x *Event) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *Event) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *Event) GetPayment() *Payment { + if x != nil { + return x.Payment + } + return nil +} + +type Payment struct { + state protoimpl.MessageState `protogen:"open.v1"` + ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` + UserID string `protobuf:"bytes,2,opt,name=UserID,proto3" json:"UserID,omitempty"` + PaymentID string `protobuf:"bytes,3,opt,name=PaymentID,proto3" json:"PaymentID,omitempty"` + IdempotencePaymentID string `protobuf:"bytes,4,opt,name=IdempotencePaymentID,proto3" json:"IdempotencePaymentID,omitempty"` + Amount int64 `protobuf:"varint,5,opt,name=Amount,proto3" json:"Amount,omitempty"` + Currency string `protobuf:"bytes,6,opt,name=Currency,proto3" json:"Currency,omitempty"` + Type string `protobuf:"bytes,7,opt,name=Type,proto3" json:"Type,omitempty"` + Status string `protobuf:"bytes,8,opt,name=Status,proto3" json:"Status,omitempty"` + Completed bool `protobuf:"varint,9,opt,name=Completed,proto3" json:"Completed,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Payment) Reset() { + *x = Payment{} + mi := &file_callback_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Payment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Payment) ProtoMessage() {} + +func (x *Payment) ProtoReflect() protoreflect.Message { + mi := &file_callback_service_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Payment.ProtoReflect.Descriptor instead. +func (*Payment) Descriptor() ([]byte, []int) { + return file_callback_service_proto_rawDescGZIP(), []int{1} +} + +func (x *Payment) GetID() string { + if x != nil { + return x.ID + } + return "" +} + +func (x *Payment) GetUserID() string { + if x != nil { + return x.UserID + } + return "" +} + +func (x *Payment) GetPaymentID() string { + if x != nil { + return x.PaymentID + } + return "" +} + +func (x *Payment) GetIdempotencePaymentID() string { + if x != nil { + return x.IdempotencePaymentID + } + return "" +} + +func (x *Payment) GetAmount() int64 { + if x != nil { + return x.Amount + } + return 0 +} + +func (x *Payment) GetCurrency() string { + if x != nil { + return x.Currency + } + return "" +} + +func (x *Payment) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *Payment) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *Payment) GetCompleted() bool { + if x != nil { + return x.Completed + } + return false +} + +var File_callback_service_proto protoreflect.FileDescriptor + +const file_callback_service_proto_rawDesc = "" + + "\n" + + "\x16callback/service.proto\x12\x10payment_callback\x1a\x1bgoogle/protobuf/empty.proto\"h\n" + + "\x05Event\x12\x10\n" + + "\x03Key\x18\x01 \x01(\tR\x03Key\x12\x18\n" + + "\aMessage\x18\x02 \x01(\tR\aMessage\x123\n" + + "\aPayment\x18\x03 \x01(\v2\x19.payment_callback.PaymentR\aPayment\"\x81\x02\n" + + "\aPayment\x12\x0e\n" + + "\x02ID\x18\x01 \x01(\tR\x02ID\x12\x16\n" + + "\x06UserID\x18\x02 \x01(\tR\x06UserID\x12\x1c\n" + + "\tPaymentID\x18\x03 \x01(\tR\tPaymentID\x122\n" + + "\x14IdempotencePaymentID\x18\x04 \x01(\tR\x14IdempotencePaymentID\x12\x16\n" + + "\x06Amount\x18\x05 \x01(\x03R\x06Amount\x12\x1a\n" + + "\bCurrency\x18\x06 \x01(\tR\bCurrency\x12\x12\n" + + "\x04Type\x18\a \x01(\tR\x04Type\x12\x16\n" + + "\x06Status\x18\b \x01(\tR\x06Status\x12\x1c\n" + + "\tCompleted\x18\t \x01(\bR\tCompleted2\xdd\x01\n" + + "\x16PaymentCallbackService\x12>\n" + + "\tOnSuccess\x12\x17.payment_callback.Event\x1a\x16.google.protobuf.Empty\"\x00\x12>\n" + + "\tOnFailure\x12\x17.payment_callback.Event\x1a\x16.google.protobuf.Empty\"\x00\x12C\n" + + "\x0eOnCartPurchase\x12\x17.payment_callback.Event\x1a\x16.google.protobuf.Empty\"\x00B\x14Z\x12./payment_callbackb\x06proto3" + +var ( + file_callback_service_proto_rawDescOnce sync.Once + file_callback_service_proto_rawDescData []byte +) + +func file_callback_service_proto_rawDescGZIP() []byte { + file_callback_service_proto_rawDescOnce.Do(func() { + file_callback_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_callback_service_proto_rawDesc), len(file_callback_service_proto_rawDesc))) + }) + return file_callback_service_proto_rawDescData +} + +var file_callback_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_callback_service_proto_goTypes = []any{ + (*Event)(nil), // 0: payment_callback.Event + (*Payment)(nil), // 1: payment_callback.Payment + (*emptypb.Empty)(nil), // 2: google.protobuf.Empty +} +var file_callback_service_proto_depIdxs = []int32{ + 1, // 0: payment_callback.Event.Payment:type_name -> payment_callback.Payment + 0, // 1: payment_callback.PaymentCallbackService.OnSuccess:input_type -> payment_callback.Event + 0, // 2: payment_callback.PaymentCallbackService.OnFailure:input_type -> payment_callback.Event + 0, // 3: payment_callback.PaymentCallbackService.OnCartPurchase:input_type -> payment_callback.Event + 2, // 4: payment_callback.PaymentCallbackService.OnSuccess:output_type -> google.protobuf.Empty + 2, // 5: payment_callback.PaymentCallbackService.OnFailure:output_type -> google.protobuf.Empty + 2, // 6: payment_callback.PaymentCallbackService.OnCartPurchase:output_type -> google.protobuf.Empty + 4, // [4:7] is the sub-list for method output_type + 1, // [1:4] 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_callback_service_proto_init() } +func file_callback_service_proto_init() { + if File_callback_service_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_callback_service_proto_rawDesc), len(file_callback_service_proto_rawDesc)), + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_callback_service_proto_goTypes, + DependencyIndexes: file_callback_service_proto_depIdxs, + MessageInfos: file_callback_service_proto_msgTypes, + }.Build() + File_callback_service_proto = out.File + file_callback_service_proto_goTypes = nil + file_callback_service_proto_depIdxs = nil +} diff --git a/internal/proto/callback/service_grpc.pb.go b/internal/proto/callback/service_grpc.pb.go new file mode 100644 index 0000000..39cf797 --- /dev/null +++ b/internal/proto/callback/service_grpc.pb.go @@ -0,0 +1,196 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: callback/service.proto + +package payment_callback + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + emptypb "google.golang.org/protobuf/types/known/emptypb" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 + +const ( + PaymentCallbackService_OnSuccess_FullMethodName = "/payment_callback.PaymentCallbackService/OnSuccess" + PaymentCallbackService_OnFailure_FullMethodName = "/payment_callback.PaymentCallbackService/OnFailure" + PaymentCallbackService_OnCartPurchase_FullMethodName = "/payment_callback.PaymentCallbackService/OnCartPurchase" +) + +// PaymentCallbackServiceClient is the client API for PaymentCallbackService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type PaymentCallbackServiceClient interface { + OnSuccess(ctx context.Context, in *Event, opts ...grpc.CallOption) (*emptypb.Empty, error) + OnFailure(ctx context.Context, in *Event, opts ...grpc.CallOption) (*emptypb.Empty, error) + OnCartPurchase(ctx context.Context, in *Event, opts ...grpc.CallOption) (*emptypb.Empty, error) +} + +type paymentCallbackServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewPaymentCallbackServiceClient(cc grpc.ClientConnInterface) PaymentCallbackServiceClient { + return &paymentCallbackServiceClient{cc} +} + +func (c *paymentCallbackServiceClient) OnSuccess(ctx context.Context, in *Event, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, PaymentCallbackService_OnSuccess_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *paymentCallbackServiceClient) OnFailure(ctx context.Context, in *Event, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, PaymentCallbackService_OnFailure_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *paymentCallbackServiceClient) OnCartPurchase(ctx context.Context, in *Event, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, PaymentCallbackService_OnCartPurchase_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PaymentCallbackServiceServer is the server API for PaymentCallbackService service. +// All implementations should embed UnimplementedPaymentCallbackServiceServer +// for forward compatibility. +type PaymentCallbackServiceServer interface { + OnSuccess(context.Context, *Event) (*emptypb.Empty, error) + OnFailure(context.Context, *Event) (*emptypb.Empty, error) + OnCartPurchase(context.Context, *Event) (*emptypb.Empty, error) +} + +// UnimplementedPaymentCallbackServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPaymentCallbackServiceServer struct{} + +func (UnimplementedPaymentCallbackServiceServer) OnSuccess(context.Context, *Event) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method OnSuccess not implemented") +} +func (UnimplementedPaymentCallbackServiceServer) OnFailure(context.Context, *Event) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method OnFailure not implemented") +} +func (UnimplementedPaymentCallbackServiceServer) OnCartPurchase(context.Context, *Event) (*emptypb.Empty, error) { + return nil, status.Errorf(codes.Unimplemented, "method OnCartPurchase not implemented") +} +func (UnimplementedPaymentCallbackServiceServer) testEmbeddedByValue() {} + +// UnsafePaymentCallbackServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PaymentCallbackServiceServer will +// result in compilation errors. +type UnsafePaymentCallbackServiceServer interface { + mustEmbedUnimplementedPaymentCallbackServiceServer() +} + +func RegisterPaymentCallbackServiceServer(s grpc.ServiceRegistrar, srv PaymentCallbackServiceServer) { + // If the following call pancis, it indicates UnimplementedPaymentCallbackServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } + s.RegisterService(&PaymentCallbackService_ServiceDesc, srv) +} + +func _PaymentCallbackService_OnSuccess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Event) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PaymentCallbackServiceServer).OnSuccess(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PaymentCallbackService_OnSuccess_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PaymentCallbackServiceServer).OnSuccess(ctx, req.(*Event)) + } + return interceptor(ctx, in, info, handler) +} + +func _PaymentCallbackService_OnFailure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Event) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PaymentCallbackServiceServer).OnFailure(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PaymentCallbackService_OnFailure_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PaymentCallbackServiceServer).OnFailure(ctx, req.(*Event)) + } + return interceptor(ctx, in, info, handler) +} + +func _PaymentCallbackService_OnCartPurchase_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(Event) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PaymentCallbackServiceServer).OnCartPurchase(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PaymentCallbackService_OnCartPurchase_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PaymentCallbackServiceServer).OnCartPurchase(ctx, req.(*Event)) + } + return interceptor(ctx, in, info, handler) +} + +// PaymentCallbackService_ServiceDesc is the grpc.ServiceDesc for PaymentCallbackService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PaymentCallbackService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "payment_callback.PaymentCallbackService", + HandlerType: (*PaymentCallbackServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "OnSuccess", + Handler: _PaymentCallbackService_OnSuccess_Handler, + }, + { + MethodName: "OnFailure", + Handler: _PaymentCallbackService_OnFailure_Handler, + }, + { + MethodName: "OnCartPurchase", + Handler: _PaymentCallbackService_OnCartPurchase_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "callback/service.proto", +} diff --git a/internal/proto/treasurer/service.pb.go b/internal/proto/treasurer/service.pb.go index af92733..403de34 100644 --- a/internal/proto/treasurer/service.pb.go +++ b/internal/proto/treasurer/service.pb.go @@ -1,8 +1,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.25.0-devel -// protoc v3.14.0 -// source: service.proto +// protoc-gen-go v1.36.7 +// protoc (unknown) +// source: treasurer/service.proto package treasurer @@ -12,6 +12,7 @@ import ( emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -22,20 +23,17 @@ const ( ) type GetBankCardPaymentLinkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + MainSettings *MainPaymentSettings `protobuf:"bytes,1,opt,name=MainSettings,proto3" json:"MainSettings,omitempty"` unknownFields protoimpl.UnknownFields - - MainSettings *MainPaymentSettings `protobuf:"bytes,1,opt,name=MainSettings,proto3" json:"MainSettings,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetBankCardPaymentLinkRequest) Reset() { *x = GetBankCardPaymentLinkRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_treasurer_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetBankCardPaymentLinkRequest) String() string { @@ -45,8 +43,8 @@ func (x *GetBankCardPaymentLinkRequest) String() string { func (*GetBankCardPaymentLinkRequest) ProtoMessage() {} func (x *GetBankCardPaymentLinkRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_treasurer_service_proto_msgTypes[0] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -58,7 +56,7 @@ func (x *GetBankCardPaymentLinkRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBankCardPaymentLinkRequest.ProtoReflect.Descriptor instead. func (*GetBankCardPaymentLinkRequest) Descriptor() ([]byte, []int) { - return file_service_proto_rawDescGZIP(), []int{0} + return file_treasurer_service_proto_rawDescGZIP(), []int{0} } func (x *GetBankCardPaymentLinkRequest) GetMainSettings() *MainPaymentSettings { @@ -69,20 +67,17 @@ func (x *GetBankCardPaymentLinkRequest) GetMainSettings() *MainPaymentSettings { } type GetPaymentLinkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + MainSettings *MainPaymentSettings `protobuf:"bytes,1,opt,name=MainSettings,proto3" json:"MainSettings,omitempty"` unknownFields protoimpl.UnknownFields - - MainSettings *MainPaymentSettings `protobuf:"bytes,1,opt,name=MainSettings,proto3" json:"MainSettings,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPaymentLinkRequest) Reset() { *x = GetPaymentLinkRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_treasurer_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetPaymentLinkRequest) String() string { @@ -92,8 +87,8 @@ func (x *GetPaymentLinkRequest) String() string { func (*GetPaymentLinkRequest) ProtoMessage() {} func (x *GetPaymentLinkRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_treasurer_service_proto_msgTypes[1] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -105,7 +100,7 @@ func (x *GetPaymentLinkRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPaymentLinkRequest.ProtoReflect.Descriptor instead. func (*GetPaymentLinkRequest) Descriptor() ([]byte, []int) { - return file_service_proto_rawDescGZIP(), []int{1} + return file_treasurer_service_proto_rawDescGZIP(), []int{1} } func (x *GetPaymentLinkRequest) GetMainSettings() *MainPaymentSettings { @@ -116,22 +111,19 @@ func (x *GetPaymentLinkRequest) GetMainSettings() *MainPaymentSettings { } type GetB2BPaymentLinkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MainSettings *MainPaymentSettings `protobuf:"bytes,1,opt,name=MainSettings,proto3" json:"MainSettings,omitempty"` - PaymentPurpose string `protobuf:"bytes,2,opt,name=PaymentPurpose,proto3" json:"PaymentPurpose,omitempty"` - VatData *emptypb.Empty `protobuf:"bytes,3,opt,name=VatData,proto3" json:"VatData,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MainSettings *MainPaymentSettings `protobuf:"bytes,1,opt,name=MainSettings,proto3" json:"MainSettings,omitempty"` + PaymentPurpose string `protobuf:"bytes,2,opt,name=PaymentPurpose,proto3" json:"PaymentPurpose,omitempty"` + VatData *emptypb.Empty `protobuf:"bytes,3,opt,name=VatData,proto3" json:"VatData,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetB2BPaymentLinkRequest) Reset() { *x = GetB2BPaymentLinkRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_treasurer_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetB2BPaymentLinkRequest) String() string { @@ -141,8 +133,8 @@ func (x *GetB2BPaymentLinkRequest) String() string { func (*GetB2BPaymentLinkRequest) ProtoMessage() {} func (x *GetB2BPaymentLinkRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_treasurer_service_proto_msgTypes[2] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -154,7 +146,7 @@ func (x *GetB2BPaymentLinkRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetB2BPaymentLinkRequest.ProtoReflect.Descriptor instead. func (*GetB2BPaymentLinkRequest) Descriptor() ([]byte, []int) { - return file_service_proto_rawDescGZIP(), []int{2} + return file_treasurer_service_proto_rawDescGZIP(), []int{2} } func (x *GetB2BPaymentLinkRequest) GetMainSettings() *MainPaymentSettings { @@ -179,20 +171,17 @@ func (x *GetB2BPaymentLinkRequest) GetVatData() *emptypb.Empty { } type GetPaymentLinkResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RedirectURL string `protobuf:"bytes,1,opt,name=RedirectURL,proto3" json:"RedirectURL,omitempty"` unknownFields protoimpl.UnknownFields - - RedirectURL string `protobuf:"bytes,1,opt,name=RedirectURL,proto3" json:"RedirectURL,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetPaymentLinkResponse) Reset() { *x = GetPaymentLinkResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_treasurer_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GetPaymentLinkResponse) String() string { @@ -202,8 +191,8 @@ func (x *GetPaymentLinkResponse) String() string { func (*GetPaymentLinkResponse) ProtoMessage() {} func (x *GetPaymentLinkResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_treasurer_service_proto_msgTypes[3] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -215,7 +204,7 @@ func (x *GetPaymentLinkResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPaymentLinkResponse.ProtoReflect.Descriptor instead. func (*GetPaymentLinkResponse) Descriptor() ([]byte, []int) { - return file_service_proto_rawDescGZIP(), []int{3} + return file_treasurer_service_proto_rawDescGZIP(), []int{3} } func (x *GetPaymentLinkResponse) GetRedirectURL() string { @@ -226,20 +215,17 @@ func (x *GetPaymentLinkResponse) GetRedirectURL() string { } type DeleteSavedPaymentMethodsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UserID string `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"` unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteSavedPaymentMethodsRequest) Reset() { *x = DeleteSavedPaymentMethodsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_treasurer_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteSavedPaymentMethodsRequest) String() string { @@ -249,8 +235,8 @@ func (x *DeleteSavedPaymentMethodsRequest) String() string { func (*DeleteSavedPaymentMethodsRequest) ProtoMessage() {} func (x *DeleteSavedPaymentMethodsRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_treasurer_service_proto_msgTypes[4] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -262,7 +248,7 @@ func (x *DeleteSavedPaymentMethodsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteSavedPaymentMethodsRequest.ProtoReflect.Descriptor instead. func (*DeleteSavedPaymentMethodsRequest) Descriptor() ([]byte, []int) { - return file_service_proto_rawDescGZIP(), []int{4} + return file_treasurer_service_proto_rawDescGZIP(), []int{4} } func (x *DeleteSavedPaymentMethodsRequest) GetUserID() string { @@ -273,33 +259,30 @@ func (x *DeleteSavedPaymentMethodsRequest) GetUserID() string { } type MainPaymentSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Currency string `protobuf:"bytes,1,opt,name=Currency,proto3" json:"Currency,omitempty"` - Amount int64 `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"` - CallbackHostGRPC []string `protobuf:"bytes,3,rep,name=CallbackHostGRPC,proto3" json:"CallbackHostGRPC,omitempty"` - ReturnURL string `protobuf:"bytes,4,opt,name=ReturnURL,proto3" json:"ReturnURL,omitempty"` - UserID string `protobuf:"bytes,5,opt,name=UserID,proto3" json:"UserID,omitempty"` - ClientIP string `protobuf:"bytes,6,opt,name=ClientIP,proto3" json:"ClientIP,omitempty"` - Customer *Customer `protobuf:"bytes,7,opt,name=Customer,proto3" json:"Customer,omitempty"` - Items []*Item `protobuf:"bytes,8,rep,name=Items,proto3" json:"Items,omitempty"` - Auto bool `protobuf:"varint,9,opt,name=Auto,proto3" json:"Auto,omitempty"` - Recurrent bool `protobuf:"varint,10,opt,name=Recurrent,proto3" json:"Recurrent,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Currency string `protobuf:"bytes,1,opt,name=Currency,proto3" json:"Currency,omitempty"` + Amount int64 `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"` + CallbackHostGRPC []string `protobuf:"bytes,3,rep,name=CallbackHostGRPC,proto3" json:"CallbackHostGRPC,omitempty"` + ReturnURL string `protobuf:"bytes,4,opt,name=ReturnURL,proto3" json:"ReturnURL,omitempty"` + UserID string `protobuf:"bytes,5,opt,name=UserID,proto3" json:"UserID,omitempty"` + ClientIP string `protobuf:"bytes,6,opt,name=ClientIP,proto3" json:"ClientIP,omitempty"` + Customer *Customer `protobuf:"bytes,7,opt,name=Customer,proto3" json:"Customer,omitempty"` + Items []*Item `protobuf:"bytes,8,rep,name=Items,proto3" json:"Items,omitempty"` + Auto bool `protobuf:"varint,9,opt,name=Auto,proto3" json:"Auto,omitempty"` + Recurrent bool `protobuf:"varint,10,opt,name=Recurrent,proto3" json:"Recurrent,omitempty"` // Для крипто-платежей: FromWalletAddress string `protobuf:"bytes,11,opt,name=from_wallet_address,json=fromWalletAddress,proto3" json:"from_wallet_address,omitempty"` ToWalletAddress string `protobuf:"bytes,12,opt,name=to_wallet_address,json=toWalletAddress,proto3" json:"to_wallet_address,omitempty"` CryptoAmount float64 `protobuf:"fixed64,13,opt,name=crypto_amount,json=cryptoAmount,proto3" json:"crypto_amount,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MainPaymentSettings) Reset() { *x = MainPaymentSettings{} - if protoimpl.UnsafeEnabled { - mi := &file_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_treasurer_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MainPaymentSettings) String() string { @@ -309,8 +292,8 @@ func (x *MainPaymentSettings) String() string { func (*MainPaymentSettings) ProtoMessage() {} func (x *MainPaymentSettings) ProtoReflect() protoreflect.Message { - mi := &file_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_treasurer_service_proto_msgTypes[5] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -322,7 +305,7 @@ func (x *MainPaymentSettings) ProtoReflect() protoreflect.Message { // Deprecated: Use MainPaymentSettings.ProtoReflect.Descriptor instead. func (*MainPaymentSettings) Descriptor() ([]byte, []int) { - return file_service_proto_rawDescGZIP(), []int{5} + return file_treasurer_service_proto_rawDescGZIP(), []int{5} } func (x *MainPaymentSettings) GetCurrency() string { @@ -417,23 +400,20 @@ func (x *MainPaymentSettings) GetCryptoAmount() float64 { } type Customer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FullName string `protobuf:"bytes,1,opt,name=FullName,proto3" json:"FullName,omitempty"` + INN string `protobuf:"bytes,2,opt,name=INN,proto3" json:"INN,omitempty"` + Email string `protobuf:"bytes,3,opt,name=Email,proto3" json:"Email,omitempty"` + Phone string `protobuf:"bytes,4,opt,name=Phone,proto3" json:"Phone,omitempty"` unknownFields protoimpl.UnknownFields - - FullName string `protobuf:"bytes,1,opt,name=FullName,proto3" json:"FullName,omitempty"` - INN string `protobuf:"bytes,2,opt,name=INN,proto3" json:"INN,omitempty"` - Email string `protobuf:"bytes,3,opt,name=Email,proto3" json:"Email,omitempty"` - Phone string `protobuf:"bytes,4,opt,name=Phone,proto3" json:"Phone,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Customer) Reset() { *x = Customer{} - if protoimpl.UnsafeEnabled { - mi := &file_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_treasurer_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Customer) String() string { @@ -443,8 +423,8 @@ func (x *Customer) String() string { func (*Customer) ProtoMessage() {} func (x *Customer) ProtoReflect() protoreflect.Message { - mi := &file_service_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_treasurer_service_proto_msgTypes[6] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -456,7 +436,7 @@ func (x *Customer) ProtoReflect() protoreflect.Message { // Deprecated: Use Customer.ProtoReflect.Descriptor instead. func (*Customer) Descriptor() ([]byte, []int) { - return file_service_proto_rawDescGZIP(), []int{6} + return file_treasurer_service_proto_rawDescGZIP(), []int{6} } func (x *Customer) GetFullName() string { @@ -488,24 +468,21 @@ func (x *Customer) GetPhone() string { } type Item struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Description string `protobuf:"bytes,1,opt,name=Description,proto3" json:"Description,omitempty"` + Measure string `protobuf:"bytes,2,opt,name=Measure,proto3" json:"Measure,omitempty"` + Quantity string `protobuf:"bytes,3,opt,name=Quantity,proto3" json:"Quantity,omitempty"` + Money string `protobuf:"bytes,4,opt,name=Money,proto3" json:"Money,omitempty"` + Currency string `protobuf:"bytes,5,opt,name=Currency,proto3" json:"Currency,omitempty"` unknownFields protoimpl.UnknownFields - - Description string `protobuf:"bytes,1,opt,name=Description,proto3" json:"Description,omitempty"` - Measure string `protobuf:"bytes,2,opt,name=Measure,proto3" json:"Measure,omitempty"` - Quantity string `protobuf:"bytes,3,opt,name=Quantity,proto3" json:"Quantity,omitempty"` - Money string `protobuf:"bytes,4,opt,name=Money,proto3" json:"Money,omitempty"` - Currency string `protobuf:"bytes,5,opt,name=Currency,proto3" json:"Currency,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Item) Reset() { *x = Item{} - if protoimpl.UnsafeEnabled { - mi := &file_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_treasurer_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Item) String() string { @@ -515,8 +492,8 @@ func (x *Item) String() string { func (*Item) ProtoMessage() {} func (x *Item) ProtoReflect() protoreflect.Message { - mi := &file_service_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_treasurer_service_proto_msgTypes[7] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -528,7 +505,7 @@ func (x *Item) ProtoReflect() protoreflect.Message { // Deprecated: Use Item.ProtoReflect.Descriptor instead. func (*Item) Descriptor() ([]byte, []int) { - return file_service_proto_rawDescGZIP(), []int{7} + return file_treasurer_service_proto_rawDescGZIP(), []int{7} } func (x *Item) GetDescription() string { @@ -566,156 +543,73 @@ func (x *Item) GetCurrency() string { return "" } -var File_service_proto protoreflect.FileDescriptor +var File_treasurer_service_proto protoreflect.FileDescriptor -var file_service_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x09, 0x74, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, - 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x63, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x42, 0x61, - 0x6e, 0x6b, 0x43, 0x61, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, - 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x0c, 0x4d, 0x61, 0x69, 0x6e, - 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, - 0x2e, 0x74, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x4d, 0x61, 0x69, 0x6e, 0x50, - 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x0c, - 0x4d, 0x61, 0x69, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x5b, 0x0a, 0x15, - 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x0c, 0x4d, 0x61, 0x69, 0x6e, 0x53, 0x65, 0x74, - 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, 0x72, - 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x4d, 0x61, 0x69, 0x6e, 0x50, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x0c, 0x4d, 0x61, 0x69, - 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x18, 0x47, 0x65, - 0x74, 0x42, 0x32, 0x42, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x0c, 0x4d, 0x61, 0x69, 0x6e, 0x53, 0x65, - 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, - 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x4d, 0x61, 0x69, 0x6e, 0x50, 0x61, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x52, 0x0c, 0x4d, 0x61, - 0x69, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x50, 0x61, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x50, 0x75, 0x72, 0x70, 0x6f, - 0x73, 0x65, 0x12, 0x30, 0x0a, 0x07, 0x56, 0x61, 0x74, 0x44, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x07, 0x56, 0x61, 0x74, - 0x44, 0x61, 0x74, 0x61, 0x22, 0x3a, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, - 0x0a, 0x0b, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x52, 0x4c, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x55, 0x52, 0x4c, - 0x22, 0x3a, 0x0a, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x61, 0x76, 0x65, 0x64, 0x50, - 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x22, 0xd2, 0x03, 0x0a, - 0x13, 0x4d, 0x61, 0x69, 0x6e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x74, 0x74, - 0x69, 0x6e, 0x67, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, - 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x43, 0x61, 0x6c, 0x6c, - 0x62, 0x61, 0x63, 0x6b, 0x48, 0x6f, 0x73, 0x74, 0x47, 0x52, 0x50, 0x43, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x10, 0x43, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x48, 0x6f, 0x73, 0x74, - 0x47, 0x52, 0x50, 0x43, 0x12, 0x1c, 0x0a, 0x09, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x55, 0x52, - 0x4c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x52, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x55, - 0x52, 0x4c, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x6c, - 0x69, 0x65, 0x6e, 0x74, 0x49, 0x50, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x43, 0x6c, - 0x69, 0x65, 0x6e, 0x74, 0x49, 0x50, 0x12, 0x2f, 0x0a, 0x08, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x72, 0x65, 0x61, 0x73, - 0x75, 0x72, 0x65, 0x72, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x52, 0x08, 0x43, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, - 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, - 0x65, 0x72, 0x2e, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x12, - 0x0a, 0x04, 0x41, 0x75, 0x74, 0x6f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x41, 0x75, - 0x74, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x52, 0x65, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, - 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x52, 0x65, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, - 0x12, 0x2e, 0x0a, 0x13, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x66, - 0x72, 0x6f, 0x6d, 0x57, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x2a, 0x0a, 0x11, 0x74, 0x6f, 0x5f, 0x77, 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x5f, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x74, 0x6f, 0x57, - 0x61, 0x6c, 0x6c, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x0d, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0d, 0x20, - 0x01, 0x28, 0x01, 0x52, 0x0c, 0x63, 0x72, 0x79, 0x70, 0x74, 0x6f, 0x41, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x22, 0x64, 0x0a, 0x08, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x12, 0x1a, 0x0a, - 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x49, 0x4e, 0x4e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x49, 0x4e, 0x4e, 0x12, 0x14, 0x0a, 0x05, 0x45, - 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x45, 0x6d, 0x61, 0x69, - 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, - 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x4d, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x12, 0x1a, 0x0a, 0x08, - 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x51, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x4d, 0x6f, 0x6e, 0x65, - 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4d, 0x6f, 0x6e, 0x65, 0x79, 0x12, 0x1a, - 0x0a, 0x08, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x32, 0x98, 0x06, 0x0a, 0x10, 0x54, - 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x5f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, - 0x6b, 0x42, 0x61, 0x6e, 0x6b, 0x43, 0x61, 0x72, 0x64, 0x12, 0x20, 0x2e, 0x74, 0x72, 0x65, 0x61, - 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x72, - 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x5f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, - 0x6e, 0x6b, 0x59, 0x6f, 0x6f, 0x4d, 0x6f, 0x6e, 0x65, 0x79, 0x12, 0x20, 0x2e, 0x74, 0x72, 0x65, - 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, - 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x5e, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, - 0x69, 0x6e, 0x6b, 0x54, 0x69, 0x6e, 0x6b, 0x6f, 0x66, 0x66, 0x12, 0x20, 0x2e, 0x74, 0x72, 0x65, - 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, - 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x62, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, - 0x69, 0x6e, 0x6b, 0x53, 0x62, 0x65, 0x72, 0x62, 0x61, 0x6e, 0x6b, 0x42, 0x32, 0x42, 0x12, 0x20, - 0x2e, 0x74, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x21, 0x2e, 0x74, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, - 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x53, 0x42, 0x50, 0x12, 0x20, 0x2e, 0x74, 0x72, 0x65, - 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, - 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x5e, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, - 0x69, 0x6e, 0x6b, 0x53, 0x62, 0x65, 0x72, 0x50, 0x61, 0x79, 0x12, 0x20, 0x2e, 0x74, 0x72, 0x65, - 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, - 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x5e, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4c, - 0x69, 0x6e, 0x6b, 0x41, 0x6c, 0x63, 0x68, 0x65, 0x6d, 0x79, 0x12, 0x20, 0x2e, 0x74, 0x72, 0x65, - 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, - 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x62, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x61, 0x76, 0x65, 0x64, - 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x2b, - 0x2e, 0x74, 0x72, 0x65, 0x61, 0x73, 0x75, 0x72, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x53, 0x61, 0x76, 0x65, 0x64, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x74, 0x72, 0x65, 0x61, 0x73, - 0x75, 0x72, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_treasurer_service_proto_rawDesc = "" + + "\n" + + "\x17treasurer/service.proto\x12\ttreasurer\x1a\x1bgoogle/protobuf/empty.proto\"c\n" + + "\x1dGetBankCardPaymentLinkRequest\x12B\n" + + "\fMainSettings\x18\x01 \x01(\v2\x1e.treasurer.MainPaymentSettingsR\fMainSettings\"[\n" + + "\x15GetPaymentLinkRequest\x12B\n" + + "\fMainSettings\x18\x01 \x01(\v2\x1e.treasurer.MainPaymentSettingsR\fMainSettings\"\xb8\x01\n" + + "\x18GetB2BPaymentLinkRequest\x12B\n" + + "\fMainSettings\x18\x01 \x01(\v2\x1e.treasurer.MainPaymentSettingsR\fMainSettings\x12&\n" + + "\x0ePaymentPurpose\x18\x02 \x01(\tR\x0ePaymentPurpose\x120\n" + + "\aVatData\x18\x03 \x01(\v2\x16.google.protobuf.EmptyR\aVatData\":\n" + + "\x16GetPaymentLinkResponse\x12 \n" + + "\vRedirectURL\x18\x01 \x01(\tR\vRedirectURL\":\n" + + " DeleteSavedPaymentMethodsRequest\x12\x16\n" + + "\x06UserID\x18\x01 \x01(\tR\x06UserID\"\xd2\x03\n" + + "\x13MainPaymentSettings\x12\x1a\n" + + "\bCurrency\x18\x01 \x01(\tR\bCurrency\x12\x16\n" + + "\x06Amount\x18\x02 \x01(\x03R\x06Amount\x12*\n" + + "\x10CallbackHostGRPC\x18\x03 \x03(\tR\x10CallbackHostGRPC\x12\x1c\n" + + "\tReturnURL\x18\x04 \x01(\tR\tReturnURL\x12\x16\n" + + "\x06UserID\x18\x05 \x01(\tR\x06UserID\x12\x1a\n" + + "\bClientIP\x18\x06 \x01(\tR\bClientIP\x12/\n" + + "\bCustomer\x18\a \x01(\v2\x13.treasurer.CustomerR\bCustomer\x12%\n" + + "\x05Items\x18\b \x03(\v2\x0f.treasurer.ItemR\x05Items\x12\x12\n" + + "\x04Auto\x18\t \x01(\bR\x04Auto\x12\x1c\n" + + "\tRecurrent\x18\n" + + " \x01(\bR\tRecurrent\x12.\n" + + "\x13from_wallet_address\x18\v \x01(\tR\x11fromWalletAddress\x12*\n" + + "\x11to_wallet_address\x18\f \x01(\tR\x0ftoWalletAddress\x12#\n" + + "\rcrypto_amount\x18\r \x01(\x01R\fcryptoAmount\"d\n" + + "\bCustomer\x12\x1a\n" + + "\bFullName\x18\x01 \x01(\tR\bFullName\x12\x10\n" + + "\x03INN\x18\x02 \x01(\tR\x03INN\x12\x14\n" + + "\x05Email\x18\x03 \x01(\tR\x05Email\x12\x14\n" + + "\x05Phone\x18\x04 \x01(\tR\x05Phone\"\x90\x01\n" + + "\x04Item\x12 \n" + + "\vDescription\x18\x01 \x01(\tR\vDescription\x12\x18\n" + + "\aMeasure\x18\x02 \x01(\tR\aMeasure\x12\x1a\n" + + "\bQuantity\x18\x03 \x01(\tR\bQuantity\x12\x14\n" + + "\x05Money\x18\x04 \x01(\tR\x05Money\x12\x1a\n" + + "\bCurrency\x18\x05 \x01(\tR\bCurrency2\x98\x06\n" + + "\x10TreasurerService\x12_\n" + + "\x16GetPaymentLinkBankCard\x12 .treasurer.GetPaymentLinkRequest\x1a!.treasurer.GetPaymentLinkResponse\"\x00\x12_\n" + + "\x16GetPaymentLinkYooMoney\x12 .treasurer.GetPaymentLinkRequest\x1a!.treasurer.GetPaymentLinkResponse\"\x00\x12^\n" + + "\x15GetPaymentLinkTinkoff\x12 .treasurer.GetPaymentLinkRequest\x1a!.treasurer.GetPaymentLinkResponse\"\x00\x12b\n" + + "\x19GetPaymentLinkSberbankB2B\x12 .treasurer.GetPaymentLinkRequest\x1a!.treasurer.GetPaymentLinkResponse\"\x00\x12Z\n" + + "\x11GetPaymentLinkSBP\x12 .treasurer.GetPaymentLinkRequest\x1a!.treasurer.GetPaymentLinkResponse\"\x00\x12^\n" + + "\x15GetPaymentLinkSberPay\x12 .treasurer.GetPaymentLinkRequest\x1a!.treasurer.GetPaymentLinkResponse\"\x00\x12^\n" + + "\x15GetPaymentLinkAlchemy\x12 .treasurer.GetPaymentLinkRequest\x1a!.treasurer.GetPaymentLinkResponse\"\x00\x12b\n" + + "\x19DeleteSavedPaymentMethods\x12+.treasurer.DeleteSavedPaymentMethodsRequest\x1a\x16.google.protobuf.Empty\"\x00B\rZ\v./treasurerb\x06proto3" var ( - file_service_proto_rawDescOnce sync.Once - file_service_proto_rawDescData = file_service_proto_rawDesc + file_treasurer_service_proto_rawDescOnce sync.Once + file_treasurer_service_proto_rawDescData []byte ) -func file_service_proto_rawDescGZIP() []byte { - file_service_proto_rawDescOnce.Do(func() { - file_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_proto_rawDescData) +func file_treasurer_service_proto_rawDescGZIP() []byte { + file_treasurer_service_proto_rawDescOnce.Do(func() { + file_treasurer_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_treasurer_service_proto_rawDesc), len(file_treasurer_service_proto_rawDesc))) }) - return file_service_proto_rawDescData + return file_treasurer_service_proto_rawDescData } -var file_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_service_proto_goTypes = []interface{}{ +var file_treasurer_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_treasurer_service_proto_goTypes = []any{ (*GetBankCardPaymentLinkRequest)(nil), // 0: treasurer.GetBankCardPaymentLinkRequest (*GetPaymentLinkRequest)(nil), // 1: treasurer.GetPaymentLinkRequest (*GetB2BPaymentLinkRequest)(nil), // 2: treasurer.GetB2BPaymentLinkRequest @@ -726,7 +620,7 @@ var file_service_proto_goTypes = []interface{}{ (*Item)(nil), // 7: treasurer.Item (*emptypb.Empty)(nil), // 8: google.protobuf.Empty } -var file_service_proto_depIdxs = []int32{ +var file_treasurer_service_proto_depIdxs = []int32{ 5, // 0: treasurer.GetBankCardPaymentLinkRequest.MainSettings:type_name -> treasurer.MainPaymentSettings 5, // 1: treasurer.GetPaymentLinkRequest.MainSettings:type_name -> treasurer.MainPaymentSettings 5, // 2: treasurer.GetB2BPaymentLinkRequest.MainSettings:type_name -> treasurer.MainPaymentSettings @@ -756,125 +650,26 @@ var file_service_proto_depIdxs = []int32{ 0, // [0:6] is the sub-list for field type_name } -func init() { file_service_proto_init() } -func file_service_proto_init() { - if File_service_proto != nil { +func init() { file_treasurer_service_proto_init() } +func file_treasurer_service_proto_init() { + if File_treasurer_service_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBankCardPaymentLinkRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPaymentLinkRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetB2BPaymentLinkRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPaymentLinkResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteSavedPaymentMethodsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MainPaymentSettings); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Customer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Item); 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_service_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_treasurer_service_proto_rawDesc), len(file_treasurer_service_proto_rawDesc)), NumEnums: 0, NumMessages: 8, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_service_proto_goTypes, - DependencyIndexes: file_service_proto_depIdxs, - MessageInfos: file_service_proto_msgTypes, + GoTypes: file_treasurer_service_proto_goTypes, + DependencyIndexes: file_treasurer_service_proto_depIdxs, + MessageInfos: file_treasurer_service_proto_msgTypes, }.Build() - File_service_proto = out.File - file_service_proto_rawDesc = nil - file_service_proto_goTypes = nil - file_service_proto_depIdxs = nil + File_treasurer_service_proto = out.File + file_treasurer_service_proto_goTypes = nil + file_treasurer_service_proto_depIdxs = nil } diff --git a/internal/proto/treasurer/service_grpc.pb.go b/internal/proto/treasurer/service_grpc.pb.go index 0d68e3b..d4dfd1e 100644 --- a/internal/proto/treasurer/service_grpc.pb.go +++ b/internal/proto/treasurer/service_grpc.pb.go @@ -1,9 +1,14 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.5.1 +// - protoc (unknown) +// source: treasurer/service.proto package treasurer import ( context "context" + grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" @@ -12,9 +17,20 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. +// Requires gRPC-Go v1.64.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + TreasurerService_GetPaymentLinkBankCard_FullMethodName = "/treasurer.TreasurerService/GetPaymentLinkBankCard" + TreasurerService_GetPaymentLinkYooMoney_FullMethodName = "/treasurer.TreasurerService/GetPaymentLinkYooMoney" + TreasurerService_GetPaymentLinkTinkoff_FullMethodName = "/treasurer.TreasurerService/GetPaymentLinkTinkoff" + TreasurerService_GetPaymentLinkSberbankB2B_FullMethodName = "/treasurer.TreasurerService/GetPaymentLinkSberbankB2B" + TreasurerService_GetPaymentLinkSBP_FullMethodName = "/treasurer.TreasurerService/GetPaymentLinkSBP" + TreasurerService_GetPaymentLinkSberPay_FullMethodName = "/treasurer.TreasurerService/GetPaymentLinkSberPay" + TreasurerService_GetPaymentLinkAlchemy_FullMethodName = "/treasurer.TreasurerService/GetPaymentLinkAlchemy" + TreasurerService_DeleteSavedPaymentMethods_FullMethodName = "/treasurer.TreasurerService/DeleteSavedPaymentMethods" +) + // TreasurerServiceClient is the client API for TreasurerService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -38,8 +54,9 @@ func NewTreasurerServiceClient(cc grpc.ClientConnInterface) TreasurerServiceClie } func (c *treasurerServiceClient) GetPaymentLinkBankCard(ctx context.Context, in *GetPaymentLinkRequest, opts ...grpc.CallOption) (*GetPaymentLinkResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPaymentLinkResponse) - err := c.cc.Invoke(ctx, "/treasurer.TreasurerService/GetPaymentLinkBankCard", in, out, opts...) + err := c.cc.Invoke(ctx, TreasurerService_GetPaymentLinkBankCard_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -47,8 +64,9 @@ func (c *treasurerServiceClient) GetPaymentLinkBankCard(ctx context.Context, in } func (c *treasurerServiceClient) GetPaymentLinkYooMoney(ctx context.Context, in *GetPaymentLinkRequest, opts ...grpc.CallOption) (*GetPaymentLinkResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPaymentLinkResponse) - err := c.cc.Invoke(ctx, "/treasurer.TreasurerService/GetPaymentLinkYooMoney", in, out, opts...) + err := c.cc.Invoke(ctx, TreasurerService_GetPaymentLinkYooMoney_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -56,8 +74,9 @@ func (c *treasurerServiceClient) GetPaymentLinkYooMoney(ctx context.Context, in } func (c *treasurerServiceClient) GetPaymentLinkTinkoff(ctx context.Context, in *GetPaymentLinkRequest, opts ...grpc.CallOption) (*GetPaymentLinkResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPaymentLinkResponse) - err := c.cc.Invoke(ctx, "/treasurer.TreasurerService/GetPaymentLinkTinkoff", in, out, opts...) + err := c.cc.Invoke(ctx, TreasurerService_GetPaymentLinkTinkoff_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -65,8 +84,9 @@ func (c *treasurerServiceClient) GetPaymentLinkTinkoff(ctx context.Context, in * } func (c *treasurerServiceClient) GetPaymentLinkSberbankB2B(ctx context.Context, in *GetPaymentLinkRequest, opts ...grpc.CallOption) (*GetPaymentLinkResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPaymentLinkResponse) - err := c.cc.Invoke(ctx, "/treasurer.TreasurerService/GetPaymentLinkSberbankB2B", in, out, opts...) + err := c.cc.Invoke(ctx, TreasurerService_GetPaymentLinkSberbankB2B_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -74,8 +94,9 @@ func (c *treasurerServiceClient) GetPaymentLinkSberbankB2B(ctx context.Context, } func (c *treasurerServiceClient) GetPaymentLinkSBP(ctx context.Context, in *GetPaymentLinkRequest, opts ...grpc.CallOption) (*GetPaymentLinkResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPaymentLinkResponse) - err := c.cc.Invoke(ctx, "/treasurer.TreasurerService/GetPaymentLinkSBP", in, out, opts...) + err := c.cc.Invoke(ctx, TreasurerService_GetPaymentLinkSBP_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -83,8 +104,9 @@ func (c *treasurerServiceClient) GetPaymentLinkSBP(ctx context.Context, in *GetP } func (c *treasurerServiceClient) GetPaymentLinkSberPay(ctx context.Context, in *GetPaymentLinkRequest, opts ...grpc.CallOption) (*GetPaymentLinkResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPaymentLinkResponse) - err := c.cc.Invoke(ctx, "/treasurer.TreasurerService/GetPaymentLinkSberPay", in, out, opts...) + err := c.cc.Invoke(ctx, TreasurerService_GetPaymentLinkSberPay_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,8 +114,9 @@ func (c *treasurerServiceClient) GetPaymentLinkSberPay(ctx context.Context, in * } func (c *treasurerServiceClient) GetPaymentLinkAlchemy(ctx context.Context, in *GetPaymentLinkRequest, opts ...grpc.CallOption) (*GetPaymentLinkResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPaymentLinkResponse) - err := c.cc.Invoke(ctx, "/treasurer.TreasurerService/GetPaymentLinkAlchemy", in, out, opts...) + err := c.cc.Invoke(ctx, TreasurerService_GetPaymentLinkAlchemy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -101,8 +124,9 @@ func (c *treasurerServiceClient) GetPaymentLinkAlchemy(ctx context.Context, in * } func (c *treasurerServiceClient) DeleteSavedPaymentMethods(ctx context.Context, in *DeleteSavedPaymentMethodsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/treasurer.TreasurerService/DeleteSavedPaymentMethods", in, out, opts...) + err := c.cc.Invoke(ctx, TreasurerService_DeleteSavedPaymentMethods_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -110,8 +134,8 @@ func (c *treasurerServiceClient) DeleteSavedPaymentMethods(ctx context.Context, } // TreasurerServiceServer is the server API for TreasurerService service. -// All implementations must embed UnimplementedTreasurerServiceServer -// for forward compatibility +// All implementations should embed UnimplementedTreasurerServiceServer +// for forward compatibility. type TreasurerServiceServer interface { GetPaymentLinkBankCard(context.Context, *GetPaymentLinkRequest) (*GetPaymentLinkResponse, error) GetPaymentLinkYooMoney(context.Context, *GetPaymentLinkRequest) (*GetPaymentLinkResponse, error) @@ -121,12 +145,14 @@ type TreasurerServiceServer interface { GetPaymentLinkSberPay(context.Context, *GetPaymentLinkRequest) (*GetPaymentLinkResponse, error) GetPaymentLinkAlchemy(context.Context, *GetPaymentLinkRequest) (*GetPaymentLinkResponse, error) DeleteSavedPaymentMethods(context.Context, *DeleteSavedPaymentMethodsRequest) (*emptypb.Empty, error) - mustEmbedUnimplementedTreasurerServiceServer() } -// UnimplementedTreasurerServiceServer must be embedded to have forward compatible implementations. -type UnimplementedTreasurerServiceServer struct { -} +// UnimplementedTreasurerServiceServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTreasurerServiceServer struct{} func (UnimplementedTreasurerServiceServer) GetPaymentLinkBankCard(context.Context, *GetPaymentLinkRequest) (*GetPaymentLinkResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPaymentLinkBankCard not implemented") @@ -152,7 +178,7 @@ func (UnimplementedTreasurerServiceServer) GetPaymentLinkAlchemy(context.Context func (UnimplementedTreasurerServiceServer) DeleteSavedPaymentMethods(context.Context, *DeleteSavedPaymentMethodsRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteSavedPaymentMethods not implemented") } -func (UnimplementedTreasurerServiceServer) mustEmbedUnimplementedTreasurerServiceServer() {} +func (UnimplementedTreasurerServiceServer) testEmbeddedByValue() {} // UnsafeTreasurerServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TreasurerServiceServer will @@ -162,6 +188,13 @@ type UnsafeTreasurerServiceServer interface { } func RegisterTreasurerServiceServer(s grpc.ServiceRegistrar, srv TreasurerServiceServer) { + // If the following call pancis, it indicates UnimplementedTreasurerServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TreasurerService_ServiceDesc, srv) } @@ -175,7 +208,7 @@ func _TreasurerService_GetPaymentLinkBankCard_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/treasurer.TreasurerService/GetPaymentLinkBankCard", + FullMethod: TreasurerService_GetPaymentLinkBankCard_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TreasurerServiceServer).GetPaymentLinkBankCard(ctx, req.(*GetPaymentLinkRequest)) @@ -193,7 +226,7 @@ func _TreasurerService_GetPaymentLinkYooMoney_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/treasurer.TreasurerService/GetPaymentLinkYooMoney", + FullMethod: TreasurerService_GetPaymentLinkYooMoney_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TreasurerServiceServer).GetPaymentLinkYooMoney(ctx, req.(*GetPaymentLinkRequest)) @@ -211,7 +244,7 @@ func _TreasurerService_GetPaymentLinkTinkoff_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/treasurer.TreasurerService/GetPaymentLinkTinkoff", + FullMethod: TreasurerService_GetPaymentLinkTinkoff_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TreasurerServiceServer).GetPaymentLinkTinkoff(ctx, req.(*GetPaymentLinkRequest)) @@ -229,7 +262,7 @@ func _TreasurerService_GetPaymentLinkSberbankB2B_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/treasurer.TreasurerService/GetPaymentLinkSberbankB2B", + FullMethod: TreasurerService_GetPaymentLinkSberbankB2B_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TreasurerServiceServer).GetPaymentLinkSberbankB2B(ctx, req.(*GetPaymentLinkRequest)) @@ -247,7 +280,7 @@ func _TreasurerService_GetPaymentLinkSBP_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/treasurer.TreasurerService/GetPaymentLinkSBP", + FullMethod: TreasurerService_GetPaymentLinkSBP_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TreasurerServiceServer).GetPaymentLinkSBP(ctx, req.(*GetPaymentLinkRequest)) @@ -265,7 +298,7 @@ func _TreasurerService_GetPaymentLinkSberPay_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/treasurer.TreasurerService/GetPaymentLinkSberPay", + FullMethod: TreasurerService_GetPaymentLinkSberPay_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TreasurerServiceServer).GetPaymentLinkSberPay(ctx, req.(*GetPaymentLinkRequest)) @@ -283,7 +316,7 @@ func _TreasurerService_GetPaymentLinkAlchemy_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/treasurer.TreasurerService/GetPaymentLinkAlchemy", + FullMethod: TreasurerService_GetPaymentLinkAlchemy_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TreasurerServiceServer).GetPaymentLinkAlchemy(ctx, req.(*GetPaymentLinkRequest)) @@ -301,7 +334,7 @@ func _TreasurerService_DeleteSavedPaymentMethods_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/treasurer.TreasurerService/DeleteSavedPaymentMethods", + FullMethod: TreasurerService_DeleteSavedPaymentMethods_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TreasurerServiceServer).DeleteSavedPaymentMethods(ctx, req.(*DeleteSavedPaymentMethodsRequest)) @@ -350,5 +383,5 @@ var TreasurerService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "service.proto", + Metadata: "treasurer/service.proto", }