|
FOSSredder 0.5.0
|
Functions | |
| std::string | trimCopy (std::string value) |
| Trims leading and trailing whitespace from text. | |
| bool | hasValidBookingDate (const std::string &value) |
| Checks whether a booking date value is valid. | |
| bool | hasValidAmount (double value) |
| Checks whether a transaction amount value is valid. | |
| bool | hasStatementAssignment (const std::string &statementId) |
| Checks whether a statement id is assigned. | |
| std::string | normalizeText (std::string value) |
| Normalizes free-form transaction text. | |
| std::string | normalizeId (std::string value) |
| Normalizes a relation id. | |
| void | normalizeIds (std::vector< std::string > &values) |
| Normalizes and deduplicates relation ids. | |
| bool | canFinalizeFromDraft (const std::string &bookingDate, double amount, const std::string &statementId) |
| Checks whether a draft transaction can be finalized. | |
| bool | statusCanAdvance (int current, int next) |
| Checks whether a transaction status may advance. | |
| bool | hasPropertyIds (const std::vector< std::string > &propertyIds) |
| Checks whether a transaction has any property ids. | |
| bool core::domain::policies::transaction::canFinalizeFromDraft | ( | const std::string & | bookingDate, |
| double | amount, | ||
| const std::string & | statementId ) |
Checks whether a draft transaction can be finalized.
| bookingDate | Raw booking date. |
| amount | Raw amount. |
| statementId | Raw statement id. |
Definition at line 55 of file TransactionPolicy.cpp.


| bool core::domain::policies::transaction::hasPropertyIds | ( | const std::vector< std::string > & | propertyIds | ) |
Checks whether a transaction has any property ids.
| propertyIds | Property id list to inspect. |
Definition at line 63 of file TransactionPolicy.cpp.
| bool core::domain::policies::transaction::hasStatementAssignment | ( | const std::string & | statementId | ) |
Checks whether a statement id is assigned.
| statementId | Raw statement id. |
Definition at line 27 of file TransactionPolicy.cpp.


| bool core::domain::policies::transaction::hasValidAmount | ( | double | value | ) |
Checks whether a transaction amount value is valid.
| value | Raw amount. |
Definition at line 23 of file TransactionPolicy.cpp.


| bool core::domain::policies::transaction::hasValidBookingDate | ( | const std::string & | value | ) |
Checks whether a booking date value is valid.
| value | Raw booking date. |
Definition at line 19 of file TransactionPolicy.cpp.


| std::string core::domain::policies::transaction::normalizeId | ( | std::string | value | ) |
Normalizes a relation id.
| value | Raw id text. |
Definition at line 35 of file TransactionPolicy.cpp.


| void core::domain::policies::transaction::normalizeIds | ( | std::vector< std::string > & | values | ) |
Normalizes and deduplicates relation ids.
| values | Relation id list to mutate. |
Definition at line 39 of file TransactionPolicy.cpp.


| std::string core::domain::policies::transaction::normalizeText | ( | std::string | value | ) |
Normalizes free-form transaction text.
| value | Raw transaction text. |
Definition at line 31 of file TransactionPolicy.cpp.


| bool core::domain::policies::transaction::statusCanAdvance | ( | int | current, |
| int | next ) |
Checks whether a transaction status may advance.
| current | Current numeric status. |
| next | Requested numeric status. |
Definition at line 59 of file TransactionPolicy.cpp.

| std::string core::domain::policies::transaction::trimCopy | ( | std::string | value | ) |
Trims leading and trailing whitespace from text.
| value | Raw text. |
Definition at line 15 of file TransactionPolicy.cpp.

