2023-06-22 09:36:43 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
2023-08-02 14:28:31 +00:00
// versions:
2024-02-22 23:53:53 +00:00
// - protoc-gen-go-grpc v1.2.0
2023-08-02 14:28:31 +00:00
// - protoc (unknown)
// source: treasurer/service.proto
2023-06-22 09:36:43 +00:00
package treasurer
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// 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.
const _ = grpc . SupportPackageIsVersion7
// 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.
type TreasurerServiceClient interface {
GetPaymentLinkBankCard ( ctx context . Context , in * GetBankCardPaymentLinkRequest , opts ... grpc . CallOption ) ( * GetPaymentLinkResponse , error )
GetPaymentLinkYooMoney ( ctx context . Context , in * GetPaymentLinkBody , opts ... grpc . CallOption ) ( * GetPaymentLinkResponse , error )
2024-03-17 22:13:56 +00:00
GetPaymentLinkSberPay ( ctx context . Context , in * GetPaymentLinkBody , opts ... grpc . CallOption ) ( * GetPaymentLinkResponse , error )
2023-06-22 09:36:43 +00:00
GetPaymentLinkTinkoff ( ctx context . Context , in * GetPaymentLinkBody , opts ... grpc . CallOption ) ( * GetPaymentLinkResponse , error )
2024-03-17 22:13:56 +00:00
GetPaymentLinkSberbankB2B ( ctx context . Context , in * GetPaymentLinkBody , opts ... grpc . CallOption ) ( * GetPaymentLinkResponse , error )
2023-06-22 09:36:43 +00:00
GetPaymentLinkSBP ( ctx context . Context , in * GetPaymentLinkBody , opts ... grpc . CallOption ) ( * GetPaymentLinkResponse , error )
}
type treasurerServiceClient struct {
cc grpc . ClientConnInterface
}
func NewTreasurerServiceClient ( cc grpc . ClientConnInterface ) TreasurerServiceClient {
return & treasurerServiceClient { cc }
}
func ( c * treasurerServiceClient ) GetPaymentLinkBankCard ( ctx context . Context , in * GetBankCardPaymentLinkRequest , opts ... grpc . CallOption ) ( * GetPaymentLinkResponse , error ) {
out := new ( GetPaymentLinkResponse )
2024-02-22 23:53:53 +00:00
err := c . cc . Invoke ( ctx , "/treasurer.TreasurerService/GetPaymentLinkBankCard" , in , out , opts ... )
2023-06-22 09:36:43 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * treasurerServiceClient ) GetPaymentLinkYooMoney ( ctx context . Context , in * GetPaymentLinkBody , opts ... grpc . CallOption ) ( * GetPaymentLinkResponse , error ) {
out := new ( GetPaymentLinkResponse )
2024-02-22 23:53:53 +00:00
err := c . cc . Invoke ( ctx , "/treasurer.TreasurerService/GetPaymentLinkYooMoney" , in , out , opts ... )
2023-06-22 09:36:43 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-03-17 22:13:56 +00:00
func ( c * treasurerServiceClient ) GetPaymentLinkSberPay ( ctx context . Context , in * GetPaymentLinkBody , opts ... grpc . CallOption ) ( * GetPaymentLinkResponse , error ) {
2023-06-22 09:36:43 +00:00
out := new ( GetPaymentLinkResponse )
2024-02-22 23:53:53 +00:00
err := c . cc . Invoke ( ctx , "/treasurer.TreasurerService/GetPaymentLinkSberPay" , in , out , opts ... )
2023-06-22 09:36:43 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * treasurerServiceClient ) GetPaymentLinkTinkoff ( ctx context . Context , in * GetPaymentLinkBody , opts ... grpc . CallOption ) ( * GetPaymentLinkResponse , error ) {
out := new ( GetPaymentLinkResponse )
2024-02-22 23:53:53 +00:00
err := c . cc . Invoke ( ctx , "/treasurer.TreasurerService/GetPaymentLinkTinkoff" , in , out , opts ... )
2023-06-22 09:36:43 +00:00
if err != nil {
return nil , err
}
return out , nil
}
2024-03-17 22:13:56 +00:00
func ( c * treasurerServiceClient ) GetPaymentLinkSberbankB2B ( ctx context . Context , in * GetPaymentLinkBody , opts ... grpc . CallOption ) ( * GetPaymentLinkResponse , error ) {
2023-06-22 09:36:43 +00:00
out := new ( GetPaymentLinkResponse )
2024-02-22 23:53:53 +00:00
err := c . cc . Invoke ( ctx , "/treasurer.TreasurerService/GetPaymentLinkSberbankB2B" , in , out , opts ... )
2023-06-22 09:36:43 +00:00
if err != nil {
return nil , err
}
return out , nil
}
func ( c * treasurerServiceClient ) GetPaymentLinkSBP ( ctx context . Context , in * GetPaymentLinkBody , opts ... grpc . CallOption ) ( * GetPaymentLinkResponse , error ) {
out := new ( GetPaymentLinkResponse )
2024-02-22 23:53:53 +00:00
err := c . cc . Invoke ( ctx , "/treasurer.TreasurerService/GetPaymentLinkSBP" , in , out , opts ... )
2023-06-22 09:36:43 +00:00
if err != nil {
return nil , err
}
return out , nil
}
// TreasurerServiceServer is the server API for TreasurerService service.
// All implementations should embed UnimplementedTreasurerServiceServer
// for forward compatibility
type TreasurerServiceServer interface {
GetPaymentLinkBankCard ( context . Context , * GetBankCardPaymentLinkRequest ) ( * GetPaymentLinkResponse , error )
GetPaymentLinkYooMoney ( context . Context , * GetPaymentLinkBody ) ( * GetPaymentLinkResponse , error )
2024-03-17 22:13:56 +00:00
GetPaymentLinkSberPay ( context . Context , * GetPaymentLinkBody ) ( * GetPaymentLinkResponse , error )
2023-06-22 09:36:43 +00:00
GetPaymentLinkTinkoff ( context . Context , * GetPaymentLinkBody ) ( * GetPaymentLinkResponse , error )
2024-03-17 22:13:56 +00:00
GetPaymentLinkSberbankB2B ( context . Context , * GetPaymentLinkBody ) ( * GetPaymentLinkResponse , error )
2023-06-22 09:36:43 +00:00
GetPaymentLinkSBP ( context . Context , * GetPaymentLinkBody ) ( * GetPaymentLinkResponse , error )
}
// UnimplementedTreasurerServiceServer should be embedded to have forward compatible implementations.
type UnimplementedTreasurerServiceServer struct {
}
func ( UnimplementedTreasurerServiceServer ) GetPaymentLinkBankCard ( context . Context , * GetBankCardPaymentLinkRequest ) ( * GetPaymentLinkResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetPaymentLinkBankCard not implemented" )
}
func ( UnimplementedTreasurerServiceServer ) GetPaymentLinkYooMoney ( context . Context , * GetPaymentLinkBody ) ( * GetPaymentLinkResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetPaymentLinkYooMoney not implemented" )
}
2024-03-17 22:13:56 +00:00
func ( UnimplementedTreasurerServiceServer ) GetPaymentLinkSberPay ( context . Context , * GetPaymentLinkBody ) ( * GetPaymentLinkResponse , error ) {
2023-06-22 09:36:43 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method GetPaymentLinkSberPay not implemented" )
}
func ( UnimplementedTreasurerServiceServer ) GetPaymentLinkTinkoff ( context . Context , * GetPaymentLinkBody ) ( * GetPaymentLinkResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetPaymentLinkTinkoff not implemented" )
}
2024-03-17 22:13:56 +00:00
func ( UnimplementedTreasurerServiceServer ) GetPaymentLinkSberbankB2B ( context . Context , * GetPaymentLinkBody ) ( * GetPaymentLinkResponse , error ) {
2023-06-22 09:36:43 +00:00
return nil , status . Errorf ( codes . Unimplemented , "method GetPaymentLinkSberbankB2B not implemented" )
}
func ( UnimplementedTreasurerServiceServer ) GetPaymentLinkSBP ( context . Context , * GetPaymentLinkBody ) ( * GetPaymentLinkResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetPaymentLinkSBP not implemented" )
}
// 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
// result in compilation errors.
type UnsafeTreasurerServiceServer interface {
mustEmbedUnimplementedTreasurerServiceServer ( )
}
func RegisterTreasurerServiceServer ( s grpc . ServiceRegistrar , srv TreasurerServiceServer ) {
s . RegisterService ( & TreasurerService_ServiceDesc , srv )
}
func _TreasurerService_GetPaymentLinkBankCard_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetBankCardPaymentLinkRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( TreasurerServiceServer ) . GetPaymentLinkBankCard ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-22 23:53:53 +00:00
FullMethod : "/treasurer.TreasurerService/GetPaymentLinkBankCard" ,
2023-06-22 09:36:43 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( TreasurerServiceServer ) . GetPaymentLinkBankCard ( ctx , req . ( * GetBankCardPaymentLinkRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _TreasurerService_GetPaymentLinkYooMoney_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetPaymentLinkBody )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( TreasurerServiceServer ) . GetPaymentLinkYooMoney ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-22 23:53:53 +00:00
FullMethod : "/treasurer.TreasurerService/GetPaymentLinkYooMoney" ,
2023-06-22 09:36:43 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( TreasurerServiceServer ) . GetPaymentLinkYooMoney ( ctx , req . ( * GetPaymentLinkBody ) )
}
return interceptor ( ctx , in , info , handler )
}
func _TreasurerService_GetPaymentLinkSberPay_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2024-03-17 22:13:56 +00:00
in := new ( GetPaymentLinkBody )
2023-06-22 09:36:43 +00:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( TreasurerServiceServer ) . GetPaymentLinkSberPay ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-22 23:53:53 +00:00
FullMethod : "/treasurer.TreasurerService/GetPaymentLinkSberPay" ,
2023-06-22 09:36:43 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-03-17 22:13:56 +00:00
return srv . ( TreasurerServiceServer ) . GetPaymentLinkSberPay ( ctx , req . ( * GetPaymentLinkBody ) )
2023-06-22 09:36:43 +00:00
}
return interceptor ( ctx , in , info , handler )
}
func _TreasurerService_GetPaymentLinkTinkoff_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetPaymentLinkBody )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( TreasurerServiceServer ) . GetPaymentLinkTinkoff ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-22 23:53:53 +00:00
FullMethod : "/treasurer.TreasurerService/GetPaymentLinkTinkoff" ,
2023-06-22 09:36:43 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( TreasurerServiceServer ) . GetPaymentLinkTinkoff ( ctx , req . ( * GetPaymentLinkBody ) )
}
return interceptor ( ctx , in , info , handler )
}
func _TreasurerService_GetPaymentLinkSberbankB2B_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
2024-03-17 22:13:56 +00:00
in := new ( GetPaymentLinkBody )
2023-06-22 09:36:43 +00:00
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( TreasurerServiceServer ) . GetPaymentLinkSberbankB2B ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-22 23:53:53 +00:00
FullMethod : "/treasurer.TreasurerService/GetPaymentLinkSberbankB2B" ,
2023-06-22 09:36:43 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
2024-03-17 22:13:56 +00:00
return srv . ( TreasurerServiceServer ) . GetPaymentLinkSberbankB2B ( ctx , req . ( * GetPaymentLinkBody ) )
2023-06-22 09:36:43 +00:00
}
return interceptor ( ctx , in , info , handler )
}
func _TreasurerService_GetPaymentLinkSBP_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetPaymentLinkBody )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( TreasurerServiceServer ) . GetPaymentLinkSBP ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
2024-02-22 23:53:53 +00:00
FullMethod : "/treasurer.TreasurerService/GetPaymentLinkSBP" ,
2023-06-22 09:36:43 +00:00
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( TreasurerServiceServer ) . GetPaymentLinkSBP ( ctx , req . ( * GetPaymentLinkBody ) )
}
return interceptor ( ctx , in , info , handler )
}
// TreasurerService_ServiceDesc is the grpc.ServiceDesc for TreasurerService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var TreasurerService_ServiceDesc = grpc . ServiceDesc {
ServiceName : "treasurer.TreasurerService" ,
HandlerType : ( * TreasurerServiceServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "GetPaymentLinkBankCard" ,
Handler : _TreasurerService_GetPaymentLinkBankCard_Handler ,
} ,
{
MethodName : "GetPaymentLinkYooMoney" ,
Handler : _TreasurerService_GetPaymentLinkYooMoney_Handler ,
} ,
{
MethodName : "GetPaymentLinkSberPay" ,
Handler : _TreasurerService_GetPaymentLinkSberPay_Handler ,
} ,
{
MethodName : "GetPaymentLinkTinkoff" ,
Handler : _TreasurerService_GetPaymentLinkTinkoff_Handler ,
} ,
{
MethodName : "GetPaymentLinkSberbankB2B" ,
Handler : _TreasurerService_GetPaymentLinkSberbankB2B_Handler ,
} ,
{
MethodName : "GetPaymentLinkSBP" ,
Handler : _TreasurerService_GetPaymentLinkSBP_Handler ,
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
Metadata : "treasurer/service.proto" ,
}