Class: Nfe::Generated::NfProdutoV2::InvoiceWithoutEventsResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfProdutoV2::InvoiceWithoutEventsResource
- Defined in:
- lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb,
sig/nfe/generated/nf_produto_v2/invoice_without_events_resource.rbs
Instance Attribute Summary collapse
-
#additional_information ⇒ Object
readonly
Returns the value of attribute additional_information.
-
#authorization ⇒ Object
readonly
Returns the value of attribute authorization.
-
#billing ⇒ Object
readonly
Returns the value of attribute billing.
-
#buyer ⇒ Object
readonly
Returns the value of attribute buyer.
-
#contingency_details ⇒ Object
readonly
Returns the value of attribute contingency_details.
-
#created_on ⇒ Object
readonly
Returns the value of attribute created_on.
-
#delivery ⇒ Object
readonly
Returns the value of attribute delivery.
-
#environment_type ⇒ Object
readonly
Returns the value of attribute environment_type.
-
#export ⇒ Object
readonly
Returns the value of attribute export.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#issuer ⇒ Object
readonly
Returns the value of attribute issuer.
-
#modified_on ⇒ Object
readonly
Returns the value of attribute modified_on.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#operation_nature ⇒ Object
readonly
Returns the value of attribute operation_nature.
-
#operation_on ⇒ Object
readonly
Returns the value of attribute operation_on.
-
#operation_type ⇒ Object
readonly
Returns the value of attribute operation_type.
-
#payment ⇒ Object
readonly
Returns the value of attribute payment.
-
#purpose_type ⇒ Object
readonly
Returns the value of attribute purpose_type.
-
#serie ⇒ Object
readonly
Returns the value of attribute serie.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#totals ⇒ Object
readonly
Returns the value of attribute totals.
-
#transaction_intermediate ⇒ Object
readonly
Returns the value of attribute transaction_intermediate.
-
#transport ⇒ Object
readonly
Returns the value of attribute transport.
-
#withdrawal ⇒ Object
readonly
Returns the value of attribute withdrawal.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ InvoiceWithoutEventsResource
constructor
A new instance of InvoiceWithoutEventsResource.
Constructor Details
#initialize ⇒ InvoiceWithoutEventsResource
Returns a new instance of InvoiceWithoutEventsResource.
34 |
# File 'sig/nfe/generated/nf_produto_v2/invoice_without_events_resource.rbs', line 34
def initialize: (?additional_information: AdditionalInformationResource, ?authorization: AuthorizationResource, ?billing: BillingResource, ?buyer: BuyerResource, ?contingency_details: ContingencyDetails, ?created_on: String?, ?delivery: DeliveryInformationResource, ?environment_type: untyped, ?export: ExportResource, ?id: String?, ?issuer: IssuerResource, ?modified_on: String?, ?number: Integer?, ?operation_nature: String?, ?operation_on: String?, ?operation_type: untyped, ?payment: Array[PaymentResource]?, ?purpose_type: untyped, ?serie: Integer?, ?status: untyped, ?totals: TotalResource, ?transaction_intermediate: IntermediateResource, ?transport: TransportInformationResource, ?withdrawal: WithdrawalInformationResource) -> void
|
Instance Attribute Details
#additional_information ⇒ Object (readonly)
Returns the value of attribute additional_information
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def additional_information @additional_information end |
#authorization ⇒ Object (readonly)
Returns the value of attribute authorization
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def @authorization end |
#billing ⇒ Object (readonly)
Returns the value of attribute billing
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def billing @billing end |
#buyer ⇒ Object (readonly)
Returns the value of attribute buyer
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def buyer @buyer end |
#contingency_details ⇒ Object (readonly)
Returns the value of attribute contingency_details
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def contingency_details @contingency_details end |
#created_on ⇒ Object (readonly)
Returns the value of attribute created_on
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def created_on @created_on end |
#delivery ⇒ Object (readonly)
Returns the value of attribute delivery
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def delivery @delivery end |
#environment_type ⇒ Object (readonly)
Returns the value of attribute environment_type
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def environment_type @environment_type end |
#export ⇒ Object (readonly)
Returns the value of attribute export
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def export @export end |
#id ⇒ Object (readonly)
Returns the value of attribute id
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def id @id end |
#issuer ⇒ Object (readonly)
Returns the value of attribute issuer
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def issuer @issuer end |
#modified_on ⇒ Object (readonly)
Returns the value of attribute modified_on
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def modified_on @modified_on end |
#number ⇒ Object (readonly)
Returns the value of attribute number
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def number @number end |
#operation_nature ⇒ Object (readonly)
Returns the value of attribute operation_nature
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def operation_nature @operation_nature end |
#operation_on ⇒ Object (readonly)
Returns the value of attribute operation_on
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def operation_on @operation_on end |
#operation_type ⇒ Object (readonly)
Returns the value of attribute operation_type
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def operation_type @operation_type end |
#payment ⇒ Object (readonly)
Returns the value of attribute payment
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def payment @payment end |
#purpose_type ⇒ Object (readonly)
Returns the value of attribute purpose_type
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def purpose_type @purpose_type end |
#serie ⇒ Object (readonly)
Returns the value of attribute serie
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def serie @serie end |
#status ⇒ Object (readonly)
Returns the value of attribute status
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def status @status end |
#totals ⇒ Object (readonly)
Returns the value of attribute totals
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def totals @totals end |
#transaction_intermediate ⇒ Object (readonly)
Returns the value of attribute transaction_intermediate
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def transaction_intermediate @transaction_intermediate end |
#transport ⇒ Object (readonly)
Returns the value of attribute transport
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def transport @transport end |
#withdrawal ⇒ Object (readonly)
Returns the value of attribute withdrawal
9 10 11 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 9 def withdrawal @withdrawal 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 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/nfe/generated/nf_produto_v2/invoice_without_events_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( additional_information: AdditionalInformationResource.from_api(payload["additionalInformation"]), authorization: AuthorizationResource.from_api(payload["authorization"]), billing: BillingResource.from_api(payload["billing"]), buyer: BuyerResource.from_api(payload["buyer"]), contingency_details: ContingencyDetails.from_api(payload["contingencyDetails"]), created_on: payload["createdOn"], delivery: DeliveryInformationResource.from_api(payload["delivery"]), environment_type: payload["environmentType"], export: ExportResource.from_api(payload["export"]), id: payload["id"], issuer: IssuerResource.from_api(payload["issuer"]), modified_on: payload["modifiedOn"], number: payload["number"], operation_nature: payload["operationNature"], operation_on: payload["operationOn"], operation_type: payload["operationType"], payment: (payload["payment"] || []).map { |e| PaymentResource.from_api(e) }, purpose_type: payload["purposeType"], serie: payload["serie"], status: payload["status"], totals: TotalResource.from_api(payload["totals"]), transaction_intermediate: IntermediateResource.from_api(payload["transactionIntermediate"]), transport: TransportInformationResource.from_api(payload["transport"]), withdrawal: WithdrawalInformationResource.from_api(payload["withdrawal"]), ) end |
.new ⇒ instance
33 |
# File 'sig/nfe/generated/nf_produto_v2/invoice_without_events_resource.rbs', line 33
def self.new: (?additional_information: AdditionalInformationResource, ?authorization: AuthorizationResource, ?billing: BillingResource, ?buyer: BuyerResource, ?contingency_details: ContingencyDetails, ?created_on: String?, ?delivery: DeliveryInformationResource, ?environment_type: untyped, ?export: ExportResource, ?id: String?, ?issuer: IssuerResource, ?modified_on: String?, ?number: Integer?, ?operation_nature: String?, ?operation_on: String?, ?operation_type: untyped, ?payment: Array[PaymentResource]?, ?purpose_type: untyped, ?serie: Integer?, ?status: untyped, ?totals: TotalResource, ?transaction_intermediate: IntermediateResource, ?transport: TransportInformationResource, ?withdrawal: WithdrawalInformationResource) -> instance
|