Example #1
0
 /** Constructs a previously submitted charge from persisted data. */
 public Charge(string id, string restaurantId, string type, double? priority, string code,
     string tagId, string tagMode,
     string amountRuleType, int? amountRule, Coupon coupon, int? amount)
 {
     this.id = id;
     this.restaurantId = restaurantId;
     this.type = type;
     this.priority = priority;
     this.code = code;
     this.tagId = tagId;
     this.tagMode = tagMode;
     this.amountRuleType = amountRuleType;
     this.amountRule = amountRule;
     this.coupon = coupon;
     this.amount = amount;
 }
Example #2
0
 public CCoupon(Coupon coupon)
 {
     this.coupon = coupon;
 }
Example #3
0
 /** Constructs a new charge to be submitted. */
 public Charge(string type, double? priority, string code,
     string tagId, string tagMode,
     string amountRuleType, int? amountRule, Coupon coupon)
     : this(null, null, type, priority, code, tagId, tagMode, amountRuleType, amountRule, coupon, null)
 {
 }