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; }
/// <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; }
public Builder OtherEvent(Models.LoyaltyEventOther otherEvent) { this.otherEvent = otherEvent; return(this); }
public Builder OtherEvent(Models.LoyaltyEventOther value) { otherEvent = value; return(this); }