Class: Pago::V2026_04::Models::OrderInvoice
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Overview
Order's invoice data.
Constant Summary collapse
- JSON_KEYS =
{ url: "url" }.freeze
- REQUIRED_KEYS =
["url"].freeze
Instance Attribute Summary collapse
-
#url ⇒ String
readonly
The URL to the invoice.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(url:) ⇒ OrderInvoice
constructor
A new instance of OrderInvoice.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(url:) ⇒ OrderInvoice
Returns a new instance of OrderInvoice.
32478 32479 32480 32481 32482 32483 |
# File 'lib/pago/v2026_04/models.rb', line 32478 def initialize( url: ) super() assign(:url, url) end |
Instance Attribute Details
#url ⇒ String (readonly)
The URL to the invoice.
32476 32477 32478 |
# File 'lib/pago/v2026_04/models.rb', line 32476 def url @url end |
Class Method Details
.from_json(data) ⇒ OrderInvoice?
32487 32488 32489 32490 32491 32492 32493 32494 32495 32496 32497 32498 |
# File 'lib/pago/v2026_04/models.rb', line 32487 def self.from_json(data) data = ::JSON.parse(data) if data.is_a?(String) data = ::Pago::Serde.object(data) return nil if data.nil? wrap_raw( new( url: (data.key?("url") ? data["url"] : ::Pago::UNSET) ), data ) end |