Class: UU::Finman::FinancialTransaction::ExpostPaymentCreate
- Inherits:
-
OS::REST::DTO
- Object
- OS::REST::DTO
- UU::Finman::FinancialTransaction::ExpostPaymentCreate
- Defined in:
- lib/uu/finman/financialtransaction/expost_payment_create.rb
Overview
DTO for create command of Expost Payment.
Instance Attribute Summary (collapse)
-
- (Fixnum) amount_with_vat
Amount of the Expost Payment with vat.
-
- (Fixnum) amount_without_vat
Amount of the Expost Payment without vat.
-
- (String) constant_symbol
Constant symbol.
-
- (UU::OS::UESURI) contract_uri
UESURI of Contract.
-
- (String) cost_item_code
Code of cost item.
-
- (UU::OS::UESURI) counterparty_business_case_uri
UESURI of the business case of non-control side of paynment.
-
- (String) credit_account_number
Number of credit account.
-
- (UU::OS::UESURI) credit_account_uri
UESURI of credit account artifact.
-
- (String) credit_description
Description for credit side.
-
- (UU::OS::UESURI) credit_financial_category_uri
UESURI of credit financial category.
-
- (String) credit_side_currency
Code of credit side currency.
-
- (String) credit_vat_date
Credit vat date of the transaction.
-
- (String) debit_account_number
Number of debit account.
-
- (UU::OS::UESURI) debit_account_uri
UESURI of debit account artifact.
-
- (String) debit_description
Description for debit side.
-
- (UU::OS::UESURI) debit_financial_category_uri
UESURI of debit financial category.
-
- (String) debit_side_currency
Code of debit side currency.
-
- (String) debit_vat_date
Debit vat date of the transaction.
-
- (TrueClass, FalseClass) dry_run
Dry run.
-
- (Fixnum) explicit_amount
Explicit amount with VAT in opposite side currency.
-
- (Fixnum) explicit_exchange_rate
Explicit exchange rate.
-
- (String) financial_transaction_type
Type of Expost Payment.
-
- (String) income_item_code
Code of income item.
-
- (String) invoice_number
Invoice number of Expost Payment.
-
- (TrueClass, FalseClass) is_transaction_credit
Possible values: true or false.
-
- (String) name
Name of created Expost Payment.
-
- (String) pay_date
Pay date of the transaction.
-
- (String) related_links
Related links(URI, label) in JSON format.
-
- (String) specific_symbol
Specific symbol.
-
- (String) transaction_currency
Code of transaction currency.
-
- (String) variable_symbol
Variable symbol.
-
- (Fixnum) vat_rate
Vat rate.
Instance Attribute Details
- (Fixnum) amount_with_vat
Amount of the Expost Payment with vat. Either amount with vat or vat rate must be set.
32 33 34 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 32 def amount_with_vat @amount_with_vat end |
- (Fixnum) amount_without_vat
Amount of the Expost Payment without vat. Required attribute. Cannot be null.
26 27 28 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 26 def amount_without_vat @amount_without_vat end |
- (String) constant_symbol
Constant symbol.
37 38 39 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 37 def constant_symbol @constant_symbol end |
- (UU::OS::UESURI) contract_uri
UESURI of Contract.
42 43 44 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 42 def contract_uri @contract_uri end |
- (String) cost_item_code
Code of cost item.
47 48 49 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 47 def cost_item_code @cost_item_code end |
- (UU::OS::UESURI) counterparty_business_case_uri
UESURI of the business case of non-control side of paynment. Required attribute. Cannot be null.
53 54 55 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 53 def counterparty_business_case_uri @counterparty_business_case_uri end |
- (String) credit_account_number
Number of credit account. Either number or UESURI of account must be set. Not both of them.
59 60 61 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 59 def credit_account_number @credit_account_number end |
- (UU::OS::UESURI) credit_account_uri
UESURI of credit account artifact. Either number or UESURI of account must be set. Not both of them.
65 66 67 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 65 def credit_account_uri @credit_account_uri end |
- (String) credit_description
Description for credit side.
70 71 72 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 70 def credit_description @credit_description end |
- (UU::OS::UESURI) credit_financial_category_uri
UESURI of credit financial category.
75 76 77 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 75 def credit_financial_category_uri @credit_financial_category_uri end |
- (String) credit_side_currency
Code of credit side currency.
86 87 88 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 86 def credit_side_currency @credit_side_currency end |
- (String) credit_vat_date
Credit vat date of the transaction. Required attribute. Cannot be null.
81 82 83 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 81 def credit_vat_date @credit_vat_date end |
- (String) debit_account_number
Number of debit account. Either number or UESURI of account must be set. Not both of them.
102 103 104 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 102 def debit_account_number @debit_account_number end |
- (UU::OS::UESURI) debit_account_uri
UESURI of debit account artifact. Either number or UESURI of account must be set. Not both of them.
108 109 110 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 108 def debit_account_uri @debit_account_uri end |
- (String) debit_description
Description for debit side.
113 114 115 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 113 def debit_description @debit_description end |
- (UU::OS::UESURI) debit_financial_category_uri
UESURI of debit financial category.
118 119 120 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 118 def debit_financial_category_uri @debit_financial_category_uri end |
- (String) debit_side_currency
Code of debit side currency.
91 92 93 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 91 def debit_side_currency @debit_side_currency end |
- (String) debit_vat_date
Debit vat date of the transaction. Required attribute. Cannot be null.
124 125 126 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 124 def debit_vat_date @debit_vat_date end |
- (TrueClass, FalseClass) dry_run
Dry run. If true, all validations will be processed, but expost payment will not be created.
179 180 181 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 179 def dry_run @dry_run end |
- (Fixnum) explicit_amount
Explicit amount with VAT in opposite side currency. Can be set only by role cast in Accounting Authorities.
189 190 191 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 189 def explicit_amount @explicit_amount end |
- (Fixnum) explicit_exchange_rate
Explicit exchange rate. Can be set only by role cast in Accounting Authorities.
184 185 186 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 184 def explicit_exchange_rate @explicit_exchange_rate end |
- (String) financial_transaction_type
Type of Expost Payment. Item from enumeration FinancialTransactionType. Cannot be null. Following rules must be obeyed:
If both UESURI of debit and credit account are set, then:
-
if both accounts are Bank accounts, FinancialTransactionType.NONCASH must be set.
-
if at least one account is Cash account, FinancialTransactionType.CASH must be set.
Otherwise any choice can be set.
135 136 137 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 135 def financial_transaction_type @financial_transaction_type end |
- (String) income_item_code
Code of income item.
140 141 142 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 140 def income_item_code @income_item_code end |
- (String) invoice_number
Invoice number of Expost Payment.
145 146 147 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 145 def invoice_number @invoice_number end |
- (TrueClass, FalseClass) is_transaction_credit
Possible values: true or false. True indicates type of Expost Payment as Credit, false as Debit. If not set, default value is 'true'.
151 152 153 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 151 def is_transaction_credit @is_transaction_credit end |
- (String) name
Name of created Expost Payment. Required attribute. Cannot be null or empty.
20 21 22 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 20 def name @name end |
- (String) pay_date
Pay date of the transaction. Required attribute. Cannot be null.
157 158 159 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 157 def pay_date @pay_date end |
- (String) related_links
Related links(URI, label) in JSON format.
194 195 196 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 194 def @related_links end |
- (String) specific_symbol
Specific symbol.
162 163 164 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 162 def specific_symbol @specific_symbol end |
- (String) transaction_currency
Code of transaction currency.
96 97 98 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 96 def transaction_currency @transaction_currency end |
- (String) variable_symbol
Variable symbol.
167 168 169 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 167 def variable_symbol @variable_symbol end |
- (Fixnum) vat_rate
Vat rate. Either amount with vat or vat rate must be set.
173 174 175 |
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 173 def vat_rate @vat_rate end |