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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/stigg/models/v1/addon_list_params.rb +14 -3
  5. data/lib/stigg/models/v1/coupon_list_params.rb +13 -3
  6. data/lib/stigg/models/v1/customers/integration_list_params.rb +22 -3
  7. data/lib/stigg/models/v1/customers/promotional_entitlement_list_params.rb +15 -3
  8. data/lib/stigg/models/v1/events/credits/custom_currency_archive_params.rb +26 -0
  9. data/lib/stigg/models/v1/events/credits/custom_currency_archive_response.rb +127 -0
  10. data/lib/stigg/models/v1/events/credits/custom_currency_create_params.rb +95 -0
  11. data/lib/stigg/models/v1/events/credits/custom_currency_create_response.rb +127 -0
  12. data/lib/stigg/models/v1/events/credits/custom_currency_list_associated_entities_params.rb +26 -0
  13. data/lib/stigg/models/v1/events/credits/custom_currency_list_associated_entities_response.rb +54 -0
  14. data/lib/stigg/models/v1/events/credits/custom_currency_list_params.rb +67 -0
  15. data/lib/stigg/models/v1/events/credits/custom_currency_list_response.rb +111 -0
  16. data/lib/stigg/models/v1/events/credits/custom_currency_unarchive_params.rb +26 -0
  17. data/lib/stigg/models/v1/events/credits/custom_currency_unarchive_response.rb +127 -0
  18. data/lib/stigg/models/v1/events/credits/custom_currency_update_params.rb +95 -0
  19. data/lib/stigg/models/v1/events/credits/custom_currency_update_response.rb +127 -0
  20. data/lib/stigg/models/v1/feature_list_features_params.rb +45 -9
  21. data/lib/stigg/models/v1/plan_list_params.rb +14 -3
  22. data/lib/stigg/models/v1/product_list_products_params.rb +14 -3
  23. data/lib/stigg/models/v1/subscription_list_params.rb +32 -6
  24. data/lib/stigg/resources/v1/addons.rb +1 -1
  25. data/lib/stigg/resources/v1/coupons.rb +1 -1
  26. data/lib/stigg/resources/v1/customers/integrations.rb +1 -1
  27. data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +1 -1
  28. data/lib/stigg/resources/v1/events/credits/custom_currencies.rb +192 -0
  29. data/lib/stigg/resources/v1/events/credits.rb +5 -0
  30. data/lib/stigg/resources/v1/features.rb +3 -3
  31. data/lib/stigg/resources/v1/plans.rb +1 -1
  32. data/lib/stigg/resources/v1/products.rb +1 -1
  33. data/lib/stigg/resources/v1/subscriptions.rb +2 -2
  34. data/lib/stigg/version.rb +1 -1
  35. data/lib/stigg.rb +13 -0
  36. data/rbi/stigg/models/v1/addon_list_params.rbi +35 -4
  37. data/rbi/stigg/models/v1/coupon_list_params.rbi +33 -4
  38. data/rbi/stigg/models/v1/customers/integration_list_params.rbi +99 -4
  39. data/rbi/stigg/models/v1/customers/promotional_entitlement_list_params.rbi +64 -4
  40. data/rbi/stigg/models/v1/events/credits/custom_currency_archive_params.rbi +44 -0
  41. data/rbi/stigg/models/v1/events/credits/custom_currency_archive_response.rbi +224 -0
  42. data/rbi/stigg/models/v1/events/credits/custom_currency_create_params.rbi +156 -0
  43. data/rbi/stigg/models/v1/events/credits/custom_currency_create_response.rbi +224 -0
  44. data/rbi/stigg/models/v1/events/credits/custom_currency_list_associated_entities_params.rbi +44 -0
  45. data/rbi/stigg/models/v1/events/credits/custom_currency_list_associated_entities_response.rbi +101 -0
  46. data/rbi/stigg/models/v1/events/credits/custom_currency_list_params.rbi +145 -0
  47. data/rbi/stigg/models/v1/events/credits/custom_currency_list_response.rbi +174 -0
  48. data/rbi/stigg/models/v1/events/credits/custom_currency_unarchive_params.rbi +44 -0
  49. data/rbi/stigg/models/v1/events/credits/custom_currency_unarchive_response.rbi +224 -0
  50. data/rbi/stigg/models/v1/events/credits/custom_currency_update_params.rbi +150 -0
  51. data/rbi/stigg/models/v1/events/credits/custom_currency_update_response.rbi +224 -0
  52. data/rbi/stigg/models/v1/feature_list_features_params.rbi +177 -12
  53. data/rbi/stigg/models/v1/plan_list_params.rbi +34 -4
  54. data/rbi/stigg/models/v1/product_list_products_params.rbi +50 -4
  55. data/rbi/stigg/models/v1/subscription_list_params.rbi +123 -8
  56. data/rbi/stigg/resources/v1/addons.rbi +1 -1
  57. data/rbi/stigg/resources/v1/coupons.rbi +1 -1
  58. data/rbi/stigg/resources/v1/customers/integrations.rbi +4 -1
  59. data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +4 -1
  60. data/rbi/stigg/resources/v1/events/credits/custom_currencies.rbi +171 -0
  61. data/rbi/stigg/resources/v1/events/credits.rbi +6 -0
  62. data/rbi/stigg/resources/v1/features.rbi +10 -3
  63. data/rbi/stigg/resources/v1/plans.rbi +1 -1
  64. data/rbi/stigg/resources/v1/products.rbi +2 -1
  65. data/rbi/stigg/resources/v1/subscriptions.rbi +6 -2
  66. data/sig/stigg/models/v1/addon_list_params.rbs +19 -5
  67. data/sig/stigg/models/v1/coupon_list_params.rbs +18 -5
  68. data/sig/stigg/models/v1/customers/integration_list_params.rbs +36 -5
  69. data/sig/stigg/models/v1/customers/promotional_entitlement_list_params.rbs +19 -5
  70. data/sig/stigg/models/v1/events/credits/custom_currency_archive_params.rbs +29 -0
  71. data/sig/stigg/models/v1/events/credits/custom_currency_archive_response.rbs +95 -0
  72. data/sig/stigg/models/v1/events/credits/custom_currency_create_params.rbs +79 -0
  73. data/sig/stigg/models/v1/events/credits/custom_currency_create_response.rbs +95 -0
  74. data/sig/stigg/models/v1/events/credits/custom_currency_list_associated_entities_params.rbs +29 -0
  75. data/sig/stigg/models/v1/events/credits/custom_currency_list_associated_entities_response.rbs +44 -0
  76. data/sig/stigg/models/v1/events/credits/custom_currency_list_params.rbs +68 -0
  77. data/sig/stigg/models/v1/events/credits/custom_currency_list_response.rbs +78 -0
  78. data/sig/stigg/models/v1/events/credits/custom_currency_unarchive_params.rbs +29 -0
  79. data/sig/stigg/models/v1/events/credits/custom_currency_unarchive_response.rbs +95 -0
  80. data/sig/stigg/models/v1/events/credits/custom_currency_update_params.rbs +75 -0
  81. data/sig/stigg/models/v1/events/credits/custom_currency_update_response.rbs +95 -0
  82. data/sig/stigg/models/v1/feature_list_features_params.rbs +57 -15
  83. data/sig/stigg/models/v1/plan_list_params.rbs +19 -5
  84. data/sig/stigg/models/v1/product_list_products_params.rbs +18 -5
  85. data/sig/stigg/models/v1/subscription_list_params.rbs +47 -10
  86. data/sig/stigg/resources/v1/addons.rbs +1 -1
  87. data/sig/stigg/resources/v1/coupons.rbs +1 -1
  88. data/sig/stigg/resources/v1/customers/integrations.rbs +1 -1
  89. data/sig/stigg/resources/v1/customers/promotional_entitlements.rbs +1 -1
  90. data/sig/stigg/resources/v1/events/credits/custom_currencies.rbs +56 -0
  91. data/sig/stigg/resources/v1/events/credits.rbs +2 -0
  92. data/sig/stigg/resources/v1/features.rbs +3 -3
  93. data/sig/stigg/resources/v1/plans.rbs +1 -1
  94. data/sig/stigg/resources/v1/products.rbs +1 -1
  95. data/sig/stigg/resources/v1/subscriptions.rbs +2 -2
  96. metadata +41 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 396050cde3ffe9c15a9acdebe0d5d2d524262f13a843a639d86d8d44c6e95b83
4
- data.tar.gz: f0dd38b57f86f2043a72169ba93e40b64a429c378d8c61c47883cd7e0a2241ec
3
+ metadata.gz: c90ef360bd74c5409fabb376a4cee67876dde159497942b7464353adfd591ff2
4
+ data.tar.gz: 8080663595e284f048d9624092e687f9c8cbfb75fb1faf6c8c50354377692049
5
5
  SHA512:
6
- metadata.gz: 8533daa2298fa08fe01c5268e31a5158f51cb06ed36bd51975f9b6d93dce9ec6221e13169f9d48911ff723a0df0cd789dca1b22ee2303c5edd1cd8f857f8e945
7
- data.tar.gz: b1bd1ad3dcbf2a6a35d7b38f3d9318e6ea34244f9701ddee79c414598c8ca1228c8eb5d6e4f5cbe6794a3a44267dee9527b0af1bac7ab03b0060e34b7651a961
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
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "stigg", "~> 0.1.0.pre.alpha.34"
27
+ gem "stigg", "~> 0.1.0.pre.beta.1"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -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 [String, nil]
45
- optional :status, String
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 [String] Filter by status. Supports comma-separated values for multiple statuses
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 [String, nil]
45
- optional :status, String
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 [String] Filter by coupon status. Supports comma-separated values for multiple statuses
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 [String, nil]
40
- optional :vendor_identifier, String
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 [String] Filter by vendor identifier. Supports comma-separated values for multiple vendor
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 [String, nil]
46
- optional :status, String
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 [String] Filter by promotional entitlement status. Supports comma-separated values for mu
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