Class: Nfe::Generated::ServiceInvoiceRtcV1::ThirdPartyReimbursementDocument
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ServiceInvoiceRtcV1::ThirdPartyReimbursementDocument
- Defined in:
- lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb,
sig/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rbs
Instance Attribute Summary collapse
-
#accrual_on ⇒ Object
readonly
Returns the value of attribute accrual_on.
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#cte_key ⇒ Object
readonly
Returns the value of attribute cte_key.
-
#issue_date ⇒ Object
readonly
Returns the value of attribute issue_date.
-
#nfe_key ⇒ Object
readonly
Returns the value of attribute nfe_key.
-
#nfse_key ⇒ Object
readonly
Returns the value of attribute nfse_key.
-
#other_doc ⇒ Object
readonly
Returns the value of attribute other_doc.
-
#other_fiscal_doc ⇒ Object
readonly
Returns the value of attribute other_fiscal_doc.
-
#other_national_dfe ⇒ Object
readonly
Returns the value of attribute other_national_dfe.
-
#reimbursement_type ⇒ Object
readonly
Returns the value of attribute reimbursement_type.
-
#reimbursement_type_text ⇒ Object
readonly
Returns the value of attribute reimbursement_type_text.
-
#supplier ⇒ Object
readonly
Returns the value of attribute supplier.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ThirdPartyReimbursementDocument
constructor
A new instance of ThirdPartyReimbursementDocument.
Constructor Details
#initialize ⇒ ThirdPartyReimbursementDocument
Returns a new instance of ThirdPartyReimbursementDocument.
22 |
# File 'sig/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rbs', line 22
def initialize: (accrual_on: String, amount: Float, ?cte_key: String, issue_date: String, ?nfe_key: String, ?nfse_key: String, ?other_doc: Hash[String, untyped], ?other_fiscal_doc: Hash[String, untyped], ?other_national_dfe: Hash[String, untyped], reimbursement_type: String, ?reimbursement_type_text: String, ?supplier: PartyDefinition) -> void
|
Instance Attribute Details
#accrual_on ⇒ Object (readonly)
Returns the value of attribute accrual_on
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9 def accrual_on @accrual_on end |
#amount ⇒ Object (readonly)
Returns the value of attribute amount
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9 def amount @amount end |
#cte_key ⇒ Object (readonly)
Returns the value of attribute cte_key
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9 def cte_key @cte_key end |
#issue_date ⇒ Object (readonly)
Returns the value of attribute issue_date
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9 def issue_date @issue_date end |
#nfe_key ⇒ Object (readonly)
Returns the value of attribute nfe_key
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9 def nfe_key @nfe_key end |
#nfse_key ⇒ Object (readonly)
Returns the value of attribute nfse_key
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9 def nfse_key @nfse_key end |
#other_doc ⇒ Object (readonly)
Returns the value of attribute other_doc
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9 def other_doc @other_doc end |
#other_fiscal_doc ⇒ Object (readonly)
Returns the value of attribute other_fiscal_doc
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9 def other_fiscal_doc @other_fiscal_doc end |
#other_national_dfe ⇒ Object (readonly)
Returns the value of attribute other_national_dfe
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9 def other_national_dfe @other_national_dfe end |
#reimbursement_type ⇒ Object (readonly)
Returns the value of attribute reimbursement_type
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9 def reimbursement_type @reimbursement_type end |
#reimbursement_type_text ⇒ Object (readonly)
Returns the value of attribute reimbursement_type_text
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9 def reimbursement_type_text @reimbursement_type_text end |
#supplier ⇒ Object (readonly)
Returns the value of attribute supplier
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9 def supplier @supplier end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( accrual_on: payload["accrualOn"], amount: payload["amount"], cte_key: payload["cteKey"], issue_date: payload["issueDate"], nfe_key: payload["nfeKey"], nfse_key: payload["nfseKey"], other_doc: payload["otherDoc"], other_fiscal_doc: payload["otherFiscalDoc"], other_national_dfe: payload["otherNationalDfe"], reimbursement_type: payload["reimbursementType"], reimbursement_type_text: payload["reimbursementTypeText"], supplier: PartyDefinition.from_api(payload["supplier"]), ) end |
.new ⇒ instance
21 |
# File 'sig/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rbs', line 21
def self.new: (accrual_on: String, amount: Float, ?cte_key: String, issue_date: String, ?nfe_key: String, ?nfse_key: String, ?other_doc: Hash[String, untyped], ?other_fiscal_doc: Hash[String, untyped], ?other_national_dfe: Hash[String, untyped], reimbursement_type: String, ?reimbursement_type_text: String, ?supplier: PartyDefinition) -> instance
|