zhaojs
2023-09-27 74098f1401afe40f961d1d167bb18dd0a71c4d59
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
using System;
using System.Collections.Generic;
using System.Text;
 
namespace YouZanSDKStandard.Api.Domain
{
    public class YouZanProductUpdateDomain
    {
        public string alias { get; set; }
 
        public string item_id { get; set; }
    }
 
    public class YouZanProductUpdateReqDomain
    {
        /// <summary>
        /// 商品Id,有赞生成的店铺下商品唯一id,平台唯一
        /// </summary>
        public long item_id { get; set; }
 
        public string desc { get; set; }
 
        public string title { get; set; }
        /// <summary>
        ///  详情是否修改,会触发风控desc字段。默认是false
        /// </summary>
        public bool detail_edit { get; set; }
        /// <summary>
        /// 售后信息
        /// </summary>
        public YouZanProductUpdateReqPostSaleParam post_sale_param { get; set; }
        /// <summary>
        /// 商品sku
        /// </summary>
        public List<YouZanProductUpdateReqSkuList> sku_list { get; set; }
 
        /// <summary>
        /// 分组列表
        /// </summary>
        public List<long> tag_ids { get; set; }
    }
 
    public class YouZanProductUpdateReqSkuList
    {
        /// <summary>
        /// 商品sku价格,单位:分
        /// </summary>
        public long price { get; set; }
        /// <summary>
        /// 是否编辑(更新)SKU商品库存数量,如果要更新库存必传
        /// </summary>
        public bool is_sku_stock_num_edited { get; set; }
 
        public long sku_id { get; set; }
        /// <summary>
        /// 商品sku库存数量
        /// </summary>
        public long stock_num { get; set; }
    }
 
 
    public class YouZanProductUpdateReqPostSaleParam
    {
        /// <summary>
        /// 退款参数
        /// </summary>
        public RefundParam refund_param { get; set; }
        /// <summary>
        /// 商品是否支持换货:0. 不支持,1. 支持。仅支持实物商品,其他商品类型忽略
        /// </summary>
        public int is_support_barter { get; set; }
        /// <summary>
        /// 是否支持七天无理由退换货:false:不支持,true:支持,不传默认为false。仅支持实物商品,其他商品类型无需使用。
        /// </summary>
        public bool support_unconditional_return { get; set; }
 
    }
}