/// <summary>
        /// Initializes a new instance of the <see cref="QuoteCreateInput"/> class with a pickup and dropoff address.
        /// </summary>
        /// <param name="pickUpAddress">The pickup address.</param>
        /// <param name="dropoffAddress">The dropoff address.</param>
        public QuoteCreateInput(string pickUpAddress, string dropoffAddress)
        {
            var pickupDetail  = DeliveryBookingLocation.Create(pickUpAddress);
            var dropoffDetail = DeliveryBookingLocation.Create(dropoffAddress);

            Booking = DeliveryBooking.Create(pickupDetail, dropoffDetail);
        }
Пример #2
0
 private QuoteResponse(Quote quote, DeliveryBooking request)
 {
     Quote   = quote;
     Request = request;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="QuoteCreateInput"/> class with a dropoff address.  This would be for service-based merchants.
        /// </summary>
        /// <param name="dropoffAddress">The dropoff address.</param>
        public QuoteCreateInput(string dropoffAddress)
        {
            var dropoffDetail = DeliveryBookingLocation.Create(dropoffAddress);

            Booking = DeliveryBooking.Create(dropoffDetail);
        }