Class: EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute
- Defined in:
- lib/e_invoice_api/models/document_create_from_pdf_response.rb,
sig/e_invoice_api/models/document_create_from_pdf_response.rbs
Instance Attribute Summary collapse
-
#name ⇒ String
Attribute name (BT-160).
-
#value ⇒ String?
Attribute value (BT-161).
Instance Method Summary collapse
-
#initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil, item_attributes: nil, product_code: nil, quantity: nil, tax: nil, tax_rate: nil, unit: nil, unit_price: nil) ⇒ ItemAttribute
constructor
Some parameter documentations has been truncated, see EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item for more details.
- #to_hash ⇒ { name: String, value: String? }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil, item_attributes: nil, product_code: nil, quantity: nil, tax: nil, tax_rate: nil, unit: nil, unit_price: nil) ⇒ ItemAttribute
Some parameter documentations has been truncated, see EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item for more details.
551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 |
# File 'lib/e_invoice_api/models/document_create_from_pdf_response.rb', line 551 class ItemAttribute < EInvoiceAPI::Internal::Type::BaseModel # @!attribute name # Attribute name (BT-160). # # @return [String] required :name, String # @!attribute value # Attribute value (BT-161). # # @return [String, nil] optional :value, String, nil?: true # @!method initialize(name:, value: nil) # An item-level attribute (BG-32 / BT-160 + BT-161) from # cac:AdditionalItemProperty. # # @param name [String] Attribute name (BT-160). # # @param value [String, nil] Attribute value (BT-161). end |
Instance Attribute Details
#name ⇒ String
Attribute name (BT-160).
556 |
# File 'lib/e_invoice_api/models/document_create_from_pdf_response.rb', line 556 required :name, String |
#value ⇒ String?
Attribute value (BT-161).
562 |
# File 'lib/e_invoice_api/models/document_create_from_pdf_response.rb', line 562 optional :value, String, nil?: true |
Instance Method Details
#to_hash ⇒ { name: String, value: String? }
380 |
# File 'sig/e_invoice_api/models/document_create_from_pdf_response.rbs', line 380
def to_hash: -> { name: String, value: String? }
|