コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountDebitCreditTransactionForm" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="type">Type of the resource.</param>
 /// <param name="attributes">attributes (required).</param>
 /// <param name="relationships">relationships.</param>
 public AccountDebitCreditTransactionForm(string id = default(string), TypeEnum?type = default(TypeEnum?), AccountDebitCreditTransactionFormAttributes attributes = default(AccountDebitCreditTransactionFormAttributes), Object relationships = default(Object))
 {
     // to ensure "attributes" is required (not null)
     if (attributes == null)
     {
         throw new InvalidDataException("attributes is a required property for AccountDebitCreditTransactionForm and cannot be null");
     }
     else
     {
         this.Attributes = attributes;
     }
     this.Id            = id;
     this.Type          = type;
     this.Relationships = relationships;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompanyIdaccountsiddebitTransactionsData" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="type">Type of the resource.</param>
 /// <param name="attributes">attributes.</param>
 public CompanyIdaccountsiddebitTransactionsData(string id = default(string), TypeEnum?type = default(TypeEnum?), AccountDebitCreditTransactionFormAttributes attributes = default(AccountDebitCreditTransactionFormAttributes))
 {
     this.Id         = id;
     this.Type       = type;
     this.Attributes = attributes;
 }