public PurchaseOrderCreateCommand(Account account, ContactInfo shippingInfo, ContactInfo billingInfo, CartItem[] items) { this.accountLogin = account.getLogin(); this.shippingInfo = shippingInfo; this.billingInfo = billingInfo; this.items = items; }
public static bool checkCreate(long id, Account account, ContactInfo shippingInfo, ContactInfo billingInfo, CartItem[] items, DateTime date) { if (account == null) return false; if (shippingInfo == null) return false; if (billingInfo == null) return false; if (items == null) return false; return true; }
public PurchaseOrder(long id, Account account, ContactInfo shippingInfo, ContactInfo billingInfo, CartItem[] items, DateTime date) { this.id = id; this.account = account; this.shippingInfo = shippingInfo; this.billingInfo = billingInfo; this.items = items; this.date = date; }