/// <summary> /// Initializes a new instance of the <see cref="TransactionResponseData" /> class. /// </summary> /// <param name="transaction">transaction (required).</param> public TransactionResponseData(TransactionDetail transaction = default(TransactionDetail)) { // to ensure "transaction" is required (not null) if (transaction == null) { throw new InvalidDataException("transaction is a required property for TransactionResponseData and cannot be null"); } else { this.Transaction = transaction; } }
/// <summary> /// Initializes a new instance of the <see cref="TransactionResponseData" /> class. /// </summary> /// <param name="transaction">transaction (required).</param> public TransactionResponseData(TransactionDetail transaction = default(TransactionDetail)) { // to ensure "transaction" is required (not null) this.Transaction = transaction ?? throw new ArgumentNullException("transaction is a required property for TransactionResponseData and cannot be null"); }
/// <summary> /// Initializes a new instance of the <see cref="SaveTransactionsResponseData" /> class. /// </summary> /// <param name="transactionIds">The transaction ids that were saved (required).</param> /// <param name="transaction">transaction.</param> /// <param name="transactions">If multiple transactions were specified, the transactions that were saved.</param> /// <param name="duplicateImportIds">If multiple transactions were specified, a list of import_ids that were not created because of an existing `import_id` found on the same account.</param> /// <param name="serverKnowledge">The knowledge of the server (required).</param> public SaveTransactionsResponseData(List <string> transactionIds = default(List <string>), TransactionDetail transaction = default(TransactionDetail), List <TransactionDetail> transactions = default(List <TransactionDetail>), List <string> duplicateImportIds = default(List <string>), long serverKnowledge = default(long)) { // to ensure "transactionIds" is required (not null) this.TransactionIds = transactionIds ?? throw new ArgumentNullException("transactionIds is a required property for SaveTransactionsResponseData and cannot be null"); this.ServerKnowledge = serverKnowledge; this.Transaction = transaction; this.Transactions = transactions; this.DuplicateImportIds = duplicateImportIds; }
/// <summary> /// Initializes a new instance of the <see cref="SaveTransactionsResponseData" /> class. /// </summary> /// <param name="transactionIds">The transaction ids that were saved (required).</param> /// <param name="transaction">transaction.</param> /// <param name="transactions">If multiple transactions were specified, the transactions that were saved.</param> /// <param name="duplicateImportIds">If multiple transactions were specified, a list of import_ids that were not created because of an existing import_id found on the same account.</param> /// <param name="serverKnowledge">The knowledge of the server (required).</param> public SaveTransactionsResponseData(List <string> transactionIds = default(List <string>), TransactionDetail transaction = default(TransactionDetail), List <TransactionDetail> transactions = default(List <TransactionDetail>), List <string> duplicateImportIds = default(List <string>), long serverKnowledge = default(long)) { // to ensure "transactionIds" is required (not null) if (transactionIds == null) { throw new InvalidDataException("transactionIds is a required property for SaveTransactionsResponseData and cannot be null"); } else { this.TransactionIds = transactionIds; } // to ensure "serverKnowledge" is required (not null) if (serverKnowledge == null) { throw new InvalidDataException("serverKnowledge is a required property for SaveTransactionsResponseData and cannot be null"); } else { this.ServerKnowledge = serverKnowledge; } this.Transaction = transaction; this.Transactions = transactions; this.DuplicateImportIds = duplicateImportIds; }