/// <summary> /// Initializes a new instance of the <see cref="UserItemLogResource" /> class. /// </summary> /// <param name="Info">Additional information defined by the type.</param> /// <param name="Item">The item interacted with.</param> /// <param name="Type">The type of event.</param> /// <param name="User">The user making the interaction.</param> /// <param name="UserInventory">The id of the inventory entry this event is related to, if any.</param> public UserItemLogResource(string Info = default(string), SimpleReferenceResourceint Item = default(SimpleReferenceResourceint), string Type = default(string), SimpleUserResource User = default(SimpleUserResource), int?UserInventory = default(int?)) { this.Info = Info; this.Item = Item; this.Type = Type; this.User = User; this.UserInventory = UserInventory; }
/// <summary> /// Initializes a new instance of the <see cref="PaymentAuthorizationResource" /> class. /// </summary> /// <param name="Details">The details for this authorization. Format dependent on payment provider.</param> /// <param name="Invoice">The invoice this authorization is intended to pay.</param> /// <param name="PaymentType">The payment type (which provider) this payment is through (required).</param> public PaymentAuthorizationResource(Object Details = default(Object), int?Invoice = default(int?), SimpleReferenceResourceint PaymentType = default(SimpleReferenceResourceint)) { // to ensure "PaymentType" is required (not null) if (PaymentType == null) { throw new InvalidDataException("PaymentType is a required property for PaymentAuthorizationResource and cannot be null"); } else { this.PaymentType = PaymentType; } this.Details = Details; this.Invoice = Invoice; }