Class: Nfe::Generated::ServiceInvoiceRtcV1::NFSeRequest

Inherits:
Data
  • Object
show all
Defined in:
lib/nfe/generated/service_invoice_rtc_v1/nfse_request.rb,
sig/nfe/generated/service_invoice_rtc_v1/nfse_request.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNFSeRequest

Returns a new instance of NFSeRequest.

Parameters:

  • reference_substitution: (ReferenceSubstitution)
  • accrual_on: (String)
  • activity_event: (ActivityEvent)
  • additional_information: (String)
  • additional_information_group: (Hash[String, untyped])
  • approximate_tax: (ApproximateTax)
  • approximate_totals: (ApproximateTotals)
  • benefit: (Benefit)
  • borrower: (PartyDefinition)
  • city_service_code: (String)
  • cnae_code: (String)
  • cofins_amount: (Float)
  • cofins_amount_withheld: (Float)
  • cofins_rate: (Float)
  • construction: (Construction)
  • csll_amount: (Float)
  • csll_amount_withheld: (Float)
  • csll_rate: (Float)
  • cst_pis_cofins: (String)
  • deduction: (Deduction)
  • deductions_amount: (Float)
  • description: (String)
  • discount_conditioned_amount: (Float)
  • discount_unconditioned_amount: (Float)
  • external_id: (String)
  • federal_service_code: (String)
  • foreign_trade: (ForeignTrade)
  • ibs_cbs: (IbsCbs)
  • immunity_type: (String)
  • inss_amount_withheld: (Float)
  • intermediary: (PartyDefinition)
  • ipi_amount: (Float)
  • ipi_rate: (Float)
  • ir_amount_withheld: (Float)
  • is_early_installment_payment: (Boolean)
  • iss_amount_withheld: (Float)
  • iss_rate: (Float)
  • iss_tax_amount: (Float)
  • issued_on: (String)
  • lease: (Lease)
  • location: (AddressDefinition)
  • nbs_code: (String)
  • ncm_code: (String)
  • others_amount_withheld: (Float)
  • paid_amount: (Float)
  • pis_amount: (Float)
  • pis_amount_withheld: (Float)
  • pis_cofins_base_tax: (Float)
  • pis_rate: (Float)
  • real_estate: (RealEstate)
  • recipient: (PartyDefinition)
  • retention_type: (String)
  • rps_number: (Float)
  • rps_serial_number: (String)
  • service_amount_details: (ServiceAmountDefinitions)
  • services_amount: (Float)
  • suspension: (Suspension)
  • taxation_type: (String)


68
# File 'sig/nfe/generated/service_invoice_rtc_v1/nfse_request.rbs', line 68

def initialize: (?reference_substitution: ReferenceSubstitution, ?accrual_on: String, ?activity_event: ActivityEvent, ?additional_information: String, ?additional_information_group: Hash[String, untyped], ?approximate_tax: ApproximateTax, ?approximate_totals: ApproximateTotals, ?benefit: Benefit, ?borrower: PartyDefinition, city_service_code: String, ?cnae_code: String, ?cofins_amount: Float, ?cofins_amount_withheld: Float, ?cofins_rate: Float, ?construction: Construction, ?csll_amount: Float, ?csll_amount_withheld: Float, ?csll_rate: Float, ?cst_pis_cofins: String, ?deduction: Deduction, ?deductions_amount: Float, description: String, ?discount_conditioned_amount: Float, ?discount_unconditioned_amount: Float, ?external_id: String, ?federal_service_code: String, ?foreign_trade: ForeignTrade, ?ibs_cbs: IbsCbs, ?immunity_type: String, ?inss_amount_withheld: Float, ?intermediary: PartyDefinition, ?ipi_amount: Float, ?ipi_rate: Float, ?ir_amount_withheld: Float, ?is_early_installment_payment: bool, ?iss_amount_withheld: Float, ?iss_rate: Float, ?iss_tax_amount: Float, ?issued_on: String, ?lease: Lease, ?location: AddressDefinition, nbs_code: String, ?ncm_code: String, ?others_amount_withheld: Float, ?paid_amount: Float, ?pis_amount: Float, ?pis_amount_withheld: Float, ?pis_cofins_base_tax: Float, ?pis_rate: Float, ?real_estate: RealEstate, ?recipient: PartyDefinition, ?retention_type: String, ?rps_number: Float, ?rps_serial_number: String, ?service_amount_details: ServiceAmountDefinitions, services_amount: Float, ?suspension: Suspension, ?taxation_type: String) -> 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/nfse_request.rb', line 9

def accrual_on
  @accrual_on
end

#activity_eventObject (readonly)

Returns the value of attribute activity_event

Returns:

  • (Object)

    the current value of activity_event



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

def activity_event
  @activity_event
end

#additional_informationObject (readonly)

Returns the value of attribute additional_information

Returns:

  • (Object)

    the current value of additional_information



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

def additional_information
  @additional_information
end

#additional_information_groupObject (readonly)

Returns the value of attribute additional_information_group

Returns:

  • (Object)

    the current value of additional_information_group



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

def additional_information_group
  @additional_information_group
end

#approximate_taxObject (readonly)

Returns the value of attribute approximate_tax

Returns:

  • (Object)

    the current value of approximate_tax



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

def approximate_tax
  @approximate_tax
end

#approximate_totalsObject (readonly)

Returns the value of attribute approximate_totals

Returns:

  • (Object)

    the current value of approximate_totals



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

def approximate_totals
  @approximate_totals
end

#benefitObject (readonly)

Returns the value of attribute benefit

Returns:

  • (Object)

    the current value of benefit



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

def benefit
  @benefit
end

#borrowerObject (readonly)

Returns the value of attribute borrower

Returns:

  • (Object)

    the current value of borrower



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

def borrower
  @borrower
end

#city_service_codeObject (readonly)

Returns the value of attribute city_service_code

Returns:

  • (Object)

    the current value of city_service_code



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

def city_service_code
  @city_service_code
end

#cnae_codeObject (readonly)

Returns the value of attribute cnae_code

Returns:

  • (Object)

    the current value of cnae_code



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

def cnae_code
  @cnae_code
end

#cofins_amountObject (readonly)

Returns the value of attribute cofins_amount

Returns:

  • (Object)

    the current value of cofins_amount



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

def cofins_amount
  @cofins_amount
end

#cofins_amount_withheldObject (readonly)

Returns the value of attribute cofins_amount_withheld

Returns:

  • (Object)

    the current value of cofins_amount_withheld



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

def cofins_amount_withheld
  @cofins_amount_withheld
end

#cofins_rateObject (readonly)

Returns the value of attribute cofins_rate

Returns:

  • (Object)

    the current value of cofins_rate



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

def cofins_rate
  @cofins_rate
end

#constructionObject (readonly)

Returns the value of attribute construction

Returns:

  • (Object)

    the current value of construction



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

def construction
  @construction
end

#csll_amountObject (readonly)

Returns the value of attribute csll_amount

Returns:

  • (Object)

    the current value of csll_amount



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

def csll_amount
  @csll_amount
end

#csll_amount_withheldObject (readonly)

Returns the value of attribute csll_amount_withheld

Returns:

  • (Object)

    the current value of csll_amount_withheld



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

def csll_amount_withheld
  @csll_amount_withheld
end

#csll_rateObject (readonly)

Returns the value of attribute csll_rate

Returns:

  • (Object)

    the current value of csll_rate



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

def csll_rate
  @csll_rate
end

#cst_pis_cofinsObject (readonly)

Returns the value of attribute cst_pis_cofins

Returns:

  • (Object)

    the current value of cst_pis_cofins



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

def cst_pis_cofins
  @cst_pis_cofins
end

#deductionObject (readonly)

Returns the value of attribute deduction

Returns:

  • (Object)

    the current value of deduction



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

def deduction
  @deduction
end

#deductions_amountObject (readonly)

Returns the value of attribute deductions_amount

Returns:

  • (Object)

    the current value of deductions_amount



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

def deductions_amount
  @deductions_amount
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



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

def description
  @description
end

#discount_conditioned_amountObject (readonly)

Returns the value of attribute discount_conditioned_amount

Returns:

  • (Object)

    the current value of discount_conditioned_amount



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

def discount_conditioned_amount
  @discount_conditioned_amount
end

#discount_unconditioned_amountObject (readonly)

Returns the value of attribute discount_unconditioned_amount

Returns:

  • (Object)

    the current value of discount_unconditioned_amount



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

def discount_unconditioned_amount
  @discount_unconditioned_amount
end

#external_idObject (readonly)

Returns the value of attribute external_id

Returns:

  • (Object)

    the current value of external_id



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

def external_id
  @external_id
end

#federal_service_codeObject (readonly)

Returns the value of attribute federal_service_code

Returns:

  • (Object)

    the current value of federal_service_code



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

def federal_service_code
  @federal_service_code
end

#foreign_tradeObject (readonly)

Returns the value of attribute foreign_trade

Returns:

  • (Object)

    the current value of foreign_trade



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

def foreign_trade
  @foreign_trade
end

#ibs_cbsObject (readonly)

Returns the value of attribute ibs_cbs

Returns:

  • (Object)

    the current value of ibs_cbs



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

def ibs_cbs
  @ibs_cbs
end

#immunity_typeObject (readonly)

Returns the value of attribute immunity_type

Returns:

  • (Object)

    the current value of immunity_type



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

def immunity_type
  @immunity_type
end

#inss_amount_withheldObject (readonly)

Returns the value of attribute inss_amount_withheld

Returns:

  • (Object)

    the current value of inss_amount_withheld



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

def inss_amount_withheld
  @inss_amount_withheld
end

#intermediaryObject (readonly)

Returns the value of attribute intermediary

Returns:

  • (Object)

    the current value of intermediary



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

def intermediary
  @intermediary
end

#ipi_amountObject (readonly)

Returns the value of attribute ipi_amount

Returns:

  • (Object)

    the current value of ipi_amount



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

def ipi_amount
  @ipi_amount
end

#ipi_rateObject (readonly)

Returns the value of attribute ipi_rate

Returns:

  • (Object)

    the current value of ipi_rate



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

def ipi_rate
  @ipi_rate
end

#ir_amount_withheldObject (readonly)

Returns the value of attribute ir_amount_withheld

Returns:

  • (Object)

    the current value of ir_amount_withheld



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

def ir_amount_withheld
  @ir_amount_withheld
end

#is_early_installment_paymentObject (readonly)

Returns the value of attribute is_early_installment_payment

Returns:

  • (Object)

    the current value of is_early_installment_payment



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

def is_early_installment_payment
  @is_early_installment_payment
end

#iss_amount_withheldObject (readonly)

Returns the value of attribute iss_amount_withheld

Returns:

  • (Object)

    the current value of iss_amount_withheld



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

def iss_amount_withheld
  @iss_amount_withheld
end

#iss_rateObject (readonly)

Returns the value of attribute iss_rate

Returns:

  • (Object)

    the current value of iss_rate



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

def iss_rate
  @iss_rate
end

#iss_tax_amountObject (readonly)

Returns the value of attribute iss_tax_amount

Returns:

  • (Object)

    the current value of iss_tax_amount



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

def iss_tax_amount
  @iss_tax_amount
end

#issued_onObject (readonly)

Returns the value of attribute issued_on

Returns:

  • (Object)

    the current value of issued_on



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

def issued_on
  @issued_on
end

#leaseObject (readonly)

Returns the value of attribute lease

Returns:

  • (Object)

    the current value of lease



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

def lease
  @lease
end

#locationObject (readonly)

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



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

def location
  @location
end

#nbs_codeObject (readonly)

Returns the value of attribute nbs_code

Returns:

  • (Object)

    the current value of nbs_code



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

def nbs_code
  @nbs_code
end

#ncm_codeObject (readonly)

Returns the value of attribute ncm_code

Returns:

  • (Object)

    the current value of ncm_code



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

def ncm_code
  @ncm_code
end

#others_amount_withheldObject (readonly)

Returns the value of attribute others_amount_withheld

Returns:

  • (Object)

    the current value of others_amount_withheld



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

def others_amount_withheld
  @others_amount_withheld
end

Returns the value of attribute paid_amount

Returns:

  • (Object)

    the current value of paid_amount



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

def paid_amount
  @paid_amount
end

#pis_amountObject (readonly)

Returns the value of attribute pis_amount

Returns:

  • (Object)

    the current value of pis_amount



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

def pis_amount
  @pis_amount
end

#pis_amount_withheldObject (readonly)

Returns the value of attribute pis_amount_withheld

Returns:

  • (Object)

    the current value of pis_amount_withheld



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

def pis_amount_withheld
  @pis_amount_withheld
end

#pis_cofins_base_taxObject (readonly)

Returns the value of attribute pis_cofins_base_tax

Returns:

  • (Object)

    the current value of pis_cofins_base_tax



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

def pis_cofins_base_tax
  @pis_cofins_base_tax
end

#pis_rateObject (readonly)

Returns the value of attribute pis_rate

Returns:

  • (Object)

    the current value of pis_rate



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

def pis_rate
  @pis_rate
end

#real_estateObject (readonly)

Returns the value of attribute real_estate

Returns:

  • (Object)

    the current value of real_estate



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

def real_estate
  @real_estate
end

#recipientObject (readonly)

Returns the value of attribute recipient

Returns:

  • (Object)

    the current value of recipient



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

def recipient
  @recipient
end

#reference_substitutionObject (readonly)

Returns the value of attribute reference_substitution

Returns:

  • (Object)

    the current value of reference_substitution



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

def reference_substitution
  @reference_substitution
end

#retention_typeObject (readonly)

Returns the value of attribute retention_type

Returns:

  • (Object)

    the current value of retention_type



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

def retention_type
  @retention_type
end

#rps_numberObject (readonly)

Returns the value of attribute rps_number

Returns:

  • (Object)

    the current value of rps_number



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

def rps_number
  @rps_number
end

#rps_serial_numberObject (readonly)

Returns the value of attribute rps_serial_number

Returns:

  • (Object)

    the current value of rps_serial_number



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

def rps_serial_number
  @rps_serial_number
end

#service_amount_detailsObject (readonly)

Returns the value of attribute service_amount_details

Returns:

  • (Object)

    the current value of service_amount_details



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

def service_amount_details
  @service_amount_details
end

#services_amountObject (readonly)

Returns the value of attribute services_amount

Returns:

  • (Object)

    the current value of services_amount



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

def services_amount
  @services_amount
end

#suspensionObject (readonly)

Returns the value of attribute suspension

Returns:

  • (Object)

    the current value of suspension



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

def suspension
  @suspension
end

#taxation_typeObject (readonly)

Returns the value of attribute taxation_type

Returns:

  • (Object)

    the current value of taxation_type



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

def taxation_type
  @taxation_type
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/nfe/generated/service_invoice_rtc_v1/nfse_request.rb', line 10

def self.from_api(payload)
  return nil if payload.nil?

  new(
    reference_substitution: ReferenceSubstitution.from_api(payload["ReferenceSubstitution"]),
    accrual_on: payload["accrualOn"],
    activity_event: ActivityEvent.from_api(payload["activityEvent"]),
    additional_information: payload["additionalInformation"],
    additional_information_group: payload["additionalInformationGroup"],
    approximate_tax: ApproximateTax.from_api(payload["approximateTax"]),
    approximate_totals: ApproximateTotals.from_api(payload["approximateTotals"]),
    benefit: Benefit.from_api(payload["benefit"]),
    borrower: PartyDefinition.from_api(payload["borrower"]),
    city_service_code: payload["cityServiceCode"],
    cnae_code: payload["cnaeCode"],
    cofins_amount: payload["cofinsAmount"],
    cofins_amount_withheld: payload["cofinsAmountWithheld"],
    cofins_rate: payload["cofinsRate"],
    construction: Construction.from_api(payload["construction"]),
    csll_amount: payload["csllAmount"],
    csll_amount_withheld: payload["csllAmountWithheld"],
    csll_rate: payload["csllRate"],
    cst_pis_cofins: payload["cstPisCofins"],
    deduction: Deduction.from_api(payload["deduction"]),
    deductions_amount: payload["deductionsAmount"],
    description: payload["description"],
    discount_conditioned_amount: payload["discountConditionedAmount"],
    discount_unconditioned_amount: payload["discountUnconditionedAmount"],
    external_id: payload["externalId"],
    federal_service_code: payload["federalServiceCode"],
    foreign_trade: ForeignTrade.from_api(payload["foreignTrade"]),
    ibs_cbs: IbsCbs.from_api(payload["ibsCbs"]),
    immunity_type: payload["immunityType"],
    inss_amount_withheld: payload["inssAmountWithheld"],
    intermediary: PartyDefinition.from_api(payload["intermediary"]),
    ipi_amount: payload["ipiAmount"],
    ipi_rate: payload["ipiRate"],
    ir_amount_withheld: payload["irAmountWithheld"],
    is_early_installment_payment: payload["isEarlyInstallmentPayment"],
    iss_amount_withheld: payload["issAmountWithheld"],
    iss_rate: payload["issRate"],
    iss_tax_amount: payload["issTaxAmount"],
    issued_on: payload["issuedOn"],
    lease: Lease.from_api(payload["lease"]),
    location: AddressDefinition.from_api(payload["location"]),
    nbs_code: payload["nbsCode"],
    ncm_code: payload["ncmCode"],
    others_amount_withheld: payload["othersAmountWithheld"],
    paid_amount: payload["paidAmount"],
    pis_amount: payload["pisAmount"],
    pis_amount_withheld: payload["pisAmountWithheld"],
    pis_cofins_base_tax: payload["pisCofinsBaseTax"],
    pis_rate: payload["pisRate"],
    real_estate: RealEstate.from_api(payload["realEstate"]),
    recipient: PartyDefinition.from_api(payload["recipient"]),
    retention_type: payload["retentionType"],
    rps_number: payload["rpsNumber"],
    rps_serial_number: payload["rpsSerialNumber"],
    service_amount_details: ServiceAmountDefinitions.from_api(payload["serviceAmountDetails"]),
    services_amount: payload["servicesAmount"],
    suspension: Suspension.from_api(payload["suspension"]),
    taxation_type: payload["taxationType"],
  )
end

.newinstance

Parameters:

  • reference_substitution: (ReferenceSubstitution)
  • accrual_on: (String)
  • activity_event: (ActivityEvent)
  • additional_information: (String)
  • additional_information_group: (Hash[String, untyped])
  • approximate_tax: (ApproximateTax)
  • approximate_totals: (ApproximateTotals)
  • benefit: (Benefit)
  • borrower: (PartyDefinition)
  • city_service_code: (String)
  • cnae_code: (String)
  • cofins_amount: (Float)
  • cofins_amount_withheld: (Float)
  • cofins_rate: (Float)
  • construction: (Construction)
  • csll_amount: (Float)
  • csll_amount_withheld: (Float)
  • csll_rate: (Float)
  • cst_pis_cofins: (String)
  • deduction: (Deduction)
  • deductions_amount: (Float)
  • description: (String)
  • discount_conditioned_amount: (Float)
  • discount_unconditioned_amount: (Float)
  • external_id: (String)
  • federal_service_code: (String)
  • foreign_trade: (ForeignTrade)
  • ibs_cbs: (IbsCbs)
  • immunity_type: (String)
  • inss_amount_withheld: (Float)
  • intermediary: (PartyDefinition)
  • ipi_amount: (Float)
  • ipi_rate: (Float)
  • ir_amount_withheld: (Float)
  • is_early_installment_payment: (Boolean)
  • iss_amount_withheld: (Float)
  • iss_rate: (Float)
  • iss_tax_amount: (Float)
  • issued_on: (String)
  • lease: (Lease)
  • location: (AddressDefinition)
  • nbs_code: (String)
  • ncm_code: (String)
  • others_amount_withheld: (Float)
  • paid_amount: (Float)
  • pis_amount: (Float)
  • pis_amount_withheld: (Float)
  • pis_cofins_base_tax: (Float)
  • pis_rate: (Float)
  • real_estate: (RealEstate)
  • recipient: (PartyDefinition)
  • retention_type: (String)
  • rps_number: (Float)
  • rps_serial_number: (String)
  • service_amount_details: (ServiceAmountDefinitions)
  • services_amount: (Float)
  • suspension: (Suspension)
  • taxation_type: (String)

Returns:

  • (instance)


67
# File 'sig/nfe/generated/service_invoice_rtc_v1/nfse_request.rbs', line 67

def self.new: (?reference_substitution: ReferenceSubstitution, ?accrual_on: String, ?activity_event: ActivityEvent, ?additional_information: String, ?additional_information_group: Hash[String, untyped], ?approximate_tax: ApproximateTax, ?approximate_totals: ApproximateTotals, ?benefit: Benefit, ?borrower: PartyDefinition, city_service_code: String, ?cnae_code: String, ?cofins_amount: Float, ?cofins_amount_withheld: Float, ?cofins_rate: Float, ?construction: Construction, ?csll_amount: Float, ?csll_amount_withheld: Float, ?csll_rate: Float, ?cst_pis_cofins: String, ?deduction: Deduction, ?deductions_amount: Float, description: String, ?discount_conditioned_amount: Float, ?discount_unconditioned_amount: Float, ?external_id: String, ?federal_service_code: String, ?foreign_trade: ForeignTrade, ?ibs_cbs: IbsCbs, ?immunity_type: String, ?inss_amount_withheld: Float, ?intermediary: PartyDefinition, ?ipi_amount: Float, ?ipi_rate: Float, ?ir_amount_withheld: Float, ?is_early_installment_payment: bool, ?iss_amount_withheld: Float, ?iss_rate: Float, ?iss_tax_amount: Float, ?issued_on: String, ?lease: Lease, ?location: AddressDefinition, nbs_code: String, ?ncm_code: String, ?others_amount_withheld: Float, ?paid_amount: Float, ?pis_amount: Float, ?pis_amount_withheld: Float, ?pis_cofins_base_tax: Float, ?pis_rate: Float, ?real_estate: RealEstate, ?recipient: PartyDefinition, ?retention_type: String, ?rps_number: Float, ?rps_serial_number: String, ?service_amount_details: ServiceAmountDefinitions, services_amount: Float, ?suspension: Suspension, ?taxation_type: String) -> instance