示例#1
0
 /// <summary>
 /// Set the Amazon client credentials for posting feeds
 /// </summary>
 /// <param name="credential">An object contains the Amazon credentials</param>
 public static void SetCredentials(AmazonCredentialDto credential)
 {
     MerchantId        = credential.MerchantId;
     MarketplaceIdList = new List <string> {
         credential.MarketplaceId
     };
     AccessKeyId = credential.AccessKeyId;
     SecretKey   = credential.SecretKey;
 }
示例#2
0
        private CredentialDto createCredentialModel(string credentialType)
        {
            CredentialDto model = null;

            if (credentialType == CredentialType.EBAY)
            {
                model = new eBayCredentialDto();
            }
            else if (credentialType == CredentialType.AMAZON)
            {
                model = new AmazonCredentialDto();
            }
            else if (credentialType == CredentialType.SHIP_STATION)
            {
                model = new ShipStationCredentialDto();
            }
            else if (credentialType == CredentialType.BIG_COMMERCE)
            {
                model = new BigCommerceCredentialDto();
            }

            return(model);
        }