Class: Nfe::Pending
- Inherits:
-
Data
- Object
- Data
- Nfe::Pending
- Defined in:
- lib/nfe/results.rb,
sig/nfe/results.rbs
Overview
Result of an asynchronous (HTTP 202) invoice operation: the API accepted the request and is processing it. The document is not yet materialized.
invoice_id is parsed from the Location header's final path segment;
location is the raw header value. Discriminate against Issued with
+is_a?+/+case+ and poll FlowStatus.terminal? until settled.
Instance Attribute Summary collapse
-
#invoice_id ⇒ Object
readonly
Returns the value of attribute invoice_id.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Pending
constructor
A new instance of Pending.
Constructor Details
#initialize(invoice_id, location) ⇒ void #initialize(invoice_id:, location:) ⇒ void
Returns a new instance of Pending.
9 10 |
# File 'sig/nfe/results.rbs', line 9
def initialize: (untyped invoice_id, untyped location) -> void
| (invoice_id: untyped, location: untyped) -> void
|
Instance Attribute Details
#invoice_id ⇒ Object (readonly)
Returns the value of attribute invoice_id.
3 4 5 |
# File 'sig/nfe/results.rbs', line 3 def invoice_id @invoice_id end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
4 5 6 |
# File 'sig/nfe/results.rbs', line 4 def location @location end |
Class Method Details
.new(invoice_id, location) ⇒ instance .new(invoice_id:, location:) ⇒ instance
6 7 |
# File 'sig/nfe/results.rbs', line 6
def self.new: (untyped invoice_id, untyped location) -> instance
| (invoice_id: untyped, location: untyped) -> instance
|