Class: Nfe::Generated::NfProdutoV2::TransportGroupResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfProdutoV2::TransportGroupResource
- Defined in:
- lib/nfe/generated/nf_produto_v2/transport_group_resource.rb,
sig/nfe/generated/nf_produto_v2/transport_group_resource.rbs
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#federal_tax_number ⇒ Object
readonly
Returns the value of attribute federal_tax_number.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#state_tax_number ⇒ Object
readonly
Returns the value of attribute state_tax_number.
-
#transport_retention ⇒ Object
readonly
Returns the value of attribute transport_retention.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TransportGroupResource
constructor
A new instance of TransportGroupResource.
Constructor Details
#initialize ⇒ TransportGroupResource
Returns a new instance of TransportGroupResource.
19 |
# File 'sig/nfe/generated/nf_produto_v2/transport_group_resource.rbs', line 19
def initialize: (?account_id: String?, ?address: AddressResource, ?email: String?, ?federal_tax_number: Integer?, ?id: String?, ?name: String?, ?state_tax_number: String?, ?transport_retention: String?, ?type: untyped) -> void
|
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_group_resource.rb', line 9 def account_id @account_id end |
#address ⇒ Object (readonly)
Returns the value of attribute address
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_group_resource.rb', line 9 def address @address end |
#email ⇒ Object (readonly)
Returns the value of attribute email
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_group_resource.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/nf_produto_v2/transport_group_resource.rb', line 9 def federal_tax_number @federal_tax_number end |
#id ⇒ Object (readonly)
Returns the value of attribute id
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_group_resource.rb', line 9 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_group_resource.rb', line 9 def name @name end |
#state_tax_number ⇒ Object (readonly)
Returns the value of attribute state_tax_number
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_group_resource.rb', line 9 def state_tax_number @state_tax_number end |
#transport_retention ⇒ Object (readonly)
Returns the value of attribute transport_retention
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_group_resource.rb', line 9 def transport_retention @transport_retention end |
#type ⇒ Object (readonly)
Returns the value of attribute type
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/transport_group_resource.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 |
# File 'lib/nfe/generated/nf_produto_v2/transport_group_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( account_id: payload["accountId"], address: AddressResource.from_api(payload["address"]), email: payload["email"], federal_tax_number: payload["federalTaxNumber"], id: payload["id"], name: payload["name"], state_tax_number: payload["stateTaxNumber"], transport_retention: payload["transportRetention"], type: payload["type"], ) end |
.new ⇒ instance
18 |
# File 'sig/nfe/generated/nf_produto_v2/transport_group_resource.rbs', line 18
def self.new: (?account_id: String?, ?address: AddressResource, ?email: String?, ?federal_tax_number: Integer?, ?id: String?, ?name: String?, ?state_tax_number: String?, ?transport_retention: String?, ?type: untyped) -> instance
|