/// <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);
        }
Esempio n. 2
0
 private DeliveryBooking(string reference, string deliveryInstructions, bool?itemsRequirePurchase, DateTime?pickupTime, DeliveryBookingLocation pickupDetail, TimeFrame dropoffWindow, DeliveryBookingLocation dropoffDetail, decimal?customerFee, string customerReference, decimal?tax, bool?taxInclusivePrice, decimal?tip, decimal?driverFeePercentage, string driverMatchCode, int?deliverySequence, string deliveryRouteIdentifier, string template)
 {
     _reference            = reference;
     _deliveryInstructions = deliveryInstructions;
     ItemsRequirePurchase  = itemsRequirePurchase;
     PickupTime            = pickupTime;
     PickupDetail          = pickupDetail;
     DropoffWindow         = dropoffWindow;
     DropoffDetail         = dropoffDetail;
     CustomerFee           = customerFee;
     _customerReference    = customerReference;
     Tax = tax;
     TaxInclusivePrice = taxInclusivePrice;
     Tip = tip;
     DriverFeePercentage     = driverFeePercentage;
     DriverMatchCode         = driverMatchCode;
     DeliverySequence        = deliverySequence;
     DeliveryRouteIdentifier = deliveryRouteIdentifier;
     Template = template;
 }
Esempio n. 3
0
 private DeliveryBooking(DeliveryBookingLocation pickupDetail, DeliveryBookingLocation dropoffDetail)
     : this(null, null, false, null, pickupDetail, null, dropoffDetail, null, null, null, null, null, null, null, null, null, null)
 {
 }
        /// <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);
        }