pub struct CreateTransaction {
pub id: Option<TransactionID>,
pub time: Option<Timestamp>,
pub user_id: Option<i64>,
pub account_id: Option<AccountID>,
pub batch_id: Option<TransactionID>,
pub request_id: Option<RequestID>,
pub type: Option<TransactionType>,
pub division_id: Option<i64>,
pub site_id: Option<i64>,
pub account_user_id: Option<i64>,
pub account_number: Option<i64>,
pub home_currency: Option<Currency>,
}Expand description
A CreateTransaction represents the creation of an Account.
Fields§
§id: Option<TransactionID>The Transaction’s Identifier.
time: Option<Timestamp>The date/time when the Transaction was created.
user_id: Option<i64>The ID of the user that initiated the creation of the Transaction.
account_id: Option<AccountID>The ID of the Account the Transaction was created for.
batch_id: Option<TransactionID>The ID of the “batch” that the Transaction belongs to. Transactions in the same batch are applied to the Account simultaneously.
request_id: Option<RequestID>The Request ID of the request which generated the transaction.
type: Option<TransactionType>The Type of the Transaction. Always set to “CREATE” in a CreateTransaction.
division_id: Option<i64>The ID of the Division that the Account is in
site_id: Option<i64>The ID of the Site that the Account was created at
account_user_id: Option<i64>The ID of the user that the Account was created for
account_number: Option<i64>The number of the Account within the site/division/user
home_currency: Option<Currency>The home currency of the Account