eto

package
v0.0.0-...-f535f45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyOrderRefundReq

type ApplyOrderRefundReq struct {
	OrderId          int64  `json:"orderId"`
	UserId           int64  `json:"userId"`
	RefundType       int32  `json:"refundType"`
	RefundReason     string `json:"refundReason"`
	TpOrderId        string `json:"tpOrderId"`
	ApplyRefundMoney int64  `json:"applyRefundMoney"`
	BizRefundBatchId string `json:"bizRefundBatchId"`
	AppKey           string `json:"appKey"`
	RsaSign          string `json:"rsaSign"`
}

func (*ApplyOrderRefundReq) FieldForm

func (m *ApplyOrderRefundReq) FieldForm() url.Values

func (*ApplyOrderRefundReq) FieldMap

func (m *ApplyOrderRefundReq) FieldMap() map[string]interface{}

type ApplyOrderRefundResp

type ApplyOrderRefundResp struct {
	RefundBatchId  int64 `json:"refundBatchId"`
	RefundPayMoney int64 `json:"refundPayMoney"`
}

type AuditStatus

type AuditStatus int32
const (
	AuditStatusInvalid AuditStatus = iota
	AuditStatusConfirm
	AuditStatusReject
	AuditStatusUnknow
)

type BaseResponse

type BaseResponse struct {
	Errno int32           `json:"errno"`
	Msg   string          `json:"msg"`
	Data  json.RawMessage `json:"data,omitempty"`
}

type BizInfo

type BizInfo struct {
	TpData *BizInfoTpData `json:"tpData"`
}

type BizInfoTpData

type BizInfoTpData struct {
	AppKey         string `json:"appKey"`
	DealID         string `json:"dealID"`
	TpOrderID      string `json:"tpOrderID"`
	RsaSign        string `json:"rsaSign"`
	TotalAmount    string `json:"totalAmount"` // 订单总金额,以分为单位
	PayResultUrl   string `json:"payResultUrl"`
	ReturnData     string `json:"returnData"` // 业务方用于透传的业务变量
	DealTitle      string `json:"dealTitle"`  // 订单的名称
	DetailSubTitle string `json:"detailSubTitle"`
	DealTumbView   string `json:"dealTumbView"`
}

type CalculateRes

type CalculateRes struct {
	RefundPayMoney int32 `json:"refund_pay_money"`
}

type CallbackModel

type CallbackModel interface {
	Filled(url.Values)
}

type OrderRefundAuditNotify

type OrderRefundAuditNotify struct {
	OrderId          string `json:"orderId"`
	UserId           string `json:"userId"`
	TpOrderId        string `json:"tpOrderId"`
	RefundBatchId    string `json:"refundBatchId"`
	ApplyRefundMoney string `json:"applyRefundMoney"`
	RsaSign          string `json:"rsaSign"`
}
type OrderRefundAuditNotify struct {
	OrderId          int64  `json:"orderId"`
	UserId           int64  `json:"userId"`
	TpOrderId        string `json:"tpOrderId"`
	RefundBatchId    string `json:"refundBatchId"`
	ApplyRefundMoney int32  `json:"applyRefundMoney"`
	RsaSign          string `json:"rsaSign"`
}

func (*OrderRefundAuditNotify) Filled

func (res *OrderRefundAuditNotify) Filled(values url.Values)

通过 values 填充自己

type OrderRefundAuditRes

type OrderRefundAuditRes struct {
	AuditStatus  AuditStatus  `json:"auditStatus"`
	CalculateRes CalculateRes `json:"calculate_res"`
}

type RefundNotify

type RefundNotify struct {
	UserId        string `json:"userId"`
	OrderId       string `json:"orderId"`
	TpOrderId     string `json:"tpOrderId"`
	RefundBatchId string `json:"refundBatchId"`
	RefundStatus  string `json:"refundStatus"`
	RsaSign       string `json:"rsaSign"`
}
type RefundNotify struct {
	UserId        int64        `json:"userId"`
	OrderId       int64        `json:"orderId"`
	TpOrderId     string       `json:"tpOrderId"`
	RefundBatchId string       `json:"refundBatchId"`
	RefundStatus  RefundStatus `json:"refundStatus"`
	RsaSign       string       `json:"rsaSign"`
}

func (*RefundNotify) Filled

func (res *RefundNotify) Filled(values url.Values)

通过 values 填充自己

type RefundStatus

type RefundStatus int32
const (
	RefundInvalid RefundStatus = iota
	RefundSuccess
	RefundFail
)

type SyncOrderStatusReq

type SyncOrderStatusReq struct {
	OrderId int64  `json:"orderId"`
	UserId  int64  `json:"userId"`
	Type    int32  `json:"type"` // 固定值3
	AppKey  string `json:"appKey"`
	RsaSign string `json:"rsaSign"`
}

func (*SyncOrderStatusReq) FieldForm

func (m *SyncOrderStatusReq) FieldForm() url.Values

func (*SyncOrderStatusReq) FieldMap

func (m *SyncOrderStatusReq) FieldMap() map[string]interface{}

type UnionOrderNotify

type UnionOrderNotify struct {
	UserID         string          `json:"userId"`    // 百度用户 ID
	OrderID        string          `json:"orderId"`   // 百度平台订单 ID
	UnitPrice      string          `json:"unitPrice"` // 单价	Integer	单位:分
	Count          string          `json:"count"`
	TotalMoney     string          `json:"totalMoney"`     // 总金额	Integer	订单的实际金额,单位:分
	PayMoney       string          `json:"payMoney"`       // 扣除各种优惠后用户还需要支付的金额,单位:分
	PromoMoney     string          `json:"promoMoney"`     // 红包支付金额
	HbMoney        string          `json:"hbMoney"`        // 红包支付金额
	HbBalanceMoney string          `json:"hbBalanceMoney"` // 余额支付金额
	GiftCardMoney  string          `json:"giftCardMoney"`  // 抵用券金额
	DealID         string          `json:"dealId"`         // 百度收银台的财务结算凭证
	PayTime        string          `json:"payTime"`        // 支付完成时间,时间戳	1463037529
	PromoDetail    json.RawMessage `json:"promoDetail"`    // 订单参与的促销优惠的详细信息
	PayType        string          `json:"payType"`        // 支付渠道值
	PartnerID      string          `json:"partnerId"`      // 支付平台标识值
	Status         string          `json:"status"`         // 订单支付状态	Integer	1:未支付;2:已支付;-1:订单取消	2
	TpOrderID      string          `json:"tpOrderId"`      // 业务方订单号
	ReturnData     json.RawMessage `json:"returnData"`     // 业务方透传数据
	RsaSign        string          `json:"rsaSign"`
}
type UnionOrderNotify struct {
    UserID         int64           `json:"userId"`    // 百度用户 ID
    OrderID        int64           `json:"orderId"`   // 百度平台订单 ID
    UnitPrice      int32           `json:"unitPrice"` // 单价	Integer	单位:分
    Count          int32           `json:"count"`
    TotalMoney     int32           `json:"totalMoney"`     // 总金额	Integer	订单的实际金额,单位:分
    PayMoney       int32           `json:"payMoney"`       // 扣除各种优惠后用户还需要支付的金额,单位:分
    PromoMoney     int32           `json:"promoMoney"`     // 红包支付金额
    HbMoney        int32           `json:"hbMoney"`        // 红包支付金额
    HbBalanceMoney int32           `json:"hbBalanceMoney"` // 余额支付金额
    GiftCardMoney  int32           `json:"giftCardMoney"`  // 抵用券金额
    DealID         int64           `json:"dealId"`         // 百度收银台的财务结算凭证
    PayTime        int32           `json:"payTime"`        // 支付完成时间,时间戳	1463037529
    PromoDetail    json.RawMessage `json:"promoDetail"`    // 订单参与的促销优惠的详细信息
    PayType        int32           `json:"payType"`        // 支付渠道值
    PartnerID      int32           `json:"partnerId"`      // 支付平台标识值
    Status         string           `json:"status"`         // 订单支付状态	Integer	1:未支付;2:已支付;-1:订单取消	2
    TpOrderID      string          `json:"tpOrderId"`      // 业务方订单号
    ReturnData     json.RawMessage `json:"returnData"`     // 业务方透传数据
    RsaSign        string          `json:"rsaSign"`
}

func (*UnionOrderNotify) FiledMap

func (m *UnionOrderNotify) FiledMap() map[string]interface{}

func (*UnionOrderNotify) Filled

func (m *UnionOrderNotify) Filled(values url.Values)

通过 values 填充自己

func (*UnionOrderNotify) IsSuccess

func (m *UnionOrderNotify) IsSuccess() bool

是否支付成功

type UnionOrderReq

type UnionOrderReq struct {
	TotalAmount string // 订单总金额,以分为单位
	TpOrderID   string
	DealTitle   string
	ReturnData  string
}

https://dianshang.baidu.com/platform/doclist/index.html#!/doc/nuomiplus_1_guide/mini_program_cashier/parameter.md

type UnionOrderRes

type UnionOrderRes struct {
	DealID          string                   `json:"dealId"`
	AppKey          string                   `json:"appKey"`
	TotalAmount     string                   `json:"totalAmount"` // 订单总金额,以分为单位
	TpOrderID       string                   `json:"tpOrderId"`
	SignFieldsRange core.SignFieldsRangeType `json:"signFieldsRange"`
	DealTitle       string                   `json:"dealTitle"` // 订单的名称
	RsaSign         string                   `json:"rsaSign"`
	BizInfo         string                   `json:"bizInfo"`
}
{
		"dealId": "470193086",
		"appKey": "MMMabc",
		"totalAmount": "11300",
		"tpOrderId": "3028903626",
		"dealTitle": "爱鲜蜂",
		“signFieldsRange”:“1”,
		"rsaSign": '',
		"bizInfo": '{"tpData":{"appKey":"MMMabc","dealId":"470193086","tpOrderId":"3028903626",
			"rsaSign":"","totalAmount":"11300","payResultUrl":"",
			"returnData":{"bizKey1":"第三方的字段1取值","bizKey2":"第三方的字段2取值"}}}'
}

func (*UnionOrderRes) FieldForm

func (m *UnionOrderRes) FieldForm() url.Values

func (*UnionOrderRes) FieldMap

func (m *UnionOrderRes) FieldMap() map[string]interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL