Class: EInvoiceAPI::Models::DocumentCreate
Defined Under Namespace
Modules: AmountDue, InvoiceTotal, PreviousUnpaidBalance, Subtotal, TaxCode, TotalDiscount, TotalTax, Vatex
Classes: Allowance, Charge, Item, TaxDetail
Instance Attribute Summary collapse
-
#allowances ⇒ Array<EInvoiceAPI::Models::DocumentCreate::Allowance>?
-
#amount_due ⇒ Float, ...
The amount due of the invoice.
-
#attachments ⇒ Array<EInvoiceAPI::Models::DocumentAttachmentCreate>?
-
#billing_address ⇒ String?
-
#billing_address_recipient ⇒ String?
-
#charges ⇒ Array<EInvoiceAPI::Models::DocumentCreate::Charge>?
-
#currency ⇒ Symbol, ...
-
#customer_address ⇒ String?
-
#customer_address_recipient ⇒ String?
-
#customer_email ⇒ String?
-
#customer_id ⇒ String?
-
#customer_name ⇒ String?
-
#customer_tax_id ⇒ String?
-
#direction ⇒ Symbol, ...
-
#document_type ⇒ Symbol, ...
-
#due_date ⇒ Date?
-
#invoice_date ⇒ Date?
-
#invoice_id ⇒ String?
-
#invoice_total ⇒ Float, ...
The total amount of the invoice (so invoice_total = subtotal + total_tax + total_discount).
-
#items ⇒ Array<EInvoiceAPI::Models::DocumentCreate::Item>?
At least one line item is required.
-
#note ⇒ String?
-
#payment_details ⇒ Array<EInvoiceAPI::Models::PaymentDetailCreate>?
-
#payment_term ⇒ String?
-
#previous_unpaid_balance ⇒ Float, ...
The previous unpaid balance of the invoice, if any.
-
#purchase_order ⇒ String?
-
#remittance_address ⇒ String?
-
#remittance_address_recipient ⇒ String?
-
#service_address ⇒ String?
-
#service_address_recipient ⇒ String?
-
#service_end_date ⇒ Date?
-
#service_start_date ⇒ Date?
-
#shipping_address ⇒ String?
-
#shipping_address_recipient ⇒ String?
-
#state ⇒ Symbol, ...
-
#subtotal ⇒ Float, ...
The taxable base of the invoice.
-
#tax_code ⇒ Symbol, ...
Tax category code of the invoice.
-
#tax_details ⇒ Array<EInvoiceAPI::Models::DocumentCreate::TaxDetail>?
-
#total_discount ⇒ Float, ...
The total financial discount of the invoice (so discounts not subject to VAT).
-
#total_tax ⇒ Float, ...
The total tax of the invoice.
-
#vatex ⇒ Symbol, ...
VATEX code list for VAT exemption reasons.
-
#vatex_note ⇒ String?
VAT exemption note of the invoice.
-
#vendor_address ⇒ String?
-
#vendor_address_recipient ⇒ String?
-
#vendor_email ⇒ String?
-
#vendor_name ⇒ String?
-
#vendor_tax_id ⇒ String?
Class Method Summary
collapse
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Instance Attribute Details
#amount_due ⇒ Float, ...
The amount due of the invoice. Must be positive and rounded to maximum 2 decimals
18
|
# File 'lib/e_invoice_api/models/document_create.rb', line 18
optional :amount_due, union: -> { EInvoiceAPI::DocumentCreate::AmountDue }, nil?: true
|
#billing_address ⇒ String?
30
|
# File 'lib/e_invoice_api/models/document_create.rb', line 30
optional :billing_address, String, nil?: true
|
#billing_address_recipient ⇒ String?
35
|
# File 'lib/e_invoice_api/models/document_create.rb', line 35
optional :billing_address_recipient, String, nil?: true
|
#currency ⇒ Symbol, ...
48
|
# File 'lib/e_invoice_api/models/document_create.rb', line 48
optional :currency, enum: -> { EInvoiceAPI::CurrencyCode }
|
#customer_address ⇒ String?
53
|
# File 'lib/e_invoice_api/models/document_create.rb', line 53
optional :customer_address, String, nil?: true
|
#customer_address_recipient ⇒ String?
58
|
# File 'lib/e_invoice_api/models/document_create.rb', line 58
optional :customer_address_recipient, String, nil?: true
|
#customer_email ⇒ String?
63
|
# File 'lib/e_invoice_api/models/document_create.rb', line 63
optional :customer_email, String, nil?: true
|
#customer_id ⇒ String?
68
|
# File 'lib/e_invoice_api/models/document_create.rb', line 68
optional :customer_id, String, nil?: true
|
#customer_name ⇒ String?
73
|
# File 'lib/e_invoice_api/models/document_create.rb', line 73
optional :customer_name, String, nil?: true
|
#customer_tax_id ⇒ String?
78
|
# File 'lib/e_invoice_api/models/document_create.rb', line 78
optional :customer_tax_id, String, nil?: true
|
#document_type ⇒ Symbol, ...
88
|
# File 'lib/e_invoice_api/models/document_create.rb', line 88
optional :document_type, enum: -> { EInvoiceAPI::DocumentType }
|
#due_date ⇒ Date?
93
|
# File 'lib/e_invoice_api/models/document_create.rb', line 93
optional :due_date, Date, nil?: true
|
#invoice_date ⇒ Date?
98
|
# File 'lib/e_invoice_api/models/document_create.rb', line 98
optional :invoice_date, Date, nil?: true
|
#invoice_id ⇒ String?
103
|
# File 'lib/e_invoice_api/models/document_create.rb', line 103
optional :invoice_id, String, nil?: true
|
#invoice_total ⇒ Float, ...
The total amount of the invoice (so invoice_total = subtotal + total_tax + total_discount). Must be positive and rounded to maximum 2 decimals
110
|
# File 'lib/e_invoice_api/models/document_create.rb', line 110
optional :invoice_total, union: -> { EInvoiceAPI::DocumentCreate::InvoiceTotal }, nil?: true
|
At least one line item is required
#note ⇒ String?
121
|
# File 'lib/e_invoice_api/models/document_create.rb', line 121
optional :note, String, nil?: true
|
#payment_term ⇒ String?
133
|
# File 'lib/e_invoice_api/models/document_create.rb', line 133
optional :payment_term, String, nil?: true
|
#previous_unpaid_balance ⇒ Float, ...
The previous unpaid balance of the invoice, if any. Must be positive and rounded to maximum 2 decimals
140
141
142
|
# File 'lib/e_invoice_api/models/document_create.rb', line 140
optional :previous_unpaid_balance,
union: -> { EInvoiceAPI::DocumentCreate::PreviousUnpaidBalance },
nil?: true
|
#purchase_order ⇒ String?
147
|
# File 'lib/e_invoice_api/models/document_create.rb', line 147
optional :purchase_order, String, nil?: true
|
#remittance_address ⇒ String?
152
|
# File 'lib/e_invoice_api/models/document_create.rb', line 152
optional :remittance_address, String, nil?: true
|
#remittance_address_recipient ⇒ String?
157
|
# File 'lib/e_invoice_api/models/document_create.rb', line 157
optional :remittance_address_recipient, String, nil?: true
|
#service_address ⇒ String?
162
|
# File 'lib/e_invoice_api/models/document_create.rb', line 162
optional :service_address, String, nil?: true
|
#service_address_recipient ⇒ String?
167
|
# File 'lib/e_invoice_api/models/document_create.rb', line 167
optional :service_address_recipient, String, nil?: true
|
#service_end_date ⇒ Date?
172
|
# File 'lib/e_invoice_api/models/document_create.rb', line 172
optional :service_end_date, Date, nil?: true
|
#service_start_date ⇒ Date?
177
|
# File 'lib/e_invoice_api/models/document_create.rb', line 177
optional :service_start_date, Date, nil?: true
|
#shipping_address ⇒ String?
182
|
# File 'lib/e_invoice_api/models/document_create.rb', line 182
optional :shipping_address, String, nil?: true
|
#shipping_address_recipient ⇒ String?
187
|
# File 'lib/e_invoice_api/models/document_create.rb', line 187
optional :shipping_address_recipient, String, nil?: true
|
#state ⇒ Symbol, ...
192
|
# File 'lib/e_invoice_api/models/document_create.rb', line 192
optional :state, enum: -> { EInvoiceAPI::DocumentState }
|
#subtotal ⇒ Float, ...
The taxable base of the invoice. Should be the sum of all line items - allowances (for example commercial discounts) + charges with impact on VAT. Must be positive and rounded to maximum 2 decimals
200
|
# File 'lib/e_invoice_api/models/document_create.rb', line 200
optional :subtotal, union: -> { EInvoiceAPI::DocumentCreate::Subtotal }, nil?: true
|
#tax_code ⇒ Symbol, ...
Tax category code of the invoice
206
|
# File 'lib/e_invoice_api/models/document_create.rb', line 206
optional :tax_code, enum: -> { EInvoiceAPI::DocumentCreate::TaxCode }
|
#total_discount ⇒ Float, ...
The total financial discount of the invoice (so discounts not subject to VAT). Must be positive and rounded to maximum 2 decimals
220
|
# File 'lib/e_invoice_api/models/document_create.rb', line 220
optional :total_discount, union: -> { EInvoiceAPI::DocumentCreate::TotalDiscount }, nil?: true
|
#total_tax ⇒ Float, ...
The total tax of the invoice. Must be positive and rounded to maximum 2 decimals
226
|
# File 'lib/e_invoice_api/models/document_create.rb', line 226
optional :total_tax, union: -> { EInvoiceAPI::DocumentCreate::TotalTax }, nil?: true
|
#vatex ⇒ Symbol, ...
VATEX code list for VAT exemption reasons
Agency: CEF Identifier: vatex
234
|
# File 'lib/e_invoice_api/models/document_create.rb', line 234
optional :vatex, enum: -> { EInvoiceAPI::DocumentCreate::Vatex }, nil?: true
|
#vatex_note ⇒ String?
VAT exemption note of the invoice
240
|
# File 'lib/e_invoice_api/models/document_create.rb', line 240
optional :vatex_note, String, nil?: true
|
#vendor_address ⇒ String?
245
|
# File 'lib/e_invoice_api/models/document_create.rb', line 245
optional :vendor_address, String, nil?: true
|
#vendor_address_recipient ⇒ String?
250
|
# File 'lib/e_invoice_api/models/document_create.rb', line 250
optional :vendor_address_recipient, String, nil?: true
|
#vendor_email ⇒ String?
255
|
# File 'lib/e_invoice_api/models/document_create.rb', line 255
optional :vendor_email, String, nil?: true
|
#vendor_name ⇒ String?
260
|
# File 'lib/e_invoice_api/models/document_create.rb', line 260
optional :vendor_name, String, nil?: true
|
#vendor_tax_id ⇒ String?
265
|
# File 'lib/e_invoice_api/models/document_create.rb', line 265
optional :vendor_tax_id, String, nil?: true
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/e_invoice_api/models/document_create.rb', line 495
|
.variants ⇒ Array(Float, String)
|
# File 'lib/e_invoice_api/models/document_create.rb', line 511
|