4
0
protobuf/refunds.pb.go
2025-08-07 15:06:02 +08:00

364 lines
14 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.35.1
// protoc v3.19.4
// source: refunds.proto
package protobuf
import (
reflect "reflect"
sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
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 Refunds struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` //
Kid uint64 `protobuf:"varint,2,opt,name=Kid,proto3" json:"Kid,omitempty" dc:"主体ID"` // 主体ID
Uid string `protobuf:"bytes,3,opt,name=Uid,proto3" json:"Uid,omitempty" dc:"用户ID"` // 用户ID
Org string `protobuf:"bytes,4,opt,name=Org,proto3" json:"Org,omitempty" dc:"渠道标识"` // 渠道标识
OrgNo string `protobuf:"bytes,5,opt,name=OrgNo,proto3" json:"OrgNo,omitempty" dc:"渠道订单号"` // 渠道订单号
OrderNo string `protobuf:"bytes,6,opt,name=OrderNo,proto3" json:"OrderNo,omitempty" dc:"商户订单号"` // 商户订单号
TokenNo string `protobuf:"bytes,7,opt,name=TokenNo,proto3" json:"TokenNo,omitempty" dc:"Token凭证"` // Token凭证
RefundNo string `protobuf:"bytes,8,opt,name=RefundNo,proto3" json:"RefundNo,omitempty" dc:"退单号"` // 退单号
Type string `protobuf:"bytes,9,opt,name=Type,proto3" json:"Type,omitempty" dc:"退单类型refund=退款revoke=撤销)"` // 退单类型refund=退款revoke=撤销)
Via string `protobuf:"bytes,10,opt,name=Via,proto3" json:"Via,omitempty" dc:"支付方式"` // 支付方式
Ccy string `protobuf:"bytes,11,opt,name=Ccy,proto3" json:"Ccy,omitempty" dc:"币种"` // 币种
Amount string `protobuf:"bytes,12,opt,name=Amount,proto3" json:"Amount,omitempty" dc:"退单金额"` // 退单金额
Deduct string `protobuf:"bytes,13,opt,name=Deduct,proto3" json:"Deduct,omitempty" dc:"费用/扣款/手续费"` // 费用/扣款/手续费
Amounted string `protobuf:"bytes,14,opt,name=Amounted,proto3" json:"Amounted,omitempty" dc:"实退金额"` // 实退金额
Cheque string `protobuf:"bytes,15,opt,name=Cheque,proto3" json:"Cheque,omitempty" dc:"凭证/回单"` // 凭证/回单
Goods string `protobuf:"bytes,16,opt,name=Goods,proto3" json:"Goods,omitempty" dc:"退单货品ID, json格式[1,2,3,4]"` // 退单货品ID, json格式[1,2,3,4]
Metadata string `protobuf:"bytes,17,opt,name=Metadata,proto3" json:"Metadata,omitempty" dc:"Meta数据, json格式"` // Meta数据, json格式
Description string `protobuf:"bytes,18,opt,name=Description,proto3" json:"Description,omitempty" dc:"退款原因/备注/描述"` // 退款原因/备注/描述
Response string `protobuf:"bytes,19,opt,name=Response,proto3" json:"Response,omitempty" dc:"响应数据"` // 响应数据
State int32 `protobuf:"varint,20,opt,name=State,proto3" json:"State,omitempty" dc:"状态:-1=Failure, 0=Pending, 1=Success"` // 状态:-1=Failure, 0=Pending, 1=Success
StateText string `protobuf:"bytes,21,opt,name=StateText,proto3" json:"StateText,omitempty" dc:"状态原文/原因"` // 状态原文/原因
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,22,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` //
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` //
SuccessAt *timestamppb.Timestamp `protobuf:"bytes,24,opt,name=SuccessAt,proto3" json:"SuccessAt,omitempty" dc:"退单完成时间"` // 退单完成时间
}
func (x *Refunds) Reset() {
*x = Refunds{}
mi := &file_refunds_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Refunds) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Refunds) ProtoMessage() {}
func (x *Refunds) ProtoReflect() protoreflect.Message {
mi := &file_refunds_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 Refunds.ProtoReflect.Descriptor instead.
func (*Refunds) Descriptor() ([]byte, []int) {
return file_refunds_proto_rawDescGZIP(), []int{0}
}
func (x *Refunds) GetId() uint64 {
if x != nil {
return x.Id
}
return 0
}
func (x *Refunds) GetKid() uint64 {
if x != nil {
return x.Kid
}
return 0
}
func (x *Refunds) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *Refunds) GetOrg() string {
if x != nil {
return x.Org
}
return ""
}
func (x *Refunds) GetOrgNo() string {
if x != nil {
return x.OrgNo
}
return ""
}
func (x *Refunds) GetOrderNo() string {
if x != nil {
return x.OrderNo
}
return ""
}
func (x *Refunds) GetTokenNo() string {
if x != nil {
return x.TokenNo
}
return ""
}
func (x *Refunds) GetRefundNo() string {
if x != nil {
return x.RefundNo
}
return ""
}
func (x *Refunds) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *Refunds) GetVia() string {
if x != nil {
return x.Via
}
return ""
}
func (x *Refunds) GetCcy() string {
if x != nil {
return x.Ccy
}
return ""
}
func (x *Refunds) GetAmount() string {
if x != nil {
return x.Amount
}
return ""
}
func (x *Refunds) GetDeduct() string {
if x != nil {
return x.Deduct
}
return ""
}
func (x *Refunds) GetAmounted() string {
if x != nil {
return x.Amounted
}
return ""
}
func (x *Refunds) GetCheque() string {
if x != nil {
return x.Cheque
}
return ""
}
func (x *Refunds) GetGoods() string {
if x != nil {
return x.Goods
}
return ""
}
func (x *Refunds) GetMetadata() string {
if x != nil {
return x.Metadata
}
return ""
}
func (x *Refunds) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Refunds) GetResponse() string {
if x != nil {
return x.Response
}
return ""
}
func (x *Refunds) GetState() int32 {
if x != nil {
return x.State
}
return 0
}
func (x *Refunds) GetStateText() string {
if x != nil {
return x.StateText
}
return ""
}
func (x *Refunds) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Refunds) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
func (x *Refunds) GetSuccessAt() *timestamppb.Timestamp {
if x != nil {
return x.SuccessAt
}
return nil
}
var File_refunds_proto protoreflect.FileDescriptor
var file_refunds_proto_rawDesc = []byte{
0x0a, 0x0d, 0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x05, 0x0a, 0x07, 0x52,
0x65, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x04, 0x52, 0x02, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x69, 0x64, 0x18, 0x02, 0x20,
0x01, 0x28, 0x04, 0x52, 0x03, 0x4b, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x55, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x4f, 0x72,
0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4f, 0x72, 0x67, 0x12, 0x14, 0x0a, 0x05,
0x4f, 0x72, 0x67, 0x4e, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x72, 0x67,
0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x18, 0x06, 0x20,
0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07,
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4e, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x54,
0x6f, 0x6b, 0x65, 0x6e, 0x4e, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64,
0x4e, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64,
0x4e, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x56, 0x69, 0x61, 0x18, 0x0a, 0x20,
0x01, 0x28, 0x09, 0x52, 0x03, 0x56, 0x69, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x43, 0x63, 0x79, 0x18,
0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x43, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d,
0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75,
0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x18, 0x0d, 0x20, 0x01,
0x28, 0x09, 0x52, 0x06, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x6d,
0x6f, 0x75, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x41, 0x6d,
0x6f, 0x75, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65,
0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65, 0x12, 0x14,
0x0a, 0x05, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x47,
0x6f, 0x6f, 0x64, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
0x12, 0x20, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x13,
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14,
0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53,
0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78,
0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65,
0x78, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18,
0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0x52, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x09,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
0x73, 0x41, 0x74, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x74,
0x42, 0x25, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x69, 0x69, 0x6f, 0x2e,
0x63, 0x6e, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x70, 0x61, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_refunds_proto_rawDescOnce sync.Once
file_refunds_proto_rawDescData = file_refunds_proto_rawDesc
)
func file_refunds_proto_rawDescGZIP() []byte {
file_refunds_proto_rawDescOnce.Do(func() {
file_refunds_proto_rawDescData = protoimpl.X.CompressGZIP(file_refunds_proto_rawDescData)
})
return file_refunds_proto_rawDescData
}
var file_refunds_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_refunds_proto_goTypes = []any{
(*Refunds)(nil), // 0: protobuf.Refunds
(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
}
var file_refunds_proto_depIdxs = []int32{
1, // 0: protobuf.Refunds.CreatedAt:type_name -> google.protobuf.Timestamp
1, // 1: protobuf.Refunds.UpdatedAt:type_name -> google.protobuf.Timestamp
1, // 2: protobuf.Refunds.SuccessAt:type_name -> google.protobuf.Timestamp
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_refunds_proto_init() }
func file_refunds_proto_init() {
if File_refunds_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_refunds_proto_rawDesc,
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_refunds_proto_goTypes,
DependencyIndexes: file_refunds_proto_depIdxs,
MessageInfos: file_refunds_proto_msgTypes,
}.Build()
File_refunds_proto = out.File
file_refunds_proto_rawDesc = nil
file_refunds_proto_goTypes = nil
file_refunds_proto_depIdxs = nil
}