1
This commit is contained in:
@@ -2,11 +2,11 @@ package tao_vegetable
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability304"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability304/request"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"git.rosy.net.cn/topsdk/ability304"
|
||||
"git.rosy.net.cn/topsdk/ability304/request"
|
||||
"topsdk"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
145
platformapi/tao_vegetable/order_afs.go
Normal file
145
platformapi/tao_vegetable/order_afs.go
Normal file
@@ -0,0 +1,145 @@
|
||||
package tao_vegetable
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/domain"
|
||||
request2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/request"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability591"
|
||||
domain591 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability591/domain"
|
||||
request591 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability591/request"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// AgreeUserCancel 同意用户售后申请
|
||||
func (a API) AgreeUserCancel(req *request2.AlibabaTclsAelophyRefundAgreeRequest) error {
|
||||
client := ability3156.NewAbility3156(&a.client)
|
||||
|
||||
data, err := client.AlibabaTclsAelophyRefundAgree(req, a.token)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(err, false))
|
||||
return err
|
||||
}
|
||||
|
||||
if data.Result.ReturnCode != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||
return fmt.Errorf(*data.Result.ReturnMsg)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// DisAgreeUserCancel 拒绝用户售后申请
|
||||
func (a API) DisAgreeUserCancel(req *request2.AlibabaTclsAelophyRefundDisagreeRequest) error {
|
||||
client := ability3156.NewAbility3156(&a.client)
|
||||
|
||||
data, err := client.AlibabaTclsAelophyRefundDisagree(req, a.token)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(err, false))
|
||||
return err
|
||||
}
|
||||
|
||||
if data.Result.ReturnCode != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||
return fmt.Errorf(*data.Result.ReturnMsg)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// PartialRefundReason 商户逆向取消订单数据渲染(获取订单商品列表已经取消原因:部分退款)
|
||||
func (a API) PartialRefundReason(req *request2.AlibabaTclsAelophyRefundCsapplyrenderRequest) (*domain.AlibabaTclsAelophyRefundCsapplyrenderRefundCsApplyRenderResponseDto, error) {
|
||||
client := ability3156.NewAbility3156(&a.client)
|
||||
|
||||
data, err := client.AlibabaTclsAelophyRefundCsapplyrender(req, a.token)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(err, false))
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if data.ApiResult.ErrCode != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||
return nil, fmt.Errorf(*data.ApiResult.ErrMsg)
|
||||
}
|
||||
|
||||
return data.ApiResult.Model, nil
|
||||
}
|
||||
|
||||
// PartialRefund 商户逆向取消订单
|
||||
func (a API) PartialRefund(req *request2.AlibabaTclsAelophyRefundCsapplyRequest) error {
|
||||
client := ability3156.NewAbility3156(&a.client)
|
||||
|
||||
data, err := client.AlibabaTclsAelophyRefundCsapply(req, a.token)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(err, false))
|
||||
return err
|
||||
}
|
||||
|
||||
if data.ApiResult.ErrCode != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||
return fmt.Errorf(*data.ApiResult.ErrMsg)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// UserApplyRefund 用户申请售后单消息通知
|
||||
func (a API) UserApplyRefund(c *http.Request) (*UserApplyRefundCallBack, error) {
|
||||
data, err := ioutil.ReadAll(c.Body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var result *UserApplyRefundCallBack
|
||||
if err := json.Unmarshal(data, result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// UserCancelRefundApply 用户取消售后申请
|
||||
func (a API) UserCancelRefundApply(c *http.Request) (*UserCancelRefundApply, error) {
|
||||
data, err := ioutil.ReadAll(c.Body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var result *UserCancelRefundApply
|
||||
if err := json.Unmarshal(data, result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// RefundOrderFinish 同城零售逆向订单状态完成接口(退款完成)
|
||||
func (a API) RefundOrderFinish(c *http.Request) (*RefundOrderFinish, error) {
|
||||
data, err := ioutil.ReadAll(c.Body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var result *RefundOrderFinish
|
||||
if err := json.Unmarshal(data, result); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// QueryAfsOrderDetail 获取订单退款详情
|
||||
func (a API) QueryAfsOrderDetail(req *request591.AlibabaWdkOrderRefundGetRequest) (*domain591.AlibabaWdkOrderRefundGetOrderSyncRefundListResult, error) {
|
||||
client := ability591.NewAbility591(&a.client)
|
||||
|
||||
data, err := client.AlibabaWdkOrderRefundGet(req, a.token)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(err, false))
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if data.Result.ReturnCode != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||
return nil, fmt.Errorf(*data.Result.ReturnMsg)
|
||||
}
|
||||
|
||||
return &data.Result, nil
|
||||
}
|
||||
89
platformapi/tao_vegetable/order_delivery.go
Normal file
89
platformapi/tao_vegetable/order_delivery.go
Normal file
@@ -0,0 +1,89 @@
|
||||
package tao_vegetable
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability591"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability591/domain"
|
||||
request2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability591/request"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// ReaderOrderInfo 获取订单状态回调
|
||||
func (a API) ReaderOrderInfo(c *http.Request) (*CallbackOrder, error) {
|
||||
body, _ := ioutil.ReadAll(c.Body)
|
||||
|
||||
var callbackOrder *CallbackOrder
|
||||
if err := json.Unmarshal(body, &callbackOrder); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return callbackOrder, nil
|
||||
}
|
||||
|
||||
func (a API) OnSaleRefundOrder(c *http.Request) (*OnSaleCancel, error) {
|
||||
body, _ := ioutil.ReadAll(c.Body)
|
||||
|
||||
var onSaleOrder *OnSaleCancel
|
||||
if err := json.Unmarshal(body, &onSaleOrder); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return onSaleOrder, nil
|
||||
}
|
||||
|
||||
// QueryOrderDetail 自配送查询订单详情
|
||||
func (a API) QueryOrderDetail(req *request2.AlibabaAelophyOrderGetRequest) (*domain.AlibabaAelophyOrderGetOrderResponse, error) {
|
||||
client := ability591.NewAbility591(&a.client)
|
||||
data, err := client.AlibabaAelophyOrderGet(req, a.token)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(err, false))
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if data.ApiResult.ErrCode != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||
return nil, fmt.Errorf(*data.ApiResult.ErrMsg)
|
||||
}
|
||||
|
||||
return data.ApiResult.Model, nil
|
||||
}
|
||||
|
||||
// DeliveryFinish 订单一下的没一个状态通知接口
|
||||
// ACCEPTED = 商户接单 REJECTED = 商户取消订单 PICKED = 拣货完成 PACKAGED = 打包出库 SHIPPING = 开始配送 SIGN = 用户签收 REFUSED = 用户拒收
|
||||
func (a API) DeliveryFinish(req *request2.AlibabaAelophyOrderWorkCallbackRequest) error {
|
||||
client := ability591.NewAbility591(&a.client)
|
||||
|
||||
data, err := client.AlibabaAelophyOrderWorkCallback(req, a.token)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(err, false))
|
||||
return err
|
||||
}
|
||||
|
||||
if data.ApiResult.ErrCode != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||
return fmt.Errorf(*data.ApiResult.ErrMsg)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// DeliveryTrajectory 自配送轨迹回传(骑手开始配送之后同步订单数据)
|
||||
func (a API) DeliveryTrajectory(req *request2.AlibabaAelophyOrderLogisticsTraceCallbackRequest) error {
|
||||
client := ability591.NewAbility591(&a.client)
|
||||
|
||||
data, err := client.AlibabaAelophyOrderLogisticsTraceCallback(req, a.token)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(err, false))
|
||||
return err
|
||||
}
|
||||
|
||||
if data.ApiResult.ErrCode != nil {
|
||||
globals.SugarLogger.Debugf("requestId[%s],err[%s]", data.RequestId, utils.Format4Output(data, false))
|
||||
return fmt.Errorf(*data.ApiResult.ErrMsg)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
93
platformapi/tao_vegetable/order_model.go
Normal file
93
platformapi/tao_vegetable/order_model.go
Normal file
@@ -0,0 +1,93 @@
|
||||
package tao_vegetable
|
||||
|
||||
// PublicModel 公共参数
|
||||
type PublicModel struct {
|
||||
Method string `json:"method"` // api接口
|
||||
AppKey string `json:"app_key"` // appKey
|
||||
Session string `json:"session"` // 门店授权token
|
||||
Timestamp string `json:"timestamp"` // 时间戳 时间格式
|
||||
V string `json:"v"` // 版本
|
||||
SignMethod string `json:"sign_method"` // 签名方式
|
||||
Sign string `json:"sign"` // 签名
|
||||
Format string `json:"format"` // 响应格式
|
||||
Simplify bool `json:"simplify"` // 是否精简json
|
||||
CustomerId bool `json:"customer_id"` // 三方对接过程中,业务自定义路由参数,更多在奇门仓储等场景中使用
|
||||
}
|
||||
|
||||
// CallbackOrder 正新订单消息通知
|
||||
type CallbackOrder struct {
|
||||
PublicModel
|
||||
MerchantCode string `json:"merchant_code"` // 商家编码
|
||||
StoreId string `json:"store_id"` // 门店id
|
||||
BizOrderId int64 `json:"biz_order_id"` // 订单号
|
||||
OrderStatus string `json:"order_status"` // 订单状态
|
||||
}
|
||||
|
||||
// OnSaleCancel 售中订单取消回调
|
||||
type OnSaleCancel struct {
|
||||
PublicModel
|
||||
PartCancelRequest PartCancelRequest `json:"partCancelRequest"` // 取消子单列表
|
||||
IdempotentId string `json:"idempotentId"` // 发起订单取消幂等键
|
||||
BizOrderId int64 `json:"bizOrderId"` // 主订单号
|
||||
StoreId string `json:"storeId"` // 门店id
|
||||
MerchantCode string `json:"merchantCode"` // 商户id
|
||||
}
|
||||
|
||||
type PartCancelRequest struct {
|
||||
SubOrders []CancelSubOrder `json:"subOrders"` // 取消子单列表
|
||||
}
|
||||
|
||||
type CancelSubOrder struct {
|
||||
BizSubOrderId int64 `json:"bizSubOrderId"` // 要取消的子订单号
|
||||
CancelStockQuantity string `json:"cancelStockQuantity"` // 库存单位取消数量
|
||||
CancelSaleQuantity string `json:"cancelSaleQuantity"` // 销售单位取消数量
|
||||
}
|
||||
|
||||
// UserApplyRefundCallBack 用户申请售后消息通知
|
||||
type UserApplyRefundCallBack struct {
|
||||
PublicModel
|
||||
BizRefundId string `json:"bizRefundId"` // 翱象退款单ID
|
||||
RefundId string `json:"refundId"` // 渠道退款单ID, 幂等键
|
||||
OutOrderId string `json:"outOrderId"` // 渠道订单ID
|
||||
MerchantCode string `json:"merchantCode"` // 商家编码
|
||||
StoreId string `json:"storeId"` // 商家经营店ID
|
||||
OrderFrom int64 `json:"orderFrom"` // 订单来源:如 2=美团 / 3=饿了么 / 4=淘鲜达
|
||||
RefundFee int64 `json:"refundFee"` // 申请退款金额(包含退运费), 分
|
||||
RefundDeliveryFee int64 `json:"refundDeliveryFee"` // 退运费, 分
|
||||
RefundPackageFee int64 `json:"refundPackageFee"` // 退包装费,分
|
||||
RefundReason string `json:"refundReason"` // 退款原因
|
||||
RefundPictures string `json:"refundPictures"` // 售后图片链接
|
||||
Remarks string `json:"remarks"` // 备注
|
||||
SubRefundOrders []SubRefundOrdersList `json:"subRefundOrders"` // 逆向子单列表
|
||||
}
|
||||
|
||||
type SubRefundOrdersList struct {
|
||||
RefundFee int64 `json:"refundFee"` // 子单退款金额, 分
|
||||
OutSubOrderId string `json:"outSubOrderId"` // 渠道子订单ID
|
||||
MaxRefundFee int64 `json:"maxRefundFee"` // 子单最大可退款金额, 分
|
||||
RefundAmount int64 `json:"refundAmount"` // 子单退货数量(淘鲜达不用填)
|
||||
}
|
||||
|
||||
// UserCancelRefundApply 用户取消售后申请
|
||||
type UserCancelRefundApply struct {
|
||||
PublicModel
|
||||
RefundId string `json:"refundId"` // 渠道退款单ID, 幂等键
|
||||
BizRefundId string `json:"bizRefundId"` // 翱象退款单ID
|
||||
OutOrderId string `json:"outOrderId"` // 渠道订单ID
|
||||
OrderFrom int64 `json:"orderFrom"` // 渠道来源
|
||||
MerchantCode int64 `json:"merchantCode"` // 商家编码
|
||||
StoreId int64 `json:"storeId"` // 商家经营店ID
|
||||
}
|
||||
|
||||
// RefundOrderFinish 逆向订单完成回调(售后完成)
|
||||
type RefundOrderFinish struct {
|
||||
PublicModel
|
||||
StoreId string `json:"store_id"` // 门店编码
|
||||
OrderStatus string `json:"order_status"` // 退款单状态
|
||||
OutSubOrderId string `json:"out_sub_order_id"` // 外部子单号
|
||||
MerchantCode string `json:"merchant_code"` // 商家编码
|
||||
OutMainRefundId string `json:"out_main_refund_id"` // 外部退款单号
|
||||
OrderFrom string `json:"order_from"` // 订单来源渠道
|
||||
BizSubRefundId string `json:"biz_sub_refund_id"` // 退款业务子单号
|
||||
ShopId string `json:"shop_id"` // 渠道店编码
|
||||
}
|
||||
98
platformapi/tao_vegetable/sdk/ability1475/Ability1475.go
Normal file
98
platformapi/tao_vegetable/sdk/ability1475/Ability1475.go
Normal file
@@ -0,0 +1,98 @@
|
||||
package ability1475
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk"
|
||||
request2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/request"
|
||||
response2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/response"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
"log"
|
||||
)
|
||||
|
||||
type Ability1475 struct {
|
||||
Client *topsdk.TopClient
|
||||
}
|
||||
|
||||
func NewAbility1475(client *topsdk.TopClient) *Ability1475 {
|
||||
return &Ability1475{client}
|
||||
}
|
||||
|
||||
/*
|
||||
rt回传采购价
|
||||
*/
|
||||
func (ability *Ability1475) AlibabaWdkPurchasePrice(req *request2.AlibabaWdkPurchasePriceRequest, session string) (*response2.AlibabaWdkPurchasePriceResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability1475 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.wdk.purchase.price", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaWdkPurchasePriceResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaWdkPurchasePrice error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
商家注册更新路由信息
|
||||
*/
|
||||
func (ability *Ability1475) AlibabaWdkMerchantRoutingRegister(req *request2.AlibabaWdkMerchantRoutingRegisterRequest, session string) (*response2.AlibabaWdkMerchantRoutingRegisterResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability1475 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.wdk.merchant.routing.register", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaWdkMerchantRoutingRegisterResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaWdkMerchantRoutingRegister error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
获得当前系统时间
|
||||
*/
|
||||
func (ability *Ability1475) AlibabaWdkTimeGet(req *request2.AlibabaWdkTimeGetRequest) (*response2.AlibabaWdkTimeGetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability1475 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("alibaba.wdk.time.get", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.AlibabaWdkTimeGetResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaWdkTimeGet error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
图片上传接口
|
||||
*/
|
||||
func (ability *Ability1475) AlibabaWdkPictureUpload(req *request2.AlibabaWdkPictureUploadRequest, session string) (*response2.AlibabaWdkPictureUploadResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability1475 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.wdk.picture.upload", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaWdkPictureUploadResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaWdkPictureUpload error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaWdkMerchantRoutingRegisterApiResult struct {
|
||||
/*
|
||||
调用结果返回成功失败 */
|
||||
Model *bool `json:"model,omitempty" `
|
||||
|
||||
/*
|
||||
调用接口错误信息 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
调用接口错误码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
调用接口成功失败 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterApiResult) SetModel(v bool) *AlibabaWdkMerchantRoutingRegisterApiResult {
|
||||
s.Model = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterApiResult) SetErrMsg(v string) *AlibabaWdkMerchantRoutingRegisterApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterApiResult) SetErrCode(v string) *AlibabaWdkMerchantRoutingRegisterApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterApiResult) SetSuccess(v bool) *AlibabaWdkMerchantRoutingRegisterApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo struct {
|
||||
/*
|
||||
仓code,为空时路由为商家维度 */
|
||||
WarehouseCode *string `json:"warehouse_code,omitempty" `
|
||||
|
||||
/*
|
||||
操作状态1-注册;2-删除 */
|
||||
Status *int64 `json:"status,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo) SetWarehouseCode(v string) *AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo {
|
||||
s.WarehouseCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo) SetStatus(v int64) *AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo {
|
||||
s.Status = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaWdkPictureUploadApiResult struct {
|
||||
/*
|
||||
success */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
model */
|
||||
Model *AlibabaWdkPictureUploadPictureDo `json:"model,omitempty" `
|
||||
|
||||
/*
|
||||
错误code */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
错误原因 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkPictureUploadApiResult) SetSuccess(v bool) *AlibabaWdkPictureUploadApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadApiResult) SetModel(v AlibabaWdkPictureUploadPictureDo) *AlibabaWdkPictureUploadApiResult {
|
||||
s.Model = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadApiResult) SetErrCode(v string) *AlibabaWdkPictureUploadApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadApiResult) SetErrMsg(v string) *AlibabaWdkPictureUploadApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaWdkPictureUploadPictureDo struct {
|
||||
/*
|
||||
图片ID */
|
||||
PictureId *int64 `json:"picture_id,omitempty" `
|
||||
|
||||
/*
|
||||
图片分类ID */
|
||||
PictureCategoryId *int64 `json:"picture_category_id,omitempty" `
|
||||
|
||||
/*
|
||||
返回的是相对路劲 */
|
||||
PicturePath *string `json:"picture_path,omitempty" `
|
||||
|
||||
/*
|
||||
图片标题 */
|
||||
Title *string `json:"title,omitempty" `
|
||||
|
||||
/*
|
||||
图片大小,bite单位 */
|
||||
Sizes *int64 `json:"sizes,omitempty" `
|
||||
|
||||
/*
|
||||
图片状态,unfroze代表没有被冻结,froze代表被冻结,pass代表排查通过 */
|
||||
Status *string `json:"status,omitempty" `
|
||||
|
||||
/*
|
||||
图片是否删除的标记 */
|
||||
Deleted *string `json:"deleted,omitempty" `
|
||||
|
||||
/*
|
||||
图片的创建时间 */
|
||||
Created *string `json:"created,omitempty" `
|
||||
|
||||
/*
|
||||
图片的修改时间 */
|
||||
Modified *string `json:"modified,omitempty" `
|
||||
|
||||
/*
|
||||
图片相素,格式:长x宽,如450x150 */
|
||||
Pixel *string `json:"pixel,omitempty" `
|
||||
|
||||
/*
|
||||
完整的路劲 */
|
||||
FullUrl *string `json:"full_url,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetPictureId(v int64) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.PictureId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetPictureCategoryId(v int64) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.PictureCategoryId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetPicturePath(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.PicturePath = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetTitle(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Title = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetSizes(v int64) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Sizes = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetStatus(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Status = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetDeleted(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Deleted = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetCreated(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Created = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetModified(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Modified = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetPixel(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.Pixel = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadPictureDo) SetFullUrl(v string) *AlibabaWdkPictureUploadPictureDo {
|
||||
s.FullUrl = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaWdkPurchasePriceWdkOpenPurchasePrice struct {
|
||||
/*
|
||||
经营店id,必填 */
|
||||
StoreId *string `json:"store_id,omitempty" `
|
||||
|
||||
/*
|
||||
淘系主订单号,必填 */
|
||||
TbOrderId *string `json:"tb_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
子单信息 */
|
||||
WdkOpenPurchasePriceSubs *[]AlibabaWdkPurchasePriceWdkopenpurchasepricesubs `json:"wdk_open_purchase_price_subs,omitempty" `
|
||||
|
||||
/*
|
||||
渠道标识45=猫超,100=共享零售 */
|
||||
OrderFrom *int64 `json:"order_from,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkPurchasePriceWdkOpenPurchasePrice) SetStoreId(v string) *AlibabaWdkPurchasePriceWdkOpenPurchasePrice {
|
||||
s.StoreId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkOpenPurchasePrice) SetTbOrderId(v string) *AlibabaWdkPurchasePriceWdkOpenPurchasePrice {
|
||||
s.TbOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkOpenPurchasePrice) SetWdkOpenPurchasePriceSubs(v []AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) *AlibabaWdkPurchasePriceWdkOpenPurchasePrice {
|
||||
s.WdkOpenPurchasePriceSubs = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkOpenPurchasePrice) SetOrderFrom(v int64) *AlibabaWdkPurchasePriceWdkOpenPurchasePrice {
|
||||
s.OrderFrom = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaWdkPurchasePriceWdkopenpurchasepricesubs struct {
|
||||
/*
|
||||
确认标识,0:核对 1:确认,必填 */
|
||||
Confirm *string `json:"confirm,omitempty" `
|
||||
|
||||
/*
|
||||
去税采购价,单位分,必填 */
|
||||
PriceWithoutTax *string `json:"price_without_tax,omitempty" `
|
||||
|
||||
/*
|
||||
含税采购价,单位分,必填 */
|
||||
PriceWithTax *string `json:"price_with_tax,omitempty" `
|
||||
|
||||
/*
|
||||
税率,必填 */
|
||||
TaxRate *string `json:"tax_rate,omitempty" `
|
||||
|
||||
/*
|
||||
商品编码,必填 */
|
||||
SkuCode *string `json:"sku_code,omitempty" `
|
||||
|
||||
/*
|
||||
淘系子订单号,必填 */
|
||||
TbSubOrderId *string `json:"tb_sub_order_id,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) SetConfirm(v string) *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs {
|
||||
s.Confirm = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) SetPriceWithoutTax(v string) *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs {
|
||||
s.PriceWithoutTax = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) SetPriceWithTax(v string) *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs {
|
||||
s.PriceWithTax = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) SetTaxRate(v string) *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs {
|
||||
s.TaxRate = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) SetSkuCode(v string) *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs {
|
||||
s.SkuCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs) SetTbSubOrderId(v string) *AlibabaWdkPurchasePriceWdkopenpurchasepricesubs {
|
||||
s.TbSubOrderId = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package request
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/domain"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type AlibabaWdkMerchantRoutingRegisterRequest struct {
|
||||
/*
|
||||
接口入参 */
|
||||
MerchantRoutingInfoRegister *domain.AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo `json:"merchant_routing_info_register" required:"true" `
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkMerchantRoutingRegisterRequest) SetMerchantRoutingInfoRegister(v domain.AlibabaWdkMerchantRoutingRegisterMerchantRoutingInfoRegisterDo) *AlibabaWdkMerchantRoutingRegisterRequest {
|
||||
s.MerchantRoutingInfoRegister = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkMerchantRoutingRegisterRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if req.MerchantRoutingInfoRegister != nil {
|
||||
paramMap["merchant_routing_info_register"] = util.ConvertStruct(*req.MerchantRoutingInfoRegister)
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkMerchantRoutingRegisterRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package request
|
||||
|
||||
type AlibabaWdkPictureUploadRequest struct {
|
||||
/*
|
||||
图片分类ID,设置具体某个分类ID或设置0上传到默认分类,只能传入一个分类 */
|
||||
PictureCategoryId *int64 `json:"picture_category_id" required:"true" `
|
||||
/*
|
||||
图片二进制文件流,不能为空,允许png、jpg、gif图片格式,3M以内 */
|
||||
Img *[]byte `json:"img" required:"true" `
|
||||
/*
|
||||
包括后缀名的图片标题,不能为空,如Bule.jpg,有些卖家希望图片上传后取图片文件的默认名 */
|
||||
ImgInputTitle *string `json:"img_input_title,omitempty" required:"false" `
|
||||
/*
|
||||
图片标题,如果为空,传的图片标题就取去掉后缀名的image_input_title,超过50字符长度会截取50字符,重名会在标题末尾加"(1)";标题末尾已经有"(数字)"了,则数字加1 */
|
||||
Title *string `json:"title,omitempty" required:"false" `
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkPictureUploadRequest) SetPictureCategoryId(v int64) *AlibabaWdkPictureUploadRequest {
|
||||
s.PictureCategoryId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadRequest) SetImg(v []byte) *AlibabaWdkPictureUploadRequest {
|
||||
s.Img = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadRequest) SetImgInputTitle(v string) *AlibabaWdkPictureUploadRequest {
|
||||
s.ImgInputTitle = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaWdkPictureUploadRequest) SetTitle(v string) *AlibabaWdkPictureUploadRequest {
|
||||
s.Title = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkPictureUploadRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if req.PictureCategoryId != nil {
|
||||
paramMap["picture_category_id"] = *req.PictureCategoryId
|
||||
}
|
||||
if req.ImgInputTitle != nil {
|
||||
paramMap["img_input_title"] = *req.ImgInputTitle
|
||||
}
|
||||
if req.Title != nil {
|
||||
paramMap["title"] = *req.Title
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkPictureUploadRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
if req.Img != nil {
|
||||
fileMap["img"] = *req.Img
|
||||
}
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package request
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/domain"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type AlibabaWdkPurchasePriceRequest struct {
|
||||
/*
|
||||
入参 */
|
||||
WdkOpenPurchasePrice *domain.AlibabaWdkPurchasePriceWdkOpenPurchasePrice `json:"wdk_open_purchase_price,omitempty" required:"false" `
|
||||
}
|
||||
|
||||
func (s *AlibabaWdkPurchasePriceRequest) SetWdkOpenPurchasePrice(v domain.AlibabaWdkPurchasePriceWdkOpenPurchasePrice) *AlibabaWdkPurchasePriceRequest {
|
||||
s.WdkOpenPurchasePrice = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkPurchasePriceRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if req.WdkOpenPurchasePrice != nil {
|
||||
paramMap["wdk_open_purchase_price"] = util.ConvertStruct(*req.WdkOpenPurchasePrice)
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkPurchasePriceRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package request
|
||||
|
||||
|
||||
type AlibabaWdkTimeGetRequest struct {
|
||||
}
|
||||
|
||||
|
||||
func (req *AlibabaWdkTimeGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *AlibabaWdkTimeGetRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/domain"
|
||||
)
|
||||
|
||||
type AlibabaWdkMerchantRoutingRegisterResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
返回结果
|
||||
*/
|
||||
Result domain.AlibabaWdkMerchantRoutingRegisterApiResult `json:"result,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability1475/domain"
|
||||
)
|
||||
|
||||
type AlibabaWdkPictureUploadResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
apiresult
|
||||
*/
|
||||
Result domain.AlibabaWdkPictureUploadApiResult `json:"result,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package response
|
||||
|
||||
type AlibabaWdkPurchasePriceResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
SYSTEM ERROR
|
||||
*/
|
||||
ReturnMsg string `json:"return_msg,omitempty" `
|
||||
/*
|
||||
ERROR
|
||||
*/
|
||||
ReturnCode string `json:"return_code,omitempty" `
|
||||
/*
|
||||
true
|
||||
*/
|
||||
ReturnSuccess bool `json:"return_success,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type AlibabaWdkTimeGetResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
dateTime
|
||||
*/
|
||||
DateTime int64 `json:"date_time,omitempty" `
|
||||
/*
|
||||
date
|
||||
*/
|
||||
Date util.LocalTime `json:"date,omitempty" `
|
||||
}
|
||||
218
platformapi/tao_vegetable/sdk/ability304/Ability304.go
Normal file
218
platformapi/tao_vegetable/sdk/ability304/Ability304.go
Normal file
@@ -0,0 +1,218 @@
|
||||
package ability304
|
||||
|
||||
import (
|
||||
"errors"
|
||||
topsdk "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk"
|
||||
request2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability304/request"
|
||||
response2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability304/response"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
"log"
|
||||
)
|
||||
|
||||
type Ability304 struct {
|
||||
Client *topsdk.TopClient
|
||||
}
|
||||
|
||||
func NewAbility304(client *topsdk.TopClient) *Ability304 {
|
||||
return &Ability304{client}
|
||||
}
|
||||
|
||||
/*
|
||||
获取ISV发起请求服务器IP
|
||||
*/
|
||||
func (ability *Ability304) TaobaoAppipGet(req *request2.TaobaoAppipGetRequest) (*response2.TaobaoAppipGetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.appip.get", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoAppipGetResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoAppipGet error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
获取授权账号对应的OpenUid
|
||||
*/
|
||||
func (ability *Ability304) TaobaoOpenuidGet(req *request2.TaobaoOpenuidGetRequest, session string) (*response2.TaobaoOpenuidGetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("taobao.openuid.get", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.TaobaoOpenuidGetResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoOpenuidGet error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
通过订单获取对应买家的openUID
|
||||
*/
|
||||
func (ability *Ability304) TaobaoOpenuidGetBytrade(req *request2.TaobaoOpenuidGetBytradeRequest, session string) (*response2.TaobaoOpenuidGetBytradeResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("taobao.openuid.get.bytrade", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.TaobaoOpenuidGetBytradeResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoOpenuidGetBytrade error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
通过mixnick转换openuid
|
||||
*/
|
||||
func (ability *Ability304) TaobaoOpenuidGetBymixnick(req *request2.TaobaoOpenuidGetBymixnickRequest) (*response2.TaobaoOpenuidGetBymixnickResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.openuid.get.bymixnick", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoOpenuidGetBymixnickResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoOpenuidGetBymixnick error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
业务文件获取
|
||||
*/
|
||||
func (ability *Ability304) TaobaoFilesGet(req *request2.TaobaoFilesGetRequest) (*response2.TaobaoFilesGetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.files.get", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoFilesGetResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoFilesGet error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
刷新Access Token
|
||||
*/
|
||||
func (ability *Ability304) TaobaoTopAuthTokenRefresh(req *request2.TaobaoTopAuthTokenRefreshRequest) (*response2.TaobaoTopAuthTokenRefreshResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.top.auth.token.refresh", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoTopAuthTokenRefreshResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoTopAuthTokenRefresh error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
获取Access Token
|
||||
*/
|
||||
func (ability *Ability304) TaobaoTopAuthTokenCreate(req *request2.TaobaoTopAuthTokenCreateRequest) (*response2.TaobaoTopAuthTokenCreateResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.top.auth.token.create", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoTopAuthTokenCreateResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoTopAuthTokenCreate error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
TOPDNS配置
|
||||
*/
|
||||
func (ability *Ability304) TaobaoHttpdnsGet(req *request2.TaobaoHttpdnsGetRequest) (*response2.TaobaoHttpdnsGetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.httpdns.get", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoHttpdnsGetResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoHttpdnsGet error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
sdk信息回调
|
||||
*/
|
||||
func (ability *Ability304) TaobaoTopSdkFeedbackUpload(req *request2.TaobaoTopSdkFeedbackUploadRequest) (*response2.TaobaoTopSdkFeedbackUploadResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.top.sdk.feedback.upload", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoTopSdkFeedbackUploadResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoTopSdkFeedbackUpload error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
获取TOP通道解密秘钥
|
||||
*/
|
||||
func (ability *Ability304) TaobaoTopSecretGet(req *request2.TaobaoTopSecretGetRequest) (*response2.TaobaoTopSecretGetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability304 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("taobao.top.secret.get", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.TaobaoTopSecretGetResponse{}
|
||||
if err != nil {
|
||||
log.Println("taobaoTopSecretGet error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type TaobaoFilesGetTopDownloadRecordDo struct {
|
||||
/*
|
||||
下载链接 */
|
||||
Url *string `json:"url,omitempty" `
|
||||
|
||||
/*
|
||||
文件创建时间 */
|
||||
Created *util.LocalTime `json:"created,omitempty" `
|
||||
|
||||
/*
|
||||
下载链接状态。1:未下载。2:已下载 */
|
||||
Status *int64 `json:"status,omitempty" `
|
||||
}
|
||||
|
||||
func (s *TaobaoFilesGetTopDownloadRecordDo) SetUrl(v string) *TaobaoFilesGetTopDownloadRecordDo {
|
||||
s.Url = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoFilesGetTopDownloadRecordDo) SetCreated(v util.LocalTime) *TaobaoFilesGetTopDownloadRecordDo {
|
||||
s.Created = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoFilesGetTopDownloadRecordDo) SetStatus(v int64) *TaobaoFilesGetTopDownloadRecordDo {
|
||||
s.Status = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoAppipGetRequest struct {
|
||||
}
|
||||
|
||||
|
||||
func (req *TaobaoAppipGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoAppipGetRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package request
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type TaobaoFilesGetRequest struct {
|
||||
/*
|
||||
下载链接状态。1:未下载。2:已下载 */
|
||||
Status *int64 `json:"status,omitempty" required:"false" `
|
||||
/*
|
||||
搜索开始时间 */
|
||||
StartDate *util.LocalTime `json:"start_date" required:"true" `
|
||||
/*
|
||||
搜索结束时间 */
|
||||
EndDate *util.LocalTime `json:"end_date" required:"true" `
|
||||
}
|
||||
|
||||
func (s *TaobaoFilesGetRequest) SetStatus(v int64) *TaobaoFilesGetRequest {
|
||||
s.Status = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoFilesGetRequest) SetStartDate(v util.LocalTime) *TaobaoFilesGetRequest {
|
||||
s.StartDate = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoFilesGetRequest) SetEndDate(v util.LocalTime) *TaobaoFilesGetRequest {
|
||||
s.EndDate = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoFilesGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if req.Status != nil {
|
||||
paramMap["status"] = *req.Status
|
||||
}
|
||||
if req.StartDate != nil {
|
||||
paramMap["start_date"] = *req.StartDate
|
||||
}
|
||||
if req.EndDate != nil {
|
||||
paramMap["end_date"] = *req.EndDate
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoFilesGetRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoHttpdnsGetRequest struct {
|
||||
}
|
||||
|
||||
|
||||
func (req *TaobaoHttpdnsGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoHttpdnsGetRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoOpenuidGetBymixnickRequest struct {
|
||||
/*
|
||||
无线类应用获取到的混淆的nick */
|
||||
MixNick *string `json:"mix_nick" required:"true" `
|
||||
}
|
||||
|
||||
func (s *TaobaoOpenuidGetBymixnickRequest) SetMixNick(v string) *TaobaoOpenuidGetBymixnickRequest {
|
||||
s.MixNick = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoOpenuidGetBymixnickRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if(req.MixNick != nil) {
|
||||
paramMap["mix_nick"] = *req.MixNick
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoOpenuidGetBymixnickRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoOpenuidGetBytradeRequest struct {
|
||||
/*
|
||||
订单ID */
|
||||
Tid *int64 `json:"tid" required:"true" `
|
||||
}
|
||||
|
||||
func (s *TaobaoOpenuidGetBytradeRequest) SetTid(v int64) *TaobaoOpenuidGetBytradeRequest {
|
||||
s.Tid = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoOpenuidGetBytradeRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if(req.Tid != nil) {
|
||||
paramMap["tid"] = *req.Tid
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoOpenuidGetBytradeRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoOpenuidGetRequest struct {
|
||||
}
|
||||
|
||||
|
||||
func (req *TaobaoOpenuidGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoOpenuidGetRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoTopAuthTokenCreateRequest struct {
|
||||
/*
|
||||
授权code,grantType==authorization_code 时需要 */
|
||||
Code *string `json:"code" required:"true" `
|
||||
/*
|
||||
与生成code的uuid配对 */
|
||||
Uuid *string `json:"uuid,omitempty" required:"false" `
|
||||
}
|
||||
|
||||
func (s *TaobaoTopAuthTokenCreateRequest) SetCode(v string) *TaobaoTopAuthTokenCreateRequest {
|
||||
s.Code = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoTopAuthTokenCreateRequest) SetUuid(v string) *TaobaoTopAuthTokenCreateRequest {
|
||||
s.Uuid = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoTopAuthTokenCreateRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if(req.Code != nil) {
|
||||
paramMap["code"] = *req.Code
|
||||
}
|
||||
if(req.Uuid != nil) {
|
||||
paramMap["uuid"] = *req.Uuid
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoTopAuthTokenCreateRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoTopAuthTokenRefreshRequest struct {
|
||||
/*
|
||||
grantType==refresh_token 时需要 */
|
||||
RefreshToken *string `json:"refresh_token" required:"true" `
|
||||
}
|
||||
|
||||
func (s *TaobaoTopAuthTokenRefreshRequest) SetRefreshToken(v string) *TaobaoTopAuthTokenRefreshRequest {
|
||||
s.RefreshToken = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoTopAuthTokenRefreshRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if(req.RefreshToken != nil) {
|
||||
paramMap["refresh_token"] = *req.RefreshToken
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoTopAuthTokenRefreshRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoTopSdkFeedbackUploadRequest struct {
|
||||
/*
|
||||
1、回传加密信息 */
|
||||
Type *string `json:"type" required:"true" `
|
||||
/*
|
||||
具体内容,json形式 */
|
||||
Content *string `json:"content,omitempty" required:"false" `
|
||||
}
|
||||
|
||||
func (s *TaobaoTopSdkFeedbackUploadRequest) SetType(v string) *TaobaoTopSdkFeedbackUploadRequest {
|
||||
s.Type = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoTopSdkFeedbackUploadRequest) SetContent(v string) *TaobaoTopSdkFeedbackUploadRequest {
|
||||
s.Content = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoTopSdkFeedbackUploadRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if(req.Type != nil) {
|
||||
paramMap["type"] = *req.Type
|
||||
}
|
||||
if(req.Content != nil) {
|
||||
paramMap["content"] = *req.Content
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoTopSdkFeedbackUploadRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package request
|
||||
|
||||
|
||||
type TaobaoTopSecretGetRequest struct {
|
||||
/*
|
||||
秘钥版本号 */
|
||||
SecretVersion *int64 `json:"secret_version,omitempty" required:"false" `
|
||||
/*
|
||||
伪随机数 */
|
||||
RandomNum *string `json:"random_num" required:"true" `
|
||||
/*
|
||||
自定义用户id */
|
||||
CustomerUserId *int64 `json:"customer_user_id,omitempty" required:"false" `
|
||||
}
|
||||
|
||||
func (s *TaobaoTopSecretGetRequest) SetSecretVersion(v int64) *TaobaoTopSecretGetRequest {
|
||||
s.SecretVersion = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoTopSecretGetRequest) SetRandomNum(v string) *TaobaoTopSecretGetRequest {
|
||||
s.RandomNum = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoTopSecretGetRequest) SetCustomerUserId(v int64) *TaobaoTopSecretGetRequest {
|
||||
s.CustomerUserId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoTopSecretGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if(req.SecretVersion != nil) {
|
||||
paramMap["secret_version"] = *req.SecretVersion
|
||||
}
|
||||
if(req.RandomNum != nil) {
|
||||
paramMap["random_num"] = *req.RandomNum
|
||||
}
|
||||
if(req.CustomerUserId != nil) {
|
||||
paramMap["customer_user_id"] = *req.CustomerUserId
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
||||
func (req *TaobaoTopSecretGetRequest) ToFileMap() map[string]interface{} {
|
||||
fileMap := make(map[string]interface{})
|
||||
return fileMap
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoAppipGetResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
ISV发起请求服务器IP
|
||||
*/
|
||||
Ip string `json:"ip,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability304/domain"
|
||||
)
|
||||
|
||||
type TaobaoFilesGetResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
results
|
||||
*/
|
||||
Results []domain.TaobaoFilesGetTopDownloadRecordDo `json:"results,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoHttpdnsGetResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
HTTP DNS配置信息
|
||||
*/
|
||||
Result string `json:"result,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoOpenuidGetBymixnickResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
OpenUID
|
||||
*/
|
||||
OpenUid string `json:"open_uid,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoOpenuidGetBytradeResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
当前交易tid对应买家的openuid
|
||||
*/
|
||||
OpenUid string `json:"open_uid,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoOpenuidGetResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
OpenUID
|
||||
*/
|
||||
OpenUid string `json:"open_uid,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoTopAuthTokenCreateResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
返回的是json信息,和之前调用https://oauth.taobao.com/tac/token https://oauth.alibaba.com/token 换token返回的字段信息一致
|
||||
*/
|
||||
TokenResult string `json:"token_result,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoTopAuthTokenRefreshResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
返回的是json信息
|
||||
*/
|
||||
TokenResult string `json:"token_result,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
type TaobaoTopSdkFeedbackUploadResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
控制回传间隔(单位:秒)
|
||||
*/
|
||||
UploadInterval int64 `json:"upload_interval,omitempty" `
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package response
|
||||
|
||||
type TaobaoTopSecretGetResponse struct {
|
||||
|
||||
/*
|
||||
System request id
|
||||
*/
|
||||
RequestId string `json:"request_id,omitempty" `
|
||||
|
||||
/*
|
||||
System body
|
||||
*/
|
||||
Body string
|
||||
|
||||
/*
|
||||
下次更新秘钥间隔,单位(秒)
|
||||
*/
|
||||
Interval int64 `json:"interval,omitempty" `
|
||||
/*
|
||||
最长有效期,容灾使用,单位(秒)
|
||||
*/
|
||||
MaxInterval int64 `json:"max_interval,omitempty" `
|
||||
/*
|
||||
秘钥值
|
||||
*/
|
||||
Secret string `json:"secret,omitempty" `
|
||||
/*
|
||||
秘钥版本号
|
||||
*/
|
||||
SecretVersion int64 `json:"secret_version,omitempty" `
|
||||
/*
|
||||
app配置信息
|
||||
*/
|
||||
AppConfig string `json:"app_config,omitempty" `
|
||||
}
|
||||
698
platformapi/tao_vegetable/sdk/ability3156/Ability3156.go
Normal file
698
platformapi/tao_vegetable/sdk/ability3156/Ability3156.go
Normal file
@@ -0,0 +1,698 @@
|
||||
package ability3156
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk"
|
||||
request2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/request"
|
||||
response2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/response"
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
"log"
|
||||
)
|
||||
|
||||
type Ability3156 struct {
|
||||
Client *topsdk.TopClient
|
||||
}
|
||||
|
||||
func NewAbility3156(client *topsdk.TopClient) *Ability3156 {
|
||||
return &Ability3156{client}
|
||||
}
|
||||
|
||||
/*
|
||||
商家会员数据上传
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyMerchantUserUpload(req *request2.AlibabaTclsAelophyMerchantUserUploadRequest, session string) (*response2.AlibabaTclsAelophyMerchantUserUploadResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.merchant.user.upload", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyMerchantUserUploadResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyMerchantUserUpload error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
仓作业取消下发
|
||||
*/
|
||||
func (ability *Ability3156) WdkWarehouseOrderCancel(req *request2.WdkWarehouseOrderCancelRequest, session string) (*response2.WdkWarehouseOrderCancelResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("wdk.warehouse.order.cancel", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.WdkWarehouseOrderCancelResponse{}
|
||||
if err != nil {
|
||||
log.Println("wdkWarehouseOrderCancel error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
仓作业下发
|
||||
*/
|
||||
func (ability *Ability3156) WdkWarehouseOrderDispatch(req *request2.WdkWarehouseOrderDispatchRequest, session string) (*response2.WdkWarehouseOrderDispatchResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("wdk.warehouse.order.dispatch", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.WdkWarehouseOrderDispatchResponse{}
|
||||
if err != nil {
|
||||
log.Println("wdkWarehouseOrderDispatch error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
翱象ERP核销回调
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyBillVerificateCallback(req *request2.AlibabaTclsAelophyBillVerificateCallbackRequest) (*response2.AlibabaTclsAelophyBillVerificateCallbackResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("alibaba.tcls.aelophy.bill.verificate.callback", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.AlibabaTclsAelophyBillVerificateCallbackResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyBillVerificateCallback error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
更新渠道店营业状态
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaAelophyShopUpdatestatus(req *request2.AlibabaAelophyShopUpdatestatusRequest, session string) (*response2.AlibabaAelophyShopUpdatestatusResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.aelophy.shop.updatestatus", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaAelophyShopUpdatestatusResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaAelophyShopUpdatestatus error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
更新渠道店基础信息
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaAelophyShopUpdateinfo(req *request2.AlibabaAelophyShopUpdateinfoRequest, session string) (*response2.AlibabaAelophyShopUpdateinfoResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.aelophy.shop.updateinfo", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaAelophyShopUpdateinfoResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaAelophyShopUpdateinfo error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
更新渠道店销售范围
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaAelophyShopUpdaterange(req *request2.AlibabaAelophyShopUpdaterangeRequest, session string) (*response2.AlibabaAelophyShopUpdaterangeResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.aelophy.shop.updaterange", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaAelophyShopUpdaterangeResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaAelophyShopUpdaterange error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
商家代客售后逆向申请渲染获取
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyRefundCsapplyrender(req *request2.AlibabaTclsAelophyRefundCsapplyrenderRequest, session string) (*response2.AlibabaTclsAelophyRefundCsapplyrenderResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.refund.csapplyrender", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyRefundCsapplyrenderResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyRefundCsapplyrender error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
商家代客售后提交逆向申请
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyRefundCsapply(req *request2.AlibabaTclsAelophyRefundCsapplyRequest, session string) (*response2.AlibabaTclsAelophyRefundCsapplyResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.refund.csapply", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyRefundCsapplyResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyRefundCsapply error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
翱翔经营店更新接口
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaWdkAxStoreUpdate(req *request2.AlibabaWdkAxStoreUpdateRequest, session string) (*response2.AlibabaWdkAxStoreUpdateResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.wdk.ax.store.update", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaWdkAxStoreUpdateResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaWdkAxStoreUpdate error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
翱象经营店创建接口
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaWdkAxStoreCreate(req *request2.AlibabaWdkAxStoreCreateRequest, session string) (*response2.AlibabaWdkAxStoreCreateResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.wdk.ax.store.create", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaWdkAxStoreCreateResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaWdkAxStoreCreate error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
翱象经营店查询接口
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaWdkAxStoreQuery(req *request2.AlibabaWdkAxStoreQueryRequest, session string) (*response2.AlibabaWdkAxStoreQueryResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.wdk.ax.store.query", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaWdkAxStoreQueryResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaWdkAxStoreQuery error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
创单接口
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsFulfillQaOrderCreate(req *request2.AlibabaTclsFulfillQaOrderCreateRequest) (*response2.AlibabaTclsFulfillQaOrderCreateResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.Execute("alibaba.tcls.fulfill.qa.order.create", req.ToMap(), req.ToFileMap())
|
||||
var respStruct = response2.AlibabaTclsFulfillQaOrderCreateResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsFulfillQaOrderCreate error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
cps正向分销订单批量回流
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaWdkorderSharestockCpsorderList(req *request2.AlibabaWdkorderSharestockCpsorderListRequest, session string) (*response2.AlibabaWdkorderSharestockCpsorderListResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.wdkorder.sharestock.cpsorder.list", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaWdkorderSharestockCpsorderListResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaWdkorderSharestockCpsorderList error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
商家用户id混淆
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyMerchantIdMix(req *request2.AlibabaTclsAelophyMerchantIdMixRequest, session string) (*response2.AlibabaTclsAelophyMerchantIdMixResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.merchant.id.mix", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyMerchantIdMixResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyMerchantIdMix error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
获取运力时间片信息
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyMerchantChannelOrderSliceget(req *request2.AlibabaTclsAelophyMerchantChannelOrderSlicegetRequest, session string) (*response2.AlibabaTclsAelophyMerchantChannelOrderSlicegetResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.merchant.channel.order.sliceget", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyMerchantChannelOrderSlicegetResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyMerchantChannelOrderSliceget error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
前置校验商品是否可下单作业
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyMerchantChannelOrderPrecheck(req *request2.AlibabaTclsAelophyMerchantChannelOrderPrecheckRequest, session string) (*response2.AlibabaTclsAelophyMerchantChannelOrderPrecheckResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.merchant.channel.order.precheck", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyMerchantChannelOrderPrecheckResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyMerchantChannelOrderPrecheck error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
翱象商家自有渠道 逆向单申请
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyMerchantChannelRefundApply(req *request2.AlibabaTclsAelophyMerchantChannelRefundApplyRequest, session string) (*response2.AlibabaTclsAelophyMerchantChannelRefundApplyResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.merchant.channel.refund.apply", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyMerchantChannelRefundApplyResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyMerchantChannelRefundApply error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
翱象商家自有渠道 订单创建
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyMerchantChannelOrderCreate(req *request2.AlibabaTclsAelophyMerchantChannelOrderCreateRequest, session string) (*response2.AlibabaTclsAelophyMerchantChannelOrderCreateResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.merchant.channel.order.create", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyMerchantChannelOrderCreateResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyMerchantChannelOrderCreate error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
翱象商家自有渠道 逆向单完成
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyMerchantChannelRefundComplete(req *request2.AlibabaTclsAelophyMerchantChannelRefundCompleteRequest, session string) (*response2.AlibabaTclsAelophyMerchantChannelRefundCompleteResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.merchant.channel.refund.complete", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyMerchantChannelRefundCompleteResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyMerchantChannelRefundComplete error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
翱象商家自有渠道 逆向单申请取消
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyMerchantChannelRefundCancel(req *request2.AlibabaTclsAelophyMerchantChannelRefundCancelRequest, session string) (*response2.AlibabaTclsAelophyMerchantChannelRefundCancelResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.merchant.channel.refund.cancel", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyMerchantChannelRefundCancelResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyMerchantChannelRefundCancel error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
翱象商家自有渠道 订单状态更新
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyMerchantChannelOrderUpdatestatus(req *request2.AlibabaTclsAelophyMerchantChannelOrderUpdatestatusRequest, session string) (*response2.AlibabaTclsAelophyMerchantChannelOrderUpdatestatusResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.merchant.channel.order.updatestatus", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyMerchantChannelOrderUpdatestatusResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyMerchantChannelOrderUpdatestatus error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
翱象商家自有渠道 交易订单取消
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyMerchantChannelOrderCancel(req *request2.AlibabaTclsAelophyMerchantChannelOrderCancelRequest, session string) (*response2.AlibabaTclsAelophyMerchantChannelOrderCancelResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.merchant.channel.order.cancel", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyMerchantChannelOrderCancelResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyMerchantChannelOrderCancel error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
订单小票查询
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyOrderReceiptQuery(req *request2.AlibabaTclsAelophyOrderReceiptQueryRequest, session string) (*response2.AlibabaTclsAelophyOrderReceiptQueryResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.order.receipt.query", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyOrderReceiptQueryResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyOrderReceiptQuery error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
DP功能点权限校验
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAxIntegrationPermission(req *request2.AlibabaTclsAxIntegrationPermissionRequest, session string) (*response2.AlibabaTclsAxIntegrationPermissionResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.ax.integration.permission", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAxIntegrationPermissionResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAxIntegrationPermission error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
账单明细接口
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyBillDetailQuery(req *request2.AlibabaTclsAelophyBillDetailQueryRequest, session string) (*response2.AlibabaTclsAelophyBillDetailQueryResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.bill.detail.query", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyBillDetailQueryResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyBillDetailQuery error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
账单日汇总接口
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyBillDailyQuery(req *request2.AlibabaTclsAelophyBillDailyQueryRequest, session string) (*response2.AlibabaTclsAelophyBillDailyQueryResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.bill.daily.query", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyBillDailyQueryResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyBillDailyQuery error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
代客退
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyRefundCsapplyNew(req *request2.AlibabaTclsAelophyRefundCsapplyNewRequest, session string) (*response2.AlibabaTclsAelophyRefundCsapplyNewResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.refund.csapply.new", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyRefundCsapplyNewResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyRefundCsapplyNew error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
翱象出仓回传
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaAxWarehouseOutboundCallback(req *request2.AlibabaAxWarehouseOutboundCallbackRequest, session string) (*response2.AlibabaAxWarehouseOutboundCallbackResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.ax.warehouse.outbound.callback", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaAxWarehouseOutboundCallbackResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaAxWarehouseOutboundCallback error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
翱象入库回传
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaAxWarehouseInboundCallback(req *request2.AlibabaAxWarehouseInboundCallbackRequest, session string) (*response2.AlibabaAxWarehouseInboundCallbackResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.ax.warehouse.inbound.callback", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaAxWarehouseInboundCallbackResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaAxWarehouseInboundCallback error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
ISV用户录入
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAxIntegrationAccountImport(req *request2.AlibabaTclsAxIntegrationAccountImportRequest, session string) (*response2.AlibabaTclsAxIntegrationAccountImportResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.ax.integration.account.import", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAxIntegrationAccountImportResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAxIntegrationAccountImport error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
saas 售后逆向 商户拒绝用户逆向申请
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyRefundDisagree(req *request2.AlibabaTclsAelophyRefundDisagreeRequest, session string) (*response2.AlibabaTclsAelophyRefundDisagreeResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.refund.disagree", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyRefundDisagreeResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyRefundDisagree error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
saas 售后逆向 商户同意用户逆向申请
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyRefundAgree(req *request2.AlibabaTclsAelophyRefundAgreeRequest, session string) (*response2.AlibabaTclsAelophyRefundAgreeResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.refund.agree", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyRefundAgreeResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyRefundAgree error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
|
||||
/*
|
||||
saas 售后逆向 商户发起逆向取货
|
||||
*/
|
||||
func (ability *Ability3156) AlibabaTclsAelophyRefundFetchgoods(req *request2.AlibabaTclsAelophyRefundFetchgoodsRequest, session string) (*response2.AlibabaTclsAelophyRefundFetchgoodsResponse, error) {
|
||||
if ability.Client == nil {
|
||||
return nil, errors.New("Ability3156 topClient is nil")
|
||||
}
|
||||
var jsonStr, err = ability.Client.ExecuteWithSession("alibaba.tcls.aelophy.refund.fetchgoods", req.ToMap(), req.ToFileMap(), session)
|
||||
var respStruct = response2.AlibabaTclsAelophyRefundFetchgoodsResponse{}
|
||||
if err != nil {
|
||||
log.Println("alibabaTclsAelophyRefundFetchgoods error", err)
|
||||
return &respStruct, err
|
||||
}
|
||||
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||
respStruct.Body = jsonStr
|
||||
}
|
||||
return &respStruct, err
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaAelophyShopUpdateinfoApiResult struct {
|
||||
/*
|
||||
调用结果 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
错误信息 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
错误码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaAelophyShopUpdateinfoApiResult) SetSuccess(v bool) *AlibabaAelophyShopUpdateinfoApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdateinfoApiResult) SetErrMsg(v string) *AlibabaAelophyShopUpdateinfoApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdateinfoApiResult) SetErrCode(v string) *AlibabaAelophyShopUpdateinfoApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaAelophyShopUpdateinfoShopInfoUpdateRequest struct {
|
||||
/*
|
||||
营业开始时间(HH:mm) */
|
||||
StartTime *string `json:"start_time,omitempty" `
|
||||
|
||||
/*
|
||||
营业结束时间(HH:mm) */
|
||||
EndTime *string `json:"end_time,omitempty" `
|
||||
|
||||
/*
|
||||
经营店ID */
|
||||
StoreId *string `json:"store_id,omitempty" `
|
||||
|
||||
/*
|
||||
渠道 */
|
||||
ChannelSourceType *int64 `json:"channel_source_type,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaAelophyShopUpdateinfoShopInfoUpdateRequest) SetStartTime(v string) *AlibabaAelophyShopUpdateinfoShopInfoUpdateRequest {
|
||||
s.StartTime = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdateinfoShopInfoUpdateRequest) SetEndTime(v string) *AlibabaAelophyShopUpdateinfoShopInfoUpdateRequest {
|
||||
s.EndTime = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdateinfoShopInfoUpdateRequest) SetStoreId(v string) *AlibabaAelophyShopUpdateinfoShopInfoUpdateRequest {
|
||||
s.StoreId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdateinfoShopInfoUpdateRequest) SetChannelSourceType(v int64) *AlibabaAelophyShopUpdateinfoShopInfoUpdateRequest {
|
||||
s.ChannelSourceType = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaAelophyShopUpdaterangeApiResult struct {
|
||||
/*
|
||||
调用结果 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
错误信息 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
错误码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaAelophyShopUpdaterangeApiResult) SetSuccess(v bool) *AlibabaAelophyShopUpdaterangeApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdaterangeApiResult) SetErrMsg(v string) *AlibabaAelophyShopUpdaterangeApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdaterangeApiResult) SetErrCode(v string) *AlibabaAelophyShopUpdaterangeApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaAelophyShopUpdaterangePoint struct {
|
||||
/*
|
||||
经度(高德坐标) */
|
||||
Lng *string `json:"lng,omitempty" `
|
||||
|
||||
/*
|
||||
纬度(高德坐标) */
|
||||
Lat *string `json:"lat,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaAelophyShopUpdaterangePoint) SetLng(v string) *AlibabaAelophyShopUpdaterangePoint {
|
||||
s.Lng = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdaterangePoint) SetLat(v string) *AlibabaAelophyShopUpdaterangePoint {
|
||||
s.Lat = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaAelophyShopUpdaterangeShopRange struct {
|
||||
/*
|
||||
经纬度点 */
|
||||
Points *[]AlibabaAelophyShopUpdaterangePoint `json:"points,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaAelophyShopUpdaterangeShopRange) SetPoints(v []AlibabaAelophyShopUpdaterangePoint) *AlibabaAelophyShopUpdaterangeShopRange {
|
||||
s.Points = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaAelophyShopUpdaterangeShopRangeUpdateRequest struct {
|
||||
/*
|
||||
销售范围 */
|
||||
ShopRanges *[]AlibabaAelophyShopUpdaterangeShopRange `json:"shop_ranges,omitempty" `
|
||||
|
||||
/*
|
||||
经营店ID */
|
||||
StoreId *string `json:"store_id,omitempty" `
|
||||
|
||||
/*
|
||||
渠道 */
|
||||
ChannelSourceType *int64 `json:"channel_source_type,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaAelophyShopUpdaterangeShopRangeUpdateRequest) SetShopRanges(v []AlibabaAelophyShopUpdaterangeShopRange) *AlibabaAelophyShopUpdaterangeShopRangeUpdateRequest {
|
||||
s.ShopRanges = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdaterangeShopRangeUpdateRequest) SetStoreId(v string) *AlibabaAelophyShopUpdaterangeShopRangeUpdateRequest {
|
||||
s.StoreId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdaterangeShopRangeUpdateRequest) SetChannelSourceType(v int64) *AlibabaAelophyShopUpdaterangeShopRangeUpdateRequest {
|
||||
s.ChannelSourceType = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaAelophyShopUpdatestatusApiResult struct {
|
||||
/*
|
||||
调用结果 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
错误信息 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
错误码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaAelophyShopUpdatestatusApiResult) SetSuccess(v bool) *AlibabaAelophyShopUpdatestatusApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdatestatusApiResult) SetErrMsg(v string) *AlibabaAelophyShopUpdatestatusApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdatestatusApiResult) SetErrCode(v string) *AlibabaAelophyShopUpdatestatusApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaAelophyShopUpdatestatusShopStatusUpdateRequest struct {
|
||||
/*
|
||||
经营店ID */
|
||||
StoreId *string `json:"store_id,omitempty" `
|
||||
|
||||
/*
|
||||
渠道 */
|
||||
ChannelSourceType *int64 `json:"channel_source_type,omitempty" `
|
||||
|
||||
/*
|
||||
营业状态(1:营业,-1:不营业) */
|
||||
Status *int64 `json:"status,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaAelophyShopUpdatestatusShopStatusUpdateRequest) SetStoreId(v string) *AlibabaAelophyShopUpdatestatusShopStatusUpdateRequest {
|
||||
s.StoreId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdatestatusShopStatusUpdateRequest) SetChannelSourceType(v int64) *AlibabaAelophyShopUpdatestatusShopStatusUpdateRequest {
|
||||
s.ChannelSourceType = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAelophyShopUpdatestatusShopStatusUpdateRequest) SetStatus(v int64) *AlibabaAelophyShopUpdatestatusShopStatusUpdateRequest {
|
||||
s.Status = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest struct {
|
||||
/*
|
||||
子单扩展字段 */
|
||||
Extension *string `json:"extension,omitempty" `
|
||||
|
||||
/*
|
||||
oms主单号 */
|
||||
BizOrderId *string `json:"biz_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
实际入库销售数量 */
|
||||
ActualSaleQuantity *string `json:"actual_sale_quantity,omitempty" `
|
||||
|
||||
/*
|
||||
实际入库库存数量 */
|
||||
ActualStockQuantity *string `json:"actual_stock_quantity,omitempty" `
|
||||
|
||||
/*
|
||||
oms子单号 */
|
||||
BizSubOrderId *string `json:"biz_sub_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
sku编码 */
|
||||
SkuCode *string `json:"sku_code,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest) SetExtension(v string) *AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest {
|
||||
s.Extension = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest) SetBizOrderId(v string) *AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest {
|
||||
s.BizOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest) SetActualSaleQuantity(v string) *AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest {
|
||||
s.ActualSaleQuantity = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest) SetActualStockQuantity(v string) *AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest {
|
||||
s.ActualStockQuantity = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest) SetBizSubOrderId(v string) *AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest {
|
||||
s.BizSubOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest) SetSkuCode(v string) *AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest {
|
||||
s.SkuCode = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaAxWarehouseInboundCallbackTopReverseInBoundCallBackRequest struct {
|
||||
/*
|
||||
扩展字段 */
|
||||
Extension *string `json:"extension,omitempty" `
|
||||
|
||||
/*
|
||||
退仓来源单号/退款单号 */
|
||||
ReverseSourceOrderNo *string `json:"reverse_source_order_no,omitempty" `
|
||||
|
||||
/*
|
||||
测试标记 */
|
||||
Test *bool `json:"test,omitempty" `
|
||||
|
||||
/*
|
||||
消息体 */
|
||||
Details *[]AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest `json:"details,omitempty" `
|
||||
|
||||
/*
|
||||
仓编码 */
|
||||
StoreCode *string `json:"store_code,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaAxWarehouseInboundCallbackTopReverseInBoundCallBackRequest) SetExtension(v string) *AlibabaAxWarehouseInboundCallbackTopReverseInBoundCallBackRequest {
|
||||
s.Extension = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseInboundCallbackTopReverseInBoundCallBackRequest) SetReverseSourceOrderNo(v string) *AlibabaAxWarehouseInboundCallbackTopReverseInBoundCallBackRequest {
|
||||
s.ReverseSourceOrderNo = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseInboundCallbackTopReverseInBoundCallBackRequest) SetTest(v bool) *AlibabaAxWarehouseInboundCallbackTopReverseInBoundCallBackRequest {
|
||||
s.Test = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseInboundCallbackTopReverseInBoundCallBackRequest) SetDetails(v []AlibabaAxWarehouseInboundCallbackReverseInBoundDetailCallBackRequest) *AlibabaAxWarehouseInboundCallbackTopReverseInBoundCallBackRequest {
|
||||
s.Details = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseInboundCallbackTopReverseInBoundCallBackRequest) SetStoreCode(v string) *AlibabaAxWarehouseInboundCallbackTopReverseInBoundCallBackRequest {
|
||||
s.StoreCode = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaAxWarehouseOutboundCallbackBigDecimal struct {
|
||||
/*
|
||||
每份重量 */
|
||||
SkuWeight *string `json:"sku_weight,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackBigDecimal) SetSkuWeight(v string) *AlibabaAxWarehouseOutboundCallbackBigDecimal {
|
||||
s.SkuWeight = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest struct {
|
||||
/*
|
||||
扩展字段 */
|
||||
Extension *string `json:"extension,omitempty" `
|
||||
|
||||
/*
|
||||
oms主单号 */
|
||||
BizOrderId *string `json:"biz_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
出库状态 */
|
||||
OutBoundStatus *string `json:"out_bound_status,omitempty" `
|
||||
|
||||
/*
|
||||
子单明细列表 */
|
||||
DemandDetailCallBackRequests *[]AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest `json:"demand_detail_call_back_requests,omitempty" `
|
||||
|
||||
/*
|
||||
渠道单号 */
|
||||
ChannelOrderNo *string `json:"channel_order_no,omitempty" `
|
||||
|
||||
/*
|
||||
出库状态发生时间 */
|
||||
DemandStatusTime *util.LocalTime `json:"demand_status_time,omitempty" `
|
||||
|
||||
/*
|
||||
仓编码 */
|
||||
StoreCode *string `json:"store_code,omitempty" `
|
||||
|
||||
/*
|
||||
渠道类型 */
|
||||
ChannelSource *string `json:"channel_source,omitempty" `
|
||||
}
|
||||
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest) SetExtension(v string) *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest {
|
||||
s.Extension = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest) SetBizOrderId(v string) *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest {
|
||||
s.BizOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest) SetOutBoundStatus(v string) *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest {
|
||||
s.OutBoundStatus = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest) SetDemandDetailCallBackRequests(v []AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest) *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest {
|
||||
s.DemandDetailCallBackRequests = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest) SetChannelOrderNo(v string) *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest {
|
||||
s.ChannelOrderNo = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest) SetDemandStatusTime(v util.LocalTime) *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest {
|
||||
s.DemandStatusTime = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest) SetStoreCode(v string) *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest {
|
||||
s.StoreCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest) SetChannelSource(v string) *AlibabaAxWarehouseOutboundCallbackTopTradeOutBoundCallBackRequest {
|
||||
s.ChannelSource = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest struct {
|
||||
/*
|
||||
缺货出销售数量 */
|
||||
OutOfStockSaleQuantity *string `json:"out_of_stock_sale_quantity,omitempty" `
|
||||
|
||||
/*
|
||||
渠道子单号 */
|
||||
ChannelSubOrderNo *string `json:"channel_sub_order_no,omitempty" `
|
||||
|
||||
/*
|
||||
扩展字段 */
|
||||
Extension *string `json:"extension,omitempty" `
|
||||
|
||||
/*
|
||||
实际出库销售数量 */
|
||||
ActualSaleQuantity *string `json:"actual_sale_quantity,omitempty" `
|
||||
|
||||
/*
|
||||
实际出库库存数量 */
|
||||
ActualStockQuantity *string `json:"actual_stock_quantity,omitempty" `
|
||||
|
||||
/*
|
||||
缺货出库存数量 */
|
||||
OutOfStockStockQuantity *string `json:"out_of_stock_stock_quantity,omitempty" `
|
||||
|
||||
/*
|
||||
oms子单号 */
|
||||
BizSubOrderId *string `json:"biz_sub_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
商品sku编码 */
|
||||
SkuCode *string `json:"sku_code,omitempty" `
|
||||
|
||||
/*
|
||||
是否缺货出 */
|
||||
IsOutStock *bool `json:"is_out_stock,omitempty" `
|
||||
|
||||
/*
|
||||
称重品商品实称重量/g */
|
||||
SkuWeights *[]AlibabaAxWarehouseOutboundCallbackBigDecimal `json:"sku_weights,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest) SetOutOfStockSaleQuantity(v string) *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest {
|
||||
s.OutOfStockSaleQuantity = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest) SetChannelSubOrderNo(v string) *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest {
|
||||
s.ChannelSubOrderNo = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest) SetExtension(v string) *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest {
|
||||
s.Extension = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest) SetActualSaleQuantity(v string) *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest {
|
||||
s.ActualSaleQuantity = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest) SetActualStockQuantity(v string) *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest {
|
||||
s.ActualStockQuantity = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest) SetOutOfStockStockQuantity(v string) *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest {
|
||||
s.OutOfStockStockQuantity = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest) SetBizSubOrderId(v string) *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest {
|
||||
s.BizSubOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest) SetSkuCode(v string) *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest {
|
||||
s.SkuCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest) SetIsOutStock(v bool) *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest {
|
||||
s.IsOutStock = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest) SetSkuWeights(v []AlibabaAxWarehouseOutboundCallbackBigDecimal) *AlibabaAxWarehouseOutboundCallbackTradeOutBoundDetailCallBackRequest {
|
||||
s.SkuWeights = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyBillDailyQueryApiPageResults struct {
|
||||
/*
|
||||
当前页码 */
|
||||
PageIndex *int64 `json:"page_index,omitempty" `
|
||||
|
||||
/*
|
||||
页大小 */
|
||||
PageSize *int64 `json:"page_size,omitempty" `
|
||||
|
||||
/*
|
||||
总页数 */
|
||||
PageCount *int64 `json:"page_count,omitempty" `
|
||||
|
||||
/*
|
||||
总记录数 */
|
||||
Total *int64 `json:"total,omitempty" `
|
||||
|
||||
/*
|
||||
是否成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
错误描述 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
错误码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
业务结果集 */
|
||||
Model *[]AlibabaTclsAelophyBillDailyQueryBillDailyDTO `json:"model,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryApiPageResults) SetPageIndex(v int64) *AlibabaTclsAelophyBillDailyQueryApiPageResults {
|
||||
s.PageIndex = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryApiPageResults) SetPageSize(v int64) *AlibabaTclsAelophyBillDailyQueryApiPageResults {
|
||||
s.PageSize = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryApiPageResults) SetPageCount(v int64) *AlibabaTclsAelophyBillDailyQueryApiPageResults {
|
||||
s.PageCount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryApiPageResults) SetTotal(v int64) *AlibabaTclsAelophyBillDailyQueryApiPageResults {
|
||||
s.Total = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryApiPageResults) SetSuccess(v bool) *AlibabaTclsAelophyBillDailyQueryApiPageResults {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryApiPageResults) SetErrMsg(v string) *AlibabaTclsAelophyBillDailyQueryApiPageResults {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryApiPageResults) SetErrCode(v string) *AlibabaTclsAelophyBillDailyQueryApiPageResults {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryApiPageResults) SetModel(v []AlibabaTclsAelophyBillDailyQueryBillDailyDTO) *AlibabaTclsAelophyBillDailyQueryApiPageResults {
|
||||
s.Model = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,198 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyBillDailyQueryBillDailyDTO struct {
|
||||
/*
|
||||
商家编码 */
|
||||
MerchantCode *string `json:"merchant_code,omitempty" `
|
||||
|
||||
/*
|
||||
经营店ID */
|
||||
StoreId *string `json:"store_id,omitempty" `
|
||||
|
||||
/*
|
||||
订单来源 */
|
||||
OrderFrom *string `json:"order_from,omitempty" `
|
||||
|
||||
/*
|
||||
明细单据唯一结算标识 */
|
||||
SettleBizId *string `json:"settle_biz_id,omitempty" `
|
||||
|
||||
/*
|
||||
账单日期 */
|
||||
BillDate *string `json:"bill_date,omitempty" `
|
||||
|
||||
/*
|
||||
商家应收金额,正号代表收入,负号代表支出 */
|
||||
SettleAmount *string `json:"settle_amount,omitempty" `
|
||||
|
||||
/*
|
||||
商品总金额 */
|
||||
SkuAmount *string `json:"sku_amount,omitempty" `
|
||||
|
||||
/*
|
||||
计费基数 */
|
||||
ChargeBaseAmount *string `json:"charge_base_amount,omitempty" `
|
||||
|
||||
/*
|
||||
商户应收包装费总额,正号代表收入,负号代表支出 */
|
||||
PackageAmount *string `json:"package_amount,omitempty" `
|
||||
|
||||
/*
|
||||
商户应收总运费,正号代表收入,负号代表支出 */
|
||||
SendAmount *string `json:"send_amount,omitempty" `
|
||||
|
||||
/*
|
||||
商户补贴总金额,正负号存在渠道差异 */
|
||||
MerchantSubsidyAmount *string `json:"merchant_subsidy_amount,omitempty" `
|
||||
|
||||
/*
|
||||
平台营销补贴费用,正号代表收入,负号代表支出 */
|
||||
PlatSubsidyAmount *string `json:"plat_subsidy_amount,omitempty" `
|
||||
|
||||
/*
|
||||
品牌营销补贴费用,正号代表收入,负号代表支出 */
|
||||
BrandSubsidyAmount *string `json:"brand_subsidy_amount,omitempty" `
|
||||
|
||||
/*
|
||||
代理商营销补贴费用,正号代表收入,负号代表支出 */
|
||||
AgentSubsidyAmount *string `json:"agent_subsidy_amount,omitempty" `
|
||||
|
||||
/*
|
||||
技术服务费,正号代表收入,负号代表支出 */
|
||||
ChannelCommissionAmount *string `json:"channel_commission_amount,omitempty" `
|
||||
|
||||
/*
|
||||
基础物流费,正号代表收入,负号代表支出 */
|
||||
BaseLogisticsAmount *string `json:"base_logistics_amount,omitempty" `
|
||||
|
||||
/*
|
||||
增值服务费,正号代表收入,负号代表支出 */
|
||||
AddedValueAmount *string `json:"added_value_amount,omitempty" `
|
||||
|
||||
/*
|
||||
其它服务费,正号代表收入,负号代表支出 */
|
||||
OtherFeeAmount *string `json:"other_fee_amount,omitempty" `
|
||||
|
||||
/*
|
||||
手续费,正号代表收入,负号代表支出 */
|
||||
HandleFeeAmount *string `json:"handle_fee_amount,omitempty" `
|
||||
|
||||
/*
|
||||
其它费用 */
|
||||
ExtendInfo *string `json:"extend_info,omitempty" `
|
||||
|
||||
/*
|
||||
平台红包补贴 */
|
||||
PlatformVoucherSubsidyFee *string `json:"platform_voucher_subsidy_fee,omitempty" `
|
||||
|
||||
/*
|
||||
商家承担红包补贴费用 */
|
||||
MerchantVoucherSubsidyFee *string `json:"merchant_voucher_subsidy_fee,omitempty" `
|
||||
|
||||
/*
|
||||
平台包装费 */
|
||||
PlatPackageFee *string `json:"plat_package_fee,omitempty" `
|
||||
|
||||
/*
|
||||
用户实付金额 */
|
||||
UserPayAmount *string `json:"user_pay_amount,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetMerchantCode(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.MerchantCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetStoreId(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.StoreId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetOrderFrom(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.OrderFrom = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetSettleBizId(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.SettleBizId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetBillDate(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.BillDate = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetSettleAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.SettleAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetSkuAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.SkuAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetChargeBaseAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.ChargeBaseAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetPackageAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.PackageAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetSendAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.SendAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetMerchantSubsidyAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.MerchantSubsidyAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetPlatSubsidyAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.PlatSubsidyAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetBrandSubsidyAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.BrandSubsidyAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetAgentSubsidyAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.AgentSubsidyAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetChannelCommissionAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.ChannelCommissionAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetBaseLogisticsAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.BaseLogisticsAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetAddedValueAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.AddedValueAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetOtherFeeAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.OtherFeeAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetHandleFeeAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.HandleFeeAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetExtendInfo(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.ExtendInfo = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetPlatformVoucherSubsidyFee(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.PlatformVoucherSubsidyFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetMerchantVoucherSubsidyFee(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.MerchantVoucherSubsidyFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetPlatPackageFee(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.PlatPackageFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyDTO) SetUserPayAmount(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyDTO {
|
||||
s.UserPayAmount = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyBillDailyQueryBillDailyQueryRequest struct {
|
||||
/*
|
||||
当前页码,从1开始 defalutValue:1 */
|
||||
Current *int64 `json:"current,omitempty" `
|
||||
|
||||
/*
|
||||
页大小 defalutValue:20 */
|
||||
PageSize *int64 `json:"page_size,omitempty" `
|
||||
|
||||
/*
|
||||
经营店ID */
|
||||
StoreId *string `json:"store_id,omitempty" `
|
||||
|
||||
/*
|
||||
账单开始时间,默认系统时间前一天 */
|
||||
BillStartDate *int64 `json:"bill_start_date,omitempty" `
|
||||
|
||||
/*
|
||||
账单结束时间,默认系统时间前一天 */
|
||||
BillEndDate *int64 `json:"bill_end_date,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyQueryRequest) SetCurrent(v int64) *AlibabaTclsAelophyBillDailyQueryBillDailyQueryRequest {
|
||||
s.Current = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyQueryRequest) SetPageSize(v int64) *AlibabaTclsAelophyBillDailyQueryBillDailyQueryRequest {
|
||||
s.PageSize = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyQueryRequest) SetStoreId(v string) *AlibabaTclsAelophyBillDailyQueryBillDailyQueryRequest {
|
||||
s.StoreId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyQueryRequest) SetBillStartDate(v int64) *AlibabaTclsAelophyBillDailyQueryBillDailyQueryRequest {
|
||||
s.BillStartDate = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDailyQueryBillDailyQueryRequest) SetBillEndDate(v int64) *AlibabaTclsAelophyBillDailyQueryBillDailyQueryRequest {
|
||||
s.BillEndDate = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyBillDetailQueryApiPageResults struct {
|
||||
/*
|
||||
当前页码 */
|
||||
PageIndex *int64 `json:"page_index,omitempty" `
|
||||
|
||||
/*
|
||||
页码大小 */
|
||||
PageSize *int64 `json:"page_size,omitempty" `
|
||||
|
||||
/*
|
||||
总页数 */
|
||||
PageCount *int64 `json:"page_count,omitempty" `
|
||||
|
||||
/*
|
||||
总记录数 */
|
||||
Total *int64 `json:"total,omitempty" `
|
||||
|
||||
/*
|
||||
结果集 */
|
||||
Model *[]AlibabaTclsAelophyBillDetailQueryBillDetailDTO `json:"model,omitempty" `
|
||||
|
||||
/*
|
||||
是否成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
错误描述 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
错误码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryApiPageResults) SetPageIndex(v int64) *AlibabaTclsAelophyBillDetailQueryApiPageResults {
|
||||
s.PageIndex = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryApiPageResults) SetPageSize(v int64) *AlibabaTclsAelophyBillDetailQueryApiPageResults {
|
||||
s.PageSize = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryApiPageResults) SetPageCount(v int64) *AlibabaTclsAelophyBillDetailQueryApiPageResults {
|
||||
s.PageCount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryApiPageResults) SetTotal(v int64) *AlibabaTclsAelophyBillDetailQueryApiPageResults {
|
||||
s.Total = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryApiPageResults) SetModel(v []AlibabaTclsAelophyBillDetailQueryBillDetailDTO) *AlibabaTclsAelophyBillDetailQueryApiPageResults {
|
||||
s.Model = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryApiPageResults) SetSuccess(v bool) *AlibabaTclsAelophyBillDetailQueryApiPageResults {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryApiPageResults) SetErrMsg(v string) *AlibabaTclsAelophyBillDetailQueryApiPageResults {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryApiPageResults) SetErrCode(v string) *AlibabaTclsAelophyBillDetailQueryApiPageResults {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,214 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyBillDetailQueryBillDetailDTO struct {
|
||||
/*
|
||||
商家编码 */
|
||||
MerchantCode *string `json:"merchant_code,omitempty" `
|
||||
|
||||
/*
|
||||
经营店ID */
|
||||
StoreId *string `json:"store_id,omitempty" `
|
||||
|
||||
/*
|
||||
渠道 */
|
||||
OrderFrom *string `json:"order_from,omitempty" `
|
||||
|
||||
/*
|
||||
明细单据唯一结算标识 */
|
||||
SettleBizId *string `json:"settle_biz_id,omitempty" `
|
||||
|
||||
/*
|
||||
账单日期 */
|
||||
BillDate *string `json:"bill_date,omitempty" `
|
||||
|
||||
/*
|
||||
商家应收金额,正号代表收入,负号代表支出 */
|
||||
SettleAmount *string `json:"settle_amount,omitempty" `
|
||||
|
||||
/*
|
||||
商品总金额 */
|
||||
SkuAmount *string `json:"sku_amount,omitempty" `
|
||||
|
||||
/*
|
||||
计费基数 */
|
||||
ChargeBaseAmount *string `json:"charge_base_amount,omitempty" `
|
||||
|
||||
/*
|
||||
商户应收包装费总额,正号代表收入,负号代表支出 */
|
||||
PackageAmount *string `json:"package_amount,omitempty" `
|
||||
|
||||
/*
|
||||
商户应收总运费,正号代表收入,负号代表支出 */
|
||||
SendAmount *string `json:"send_amount,omitempty" `
|
||||
|
||||
/*
|
||||
商户补贴总金额,正负号存在渠道差异 */
|
||||
MerchantSubsidyAmount *string `json:"merchant_subsidy_amount,omitempty" `
|
||||
|
||||
/*
|
||||
平台营销补贴费用,正号代表收入,负号代表支出 */
|
||||
PlatSubsidyAmount *string `json:"plat_subsidy_amount,omitempty" `
|
||||
|
||||
/*
|
||||
品牌营销补贴费用,正号代表收入,负号代表支出 */
|
||||
BrandSubsidyAmount *string `json:"brand_subsidy_amount,omitempty" `
|
||||
|
||||
/*
|
||||
代理商营销补贴费用,正号代表收入,负号代表支出 */
|
||||
AgentSubsidyAmount *string `json:"agent_subsidy_amount,omitempty" `
|
||||
|
||||
/*
|
||||
技术服务费,正号代表收入,负号代表支出 */
|
||||
ChannelCommissionAmount *string `json:"channel_commission_amount,omitempty" `
|
||||
|
||||
/*
|
||||
基础物流费,正号代表收入,负号代表支出 */
|
||||
BaseLogisticsAmount *string `json:"base_logistics_amount,omitempty" `
|
||||
|
||||
/*
|
||||
增值服务费,正号代表收入,负号代表支出 */
|
||||
AddedValueAmount *string `json:"added_value_amount,omitempty" `
|
||||
|
||||
/*
|
||||
其它服务费,正号代表收入,负号代表支出 */
|
||||
OtherFeeAmount *string `json:"other_fee_amount,omitempty" `
|
||||
|
||||
/*
|
||||
手续费,正号代表收入,负号代表支出 */
|
||||
HandleFeeAmount *string `json:"handle_fee_amount,omitempty" `
|
||||
|
||||
/*
|
||||
其它费用 */
|
||||
ExtendInfo *string `json:"extend_info,omitempty" `
|
||||
|
||||
/*
|
||||
账单类型 */
|
||||
Type *string `json:"type,omitempty" `
|
||||
|
||||
/*
|
||||
渠道订单号 */
|
||||
ChannelOrderId *string `json:"channel_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
平台红包补贴 */
|
||||
PlatformVoucherSubsidyFee *string `json:"platform_voucher_subsidy_fee,omitempty" `
|
||||
|
||||
/*
|
||||
商家承担红包补贴费用 */
|
||||
MerchantVoucherSubsidyFee *string `json:"merchant_voucher_subsidy_fee,omitempty" `
|
||||
|
||||
/*
|
||||
平台包装费 */
|
||||
PlatPackageFee *string `json:"plat_package_fee,omitempty" `
|
||||
|
||||
/*
|
||||
用户实付金额 */
|
||||
UserPayAmount *string `json:"user_pay_amount,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetMerchantCode(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.MerchantCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetStoreId(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.StoreId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetOrderFrom(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.OrderFrom = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetSettleBizId(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.SettleBizId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetBillDate(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.BillDate = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetSettleAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.SettleAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetSkuAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.SkuAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetChargeBaseAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.ChargeBaseAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetPackageAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.PackageAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetSendAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.SendAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetMerchantSubsidyAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.MerchantSubsidyAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetPlatSubsidyAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.PlatSubsidyAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetBrandSubsidyAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.BrandSubsidyAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetAgentSubsidyAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.AgentSubsidyAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetChannelCommissionAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.ChannelCommissionAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetBaseLogisticsAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.BaseLogisticsAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetAddedValueAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.AddedValueAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetOtherFeeAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.OtherFeeAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetHandleFeeAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.HandleFeeAmount = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetExtendInfo(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.ExtendInfo = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetType(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.Type = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetChannelOrderId(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.ChannelOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetPlatformVoucherSubsidyFee(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.PlatformVoucherSubsidyFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetMerchantVoucherSubsidyFee(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.MerchantVoucherSubsidyFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetPlatPackageFee(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.PlatPackageFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailDTO) SetUserPayAmount(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailDTO {
|
||||
s.UserPayAmount = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyBillDetailQueryBillDetailQueryRequest struct {
|
||||
/*
|
||||
查询的页码,从1开始 defalutValue:1 */
|
||||
Current *int64 `json:"current,omitempty" `
|
||||
|
||||
/*
|
||||
页大小 defalutValue:20 */
|
||||
PageSize *int64 `json:"page_size,omitempty" `
|
||||
|
||||
/*
|
||||
经营店ID */
|
||||
StoreId *string `json:"store_id,omitempty" `
|
||||
|
||||
/*
|
||||
账单起始时间: yyyyMMdd defalutValue:默认系统时间前一天 */
|
||||
BillStartDate *int64 `json:"bill_start_date,omitempty" `
|
||||
|
||||
/*
|
||||
账单结束时间: yyyyMMdd defalutValue:默认系统时间前一天 */
|
||||
BillEndDate *int64 `json:"bill_end_date,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailQueryRequest) SetCurrent(v int64) *AlibabaTclsAelophyBillDetailQueryBillDetailQueryRequest {
|
||||
s.Current = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailQueryRequest) SetPageSize(v int64) *AlibabaTclsAelophyBillDetailQueryBillDetailQueryRequest {
|
||||
s.PageSize = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailQueryRequest) SetStoreId(v string) *AlibabaTclsAelophyBillDetailQueryBillDetailQueryRequest {
|
||||
s.StoreId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailQueryRequest) SetBillStartDate(v int64) *AlibabaTclsAelophyBillDetailQueryBillDetailQueryRequest {
|
||||
s.BillStartDate = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillDetailQueryBillDetailQueryRequest) SetBillEndDate(v int64) *AlibabaTclsAelophyBillDetailQueryBillDetailQueryRequest {
|
||||
s.BillEndDate = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyBillVerificateCallbackApiResult struct {
|
||||
/*
|
||||
回调是否处理成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
错误说明 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
错误编码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyBillVerificateCallbackApiResult) SetSuccess(v bool) *AlibabaTclsAelophyBillVerificateCallbackApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillVerificateCallbackApiResult) SetErrMsg(v string) *AlibabaTclsAelophyBillVerificateCallbackApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillVerificateCallbackApiResult) SetErrCode(v string) *AlibabaTclsAelophyBillVerificateCallbackApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto struct {
|
||||
/*
|
||||
核销说明, 核销失败则填写核销失败原因 */
|
||||
Remark *string `json:"remark,omitempty" `
|
||||
|
||||
/*
|
||||
核销时间 YYYY-MM-DD HH:MI:SS */
|
||||
VerificateTime *string `json:"verificate_time,omitempty" `
|
||||
|
||||
/*
|
||||
核销状态 1=核销完成 2=核销失败 */
|
||||
VerificateStatus *int64 `json:"verificate_status,omitempty" `
|
||||
|
||||
/*
|
||||
核销账单类型 1=正向 / 2=逆向 */
|
||||
BillType *int64 `json:"bill_type,omitempty" `
|
||||
|
||||
/*
|
||||
核销账单ID */
|
||||
BillOrderId *string `json:"bill_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
业务经营店ID */
|
||||
StoreId *string `json:"store_id,omitempty" `
|
||||
|
||||
/*
|
||||
商家编码 */
|
||||
MerchantCode *string `json:"merchant_code,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto) SetRemark(v string) *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto {
|
||||
s.Remark = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto) SetVerificateTime(v string) *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto {
|
||||
s.VerificateTime = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto) SetVerificateStatus(v int64) *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto {
|
||||
s.VerificateStatus = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto) SetBillType(v int64) *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto {
|
||||
s.BillType = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto) SetBillOrderId(v string) *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto {
|
||||
s.BillOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto) SetStoreId(v string) *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto {
|
||||
s.StoreId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto) SetMerchantCode(v string) *AlibabaTclsAelophyBillVerificateCallbackVerificateCallbackDto {
|
||||
s.MerchantCode = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderCancelApiResult struct {
|
||||
/*
|
||||
是否成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
错误信息 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
错误编码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCancelApiResult) SetSuccess(v bool) *AlibabaTclsAelophyMerchantChannelOrderCancelApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCancelApiResult) SetErrMsg(v string) *AlibabaTclsAelophyMerchantChannelOrderCancelApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCancelApiResult) SetErrCode(v string) *AlibabaTclsAelophyMerchantChannelOrderCancelApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderCancelOrderUserCancelInfo struct {
|
||||
/*
|
||||
外部订单ID */
|
||||
OutOrderId *string `json:"out_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
外部渠道店ID(与shop_id必选其一) */
|
||||
OutShopId *string `json:"out_shop_id,omitempty" `
|
||||
|
||||
/*
|
||||
渠道来源(选填out_shop_id时该值必填) */
|
||||
OrderFrom *int64 `json:"order_from,omitempty" `
|
||||
|
||||
/*
|
||||
渠道店id(与out_shop_id必选其一) */
|
||||
ShopId *string `json:"shop_id,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCancelOrderUserCancelInfo) SetOutOrderId(v string) *AlibabaTclsAelophyMerchantChannelOrderCancelOrderUserCancelInfo {
|
||||
s.OutOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCancelOrderUserCancelInfo) SetOutShopId(v string) *AlibabaTclsAelophyMerchantChannelOrderCancelOrderUserCancelInfo {
|
||||
s.OutShopId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCancelOrderUserCancelInfo) SetOrderFrom(v int64) *AlibabaTclsAelophyMerchantChannelOrderCancelOrderUserCancelInfo {
|
||||
s.OrderFrom = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCancelOrderUserCancelInfo) SetShopId(v string) *AlibabaTclsAelophyMerchantChannelOrderCancelOrderUserCancelInfo {
|
||||
s.ShopId = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderCreateApiResult struct {
|
||||
/*
|
||||
错误编码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
错误信息 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
是否成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateApiResult) SetErrCode(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateApiResult) SetErrMsg(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateApiResult) SetSuccess(v bool) *AlibabaTclsAelophyMerchantChannelOrderCreateApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderCreateBuyer struct {
|
||||
/*
|
||||
买家标识 */
|
||||
UserId *string `json:"user_id,omitempty" `
|
||||
|
||||
/*
|
||||
买家用户名 */
|
||||
UserName *string `json:"user_name,omitempty" `
|
||||
|
||||
/*
|
||||
买家昵称 */
|
||||
UserNick *string `json:"user_nick,omitempty" `
|
||||
|
||||
/*
|
||||
买家电话 */
|
||||
Phone *string `json:"phone,omitempty" `
|
||||
|
||||
/*
|
||||
买家备注 */
|
||||
UserMemo *string `json:"user_memo,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateBuyer) SetUserId(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateBuyer {
|
||||
s.UserId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateBuyer) SetUserName(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateBuyer {
|
||||
s.UserName = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateBuyer) SetUserNick(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateBuyer {
|
||||
s.UserNick = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateBuyer) SetPhone(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateBuyer {
|
||||
s.Phone = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateBuyer) SetUserMemo(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateBuyer {
|
||||
s.UserMemo = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderCreateConsignee struct {
|
||||
/*
|
||||
收件人名称 */
|
||||
Name *string `json:"name,omitempty" `
|
||||
|
||||
/*
|
||||
收件人电话 */
|
||||
Phone *string `json:"phone,omitempty" `
|
||||
|
||||
/*
|
||||
配送地址 */
|
||||
Address *string `json:"address,omitempty" `
|
||||
|
||||
/*
|
||||
配送坐标 */
|
||||
Geo *string `json:"geo,omitempty" `
|
||||
|
||||
/*
|
||||
配送开始时间 */
|
||||
StartTime *util.LocalTime `json:"start_time,omitempty" `
|
||||
|
||||
/*
|
||||
配送结束时间 */
|
||||
EndTime *util.LocalTime `json:"end_time,omitempty" `
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee) SetName(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee {
|
||||
s.Name = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee) SetPhone(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee {
|
||||
s.Phone = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee) SetAddress(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee {
|
||||
s.Address = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee) SetGeo(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee {
|
||||
s.Geo = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee) SetStartTime(v util.LocalTime) *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee {
|
||||
s.StartTime = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee) SetEndTime(v util.LocalTime) *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee {
|
||||
s.EndTime = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo struct {
|
||||
/*
|
||||
营销活动ID */
|
||||
ActivityId *string `json:"activity_id,omitempty" `
|
||||
|
||||
/*
|
||||
营销活动类型 */
|
||||
ActivityType *string `json:"activity_type,omitempty" `
|
||||
|
||||
/*
|
||||
活动优惠金额 */
|
||||
DiscountFee *int64 `json:"discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
活动优惠金额商家分摊 */
|
||||
MerchantDiscountFee *int64 `json:"merchant_discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
活动优惠金额平台分摊 */
|
||||
PlatformDiscountFee *int64 `json:"platform_discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
活动名称 */
|
||||
ActivityName *string `json:"activity_name,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo) SetActivityId(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo {
|
||||
s.ActivityId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo) SetActivityType(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo {
|
||||
s.ActivityType = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo) SetDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo {
|
||||
s.DiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo) SetMerchantDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo {
|
||||
s.MerchantDiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo) SetPlatformDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo {
|
||||
s.PlatformDiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo) SetActivityName(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo {
|
||||
s.ActivityName = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,328 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo struct {
|
||||
/*
|
||||
买家信息 */
|
||||
Buyer *AlibabaTclsAelophyMerchantChannelOrderCreateBuyer `json:"buyer,omitempty" `
|
||||
|
||||
/*
|
||||
收件人信息 */
|
||||
Consignee *AlibabaTclsAelophyMerchantChannelOrderCreateConsignee `json:"consignee,omitempty" `
|
||||
|
||||
/*
|
||||
子订单信息 */
|
||||
SubOrders *[]AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder `json:"sub_orders,omitempty" `
|
||||
|
||||
/*
|
||||
实际支付金额 */
|
||||
PayFee *int64 `json:"pay_fee,omitempty" `
|
||||
|
||||
/*
|
||||
原始金额 */
|
||||
OriginFee *int64 `json:"origin_fee,omitempty" `
|
||||
|
||||
/*
|
||||
优惠金额 */
|
||||
DiscountFee *int64 `json:"discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
运费 */
|
||||
PostFee *int64 `json:"post_fee,omitempty" `
|
||||
|
||||
/*
|
||||
外部订单号 */
|
||||
OutOrderId *string `json:"out_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
外部渠道店ID(与shop_id必选其一) */
|
||||
OutShopId *string `json:"out_shop_id,omitempty" `
|
||||
|
||||
/*
|
||||
订单状态 */
|
||||
OrderStatus *string `json:"order_status,omitempty" `
|
||||
|
||||
/*
|
||||
支付时间 */
|
||||
PayTime *util.LocalTime `json:"pay_time,omitempty" `
|
||||
|
||||
/*
|
||||
创单时间 */
|
||||
CreateTime *util.LocalTime `json:"create_time,omitempty" `
|
||||
|
||||
/*
|
||||
订单来源(选填out_shop_id时该值必填) */
|
||||
OrderFrom *int64 `json:"order_from,omitempty" `
|
||||
|
||||
/*
|
||||
配送方式 1:平台配送 2:商家自配送 3:到店自提 */
|
||||
PickupType *int64 `json:"pickup_type,omitempty" `
|
||||
|
||||
/*
|
||||
平台佣金 */
|
||||
Commission *int64 `json:"commission,omitempty" `
|
||||
|
||||
/*
|
||||
订单小号 */
|
||||
SerialNo *string `json:"serial_no,omitempty" `
|
||||
|
||||
/*
|
||||
包装费 */
|
||||
PackageFee *int64 `json:"package_fee,omitempty" `
|
||||
|
||||
/*
|
||||
渠道店id(与out_shop_id必选其一) */
|
||||
ShopId *string `json:"shop_id,omitempty" `
|
||||
|
||||
/*
|
||||
商家应收总金额 */
|
||||
MerchantTotalFee *int64 `json:"merchant_total_fee,omitempty" `
|
||||
|
||||
/*
|
||||
未分类商家总优惠 */
|
||||
OtherMerchantSubsidyFee *int64 `json:"other_merchant_subsidy_fee,omitempty" `
|
||||
|
||||
/*
|
||||
未分类平台总优惠 */
|
||||
OtherPlatSubsidyFee *int64 `json:"other_plat_subsidy_fee,omitempty" `
|
||||
|
||||
/*
|
||||
商家基础配送费 */
|
||||
MerchantBaseSendFee *int64 `json:"merchant_base_send_fee,omitempty" `
|
||||
|
||||
/*
|
||||
平台配送费补贴 */
|
||||
PlatSendSubsidyFee *int64 `json:"plat_send_subsidy_fee,omitempty" `
|
||||
|
||||
/*
|
||||
商家配送费补贴 */
|
||||
MerchantSendSubsidyFee *int64 `json:"merchant_send_subsidy_fee,omitempty" `
|
||||
|
||||
/*
|
||||
商家呼单小费 */
|
||||
MerchantCallOrderFee *int64 `json:"merchant_call_order_fee,omitempty" `
|
||||
|
||||
/*
|
||||
冷链配送费 */
|
||||
ColdChainSendFee *int64 `json:"cold_chain_send_fee,omitempty" `
|
||||
|
||||
/*
|
||||
商家呼单配送费 */
|
||||
MerchantCallOrderSendFee *int64 `json:"merchant_call_order_send_fee,omitempty" `
|
||||
|
||||
/*
|
||||
配送保险 */
|
||||
SendInsuranceFee *int64 `json:"send_insurance_fee,omitempty" `
|
||||
|
||||
/*
|
||||
物流驻店服务费 */
|
||||
LogisticsShopServiceFee *int64 `json:"logistics_shop_service_fee,omitempty" `
|
||||
|
||||
/*
|
||||
实收增值服务费 */
|
||||
ActualIncrementServiceFee *int64 `json:"actual_increment_service_fee,omitempty" `
|
||||
|
||||
/*
|
||||
履约增值服务费 */
|
||||
PerformanceIncrementServiceFee *int64 `json:"performance_increment_service_fee,omitempty" `
|
||||
|
||||
/*
|
||||
距离加价履约费 */
|
||||
DistanceIncreasePerformanceFee *int64 `json:"distance_increase_performance_fee,omitempty" `
|
||||
|
||||
/*
|
||||
时段加价履约费 */
|
||||
TimeIncreasePerformanceFee *int64 `json:"time_increase_performance_fee,omitempty" `
|
||||
|
||||
/*
|
||||
公益捐款 */
|
||||
MerchantPublicDonation *int64 `json:"merchant_public_donation,omitempty" `
|
||||
|
||||
/*
|
||||
用户积分抵扣金额 */
|
||||
PlatPointsDeductionFee *int64 `json:"plat_points_deduction_fee,omitempty" `
|
||||
|
||||
/*
|
||||
自提服务费优惠金额 */
|
||||
SelfPickDiscountFee *int64 `json:"self_pick_discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
自提服务费 */
|
||||
SelfPickPayableFee *int64 `json:"self_pick_payable_fee,omitempty" `
|
||||
|
||||
/*
|
||||
价格加价履约费 */
|
||||
PriceIncreasePerformanceFee *int64 `json:"price_increase_performance_fee,omitempty" `
|
||||
|
||||
/*
|
||||
支付渠道,不填会默认使用类型1,支付金额=主单的payFee */
|
||||
PayChannels *[]AlibabaTclsAelophyMerchantChannelOrderCreatePayChannel `json:"pay_channels,omitempty" `
|
||||
|
||||
/*
|
||||
订单扩展数据 */
|
||||
Ext *string `json:"ext,omitempty" `
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetBuyer(v AlibabaTclsAelophyMerchantChannelOrderCreateBuyer) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.Buyer = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetConsignee(v AlibabaTclsAelophyMerchantChannelOrderCreateConsignee) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.Consignee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetSubOrders(v []AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.SubOrders = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetPayFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.PayFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetOriginFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.OriginFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.DiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetPostFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.PostFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetOutOrderId(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.OutOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetOutShopId(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.OutShopId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetOrderStatus(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.OrderStatus = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetPayTime(v util.LocalTime) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.PayTime = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetCreateTime(v util.LocalTime) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.CreateTime = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetOrderFrom(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.OrderFrom = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetPickupType(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.PickupType = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetCommission(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.Commission = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetSerialNo(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.SerialNo = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetPackageFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.PackageFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetShopId(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.ShopId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetMerchantTotalFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.MerchantTotalFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetOtherMerchantSubsidyFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.OtherMerchantSubsidyFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetOtherPlatSubsidyFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.OtherPlatSubsidyFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetMerchantBaseSendFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.MerchantBaseSendFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetPlatSendSubsidyFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.PlatSendSubsidyFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetMerchantSendSubsidyFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.MerchantSendSubsidyFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetMerchantCallOrderFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.MerchantCallOrderFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetColdChainSendFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.ColdChainSendFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetMerchantCallOrderSendFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.MerchantCallOrderSendFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetSendInsuranceFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.SendInsuranceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetLogisticsShopServiceFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.LogisticsShopServiceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetActualIncrementServiceFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.ActualIncrementServiceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetPerformanceIncrementServiceFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.PerformanceIncrementServiceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetDistanceIncreasePerformanceFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.DistanceIncreasePerformanceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetTimeIncreasePerformanceFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.TimeIncreasePerformanceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetMerchantPublicDonation(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.MerchantPublicDonation = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetPlatPointsDeductionFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.PlatPointsDeductionFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetSelfPickDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.SelfPickDiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetSelfPickPayableFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.SelfPickPayableFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetPriceIncreasePerformanceFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.PriceIncreasePerformanceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetPayChannels(v []AlibabaTclsAelophyMerchantChannelOrderCreatePayChannel) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.PayChannels = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo) SetExt(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateOrderInfo {
|
||||
s.Ext = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderCreatePayChannel struct {
|
||||
/*
|
||||
支付渠道类型 1.默认 10-支付宝 20-微信支付 30-积分支付 40-储值卡支付 50-银行卡支付。有支付渠道的情况下,必填。 必须是翱象支持的支付渠道,否则报错。 */
|
||||
PayChannelType *int64 `json:"pay_channel_type,omitempty" `
|
||||
|
||||
/*
|
||||
当前支付渠道的支付金额,单位分。有支付渠道的情况下,必填。 */
|
||||
PayFee *int64 `json:"pay_fee,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreatePayChannel) SetPayChannelType(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreatePayChannel {
|
||||
s.PayChannelType = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreatePayChannel) SetPayFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreatePayChannel {
|
||||
s.PayFee = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder struct {
|
||||
/*
|
||||
外部子单号 */
|
||||
SubOutOrderId *string `json:"sub_out_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
商品编码 */
|
||||
SkuCode *string `json:"sku_code,omitempty" `
|
||||
|
||||
/*
|
||||
销售商品数量 */
|
||||
SaleQuantity *int64 `json:"sale_quantity,omitempty" `
|
||||
|
||||
/*
|
||||
销售单价 */
|
||||
SalePrice *int64 `json:"sale_price,omitempty" `
|
||||
|
||||
/*
|
||||
实际支付金额 */
|
||||
PayFee *int64 `json:"pay_fee,omitempty" `
|
||||
|
||||
/*
|
||||
原始金额 */
|
||||
OriginFee *int64 `json:"origin_fee,omitempty" `
|
||||
|
||||
/*
|
||||
优惠金额 */
|
||||
DiscountFee *int64 `json:"discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
营销优惠明细 */
|
||||
DiscountInfos *[]AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo `json:"discount_infos,omitempty" `
|
||||
|
||||
/*
|
||||
子单优惠金额商家分摊 */
|
||||
MerchantDiscountFee *int64 `json:"merchant_discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
子单优惠金额平台分摊 */
|
||||
PlatformDiscountFee *int64 `json:"platform_discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
子单商品总重量 */
|
||||
TotalWeight *int64 `json:"total_weight,omitempty" `
|
||||
|
||||
/*
|
||||
处理方式 */
|
||||
HandlingType *string `json:"handling_type,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) SetSubOutOrderId(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder {
|
||||
s.SubOutOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) SetSkuCode(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder {
|
||||
s.SkuCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) SetSaleQuantity(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder {
|
||||
s.SaleQuantity = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) SetSalePrice(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder {
|
||||
s.SalePrice = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) SetPayFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder {
|
||||
s.PayFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) SetOriginFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder {
|
||||
s.OriginFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) SetDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder {
|
||||
s.DiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) SetDiscountInfos(v []AlibabaTclsAelophyMerchantChannelOrderCreateDiscountInfo) *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder {
|
||||
s.DiscountInfos = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) SetMerchantDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder {
|
||||
s.MerchantDiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) SetPlatformDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder {
|
||||
s.PlatformDiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) SetTotalWeight(v int64) *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder {
|
||||
s.TotalWeight = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder) SetHandlingType(v string) *AlibabaTclsAelophyMerchantChannelOrderCreateSubOrder {
|
||||
s.HandlingType = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderPrecheckApiResult struct {
|
||||
/*
|
||||
返回码说明 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
返回码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
是否成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
商品校验结果返回对象 */
|
||||
Model *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckResponse `json:"model,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckApiResult) SetErrMsg(v string) *AlibabaTclsAelophyMerchantChannelOrderPrecheckApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckApiResult) SetErrCode(v string) *AlibabaTclsAelophyMerchantChannelOrderPrecheckApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckApiResult) SetSuccess(v bool) *AlibabaTclsAelophyMerchantChannelOrderPrecheckApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckApiResult) SetModel(v AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckResponse) *AlibabaTclsAelophyMerchantChannelOrderPrecheckApiResult {
|
||||
s.Model = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckProductResponse struct {
|
||||
/*
|
||||
商品编码 */
|
||||
SkuCode *string `json:"sku_code,omitempty" `
|
||||
|
||||
/*
|
||||
是否可作业 */
|
||||
CanFulfill *bool `json:"can_fulfill,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckProductResponse) SetSkuCode(v string) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckProductResponse {
|
||||
s.SkuCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckProductResponse) SetCanFulfill(v bool) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckProductResponse {
|
||||
s.CanFulfill = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest struct {
|
||||
/*
|
||||
渠道店ID */
|
||||
ShopId *string `json:"shop_id,omitempty" `
|
||||
|
||||
/*
|
||||
配送地址经纬度 */
|
||||
Geo *string `json:"geo,omitempty" `
|
||||
|
||||
/*
|
||||
CartScene = 购物车场景 / PostOrderScene = 进入支付场景 */
|
||||
Scene *string `json:"scene,omitempty" `
|
||||
|
||||
/*
|
||||
选择时间片日期, PostOrderScene场景必填 */
|
||||
TimeSliceDate *string `json:"time_slice_date,omitempty" `
|
||||
|
||||
/*
|
||||
选择时间片时间段, PostOrderScene场景必填 */
|
||||
TimeSlice *string `json:"time_slice,omitempty" `
|
||||
|
||||
/*
|
||||
购买商品列表 */
|
||||
SkuList *[]AlibabaTclsAelophyMerchantChannelOrderPrecheckPromiseSkuInfo `json:"sku_list,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest) SetShopId(v string) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest {
|
||||
s.ShopId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest) SetGeo(v string) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest {
|
||||
s.Geo = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest) SetScene(v string) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest {
|
||||
s.Scene = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest) SetTimeSliceDate(v string) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest {
|
||||
s.TimeSliceDate = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest) SetTimeSlice(v string) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest {
|
||||
s.TimeSlice = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest) SetSkuList(v []AlibabaTclsAelophyMerchantChannelOrderPrecheckPromiseSkuInfo) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckRequest {
|
||||
s.SkuList = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckResponse struct {
|
||||
/*
|
||||
履约前置校验扩展数据 */
|
||||
Ext *string `json:"ext,omitempty" `
|
||||
|
||||
/*
|
||||
商品是否可作业信息 */
|
||||
ProductList *[]AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckProductResponse `json:"product_list,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckResponse) SetExt(v string) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckResponse {
|
||||
s.Ext = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckResponse) SetProductList(v []AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckProductResponse) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPreCheckResponse {
|
||||
s.ProductList = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderPrecheckPromiseSkuInfo struct {
|
||||
/*
|
||||
商品编码 */
|
||||
SkuCode *string `json:"sku_code,omitempty" `
|
||||
|
||||
/*
|
||||
加购数量 */
|
||||
Quantity *string `json:"quantity,omitempty" `
|
||||
|
||||
/*
|
||||
商品履约线路 */
|
||||
LineInstances *string `json:"line_instances,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPromiseSkuInfo) SetSkuCode(v string) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPromiseSkuInfo {
|
||||
s.SkuCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPromiseSkuInfo) SetQuantity(v string) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPromiseSkuInfo {
|
||||
s.Quantity = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderPrecheckPromiseSkuInfo) SetLineInstances(v string) *AlibabaTclsAelophyMerchantChannelOrderPrecheckPromiseSkuInfo {
|
||||
s.LineInstances = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderSlicegetApiResult struct {
|
||||
/*
|
||||
返回码说明 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
返回码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
是否成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
返回的时间片数据 */
|
||||
Model *AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetResponse `json:"model,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetApiResult) SetErrMsg(v string) *AlibabaTclsAelophyMerchantChannelOrderSlicegetApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetApiResult) SetErrCode(v string) *AlibabaTclsAelophyMerchantChannelOrderSlicegetApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetApiResult) SetSuccess(v bool) *AlibabaTclsAelophyMerchantChannelOrderSlicegetApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetApiResult) SetModel(v AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetResponse) *AlibabaTclsAelophyMerchantChannelOrderSlicegetApiResult {
|
||||
s.Model = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderSlicegetFulfillProduct struct {
|
||||
/*
|
||||
商品编码 */
|
||||
SkuCode *string `json:"sku_code,omitempty" `
|
||||
|
||||
/*
|
||||
商品履约线路 */
|
||||
LineInstances *string `json:"line_instances,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetFulfillProduct) SetSkuCode(v string) *AlibabaTclsAelophyMerchantChannelOrderSlicegetFulfillProduct {
|
||||
s.SkuCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetFulfillProduct) SetLineInstances(v string) *AlibabaTclsAelophyMerchantChannelOrderSlicegetFulfillProduct {
|
||||
s.LineInstances = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseSkuInfo struct {
|
||||
/*
|
||||
商品编码 */
|
||||
SkuCode *string `json:"sku_code,omitempty" `
|
||||
|
||||
/*
|
||||
加购数量 */
|
||||
Quantity *string `json:"quantity,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseSkuInfo) SetSkuCode(v string) *AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseSkuInfo {
|
||||
s.SkuCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseSkuInfo) SetQuantity(v string) *AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseSkuInfo {
|
||||
s.Quantity = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseTimeSlice struct {
|
||||
/*
|
||||
时间片日期 YYYY-MM-DD */
|
||||
SliceDate *string `json:"slice_date,omitempty" `
|
||||
|
||||
/*
|
||||
时间片小时维度列表, 单个时间片格式为09:00-09:30 */
|
||||
SliceList *[]string `json:"slice_list,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseTimeSlice) SetSliceDate(v string) *AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseTimeSlice {
|
||||
s.SliceDate = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseTimeSlice) SetSliceList(v []string) *AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseTimeSlice {
|
||||
s.SliceList = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetRequest struct {
|
||||
/*
|
||||
渠道店ID */
|
||||
ShopId *string `json:"shop_id,omitempty" `
|
||||
|
||||
/*
|
||||
配送地址经纬度 */
|
||||
Geo *string `json:"geo,omitempty" `
|
||||
|
||||
/*
|
||||
购买商品列表 */
|
||||
SkuList *[]AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseSkuInfo `json:"sku_list,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetRequest) SetShopId(v string) *AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetRequest {
|
||||
s.ShopId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetRequest) SetGeo(v string) *AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetRequest {
|
||||
s.Geo = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetRequest) SetSkuList(v []AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseSkuInfo) *AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetRequest {
|
||||
s.SkuList = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetResponse struct {
|
||||
/*
|
||||
时间片列表 */
|
||||
TimeSliceList *[]AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseTimeSlice `json:"time_slice_list,omitempty" `
|
||||
|
||||
/*
|
||||
商品信息 */
|
||||
ProductList *[]AlibabaTclsAelophyMerchantChannelOrderSlicegetFulfillProduct `json:"product_list,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetResponse) SetTimeSliceList(v []AlibabaTclsAelophyMerchantChannelOrderSlicegetPromiseTimeSlice) *AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetResponse {
|
||||
s.TimeSliceList = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetResponse) SetProductList(v []AlibabaTclsAelophyMerchantChannelOrderSlicegetFulfillProduct) *AlibabaTclsAelophyMerchantChannelOrderSlicegetTimeSliceGetResponse {
|
||||
s.ProductList = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderUpdatestatusApiResult struct {
|
||||
/*
|
||||
是否成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
错误信息 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
错误编码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusApiResult) SetSuccess(v bool) *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusApiResult) SetErrMsg(v string) *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusApiResult) SetErrCode(v string) *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelOrderUpdatestatusOrderStatusInfo struct {
|
||||
/*
|
||||
外部渠道店ID(与shop_id必选其一) */
|
||||
OutShopId *string `json:"out_shop_id,omitempty" `
|
||||
|
||||
/*
|
||||
外部订单号 */
|
||||
OutOrderId *string `json:"out_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
订单状态 已支付: PAID; TRADE_CLOSE(仅未支付订单) */
|
||||
OrderStatus *string `json:"order_status,omitempty" `
|
||||
|
||||
/*
|
||||
渠道来源(选填out_shop_id时该值必填) */
|
||||
OrderFrom *int64 `json:"order_from,omitempty" `
|
||||
|
||||
/*
|
||||
渠道店id(与out_shop_id必选其一) */
|
||||
ShopId *string `json:"shop_id,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusOrderStatusInfo) SetOutShopId(v string) *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusOrderStatusInfo {
|
||||
s.OutShopId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusOrderStatusInfo) SetOutOrderId(v string) *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusOrderStatusInfo {
|
||||
s.OutOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusOrderStatusInfo) SetOrderStatus(v string) *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusOrderStatusInfo {
|
||||
s.OrderStatus = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusOrderStatusInfo) SetOrderFrom(v int64) *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusOrderStatusInfo {
|
||||
s.OrderFrom = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusOrderStatusInfo) SetShopId(v string) *AlibabaTclsAelophyMerchantChannelOrderUpdatestatusOrderStatusInfo {
|
||||
s.ShopId = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelRefundApplyApiResult struct {
|
||||
/*
|
||||
返回码说明 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
返回码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
是否成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyApiResult) SetErrMsg(v string) *AlibabaTclsAelophyMerchantChannelRefundApplyApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyApiResult) SetErrCode(v string) *AlibabaTclsAelophyMerchantChannelRefundApplyApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyApiResult) SetSuccess(v bool) *AlibabaTclsAelophyMerchantChannelRefundApplyApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo struct {
|
||||
/*
|
||||
外部主单号 */
|
||||
OutOrderId *string `json:"out_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
外部渠道店ID(与shop_id必选其一) */
|
||||
OutShopId *string `json:"out_shop_id,omitempty" `
|
||||
|
||||
/*
|
||||
外部逆向单ID */
|
||||
OutRefundId *string `json:"out_refund_id,omitempty" `
|
||||
|
||||
/*
|
||||
申请退款金额,单位:分 */
|
||||
RefundFee *int64 `json:"refund_fee,omitempty" `
|
||||
|
||||
/*
|
||||
退款原因 */
|
||||
RefundReason *string `json:"refund_reason,omitempty" `
|
||||
|
||||
/*
|
||||
退的运费 */
|
||||
RefundPostFee *int64 `json:"refund_post_fee,omitempty" `
|
||||
|
||||
/*
|
||||
退的包装费 */
|
||||
RefundPackageFee *int64 `json:"refund_package_fee,omitempty" `
|
||||
|
||||
/*
|
||||
逆向子单列表 */
|
||||
SubRefundOrders *[]AlibabaTclsAelophyMerchantChannelRefundApplySubRefundOrder `json:"sub_refund_orders,omitempty" `
|
||||
|
||||
/*
|
||||
渠道来源(选填out_shop_id时该值必填) */
|
||||
OrderFrom *int64 `json:"order_from,omitempty" `
|
||||
|
||||
/*
|
||||
渠道店id(与out_shop_id必选其一) */
|
||||
ShopId *string `json:"shop_id,omitempty" `
|
||||
|
||||
/*
|
||||
退款类型,1:仅退款。2.仅退货。3.退货退款 */
|
||||
RefundType *int64 `json:"refund_type,omitempty" `
|
||||
|
||||
/*
|
||||
退款备注、或问题描述等补充性文本 */
|
||||
RefundNote *string `json:"refund_note,omitempty" `
|
||||
|
||||
/*
|
||||
退款图片清单 */
|
||||
RefundPics *[]string `json:"refund_pics,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetOutOrderId(v string) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.OutOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetOutShopId(v string) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.OutShopId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetOutRefundId(v string) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.OutRefundId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetRefundFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.RefundFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetRefundReason(v string) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.RefundReason = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetRefundPostFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.RefundPostFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetRefundPackageFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.RefundPackageFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetSubRefundOrders(v []AlibabaTclsAelophyMerchantChannelRefundApplySubRefundOrder) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.SubRefundOrders = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetOrderFrom(v int64) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.OrderFrom = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetShopId(v string) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.ShopId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetRefundType(v int64) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.RefundType = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetRefundNote(v string) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.RefundNote = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo) SetRefundPics(v []string) *AlibabaTclsAelophyMerchantChannelRefundApplyRefundApplyInfo {
|
||||
s.RefundPics = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelRefundApplySubRefundOrder struct {
|
||||
/*
|
||||
外部子单号 */
|
||||
SubOutOrderId *string `json:"sub_out_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
退款数量 */
|
||||
RefundQuantity *int64 `json:"refund_quantity,omitempty" `
|
||||
|
||||
/*
|
||||
退款金额,单位:分 */
|
||||
RefundFee *int64 `json:"refund_fee,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplySubRefundOrder) SetSubOutOrderId(v string) *AlibabaTclsAelophyMerchantChannelRefundApplySubRefundOrder {
|
||||
s.SubOutOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplySubRefundOrder) SetRefundQuantity(v int64) *AlibabaTclsAelophyMerchantChannelRefundApplySubRefundOrder {
|
||||
s.RefundQuantity = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundApplySubRefundOrder) SetRefundFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundApplySubRefundOrder {
|
||||
s.RefundFee = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelRefundCancelApiResult struct {
|
||||
/*
|
||||
是否成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
返回码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
返回码说明 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCancelApiResult) SetSuccess(v bool) *AlibabaTclsAelophyMerchantChannelRefundCancelApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCancelApiResult) SetErrCode(v string) *AlibabaTclsAelophyMerchantChannelRefundCancelApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCancelApiResult) SetErrMsg(v string) *AlibabaTclsAelophyMerchantChannelRefundCancelApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelRefundCancelRefundCancelInfo struct {
|
||||
/*
|
||||
外部主单号 */
|
||||
OutOrderId *string `json:"out_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
外部渠道店ID(与shop_id必选其一) */
|
||||
OutShopId *string `json:"out_shop_id,omitempty" `
|
||||
|
||||
/*
|
||||
外部逆向单ID */
|
||||
OutRefundId *string `json:"out_refund_id,omitempty" `
|
||||
|
||||
/*
|
||||
渠道来源(选填out_shop_id时该值必填) */
|
||||
OrderFrom *int64 `json:"order_from,omitempty" `
|
||||
|
||||
/*
|
||||
渠道店id(与out_shop_id必选其一) */
|
||||
ShopId *string `json:"shop_id,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCancelRefundCancelInfo) SetOutOrderId(v string) *AlibabaTclsAelophyMerchantChannelRefundCancelRefundCancelInfo {
|
||||
s.OutOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCancelRefundCancelInfo) SetOutShopId(v string) *AlibabaTclsAelophyMerchantChannelRefundCancelRefundCancelInfo {
|
||||
s.OutShopId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCancelRefundCancelInfo) SetOutRefundId(v string) *AlibabaTclsAelophyMerchantChannelRefundCancelRefundCancelInfo {
|
||||
s.OutRefundId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCancelRefundCancelInfo) SetOrderFrom(v int64) *AlibabaTclsAelophyMerchantChannelRefundCancelRefundCancelInfo {
|
||||
s.OrderFrom = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCancelRefundCancelInfo) SetShopId(v string) *AlibabaTclsAelophyMerchantChannelRefundCancelRefundCancelInfo {
|
||||
s.ShopId = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelRefundCompleteApiResult struct {
|
||||
/*
|
||||
返回码说明 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
返回码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
是否成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteApiResult) SetErrMsg(v string) *AlibabaTclsAelophyMerchantChannelRefundCompleteApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteApiResult) SetErrCode(v string) *AlibabaTclsAelophyMerchantChannelRefundCompleteApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteApiResult) SetSuccess(v bool) *AlibabaTclsAelophyMerchantChannelRefundCompleteApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo struct {
|
||||
/*
|
||||
营销活动Id */
|
||||
ActivityId *string `json:"activity_id,omitempty" `
|
||||
|
||||
/*
|
||||
营销活动类型 */
|
||||
ActivityType *string `json:"activity_type,omitempty" `
|
||||
|
||||
/*
|
||||
优惠金额,单位:分 */
|
||||
DiscountFee *int64 `json:"discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
该活动下商家分摊优惠金额,单位:分 */
|
||||
MerchantDiscountFee *int64 `json:"merchant_discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
该活动下平台分摊优惠金额,单位:分 */
|
||||
PlatformDiscountFee *int64 `json:"platform_discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
活动名称 */
|
||||
ActivityName *string `json:"activity_name,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo) SetActivityId(v string) *AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo {
|
||||
s.ActivityId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo) SetActivityType(v string) *AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo {
|
||||
s.ActivityType = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo) SetDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo {
|
||||
s.DiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo) SetMerchantDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo {
|
||||
s.MerchantDiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo) SetPlatformDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo {
|
||||
s.PlatformDiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo) SetActivityName(v string) *AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo {
|
||||
s.ActivityName = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelRefundCompletePayChannel struct {
|
||||
/*
|
||||
支付渠道类型 1.默认 10-支付宝 20-微信支付 30-积分支付 40-储值卡支付 50-银行卡支付。有支付渠道的情况下,必填。 必须是翱象支持的支付渠道,否则报错。 */
|
||||
PayChannelType *int64 `json:"pay_channel_type,omitempty" `
|
||||
|
||||
/*
|
||||
当前支付渠道的退款金额,单位分。有支付渠道的情况下,必填。 */
|
||||
RefundFee *int64 `json:"refund_fee,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompletePayChannel) SetPayChannelType(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompletePayChannel {
|
||||
s.PayChannelType = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompletePayChannel) SetRefundFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompletePayChannel {
|
||||
s.RefundFee = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,262 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo struct {
|
||||
/*
|
||||
外部主单号 */
|
||||
OutOrderId *string `json:"out_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
外部渠道店ID(与shop_id必选其一) */
|
||||
OutShopId *string `json:"out_shop_id,omitempty" `
|
||||
|
||||
/*
|
||||
外部逆向单ID */
|
||||
OutRefundId *string `json:"out_refund_id,omitempty" `
|
||||
|
||||
/*
|
||||
退的商品费 */
|
||||
RefundFee *int64 `json:"refund_fee,omitempty" `
|
||||
|
||||
/*
|
||||
退的运费 */
|
||||
RefundPostFee *int64 `json:"refund_post_fee,omitempty" `
|
||||
|
||||
/*
|
||||
退的包装费 */
|
||||
RefundPackageFee *int64 `json:"refund_package_fee,omitempty" `
|
||||
|
||||
/*
|
||||
子单 */
|
||||
SubRefundOrders *[]AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder `json:"sub_refund_orders,omitempty" `
|
||||
|
||||
/*
|
||||
订单来源(选填out_shop_id时该值必填) */
|
||||
OrderFrom *int64 `json:"order_from,omitempty" `
|
||||
|
||||
/*
|
||||
渠道店id(与out_shop_id必选其一) */
|
||||
ShopId *string `json:"shop_id,omitempty" `
|
||||
|
||||
/*
|
||||
渠道退商家的佣金,单位:分 */
|
||||
Commission *int64 `json:"commission,omitempty" `
|
||||
|
||||
/*
|
||||
未分类商家总优惠,单位:分 */
|
||||
OtherMerchantSubsidyFee *int64 `json:"other_merchant_subsidy_fee,omitempty" `
|
||||
|
||||
/*
|
||||
未分类平台总优惠,单位:分 */
|
||||
OtherPlatSubsidyFee *int64 `json:"other_plat_subsidy_fee,omitempty" `
|
||||
|
||||
/*
|
||||
商家应退给平台的金额,单位:分 */
|
||||
MerchantTotalFee *int64 `json:"merchant_total_fee,omitempty" `
|
||||
|
||||
/*
|
||||
退的渠道配送费补贴,单位:分 */
|
||||
PlatSendSubsidyFee *int64 `json:"plat_send_subsidy_fee,omitempty" `
|
||||
|
||||
/*
|
||||
退的商家配送费补贴,单位:分 */
|
||||
MerchantSendSubsidyFee *int64 `json:"merchant_send_subsidy_fee,omitempty" `
|
||||
|
||||
/*
|
||||
商家呼单小费,单位:分 */
|
||||
MerchantCallOrderFee *int64 `json:"merchant_call_order_fee,omitempty" `
|
||||
|
||||
/*
|
||||
冷链配送费,单位:分 */
|
||||
ColdChainSendFee *int64 `json:"cold_chain_send_fee,omitempty" `
|
||||
|
||||
/*
|
||||
商家呼单配送费,单位:分 */
|
||||
MerchantCallOrderSendFee *int64 `json:"merchant_call_order_send_fee,omitempty" `
|
||||
|
||||
/*
|
||||
配送保险,单位:分 */
|
||||
SendInsuranceFee *int64 `json:"send_insurance_fee,omitempty" `
|
||||
|
||||
/*
|
||||
物流驻店服务费,单位:分 */
|
||||
LogisticsShopServiceFee *int64 `json:"logistics_shop_service_fee,omitempty" `
|
||||
|
||||
/*
|
||||
实收增值服务费,单位:分 */
|
||||
ActualIncrementServiceFee *int64 `json:"actual_increment_service_fee,omitempty" `
|
||||
|
||||
/*
|
||||
履约增值服务费,单位:分 */
|
||||
PerformanceIncrementServiceFee *int64 `json:"performance_increment_service_fee,omitempty" `
|
||||
|
||||
/*
|
||||
距离加价履约费,单位:分 */
|
||||
DistanceIncreasePerformanceFee *int64 `json:"distance_increase_performance_fee,omitempty" `
|
||||
|
||||
/*
|
||||
时段加价履约费,单位:分 */
|
||||
TimeIncreasePerformanceFee *int64 `json:"time_increase_performance_fee,omitempty" `
|
||||
|
||||
/*
|
||||
公益捐款,单位:分 */
|
||||
MerchantPublicDonation *int64 `json:"merchant_public_donation,omitempty" `
|
||||
|
||||
/*
|
||||
用户积分抵扣金额,单位:分 */
|
||||
PlatPointsDeductionFee *int64 `json:"plat_points_deduction_fee,omitempty" `
|
||||
|
||||
/*
|
||||
自提服务费优惠金额,单位:分 */
|
||||
SelfPickDiscountFee *int64 `json:"self_pick_discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
自提服务费,单位:分 */
|
||||
SelfPickPayableFee *int64 `json:"self_pick_payable_fee,omitempty" `
|
||||
|
||||
/*
|
||||
商家基础配送费,单位:分 */
|
||||
MerchantBaseSendFee *int64 `json:"merchant_base_send_fee,omitempty" `
|
||||
|
||||
/*
|
||||
价格加价履约费,单位:分 */
|
||||
PriceIncreasePerformanceFee *int64 `json:"price_increase_performance_fee,omitempty" `
|
||||
|
||||
/*
|
||||
支付渠道 */
|
||||
PayChannels *[]AlibabaTclsAelophyMerchantChannelRefundCompletePayChannel `json:"pay_channels,omitempty" `
|
||||
|
||||
/*
|
||||
退款原因类型:10-整单全缺;11-订单部分缺;12-商家侧发起的退款(商家拒单); 13-用户侧发起的退款(用户逆向申请);15-用户拒收 */
|
||||
RefundReasonType *int64 `json:"refund_reason_type,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetOutOrderId(v string) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.OutOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetOutShopId(v string) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.OutShopId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetOutRefundId(v string) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.OutRefundId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetRefundFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.RefundFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetRefundPostFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.RefundPostFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetRefundPackageFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.RefundPackageFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetSubRefundOrders(v []AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.SubRefundOrders = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetOrderFrom(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.OrderFrom = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetShopId(v string) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.ShopId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetCommission(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.Commission = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetOtherMerchantSubsidyFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.OtherMerchantSubsidyFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetOtherPlatSubsidyFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.OtherPlatSubsidyFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetMerchantTotalFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.MerchantTotalFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetPlatSendSubsidyFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.PlatSendSubsidyFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetMerchantSendSubsidyFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.MerchantSendSubsidyFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetMerchantCallOrderFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.MerchantCallOrderFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetColdChainSendFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.ColdChainSendFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetMerchantCallOrderSendFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.MerchantCallOrderSendFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetSendInsuranceFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.SendInsuranceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetLogisticsShopServiceFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.LogisticsShopServiceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetActualIncrementServiceFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.ActualIncrementServiceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetPerformanceIncrementServiceFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.PerformanceIncrementServiceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetDistanceIncreasePerformanceFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.DistanceIncreasePerformanceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetTimeIncreasePerformanceFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.TimeIncreasePerformanceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetMerchantPublicDonation(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.MerchantPublicDonation = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetPlatPointsDeductionFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.PlatPointsDeductionFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetSelfPickDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.SelfPickDiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetSelfPickPayableFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.SelfPickPayableFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetMerchantBaseSendFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.MerchantBaseSendFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetPriceIncreasePerformanceFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.PriceIncreasePerformanceFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetPayChannels(v []AlibabaTclsAelophyMerchantChannelRefundCompletePayChannel) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.PayChannels = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo) SetRefundReasonType(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteRefundCompleteInfo {
|
||||
s.RefundReasonType = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder struct {
|
||||
/*
|
||||
外部子单号 */
|
||||
SubOutOrderId *string `json:"sub_out_order_id,omitempty" `
|
||||
|
||||
/*
|
||||
商品编码 */
|
||||
SkuCode *string `json:"sku_code,omitempty" `
|
||||
|
||||
/*
|
||||
子单退货数量 */
|
||||
RefundQuantity *int64 `json:"refund_quantity,omitempty" `
|
||||
|
||||
/*
|
||||
子单退款金额,单位:分 */
|
||||
RefundFee *int64 `json:"refund_fee,omitempty" `
|
||||
|
||||
/*
|
||||
子单退款重量 */
|
||||
RefundWeight *int64 `json:"refund_weight,omitempty" `
|
||||
|
||||
/*
|
||||
退款商品的优惠金额,单位:分 */
|
||||
DiscountFee *int64 `json:"discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
退款商品的商家分摊优惠金额,单位:分 */
|
||||
MerchantDiscountFee *int64 `json:"merchant_discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
退款商品的平台分摊优惠金额,单位:分 */
|
||||
PlatformDiscountFee *int64 `json:"platform_discount_fee,omitempty" `
|
||||
|
||||
/*
|
||||
营销优惠明细 */
|
||||
DiscountInfos *[]AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo `json:"discount_infos,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder) SetSubOutOrderId(v string) *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder {
|
||||
s.SubOutOrderId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder) SetSkuCode(v string) *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder {
|
||||
s.SkuCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder) SetRefundQuantity(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder {
|
||||
s.RefundQuantity = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder) SetRefundFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder {
|
||||
s.RefundFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder) SetRefundWeight(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder {
|
||||
s.RefundWeight = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder) SetDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder {
|
||||
s.DiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder) SetMerchantDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder {
|
||||
s.MerchantDiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder) SetPlatformDiscountFee(v int64) *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder {
|
||||
s.PlatformDiscountFee = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder) SetDiscountInfos(v []AlibabaTclsAelophyMerchantChannelRefundCompleteDiscountInfo) *AlibabaTclsAelophyMerchantChannelRefundCompleteSubRefundOrder {
|
||||
s.DiscountInfos = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantIdMixApiResult struct {
|
||||
/*
|
||||
获取mixId成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
错误码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
错误信息 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
返回混淆id */
|
||||
Model *string `json:"model,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantIdMixApiResult) SetSuccess(v bool) *AlibabaTclsAelophyMerchantIdMixApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantIdMixApiResult) SetErrCode(v string) *AlibabaTclsAelophyMerchantIdMixApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantIdMixApiResult) SetErrMsg(v string) *AlibabaTclsAelophyMerchantIdMixApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantIdMixApiResult) SetModel(v string) *AlibabaTclsAelophyMerchantIdMixApiResult {
|
||||
s.Model = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyMerchantUserUploadApiResult struct {
|
||||
/*
|
||||
是否成功 */
|
||||
Success *bool `json:"success,omitempty" `
|
||||
|
||||
/*
|
||||
错误码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
错误信息描述 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
model */
|
||||
Model *bool `json:"model,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadApiResult) SetSuccess(v bool) *AlibabaTclsAelophyMerchantUserUploadApiResult {
|
||||
s.Success = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadApiResult) SetErrCode(v string) *AlibabaTclsAelophyMerchantUserUploadApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadApiResult) SetErrMsg(v string) *AlibabaTclsAelophyMerchantUserUploadApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadApiResult) SetModel(v bool) *AlibabaTclsAelophyMerchantUserUploadApiResult {
|
||||
s.Model = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,200 @@
|
||||
package domain
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/util"
|
||||
)
|
||||
|
||||
type AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo struct {
|
||||
/*
|
||||
真实手机号 */
|
||||
RealPhone *string `json:"real_phone,omitempty" `
|
||||
|
||||
/*
|
||||
生日 */
|
||||
Birthday *util.LocalTime `json:"birthday,omitempty" `
|
||||
|
||||
/*
|
||||
地址 */
|
||||
Address *string `json:"address,omitempty" `
|
||||
|
||||
/*
|
||||
性别 */
|
||||
Gender *string `json:"gender,omitempty" `
|
||||
|
||||
/*
|
||||
注册时间 */
|
||||
RegisterTime *util.LocalTime `json:"register_time,omitempty" `
|
||||
|
||||
/*
|
||||
等级 */
|
||||
MemberLevel *string `json:"member_level,omitempty" `
|
||||
|
||||
/*
|
||||
入会来源 */
|
||||
Source *string `json:"source,omitempty" `
|
||||
|
||||
/*
|
||||
用户名 */
|
||||
UserName *string `json:"user_name,omitempty" `
|
||||
|
||||
/*
|
||||
卡号 */
|
||||
CardNo *string `json:"card_no,omitempty" `
|
||||
|
||||
/*
|
||||
积分余额,可以为小数 */
|
||||
ScoreBalance *string `json:"score_balance,omitempty" `
|
||||
|
||||
/*
|
||||
自定义渠道类型 */
|
||||
CustomizeChannel *string `json:"customize_channel,omitempty" `
|
||||
|
||||
/*
|
||||
商家侧统一用户标识ID,如统一会员id */
|
||||
UnionUid *string `json:"union_uid,omitempty" `
|
||||
|
||||
/*
|
||||
渠道用户ID,如erp会员id,淘宝openid、饿了么uid、微信openId */
|
||||
ChannelUserId *string `json:"channel_user_id,omitempty" `
|
||||
|
||||
/*
|
||||
储值卡余额,需要统一单位为”分“,然后取整上传 */
|
||||
CardBalance *int64 `json:"card_balance,omitempty" `
|
||||
|
||||
/*
|
||||
扩项属性 */
|
||||
ExtendProperty *string `json:"extend_property,omitempty" `
|
||||
|
||||
/*
|
||||
会员开始时间 */
|
||||
StartTime *util.LocalTime `json:"start_time,omitempty" `
|
||||
|
||||
/*
|
||||
会员结束时间 */
|
||||
EndTime *util.LocalTime `json:"end_time,omitempty" `
|
||||
|
||||
/*
|
||||
是否续费 defalutValue:false */
|
||||
Renew *bool `json:"renew,omitempty" `
|
||||
|
||||
/*
|
||||
引导来源标识,填写引导来源标识备注,如门店编码 */
|
||||
SourceTag *string `json:"source_tag,omitempty" `
|
||||
|
||||
/*
|
||||
是否付费 defalutValue:false */
|
||||
PayMember *bool `json:"pay_member,omitempty" `
|
||||
|
||||
/*
|
||||
storeMember:门店会员,txd:淘鲜达,eleme:饿了么,weixin:微信小程序 */
|
||||
ChannelCode *string `json:"channel_code,omitempty" `
|
||||
|
||||
/*
|
||||
isv系统中的完整的用户信息 */
|
||||
OriginWholeData *string `json:"origin_whole_data,omitempty" `
|
||||
|
||||
/*
|
||||
微信名 */
|
||||
WxUserName *string `json:"wx_user_name,omitempty" `
|
||||
|
||||
/*
|
||||
微信unionId */
|
||||
WxUnionId *string `json:"wx_union_id,omitempty" `
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetRealPhone(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.RealPhone = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetBirthday(v util.LocalTime) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.Birthday = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetAddress(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.Address = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetGender(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.Gender = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetRegisterTime(v util.LocalTime) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.RegisterTime = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetMemberLevel(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.MemberLevel = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetSource(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.Source = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetUserName(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.UserName = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetCardNo(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.CardNo = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetScoreBalance(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.ScoreBalance = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetCustomizeChannel(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.CustomizeChannel = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetUnionUid(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.UnionUid = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetChannelUserId(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.ChannelUserId = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetCardBalance(v int64) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.CardBalance = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetExtendProperty(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.ExtendProperty = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetStartTime(v util.LocalTime) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.StartTime = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetEndTime(v util.LocalTime) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.EndTime = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetRenew(v bool) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.Renew = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetSourceTag(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.SourceTag = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetPayMember(v bool) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.PayMember = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetChannelCode(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.ChannelCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetOriginWholeData(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.OriginWholeData = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetWxUserName(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.WxUserName = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo) SetWxUnionId(v string) *AlibabaTclsAelophyMerchantUserUploadMerchantUserInfo {
|
||||
s.WxUnionId = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyOrderReceiptQueryApiResult struct {
|
||||
/*
|
||||
错误码 */
|
||||
ErrCode *string `json:"err_code,omitempty" `
|
||||
|
||||
/*
|
||||
接口状态 */
|
||||
Status *bool `json:"status,omitempty" `
|
||||
|
||||
/*
|
||||
错误信息 */
|
||||
ErrMsg *string `json:"err_msg,omitempty" `
|
||||
|
||||
/*
|
||||
打印商家/顾客联小票数据列表 */
|
||||
OrderList *[]AlibabaTclsAelophyOrderReceiptQueryReceiptDTO `json:"order_list,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyOrderReceiptQueryApiResult) SetErrCode(v string) *AlibabaTclsAelophyOrderReceiptQueryApiResult {
|
||||
s.ErrCode = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyOrderReceiptQueryApiResult) SetStatus(v bool) *AlibabaTclsAelophyOrderReceiptQueryApiResult {
|
||||
s.Status = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyOrderReceiptQueryApiResult) SetErrMsg(v string) *AlibabaTclsAelophyOrderReceiptQueryApiResult {
|
||||
s.ErrMsg = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyOrderReceiptQueryApiResult) SetOrderList(v []AlibabaTclsAelophyOrderReceiptQueryReceiptDTO) *AlibabaTclsAelophyOrderReceiptQueryApiResult {
|
||||
s.OrderList = &v
|
||||
return s
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package domain
|
||||
|
||||
|
||||
type AlibabaTclsAelophyOrderReceiptQueryBuyerInfoDTO struct {
|
||||
/*
|
||||
买家姓名 */
|
||||
BuyerName *string `json:"buyer_name,omitempty" `
|
||||
|
||||
/*
|
||||
买家电话号码 */
|
||||
BuyerPhone *string `json:"buyer_phone,omitempty" `
|
||||
|
||||
/*
|
||||
收货地址 */
|
||||
BuyerAddress *string `json:"buyer_address,omitempty" `
|
||||
|
||||
}
|
||||
|
||||
func (s *AlibabaTclsAelophyOrderReceiptQueryBuyerInfoDTO) SetBuyerName(v string) *AlibabaTclsAelophyOrderReceiptQueryBuyerInfoDTO {
|
||||
s.BuyerName = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyOrderReceiptQueryBuyerInfoDTO) SetBuyerPhone(v string) *AlibabaTclsAelophyOrderReceiptQueryBuyerInfoDTO {
|
||||
s.BuyerPhone = &v
|
||||
return s
|
||||
}
|
||||
func (s *AlibabaTclsAelophyOrderReceiptQueryBuyerInfoDTO) SetBuyerAddress(v string) *AlibabaTclsAelophyOrderReceiptQueryBuyerInfoDTO {
|
||||
s.BuyerAddress = &v
|
||||
return s
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user