Class: Stigg::Models::V1::ContractListResponse::LatestInvoice
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::ContractListResponse::LatestInvoice
- Defined in:
- lib/stigg/models/v1/contract_list_response.rb,
sig/stigg/models/v1/contract_list_response.rbs
Overview
Defined Under Namespace
Modules: BillingReason, Status
Instance Attribute Summary collapse
-
#amount_due ⇒ Float?
Amount due.
-
#billing_id ⇒ String
Invoice billing ID.
-
#billing_reason ⇒ Symbol, ...
Billing reason.
-
#created_at ⇒ Time
Invoice creation date.
-
#currency ⇒ String?
Invoice currency.
-
#pdf_url ⇒ String?
Invoice PDF URL.
-
#requires_action ⇒ Boolean
Whether payment requires action.
-
#status ⇒ Symbol, Stigg::Models::V1::ContractListResponse::LatestInvoice::Status
Invoice status.
-
#total ⇒ Float?
Total amount.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(billing_id:, created_at:, requires_action:, status:, amount_due: nil, billing_reason: nil, currency: nil, pdf_url: nil, total: nil) ⇒ Object
constructor
The most recent non-draft invoice for this contract (open, paid, or canceled), or null when none exists.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(billing_id:, created_at:, requires_action:, status:, amount_due: nil, billing_reason: nil, currency: nil, pdf_url: nil, total: nil) ⇒ Object
The most recent non-draft invoice for this contract (open, paid, or canceled), or null when none exists
|
|
# File 'lib/stigg/models/v1/contract_list_response.rb', line 231
|
Instance Attribute Details
#amount_due ⇒ Float?
Amount due
202 |
# File 'lib/stigg/models/v1/contract_list_response.rb', line 202 optional :amount_due, Float, api_name: :amountDue, nil?: true |
#billing_id ⇒ String
Invoice billing ID
178 |
# File 'lib/stigg/models/v1/contract_list_response.rb', line 178 required :billing_id, String, api_name: :billingId |
#billing_reason ⇒ Symbol, ...
Billing reason
208 209 210 211 |
# File 'lib/stigg/models/v1/contract_list_response.rb', line 208 optional :billing_reason, enum: -> { Stigg::Models::V1::ContractListResponse::LatestInvoice::BillingReason }, api_name: :billingReason, nil?: true |
#created_at ⇒ Time
Invoice creation date
184 |
# File 'lib/stigg/models/v1/contract_list_response.rb', line 184 required :created_at, Time, api_name: :createdAt |
#currency ⇒ String?
Invoice currency
217 |
# File 'lib/stigg/models/v1/contract_list_response.rb', line 217 optional :currency, String, nil?: true |
#pdf_url ⇒ String?
Invoice PDF URL
223 |
# File 'lib/stigg/models/v1/contract_list_response.rb', line 223 optional :pdf_url, String, api_name: :pdfUrl, nil?: true |
#requires_action ⇒ Boolean
Whether payment requires action
190 |
# File 'lib/stigg/models/v1/contract_list_response.rb', line 190 required :requires_action, Stigg::Internal::Type::Boolean, api_name: :requiresAction |
#status ⇒ Symbol, Stigg::Models::V1::ContractListResponse::LatestInvoice::Status
Invoice status
196 |
# File 'lib/stigg/models/v1/contract_list_response.rb', line 196 required :status, enum: -> { Stigg::Models::V1::ContractListResponse::LatestInvoice::Status } |
#total ⇒ Float?
Total amount
229 |
# File 'lib/stigg/models/v1/contract_list_response.rb', line 229 optional :total, Float, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/stigg/models/v1/contract_list_response.rb', line 263
|
Instance Method Details
#to_hash ⇒ {
152 |
# File 'sig/stigg/models/v1/contract_list_response.rbs', line 152
def to_hash: -> {
|