Class: Nfe::Generated::ServiceInvoiceRtcV1::ForeignTrade
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ServiceInvoiceRtcV1::ForeignTrade
- Defined in:
- lib/nfe/generated/service_invoice_rtc_v1/foreign_trade.rb,
sig/nfe/generated/service_invoice_rtc_v1/foreign_trade.rbs
Instance Attribute Summary collapse
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#export_registration ⇒ Object
readonly
Returns the value of attribute export_registration.
-
#import_declaration ⇒ Object
readonly
Returns the value of attribute import_declaration.
-
#mdic_delivery ⇒ Object
readonly
Returns the value of attribute mdic_delivery.
-
#relation_ship ⇒ Object
readonly
Returns the value of attribute relation_ship.
-
#service_amount_in_currency ⇒ Object
readonly
Returns the value of attribute service_amount_in_currency.
-
#service_mode ⇒ Object
readonly
Returns the value of attribute service_mode.
-
#support_mechanism_provider ⇒ Object
readonly
Returns the value of attribute support_mechanism_provider.
-
#support_mechanism_receiver ⇒ Object
readonly
Returns the value of attribute support_mechanism_receiver.
-
#temporary_goods ⇒ Object
readonly
Returns the value of attribute temporary_goods.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ForeignTrade
constructor
A new instance of ForeignTrade.
Constructor Details
#initialize ⇒ ForeignTrade
Returns a new instance of ForeignTrade.
20 |
# File 'sig/nfe/generated/service_invoice_rtc_v1/foreign_trade.rbs', line 20
def initialize: (?currency: String, ?export_registration: String, ?import_declaration: String, ?mdic_delivery: bool, ?relation_ship: String, ?service_amount_in_currency: Float, ?service_mode: String, ?support_mechanism_provider: String, ?support_mechanism_receiver: String, ?temporary_goods: String) -> void
|
Instance Attribute Details
#currency ⇒ Object (readonly)
Returns the value of attribute currency
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/foreign_trade.rb', line 9 def currency @currency end |
#export_registration ⇒ Object (readonly)
Returns the value of attribute export_registration
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/foreign_trade.rb', line 9 def export_registration @export_registration end |
#import_declaration ⇒ Object (readonly)
Returns the value of attribute import_declaration
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/foreign_trade.rb', line 9 def import_declaration @import_declaration end |
#mdic_delivery ⇒ Object (readonly)
Returns the value of attribute mdic_delivery
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/foreign_trade.rb', line 9 def mdic_delivery @mdic_delivery end |
#relation_ship ⇒ Object (readonly)
Returns the value of attribute relation_ship
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/foreign_trade.rb', line 9 def relation_ship @relation_ship end |
#service_amount_in_currency ⇒ Object (readonly)
Returns the value of attribute service_amount_in_currency
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/foreign_trade.rb', line 9 def service_amount_in_currency @service_amount_in_currency end |
#service_mode ⇒ Object (readonly)
Returns the value of attribute service_mode
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/foreign_trade.rb', line 9 def service_mode @service_mode end |
#support_mechanism_provider ⇒ Object (readonly)
Returns the value of attribute support_mechanism_provider
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/foreign_trade.rb', line 9 def support_mechanism_provider @support_mechanism_provider end |
#support_mechanism_receiver ⇒ Object (readonly)
Returns the value of attribute support_mechanism_receiver
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/foreign_trade.rb', line 9 def support_mechanism_receiver @support_mechanism_receiver end |
#temporary_goods ⇒ Object (readonly)
Returns the value of attribute temporary_goods
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/foreign_trade.rb', line 9 def temporary_goods @temporary_goods end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/foreign_trade.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( currency: payload["currency"], export_registration: payload["exportRegistration"], import_declaration: payload["importDeclaration"], mdic_delivery: payload["mdicDelivery"], relation_ship: payload["relationShip"], service_amount_in_currency: payload["serviceAmountInCurrency"], service_mode: payload["serviceMode"], support_mechanism_provider: payload["supportMechanismProvider"], support_mechanism_receiver: payload["supportMechanismReceiver"], temporary_goods: payload["temporaryGoods"], ) end |
.new ⇒ instance
19 |
# File 'sig/nfe/generated/service_invoice_rtc_v1/foreign_trade.rbs', line 19
def self.new: (?currency: String, ?export_registration: String, ?import_declaration: String, ?mdic_delivery: bool, ?relation_ship: String, ?service_amount_in_currency: Float, ?service_mode: String, ?support_mechanism_provider: String, ?support_mechanism_receiver: String, ?temporary_goods: String) -> instance
|