Documentation ¶
Index ¶
- type AfterSaleAddressDetail
- type AfterSaleOperateParam
- type AfterSaleOperateRequest
- func (c *AfterSaleOperateRequest) Execute(accessToken *doudian_sdk.AccessToken) (*afterSale_operate_response.AfterSaleOperateResponse, error)
- func (c *AfterSaleOperateRequest) GetParamObject() interface{}
- func (c *AfterSaleOperateRequest) GetParams() *AfterSaleOperateParam
- func (c *AfterSaleOperateRequest) GetUrlPath() string
- type EvidenceItem
- type ItemsItem
- type Logistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AfterSaleAddressDetail ¶
type AfterSaleAddressDetail struct { // 省;使用【/address/getProvince】接口获取 ProvinceName *string `json:"province_name"` // 市;需要使用【/address/getAreasByProvince】接口响应参数获取 CityName *string `json:"city_name"` // 区;需要使用【/address/getAreasByProvince】接口响应参数获取 TownName *string `json:"town_name"` // 地址详情 Detail *string `json:"detail"` // 收件人 UserName *string `json:"user_name"` // 联系电话,支持手机号和固定电话;固定电话需要传入区号。注意:区号和号码之间一定要传入“-”传值示例:0571-1234567;否则会报错电话号码不合法。 Mobile *string `json:"mobile"` // 街道名称 StreetName *string `json:"street_name"` // 省id;使用【/address/getProvince】接口获取 ProvinceId *int64 `json:"province_id"` // 市id;需要使用【/address/getAreasByProvince】接口响应参数获取 CityId *int64 `json:"city_id"` // 区id;需要使用【/address/getAreasByProvince】接口响应参数获取 TownId *int64 `json:"town_id"` // 街道id;需要使用【/address/getAreasByProvince】接口响应参数获取 StreetId *int64 `json:"street_id"` }
type AfterSaleOperateParam ¶
type AfterSaleOperateRequest ¶
type AfterSaleOperateRequest struct { doudian_sdk.BaseDoudianOpApiRequest Param *AfterSaleOperateParam }
func New ¶
func New() *AfterSaleOperateRequest
func (*AfterSaleOperateRequest) Execute ¶
func (c *AfterSaleOperateRequest) Execute(accessToken *doudian_sdk.AccessToken) (*afterSale_operate_response.AfterSaleOperateResponse, error)
func (*AfterSaleOperateRequest) GetParamObject ¶
func (c *AfterSaleOperateRequest) GetParamObject() interface{}
func (*AfterSaleOperateRequest) GetParams ¶
func (c *AfterSaleOperateRequest) GetParams() *AfterSaleOperateParam
func (*AfterSaleOperateRequest) GetUrlPath ¶
func (c *AfterSaleOperateRequest) GetUrlPath() string
type EvidenceItem ¶
type ItemsItem ¶
type ItemsItem struct { // 售后单号 AftersaleId string `json:"aftersale_id"` // 操作原因,拒绝操作必填 Reason *string `json:"reason"` // 操作评论,拒绝操作必填 Remark *string `json:"remark"` // 操作凭证编码,当【afterSale/rejectReasonCodeList】接口响应参数evidence_need=Y时,该参数必填;使用【afterSale/rejectReasonCodeList】接口获取响应参数中的reject_reason_code字段。 Evidence []EvidenceItem `json:"evidence"` // 同意退货/同意换货物流信息,当前type=101,301,311是该集合需要传值。 Logistics *Logistics `json:"logistics"` // 售后拒绝原因码,拒绝时必填填。通过/afterSale/rejectReasonCodeList获取 RejectReasonCode *int64 `json:"reject_reason_code"` // 用于校验售后单版本是不是最新的版本,防止售后单变更且open侧审核通过导致资损。不传就不校验,传入后就会校验isv传入的售后单版本是不是最新的版本。 需要使用【/afterSale/Detail】接口返回的update_time字段或使用售后消息推送中的update_time字段 UpdateTime *int64 `json:"update_time"` }
type Logistics ¶
type Logistics struct { // 物流公司code,使用【/order/logisticsCompanyList】接口获取;type=311仅换货时需要填入 CompanyCode *string `json:"company_code"` // 物流单号(快递单号),仅type=311仅换货时需要填入 LogisticsCode *string `json:"logistics_code"` // 收件地址id(推荐使用),必须通过【/address/list】获取【address_id】填入。和after_sale_address_detail字段集合二选一; ReceiverAddressId *int64 `json:"receiver_address_id"` // 已废弃字段,(隐藏时间20220610)发件地址id SenderAddressId *int64 `json:"sender_address_id"` // 商家同意退货/同意换货收件地址详情(不推荐使用);和receiver_address_id字段二选一(推荐使用);商家可以自定义退货地址。 AfterSaleAddressDetail *AfterSaleAddressDetail `json:"after_sale_address_detail"` }
Click to show internal directories.
Click to hide internal directories.