Skip to content

Instantly share code, notes, and snippets.

@danveloper
Last active December 12, 2015 10:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danveloper/4760232 to your computer and use it in GitHub Desktop.
Save danveloper/4760232 to your computer and use it in GitHub Desktop.
public enum PaymentVendor {
INTERNAL, STRIPE;
}
public class ProductOrder {
Account account;
Address shippingAddress;
PaymentMethod paymentMethod;
double taxRate = 0.0;
PaymentVendor paymentVendor = PaymentVendor.STRIPE;
boolean firstOrderThankYou = false;
List<Product> products;
List<Coupon> coupons;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment