namespace TradeManageNew.APIClients.FedexApi { public class FedexCredential { public string ClientId { get; set; } public string ClientSecret { get; set; } public string ChildKey { get; set; } public string ChildSecret { get; set; } public string AccountNumber { get; set; } public string Host { get; set; } public bool IsDebugMode { get; set; } /// /// 是否把返回结果读取为字符串 /// 默认不读取,直接流接收 /// public bool ReadResponseAsString { get; set; } /// /// 初始化凭证信息 /// /// 是否测试模式 public FedexCredential(bool isDebugMode = false) { IsDebugMode = isDebugMode; Host = isDebugMode ? FedexAPIClientMisc.SANDBOX_URL : FedexAPIClientMisc.PRODUCTION_URL; } } }