update protobuf
This commit is contained in:
parent
c4c087b2eb
commit
36dbcf3dff
48
orders.pb.go
48
orders.pb.go
@ -45,12 +45,12 @@ type Orders struct {
|
|||||||
Amount string `protobuf:"bytes,12,opt,name=Amount,proto3" json:"Amount,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:"费用/扣款/手续费"` // 费用/扣款/手续费
|
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:"实付金额"` // 实付金额
|
Amounted string `protobuf:"bytes,14,opt,name=Amounted,proto3" json:"Amounted,omitempty" dc:"实付金额"` // 实付金额
|
||||||
Calls int32 `protobuf:"varint,15,opt,name=Calls,proto3" json:"Calls,omitempty" dc:"回调次数"` // 回调次数
|
Cheque string `protobuf:"bytes,15,opt,name=Cheque,proto3" json:"Cheque,omitempty" dc:"凭证/回单"` // 凭证/回单
|
||||||
Cheque string `protobuf:"bytes,16,opt,name=Cheque,proto3" json:"Cheque,omitempty" dc:"凭证/回单"` // 凭证/回单
|
Metadata string `protobuf:"bytes,16,opt,name=Metadata,proto3" json:"Metadata,omitempty" dc:"Meta数据"` // Meta数据
|
||||||
Metadata string `protobuf:"bytes,17,opt,name=Metadata,proto3" json:"Metadata,omitempty" dc:"Meta数据"` // Meta数据
|
Description string `protobuf:"bytes,17,opt,name=Description,proto3" json:"Description,omitempty" dc:"订单备注/摘要"` // 订单备注/摘要
|
||||||
Description string `protobuf:"bytes,18,opt,name=Description,proto3" json:"Description,omitempty" dc:"订单备注/摘要"` // 订单备注/摘要
|
Redirect string `protobuf:"bytes,18,opt,name=Redirect,proto3" json:"Redirect,omitempty" dc:"下一跳>>跳转地址/二维码地址或代码"` // 下一跳>>跳转地址/二维码地址或代码
|
||||||
Redirect string `protobuf:"bytes,19,opt,name=Redirect,proto3" json:"Redirect,omitempty" dc:"下一跳>>跳转地址/二维码地址或代码"` // 下一跳>>跳转地址/二维码地址或代码
|
Response string `protobuf:"bytes,19,opt,name=Response,proto3" json:"Response,omitempty" dc:"订单响应/回调数据"` // 订单响应/回调数据
|
||||||
Response string `protobuf:"bytes,20,opt,name=Response,proto3" json:"Response,omitempty" dc:"订单响应/回调数据"` // 订单响应/回调数据
|
Calls int32 `protobuf:"varint,20,opt,name=Calls,proto3" json:"Calls,omitempty" dc:"回调次数"` // 回调次数
|
||||||
State int32 `protobuf:"varint,21,opt,name=State,proto3" json:"State,omitempty" dc:"状态:-1=Failure, 0=Pending, 1=Success"` // 状态:-1=Failure, 0=Pending, 1=Success
|
State int32 `protobuf:"varint,21,opt,name=State,proto3" json:"State,omitempty" dc:"状态:-1=Failure, 0=Pending, 1=Success"` // 状态:-1=Failure, 0=Pending, 1=Success
|
||||||
StateText string `protobuf:"bytes,22,opt,name=StateText,proto3" json:"StateText,omitempty" dc:"状态原文/原因"` // 状态原文/原因
|
StateText string `protobuf:"bytes,22,opt,name=StateText,proto3" json:"StateText,omitempty" dc:"状态原文/原因"` // 状态原文/原因
|
||||||
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` //
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` //
|
||||||
@ -186,13 +186,6 @@ func (x *Orders) GetAmounted() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Orders) GetCalls() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Calls
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *Orders) GetCheque() string {
|
func (x *Orders) GetCheque() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Cheque
|
return x.Cheque
|
||||||
@ -228,6 +221,13 @@ func (x *Orders) GetResponse() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *Orders) GetCalls() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Calls
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
func (x *Orders) GetState() int32 {
|
func (x *Orders) GetState() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.State
|
return x.State
|
||||||
@ -289,17 +289,17 @@ var file_orders_proto_rawDesc = []byte{
|
|||||||
0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74,
|
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,
|
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,
|
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, 0x14, 0x0a, 0x05, 0x43, 0x61,
|
0x52, 0x08, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x68,
|
||||||
0x6c, 0x6c, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x43, 0x61, 0x6c, 0x6c, 0x73,
|
0x65, 0x71, 0x75, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x68, 0x65, 0x71,
|
||||||
0x12, 0x16, 0x0a, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09,
|
0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x10,
|
||||||
0x52, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x20,
|
||||||
0x64, 0x61, 0x74, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4d, 0x65, 0x74, 0x61,
|
0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20,
|
||||||
0x64, 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
|
0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x69, 0x6f, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72,
|
0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x18, 0x12, 0x20, 0x01,
|
||||||
0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65,
|
0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08,
|
||||||
0x63, 0x74, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65,
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
||||||
0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x14,
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x43, 0x61, 0x6c, 0x6c,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14,
|
0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x43, 0x61, 0x6c, 0x6c, 0x73, 0x12, 0x14,
|
||||||
0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53,
|
0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53,
|
||||||
0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78,
|
0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78,
|
||||||
0x74, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65,
|
0x74, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65,
|
||||||
|
|||||||
20
org.pb.go
20
org.pb.go
@ -387,8 +387,8 @@ type RefundReq struct {
|
|||||||
Org string `protobuf:"bytes,3,opt,name=Org,proto3" json:"Org,omitempty" dc:"渠道标识 v:required"` //渠道标识 v:required
|
Org string `protobuf:"bytes,3,opt,name=Org,proto3" json:"Org,omitempty" dc:"渠道标识 v:required"` //渠道标识 v:required
|
||||||
OrgNo string `protobuf:"bytes,4,opt,name=OrgNo,proto3" json:"OrgNo,omitempty" dc:"渠道订单号"` //渠道订单号
|
OrgNo string `protobuf:"bytes,4,opt,name=OrgNo,proto3" json:"OrgNo,omitempty" dc:"渠道订单号"` //渠道订单号
|
||||||
OrderNo string `protobuf:"bytes,5,opt,name=OrderNo,proto3" json:"OrderNo,omitempty" dc:"商户订单号"` //商户订单号
|
OrderNo string `protobuf:"bytes,5,opt,name=OrderNo,proto3" json:"OrderNo,omitempty" dc:"商户订单号"` //商户订单号
|
||||||
RefundNo string `protobuf:"bytes,6,opt,name=RefundNo,proto3" json:"RefundNo,omitempty" dc:"退款订单号"` //退款订单号
|
TokenNo string `protobuf:"bytes,6,opt,name=TokenNo,proto3" json:"TokenNo,omitempty" dc:"TokenId"` // TokenId
|
||||||
TokenNo string `protobuf:"bytes,7,opt,name=TokenNo,proto3" json:"TokenNo,omitempty" dc:"TokenId"` // TokenId
|
RefundNo string `protobuf:"bytes,7,opt,name=RefundNo,proto3" json:"RefundNo,omitempty" dc:"退款订单号"` //退款订单号
|
||||||
Ccy string `protobuf:"bytes,8,opt,name=Ccy,proto3" json:"Ccy,omitempty" dc:"币种"` // 币种
|
Ccy string `protobuf:"bytes,8,opt,name=Ccy,proto3" json:"Ccy,omitempty" dc:"币种"` // 币种
|
||||||
Amount string `protobuf:"bytes,9,opt,name=Amount,proto3" json:"Amount,omitempty" dc:"退款金额"` //退款金额
|
Amount string `protobuf:"bytes,9,opt,name=Amount,proto3" json:"Amount,omitempty" dc:"退款金额"` //退款金额
|
||||||
Deduct string `protobuf:"bytes,10,opt,name=Deduct,proto3" json:"Deduct,omitempty" dc:"费用/扣款/手续费"` // 费用/扣款/手续费
|
Deduct string `protobuf:"bytes,10,opt,name=Deduct,proto3" json:"Deduct,omitempty" dc:"费用/扣款/手续费"` // 费用/扣款/手续费
|
||||||
@ -464,16 +464,16 @@ func (x *RefundReq) GetOrderNo() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RefundReq) GetRefundNo() string {
|
func (x *RefundReq) GetTokenNo() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.RefundNo
|
return x.TokenNo
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RefundReq) GetTokenNo() string {
|
func (x *RefundReq) GetRefundNo() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.TokenNo
|
return x.RefundNo
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
@ -796,10 +796,10 @@ var file_org_proto_rawDesc = []byte{
|
|||||||
0x72, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x72, 0x67, 0x4e, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28,
|
0x72, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x72, 0x67, 0x4e, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||||
0x09, 0x52, 0x05, 0x4f, 0x72, 0x67, 0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65,
|
0x09, 0x52, 0x05, 0x4f, 0x72, 0x67, 0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65,
|
||||||
0x72, 0x4e, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
0x72, 0x4e, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
||||||
0x4e, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x4e, 0x6f, 0x18, 0x06,
|
0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4e, 0x6f, 0x18, 0x06, 0x20,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x4e, 0x6f, 0x12, 0x18,
|
0x01, 0x28, 0x09, 0x52, 0x07, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4e, 0x6f, 0x12, 0x1a, 0x0a, 0x08,
|
||||||
0x0a, 0x07, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4e, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x4e, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
||||||
0x07, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4e, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x43, 0x63, 0x79, 0x18,
|
0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x4e, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x43, 0x63, 0x79, 0x18,
|
||||||
0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x43, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d,
|
0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x43, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d,
|
||||||
0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75,
|
0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75,
|
||||||
0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x18, 0x0a, 0x20, 0x01,
|
0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x18, 0x0a, 0x20, 0x01,
|
||||||
|
|||||||
@ -34,6 +34,7 @@ const (
|
|||||||
type OrgClient interface {
|
type OrgClient interface {
|
||||||
Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PongRes, error)
|
Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PongRes, error)
|
||||||
Pay(ctx context.Context, in *PayReq, opts ...grpc.CallOption) (*Orders, error)
|
Pay(ctx context.Context, in *PayReq, opts ...grpc.CallOption) (*Orders, error)
|
||||||
|
// rpc Revoke(protobuf.Orders) returns (protobuf.Orders); //撤销
|
||||||
Refund(ctx context.Context, in *RefundReq, opts ...grpc.CallOption) (*Refunds, error)
|
Refund(ctx context.Context, in *RefundReq, opts ...grpc.CallOption) (*Refunds, error)
|
||||||
Callback(ctx context.Context, in *CallbackReq, opts ...grpc.CallOption) (*Orders, error)
|
Callback(ctx context.Context, in *CallbackReq, opts ...grpc.CallOption) (*Orders, error)
|
||||||
QueryOrder(ctx context.Context, in *QueryReq, opts ...grpc.CallOption) (*Orders, error)
|
QueryOrder(ctx context.Context, in *QueryReq, opts ...grpc.CallOption) (*Orders, error)
|
||||||
@ -114,6 +115,7 @@ func (c *orgClient) QueryRefund(ctx context.Context, in *QueryReq, opts ...grpc.
|
|||||||
type OrgServer interface {
|
type OrgServer interface {
|
||||||
Ping(context.Context, *PingReq) (*PongRes, error)
|
Ping(context.Context, *PingReq) (*PongRes, error)
|
||||||
Pay(context.Context, *PayReq) (*Orders, error)
|
Pay(context.Context, *PayReq) (*Orders, error)
|
||||||
|
// rpc Revoke(protobuf.Orders) returns (protobuf.Orders); //撤销
|
||||||
Refund(context.Context, *RefundReq) (*Refunds, error)
|
Refund(context.Context, *RefundReq) (*Refunds, error)
|
||||||
Callback(context.Context, *CallbackReq) (*Orders, error)
|
Callback(context.Context, *CallbackReq) (*Orders, error)
|
||||||
QueryOrder(context.Context, *QueryReq) (*Orders, error)
|
QueryOrder(context.Context, *QueryReq) (*Orders, error)
|
||||||
|
|||||||
113
refunds.pb.go
113
refunds.pb.go
@ -38,18 +38,21 @@ type Refunds struct {
|
|||||||
OrgNo string `protobuf:"bytes,5,opt,name=OrgNo,proto3" json:"OrgNo,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:"商户订单号"` // 商户订单号
|
OrderNo string `protobuf:"bytes,6,opt,name=OrderNo,proto3" json:"OrderNo,omitempty" dc:"商户订单号"` // 商户订单号
|
||||||
RefundNo string `protobuf:"bytes,7,opt,name=RefundNo,proto3" json:"RefundNo,omitempty" dc:"退单号"` // 退单号
|
RefundNo string `protobuf:"bytes,7,opt,name=RefundNo,proto3" json:"RefundNo,omitempty" dc:"退单号"` // 退单号
|
||||||
Ccy string `protobuf:"bytes,8,opt,name=Ccy,proto3" json:"Ccy,omitempty" dc:"币种"` // 币种
|
TokenNo string `protobuf:"bytes,8,opt,name=TokenNo,proto3" json:"TokenNo,omitempty" dc:"退款凭证号"` // 退款凭证号
|
||||||
Deduct string `protobuf:"bytes,9,opt,name=Deduct,proto3" json:"Deduct,omitempty" dc:"费用/扣款/手续费"` // 费用/扣款/手续费
|
Ccy string `protobuf:"bytes,9,opt,name=Ccy,proto3" json:"Ccy,omitempty" dc:"币种"` // 币种
|
||||||
Amount string `protobuf:"bytes,10,opt,name=Amount,proto3" json:"Amount,omitempty" dc:"退款金额"` // 退款金额
|
Deduct string `protobuf:"bytes,10,opt,name=Deduct,proto3" json:"Deduct,omitempty" dc:"费用/扣款/手续费"` // 费用/扣款/手续费
|
||||||
Goods string `protobuf:"bytes,11,opt,name=Goods,proto3" json:"Goods,omitempty" dc:"退单货品ID"` // 退单货品ID
|
Amount string `protobuf:"bytes,11,opt,name=Amount,proto3" json:"Amount,omitempty" dc:"退款金额"` // 退款金额
|
||||||
Metadata string `protobuf:"bytes,12,opt,name=Metadata,proto3" json:"Metadata,omitempty" dc:"Meta数据"` // Meta数据
|
Cheque string `protobuf:"bytes,12,opt,name=Cheque,proto3" json:"Cheque,omitempty" dc:"凭证/回单"` // 凭证/回单
|
||||||
Description string `protobuf:"bytes,13,opt,name=Description,proto3" json:"Description,omitempty" dc:"退款原因/备注/描述"` // 退款原因/备注/描述
|
Goods string `protobuf:"bytes,13,opt,name=Goods,proto3" json:"Goods,omitempty" dc:"退单货品ID"` // 退单货品ID
|
||||||
Calls int32 `protobuf:"varint,14,opt,name=Calls,proto3" json:"Calls,omitempty" dc:"回调次数"` // 回调次数
|
Metadata string `protobuf:"bytes,14,opt,name=Metadata,proto3" json:"Metadata,omitempty" dc:"Meta数据"` // Meta数据
|
||||||
State int32 `protobuf:"varint,15,opt,name=State,proto3" json:"State,omitempty" dc:"状态:-1=Failure, 0=Pending, 1=Success"` // 状态:-1=Failure, 0=Pending, 1=Success
|
Description string `protobuf:"bytes,15,opt,name=Description,proto3" json:"Description,omitempty" dc:"退款原因/备注/描述"` // 退款原因/备注/描述
|
||||||
StateText string `protobuf:"bytes,16,opt,name=StateText,proto3" json:"StateText,omitempty" dc:"状态原文/原因"` // 状态原文/原因
|
Response string `protobuf:"bytes,16,opt,name=Response,proto3" json:"Response,omitempty" dc:"响应/回调数据"` // 响应/回调数据
|
||||||
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` //
|
Calls int32 `protobuf:"varint,17,opt,name=Calls,proto3" json:"Calls,omitempty" dc:"回调次数"` // 回调次数
|
||||||
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` //
|
State int32 `protobuf:"varint,18,opt,name=State,proto3" json:"State,omitempty" dc:"状态:-1=Failure, 0=Pending, 1=Success"` // 状态:-1=Failure, 0=Pending, 1=Success
|
||||||
SuccessAt *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=SuccessAt,proto3" json:"SuccessAt,omitempty" dc:"退单完成时间"` // 退单完成时间
|
StateText string `protobuf:"bytes,19,opt,name=StateText,proto3" json:"StateText,omitempty" dc:"状态原文/原因"` // 状态原文/原因
|
||||||
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` //
|
||||||
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` //
|
||||||
|
SuccessAt *timestamppb.Timestamp `protobuf:"bytes,22,opt,name=SuccessAt,proto3" json:"SuccessAt,omitempty" dc:"退单完成时间"` // 退单完成时间
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Refunds) Reset() {
|
func (x *Refunds) Reset() {
|
||||||
@ -131,6 +134,13 @@ func (x *Refunds) GetRefundNo() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *Refunds) GetTokenNo() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.TokenNo
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (x *Refunds) GetCcy() string {
|
func (x *Refunds) GetCcy() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Ccy
|
return x.Ccy
|
||||||
@ -152,6 +162,13 @@ func (x *Refunds) GetAmount() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *Refunds) GetCheque() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Cheque
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (x *Refunds) GetGoods() string {
|
func (x *Refunds) GetGoods() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Goods
|
return x.Goods
|
||||||
@ -173,6 +190,13 @@ func (x *Refunds) GetDescription() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *Refunds) GetResponse() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Response
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (x *Refunds) GetCalls() int32 {
|
func (x *Refunds) GetCalls() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Calls
|
return x.Calls
|
||||||
@ -221,7 +245,7 @@ var file_refunds_proto_rawDesc = []byte{
|
|||||||
0x0a, 0x0d, 0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
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,
|
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,
|
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, 0xa9, 0x04, 0x0a, 0x07, 0x52,
|
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf7, 0x04, 0x0a, 0x07, 0x52,
|
||||||
0x65, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
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,
|
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,
|
0x01, 0x28, 0x04, 0x52, 0x03, 0x4b, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18,
|
||||||
@ -231,35 +255,40 @@ var file_refunds_proto_rawDesc = []byte{
|
|||||||
0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x18, 0x06, 0x20,
|
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, 0x1a, 0x0a, 0x08,
|
0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x12, 0x1a, 0x0a, 0x08,
|
||||||
0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x4e, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x4e, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
||||||
0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x4e, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x43, 0x63, 0x79, 0x18,
|
0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x6b, 0x65,
|
||||||
0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x43, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x44, 0x65,
|
0x6e, 0x4e, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
||||||
0x64, 0x75, 0x63, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x44, 0x65, 0x64, 0x75,
|
0x4e, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x43, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01,
|
0x03, 0x43, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x18, 0x0a,
|
||||||
0x28, 0x09, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x47, 0x6f,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06,
|
||||||
0x6f, 0x64, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x47, 0x6f, 0x6f, 0x64, 0x73,
|
0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x41, 0x6d,
|
||||||
0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0c, 0x20, 0x01,
|
0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65, 0x18, 0x0c,
|
||||||
0x28, 0x09, 0x52, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05,
|
||||||
0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28,
|
0x47, 0x6f, 0x6f, 0x64, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x47, 0x6f, 0x6f,
|
||||||
0x09, 0x52, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14,
|
0x64, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x0e,
|
||||||
0x0a, 0x05, 0x43, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x43,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x20,
|
||||||
0x61, 0x6c, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0f, 0x20,
|
0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0f, 0x20,
|
||||||
0x01, 0x28, 0x05, 0x52, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x74,
|
0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
|
||||||
0x61, 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x53,
|
0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x10, 0x20, 0x01,
|
||||||
0x74, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61,
|
0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05,
|
||||||
0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
|
0x43, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x43, 0x61, 0x6c,
|
||||||
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
|
0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28,
|
||||||
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
|
0x05, 0x52, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x74,
|
||||||
0x41, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18,
|
0x65, 0x54, 0x65, 0x78, 0x74, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x53, 0x74, 0x61,
|
||||||
0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
|
0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
0x64, 0x41, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
|
||||||
0x70, 0x52, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x09,
|
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
|
||||||
0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x74, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74,
|
||||||
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
0x12, 0x38, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x15, 0x20,
|
||||||
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x53, 0x75, 0x63,
|
0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
|
||||||
0x63, 0x65, 0x73, 0x73, 0x41, 0x74, 0x42, 0x25, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x2e, 0x6c, 0x69,
|
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
|
||||||
0x6e, 0x6b, 0x69, 0x69, 0x6f, 0x2e, 0x63, 0x6e, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x70, 0x61, 0x79,
|
0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x53, 0x75,
|
||||||
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70,
|
0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x74, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
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 (
|
var (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user