/// <summary> /// Initializes a new instance of the <see cref="BudgetSettings" /> class. /// </summary> /// <param name="dateFormat">dateFormat (required).</param> /// <param name="currencyFormat">currencyFormat (required).</param> public BudgetSettings(DateFormat dateFormat = default(DateFormat), CurrencyFormat currencyFormat = default(CurrencyFormat)) { // to ensure "dateFormat" is required (not null) this.DateFormat = dateFormat ?? throw new ArgumentNullException("dateFormat is a required property for BudgetSettings and cannot be null"); // to ensure "currencyFormat" is required (not null) this.CurrencyFormat = currencyFormat ?? throw new ArgumentNullException("currencyFormat is a required property for BudgetSettings and cannot be null"); }
/// <summary> /// Initializes a new instance of the <see cref="BudgetSettings" /> class. /// </summary> /// <param name="dateFormat">dateFormat (required).</param> /// <param name="currencyFormat">currencyFormat (required).</param> public BudgetSettings(DateFormat dateFormat = default(DateFormat), CurrencyFormat currencyFormat = default(CurrencyFormat)) { // to ensure "dateFormat" is required (not null) if (dateFormat == null) { throw new InvalidDataException("dateFormat is a required property for BudgetSettings and cannot be null"); } else { this.DateFormat = dateFormat; } // to ensure "currencyFormat" is required (not null) if (currencyFormat == null) { throw new InvalidDataException("currencyFormat is a required property for BudgetSettings and cannot be null"); } else { this.CurrencyFormat = currencyFormat; } }
/// <summary> /// Initializes a new instance of the <see cref="BudgetSummary" /> class. /// </summary> /// <param name="id">id (required).</param> /// <param name="name">name (required).</param> /// <param name="lastModifiedOn">The last time any changes were made to the budget from either a web or mobile client.</param> /// <param name="firstMonth">The earliest budget month.</param> /// <param name="lastMonth">The latest budget month.</param> /// <param name="dateFormat">dateFormat.</param> /// <param name="currencyFormat">currencyFormat.</param> /// <param name="accounts">The budget accounts (only included if `include_accounts=true` specified as query parameter).</param> public BudgetSummary(Guid id = default(Guid), string name = default(string), DateTime lastModifiedOn = default(DateTime), DateTime firstMonth = default(DateTime), DateTime lastMonth = default(DateTime), DateFormat dateFormat = default(DateFormat), CurrencyFormat currencyFormat = default(CurrencyFormat), List <Account> accounts = default(List <Account>)) { this.Id = id; // to ensure "name" is required (not null) this.Name = name ?? throw new ArgumentNullException("name is a required property for BudgetSummary and cannot be null"); this.LastModifiedOn = lastModifiedOn; this.FirstMonth = firstMonth; this.LastMonth = lastMonth; this.DateFormat = dateFormat; this.CurrencyFormat = currencyFormat; this.Accounts = accounts; }
/// <summary> /// Initializes a new instance of the <see cref="BudgetSummary" /> class. /// </summary> /// <param name="id">id (required).</param> /// <param name="name">name (required).</param> /// <param name="lastModifiedOn">The last time any changes were made to the budget from either a web or mobile client.</param> /// <param name="firstMonth">The earliest budget month.</param> /// <param name="lastMonth">The latest budget month.</param> /// <param name="dateFormat">dateFormat.</param> /// <param name="currencyFormat">currencyFormat.</param> public BudgetSummary(Guid id = default(Guid), string name = default(string), DateTime lastModifiedOn = default(DateTime), DateTime firstMonth = default(DateTime), DateTime lastMonth = default(DateTime), DateFormat dateFormat = default(DateFormat), CurrencyFormat currencyFormat = default(CurrencyFormat)) { // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for BudgetSummary and cannot be null"); } else { this.Id = id; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for BudgetSummary and cannot be null"); } else { this.Name = name; } this.LastModifiedOn = lastModifiedOn; this.FirstMonth = firstMonth; this.LastMonth = lastMonth; this.DateFormat = dateFormat; this.CurrencyFormat = currencyFormat; }
/// <summary> /// Initializes a new instance of the <see cref="BudgetDetail" /> class. /// </summary> /// <param name="id">id (required).</param> /// <param name="name">name (required).</param> /// <param name="lastModifiedOn">The last time any changes were made to the budget from either a web or mobile client.</param> /// <param name="firstMonth">The earliest budget month.</param> /// <param name="lastMonth">The latest budget month.</param> /// <param name="dateFormat">dateFormat.</param> /// <param name="currencyFormat">currencyFormat.</param> /// <param name="accounts">accounts.</param> /// <param name="payees">payees.</param> /// <param name="payeeLocations">payeeLocations.</param> /// <param name="categoryGroups">categoryGroups.</param> /// <param name="categories">categories.</param> /// <param name="months">months.</param> /// <param name="transactions">transactions.</param> /// <param name="subtransactions">subtransactions.</param> /// <param name="scheduledTransactions">scheduledTransactions.</param> /// <param name="scheduledSubtransactions">scheduledSubtransactions.</param> public BudgetDetail(Guid id = default(Guid), string name = default(string), DateTime lastModifiedOn = default(DateTime), DateTime firstMonth = default(DateTime), DateTime lastMonth = default(DateTime), DateFormat dateFormat = default(DateFormat), CurrencyFormat currencyFormat = default(CurrencyFormat), List <Account> accounts = default(List <Account>), List <Payee> payees = default(List <Payee>), List <PayeeLocation> payeeLocations = default(List <PayeeLocation>), List <CategoryGroup> categoryGroups = default(List <CategoryGroup>), List <Category> categories = default(List <Category>), List <MonthDetail> months = default(List <MonthDetail>), List <TransactionSummary> transactions = default(List <TransactionSummary>), List <SubTransaction> subtransactions = default(List <SubTransaction>), List <ScheduledTransactionSummary> scheduledTransactions = default(List <ScheduledTransactionSummary>), List <ScheduledSubTransaction> scheduledSubtransactions = default(List <ScheduledSubTransaction>)) { // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for BudgetDetail and cannot be null"); } else { this.Id = id; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for BudgetDetail and cannot be null"); } else { this.Name = name; } this.LastModifiedOn = lastModifiedOn; this.FirstMonth = firstMonth; this.LastMonth = lastMonth; this.DateFormat = dateFormat; this.CurrencyFormat = currencyFormat; this.Accounts = accounts; this.Payees = payees; this.PayeeLocations = payeeLocations; this.CategoryGroups = categoryGroups; this.Categories = categories; this.Months = months; this.Transactions = transactions; this.Subtransactions = subtransactions; this.ScheduledTransactions = scheduledTransactions; this.ScheduledSubtransactions = scheduledSubtransactions; }