Documentation
¶
Index ¶
- type FontsMapItem
- type M
- type Option
- type PayRedirectURLDto
- type PaymentContsQueryCont
- type PaymentContsQueryDto
- type PaymentContsQueryResult
- type PaymentQueryDto
- type PaymentQueryList
- type PaymentQueryResult
- type ResponseBody
- type Tlfs
- func (x *Tlfs) GetNow(ctx context.Context) time.Time
- func (x *Tlfs) PayRedirectURL(dto *PayRedirectURLDto) (_ string, err error)
- func (x *Tlfs) PaymentContsQuery(ctx context.Context, dto *PaymentContsQueryDto) (_ *PaymentContsQueryResult, err error)
- func (x *Tlfs) PaymentQuery(ctx context.Context, dto *PaymentQueryDto) (_ *PaymentQueryResult, err error)
- func (x *Tlfs) Request(ctx context.Context, path string, content string) (_ []byte, err error)
- func (x *Tlfs) SetNow(ctx context.Context, ts time.Time) context.Context
- func (x *Tlfs) Sign(params map[string]string) (sign string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FontsMapItem ¶
func NewFontsMapItem ¶
func NewFontsMapItem(id, value string) *FontsMapItem
type PayRedirectURLDto ¶
type PayRedirectURLDto struct {
Id string `json:"id"` // 收款单id
SellerId string `json:"sellerId"` // 收款人Id
EnterType string `json:"enterType"` // 类型
Amount string `json:"amount"` // 金额(分为单位)
FontsMap []*FontsMapItem `json:"fontsMap,omitempty"` // 表单数据
}
type PaymentContsQueryCont ¶
type PaymentContsQueryCont struct {
ID string `json:"id"`
Name string `json:"name"` // 信息项名称
Type string `json:"type"` // 类型
Sort int `json:"sort"` // 排序
Tip string `json:"tip,omitempty"` // 提示信息
Descr string `json:"descr,omitempty"` // 字段描述
Data string `json:"data,omitempty"` // 选项值
Value string `json:"value,omitempty"` // 默认值
Deposit int64 `json:"deposit,omitempty"` // 商品押金,单位分
SearchRequired int `json:"searchrequired,omitempty"`
ReceivedRequired int `json:"receivedRequired,omitempty"`
FoldRequired int `json:"foldRequired,omitempty"`
MulPickerRequired int `json:"mulPickerRequired,omitempty"`
SmsCodeRequired int `json:"smsCodeRequired,omitempty"`
RequireDeposit int `json:"requireDeposit,omitempty"`
ScanRequired int `json:"scanRequired,omitempty"`
FixAmountRequired int `json:"fixAmountRequired,omitempty"`
Desensitized int `json:"desensitized,omitempty"`
}
type PaymentContsQueryDto ¶
type PaymentContsQueryDto struct {
StoreId string `json:"storeId"` // 门店唯一标识
PaymentId string `json:"paymentId"` // 门店收款单唯一标识
}
func NewPaymentContsQueryDto ¶
func NewPaymentContsQueryDto(storeId string, paymentId string) *PaymentContsQueryDto
type PaymentContsQueryResult ¶
type PaymentContsQueryResult struct {
StoreId string `json:"storeId"` // 门店唯一标识
PaymentId string `json:"paymentId"` // 收款单唯一标识
Conts []PaymentContsQueryCont `json:"conts"` // 收款单信息列表
}
type PaymentQueryDto ¶
type PaymentQueryDto struct {
StoreId string `json:"storeId"` // 门店唯一标识
}
func NewPaymentQueryDto ¶
func NewPaymentQueryDto(storeId string) *PaymentQueryDto
type PaymentQueryList ¶
type PaymentQueryList struct {
StoreId string `json:"storeId"` // 门店唯一标识
PaymentId string `json:"paymentId"` // 收款单唯一标识
PaymentName string `json:"paymentName"` // 收款单名称
DataStatus string `json:"dataStatus"` // 收款单状态
Type string `json:"type"` // 收款单类型
CreatedDate string `json:"createdDate"` // 创建时间
}
type PaymentQueryResult ¶
type PaymentQueryResult struct {
List []PaymentQueryList `json:"list"`
}
type ResponseBody ¶
type Tlfs ¶
func (*Tlfs) PayRedirectURL ¶
func (x *Tlfs) PayRedirectURL(dto *PayRedirectURLDto) (_ string, err error)
func (*Tlfs) PaymentContsQuery ¶
func (x *Tlfs) PaymentContsQuery(ctx context.Context, dto *PaymentContsQueryDto) (_ *PaymentContsQueryResult, err error)
func (*Tlfs) PaymentQuery ¶
func (x *Tlfs) PaymentQuery(ctx context.Context, dto *PaymentQueryDto) (_ *PaymentQueryResult, err error)
Click to show internal directories.
Click to hide internal directories.