This commit is contained in:
邹宗楠
2022-10-14 15:40:21 +08:00
parent 3aafc81c64
commit d7db9fe464
14 changed files with 231 additions and 21 deletions

View File

@@ -2,6 +2,8 @@ package order_addressModify_request
import (
"encoding/json"
order_addressModify_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_addressModify/response"
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
)
type OrderAddressModifyRequest struct {

View File

@@ -0,0 +1,66 @@
package order_getSettleBillDetailV3_request
import (
"encoding/json"
order_getSettleBillDetailV3_response "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/api/order_getSettleBillDetailV3/response"
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
)
type OrderGetSettleBillDetailV3Request struct {
doudian_sdk.BaseDoudianOpApiRequest
Param *OrderAddressModifyParam
}
func (c *OrderGetSettleBillDetailV3Request) GetUrlPath() string {
return "/order/getSettleBillDetailV3"
}
func New() *OrderGetSettleBillDetailV3Request {
request := &OrderGetSettleBillDetailV3Request{
Param: &OrderAddressModifyParam{},
}
request.SetConfig(doudian_sdk.GlobalConfig)
request.SetClient(doudian_sdk.DefaultDoudianOpApiClient)
return request
}
func (c *OrderGetSettleBillDetailV3Request) Execute(accessToken *doudian_sdk.AccessToken) (*order_getSettleBillDetailV3_response.OrderGetSettleBillDetailV3Response, error) {
responseJson, err := c.GetClient().Request(c, accessToken)
if err != nil {
return nil, err
}
response := &order_getSettleBillDetailV3_response.OrderGetSettleBillDetailV3Response{}
_ = json.Unmarshal([]byte(responseJson), response)
return response, nil
}
func (c *OrderGetSettleBillDetailV3Request) GetParamObject() interface{} {
return c.Param
}
func (c *OrderGetSettleBillDetailV3Request) GetParams() *OrderAddressModifyParam {
return c.Param
}
type OrderAddressModifyParam struct {
// 页数支持范围1~100
Size int64 `json:"size"`
// 查询开始时间格式为yyyy-MM-dd HH:mm:ss订单号未传的情况下开始时间必须传注意分页查询时除首次查询外应填入上一次返回的next_start_time
StartTime string `json:"start_time"`
// 查询结束时间和end_time的时间间隔建议不超过7天格式为yyyy-MM-dd HH:mm:ss订单号未传的情况下结束时间必须传
EndTime string `json:"end_time"`
// SKU单子订单号支持通过英文逗号分隔传入多个参数
OrderId string `json:"order_id"`
// 商品id
ProductId string `json:"product_id"`
// 结算账户,不传则默认为全部,枚举: 1微信升级前、 2微信、 3支付宝、 4合众支付、 5聚合账户支持通过英文逗号分隔传入多个参数
PayType string `json:"pay_type"`
// 业务类型,不传则默认为全部,枚举: 1鲁班广告、2值点商城, 3精选联盟、 4小店自卖
FlowType string `json:"flow_type"`
// 时间类型 ,不传则默认为结算时间,枚举: 0结算时间 1下单时间
TimeType string `json:"time_type"`
// 查询开始索引注意分页查询时除首次查询可不填外应填入上一次返回的next_start_index
StartIndex string `json:"start_index"`
}

View File

@@ -0,0 +1,56 @@
package order_getSettleBillDetailV3_response
import (
doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
)
type OrderGetSettleBillDetailV3Response struct {
doudian_sdk.BaseDoudianOpApiResponse
Data *OrderGetSettleBillDetailV3Data `json:"data"`
}
type OrderGetSettleBillDetailV3Data struct {
Code string `json:"code"` // 返回code 100000为成功其他为失败
CodeMsg string `json:"code_msg"` // 返回信息描述,失败状态下会有失败描述
Data []DataList `json:"data"` // 订单流水明细列表
DataSize string `json:"data_size"` // 结果data的大小
IsEnd string `json:"is_end"` // 判断查询是否结束。0 未结束, 1 结束。未结束时需要把next_start_index作为下一次请求的start_index,next_start_time作为下一次请求的start_time
NextStartIndex string `json:"next_start_index"` // 下一次查询start_index
NextStartTime string `json:"next_start_time"` // 下一次查询start_time
Size string `json:"size"` // 请求的size
}
type DataList struct {
AuthorCoupon string `json:"author_coupon"` // 达人补贴(分)
ChannelPromotionFee string `json:"channel_promotion_fee"` // 直播间站外推广(分)
ColonelServiceFee string `json:"colonel_service_fee"` // 团长服务费(分)
Commission string `json:"commission"` // 佣金(分)
FlowTypeDesc string `json:"flow_type_desc"` // 业务类型: 鲁班广告、值点商城、精选联盟、小店自卖等
GoodLearnChannelFee string `json:"good_learn_channel_fee"` // 渠道分成(分)
GoodsCount string `json:"goods_count"` // 商品数量
IsContainsRefundBeforeSettle string `json:"is_contains_refund_before_settle"` // 是否包含结算前退款 0不包含 1包含
OrderId string `json:"order_id"` // 子订单号
OrderTime string `json:"order_time"` // 下单时间
OrderType string `json:"order_type"` // 订单类型:普通订单、尾款(尾款已支付)、尾款(已退款)、定金(已退款)、定金(尾款已支付)、定金(尾款未支付)
OtherSharingAmount string `json:"other_sharing_amount"` // 其他分成(学浪)(分)
PackingAmount string `json:"packing_amount"` // 打包费,单位:分
PayTypeDesc string `json:"pay_type_desc"` // 货款结算对应的账户类型: “聚合账户”“微信”“支付宝”“微信升级前”“合众支付”等
PlatformCoupon string `json:"platform_coupon"` // 平台补贴(分)
PlatformServiceFee string `json:"platform_service_fee"` // 平台服务费(分)
PostAmount string `json:"post_amount"` // 运费(分)
ProductId string `json:"product_id"` // 商品id
RealPayAmount string `json:"real_pay_amount"` // 用户实付(分)
RefundBeforeSettle string `json:"refund_before_settle"` // 结算前退款金额(分) (结算前退货+运费-店铺券)
Remark string `json:"remark"` // 备注
RequestNo string `json:"request_no"` // 结算单号
SettleAmount string `json:"settle_amount"` // 商家实收(分)
SettleTime string `json:"settle_time"` // 结算时间
ShopCoupon string `json:"shop_coupon"` // 店铺券(分)
ShopOrderId string `json:"shop_order_id"` // 订单号
TotalAmount string `json:"total_amount"` // 订单总价(分)
TotalGoodsAmount string `json:"total_goods_amount"` // 商品总价(分)
TotalIncome string `json:"total_income"` // 收入合计(分)
TotalOutcome string `json:"total_outcome"` // 合计支出
TradeType string `json:"trade_type"` // 结算单类型 0 :已结算 1 :结算后退款-原路退回 2 保证金退款-支出退回 3 结算后退款-非原路退回
ZrPayPromotion string `json:"zr_pay_promotion"` // DOU分期营销补贴
ZtPayPromotion string `json:"zt_pay_promotion"` // 抖音支付补贴(分)
}

View File

@@ -1,5 +1,7 @@
package order_logisticsAddSinglePack_response
import doudian_sdk "git.rosy.net.cn/baseapi/platformapi/tiktok_shop/sdk-golang/core"
type OrderLogisticsAddSinglePackResponse struct {
doudian_sdk.BaseDoudianOpApiResponse
Data *OrderLogisticsAddSinglePackData `json:"data"`