Class: UU::Finman::FinancialTransaction::ExpostPaymentCreate

Inherits:
OS::REST::DTO
  • Object
show all
Defined in:
lib/uu/finman/financialtransaction/expost_payment_create.rb

Overview

DTO for create command of Expost Payment.

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Fixnum) amount_with_vat

Amount of the Expost Payment with vat. Either amount with vat or vat rate must be set.

Parameters:

  • (Fixnum)

Returns:

  • (Fixnum)


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.

Parameters:

  • (Fixnum)

Returns:

  • (Fixnum)


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.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (String, UU::OS::UESURI)

Returns:

  • (UU::OS::UESURI)


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.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (String, UU::OS::UESURI)

Returns:

  • (UU::OS::UESURI)


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.

Parameters:

  • (String)

Returns:

  • (String)


59
60
61
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 59

def 
  @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.

Parameters:

  • (String, UU::OS::UESURI)

Returns:

  • (UU::OS::UESURI)


65
66
67
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 65

def 
  @credit_account_uri
end

- (String) credit_description

Description for credit side.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (String, UU::OS::UESURI)

Returns:

  • (UU::OS::UESURI)


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.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (String, Time)

Returns:

  • (String)


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.

Parameters:

  • (String)

Returns:

  • (String)


102
103
104
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 102

def 
  @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.

Parameters:

  • (String, UU::OS::UESURI)

Returns:

  • (UU::OS::UESURI)


108
109
110
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 108

def 
  @debit_account_uri
end

- (String) debit_description

Description for debit side.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (String, UU::OS::UESURI)

Returns:

  • (UU::OS::UESURI)


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.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (String, Time)

Returns:

  • (String)


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.

Parameters:

  • (TrueClass, FalseClass)

Returns:

  • (TrueClass, FalseClass)


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.

Parameters:

  • (Fixnum)

Returns:

  • (Fixnum)


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.

Parameters:

  • (Fixnum)

Returns:

  • (Fixnum)


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.

Parameters:

Returns:

  • (String)


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.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (String)

Returns:

  • (String)


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'.

Parameters:

  • (TrueClass, FalseClass)

Returns:

  • (TrueClass, FalseClass)


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.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (String, Time)

Returns:

  • (String)


157
158
159
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 157

def pay_date
  @pay_date
end

Related links(URI, label) in JSON format.

Parameters:

  • (String)

Returns:

  • (String)


194
195
196
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 194

def related_links
  @related_links
end

- (String) specific_symbol

Specific symbol.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (String)

Returns:

  • (String)


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.

Parameters:

  • (Fixnum)

Returns:

  • (Fixnum)


173
174
175
# File 'lib/uu/finman/financialtransaction/expost_payment_create.rb', line 173

def vat_rate
  @vat_rate
end