Documentation
¶
Index ¶
- type ActualAmount
- type AfterSaleDetailData
- type AfterSaleDetailResponse
- type AfterSaleInfo
- type AfterSaleServiceTag
- type AfterSaleServiceTagItem
- type AfterSaleShopRemarksItem
- type AftersaleTagsItem
- type AllEvidenceItem
- type ArbitrateEvidence
- type ArbitrateEvidenceTmpl
- type ArbitrateInfo
- type CheckPrice
- type City
- type DeductionPriceDetailItem
- type DescKvsItem
- type Exchange
- type ExchangeSkuInfo
- type GivenSkuDetailsItem
- type InsuranceTagsItem
- type LogisticsInfo
- type OrderInfo
- type OrderItem
- type OriginAmount
- type PlaceholderItem
- type PostAddress
- type PriceProtectionDetail
- type ProcessInfo
- type Province
- type ReasonSecondLabelsItem
- type RecordLogsListItem
- type RefundBearerListItem
- type RefundDetail
- type Resend
- type Return
- type ReturnAddress
- type SkuOrderInfosItem
- type SkuSpecItem
- type StandardPrice
- type Street
- type TagsItem
- type Town
- type ValueAddedServicesItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActualAmount ¶
type AfterSaleDetailData ¶
type AfterSaleDetailData struct { // 售后单及相关信息 ProcessInfo *ProcessInfo `json:"process_info"` // 售后单关联订单信息 OrderInfo *OrderInfo `json:"order_info"` }
type AfterSaleDetailResponse ¶
type AfterSaleDetailResponse struct { doudian_sdk.BaseDoudianOpApiResponse Data *AfterSaleDetailData `json:"data"` }
type AfterSaleInfo ¶
type AfterSaleInfo struct { // 售后单ID AfterSaleId int64 `json:"after_sale_id"` // 售后状态:6-售后申请;7-售后退货中;8-【补寄\维修返回:售后待商家发货】;11-售后已发货;12-售后成功;13-【换货\补寄\维修返回:售后商家已发货,待用户收货】; 14-【换货\补寄\维修返回:售后用户已收货】 ;27-拒绝售后申请;28-售后失败;29-售后退货拒绝;51-订单取消成功;53-逆向交易已完成; AfterSaleStatus int64 `json:"after_sale_status"` // 售后状态文案 AfterSaleStatusDesc string `json:"after_sale_status_desc"` // 退款方式 RefundType int64 `json:"refund_type"` // 退款方式文案 RefundTypeText string `json:"refund_type_text"` // 退款状态;1-待退款;2-退款中;3-退款成功;4退款失败;5追缴成功; RefundStatus int64 `json:"refund_status"` // 售后总金额(含运费) RefundTotalAmount int64 `json:"refund_total_amount"` // 售后运费 RefundPostAmount int64 `json:"refund_post_amount"` // 退款补贴总金额 RefundPromotionAmount int64 `json:"refund_promotion_amount"` // 售后单申请时间 ApplyTime int64 `json:"apply_time"` // 售后单更新时间 UpdateTime int64 `json:"update_time"` // 申请原因 Reason string `json:"reason"` // 原因码;通过【afterSale/rejectReasonCodeList】接口获取 ReasonCode int64 `json:"reason_code"` // 售后类型: 0-售后退货退款;1-售后仅退款;2-发货前退款;3-换货;4-系统取消;5-用户取消;6-价保;7-补寄;8-维修 AfterSaleType int64 `json:"after_sale_type"` // 售后单类型文案 AfterSaleTypeText string `json:"after_sale_type_text"` // 申请描述 ReasonRemark string `json:"reason_remark"` // 买家申请退款图片凭证;仅支持图片,最大返回8张图片。 Evidence []string `json:"evidence"` // 用户申请售后件数 AfterSaleApplyCount int64 `json:"after_sale_apply_count"` // 用户需退回件数, 数值为用户申请售后件数 - 商家未发货件数 NeedReturnCount int64 `json:"need_return_count"` // 平台需要回收的金额(分) DeductionAmount int64 `json:"deduction_amount"` // 作废的券ID DisableCouponId string `json:"disable_coupon_id"` // 平台优惠退回金额 PlatformDiscountReturnAmount int64 `json:"platform_discount_return_amount"` // 平台优惠退回状态,枚举:0:待退补贴;1:退补贴成功;2:退补贴失败 PlatformDiscountReturnStatus int64 `json:"platform_discount_return_status"` // 达人优惠退回金额 KolDiscountReturnAmount int64 `json:"kol_discount_return_amount"` // 达人优惠退回状态,枚举:0:待退补贴;1:退补贴成功;2:退补贴失败 KolDiscountReturnStatus int64 `json:"kol_discount_return_status"` // 换货、补寄时的收货人名字(只有换货、补寄时,这个字段才会有值),此字段已加密,使用前需要解密 PostReceiver string `json:"post_receiver"` // 换货、补寄时的收货人的联系电话(只有换货、补寄时,这个字段才会有值),此字段已加密,使用前需要解密 PostTelSec string `json:"post_tel_sec"` // 换货、补寄时的收货四级地址(只有换货、补寄时,这个字段才会有值) PostAddress *PostAddress `json:"post_address"` // 物流异常风控编码 RiskDecsisonCode int64 `json:"risk_decsison_code"` // 物流异常风控理由 RiskDecsisonReason string `json:"risk_decsison_reason"` // 物流异常风控描述 RiskDecsisonDescription string `json:"risk_decsison_description"` // 退货地址 ReturnAddress *ReturnAddress `json:"return_address"` // 实际退款金额;单位:分 RealRefundAmount int64 `json:"real_refund_amount"` // 买家是否收到货,0-表示未收到货;1-表示收到货 GotPkg int64 `json:"got_pkg"` // 逾期时间 StatusDeadline int64 `json:"status_deadline"` // 退货地址ID ReturnAddressId int64 `json:"return_address_id"` // 换货SKU信息 ExchangeSkuInfo *ExchangeSkuInfo `json:"exchange_sku_info"` // 运费优惠退回金额 PostDiscountReturnAmount int64 `json:"post_discount_return_amount"` // 运费优惠退回状态,枚举:0:待退补贴;1:退补贴成功;2:退补贴失败 PostDiscountReturnStatus int64 `json:"post_discount_return_status"` // 部分退状态,0为全额退款,1为部分退 PartType int64 `json:"part_type"` // 用户申请售后选择的二级原因标签 ReasonSecondLabels []ReasonSecondLabelsItem `json:"reason_second_labels"` // 卡券商品申请退款的张数 RefundVoucherNum int64 `json:"refund_voucher_num"` // 多次券商品申请退款的次数,对于单次券,此字段值与refund_voucher_num相同 RefundVoucherTimes int64 `json:"refund_voucher_times"` // 退金币金额 GoldCoinReturnAmount int64 `json:"gold_coin_return_amount"` // 退款失败文案 RefundFailReason string `json:"refund_fail_reason"` // 售后标签 AftersaleTags []AftersaleTagsItem `json:"aftersale_tags"` // 门店ID StoreId string `json:"store_id"` // 门店名称 StoreName string `json:"store_name"` // 售后订单类型,枚举为-1(历史订单),1(商品单),2(店铺单) AfterSaleOrderType int64 `json:"after_sale_order_type"` // 售后打包费退款金额,单位:分,商家退给用户打包费后,该字段则有值;仅小时达店铺使用; RefundPackingChargeAmount int64 `json:"refund_packing_charge_amount"` // 商家优惠退回金额(包含供应商优惠退回金额) ShopDiscountReturnAmount int64 `json:"shop_discount_return_amount"` // 售后子类型:8001-以换代修 AfterSaleSubType int64 `json:"after_sale_sub_type"` // contains filtered or unexported fields }
type AfterSaleServiceTag ¶
type AfterSaleServiceTag struct { // 售后服务标签 AfterSaleServiceTag []AfterSaleServiceTagItem `json:"after_sale_service_tag"` }
type AfterSaleServiceTagItem ¶
type AftersaleTagsItem ¶
type AftersaleTagsItem struct { // 标签名称 TagDetail string `json:"tag_detail"` // 标签关键字 TagDetailEn string `json:"tag_detail_en"` // 标签悬浮文案的占位符定义 TagDetailText string `json:"tag_detail_text"` // 标签跳转链接 TagLinkUrl string `json:"tag_link_url"` // 标签悬浮文案的占位符定义 Placeholder map[string]PlaceholderItem `json:"placeholder"` }
type AllEvidenceItem ¶
type ArbitrateEvidence ¶
type ArbitrateEvidenceTmpl ¶
type ArbitrateInfo ¶
type ArbitrateInfo struct { // 仲裁单id ArbitrateId string `json:"arbitrate_id"` // 仲裁状态 ArbitrateStatus int64 `json:"arbitrate_status"` // 是否需要上传凭证 IsRequiredEvidence bool `json:"is_required_evidence"` // 仲裁截止时间 ArbitrateStatusDeadline string `json:"arbitrate_status_deadline"` // 仲裁原因 ArbitrateOpinion string `json:"arbitrate_opinion"` // 仲裁结果 ArbitrateConclusion int64 `json:"arbitrate_conclusion"` // 仲裁单创建时间 ArbitrateCreateTime int64 `json:"arbitrate_create_time"` // 仲裁单更新时间 ArbitrateUpdateTime int64 `json:"arbitrate_update_time"` // 凭证示例 ArbitrateEvidenceTmpl *ArbitrateEvidenceTmpl `json:"arbitrate_evidence_tmpl"` // 仲裁证据 ArbitrateEvidence *ArbitrateEvidence `json:"arbitrate_evidence"` // 仲裁责任方 ArbitrateBlame int64 `json:"arbitrate_blame"` }
type CheckPrice ¶
type CheckPrice struct { // 总价 ActualAmount *ActualAmount `json:"actual_amount"` // 原价 OriginAmount *OriginAmount `json:"origin_amount"` // 减数明细 DeductionPriceDetail []DeductionPriceDetailItem `json:"deduction_price_detail"` }
type DescKvsItem ¶
type ExchangeSkuInfo ¶
type ExchangeSkuInfo struct { // 商品skuid SkuId string `json:"sku_id"` // 商品编码 Code string `json:"code"` // 替换数量 Num int64 `json:"num"` // 商家编号 OutSkuId string `json:"out_sku_id"` // 区域库存仓ID OutWarehouseId string `json:"out_warehouse_id"` // sku外部供应商编码供应商ID SupplierId string `json:"supplier_id"` // 商品图片url Url string `json:"url"` // 商品名称 Name string `json:"name"` // 换货商品的价格,单位分 Price string `json:"price"` // sku规格信息 SpecDesc string `json:"spec_desc"` }
type GivenSkuDetailsItem ¶
type InsuranceTagsItem ¶
type LogisticsInfo ¶
type OrderInfo ¶
type OrderInfo struct { // 店铺单ID ShopOrderId int64 `json:"shop_order_id"` // sku单信息 SkuOrderInfos []SkuOrderInfosItem `json:"sku_order_infos"` }
type OrderItem ¶
type OrderItem struct { // 物流单号 TrackingNo string `json:"tracking_no"` // 物流公司名称 CompanyName string `json:"company_name"` // 物流公司编码 CompanyCode string `json:"company_code"` // 物流状态到达时间 LogisticsTime int64 `json:"logistics_time"` // 正向物流状态 LogisticsState int64 `json:"logistics_state"` // 增值服务标签 ValueAddedServices []ValueAddedServicesItem `json:"value_added_services"` }
type OriginAmount ¶
type PlaceholderItem ¶
type PostAddress ¶
type PostAddress struct { // 省 Province *Province `json:"province"` // 市 City *City `json:"city"` // 县 Town *Town `json:"town"` // 地址详情,此字段已加密,使用前需要解密 Detail string `json:"detail"` // 收件地址标志物 Landmark string `json:"landmark"` // 街道 Street *Street `json:"street"` // contains filtered or unexported fields }
type PriceProtectionDetail ¶
type PriceProtectionDetail struct { // 价保文案标题 Title string `json:"title"` // 价保计算公式 PriceProtectionFormulas string `json:"price_protection_formulas"` // 基准价 StandardPrice *StandardPrice `json:"standard_price"` // 核准价 CheckPrice *CheckPrice `json:"check_price"` // 退款明细 RefundDetail *RefundDetail `json:"refund_detail"` // 钱款承担方 RefundBearerList []RefundBearerListItem `json:"refund_bearer_list"` // 平台价保补贴商家金额进度状态,1表示成功 PlatformToMerchantRefundStatus int64 `json:"platform_to_merchant_refund_status"` // 平台价保回收金额 PlatformRecycleAmount int64 `json:"platform_recycle_amount"` }
type ProcessInfo ¶
type ProcessInfo struct { // 售后单信息 AfterSaleInfo *AfterSaleInfo `json:"after_sale_info"` // 仲裁信息 ArbitrateInfo *ArbitrateInfo `json:"arbitrate_info"` // 售后标签 AfterSaleServiceTag *AfterSaleServiceTag `json:"after_sale_service_tag"` // 物流信息 LogisticsInfo *LogisticsInfo `json:"logistics_info"` // 售后备注 AfterSaleShopRemarks []AfterSaleShopRemarksItem `json:"after_sale_shop_remarks"` // 价保详情 PriceProtectionDetail *PriceProtectionDetail `json:"price_protection_detail"` // 协商记录 RecordLogsList []RecordLogsListItem `json:"record_logs_list"` }
type ReasonSecondLabelsItem ¶
type RecordLogsListItem ¶
type RecordLogsListItem struct { // 操作人 Operator string `json:"operator"` // 操作时间 Time string `json:"time"` // 操作内容 Text string `json:"text"` // 图片列表 Images []string `json:"images"` // 额外信息 DescKvs []DescKvsItem `json:"desc_kvs"` // 动作 Action string `json:"action"` // 角色 Role int64 `json:"role"` // 所有类型凭证 AllEvidence []AllEvidenceItem `json:"all_evidence"` }
type RefundBearerListItem ¶
type RefundDetail ¶
type RefundDetail struct { // 总价 ActualAmount *ActualAmount `json:"actual_amount"` // 原价 OriginAmount *OriginAmount `json:"origin_amount"` // 减数明细 DeductionPriceDetail []DeductionPriceDetailItem `json:"deduction_price_detail"` }
type ReturnAddress ¶
type SkuOrderInfosItem ¶
type SkuOrderInfosItem struct { // sku单ID SkuOrderId int64 `json:"sku_order_id"` // 订单状态 OrderStatus int64 `json:"order_status"` // 买家实付金额(分) PayAmount int64 `json:"pay_amount"` // 买家购买运费(分) PostAmount int64 `json:"post_amount"` // 订单件数 ItemQuantity int64 `json:"item_quantity"` // 订单创建时间 CreateTime int64 `json:"create_time"` // 购买税费(分) TaxAmount int64 `json:"tax_amount"` // 是否为跨境业务 IsOverseaOrder int64 `json:"is_oversea_order"` // 商品名称 ProductName string `json:"product_name"` // 商品ID ProductId int64 `json:"product_id"` // 商品图片 ProductImage string `json:"product_image"` // 商品标签 Tags []TagsItem `json:"tags"` // 商品规格信息 SkuSpec []SkuSpecItem `json:"sku_spec"` // 商家sku自定义编码 ShopSkuCode string `json:"shop_sku_code"` // skuID SkuId int64 `json:"sku_id"` // sku商品总原价(不含优惠) ItemSumAmount int64 `json:"item_sum_amount"` // 商品实际支付金额 SkuPayAmount int64 `json:"sku_pay_amount"` // 优惠总金额 PromotionAmount int64 `json:"promotion_amount"` // 支付方式 PayType int64 `json:"pay_type"` // 保险及其状态 InsuranceTags []InsuranceTagsItem `json:"insurance_tags"` // 商品单对应的售后数量 AfterSaleItemCount int64 `json:"after_sale_item_count"` // 赠品信息 GivenSkuDetails []GivenSkuDetailsItem `json:"given_sku_details"` }
type SkuSpecItem ¶
type StandardPrice ¶
type StandardPrice struct { // 总价 ActualAmount *ActualAmount `json:"actual_amount"` // 原价 OriginAmount *OriginAmount `json:"origin_amount"` // 减数明细 DeductionPriceDetail []DeductionPriceDetailItem `json:"deduction_price_detail"` }
type ValueAddedServicesItem ¶
Click to show internal directories.
Click to hide internal directories.