/// <summary> /// Initializes a BillingInfo object /// </summary> /// <param name="billingAccountNumber">Account number which will be billed for this shipment</param> /// <param name="shipperAccountNumber">Account number of the shipper</param> /// <param name="payer">Who will pay for the shipment (Shipper, Receiver, 3rd party)</param> public BillingInfo(string billingAccountNumber , string shipperAccountNumber , Enums.AccountRole payer , string dutyAccountNumber = "" , bool overrideBillingService = true) { this.ShipperAccount = shipperAccountNumber; this.PaiedBy = payer; this.BillToAccount = billingAccountNumber; this.DutyAndTaxPayerAccountNumber = (string.IsNullOrWhiteSpace(dutyAccountNumber) ? string.Empty : dutyAccountNumber); this.NeverOverrideBillingService = (overrideBillingService ? Enums.YesNo.No : Enums.YesNo.Yes); }
/// <summary> /// Initializes a BillingInfo object /// </summary> /// <param name="billingAccountNumber">Account number which will be billed for this shipment</param> /// <param name="shipperAccountNumber">Account number of the shipper</param> /// <param name="payer">Who will pay for the shipment (Shipper, Receiver, 3rd party)</param> public BillilngInfo(string billingAccountNumber, string shipperAccountNumber, Enums.AccountRole payer) { this.ShipperAccount = shipperAccountNumber; this.PaiedBy = payer; this.BillToAccount = billingAccountNumber; }