Class: Nfe::Generated::ProductInvoiceRtcV1::CardResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ProductInvoiceRtcV1::CardResource
- Defined in:
- lib/nfe/generated/product_invoice_rtc_v1/card_resource.rb,
sig/nfe/generated/product_invoice_rtc_v1/card_resource.rbs
Instance Attribute Summary collapse
-
#authorization ⇒ Object
readonly
Returns the value of attribute authorization.
-
#federal_tax_number ⇒ Object
readonly
Returns the value of attribute federal_tax_number.
-
#federal_tax_number_recipient ⇒ Object
readonly
Returns the value of attribute federal_tax_number_recipient.
-
#flag ⇒ Object
readonly
Returns the value of attribute flag.
-
#id_payment_terminal ⇒ Object
readonly
Returns the value of attribute id_payment_terminal.
-
#integration_payment_type ⇒ Object
readonly
Returns the value of attribute integration_payment_type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ CardResource
constructor
A new instance of CardResource.
Constructor Details
#initialize ⇒ CardResource
Returns a new instance of CardResource.
16 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/card_resource.rbs', line 16
def initialize: (?authorization: String?, ?federal_tax_number: String?, ?federal_tax_number_recipient: String?, ?flag: untyped, ?id_payment_terminal: String?, ?integration_payment_type: untyped) -> void
|
Instance Attribute Details
#authorization ⇒ Object (readonly)
Returns the value of attribute authorization
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/card_resource.rb', line 9 def @authorization end |
#federal_tax_number ⇒ Object (readonly)
Returns the value of attribute federal_tax_number
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/card_resource.rb', line 9 def federal_tax_number @federal_tax_number end |
#federal_tax_number_recipient ⇒ Object (readonly)
Returns the value of attribute federal_tax_number_recipient
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/card_resource.rb', line 9 def federal_tax_number_recipient @federal_tax_number_recipient end |
#flag ⇒ Object (readonly)
Returns the value of attribute flag
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/card_resource.rb', line 9 def flag @flag end |
#id_payment_terminal ⇒ Object (readonly)
Returns the value of attribute id_payment_terminal
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/card_resource.rb', line 9 def id_payment_terminal @id_payment_terminal end |
#integration_payment_type ⇒ Object (readonly)
Returns the value of attribute integration_payment_type
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/card_resource.rb', line 9 def integration_payment_type @integration_payment_type end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/card_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( authorization: payload["authorization"], federal_tax_number: payload["federalTaxNumber"], federal_tax_number_recipient: payload["federalTaxNumberRecipient"], flag: payload["flag"], id_payment_terminal: payload["idPaymentTerminal"], integration_payment_type: payload["integrationPaymentType"], ) end |
.new ⇒ instance
15 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/card_resource.rbs', line 15
def self.new: (?authorization: String?, ?federal_tax_number: String?, ?federal_tax_number_recipient: String?, ?flag: untyped, ?id_payment_terminal: String?, ?integration_payment_type: untyped) -> instance
|