forked from ebhomengo/niki
231 lines
7.7 KiB
Go
231 lines
7.7 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v4.25.1
|
|
// source: paymentapp/protobuf/payment.proto
|
|
|
|
package paymentpb
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
)
|
|
|
|
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 InitiatePaymentRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId uint64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
PayableType string `protobuf:"bytes,2,opt,name=payable_type,json=payableType,proto3" json:"payable_type,omitempty"`
|
|
PayableId uint64 `protobuf:"varint,3,opt,name=payable_id,json=payableId,proto3" json:"payable_id,omitempty"`
|
|
GatewayCode string `protobuf:"bytes,4,opt,name=gateway_code,json=gatewayCode,proto3" json:"gateway_code,omitempty"`
|
|
CallbackUrl string `protobuf:"bytes,5,opt,name=callback_url,json=callbackUrl,proto3" json:"callback_url,omitempty"`
|
|
Amount int64 `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitiatePaymentRequest) Reset() {
|
|
*x = InitiatePaymentRequest{}
|
|
mi := &file_paymentapp_protobuf_payment_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitiatePaymentRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitiatePaymentRequest) ProtoMessage() {}
|
|
|
|
func (x *InitiatePaymentRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_paymentapp_protobuf_payment_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 InitiatePaymentRequest.ProtoReflect.Descriptor instead.
|
|
func (*InitiatePaymentRequest) Descriptor() ([]byte, []int) {
|
|
return file_paymentapp_protobuf_payment_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *InitiatePaymentRequest) GetUserId() uint64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *InitiatePaymentRequest) GetPayableType() string {
|
|
if x != nil {
|
|
return x.PayableType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiatePaymentRequest) GetPayableId() uint64 {
|
|
if x != nil {
|
|
return x.PayableId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *InitiatePaymentRequest) GetGatewayCode() string {
|
|
if x != nil {
|
|
return x.GatewayCode
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiatePaymentRequest) GetCallbackUrl() string {
|
|
if x != nil {
|
|
return x.CallbackUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *InitiatePaymentRequest) GetAmount() int64 {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type InitiatePaymentResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PaymentId uint64 `protobuf:"varint,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
|
|
RedirectUrl string `protobuf:"bytes,2,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *InitiatePaymentResponse) Reset() {
|
|
*x = InitiatePaymentResponse{}
|
|
mi := &file_paymentapp_protobuf_payment_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *InitiatePaymentResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*InitiatePaymentResponse) ProtoMessage() {}
|
|
|
|
func (x *InitiatePaymentResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_paymentapp_protobuf_payment_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 InitiatePaymentResponse.ProtoReflect.Descriptor instead.
|
|
func (*InitiatePaymentResponse) Descriptor() ([]byte, []int) {
|
|
return file_paymentapp_protobuf_payment_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *InitiatePaymentResponse) GetPaymentId() uint64 {
|
|
if x != nil {
|
|
return x.PaymentId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *InitiatePaymentResponse) GetRedirectUrl() string {
|
|
if x != nil {
|
|
return x.RedirectUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_paymentapp_protobuf_payment_proto protoreflect.FileDescriptor
|
|
|
|
const file_paymentapp_protobuf_payment_proto_rawDesc = "" +
|
|
"\n" +
|
|
"!paymentapp/protobuf/payment.proto\x12\apayment\"\xd1\x01\n" +
|
|
"\x16InitiatePaymentRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x04R\x06userId\x12!\n" +
|
|
"\fpayable_type\x18\x02 \x01(\tR\vpayableType\x12\x1d\n" +
|
|
"\n" +
|
|
"payable_id\x18\x03 \x01(\x04R\tpayableId\x12!\n" +
|
|
"\fgateway_code\x18\x04 \x01(\tR\vgatewayCode\x12!\n" +
|
|
"\fcallback_url\x18\x05 \x01(\tR\vcallbackUrl\x12\x16\n" +
|
|
"\x06amount\x18\x06 \x01(\x03R\x06amount\"[\n" +
|
|
"\x17InitiatePaymentResponse\x12\x1d\n" +
|
|
"\n" +
|
|
"payment_id\x18\x01 \x01(\x04R\tpaymentId\x12!\n" +
|
|
"\fredirect_url\x18\x02 \x01(\tR\vredirectUrl2f\n" +
|
|
"\x0ePaymentService\x12T\n" +
|
|
"\x0fInitiatePayment\x12\x1f.payment.InitiatePaymentRequest\x1a .payment.InitiatePaymentResponseB=Z;git.gocasts.ir/ebhomengo/niki/paymentapp/protobuf;paymentpbb\x06proto3"
|
|
|
|
var (
|
|
file_paymentapp_protobuf_payment_proto_rawDescOnce sync.Once
|
|
file_paymentapp_protobuf_payment_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_paymentapp_protobuf_payment_proto_rawDescGZIP() []byte {
|
|
file_paymentapp_protobuf_payment_proto_rawDescOnce.Do(func() {
|
|
file_paymentapp_protobuf_payment_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_paymentapp_protobuf_payment_proto_rawDesc), len(file_paymentapp_protobuf_payment_proto_rawDesc)))
|
|
})
|
|
return file_paymentapp_protobuf_payment_proto_rawDescData
|
|
}
|
|
|
|
var file_paymentapp_protobuf_payment_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_paymentapp_protobuf_payment_proto_goTypes = []any{
|
|
(*InitiatePaymentRequest)(nil), // 0: payment.InitiatePaymentRequest
|
|
(*InitiatePaymentResponse)(nil), // 1: payment.InitiatePaymentResponse
|
|
}
|
|
var file_paymentapp_protobuf_payment_proto_depIdxs = []int32{
|
|
0, // 0: payment.PaymentService.InitiatePayment:input_type -> payment.InitiatePaymentRequest
|
|
1, // 1: payment.PaymentService.InitiatePayment:output_type -> payment.InitiatePaymentResponse
|
|
1, // [1:2] is the sub-list for method output_type
|
|
0, // [0:1] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_paymentapp_protobuf_payment_proto_init() }
|
|
func file_paymentapp_protobuf_payment_proto_init() {
|
|
if File_paymentapp_protobuf_payment_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_paymentapp_protobuf_payment_proto_rawDesc), len(file_paymentapp_protobuf_payment_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_paymentapp_protobuf_payment_proto_goTypes,
|
|
DependencyIndexes: file_paymentapp_protobuf_payment_proto_depIdxs,
|
|
MessageInfos: file_paymentapp_protobuf_payment_proto_msgTypes,
|
|
}.Build()
|
|
File_paymentapp_protobuf_payment_proto = out.File
|
|
file_paymentapp_protobuf_payment_proto_goTypes = nil
|
|
file_paymentapp_protobuf_payment_proto_depIdxs = nil
|
|
}
|