Example #1
0
 /// <summary>
 /// Creates return label for existed shipping label
 /// </summary>
 public Label CreateReturnLabel(IShippingContext context, Shipment shipment, object labelID)
 {
     return m_ShippingSystem.CreateReturnLabel(this, context, shipment, labelID);
 }
Example #2
0
 public abstract Label CreateReturnLabel(ShippingSession session, IShippingContext context, Shipment shipment, object labelID);
Example #3
0
 /// <summary>
 /// Creates shipping label
 /// </summary>
 public Label CreateLabel(IShippingContext context, Shipment shipment)
 {
     return m_ShippingSystem.CreateLabel(this, context, shipment);
 }
Example #4
0
 public abstract Label CreateLabel(ShippingSession session, IShippingContext context, Shipment shipment);
Example #5
0
 /// <summary>
 /// Creates return label for existed shipping label
 /// </summary>
 public Label CreateReturnLabel(IShippingContext context, Shipment shipment, object labelID)
 {
     return(m_ShippingSystem.CreateReturnLabel(this, context, shipment, labelID));
 }
Example #6
0
 /// <summary>
 /// Creates shipping label
 /// </summary>
 public Label CreateLabel(IShippingContext context, Shipment shipment)
 {
     return(m_ShippingSystem.CreateLabel(this, context, shipment));
 }
Example #7
0
 public abstract ShippingRate EstimateShippingCost(ShippingSession session, IShippingContext context, Shipment shipment);
Example #8
0
        private Shipment getDefaultShipment()
        {
            var result = new Shipment
              {
            Length = 10,
            Width = 5.5M,
            Height = 3,
            DistanceUnit = DistanceUnit.In,
            Weight = 2.3M,
            MassUnit = MassUnit.Lb,
            FromAddress = new Address
            {
              Name = "J. London",
              Country = "US",
              State = "NY",
              City = "New York",
              EMail = "*****@*****.**",
              Street1 = "183 Canal Street",
              PostalCode = "10013",
              Phone = "(111) 222-33-44"
            },
            ToAddress = new Address
            {
              Name = "A. Einstein",
              Country = "US",
              State = "CA",
              City = "Los Angeles",
              EMail = "*****@*****.**",
              Street1 = "1782 West 25th Street",
              PostalCode = "90018",
              Phone = "(111) 333-44-55"
            }
              };

              return result;
        }