| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- using System.Text.Json.Serialization;
- using System.Collections.Generic;
- using Topsdk.Util;
- namespace Topsdk.Top.Ability371.Request;
- public class TaobaoTbkItemInfoUpgradeGetRequest : AbstractTopApiRequest
- {
- /*
- 商品ID。多个用","分割,一次最多查询20个
- */
- private string? itemId;
- /*
- ip地址,影响邮费获取,如果不传或者传入不准确,邮费无法精准提供
- */
- private string? ip;
- /*
- 1-动态ID转链场景,2-消费者比价场景,3-商品库导购场景(不填默认为1);场景id使用说明参考《淘宝客新商品ID升级》白皮书:https://www.yuque.com/taobaolianmengguanfangxiaoer/zmig94/tfyt0pahmlpzu2ud
- */
- private string? bizSceneId;
- /*
- 1-自购省,2-推广赚(代理模式专属ID,代理模式必填,非代理模式不用填写该字段)
- */
- private string? promotionType;
- /*
- 渠道关系ID,仅适用于渠道推广场景
- */
- private string? relationId;
- /*
- 商品库服务账户(场景id3权限对应的memberid)
- */
- private long? manageItemPubId;
- /*
- 是否获取单品淘礼金剩余数量,0-否,1-是,默认否(仅开通淘礼金权限媒体可查)
- */
- private long? getTljInfo;
- [JsonPropertyName("item_id")]
- public string? ItemId
- {
- get => itemId;
- set => this.itemId = value;
- }
- [JsonPropertyName("ip")]
- public string? Ip
- {
- get => ip;
- set => this.ip = value;
- }
- [JsonPropertyName("biz_scene_id")]
- public string? BizSceneId
- {
- get => bizSceneId;
- set => this.bizSceneId = value;
- }
- [JsonPropertyName("promotion_type")]
- public string? PromotionType
- {
- get => promotionType;
- set => this.promotionType = value;
- }
- [JsonPropertyName("relation_id")]
- public string? RelationId
- {
- get => relationId;
- set => this.relationId = value;
- }
- [JsonPropertyName("manage_item_pub_id")]
- public long? ManageItemPubId
- {
- get => manageItemPubId;
- set => this.manageItemPubId = value;
- }
- [JsonPropertyName("get_tlj_info")]
- public long? GetTljInfo
- {
- get => getTljInfo;
- set => this.getTljInfo = value;
- }
- public override IDictionary<string, string> ToRequestParam()
- {
- IDictionary<string, string> requestParam = new Dictionary<string, string>();
- if(this.itemId != null)
- {
- requestParam.Add("item_id",TopUtils.ConvertBasicType(this.itemId));
- }
- if(this.ip != null)
- {
- requestParam.Add("ip",TopUtils.ConvertBasicType(this.ip));
- }
- if(this.bizSceneId != null)
- {
- requestParam.Add("biz_scene_id",TopUtils.ConvertBasicType(this.bizSceneId));
- }
- if(this.promotionType != null)
- {
- requestParam.Add("promotion_type",TopUtils.ConvertBasicType(this.promotionType));
- }
- if(this.relationId != null)
- {
- requestParam.Add("relation_id",TopUtils.ConvertBasicType(this.relationId));
- }
- if(this.manageItemPubId != null)
- {
- requestParam.Add("manage_item_pub_id",TopUtils.ConvertBasicType(this.manageItemPubId));
- }
- if(this.getTljInfo != null)
- {
- requestParam.Add("get_tlj_info",TopUtils.ConvertBasicType(this.getTljInfo));
- }
- return requestParam;
- }
- public override IDictionary<string, TopFileItem> ToFileParam()
- {
- IDictionary<string, TopFileItem> fileParam = new Dictionary<string, TopFileItem>();
- return fileParam;
- }
- public override string GetApiCode()
- {
- return "taobao.tbk.item.info.upgrade.get";
- }
- }
|