1
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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"`
|
||||
}
|
||||
@@ -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"` // 抖音支付补贴(分)
|
||||
}
|
||||
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user