예제 #1
0
 public LoyaltyEvent(string id,
                     string type,
                     string createdAt,
                     string loyaltyAccountId,
                     string source,
                     Models.LoyaltyEventAccumulatePoints accumulatePoints = null,
                     Models.LoyaltyEventCreateReward createReward         = null,
                     Models.LoyaltyEventRedeemReward redeemReward         = null,
                     Models.LoyaltyEventDeleteReward deleteReward         = null,
                     Models.LoyaltyEventAdjustPoints adjustPoints         = null,
                     string locationId = null,
                     Models.LoyaltyEventExpirePoints expirePoints = null,
                     Models.LoyaltyEventOther otherEvent          = null)
 {
     Id               = id;
     Type             = type;
     CreatedAt        = createdAt;
     AccumulatePoints = accumulatePoints;
     CreateReward     = createReward;
     RedeemReward     = redeemReward;
     DeleteReward     = deleteReward;
     AdjustPoints     = adjustPoints;
     LoyaltyAccountId = loyaltyAccountId;
     LocationId       = locationId;
     Source           = source;
     ExpirePoints     = expirePoints;
     OtherEvent       = otherEvent;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoyaltyEvent"/> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="type">type.</param>
 /// <param name="createdAt">created_at.</param>
 /// <param name="loyaltyAccountId">loyalty_account_id.</param>
 /// <param name="source">source.</param>
 /// <param name="accumulatePoints">accumulate_points.</param>
 /// <param name="createReward">create_reward.</param>
 /// <param name="redeemReward">redeem_reward.</param>
 /// <param name="deleteReward">delete_reward.</param>
 /// <param name="adjustPoints">adjust_points.</param>
 /// <param name="locationId">location_id.</param>
 /// <param name="expirePoints">expire_points.</param>
 /// <param name="otherEvent">other_event.</param>
 public LoyaltyEvent(
     string id,
     string type,
     string createdAt,
     string loyaltyAccountId,
     string source,
     Models.LoyaltyEventAccumulatePoints accumulatePoints = null,
     Models.LoyaltyEventCreateReward createReward         = null,
     Models.LoyaltyEventRedeemReward redeemReward         = null,
     Models.LoyaltyEventDeleteReward deleteReward         = null,
     Models.LoyaltyEventAdjustPoints adjustPoints         = null,
     string locationId = null,
     Models.LoyaltyEventExpirePoints expirePoints = null,
     Models.LoyaltyEventOther otherEvent          = null)
 {
     this.Id               = id;
     this.Type             = type;
     this.CreatedAt        = createdAt;
     this.AccumulatePoints = accumulatePoints;
     this.CreateReward     = createReward;
     this.RedeemReward     = redeemReward;
     this.DeleteReward     = deleteReward;
     this.AdjustPoints     = adjustPoints;
     this.LoyaltyAccountId = loyaltyAccountId;
     this.LocationId       = locationId;
     this.Source           = source;
     this.ExpirePoints     = expirePoints;
     this.OtherEvent       = otherEvent;
 }
예제 #3
0
 public Builder OtherEvent(Models.LoyaltyEventOther otherEvent)
 {
     this.otherEvent = otherEvent;
     return(this);
 }
예제 #4
0
 public Builder OtherEvent(Models.LoyaltyEventOther value)
 {
     otherEvent = value;
     return(this);
 }