Class: Nfe::Generated::ProductInvoiceRtcV1::PaymentDetailResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ProductInvoiceRtcV1::PaymentDetailResource
- Defined in:
- lib/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rb,
sig/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rbs
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#card ⇒ Object
readonly
Returns the value of attribute card.
-
#federal_tax_number_pag ⇒ Object
readonly
Returns the value of attribute federal_tax_number_pag.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#method_description ⇒ Object
readonly
Returns the value of attribute method_description.
-
#payment_date ⇒ Object
readonly
Returns the value of attribute payment_date.
-
#payment_type ⇒ Object
readonly
Returns the value of attribute payment_type.
-
#state_pag ⇒ Object
readonly
Returns the value of attribute state_pag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ PaymentDetailResource
constructor
A new instance of PaymentDetailResource.
Constructor Details
#initialize ⇒ PaymentDetailResource
Returns a new instance of PaymentDetailResource.
18 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rbs', line 18
def initialize: (amount: Float, ?card: CardResource, ?federal_tax_number_pag: String?, method: untyped, ?method_description: String?, ?payment_date: String?, ?payment_type: untyped, ?state_pag: String?) -> void
|
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rb', line 9 def amount @amount end |
#card ⇒ Object (readonly)
Returns the value of attribute card
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rb', line 9 def card @card end |
#federal_tax_number_pag ⇒ Object (readonly)
Returns the value of attribute federal_tax_number_pag
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rb', line 9 def federal_tax_number_pag @federal_tax_number_pag end |
#method ⇒ Object (readonly)
Returns the value of attribute method
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rb', line 9 def method @method end |
#method_description ⇒ Object (readonly)
Returns the value of attribute method_description
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rb', line 9 def method_description @method_description end |
#payment_date ⇒ Object (readonly)
Returns the value of attribute payment_date
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rb', line 9 def payment_date @payment_date end |
#payment_type ⇒ Object (readonly)
Returns the value of attribute payment_type
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rb', line 9 def payment_type @payment_type end |
#state_pag ⇒ Object (readonly)
Returns the value of attribute state_pag
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rb', line 9 def state_pag @state_pag end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( amount: payload["amount"], card: CardResource.from_api(payload["card"]), federal_tax_number_pag: payload["federalTaxNumberPag"], method: payload["method"], method_description: payload["methodDescription"], payment_date: payload["paymentDate"], payment_type: payload["paymentType"], state_pag: payload["statePag"], ) end |
.new ⇒ instance
17 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/payment_detail_resource.rbs', line 17
def self.new: (amount: Float, ?card: CardResource, ?federal_tax_number_pag: String?, method: untyped, ?method_description: String?, ?payment_date: String?, ?payment_type: untyped, ?state_pag: String?) -> instance
|