stigg 0.1.0.pre.alpha.34 → 0.1.0.pre.beta.1
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 +13 -0
- data/README.md +1 -1
- data/lib/stigg/models/v1/addon_list_params.rb +14 -3
- data/lib/stigg/models/v1/coupon_list_params.rb +13 -3
- data/lib/stigg/models/v1/customers/integration_list_params.rb +22 -3
- data/lib/stigg/models/v1/customers/promotional_entitlement_list_params.rb +15 -3
- data/lib/stigg/models/v1/events/credits/custom_currency_archive_params.rb +26 -0
- data/lib/stigg/models/v1/events/credits/custom_currency_archive_response.rb +127 -0
- data/lib/stigg/models/v1/events/credits/custom_currency_create_params.rb +95 -0
- data/lib/stigg/models/v1/events/credits/custom_currency_create_response.rb +127 -0
- data/lib/stigg/models/v1/events/credits/custom_currency_list_associated_entities_params.rb +26 -0
- data/lib/stigg/models/v1/events/credits/custom_currency_list_associated_entities_response.rb +54 -0
- data/lib/stigg/models/v1/events/credits/custom_currency_list_params.rb +67 -0
- data/lib/stigg/models/v1/events/credits/custom_currency_list_response.rb +111 -0
- data/lib/stigg/models/v1/events/credits/custom_currency_unarchive_params.rb +26 -0
- data/lib/stigg/models/v1/events/credits/custom_currency_unarchive_response.rb +127 -0
- data/lib/stigg/models/v1/events/credits/custom_currency_update_params.rb +95 -0
- data/lib/stigg/models/v1/events/credits/custom_currency_update_response.rb +127 -0
- data/lib/stigg/models/v1/feature_list_features_params.rb +45 -9
- data/lib/stigg/models/v1/plan_list_params.rb +14 -3
- data/lib/stigg/models/v1/product_list_products_params.rb +14 -3
- data/lib/stigg/models/v1/subscription_list_params.rb +32 -6
- data/lib/stigg/resources/v1/addons.rb +1 -1
- data/lib/stigg/resources/v1/coupons.rb +1 -1
- data/lib/stigg/resources/v1/customers/integrations.rb +1 -1
- data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +1 -1
- data/lib/stigg/resources/v1/events/credits/custom_currencies.rb +192 -0
- data/lib/stigg/resources/v1/events/credits.rb +5 -0
- data/lib/stigg/resources/v1/features.rb +3 -3
- data/lib/stigg/resources/v1/plans.rb +1 -1
- data/lib/stigg/resources/v1/products.rb +1 -1
- data/lib/stigg/resources/v1/subscriptions.rb +2 -2
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +13 -0
- data/rbi/stigg/models/v1/addon_list_params.rbi +35 -4
- data/rbi/stigg/models/v1/coupon_list_params.rbi +33 -4
- data/rbi/stigg/models/v1/customers/integration_list_params.rbi +99 -4
- data/rbi/stigg/models/v1/customers/promotional_entitlement_list_params.rbi +64 -4
- data/rbi/stigg/models/v1/events/credits/custom_currency_archive_params.rbi +44 -0
- data/rbi/stigg/models/v1/events/credits/custom_currency_archive_response.rbi +224 -0
- data/rbi/stigg/models/v1/events/credits/custom_currency_create_params.rbi +156 -0
- data/rbi/stigg/models/v1/events/credits/custom_currency_create_response.rbi +224 -0
- data/rbi/stigg/models/v1/events/credits/custom_currency_list_associated_entities_params.rbi +44 -0
- data/rbi/stigg/models/v1/events/credits/custom_currency_list_associated_entities_response.rbi +101 -0
- data/rbi/stigg/models/v1/events/credits/custom_currency_list_params.rbi +145 -0
- data/rbi/stigg/models/v1/events/credits/custom_currency_list_response.rbi +174 -0
- data/rbi/stigg/models/v1/events/credits/custom_currency_unarchive_params.rbi +44 -0
- data/rbi/stigg/models/v1/events/credits/custom_currency_unarchive_response.rbi +224 -0
- data/rbi/stigg/models/v1/events/credits/custom_currency_update_params.rbi +150 -0
- data/rbi/stigg/models/v1/events/credits/custom_currency_update_response.rbi +224 -0
- data/rbi/stigg/models/v1/feature_list_features_params.rbi +177 -12
- data/rbi/stigg/models/v1/plan_list_params.rbi +34 -4
- data/rbi/stigg/models/v1/product_list_products_params.rbi +50 -4
- data/rbi/stigg/models/v1/subscription_list_params.rbi +123 -8
- data/rbi/stigg/resources/v1/addons.rbi +1 -1
- data/rbi/stigg/resources/v1/coupons.rbi +1 -1
- data/rbi/stigg/resources/v1/customers/integrations.rbi +4 -1
- data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +4 -1
- data/rbi/stigg/resources/v1/events/credits/custom_currencies.rbi +171 -0
- data/rbi/stigg/resources/v1/events/credits.rbi +6 -0
- data/rbi/stigg/resources/v1/features.rbi +10 -3
- data/rbi/stigg/resources/v1/plans.rbi +1 -1
- data/rbi/stigg/resources/v1/products.rbi +2 -1
- data/rbi/stigg/resources/v1/subscriptions.rbi +6 -2
- data/sig/stigg/models/v1/addon_list_params.rbs +19 -5
- data/sig/stigg/models/v1/coupon_list_params.rbs +18 -5
- data/sig/stigg/models/v1/customers/integration_list_params.rbs +36 -5
- data/sig/stigg/models/v1/customers/promotional_entitlement_list_params.rbs +19 -5
- data/sig/stigg/models/v1/events/credits/custom_currency_archive_params.rbs +29 -0
- data/sig/stigg/models/v1/events/credits/custom_currency_archive_response.rbs +95 -0
- data/sig/stigg/models/v1/events/credits/custom_currency_create_params.rbs +79 -0
- data/sig/stigg/models/v1/events/credits/custom_currency_create_response.rbs +95 -0
- data/sig/stigg/models/v1/events/credits/custom_currency_list_associated_entities_params.rbs +29 -0
- data/sig/stigg/models/v1/events/credits/custom_currency_list_associated_entities_response.rbs +44 -0
- data/sig/stigg/models/v1/events/credits/custom_currency_list_params.rbs +68 -0
- data/sig/stigg/models/v1/events/credits/custom_currency_list_response.rbs +78 -0
- data/sig/stigg/models/v1/events/credits/custom_currency_unarchive_params.rbs +29 -0
- data/sig/stigg/models/v1/events/credits/custom_currency_unarchive_response.rbs +95 -0
- data/sig/stigg/models/v1/events/credits/custom_currency_update_params.rbs +75 -0
- data/sig/stigg/models/v1/events/credits/custom_currency_update_response.rbs +95 -0
- data/sig/stigg/models/v1/feature_list_features_params.rbs +57 -15
- data/sig/stigg/models/v1/plan_list_params.rbs +19 -5
- data/sig/stigg/models/v1/product_list_products_params.rbs +18 -5
- data/sig/stigg/models/v1/subscription_list_params.rbs +47 -10
- data/sig/stigg/resources/v1/addons.rbs +1 -1
- data/sig/stigg/resources/v1/coupons.rbs +1 -1
- data/sig/stigg/resources/v1/customers/integrations.rbs +1 -1
- data/sig/stigg/resources/v1/customers/promotional_entitlements.rbs +1 -1
- data/sig/stigg/resources/v1/events/credits/custom_currencies.rbs +56 -0
- data/sig/stigg/resources/v1/events/credits.rbs +2 -0
- data/sig/stigg/resources/v1/features.rbs +3 -3
- data/sig/stigg/resources/v1/plans.rbs +1 -1
- data/sig/stigg/resources/v1/products.rbs +1 -1
- data/sig/stigg/resources/v1/subscriptions.rbs +2 -2
- metadata +41 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c90ef360bd74c5409fabb376a4cee67876dde159497942b7464353adfd591ff2
|
|
4
|
+
data.tar.gz: 8080663595e284f048d9624092e687f9c8cbfb75fb1faf6c8c50354377692049
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f087d074fac5431724e397974750eba2a4e0dbca2865c77549c14a726a71484c6bbae696e0c8142f2a1b86d8827279ec9ef94ff4016e14604ce7d07877e9290e
|
|
7
|
+
data.tar.gz: 0cff15ec7536714419a418bb84ec2d53a5dd79e0e6cbf02bb09e264125e652273d7d78ea9bc057fbcdab8707434d983cf84107f6c56265c35ec3bae39ad221df
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.1 (2026-05-12)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.34...v0.1.0-beta.1](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.34...v0.1.0-beta.1)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add custom_currencies resource to events/credits ([6999605](https://github.com/stiggio/stigg-ruby/commit/699960512734576197f4000f0dd069506bf47448))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **internal:** regenerate SDK with no functional changes ([e07191b](https://github.com/stiggio/stigg-ruby/commit/e07191b4ead698186c7d2b8c665d3eca17debe7e))
|
|
15
|
+
|
|
3
16
|
## 0.1.0-alpha.34 (2026-05-11)
|
|
4
17
|
|
|
5
18
|
Full Changelog: [v0.1.0-alpha.33...v0.1.0-alpha.34](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.33...v0.1.0-alpha.34)
|
data/README.md
CHANGED
|
@@ -41,8 +41,8 @@ module Stigg
|
|
|
41
41
|
# @!attribute status
|
|
42
42
|
# Filter by status. Supports comma-separated values for multiple statuses
|
|
43
43
|
#
|
|
44
|
-
# @return [
|
|
45
|
-
optional :status,
|
|
44
|
+
# @return [Array<Symbol, Stigg::Models::V1::AddonListParams::Status>, nil]
|
|
45
|
+
optional :status, -> { Stigg::Internal::Type::ArrayOf[enum: Stigg::V1::AddonListParams::Status] }
|
|
46
46
|
|
|
47
47
|
# @!method initialize(after: nil, before: nil, created_at: nil, limit: nil, product_id: nil, status: nil, request_options: {})
|
|
48
48
|
# @param after [String] Return items that come after this cursor
|
|
@@ -55,7 +55,7 @@ module Stigg
|
|
|
55
55
|
#
|
|
56
56
|
# @param product_id [String] Filter by product ID
|
|
57
57
|
#
|
|
58
|
-
# @param status [
|
|
58
|
+
# @param status [Array<Symbol, Stigg::Models::V1::AddonListParams::Status>] Filter by status. Supports comma-separated values for multiple statuses
|
|
59
59
|
#
|
|
60
60
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
61
61
|
|
|
@@ -95,6 +95,17 @@ module Stigg
|
|
|
95
95
|
#
|
|
96
96
|
# @param lte [Time] Less than or equal to the specified createdAt value
|
|
97
97
|
end
|
|
98
|
+
|
|
99
|
+
module Status
|
|
100
|
+
extend Stigg::Internal::Type::Enum
|
|
101
|
+
|
|
102
|
+
DRAFT = :DRAFT
|
|
103
|
+
PUBLISHED = :PUBLISHED
|
|
104
|
+
ARCHIVED = :ARCHIVED
|
|
105
|
+
|
|
106
|
+
# @!method self.values
|
|
107
|
+
# @return [Array<Symbol>]
|
|
108
|
+
end
|
|
98
109
|
end
|
|
99
110
|
end
|
|
100
111
|
end
|
|
@@ -41,8 +41,8 @@ module Stigg
|
|
|
41
41
|
# @!attribute status
|
|
42
42
|
# Filter by coupon status. Supports comma-separated values for multiple statuses
|
|
43
43
|
#
|
|
44
|
-
# @return [
|
|
45
|
-
optional :status,
|
|
44
|
+
# @return [Array<Symbol, Stigg::Models::V1::CouponListParams::Status>, nil]
|
|
45
|
+
optional :status, -> { Stigg::Internal::Type::ArrayOf[enum: Stigg::V1::CouponListParams::Status] }
|
|
46
46
|
|
|
47
47
|
# @!attribute type
|
|
48
48
|
# Filter by coupon type (FIXED or PERCENTAGE)
|
|
@@ -61,7 +61,7 @@ module Stigg
|
|
|
61
61
|
#
|
|
62
62
|
# @param limit [Integer] Maximum number of items to return
|
|
63
63
|
#
|
|
64
|
-
# @param status [
|
|
64
|
+
# @param status [Array<Symbol, Stigg::Models::V1::CouponListParams::Status>] Filter by coupon status. Supports comma-separated values for multiple statuses
|
|
65
65
|
#
|
|
66
66
|
# @param type [Symbol, Stigg::Models::V1::CouponListParams::Type] Filter by coupon type (FIXED or PERCENTAGE)
|
|
67
67
|
#
|
|
@@ -104,6 +104,16 @@ module Stigg
|
|
|
104
104
|
# @param lte [Time] Less than or equal to the specified createdAt value
|
|
105
105
|
end
|
|
106
106
|
|
|
107
|
+
module Status
|
|
108
|
+
extend Stigg::Internal::Type::Enum
|
|
109
|
+
|
|
110
|
+
ACTIVE = :ACTIVE
|
|
111
|
+
ARCHIVED = :ARCHIVED
|
|
112
|
+
|
|
113
|
+
# @!method self.values
|
|
114
|
+
# @return [Array<Symbol>]
|
|
115
|
+
end
|
|
116
|
+
|
|
107
117
|
# Filter by coupon type (FIXED or PERCENTAGE)
|
|
108
118
|
module Type
|
|
109
119
|
extend Stigg::Internal::Type::Enum
|
|
@@ -36,8 +36,9 @@ module Stigg
|
|
|
36
36
|
# Filter by vendor identifier. Supports comma-separated values for multiple
|
|
37
37
|
# vendors (e.g., STRIPE,HUBSPOT)
|
|
38
38
|
#
|
|
39
|
-
# @return [
|
|
40
|
-
optional :vendor_identifier,
|
|
39
|
+
# @return [Array<Symbol, Stigg::Models::V1::Customers::IntegrationListParams::VendorIdentifier>, nil]
|
|
40
|
+
optional :vendor_identifier,
|
|
41
|
+
-> { Stigg::Internal::Type::ArrayOf[enum: Stigg::V1::Customers::IntegrationListParams::VendorIdentifier] }
|
|
41
42
|
|
|
42
43
|
# @!method initialize(id:, after: nil, before: nil, limit: nil, vendor_identifier: nil, request_options: {})
|
|
43
44
|
# Some parameter documentations has been truncated, see
|
|
@@ -51,9 +52,27 @@ module Stigg
|
|
|
51
52
|
#
|
|
52
53
|
# @param limit [Integer] Maximum number of items to return
|
|
53
54
|
#
|
|
54
|
-
# @param vendor_identifier [
|
|
55
|
+
# @param vendor_identifier [Array<Symbol, Stigg::Models::V1::Customers::IntegrationListParams::VendorIdentifier>] Filter by vendor identifier. Supports comma-separated values for multiple vendor
|
|
55
56
|
#
|
|
56
57
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
58
|
+
|
|
59
|
+
module VendorIdentifier
|
|
60
|
+
extend Stigg::Internal::Type::Enum
|
|
61
|
+
|
|
62
|
+
AUTH0 = :AUTH0
|
|
63
|
+
ZUORA = :ZUORA
|
|
64
|
+
STRIPE = :STRIPE
|
|
65
|
+
HUBSPOT = :HUBSPOT
|
|
66
|
+
AWS_MARKETPLACE = :AWS_MARKETPLACE
|
|
67
|
+
SNOWFLAKE = :SNOWFLAKE
|
|
68
|
+
SALESFORCE = :SALESFORCE
|
|
69
|
+
BIG_QUERY = :BIG_QUERY
|
|
70
|
+
OPEN_FGA = :OPEN_FGA
|
|
71
|
+
APP_STORE = :APP_STORE
|
|
72
|
+
|
|
73
|
+
# @!method self.values
|
|
74
|
+
# @return [Array<Symbol>]
|
|
75
|
+
end
|
|
57
76
|
end
|
|
58
77
|
end
|
|
59
78
|
end
|
|
@@ -42,8 +42,9 @@ module Stigg
|
|
|
42
42
|
# Filter by promotional entitlement status. Supports comma-separated values for
|
|
43
43
|
# multiple statuses
|
|
44
44
|
#
|
|
45
|
-
# @return [
|
|
46
|
-
optional :status,
|
|
45
|
+
# @return [Array<Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementListParams::Status>, nil]
|
|
46
|
+
optional :status,
|
|
47
|
+
-> { Stigg::Internal::Type::ArrayOf[enum: Stigg::V1::Customers::PromotionalEntitlementListParams::Status] }
|
|
47
48
|
|
|
48
49
|
# @!method initialize(id:, after: nil, before: nil, created_at: nil, limit: nil, status: nil, request_options: {})
|
|
49
50
|
# Some parameter documentations has been truncated, see
|
|
@@ -60,7 +61,7 @@ module Stigg
|
|
|
60
61
|
#
|
|
61
62
|
# @param limit [Integer] Maximum number of items to return
|
|
62
63
|
#
|
|
63
|
-
# @param status [
|
|
64
|
+
# @param status [Array<Symbol, Stigg::Models::V1::Customers::PromotionalEntitlementListParams::Status>] Filter by promotional entitlement status. Supports comma-separated values for mu
|
|
64
65
|
#
|
|
65
66
|
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
66
67
|
|
|
@@ -100,6 +101,17 @@ module Stigg
|
|
|
100
101
|
#
|
|
101
102
|
# @param lte [Time] Less than or equal to the specified createdAt value
|
|
102
103
|
end
|
|
104
|
+
|
|
105
|
+
module Status
|
|
106
|
+
extend Stigg::Internal::Type::Enum
|
|
107
|
+
|
|
108
|
+
ACTIVE = :Active
|
|
109
|
+
EXPIRED = :Expired
|
|
110
|
+
PAUSED = :Paused
|
|
111
|
+
|
|
112
|
+
# @!method self.values
|
|
113
|
+
# @return [Array<Symbol>]
|
|
114
|
+
end
|
|
103
115
|
end
|
|
104
116
|
end
|
|
105
117
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Events
|
|
7
|
+
module Credits
|
|
8
|
+
# @see Stigg::Resources::V1::Events::Credits::CustomCurrencies#archive
|
|
9
|
+
class CustomCurrencyArchiveParams < Stigg::Internal::Type::BaseModel
|
|
10
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Stigg::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute currency_id
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :currency_id, String
|
|
17
|
+
|
|
18
|
+
# @!method initialize(currency_id:, request_options: {})
|
|
19
|
+
# @param currency_id [String]
|
|
20
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Events
|
|
7
|
+
module Credits
|
|
8
|
+
# @see Stigg::Resources::V1::Events::Credits::CustomCurrencies#archive
|
|
9
|
+
class CustomCurrencyArchiveResponse < Stigg::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute data
|
|
11
|
+
# A custom currency used to denominate credit-based entitlements and pricing
|
|
12
|
+
#
|
|
13
|
+
# @return [Stigg::Models::V1::Events::Credits::CustomCurrencyArchiveResponse::Data]
|
|
14
|
+
required :data, -> { Stigg::Models::V1::Events::Credits::CustomCurrencyArchiveResponse::Data }
|
|
15
|
+
|
|
16
|
+
# @!method initialize(data:)
|
|
17
|
+
# Response object
|
|
18
|
+
#
|
|
19
|
+
# @param data [Stigg::Models::V1::Events::Credits::CustomCurrencyArchiveResponse::Data] A custom currency used to denominate credit-based entitlements and pricing
|
|
20
|
+
|
|
21
|
+
# @see Stigg::Models::V1::Events::Credits::CustomCurrencyArchiveResponse#data
|
|
22
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
23
|
+
# @!attribute id
|
|
24
|
+
# The unique identifier for the custom currency
|
|
25
|
+
#
|
|
26
|
+
# @return [String]
|
|
27
|
+
required :id, String
|
|
28
|
+
|
|
29
|
+
# @!attribute archived_at
|
|
30
|
+
# Timestamp of when the record was deleted
|
|
31
|
+
#
|
|
32
|
+
# @return [Time, nil]
|
|
33
|
+
required :archived_at, Time, api_name: :archivedAt, nil?: true
|
|
34
|
+
|
|
35
|
+
# @!attribute created_at
|
|
36
|
+
# Timestamp of when the record was created
|
|
37
|
+
#
|
|
38
|
+
# @return [Time]
|
|
39
|
+
required :created_at, Time, api_name: :createdAt
|
|
40
|
+
|
|
41
|
+
# @!attribute description
|
|
42
|
+
# Description of the currency
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
required :description, String, nil?: true
|
|
46
|
+
|
|
47
|
+
# @!attribute display_name
|
|
48
|
+
# The display name of the custom currency
|
|
49
|
+
#
|
|
50
|
+
# @return [String]
|
|
51
|
+
required :display_name, String, api_name: :displayName
|
|
52
|
+
|
|
53
|
+
# @!attribute metadata
|
|
54
|
+
# Metadata associated with the entity
|
|
55
|
+
#
|
|
56
|
+
# @return [Hash{Symbol=>String}]
|
|
57
|
+
required :metadata, Stigg::Internal::Type::HashOf[String]
|
|
58
|
+
|
|
59
|
+
# @!attribute symbol
|
|
60
|
+
# The symbol used to represent the custom currency
|
|
61
|
+
#
|
|
62
|
+
# @return [String, nil]
|
|
63
|
+
required :symbol, String, nil?: true
|
|
64
|
+
|
|
65
|
+
# @!attribute units
|
|
66
|
+
# Singular and plural unit labels for a custom currency
|
|
67
|
+
#
|
|
68
|
+
# @return [Stigg::Models::V1::Events::Credits::CustomCurrencyArchiveResponse::Data::Units, nil]
|
|
69
|
+
required :units,
|
|
70
|
+
-> { Stigg::Models::V1::Events::Credits::CustomCurrencyArchiveResponse::Data::Units },
|
|
71
|
+
nil?: true
|
|
72
|
+
|
|
73
|
+
# @!attribute updated_at
|
|
74
|
+
# Timestamp of when the record was last updated
|
|
75
|
+
#
|
|
76
|
+
# @return [Time]
|
|
77
|
+
required :updated_at, Time, api_name: :updatedAt
|
|
78
|
+
|
|
79
|
+
# @!method initialize(id:, archived_at:, created_at:, description:, display_name:, metadata:, symbol:, units:, updated_at:)
|
|
80
|
+
# A custom currency used to denominate credit-based entitlements and pricing
|
|
81
|
+
#
|
|
82
|
+
# @param id [String] The unique identifier for the custom currency
|
|
83
|
+
#
|
|
84
|
+
# @param archived_at [Time, nil] Timestamp of when the record was deleted
|
|
85
|
+
#
|
|
86
|
+
# @param created_at [Time] Timestamp of when the record was created
|
|
87
|
+
#
|
|
88
|
+
# @param description [String, nil] Description of the currency
|
|
89
|
+
#
|
|
90
|
+
# @param display_name [String] The display name of the custom currency
|
|
91
|
+
#
|
|
92
|
+
# @param metadata [Hash{Symbol=>String}] Metadata associated with the entity
|
|
93
|
+
#
|
|
94
|
+
# @param symbol [String, nil] The symbol used to represent the custom currency
|
|
95
|
+
#
|
|
96
|
+
# @param units [Stigg::Models::V1::Events::Credits::CustomCurrencyArchiveResponse::Data::Units, nil] Singular and plural unit labels for a custom currency
|
|
97
|
+
#
|
|
98
|
+
# @param updated_at [Time] Timestamp of when the record was last updated
|
|
99
|
+
|
|
100
|
+
# @see Stigg::Models::V1::Events::Credits::CustomCurrencyArchiveResponse::Data#units
|
|
101
|
+
class Units < Stigg::Internal::Type::BaseModel
|
|
102
|
+
# @!attribute plural
|
|
103
|
+
# Plural form of the unit label
|
|
104
|
+
#
|
|
105
|
+
# @return [String, nil]
|
|
106
|
+
required :plural, String, nil?: true
|
|
107
|
+
|
|
108
|
+
# @!attribute singular
|
|
109
|
+
# Singular form of the unit label
|
|
110
|
+
#
|
|
111
|
+
# @return [String, nil]
|
|
112
|
+
required :singular, String, nil?: true
|
|
113
|
+
|
|
114
|
+
# @!method initialize(plural:, singular:)
|
|
115
|
+
# Singular and plural unit labels for a custom currency
|
|
116
|
+
#
|
|
117
|
+
# @param plural [String, nil] Plural form of the unit label
|
|
118
|
+
#
|
|
119
|
+
# @param singular [String, nil] Singular form of the unit label
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Events
|
|
7
|
+
module Credits
|
|
8
|
+
# @see Stigg::Resources::V1::Events::Credits::CustomCurrencies#create
|
|
9
|
+
class CustomCurrencyCreateParams < Stigg::Internal::Type::BaseModel
|
|
10
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Stigg::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute id
|
|
14
|
+
# The unique identifier for the new custom currency
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :id, String
|
|
18
|
+
|
|
19
|
+
# @!attribute display_name
|
|
20
|
+
# The display name of the custom currency
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :display_name, String, api_name: :displayName
|
|
24
|
+
|
|
25
|
+
# @!attribute description
|
|
26
|
+
# Description of the currency
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :description, String
|
|
30
|
+
|
|
31
|
+
# @!attribute metadata
|
|
32
|
+
# Additional metadata to attach to the custom currency
|
|
33
|
+
#
|
|
34
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
35
|
+
optional :metadata, Stigg::Internal::Type::HashOf[String]
|
|
36
|
+
|
|
37
|
+
# @!attribute symbol
|
|
38
|
+
# The symbol used to represent the custom currency
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
optional :symbol, String
|
|
42
|
+
|
|
43
|
+
# @!attribute units
|
|
44
|
+
# Singular and plural unit labels for a custom currency. Both fields are required
|
|
45
|
+
# when supplied.
|
|
46
|
+
#
|
|
47
|
+
# @return [Stigg::Models::V1::Events::Credits::CustomCurrencyCreateParams::Units, nil]
|
|
48
|
+
optional :units, -> { Stigg::V1::Events::Credits::CustomCurrencyCreateParams::Units }
|
|
49
|
+
|
|
50
|
+
# @!method initialize(id:, display_name:, description: nil, metadata: nil, symbol: nil, units: nil, request_options: {})
|
|
51
|
+
# Some parameter documentations has been truncated, see
|
|
52
|
+
# {Stigg::Models::V1::Events::Credits::CustomCurrencyCreateParams} for more
|
|
53
|
+
# details.
|
|
54
|
+
#
|
|
55
|
+
# @param id [String] The unique identifier for the new custom currency
|
|
56
|
+
#
|
|
57
|
+
# @param display_name [String] The display name of the custom currency
|
|
58
|
+
#
|
|
59
|
+
# @param description [String] Description of the currency
|
|
60
|
+
#
|
|
61
|
+
# @param metadata [Hash{Symbol=>String}] Additional metadata to attach to the custom currency
|
|
62
|
+
#
|
|
63
|
+
# @param symbol [String] The symbol used to represent the custom currency
|
|
64
|
+
#
|
|
65
|
+
# @param units [Stigg::Models::V1::Events::Credits::CustomCurrencyCreateParams::Units] Singular and plural unit labels for a custom currency. Both fields are required
|
|
66
|
+
#
|
|
67
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
68
|
+
|
|
69
|
+
class Units < Stigg::Internal::Type::BaseModel
|
|
70
|
+
# @!attribute plural
|
|
71
|
+
# Plural form of the unit label
|
|
72
|
+
#
|
|
73
|
+
# @return [String]
|
|
74
|
+
required :plural, String
|
|
75
|
+
|
|
76
|
+
# @!attribute singular
|
|
77
|
+
# Singular form of the unit label
|
|
78
|
+
#
|
|
79
|
+
# @return [String]
|
|
80
|
+
required :singular, String
|
|
81
|
+
|
|
82
|
+
# @!method initialize(plural:, singular:)
|
|
83
|
+
# Singular and plural unit labels for a custom currency. Both fields are required
|
|
84
|
+
# when supplied.
|
|
85
|
+
#
|
|
86
|
+
# @param plural [String] Plural form of the unit label
|
|
87
|
+
#
|
|
88
|
+
# @param singular [String] Singular form of the unit label
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Events
|
|
7
|
+
module Credits
|
|
8
|
+
# @see Stigg::Resources::V1::Events::Credits::CustomCurrencies#create
|
|
9
|
+
class CustomCurrencyCreateResponse < Stigg::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute data
|
|
11
|
+
# A custom currency used to denominate credit-based entitlements and pricing
|
|
12
|
+
#
|
|
13
|
+
# @return [Stigg::Models::V1::Events::Credits::CustomCurrencyCreateResponse::Data]
|
|
14
|
+
required :data, -> { Stigg::Models::V1::Events::Credits::CustomCurrencyCreateResponse::Data }
|
|
15
|
+
|
|
16
|
+
# @!method initialize(data:)
|
|
17
|
+
# Response object
|
|
18
|
+
#
|
|
19
|
+
# @param data [Stigg::Models::V1::Events::Credits::CustomCurrencyCreateResponse::Data] A custom currency used to denominate credit-based entitlements and pricing
|
|
20
|
+
|
|
21
|
+
# @see Stigg::Models::V1::Events::Credits::CustomCurrencyCreateResponse#data
|
|
22
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
23
|
+
# @!attribute id
|
|
24
|
+
# The unique identifier for the custom currency
|
|
25
|
+
#
|
|
26
|
+
# @return [String]
|
|
27
|
+
required :id, String
|
|
28
|
+
|
|
29
|
+
# @!attribute archived_at
|
|
30
|
+
# Timestamp of when the record was deleted
|
|
31
|
+
#
|
|
32
|
+
# @return [Time, nil]
|
|
33
|
+
required :archived_at, Time, api_name: :archivedAt, nil?: true
|
|
34
|
+
|
|
35
|
+
# @!attribute created_at
|
|
36
|
+
# Timestamp of when the record was created
|
|
37
|
+
#
|
|
38
|
+
# @return [Time]
|
|
39
|
+
required :created_at, Time, api_name: :createdAt
|
|
40
|
+
|
|
41
|
+
# @!attribute description
|
|
42
|
+
# Description of the currency
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
required :description, String, nil?: true
|
|
46
|
+
|
|
47
|
+
# @!attribute display_name
|
|
48
|
+
# The display name of the custom currency
|
|
49
|
+
#
|
|
50
|
+
# @return [String]
|
|
51
|
+
required :display_name, String, api_name: :displayName
|
|
52
|
+
|
|
53
|
+
# @!attribute metadata
|
|
54
|
+
# Metadata associated with the entity
|
|
55
|
+
#
|
|
56
|
+
# @return [Hash{Symbol=>String}]
|
|
57
|
+
required :metadata, Stigg::Internal::Type::HashOf[String]
|
|
58
|
+
|
|
59
|
+
# @!attribute symbol
|
|
60
|
+
# The symbol used to represent the custom currency
|
|
61
|
+
#
|
|
62
|
+
# @return [String, nil]
|
|
63
|
+
required :symbol, String, nil?: true
|
|
64
|
+
|
|
65
|
+
# @!attribute units
|
|
66
|
+
# Singular and plural unit labels for a custom currency
|
|
67
|
+
#
|
|
68
|
+
# @return [Stigg::Models::V1::Events::Credits::CustomCurrencyCreateResponse::Data::Units, nil]
|
|
69
|
+
required :units,
|
|
70
|
+
-> { Stigg::Models::V1::Events::Credits::CustomCurrencyCreateResponse::Data::Units },
|
|
71
|
+
nil?: true
|
|
72
|
+
|
|
73
|
+
# @!attribute updated_at
|
|
74
|
+
# Timestamp of when the record was last updated
|
|
75
|
+
#
|
|
76
|
+
# @return [Time]
|
|
77
|
+
required :updated_at, Time, api_name: :updatedAt
|
|
78
|
+
|
|
79
|
+
# @!method initialize(id:, archived_at:, created_at:, description:, display_name:, metadata:, symbol:, units:, updated_at:)
|
|
80
|
+
# A custom currency used to denominate credit-based entitlements and pricing
|
|
81
|
+
#
|
|
82
|
+
# @param id [String] The unique identifier for the custom currency
|
|
83
|
+
#
|
|
84
|
+
# @param archived_at [Time, nil] Timestamp of when the record was deleted
|
|
85
|
+
#
|
|
86
|
+
# @param created_at [Time] Timestamp of when the record was created
|
|
87
|
+
#
|
|
88
|
+
# @param description [String, nil] Description of the currency
|
|
89
|
+
#
|
|
90
|
+
# @param display_name [String] The display name of the custom currency
|
|
91
|
+
#
|
|
92
|
+
# @param metadata [Hash{Symbol=>String}] Metadata associated with the entity
|
|
93
|
+
#
|
|
94
|
+
# @param symbol [String, nil] The symbol used to represent the custom currency
|
|
95
|
+
#
|
|
96
|
+
# @param units [Stigg::Models::V1::Events::Credits::CustomCurrencyCreateResponse::Data::Units, nil] Singular and plural unit labels for a custom currency
|
|
97
|
+
#
|
|
98
|
+
# @param updated_at [Time] Timestamp of when the record was last updated
|
|
99
|
+
|
|
100
|
+
# @see Stigg::Models::V1::Events::Credits::CustomCurrencyCreateResponse::Data#units
|
|
101
|
+
class Units < Stigg::Internal::Type::BaseModel
|
|
102
|
+
# @!attribute plural
|
|
103
|
+
# Plural form of the unit label
|
|
104
|
+
#
|
|
105
|
+
# @return [String, nil]
|
|
106
|
+
required :plural, String, nil?: true
|
|
107
|
+
|
|
108
|
+
# @!attribute singular
|
|
109
|
+
# Singular form of the unit label
|
|
110
|
+
#
|
|
111
|
+
# @return [String, nil]
|
|
112
|
+
required :singular, String, nil?: true
|
|
113
|
+
|
|
114
|
+
# @!method initialize(plural:, singular:)
|
|
115
|
+
# Singular and plural unit labels for a custom currency
|
|
116
|
+
#
|
|
117
|
+
# @param plural [String, nil] Plural form of the unit label
|
|
118
|
+
#
|
|
119
|
+
# @param singular [String, nil] Singular form of the unit label
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Events
|
|
7
|
+
module Credits
|
|
8
|
+
# @see Stigg::Resources::V1::Events::Credits::CustomCurrencies#list_associated_entities
|
|
9
|
+
class CustomCurrencyListAssociatedEntitiesParams < Stigg::Internal::Type::BaseModel
|
|
10
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Stigg::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
# @!attribute currency_id
|
|
14
|
+
#
|
|
15
|
+
# @return [String]
|
|
16
|
+
required :currency_id, String
|
|
17
|
+
|
|
18
|
+
# @!method initialize(currency_id:, request_options: {})
|
|
19
|
+
# @param currency_id [String]
|
|
20
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
module Events
|
|
7
|
+
module Credits
|
|
8
|
+
# @see Stigg::Resources::V1::Events::Credits::CustomCurrencies#list_associated_entities
|
|
9
|
+
class CustomCurrencyListAssociatedEntitiesResponse < Stigg::Internal::Type::BaseModel
|
|
10
|
+
# @!attribute data
|
|
11
|
+
#
|
|
12
|
+
# @return [Array<Stigg::Models::V1::Events::Credits::CustomCurrencyListAssociatedEntitiesResponse::Data>]
|
|
13
|
+
required :data,
|
|
14
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1::Events::Credits::CustomCurrencyListAssociatedEntitiesResponse::Data] }
|
|
15
|
+
|
|
16
|
+
# @!method initialize(data:)
|
|
17
|
+
# List of entities (plans or addons) that reference a custom currency
|
|
18
|
+
#
|
|
19
|
+
# @param data [Array<Stigg::Models::V1::Events::Credits::CustomCurrencyListAssociatedEntitiesResponse::Data>]
|
|
20
|
+
|
|
21
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
22
|
+
# @!attribute id
|
|
23
|
+
# The reference ID of the associated entity
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
required :id, String
|
|
27
|
+
|
|
28
|
+
# @!attribute display_name
|
|
29
|
+
# The display name of the associated entity
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
required :display_name, String, api_name: :displayName
|
|
33
|
+
|
|
34
|
+
# @!attribute type
|
|
35
|
+
# The kind of entity referencing the currency (e.g., Plan)
|
|
36
|
+
#
|
|
37
|
+
# @return [String]
|
|
38
|
+
required :type, String
|
|
39
|
+
|
|
40
|
+
# @!method initialize(id:, display_name:, type:)
|
|
41
|
+
# An entity (plan or addon) that references a custom currency
|
|
42
|
+
#
|
|
43
|
+
# @param id [String] The reference ID of the associated entity
|
|
44
|
+
#
|
|
45
|
+
# @param display_name [String] The display name of the associated entity
|
|
46
|
+
#
|
|
47
|
+
# @param type [String] The kind of entity referencing the currency (e.g., Plan)
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|