Class: Stigg::Models::V1::ContractRetrieveResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::ContractRetrieveResponse::Data
- Defined in:
- lib/stigg/models/v1/contract_retrieve_response.rb,
sig/stigg/models/v1/contract_retrieve_response.rbs
Overview
Defined Under Namespace
Modules: State Classes: LatestInvoice, NextInvoice, Subscription
Instance Attribute Summary collapse
-
#activation_end_date ⇒ Time?
The date the contract activation ends.
-
#activation_start_date ⇒ Time?
The date the contract becomes active.
-
#billing_id ⇒ String?
The billing provider (Received) contract ID; null until the contract has synced to the billing provider.
-
#contract_id ⇒ String
The Stigg contract ref ID (the key used to fetch/update/delete this contract).
-
#created_at ⇒ Time?
The date the contract was created.
-
#customer_external_id ⇒ String?
The external identifier of the customer the contract belongs to.
-
#external_id ⇒ String
The external identifier of the contract.
-
#id ⇒ String?
The persisted Stigg contract id (matches a subscription’s contractId; present for Stigg-managed contracts).
-
#latest_invoice ⇒ Stigg::Models::V1::ContractRetrieveResponse::Data::LatestInvoice?
The most recent non-draft invoice for this contract (open, paid, or canceled), or null when none exists.
-
#name ⇒ String?
The contract name (the purchase-order number when set, otherwise the contract/customer name).
-
#next_invoice ⇒ Stigg::Models::V1::ContractRetrieveResponse::Data::NextInvoice?
A preview of the contract's upcoming invoice, or null when none is available.
-
#po_number ⇒ String?
Purchase-order number, when set on the contract.
-
#ref_id ⇒ String?
The Stigg contract ref ID (present for Stigg-managed contracts; the key used to update/delete).
-
#state ⇒ Symbol, Stigg::Models::V1::ContractRetrieveResponse::Data::State
The current state of the contract.
-
#subscriptions ⇒ Array<Stigg::Models::V1::ContractRetrieveResponse::Data::Subscription>
The custom subscriptions attached to this contract (empty when none).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, activation_end_date:, activation_start_date:, billing_id:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:) ⇒ Object
constructor
Some parameter documentations has been truncated, see Data for more details.
- #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(id:, activation_end_date:, activation_start_date:, billing_id:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:) ⇒ Object
Some parameter documentations has been truncated, see Stigg::Models::V1::ContractRetrieveResponse::Data for more details.
A billing contract as reported by the connected billing provider.
|
|
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 123
|
Instance Attribute Details
#activation_end_date ⇒ Time?
The date the contract activation ends
32 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 32 required :activation_end_date, Time, api_name: :activationEndDate, nil?: true |
#activation_start_date ⇒ Time?
The date the contract becomes active
38 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 38 required :activation_start_date, Time, api_name: :activationStartDate, nil?: true |
#billing_id ⇒ String?
The billing provider (Received) contract ID; null until the contract has synced to the billing provider
45 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 45 required :billing_id, String, api_name: :billingId, nil?: true |
#contract_id ⇒ String
The Stigg contract ref ID (the key used to fetch/update/delete this contract)
51 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 51 required :contract_id, String, api_name: :contractId |
#created_at ⇒ Time?
The date the contract was created
57 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 57 required :created_at, Time, api_name: :createdAt, nil?: true |
#customer_external_id ⇒ String?
The external identifier of the customer the contract belongs to
63 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 63 required :customer_external_id, String, api_name: :customerExternalId, nil?: true |
#external_id ⇒ String
The external identifier of the contract
69 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 69 required :external_id, String, api_name: :externalId |
#id ⇒ String?
The persisted Stigg contract id (matches a subscription’s contractId; present for Stigg-managed contracts)
26 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 26 required :id, String, nil?: true |
#latest_invoice ⇒ Stigg::Models::V1::ContractRetrieveResponse::Data::LatestInvoice?
The most recent non-draft invoice for this contract (open, paid, or canceled), or null when none exists
76 77 78 79 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 76 required :latest_invoice, -> { Stigg::Models::V1::ContractRetrieveResponse::Data::LatestInvoice }, api_name: :latestInvoice, nil?: true |
#name ⇒ String?
The contract name (the purchase-order number when set, otherwise the contract/customer name)
86 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 86 required :name, String, nil?: true |
#next_invoice ⇒ Stigg::Models::V1::ContractRetrieveResponse::Data::NextInvoice?
A preview of the contract's upcoming invoice, or null when none is available
92 93 94 95 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 92 required :next_invoice, -> { Stigg::Models::V1::ContractRetrieveResponse::Data::NextInvoice }, api_name: :nextInvoice, nil?: true |
#po_number ⇒ String?
Purchase-order number, when set on the contract
101 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 101 required :po_number, String, api_name: :poNumber, nil?: true |
#ref_id ⇒ String?
The Stigg contract ref ID (present for Stigg-managed contracts; the key used to update/delete)
108 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 108 required :ref_id, String, api_name: :refId, nil?: true |
#state ⇒ Symbol, Stigg::Models::V1::ContractRetrieveResponse::Data::State
The current state of the contract
114 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 114 required :state, enum: -> { Stigg::Models::V1::ContractRetrieveResponse::Data::State } |
#subscriptions ⇒ Array<Stigg::Models::V1::ContractRetrieveResponse::Data::Subscription>
The custom subscriptions attached to this contract (empty when none)
120 121 |
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 120 required :subscriptions, -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::ContractRetrieveResponse::Data::Subscription] } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/stigg/models/v1/contract_retrieve_response.rb', line 267
|
Instance Method Details
#to_hash ⇒ {
86 |
# File 'sig/stigg/models/v1/contract_retrieve_response.rbs', line 86
def to_hash: -> {
|