/// <summary> /// Initializes a new instance of the <see cref="CreditCardPaymentDtoValidator" /> class. /// </summary> /// <param name="CreditCardNumber">CreditCardNumber (required).</param> /// <param name="ExpirationMonth">ExpirationMonth (required).</param> /// <param name="CardHolderName">CardHolderName.</param> /// <param name="CardVerificationNumber">CardVerificationNumber.</param> /// <param name="CreditCardType">CreditCardType.</param> /// <param name="ExpirationYear">ExpirationYear.</param> /// <param name="InternalPoNumber">InternalPoNumber.</param> /// <param name="PaymentType">PaymentType.</param> /// <param name="BillToAddress">BillToAddress.</param> public CreditCardPaymentDtoValidator(string CreditCardNumber = default(string), string ExpirationMonth = default(string), string CardHolderName = default(string), string CardVerificationNumber = default(string), string CreditCardType = default(string), string ExpirationYear = default(string), string InternalPoNumber = default(string), string PaymentType = default(string), AddressDtoValidator BillToAddress = default(AddressDtoValidator)) { // to ensure "CreditCardNumber" is required (not null) if (CreditCardNumber == null) { throw new InvalidDataException("CreditCardNumber is a required property for CreditCardPaymentDtoValidator and cannot be null"); } else { this.CreditCardNumber = CreditCardNumber; } // to ensure "ExpirationMonth" is required (not null) if (ExpirationMonth == null) { throw new InvalidDataException("ExpirationMonth is a required property for CreditCardPaymentDtoValidator and cannot be null"); } else { this.ExpirationMonth = ExpirationMonth; } this.CardHolderName = CardHolderName; this.CardVerificationNumber = CardVerificationNumber; this.CreditCardType = CreditCardType; this.ExpirationYear = ExpirationYear; this.InternalPoNumber = InternalPoNumber; this.PaymentType = PaymentType; this.BillToAddress = BillToAddress; }
/// <summary> /// Initializes a new instance of the <see cref="ShippingGroupDtoValidator" /> class. /// </summary> /// <param name="DeliveryInstructions">DeliveryInstructions.</param> /// <param name="DeliveryStatus">DeliveryStatus.</param> /// <param name="InternalDeliveryInstructions">InternalDeliveryInstructions.</param> /// <param name="SplInstructions">SplInstructions.</param> /// <param name="SplInstructionsCategory">SplInstructionsCategory.</param> /// <param name="ShipToAddress">ShipToAddress.</param> public ShippingGroupDtoValidator(string DeliveryInstructions = default(string), string DeliveryStatus = default(string), string InternalDeliveryInstructions = default(string), string SplInstructions = default(string), string SplInstructionsCategory = default(string), AddressDtoValidator ShipToAddress = default(AddressDtoValidator)) { this.DeliveryInstructions = DeliveryInstructions; this.DeliveryStatus = DeliveryStatus; this.InternalDeliveryInstructions = InternalDeliveryInstructions; this.SplInstructions = SplInstructions; this.SplInstructionsCategory = SplInstructionsCategory; this.ShipToAddress = ShipToAddress; }
/// <summary> /// Initializes a new instance of the <see cref="PurchaseOrderPaymentDtoValidator" /> class. /// </summary> /// <param name="PurchaseOrderNumber">PurchaseOrderNumber (required).</param> /// <param name="PaymentType">PaymentType.</param> /// <param name="BillToAddress">BillToAddress.</param> public PurchaseOrderPaymentDtoValidator(string PurchaseOrderNumber = default(string), string PaymentType = default(string), AddressDtoValidator BillToAddress = default(AddressDtoValidator)) { // to ensure "PurchaseOrderNumber" is required (not null) if (PurchaseOrderNumber == null) { throw new InvalidDataException("PurchaseOrderNumber is a required property for PurchaseOrderPaymentDtoValidator and cannot be null"); } else { this.PurchaseOrderNumber = PurchaseOrderNumber; } this.PaymentType = PaymentType; this.BillToAddress = BillToAddress; }