customer/internal/proto/treasurer/payment.model.pb.go

345 lines
10 KiB
Go
Raw Normal View History

2023-06-22 09:36:43 +00:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
2025-08-13 21:45:10 +00:00
// protoc-gen-go v1.36.7
2023-06-22 09:36:43 +00:00
// protoc (unknown)
// source: treasurer/payment.model.proto
package treasurer
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
2025-08-13 21:45:10 +00:00
unsafe "unsafe"
2023-06-22 09:36:43 +00:00
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type MainPaymentSettings struct {
2025-08-13 21:45:10 +00:00
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"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
2023-06-22 09:36:43 +00:00
}
func (x *MainPaymentSettings) Reset() {
*x = MainPaymentSettings{}
2025-08-13 21:45:10 +00:00
mi := &file_treasurer_payment_model_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
2023-06-22 09:36:43 +00:00
}
func (x *MainPaymentSettings) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MainPaymentSettings) ProtoMessage() {}
func (x *MainPaymentSettings) ProtoReflect() protoreflect.Message {
mi := &file_treasurer_payment_model_proto_msgTypes[0]
2025-08-13 21:45:10 +00:00
if x != nil {
2023-06-22 09:36:43 +00:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MainPaymentSettings.ProtoReflect.Descriptor instead.
func (*MainPaymentSettings) Descriptor() ([]byte, []int) {
return file_treasurer_payment_model_proto_rawDescGZIP(), []int{0}
}
func (x *MainPaymentSettings) GetCurrency() string {
if x != nil {
return x.Currency
}
return ""
}
func (x *MainPaymentSettings) GetAmount() int64 {
if x != nil {
return x.Amount
}
return 0
}
func (x *MainPaymentSettings) GetCallbackHostGRPC() []string {
if x != nil {
return x.CallbackHostGRPC
}
return nil
}
func (x *MainPaymentSettings) GetReturnURL() string {
if x != nil {
return x.ReturnURL
}
return ""
}
func (x *MainPaymentSettings) GetUserID() string {
if x != nil {
return x.UserID
}
return ""
}
func (x *MainPaymentSettings) GetClientIP() string {
if x != nil {
return x.ClientIP
}
return ""
}
2024-04-18 17:10:23 +00:00
func (x *MainPaymentSettings) GetCustomer() *Customer {
if x != nil {
return x.Customer
}
return nil
}
func (x *MainPaymentSettings) GetItems() []*Item {
if x != nil {
return x.Items
}
return nil
}
type Customer struct {
2025-08-13 21:45:10 +00:00
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"`
2023-06-22 09:36:43 +00:00
unknownFields protoimpl.UnknownFields
2025-08-13 21:45:10 +00:00
sizeCache protoimpl.SizeCache
2023-06-22 09:36:43 +00:00
}
2024-04-18 17:10:23 +00:00
func (x *Customer) Reset() {
*x = Customer{}
2025-08-13 21:45:10 +00:00
mi := &file_treasurer_payment_model_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
2023-06-22 09:36:43 +00:00
}
2024-04-18 17:10:23 +00:00
func (x *Customer) String() string {
2023-06-22 09:36:43 +00:00
return protoimpl.X.MessageStringOf(x)
}
2024-04-18 17:10:23 +00:00
func (*Customer) ProtoMessage() {}
2023-06-22 09:36:43 +00:00
2024-04-18 17:10:23 +00:00
func (x *Customer) ProtoReflect() protoreflect.Message {
2023-06-22 09:36:43 +00:00
mi := &file_treasurer_payment_model_proto_msgTypes[1]
2025-08-13 21:45:10 +00:00
if x != nil {
2023-06-22 09:36:43 +00:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
2024-04-18 17:10:23 +00:00
// Deprecated: Use Customer.ProtoReflect.Descriptor instead.
func (*Customer) Descriptor() ([]byte, []int) {
2023-06-22 09:36:43 +00:00
return file_treasurer_payment_model_proto_rawDescGZIP(), []int{1}
}
2024-04-18 17:10:23 +00:00
func (x *Customer) GetFullName() string {
2023-06-22 09:36:43 +00:00
if x != nil {
2024-04-18 17:10:23 +00:00
return x.FullName
2023-06-22 09:36:43 +00:00
}
return ""
}
2024-04-18 17:10:23 +00:00
func (x *Customer) GetINN() string {
2023-06-22 09:36:43 +00:00
if x != nil {
2024-04-18 17:10:23 +00:00
return x.INN
2023-06-22 09:36:43 +00:00
}
return ""
}
2024-04-18 17:10:23 +00:00
func (x *Customer) GetEmail() string {
2023-06-22 09:36:43 +00:00
if x != nil {
2024-04-18 17:10:23 +00:00
return x.Email
2023-06-22 09:36:43 +00:00
}
return ""
}
2024-04-18 17:10:23 +00:00
func (x *Customer) GetPhone() string {
if x != nil {
return x.Phone
2023-06-22 09:36:43 +00:00
}
return ""
}
2024-04-18 17:10:23 +00:00
type Item struct {
2025-08-13 21:45:10 +00:00
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"`
2024-04-18 17:10:23 +00:00
unknownFields protoimpl.UnknownFields
2025-08-13 21:45:10 +00:00
sizeCache protoimpl.SizeCache
2024-04-18 17:10:23 +00:00
}
func (x *Item) Reset() {
*x = Item{}
2025-08-13 21:45:10 +00:00
mi := &file_treasurer_payment_model_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
2024-04-18 17:10:23 +00:00
}
func (x *Item) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Item) ProtoMessage() {}
func (x *Item) ProtoReflect() protoreflect.Message {
mi := &file_treasurer_payment_model_proto_msgTypes[2]
2025-08-13 21:45:10 +00:00
if x != nil {
2024-04-18 17:10:23 +00:00
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Item.ProtoReflect.Descriptor instead.
func (*Item) Descriptor() ([]byte, []int) {
return file_treasurer_payment_model_proto_rawDescGZIP(), []int{2}
}
func (x *Item) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Item) GetMeasure() string {
if x != nil {
return x.Measure
}
return ""
}
func (x *Item) GetQuantity() string {
if x != nil {
return x.Quantity
}
return ""
}
func (x *Item) GetMoney() string {
if x != nil {
return x.Money
}
return ""
}
func (x *Item) GetCurrency() string {
if x != nil {
return x.Currency
2023-06-22 09:36:43 +00:00
}
return ""
}
var File_treasurer_payment_model_proto protoreflect.FileDescriptor
2025-08-13 21:45:10 +00:00
const file_treasurer_payment_model_proto_rawDesc = "" +
"\n" +
"\x1dtreasurer/payment.model.proto\x12\ttreasurer\"\x9f\x02\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\"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\bCurrencyB\rZ\v./treasurerb\x06proto3"
2023-06-22 09:36:43 +00:00
var (
file_treasurer_payment_model_proto_rawDescOnce sync.Once
2025-08-13 21:45:10 +00:00
file_treasurer_payment_model_proto_rawDescData []byte
2023-06-22 09:36:43 +00:00
)
func file_treasurer_payment_model_proto_rawDescGZIP() []byte {
file_treasurer_payment_model_proto_rawDescOnce.Do(func() {
2025-08-13 21:45:10 +00:00
file_treasurer_payment_model_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_treasurer_payment_model_proto_rawDesc), len(file_treasurer_payment_model_proto_rawDesc)))
2023-06-22 09:36:43 +00:00
})
return file_treasurer_payment_model_proto_rawDescData
}
2024-04-18 17:10:23 +00:00
var file_treasurer_payment_model_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
2025-08-13 21:45:10 +00:00
var file_treasurer_payment_model_proto_goTypes = []any{
2023-06-22 09:36:43 +00:00
(*MainPaymentSettings)(nil), // 0: treasurer.MainPaymentSettings
2024-04-18 17:10:23 +00:00
(*Customer)(nil), // 1: treasurer.Customer
(*Item)(nil), // 2: treasurer.Item
2023-06-22 09:36:43 +00:00
}
var file_treasurer_payment_model_proto_depIdxs = []int32{
2024-04-18 17:10:23 +00:00
1, // 0: treasurer.MainPaymentSettings.Customer:type_name -> treasurer.Customer
2, // 1: treasurer.MainPaymentSettings.Items:type_name -> treasurer.Item
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
2023-06-22 09:36:43 +00:00
}
func init() { file_treasurer_payment_model_proto_init() }
func file_treasurer_payment_model_proto_init() {
if File_treasurer_payment_model_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
2025-08-13 21:45:10 +00:00
RawDescriptor: unsafe.Slice(unsafe.StringData(file_treasurer_payment_model_proto_rawDesc), len(file_treasurer_payment_model_proto_rawDesc)),
2023-06-22 09:36:43 +00:00
NumEnums: 0,
2024-04-18 17:10:23 +00:00
NumMessages: 3,
2023-06-22 09:36:43 +00:00
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_treasurer_payment_model_proto_goTypes,
DependencyIndexes: file_treasurer_payment_model_proto_depIdxs,
MessageInfos: file_treasurer_payment_model_proto_msgTypes,
}.Build()
File_treasurer_payment_model_proto = out.File
file_treasurer_payment_model_proto_goTypes = nil
file_treasurer_payment_model_proto_depIdxs = nil
}