You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1001 B
C#

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; }
/// <summary>
/// 是否把返回结果读取为字符串
/// <para>默认不读取,直接流接收</para>
/// </summary>
public bool ReadResponseAsString { get; set; }
/// <summary>
/// 初始化凭证信息
/// </summary>
/// <param name="isDebugMode">是否测试模式</param>
public FedexCredential(bool isDebugMode = false)
{
IsDebugMode = isDebugMode;
Host = isDebugMode ? FedexAPIClientMisc.SANDBOX_URL : FedexAPIClientMisc.PRODUCTION_URL;
}
}
}