I am using the browser plugin. I have tried to pass the service type to SR along with the package and address info. I opened your csharp example and the example doesn't even work.
How do we make this work?
Your csharp code is as follows:
orders.Add(
new SalesOrder("1014", "01/17/2008", "Black T-Shirt size M", 7.95, 1, "Kelvin Green",
"ICT Consulting", "5900 Rainier Avenue S", "", "Seattle", "WA", "98118", "US",
"kelv@myspace.com", "UPS", "12", "UPS 3 Day Select"));
With "UPS" as the carrier, "12" as the service type, "UPS 3 Day Select" as the text version of the service
However - when these values are executed (salesorder.cs - getshipment) they come up with the following values:
ShipTransaction.Shipment.Carrier = TCarrierType.USPS;
This evaluates to "USPS"
ShipTransaction.Shipment.UPSServiceType = TUPSServiceEnumExtention.FromHuman( ShipViaService );
This evaluates to "ShipRush.SDK.Proxies.TUPSService.noservicesavaila ble" even though "ShipViaService" = "12".
Is my understanding of the process wrong? I assumed the "12" above should relate to the TUPSService enum value.
When I look at "TUPSservice" it's enum is as follows:
public enum TUPSService
{
[XmlEnum("01")]
[SupportedVersion(30758)]
UPSNextDayAir = 0,
[SupportedVersion(30758)]
[XmlEnum("14")]
UPSNextDayAirEarlyAM = 1,
[SupportedVersion(30758)]
[XmlEnum("13")]
UPSNextDayAirSaver = 2,
[SupportedVersion(30758)]
[XmlEnum("02")]
UPS2ndDayAir = 3,
[XmlEnum("59")]
[SupportedVersion(30758)]
UPS2ndDayAirAM = 4,
[SupportedVersion(30758)]
[XmlEnum("12")]
UPS3DaySelect = 5,
and so on.
How do we make this work?
Your csharp code is as follows:
orders.Add(
new SalesOrder("1014", "01/17/2008", "Black T-Shirt size M", 7.95, 1, "Kelvin Green",
"ICT Consulting", "5900 Rainier Avenue S", "", "Seattle", "WA", "98118", "US",
"kelv@myspace.com", "UPS", "12", "UPS 3 Day Select"));
With "UPS" as the carrier, "12" as the service type, "UPS 3 Day Select" as the text version of the service
However - when these values are executed (salesorder.cs - getshipment) they come up with the following values:
ShipTransaction.Shipment.Carrier = TCarrierType.USPS;
This evaluates to "USPS"
ShipTransaction.Shipment.UPSServiceType = TUPSServiceEnumExtention.FromHuman( ShipViaService );
This evaluates to "ShipRush.SDK.Proxies.TUPSService.noservicesavaila ble" even though "ShipViaService" = "12".
Is my understanding of the process wrong? I assumed the "12" above should relate to the TUPSService enum value.
When I look at "TUPSservice" it's enum is as follows:
public enum TUPSService
{
[XmlEnum("01")]
[SupportedVersion(30758)]
UPSNextDayAir = 0,
[SupportedVersion(30758)]
[XmlEnum("14")]
UPSNextDayAirEarlyAM = 1,
[SupportedVersion(30758)]
[XmlEnum("13")]
UPSNextDayAirSaver = 2,
[SupportedVersion(30758)]
[XmlEnum("02")]
UPS2ndDayAir = 3,
[XmlEnum("59")]
[SupportedVersion(30758)]
UPS2ndDayAirAM = 4,
[SupportedVersion(30758)]
[XmlEnum("12")]
UPS3DaySelect = 5,
and so on.