Class: Nfe::Generated::ServiceInvoiceRtcV1::PartyDefinition
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ServiceInvoiceRtcV1::PartyDefinition
- Defined in:
- lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb,
sig/nfe/generated/service_invoice_rtc_v1/party_definition.rbs
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#caepf ⇒ Object
readonly
Returns the value of attribute caepf.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#federal_tax_number ⇒ Object
readonly
Returns the value of attribute federal_tax_number.
-
#municipal_tax_number ⇒ Object
readonly
Returns the value of attribute municipal_tax_number.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#no_tax_id_reason ⇒ Object
readonly
Returns the value of attribute no_tax_id_reason.
-
#phone_number ⇒ Object
readonly
Returns the value of attribute phone_number.
-
#state_tax_number ⇒ Object
readonly
Returns the value of attribute state_tax_number.
-
#tax_regime ⇒ Object
readonly
Returns the value of attribute tax_regime.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ PartyDefinition
constructor
A new instance of PartyDefinition.
Constructor Details
#initialize ⇒ PartyDefinition
Returns a new instance of PartyDefinition.
21 |
# File 'sig/nfe/generated/service_invoice_rtc_v1/party_definition.rbs', line 21
def initialize: (?address: AddressDefinition, ?caepf: String, ?email: String, ?federal_tax_number: Float, ?municipal_tax_number: String, ?name: String, ?no_tax_id_reason: String, ?phone_number: String, ?state_tax_number: String, ?tax_regime: String, ?type: String) -> void
|
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb', line 9 def address @address end |
#caepf ⇒ Object (readonly)
Returns the value of attribute caepf
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb', line 9 def caepf @caepf end |
#email ⇒ Object (readonly)
Returns the value of attribute email
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb', line 9 def email @email end |
#federal_tax_number ⇒ Object (readonly)
Returns the value of attribute federal_tax_number
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb', line 9 def federal_tax_number @federal_tax_number end |
#municipal_tax_number ⇒ Object (readonly)
Returns the value of attribute municipal_tax_number
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb', line 9 def municipal_tax_number @municipal_tax_number end |
#name ⇒ Object (readonly)
Returns the value of attribute name
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb', line 9 def name @name end |
#no_tax_id_reason ⇒ Object (readonly)
Returns the value of attribute no_tax_id_reason
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb', line 9 def no_tax_id_reason @no_tax_id_reason end |
#phone_number ⇒ Object (readonly)
Returns the value of attribute phone_number
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb', line 9 def phone_number @phone_number end |
#state_tax_number ⇒ Object (readonly)
Returns the value of attribute state_tax_number
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb', line 9 def state_tax_number @state_tax_number end |
#tax_regime ⇒ Object (readonly)
Returns the value of attribute tax_regime
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb', line 9 def tax_regime @tax_regime end |
#type ⇒ Object (readonly)
Returns the value of attribute type
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb', line 9 def type @type 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 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/party_definition.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( address: AddressDefinition.from_api(payload["address"]), caepf: payload["caepf"], email: payload["email"], federal_tax_number: payload["federalTaxNumber"], municipal_tax_number: payload["municipalTaxNumber"], name: payload["name"], no_tax_id_reason: payload["noTaxIdReason"], phone_number: payload["phoneNumber"], state_tax_number: payload["stateTaxNumber"], tax_regime: payload["taxRegime"], type: payload["type"], ) end |
.new ⇒ instance
20 |
# File 'sig/nfe/generated/service_invoice_rtc_v1/party_definition.rbs', line 20
def self.new: (?address: AddressDefinition, ?caepf: String, ?email: String, ?federal_tax_number: Float, ?municipal_tax_number: String, ?name: String, ?no_tax_id_reason: String, ?phone_number: String, ?state_tax_number: String, ?tax_regime: String, ?type: String) -> instance
|