stigg 0.1.0.pre.beta.46 → 0.1.0.pre.beta.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/stigg/models/v1/contract_create_response.rb +27 -1
- data/lib/stigg/models/v1/contract_delete_response.rb +27 -1
- data/lib/stigg/models/v1/contract_list_response.rb +27 -1
- data/lib/stigg/models/v1/contract_retrieve_response.rb +27 -1
- data/lib/stigg/models/v1/contract_update_response.rb +27 -1
- data/lib/stigg/models/v1/credit_get_usage_response.rb +23 -2
- data/lib/stigg/models/v1/customer_list_contracts_response.rb +27 -1
- data/lib/stigg/version.rb +1 -1
- data/rbi/stigg/models/v1/contract_create_response.rbi +65 -0
- data/rbi/stigg/models/v1/contract_delete_response.rbi +65 -0
- data/rbi/stigg/models/v1/contract_list_response.rbi +65 -0
- data/rbi/stigg/models/v1/contract_retrieve_response.rbi +65 -0
- data/rbi/stigg/models/v1/contract_update_response.rbi +65 -0
- data/rbi/stigg/models/v1/credit_get_usage_response.rbi +28 -2
- data/rbi/stigg/models/v1/customer_list_contracts_response.rbi +65 -0
- data/sig/stigg/models/v1/contract_create_response.rbs +18 -0
- data/sig/stigg/models/v1/contract_delete_response.rbs +18 -0
- data/sig/stigg/models/v1/contract_list_response.rbs +18 -0
- data/sig/stigg/models/v1/contract_retrieve_response.rbs +18 -0
- data/sig/stigg/models/v1/contract_update_response.rbs +18 -0
- data/sig/stigg/models/v1/credit_get_usage_response.rbs +19 -4
- data/sig/stigg/models/v1/customer_list_contracts_response.rbs +18 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 020c5b0f6825bd95cd814386ed2a551d7135fa0ea2a96f53a6c4564a3a9a8923
|
|
4
|
+
data.tar.gz: 260f2d1389aa6a7567ebb8545c9cdc533dda3b4deb485d94afc3d8686670ac43
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 873923e4d883e355b560758af8d17d6f8fe18acc21d6bc264b02c1dc8e3e0bf60fd359c2df478a058ac1584f92d8d07fd65b7843a49a019e59f84cd5f2b25265
|
|
7
|
+
data.tar.gz: 64a568a7b72ba6558a5179cf2a83101958ae2109b2f77e09978c0c6729dd7d1b9bc7cc08cd0f8dd92bd0e8aa55f85cb85bfad9d0c9f92db9f2c1242cd18d7d66
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.47 (2026-08-05)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-beta.46...v0.1.0-beta.47](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.46...v0.1.0-beta.47)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add event_count to credit_get_usage_response Series/Point models ([50c4511](https://github.com/stiggio/stigg-ruby/commit/50c4511632676df80fe380cb2d8ce0ada1bc9e4a))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-beta.46 (2026-07-28)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-beta.45...v0.1.0-beta.46](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.45...v0.1.0-beta.46)
|
data/README.md
CHANGED
|
@@ -44,6 +44,15 @@ module Stigg
|
|
|
44
44
|
# @return [String, nil]
|
|
45
45
|
required :billing_id, String, api_name: :billingId, nil?: true
|
|
46
46
|
|
|
47
|
+
# @!attribute billing_state
|
|
48
|
+
# The current state of the contract
|
|
49
|
+
#
|
|
50
|
+
# @return [Symbol, Stigg::Models::V1::ContractCreateResponse::Data::BillingState, nil]
|
|
51
|
+
required :billing_state,
|
|
52
|
+
enum: -> { Stigg::Models::V1::ContractCreateResponse::Data::BillingState },
|
|
53
|
+
api_name: :billingState,
|
|
54
|
+
nil?: true
|
|
55
|
+
|
|
47
56
|
# @!attribute contract_id
|
|
48
57
|
# The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
49
58
|
#
|
|
@@ -120,7 +129,7 @@ module Stigg
|
|
|
120
129
|
required :subscriptions,
|
|
121
130
|
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::ContractCreateResponse::Data::Subscription] }
|
|
122
131
|
|
|
123
|
-
# @!method 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:)
|
|
132
|
+
# @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, billing_state:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
|
|
124
133
|
# Some parameter documentations has been truncated, see
|
|
125
134
|
# {Stigg::Models::V1::ContractCreateResponse::Data} for more details.
|
|
126
135
|
#
|
|
@@ -134,6 +143,8 @@ module Stigg
|
|
|
134
143
|
#
|
|
135
144
|
# @param billing_id [String, nil] The billing provider (Received) contract ID; null until the contract has synced
|
|
136
145
|
#
|
|
146
|
+
# @param billing_state [Symbol, Stigg::Models::V1::ContractCreateResponse::Data::BillingState, nil] The current state of the contract
|
|
147
|
+
#
|
|
137
148
|
# @param contract_id [String] The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
138
149
|
#
|
|
139
150
|
# @param created_at [Time, nil] The date the contract was created
|
|
@@ -156,6 +167,21 @@ module Stigg
|
|
|
156
167
|
#
|
|
157
168
|
# @param subscriptions [Array<Stigg::Models::V1::ContractCreateResponse::Data::Subscription>] The custom subscriptions attached to this contract (empty when none)
|
|
158
169
|
|
|
170
|
+
# The current state of the contract
|
|
171
|
+
#
|
|
172
|
+
# @see Stigg::Models::V1::ContractCreateResponse::Data#billing_state
|
|
173
|
+
module BillingState
|
|
174
|
+
extend Stigg::Internal::Type::Enum
|
|
175
|
+
|
|
176
|
+
DRAFT = :DRAFT
|
|
177
|
+
ACTIVE = :ACTIVE
|
|
178
|
+
CANCELED = :CANCELED
|
|
179
|
+
END_BILLING = :END_BILLING
|
|
180
|
+
|
|
181
|
+
# @!method self.values
|
|
182
|
+
# @return [Array<Symbol>]
|
|
183
|
+
end
|
|
184
|
+
|
|
159
185
|
# @see Stigg::Models::V1::ContractCreateResponse::Data#latest_invoice
|
|
160
186
|
class LatestInvoice < Stigg::Internal::Type::BaseModel
|
|
161
187
|
# @!attribute billing_id
|
|
@@ -44,6 +44,15 @@ module Stigg
|
|
|
44
44
|
# @return [String, nil]
|
|
45
45
|
required :billing_id, String, api_name: :billingId, nil?: true
|
|
46
46
|
|
|
47
|
+
# @!attribute billing_state
|
|
48
|
+
# The current state of the contract
|
|
49
|
+
#
|
|
50
|
+
# @return [Symbol, Stigg::Models::V1::ContractDeleteResponse::Data::BillingState, nil]
|
|
51
|
+
required :billing_state,
|
|
52
|
+
enum: -> { Stigg::Models::V1::ContractDeleteResponse::Data::BillingState },
|
|
53
|
+
api_name: :billingState,
|
|
54
|
+
nil?: true
|
|
55
|
+
|
|
47
56
|
# @!attribute contract_id
|
|
48
57
|
# The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
49
58
|
#
|
|
@@ -120,7 +129,7 @@ module Stigg
|
|
|
120
129
|
required :subscriptions,
|
|
121
130
|
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::ContractDeleteResponse::Data::Subscription] }
|
|
122
131
|
|
|
123
|
-
# @!method 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:)
|
|
132
|
+
# @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, billing_state:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
|
|
124
133
|
# Some parameter documentations has been truncated, see
|
|
125
134
|
# {Stigg::Models::V1::ContractDeleteResponse::Data} for more details.
|
|
126
135
|
#
|
|
@@ -134,6 +143,8 @@ module Stigg
|
|
|
134
143
|
#
|
|
135
144
|
# @param billing_id [String, nil] The billing provider (Received) contract ID; null until the contract has synced
|
|
136
145
|
#
|
|
146
|
+
# @param billing_state [Symbol, Stigg::Models::V1::ContractDeleteResponse::Data::BillingState, nil] The current state of the contract
|
|
147
|
+
#
|
|
137
148
|
# @param contract_id [String] The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
138
149
|
#
|
|
139
150
|
# @param created_at [Time, nil] The date the contract was created
|
|
@@ -156,6 +167,21 @@ module Stigg
|
|
|
156
167
|
#
|
|
157
168
|
# @param subscriptions [Array<Stigg::Models::V1::ContractDeleteResponse::Data::Subscription>] The custom subscriptions attached to this contract (empty when none)
|
|
158
169
|
|
|
170
|
+
# The current state of the contract
|
|
171
|
+
#
|
|
172
|
+
# @see Stigg::Models::V1::ContractDeleteResponse::Data#billing_state
|
|
173
|
+
module BillingState
|
|
174
|
+
extend Stigg::Internal::Type::Enum
|
|
175
|
+
|
|
176
|
+
DRAFT = :DRAFT
|
|
177
|
+
ACTIVE = :ACTIVE
|
|
178
|
+
CANCELED = :CANCELED
|
|
179
|
+
END_BILLING = :END_BILLING
|
|
180
|
+
|
|
181
|
+
# @!method self.values
|
|
182
|
+
# @return [Array<Symbol>]
|
|
183
|
+
end
|
|
184
|
+
|
|
159
185
|
# @see Stigg::Models::V1::ContractDeleteResponse::Data#latest_invoice
|
|
160
186
|
class LatestInvoice < Stigg::Internal::Type::BaseModel
|
|
161
187
|
# @!attribute billing_id
|
|
@@ -31,6 +31,15 @@ module Stigg
|
|
|
31
31
|
# @return [String, nil]
|
|
32
32
|
required :billing_id, String, api_name: :billingId, nil?: true
|
|
33
33
|
|
|
34
|
+
# @!attribute billing_state
|
|
35
|
+
# The current state of the contract
|
|
36
|
+
#
|
|
37
|
+
# @return [Symbol, Stigg::Models::V1::ContractListResponse::BillingState, nil]
|
|
38
|
+
required :billing_state,
|
|
39
|
+
enum: -> { Stigg::Models::V1::ContractListResponse::BillingState },
|
|
40
|
+
api_name: :billingState,
|
|
41
|
+
nil?: true
|
|
42
|
+
|
|
34
43
|
# @!attribute contract_id
|
|
35
44
|
# The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
36
45
|
#
|
|
@@ -107,7 +116,7 @@ module Stigg
|
|
|
107
116
|
required :subscriptions,
|
|
108
117
|
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::ContractListResponse::Subscription] }
|
|
109
118
|
|
|
110
|
-
# @!method 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:)
|
|
119
|
+
# @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, billing_state:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
|
|
111
120
|
# Some parameter documentations has been truncated, see
|
|
112
121
|
# {Stigg::Models::V1::ContractListResponse} for more details.
|
|
113
122
|
#
|
|
@@ -121,6 +130,8 @@ module Stigg
|
|
|
121
130
|
#
|
|
122
131
|
# @param billing_id [String, nil] The billing provider (Received) contract ID; null until the contract has synced
|
|
123
132
|
#
|
|
133
|
+
# @param billing_state [Symbol, Stigg::Models::V1::ContractListResponse::BillingState, nil] The current state of the contract
|
|
134
|
+
#
|
|
124
135
|
# @param contract_id [String] The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
125
136
|
#
|
|
126
137
|
# @param created_at [Time, nil] The date the contract was created
|
|
@@ -143,6 +154,21 @@ module Stigg
|
|
|
143
154
|
#
|
|
144
155
|
# @param subscriptions [Array<Stigg::Models::V1::ContractListResponse::Subscription>] The custom subscriptions attached to this contract (empty when none)
|
|
145
156
|
|
|
157
|
+
# The current state of the contract
|
|
158
|
+
#
|
|
159
|
+
# @see Stigg::Models::V1::ContractListResponse#billing_state
|
|
160
|
+
module BillingState
|
|
161
|
+
extend Stigg::Internal::Type::Enum
|
|
162
|
+
|
|
163
|
+
DRAFT = :DRAFT
|
|
164
|
+
ACTIVE = :ACTIVE
|
|
165
|
+
CANCELED = :CANCELED
|
|
166
|
+
END_BILLING = :END_BILLING
|
|
167
|
+
|
|
168
|
+
# @!method self.values
|
|
169
|
+
# @return [Array<Symbol>]
|
|
170
|
+
end
|
|
171
|
+
|
|
146
172
|
# @see Stigg::Models::V1::ContractListResponse#latest_invoice
|
|
147
173
|
class LatestInvoice < Stigg::Internal::Type::BaseModel
|
|
148
174
|
# @!attribute billing_id
|
|
@@ -44,6 +44,15 @@ module Stigg
|
|
|
44
44
|
# @return [String, nil]
|
|
45
45
|
required :billing_id, String, api_name: :billingId, nil?: true
|
|
46
46
|
|
|
47
|
+
# @!attribute billing_state
|
|
48
|
+
# The current state of the contract
|
|
49
|
+
#
|
|
50
|
+
# @return [Symbol, Stigg::Models::V1::ContractRetrieveResponse::Data::BillingState, nil]
|
|
51
|
+
required :billing_state,
|
|
52
|
+
enum: -> { Stigg::Models::V1::ContractRetrieveResponse::Data::BillingState },
|
|
53
|
+
api_name: :billingState,
|
|
54
|
+
nil?: true
|
|
55
|
+
|
|
47
56
|
# @!attribute contract_id
|
|
48
57
|
# The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
49
58
|
#
|
|
@@ -120,7 +129,7 @@ module Stigg
|
|
|
120
129
|
required :subscriptions,
|
|
121
130
|
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::ContractRetrieveResponse::Data::Subscription] }
|
|
122
131
|
|
|
123
|
-
# @!method 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:)
|
|
132
|
+
# @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, billing_state:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
|
|
124
133
|
# Some parameter documentations has been truncated, see
|
|
125
134
|
# {Stigg::Models::V1::ContractRetrieveResponse::Data} for more details.
|
|
126
135
|
#
|
|
@@ -134,6 +143,8 @@ module Stigg
|
|
|
134
143
|
#
|
|
135
144
|
# @param billing_id [String, nil] The billing provider (Received) contract ID; null until the contract has synced
|
|
136
145
|
#
|
|
146
|
+
# @param billing_state [Symbol, Stigg::Models::V1::ContractRetrieveResponse::Data::BillingState, nil] The current state of the contract
|
|
147
|
+
#
|
|
137
148
|
# @param contract_id [String] The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
138
149
|
#
|
|
139
150
|
# @param created_at [Time, nil] The date the contract was created
|
|
@@ -156,6 +167,21 @@ module Stigg
|
|
|
156
167
|
#
|
|
157
168
|
# @param subscriptions [Array<Stigg::Models::V1::ContractRetrieveResponse::Data::Subscription>] The custom subscriptions attached to this contract (empty when none)
|
|
158
169
|
|
|
170
|
+
# The current state of the contract
|
|
171
|
+
#
|
|
172
|
+
# @see Stigg::Models::V1::ContractRetrieveResponse::Data#billing_state
|
|
173
|
+
module BillingState
|
|
174
|
+
extend Stigg::Internal::Type::Enum
|
|
175
|
+
|
|
176
|
+
DRAFT = :DRAFT
|
|
177
|
+
ACTIVE = :ACTIVE
|
|
178
|
+
CANCELED = :CANCELED
|
|
179
|
+
END_BILLING = :END_BILLING
|
|
180
|
+
|
|
181
|
+
# @!method self.values
|
|
182
|
+
# @return [Array<Symbol>]
|
|
183
|
+
end
|
|
184
|
+
|
|
159
185
|
# @see Stigg::Models::V1::ContractRetrieveResponse::Data#latest_invoice
|
|
160
186
|
class LatestInvoice < Stigg::Internal::Type::BaseModel
|
|
161
187
|
# @!attribute billing_id
|
|
@@ -44,6 +44,15 @@ module Stigg
|
|
|
44
44
|
# @return [String, nil]
|
|
45
45
|
required :billing_id, String, api_name: :billingId, nil?: true
|
|
46
46
|
|
|
47
|
+
# @!attribute billing_state
|
|
48
|
+
# The current state of the contract
|
|
49
|
+
#
|
|
50
|
+
# @return [Symbol, Stigg::Models::V1::ContractUpdateResponse::Data::BillingState, nil]
|
|
51
|
+
required :billing_state,
|
|
52
|
+
enum: -> { Stigg::Models::V1::ContractUpdateResponse::Data::BillingState },
|
|
53
|
+
api_name: :billingState,
|
|
54
|
+
nil?: true
|
|
55
|
+
|
|
47
56
|
# @!attribute contract_id
|
|
48
57
|
# The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
49
58
|
#
|
|
@@ -120,7 +129,7 @@ module Stigg
|
|
|
120
129
|
required :subscriptions,
|
|
121
130
|
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::ContractUpdateResponse::Data::Subscription] }
|
|
122
131
|
|
|
123
|
-
# @!method 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:)
|
|
132
|
+
# @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, billing_state:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
|
|
124
133
|
# Some parameter documentations has been truncated, see
|
|
125
134
|
# {Stigg::Models::V1::ContractUpdateResponse::Data} for more details.
|
|
126
135
|
#
|
|
@@ -134,6 +143,8 @@ module Stigg
|
|
|
134
143
|
#
|
|
135
144
|
# @param billing_id [String, nil] The billing provider (Received) contract ID; null until the contract has synced
|
|
136
145
|
#
|
|
146
|
+
# @param billing_state [Symbol, Stigg::Models::V1::ContractUpdateResponse::Data::BillingState, nil] The current state of the contract
|
|
147
|
+
#
|
|
137
148
|
# @param contract_id [String] The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
138
149
|
#
|
|
139
150
|
# @param created_at [Time, nil] The date the contract was created
|
|
@@ -156,6 +167,21 @@ module Stigg
|
|
|
156
167
|
#
|
|
157
168
|
# @param subscriptions [Array<Stigg::Models::V1::ContractUpdateResponse::Data::Subscription>] The custom subscriptions attached to this contract (empty when none)
|
|
158
169
|
|
|
170
|
+
# The current state of the contract
|
|
171
|
+
#
|
|
172
|
+
# @see Stigg::Models::V1::ContractUpdateResponse::Data#billing_state
|
|
173
|
+
module BillingState
|
|
174
|
+
extend Stigg::Internal::Type::Enum
|
|
175
|
+
|
|
176
|
+
DRAFT = :DRAFT
|
|
177
|
+
ACTIVE = :ACTIVE
|
|
178
|
+
CANCELED = :CANCELED
|
|
179
|
+
END_BILLING = :END_BILLING
|
|
180
|
+
|
|
181
|
+
# @!method self.values
|
|
182
|
+
# @return [Array<Symbol>]
|
|
183
|
+
end
|
|
184
|
+
|
|
159
185
|
# @see Stigg::Models::V1::ContractUpdateResponse::Data#latest_invoice
|
|
160
186
|
class LatestInvoice < Stigg::Internal::Type::BaseModel
|
|
161
187
|
# @!attribute billing_id
|
|
@@ -126,6 +126,14 @@ module Stigg
|
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
class Series < Stigg::Internal::Type::BaseModel
|
|
129
|
+
# @!attribute event_count
|
|
130
|
+
# Number of distinct usage events that consumed credits in this series. This count
|
|
131
|
+
# is not additive across series, because an event matched by several meters
|
|
132
|
+
# appears in more than one series.
|
|
133
|
+
#
|
|
134
|
+
# @return [Float]
|
|
135
|
+
required :event_count, Float, api_name: :eventCount
|
|
136
|
+
|
|
129
137
|
# @!attribute feature_id
|
|
130
138
|
# The feature ID; null when grouping by dimensions only
|
|
131
139
|
#
|
|
@@ -158,9 +166,14 @@ module Stigg
|
|
|
158
166
|
optional :tags,
|
|
159
167
|
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CreditGetUsageResponse::Data::Series::Tag] }
|
|
160
168
|
|
|
161
|
-
# @!method initialize(feature_id:, feature_name:, points:, total_credits:, tags: nil)
|
|
169
|
+
# @!method initialize(event_count:, feature_id:, feature_name:, points:, total_credits:, tags: nil)
|
|
170
|
+
# Some parameter documentations has been truncated, see
|
|
171
|
+
# {Stigg::Models::V1::CreditGetUsageResponse::Data::Series} for more details.
|
|
172
|
+
#
|
|
162
173
|
# Credit usage data for a single feature
|
|
163
174
|
#
|
|
175
|
+
# @param event_count [Float] Number of distinct usage events that consumed credits in this series. This count
|
|
176
|
+
#
|
|
164
177
|
# @param feature_id [String, nil] The feature ID; null when grouping by dimensions only
|
|
165
178
|
#
|
|
166
179
|
# @param feature_name [String, nil] The display name of the feature; null when grouping by dimensions only
|
|
@@ -172,6 +185,12 @@ module Stigg
|
|
|
172
185
|
# @param tags [Array<Stigg::Models::V1::CreditGetUsageResponse::Data::Series::Tag>] Dimension key/value pairs identifying this series when groupBy is applied
|
|
173
186
|
|
|
174
187
|
class Point < Stigg::Internal::Type::BaseModel
|
|
188
|
+
# @!attribute event_count
|
|
189
|
+
# Number of distinct usage events that consumed credits in this time bucket
|
|
190
|
+
#
|
|
191
|
+
# @return [Float]
|
|
192
|
+
required :event_count, Float, api_name: :eventCount
|
|
193
|
+
|
|
175
194
|
# @!attribute timestamp
|
|
176
195
|
# The timestamp of the data point
|
|
177
196
|
#
|
|
@@ -184,9 +203,11 @@ module Stigg
|
|
|
184
203
|
# @return [Float]
|
|
185
204
|
required :value, Float
|
|
186
205
|
|
|
187
|
-
# @!method initialize(timestamp:, value:)
|
|
206
|
+
# @!method initialize(event_count:, timestamp:, value:)
|
|
188
207
|
# A single data point in the credit usage time series
|
|
189
208
|
#
|
|
209
|
+
# @param event_count [Float] Number of distinct usage events that consumed credits in this time bucket
|
|
210
|
+
#
|
|
190
211
|
# @param timestamp [Time] The timestamp of the data point
|
|
191
212
|
#
|
|
192
213
|
# @param value [Float] The credit usage value at this point
|
|
@@ -43,6 +43,15 @@ module Stigg
|
|
|
43
43
|
# @return [String, nil]
|
|
44
44
|
required :billing_id, String, api_name: :billingId, nil?: true
|
|
45
45
|
|
|
46
|
+
# @!attribute billing_state
|
|
47
|
+
# The current state of the contract
|
|
48
|
+
#
|
|
49
|
+
# @return [Symbol, Stigg::Models::V1::CustomerListContractsResponse::Data::BillingState, nil]
|
|
50
|
+
required :billing_state,
|
|
51
|
+
enum: -> { Stigg::Models::V1::CustomerListContractsResponse::Data::BillingState },
|
|
52
|
+
api_name: :billingState,
|
|
53
|
+
nil?: true
|
|
54
|
+
|
|
46
55
|
# @!attribute contract_id
|
|
47
56
|
# The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
48
57
|
#
|
|
@@ -119,7 +128,7 @@ module Stigg
|
|
|
119
128
|
required :subscriptions,
|
|
120
129
|
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::CustomerListContractsResponse::Data::Subscription] }
|
|
121
130
|
|
|
122
|
-
# @!method 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:)
|
|
131
|
+
# @!method initialize(id:, activation_end_date:, activation_start_date:, billing_id:, billing_state:, contract_id:, created_at:, customer_external_id:, external_id:, latest_invoice:, name:, next_invoice:, po_number:, ref_id:, state:, subscriptions:)
|
|
123
132
|
# Some parameter documentations has been truncated, see
|
|
124
133
|
# {Stigg::Models::V1::CustomerListContractsResponse::Data} for more details.
|
|
125
134
|
#
|
|
@@ -133,6 +142,8 @@ module Stigg
|
|
|
133
142
|
#
|
|
134
143
|
# @param billing_id [String, nil] The billing provider (Received) contract ID; null until the contract has synced
|
|
135
144
|
#
|
|
145
|
+
# @param billing_state [Symbol, Stigg::Models::V1::CustomerListContractsResponse::Data::BillingState, nil] The current state of the contract
|
|
146
|
+
#
|
|
136
147
|
# @param contract_id [String] The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
137
148
|
#
|
|
138
149
|
# @param created_at [Time, nil] The date the contract was created
|
|
@@ -155,6 +166,21 @@ module Stigg
|
|
|
155
166
|
#
|
|
156
167
|
# @param subscriptions [Array<Stigg::Models::V1::CustomerListContractsResponse::Data::Subscription>] The custom subscriptions attached to this contract (empty when none)
|
|
157
168
|
|
|
169
|
+
# The current state of the contract
|
|
170
|
+
#
|
|
171
|
+
# @see Stigg::Models::V1::CustomerListContractsResponse::Data#billing_state
|
|
172
|
+
module BillingState
|
|
173
|
+
extend Stigg::Internal::Type::Enum
|
|
174
|
+
|
|
175
|
+
DRAFT = :DRAFT
|
|
176
|
+
ACTIVE = :ACTIVE
|
|
177
|
+
CANCELED = :CANCELED
|
|
178
|
+
END_BILLING = :END_BILLING
|
|
179
|
+
|
|
180
|
+
# @!method self.values
|
|
181
|
+
# @return [Array<Symbol>]
|
|
182
|
+
end
|
|
183
|
+
|
|
158
184
|
# @see Stigg::Models::V1::CustomerListContractsResponse::Data#latest_invoice
|
|
159
185
|
class LatestInvoice < Stigg::Internal::Type::BaseModel
|
|
160
186
|
# @!attribute billing_id
|
data/lib/stigg/version.rb
CHANGED
|
@@ -70,6 +70,16 @@ module Stigg
|
|
|
70
70
|
sig { returns(T.nilable(String)) }
|
|
71
71
|
attr_accessor :billing_id
|
|
72
72
|
|
|
73
|
+
# The current state of the contract
|
|
74
|
+
sig do
|
|
75
|
+
returns(
|
|
76
|
+
T.nilable(
|
|
77
|
+
Stigg::Models::V1::ContractCreateResponse::Data::BillingState::TaggedSymbol
|
|
78
|
+
)
|
|
79
|
+
)
|
|
80
|
+
end
|
|
81
|
+
attr_accessor :billing_state
|
|
82
|
+
|
|
73
83
|
# The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
74
84
|
sig { returns(String) }
|
|
75
85
|
attr_accessor :contract_id
|
|
@@ -166,6 +176,10 @@ module Stigg
|
|
|
166
176
|
activation_end_date: T.nilable(Time),
|
|
167
177
|
activation_start_date: T.nilable(Time),
|
|
168
178
|
billing_id: T.nilable(String),
|
|
179
|
+
billing_state:
|
|
180
|
+
T.nilable(
|
|
181
|
+
Stigg::Models::V1::ContractCreateResponse::Data::BillingState::OrSymbol
|
|
182
|
+
),
|
|
169
183
|
contract_id: String,
|
|
170
184
|
created_at: T.nilable(Time),
|
|
171
185
|
customer_external_id: T.nilable(String),
|
|
@@ -200,6 +214,8 @@ module Stigg
|
|
|
200
214
|
# The billing provider (Received) contract ID; null until the contract has synced
|
|
201
215
|
# to the billing provider
|
|
202
216
|
billing_id:,
|
|
217
|
+
# The current state of the contract
|
|
218
|
+
billing_state:,
|
|
203
219
|
# The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
204
220
|
contract_id:,
|
|
205
221
|
# The date the contract was created
|
|
@@ -235,6 +251,10 @@ module Stigg
|
|
|
235
251
|
activation_end_date: T.nilable(Time),
|
|
236
252
|
activation_start_date: T.nilable(Time),
|
|
237
253
|
billing_id: T.nilable(String),
|
|
254
|
+
billing_state:
|
|
255
|
+
T.nilable(
|
|
256
|
+
Stigg::Models::V1::ContractCreateResponse::Data::BillingState::TaggedSymbol
|
|
257
|
+
),
|
|
238
258
|
contract_id: String,
|
|
239
259
|
created_at: T.nilable(Time),
|
|
240
260
|
customer_external_id: T.nilable(String),
|
|
@@ -262,6 +282,51 @@ module Stigg
|
|
|
262
282
|
def to_hash
|
|
263
283
|
end
|
|
264
284
|
|
|
285
|
+
# The current state of the contract
|
|
286
|
+
module BillingState
|
|
287
|
+
extend Stigg::Internal::Type::Enum
|
|
288
|
+
|
|
289
|
+
TaggedSymbol =
|
|
290
|
+
T.type_alias do
|
|
291
|
+
T.all(
|
|
292
|
+
Symbol,
|
|
293
|
+
Stigg::Models::V1::ContractCreateResponse::Data::BillingState
|
|
294
|
+
)
|
|
295
|
+
end
|
|
296
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
297
|
+
|
|
298
|
+
DRAFT =
|
|
299
|
+
T.let(
|
|
300
|
+
:DRAFT,
|
|
301
|
+
Stigg::Models::V1::ContractCreateResponse::Data::BillingState::TaggedSymbol
|
|
302
|
+
)
|
|
303
|
+
ACTIVE =
|
|
304
|
+
T.let(
|
|
305
|
+
:ACTIVE,
|
|
306
|
+
Stigg::Models::V1::ContractCreateResponse::Data::BillingState::TaggedSymbol
|
|
307
|
+
)
|
|
308
|
+
CANCELED =
|
|
309
|
+
T.let(
|
|
310
|
+
:CANCELED,
|
|
311
|
+
Stigg::Models::V1::ContractCreateResponse::Data::BillingState::TaggedSymbol
|
|
312
|
+
)
|
|
313
|
+
END_BILLING =
|
|
314
|
+
T.let(
|
|
315
|
+
:END_BILLING,
|
|
316
|
+
Stigg::Models::V1::ContractCreateResponse::Data::BillingState::TaggedSymbol
|
|
317
|
+
)
|
|
318
|
+
|
|
319
|
+
sig do
|
|
320
|
+
override.returns(
|
|
321
|
+
T::Array[
|
|
322
|
+
Stigg::Models::V1::ContractCreateResponse::Data::BillingState::TaggedSymbol
|
|
323
|
+
]
|
|
324
|
+
)
|
|
325
|
+
end
|
|
326
|
+
def self.values
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
|
|
265
330
|
class LatestInvoice < Stigg::Internal::Type::BaseModel
|
|
266
331
|
OrHash =
|
|
267
332
|
T.type_alias do
|
|
@@ -70,6 +70,16 @@ module Stigg
|
|
|
70
70
|
sig { returns(T.nilable(String)) }
|
|
71
71
|
attr_accessor :billing_id
|
|
72
72
|
|
|
73
|
+
# The current state of the contract
|
|
74
|
+
sig do
|
|
75
|
+
returns(
|
|
76
|
+
T.nilable(
|
|
77
|
+
Stigg::Models::V1::ContractDeleteResponse::Data::BillingState::TaggedSymbol
|
|
78
|
+
)
|
|
79
|
+
)
|
|
80
|
+
end
|
|
81
|
+
attr_accessor :billing_state
|
|
82
|
+
|
|
73
83
|
# The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
74
84
|
sig { returns(String) }
|
|
75
85
|
attr_accessor :contract_id
|
|
@@ -166,6 +176,10 @@ module Stigg
|
|
|
166
176
|
activation_end_date: T.nilable(Time),
|
|
167
177
|
activation_start_date: T.nilable(Time),
|
|
168
178
|
billing_id: T.nilable(String),
|
|
179
|
+
billing_state:
|
|
180
|
+
T.nilable(
|
|
181
|
+
Stigg::Models::V1::ContractDeleteResponse::Data::BillingState::OrSymbol
|
|
182
|
+
),
|
|
169
183
|
contract_id: String,
|
|
170
184
|
created_at: T.nilable(Time),
|
|
171
185
|
customer_external_id: T.nilable(String),
|
|
@@ -200,6 +214,8 @@ module Stigg
|
|
|
200
214
|
# The billing provider (Received) contract ID; null until the contract has synced
|
|
201
215
|
# to the billing provider
|
|
202
216
|
billing_id:,
|
|
217
|
+
# The current state of the contract
|
|
218
|
+
billing_state:,
|
|
203
219
|
# The Stigg contract ref ID (the key used to fetch/update/delete this contract)
|
|
204
220
|
contract_id:,
|
|
205
221
|
# The date the contract was created
|
|
@@ -235,6 +251,10 @@ module Stigg
|
|
|
235
251
|
activation_end_date: T.nilable(Time),
|
|
236
252
|
activation_start_date: T.nilable(Time),
|
|
237
253
|
billing_id: T.nilable(String),
|
|
254
|
+
billing_state:
|
|
255
|
+
T.nilable(
|
|
256
|
+
Stigg::Models::V1::ContractDeleteResponse::Data::BillingState::TaggedSymbol
|
|
257
|
+
),
|
|
238
258
|
contract_id: String,
|
|
239
259
|
created_at: T.nilable(Time),
|
|
240
260
|
customer_external_id: T.nilable(String),
|
|
@@ -262,6 +282,51 @@ module Stigg
|
|
|
262
282
|
def to_hash
|
|
263
283
|
end
|
|
264
284
|
|
|
285
|
+
# The current state of the contract
|
|
286
|
+
module BillingState
|
|
287
|
+
extend Stigg::Internal::Type::Enum
|
|
288
|
+
|
|
289
|
+
TaggedSymbol =
|
|
290
|
+
T.type_alias do
|
|
291
|
+
T.all(
|
|
292
|
+
Symbol,
|
|
293
|
+
Stigg::Models::V1::ContractDeleteResponse::Data::BillingState
|
|
294
|
+
)
|
|
295
|
+
end
|
|
296
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
297
|
+
|
|
298
|
+
DRAFT =
|
|
299
|
+
T.let(
|
|
300
|
+
:DRAFT,
|
|
301
|
+
Stigg::Models::V1::ContractDeleteResponse::Data::BillingState::TaggedSymbol
|
|
302
|
+
)
|
|
303
|
+
ACTIVE =
|
|
304
|
+
T.let(
|
|
305
|
+
:ACTIVE,
|
|
306
|
+
Stigg::Models::V1::ContractDeleteResponse::Data::BillingState::TaggedSymbol
|
|
307
|
+
)
|
|
308
|
+
CANCELED =
|
|
309
|
+
T.let(
|
|
310
|
+
:CANCELED,
|
|
311
|
+
Stigg::Models::V1::ContractDeleteResponse::Data::BillingState::TaggedSymbol
|
|
312
|
+
)
|
|
313
|
+
END_BILLING =
|
|
314
|
+
T.let(
|
|
315
|
+
:END_BILLING,
|
|
316
|
+
Stigg::Models::V1::ContractDeleteResponse::Data::BillingState::TaggedSymbol
|
|
317
|
+
)
|
|
318
|
+
|
|
319
|
+
sig do
|
|
320
|
+
override.returns(
|
|
321
|
+
T::Array[
|
|
322
|
+
Stigg::Models::V1::ContractDeleteResponse::Data::BillingState::TaggedSymbol
|
|
323
|
+
]
|
|
324
|
+
)
|
|
325
|
+
end
|
|
326
|
+
def self.values
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
|
|
265
330
|
class LatestInvoice < Stigg::Internal::Type::BaseModel
|
|
266
331
|
OrHash =
|
|
267
332
|
T.type_alias do
|