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.

29 lines
1.1 KiB
C#

namespace Amazon.SellingPartnerApiSDK.Misc
{
public class Region
{
private Region(string sellingRegion, string regionName, string hostUrl, string sandboxHostUrl)
{
SellingRegion = sellingRegion;
AwsRegion = regionName;
HostUrl = hostUrl;
SandboxHostUrl = sandboxHostUrl;
}
public string AwsRegion { get; set; }
public string SellingRegion { get; set; }
public string HostUrl { get; set; }
public string SandboxHostUrl { get; set; }
public static Region NorthAmerica => new Region("North America", "us-east-1",
"https://sellingpartnerapi-na.amazon.com",
"https://sandbox.sellingpartnerapi-na.amazon.com");
public static Region Europe => new Region("Europe", "eu-west-1", "https://sellingpartnerapi-eu.amazon.com",
"https://sandbox.sellingpartnerapi-eu.amazon.com");
public static Region FarEast => new Region("Far East", "us-west-2", "https://sellingpartnerapi-fe.amazon.com",
"https://sandbox.sellingpartnerapi-fe.amazon.com");
}
}