stigg 0.1.0.pre.beta.44 → 0.1.0.pre.beta.46
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 +21 -0
- data/README.md +1 -1
- data/lib/stigg/client.rb +1 -1
- data/lib/stigg/models/v1/addon_update_params.rb +68 -8
- data/lib/stigg/models/v1/contract_create_params.rb +2095 -0
- data/lib/stigg/models/v1/contract_create_response.rb +507 -0
- data/lib/stigg/models/v1/contract_delete_params.rb +34 -0
- data/lib/stigg/models/v1/contract_delete_response.rb +507 -0
- data/lib/stigg/models/v1/contract_list_params.rb +78 -0
- data/lib/stigg/models/v1/contract_list_response.rb +492 -0
- data/lib/stigg/models/v1/contract_retrieve_params.rb +34 -0
- data/lib/stigg/models/v1/contract_retrieve_response.rb +507 -0
- data/lib/stigg/models/v1/contract_update_params.rb +92 -0
- data/lib/stigg/models/v1/contract_update_response.rb +507 -0
- data/lib/stigg/models/v1/credits/credit_grant_response.rb +3 -3
- data/lib/stigg/models/v1/credits/grant_list_response.rb +3 -3
- data/lib/stigg/models/v1/customer_list_contracts_params.rb +34 -0
- data/lib/stigg/models/v1/customer_list_contracts_response.rb +507 -0
- data/lib/stigg/models/v1/customer_list_invoices_params.rb +136 -0
- data/lib/stigg/models/v1/customer_list_invoices_response.rb +200 -0
- data/lib/stigg/models/v1/{event_estimate_cost_params.rb → event_estimate_params.rb} +3 -3
- data/lib/stigg/models/v1/{event_estimate_cost_response.rb → event_estimate_response.rb} +19 -19
- data/lib/stigg/models/v1/events/beta/customer_retrieve_governance_params.rb +173 -0
- data/lib/stigg/models/v1/events/beta/customer_retrieve_governance_response.rb +166 -0
- data/lib/stigg/models/v1/events/data_export/{destination_update_params.rb → destination_update_selection_params.rb} +2 -2
- data/lib/stigg/models/v1/events/data_export/{destination_update_response.rb → destination_update_selection_response.rb} +13 -13
- data/lib/stigg/models/v1/plan_update_params.rb +68 -8
- data/lib/stigg/models/v1/subscription.rb +9 -1
- data/lib/stigg/models/v1/subscription_list_response.rb +9 -1
- data/lib/stigg/models/v1/subscription_provision_response.rb +9 -1
- data/lib/stigg/models/v1/{usage_estimate_cost_params.rb → usage_estimate_params.rb} +6 -6
- data/lib/stigg/models/v1/{usage_estimate_cost_response.rb → usage_estimate_response.rb} +19 -19
- data/lib/stigg/resources/v1/contracts.rb +225 -0
- data/lib/stigg/resources/v1/customers.rb +112 -0
- data/lib/stigg/resources/v1/events/beta/customers.rb +99 -0
- data/lib/stigg/resources/v1/events/beta.rb +22 -0
- data/lib/stigg/resources/v1/events/data_export/destinations.rb +38 -38
- data/lib/stigg/resources/v1/events.rb +11 -7
- data/lib/stigg/resources/v1/usage.rb +8 -8
- data/lib/stigg/resources/v1.rb +4 -0
- data/lib/stigg/resources/v1_beta/customers.rb +0 -78
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +25 -8
- data/rbi/stigg/models/v1/addon_update_params.rbi +134 -14
- data/rbi/stigg/models/v1/contract_create_params.rbi +6041 -0
- data/rbi/stigg/models/v1/contract_create_response.rbi +1308 -0
- data/rbi/stigg/models/v1/contract_delete_params.rbi +61 -0
- data/rbi/stigg/models/v1/contract_delete_response.rbi +1308 -0
- data/rbi/stigg/models/v1/contract_list_params.rbi +121 -0
- data/rbi/stigg/models/v1/contract_list_response.rbi +1251 -0
- data/rbi/stigg/models/v1/contract_retrieve_params.rbi +61 -0
- data/rbi/stigg/models/v1/contract_retrieve_response.rbi +1308 -0
- data/rbi/stigg/models/v1/contract_update_params.rbi +129 -0
- data/rbi/stigg/models/v1/contract_update_response.rbi +1308 -0
- data/rbi/stigg/models/v1/credits/credit_grant_response.rbi +3 -3
- data/rbi/stigg/models/v1/credits/grant_list_response.rbi +3 -3
- data/rbi/stigg/models/v1/customer_list_contracts_params.rbi +64 -0
- data/rbi/stigg/models/v1/customer_list_contracts_response.rbi +1307 -0
- data/rbi/stigg/models/v1/customer_list_invoices_params.rbi +253 -0
- data/rbi/stigg/models/v1/customer_list_invoices_response.rbi +285 -0
- data/rbi/stigg/models/v1/{event_estimate_cost_params.rbi → event_estimate_params.rbi} +7 -7
- data/rbi/stigg/models/v1/{usage_estimate_cost_response.rbi → event_estimate_response.rbi} +29 -31
- data/rbi/stigg/models/v1/events/beta/customer_retrieve_governance_params.rbi +365 -0
- data/rbi/stigg/models/v1/events/beta/customer_retrieve_governance_response.rbi +251 -0
- data/rbi/stigg/models/v1/events/data_export/{destination_update_params.rbi → destination_update_selection_params.rbi} +2 -2
- data/rbi/stigg/models/v1/events/data_export/{destination_update_response.rbi → destination_update_selection_response.rbi} +16 -16
- data/rbi/stigg/models/v1/plan_update_params.rbi +134 -14
- data/rbi/stigg/models/v1/subscription.rbi +8 -0
- data/rbi/stigg/models/v1/subscription_list_response.rbi +8 -0
- data/rbi/stigg/models/v1/subscription_provision_response.rbi +8 -0
- data/rbi/stigg/models/v1/{usage_estimate_cost_params.rbi → usage_estimate_params.rbi} +15 -17
- data/rbi/stigg/models/v1/{event_estimate_cost_response.rbi → usage_estimate_response.rbi} +29 -31
- data/rbi/stigg/resources/v1/contracts.rbi +209 -0
- data/rbi/stigg/resources/v1/customers.rbi +91 -0
- data/rbi/stigg/resources/v1/events/beta/customers.rbi +89 -0
- data/rbi/stigg/resources/v1/events/beta.rbi +19 -0
- data/rbi/stigg/resources/v1/events/data_export/destinations.rbi +28 -28
- data/rbi/stigg/resources/v1/events.rbi +6 -3
- data/rbi/stigg/resources/v1/usage.rbi +4 -4
- data/rbi/stigg/resources/v1.rbi +3 -0
- data/rbi/stigg/resources/v1_beta/customers.rbi +0 -69
- data/sig/stigg/models/v1/addon_update_params.rbs +57 -10
- data/sig/stigg/models/v1/contract_create_params.rbs +2487 -0
- data/sig/stigg/models/v1/contract_create_response.rbs +532 -0
- data/sig/stigg/models/v1/contract_delete_params.rbs +38 -0
- data/sig/stigg/models/v1/contract_delete_response.rbs +532 -0
- data/sig/stigg/models/v1/contract_list_params.rbs +79 -0
- data/sig/stigg/models/v1/contract_list_response.rbs +517 -0
- data/sig/stigg/models/v1/contract_retrieve_params.rbs +38 -0
- data/sig/stigg/models/v1/contract_retrieve_response.rbs +532 -0
- data/sig/stigg/models/v1/contract_update_params.rbs +80 -0
- data/sig/stigg/models/v1/contract_update_response.rbs +532 -0
- data/sig/stigg/models/v1/customer_list_contracts_params.rbs +38 -0
- data/sig/stigg/models/v1/customer_list_contracts_response.rbs +534 -0
- data/sig/stigg/models/v1/customer_list_invoices_params.rbs +132 -0
- data/sig/stigg/models/v1/customer_list_invoices_response.rbs +141 -0
- data/sig/stigg/models/v1/{event_estimate_cost_params.rbs → event_estimate_params.rbs} +9 -9
- data/sig/stigg/models/v1/{event_estimate_cost_response.rbs → event_estimate_response.rbs} +24 -26
- data/sig/stigg/models/v1/events/beta/customer_retrieve_governance_params.rbs +166 -0
- data/sig/stigg/models/v1/events/beta/customer_retrieve_governance_response.rbs +117 -0
- data/sig/stigg/models/v1/events/data_export/{destination_update_params.rbs → destination_update_selection_params.rbs} +2 -2
- data/sig/stigg/models/v1/events/data_export/{destination_update_response.rbs → destination_update_selection_response.rbs} +16 -16
- data/sig/stigg/models/v1/plan_update_params.rbs +57 -10
- data/sig/stigg/models/v1/subscription.rbs +5 -0
- data/sig/stigg/models/v1/subscription_list_response.rbs +5 -0
- data/sig/stigg/models/v1/subscription_provision_response.rbs +5 -0
- data/sig/stigg/models/v1/{usage_estimate_cost_params.rbs → usage_estimate_params.rbs} +16 -16
- data/sig/stigg/models/v1/{usage_estimate_cost_response.rbs → usage_estimate_response.rbs} +24 -26
- data/sig/stigg/resources/v1/contracts.rbs +61 -0
- data/sig/stigg/resources/v1/customers.rbs +23 -0
- data/sig/stigg/resources/v1/events/beta/customers.rbs +30 -0
- data/sig/stigg/resources/v1/events/beta.rbs +13 -0
- data/sig/stigg/resources/v1/events/data_export/destinations.rbs +6 -6
- data/sig/stigg/resources/v1/events.rbs +5 -3
- data/sig/stigg/resources/v1/usage.rbs +4 -4
- data/sig/stigg/resources/v1.rbs +2 -0
- data/sig/stigg/resources/v1_beta/customers.rbs +0 -17
- metadata +77 -26
- data/lib/stigg/models/v1_beta/customer_retrieve_governance_params.rb +0 -168
- data/lib/stigg/models/v1_beta/customer_retrieve_governance_response.rb +0 -161
- data/rbi/stigg/models/v1_beta/customer_retrieve_governance_params.rbi +0 -361
- data/rbi/stigg/models/v1_beta/customer_retrieve_governance_response.rbi +0 -247
- data/sig/stigg/models/v1_beta/customer_retrieve_governance_params.rbs +0 -162
- data/sig/stigg/models/v1_beta/customer_retrieve_governance_response.rbs +0 -113
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7ac90cfbca704796bb6d9cbb5d5728aba303d6130c042106c4efc26a544b46e5
|
|
4
|
+
data.tar.gz: 1e95ab4fb2eb8807c6a715c7623e870847746c184c61994dced4ea17ac3aa15a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 39598ef956be42b89e076e6aad168b5cfdb1520326a74e0f63e4092de0289834e9afc476de2b05b0075a9bb3dd40c815bcc429a5c5c489819603c2ab5f167683
|
|
7
|
+
data.tar.gz: 5e06013a90b01e3bac1688eb069d778ea0f8816b343f958c9cda17cb6ddf662088bc605475b521e84aba14003f9a7e257619f60b311b9f9b7ddd50cc9ac50a48
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.46 (2026-07-28)
|
|
4
|
+
|
|
5
|
+
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)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **contracts:** create contracts backed by shared Received enterprise contract ([7f03d08](https://github.com/stiggio/stigg-ruby/commit/7f03d0807ef95b18c210db0ced83c816e876349b))
|
|
10
|
+
|
|
11
|
+
## 0.1.0-beta.45 (2026-07-26)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.1.0-beta.44...v0.1.0-beta.45](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.44...v0.1.0-beta.45)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** add credit_entitlement parameter to addon/plan update params ([2ae6de4](https://github.com/stiggio/stigg-ruby/commit/2ae6de4c869d839537de19fcef36469979cccea2))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
|
|
22
|
+
* **internal:** regenerate SDK with no functional changes ([0ec3e2e](https://github.com/stiggio/stigg-ruby/commit/0ec3e2e23ee5088f27abeb230a7b695daa362886))
|
|
23
|
+
|
|
3
24
|
## 0.1.0-beta.44 (2026-07-21)
|
|
4
25
|
|
|
5
26
|
Full Changelog: [v0.1.0-beta.43...v0.1.0-beta.44](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.43...v0.1.0-beta.44)
|
data/README.md
CHANGED
data/lib/stigg/client.rb
CHANGED
|
@@ -53,7 +53,7 @@ module Stigg
|
|
|
53
53
|
initial_retry_delay: self.class::DEFAULT_INITIAL_RETRY_DELAY,
|
|
54
54
|
max_retry_delay: self.class::DEFAULT_MAX_RETRY_DELAY
|
|
55
55
|
)
|
|
56
|
-
base_url ||= "https://
|
|
56
|
+
base_url ||= "https://api.stigg.io"
|
|
57
57
|
|
|
58
58
|
if api_key.nil?
|
|
59
59
|
raise ArgumentError.new("api_key is required, and can be set via environ: \"STIGG_API_KEY\"")
|
|
@@ -400,6 +400,21 @@ module Stigg
|
|
|
400
400
|
enum: -> { Stigg::V1::AddonUpdateParams::Charges::OveragePricingModel::BillingCadence },
|
|
401
401
|
api_name: :billingCadence
|
|
402
402
|
|
|
403
|
+
# @!attribute credit_entitlement
|
|
404
|
+
# Credit entitlement to grant when a credit overage targets a currency not yet
|
|
405
|
+
# granted on the plan
|
|
406
|
+
#
|
|
407
|
+
# @return [Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::CreditEntitlement, nil]
|
|
408
|
+
optional :credit_entitlement,
|
|
409
|
+
-> { Stigg::V1::AddonUpdateParams::Charges::OveragePricingModel::CreditEntitlement },
|
|
410
|
+
api_name: :creditEntitlement
|
|
411
|
+
|
|
412
|
+
# @!attribute currency_id
|
|
413
|
+
# The refId of the custom currency this credit overage applies to
|
|
414
|
+
#
|
|
415
|
+
# @return [String, nil]
|
|
416
|
+
optional :currency_id, String, api_name: :currencyId
|
|
417
|
+
|
|
403
418
|
# @!attribute entitlement
|
|
404
419
|
# Entitlement configuration for the overage feature
|
|
405
420
|
#
|
|
@@ -412,13 +427,11 @@ module Stigg
|
|
|
412
427
|
# @return [String, nil]
|
|
413
428
|
optional :feature_id, String, api_name: :featureId
|
|
414
429
|
|
|
415
|
-
# @!
|
|
416
|
-
#
|
|
430
|
+
# @!method initialize(billing_model:, price_periods:, billing_cadence: nil, credit_entitlement: nil, currency_id: nil, entitlement: nil, feature_id: nil)
|
|
431
|
+
# Some parameter documentations has been truncated, see
|
|
432
|
+
# {Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel} for more
|
|
433
|
+
# details.
|
|
417
434
|
#
|
|
418
|
-
# @return [String, nil]
|
|
419
|
-
optional :top_up_custom_currency_id, String, api_name: :topUpCustomCurrencyId
|
|
420
|
-
|
|
421
|
-
# @!method initialize(billing_model:, price_periods:, billing_cadence: nil, entitlement: nil, feature_id: nil, top_up_custom_currency_id: nil)
|
|
422
435
|
# Overage pricing model configuration.
|
|
423
436
|
#
|
|
424
437
|
# @param billing_model [Symbol, Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::BillingModel] The billing model for overages
|
|
@@ -427,11 +440,13 @@ module Stigg
|
|
|
427
440
|
#
|
|
428
441
|
# @param billing_cadence [Symbol, Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::BillingCadence] The billing cadence for overages
|
|
429
442
|
#
|
|
443
|
+
# @param credit_entitlement [Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::CreditEntitlement] Credit entitlement to grant when a credit overage targets a currency not yet gra
|
|
444
|
+
#
|
|
445
|
+
# @param currency_id [String] The refId of the custom currency this credit overage applies to
|
|
446
|
+
#
|
|
430
447
|
# @param entitlement [Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::Entitlement] Entitlement configuration for the overage feature
|
|
431
448
|
#
|
|
432
449
|
# @param feature_id [String] The feature ID for overage pricing
|
|
433
|
-
#
|
|
434
|
-
# @param top_up_custom_currency_id [String] Custom currency ID for overage top-up
|
|
435
450
|
|
|
436
451
|
# The billing model for overages
|
|
437
452
|
#
|
|
@@ -1079,6 +1094,51 @@ module Stigg
|
|
|
1079
1094
|
# @return [Array<Symbol>]
|
|
1080
1095
|
end
|
|
1081
1096
|
|
|
1097
|
+
# @see Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel#credit_entitlement
|
|
1098
|
+
class CreditEntitlement < Stigg::Internal::Type::BaseModel
|
|
1099
|
+
# @!attribute amount
|
|
1100
|
+
# The base credit balance granted per cadence
|
|
1101
|
+
#
|
|
1102
|
+
# @return [Float]
|
|
1103
|
+
required :amount, Float
|
|
1104
|
+
|
|
1105
|
+
# @!attribute cadence
|
|
1106
|
+
# The credit grant cadence (MONTH or YEAR)
|
|
1107
|
+
#
|
|
1108
|
+
# @return [Symbol, Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::CreditEntitlement::Cadence]
|
|
1109
|
+
required :cadence,
|
|
1110
|
+
enum: -> { Stigg::V1::AddonUpdateParams::Charges::OveragePricingModel::CreditEntitlement::Cadence }
|
|
1111
|
+
|
|
1112
|
+
# @!attribute custom_currency_id
|
|
1113
|
+
# The refId of the custom currency to grant
|
|
1114
|
+
#
|
|
1115
|
+
# @return [String]
|
|
1116
|
+
required :custom_currency_id, String, api_name: :customCurrencyId
|
|
1117
|
+
|
|
1118
|
+
# @!method initialize(amount:, cadence:, custom_currency_id:)
|
|
1119
|
+
# Credit entitlement to grant when a credit overage targets a currency not yet
|
|
1120
|
+
# granted on the plan
|
|
1121
|
+
#
|
|
1122
|
+
# @param amount [Float] The base credit balance granted per cadence
|
|
1123
|
+
#
|
|
1124
|
+
# @param cadence [Symbol, Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::CreditEntitlement::Cadence] The credit grant cadence (MONTH or YEAR)
|
|
1125
|
+
#
|
|
1126
|
+
# @param custom_currency_id [String] The refId of the custom currency to grant
|
|
1127
|
+
|
|
1128
|
+
# The credit grant cadence (MONTH or YEAR)
|
|
1129
|
+
#
|
|
1130
|
+
# @see Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel::CreditEntitlement#cadence
|
|
1131
|
+
module Cadence
|
|
1132
|
+
extend Stigg::Internal::Type::Enum
|
|
1133
|
+
|
|
1134
|
+
MONTH = :MONTH
|
|
1135
|
+
YEAR = :YEAR
|
|
1136
|
+
|
|
1137
|
+
# @!method self.values
|
|
1138
|
+
# @return [Array<Symbol>]
|
|
1139
|
+
end
|
|
1140
|
+
end
|
|
1141
|
+
|
|
1082
1142
|
# @see Stigg::Models::V1::AddonUpdateParams::Charges::OveragePricingModel#entitlement
|
|
1083
1143
|
class Entitlement < Stigg::Internal::Type::BaseModel
|
|
1084
1144
|
# @!attribute feature_id
|