Class: Nfe::Generated::ServiceInvoiceRtcV1::ThirdPartyReimbursementDocument

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeThirdPartyReimbursementDocument

Returns a new instance of ThirdPartyReimbursementDocument.

Parameters:

  • 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)


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_onObject (readonly)

Returns the value of attribute accrual_on

Returns:

  • (Object)

    the current value of 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

#amountObject (readonly)

Returns the value of attribute amount

Returns:

  • (Object)

    the current value of amount



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/third_party_reimbursement_document.rb', line 9

def amount
  @amount
end

#cte_keyObject (readonly)

Returns the value of attribute cte_key

Returns:

  • (Object)

    the current value of 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_dateObject (readonly)

Returns the value of attribute issue_date

Returns:

  • (Object)

    the current value of 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_keyObject (readonly)

Returns the value of attribute nfe_key

Returns:

  • (Object)

    the current value of 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_keyObject (readonly)

Returns the value of attribute nfse_key

Returns:

  • (Object)

    the current value of 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_docObject (readonly)

Returns the value of attribute other_doc

Returns:

  • (Object)

    the current value of 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_docObject (readonly)

Returns the value of attribute other_fiscal_doc

Returns:

  • (Object)

    the current value of 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_dfeObject (readonly)

Returns the value of attribute other_national_dfe

Returns:

  • (Object)

    the current value of 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_typeObject (readonly)

Returns the value of attribute reimbursement_type

Returns:

  • (Object)

    the current value of 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_textObject (readonly)

Returns the value of attribute reimbursement_type_text

Returns:

  • (Object)

    the current value of 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

#supplierObject (readonly)

Returns the value of attribute supplier

Returns:

  • (Object)

    the current value of 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?

Parameters:

  • payload (Hash[String, untyped], nil)

Returns:

  • (instance, nil)


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

.newinstance

Parameters:

  • 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)

Returns:

  • (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