Class: Nfe::Generated::ServiceInvoiceRtcV1::ForeignTrade

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeForeignTrade

Returns a new instance of ForeignTrade.

Parameters:

  • currency: (String)
  • export_registration: (String)
  • import_declaration: (String)
  • mdic_delivery: (Boolean)
  • relation_ship: (String)
  • service_amount_in_currency: (Float)
  • service_mode: (String)
  • support_mechanism_provider: (String)
  • support_mechanism_receiver: (String)
  • temporary_goods: (String)


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

#currencyObject (readonly)

Returns the value of attribute currency

Returns:

  • (Object)

    the current value of currency



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

def currency
  @currency
end

#export_registrationObject (readonly)

Returns the value of attribute export_registration

Returns:

  • (Object)

    the current value of 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_declarationObject (readonly)

Returns the value of attribute import_declaration

Returns:

  • (Object)

    the current value of 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_deliveryObject (readonly)

Returns the value of attribute mdic_delivery

Returns:

  • (Object)

    the current value of 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_shipObject (readonly)

Returns the value of attribute relation_ship

Returns:

  • (Object)

    the current value of 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_currencyObject (readonly)

Returns the value of attribute service_amount_in_currency

Returns:

  • (Object)

    the current value of 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_modeObject (readonly)

Returns the value of attribute service_mode

Returns:

  • (Object)

    the current value of 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_providerObject (readonly)

Returns the value of attribute support_mechanism_provider

Returns:

  • (Object)

    the current value of 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_receiverObject (readonly)

Returns the value of attribute support_mechanism_receiver

Returns:

  • (Object)

    the current value of 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_goodsObject (readonly)

Returns the value of attribute temporary_goods

Returns:

  • (Object)

    the current value of 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?

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
# 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

.newinstance

Parameters:

  • currency: (String)
  • export_registration: (String)
  • import_declaration: (String)
  • mdic_delivery: (Boolean)
  • relation_ship: (String)
  • service_amount_in_currency: (Float)
  • service_mode: (String)
  • support_mechanism_provider: (String)
  • support_mechanism_receiver: (String)
  • temporary_goods: (String)

Returns:

  • (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