stigg 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.2

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 (124) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +29 -1
  4. data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
  5. data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
  6. data/lib/stigg/models/v1/coupon_create_response.rb +11 -6
  7. data/lib/stigg/models/v1/coupon_list_params.rb +14 -14
  8. data/lib/stigg/models/v1/coupon_list_response.rb +262 -278
  9. data/lib/stigg/models/v1/coupon_retrieve_response.rb +11 -6
  10. data/lib/stigg/models/v1/customer_create_params.rb +2 -0
  11. data/lib/stigg/models/v1/customer_list_params.rb +14 -14
  12. data/lib/stigg/models/v1/customer_list_response.rb +160 -174
  13. data/lib/stigg/models/v1/customer_response.rb +8 -1
  14. data/lib/stigg/models/v1/customer_update_params.rb +2 -0
  15. data/lib/stigg/models/v1/customers/payment_method_attach_params.rb +3 -1
  16. data/lib/stigg/models/v1/subscription_create_params.rb +1485 -6
  17. data/lib/stigg/models/v1/subscription_create_response.rb +703 -4
  18. data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
  19. data/lib/stigg/models/v1/subscription_delegate_response.rb +42 -2
  20. data/lib/stigg/models/v1/subscription_list_params.rb +20 -24
  21. data/lib/stigg/models/v1/subscription_list_response.rb +255 -236
  22. data/lib/stigg/models/v1/subscription_migrate_params.rb +3 -3
  23. data/lib/stigg/models/v1/subscription_migrate_response.rb +42 -2
  24. data/lib/stigg/models/v1/subscription_preview_params.rb +139 -46
  25. data/lib/stigg/models/v1/subscription_preview_response.rb +164 -49
  26. data/lib/stigg/models/v1/subscription_retrieve_response.rb +42 -2
  27. data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
  28. data/lib/stigg/models/v1/subscription_transfer_response.rb +42 -2
  29. data/lib/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rb +2 -0
  30. data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +2 -0
  31. data/lib/stigg/models/v1_create_event_params.rb +2 -0
  32. data/lib/stigg/models/v1_create_event_response.rb +8 -1
  33. data/lib/stigg/models/v1_create_usage_params.rb +19 -3
  34. data/lib/stigg/models/v1_create_usage_response.rb +7 -1
  35. data/lib/stigg/resources/v1/coupons.rb +12 -10
  36. data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
  37. data/lib/stigg/resources/v1/customers/usage.rb +0 -41
  38. data/lib/stigg/resources/v1/customers.rb +20 -20
  39. data/lib/stigg/resources/v1/subscriptions/future_update.rb +6 -4
  40. data/lib/stigg/resources/v1/subscriptions.rb +74 -49
  41. data/lib/stigg/resources/v1.rb +2 -2
  42. data/lib/stigg/version.rb +1 -1
  43. data/lib/stigg.rb +0 -7
  44. data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
  45. data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
  46. data/rbi/stigg/models/v1/coupon_create_response.rbi +11 -10
  47. data/rbi/stigg/models/v1/coupon_list_params.rbi +21 -21
  48. data/rbi/stigg/models/v1/coupon_list_response.rbi +812 -869
  49. data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +11 -10
  50. data/rbi/stigg/models/v1/customer_create_params.rbi +1 -0
  51. data/rbi/stigg/models/v1/customer_list_params.rbi +21 -21
  52. data/rbi/stigg/models/v1/customer_list_response.rbi +307 -347
  53. data/rbi/stigg/models/v1/customer_response.rbi +8 -1
  54. data/rbi/stigg/models/v1/customer_update_params.rbi +1 -0
  55. data/rbi/stigg/models/v1/customers/payment_method_attach_params.rbi +3 -0
  56. data/rbi/stigg/models/v1/subscription_create_params.rbi +4975 -84
  57. data/rbi/stigg/models/v1/subscription_create_response.rbi +2508 -1
  58. data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
  59. data/rbi/stigg/models/v1/subscription_delegate_response.rbi +84 -1
  60. data/rbi/stigg/models/v1/subscription_list_params.rbi +26 -28
  61. data/rbi/stigg/models/v1/subscription_list_response.rbi +460 -435
  62. data/rbi/stigg/models/v1/subscription_migrate_params.rbi +3 -3
  63. data/rbi/stigg/models/v1/subscription_migrate_response.rbi +84 -1
  64. data/rbi/stigg/models/v1/subscription_preview_params.rbi +112 -14
  65. data/rbi/stigg/models/v1/subscription_preview_response.rbi +139 -6
  66. data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +84 -1
  67. data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
  68. data/rbi/stigg/models/v1/subscription_transfer_response.rbi +84 -1
  69. data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +1 -0
  70. data/rbi/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbi +1 -0
  71. data/rbi/stigg/models/v1_create_event_params.rbi +1 -0
  72. data/rbi/stigg/models/v1_create_event_response.rbi +8 -1
  73. data/rbi/stigg/models/v1_create_usage_params.rbi +44 -4
  74. data/rbi/stigg/models/v1_create_usage_response.rbi +8 -1
  75. data/rbi/stigg/resources/v1/coupons.rbi +20 -12
  76. data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
  77. data/rbi/stigg/resources/v1/customers/usage.rbi +0 -29
  78. data/rbi/stigg/resources/v1/customers.rbi +34 -20
  79. data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +12 -4
  80. data/rbi/stigg/resources/v1/subscriptions.rbi +102 -23
  81. data/rbi/stigg/resources/v1.rbi +2 -2
  82. data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
  83. data/sig/stigg/models/v1/coupon_create_response.rbs +4 -4
  84. data/sig/stigg/models/v1/coupon_list_params.rbs +11 -11
  85. data/sig/stigg/models/v1/coupon_list_response.rbs +331 -351
  86. data/sig/stigg/models/v1/coupon_retrieve_response.rbs +4 -4
  87. data/sig/stigg/models/v1/customer_list_params.rbs +11 -11
  88. data/sig/stigg/models/v1/customer_list_response.rbs +133 -153
  89. data/sig/stigg/models/v1/subscription_create_params.rbs +2029 -5
  90. data/sig/stigg/models/v1/subscription_create_response.rbs +1022 -0
  91. data/sig/stigg/models/v1/subscription_delegate_response.rbs +31 -0
  92. data/sig/stigg/models/v1/subscription_list_params.rbs +14 -14
  93. data/sig/stigg/models/v1/subscription_list_response.rbs +196 -189
  94. data/sig/stigg/models/v1/subscription_migrate_response.rbs +31 -0
  95. data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
  96. data/sig/stigg/models/v1/subscription_retrieve_response.rbs +31 -0
  97. data/sig/stigg/models/v1/subscription_transfer_response.rbs +31 -0
  98. data/sig/stigg/models/v1_create_usage_params.rbs +15 -5
  99. data/sig/stigg/resources/v1/coupons.rbs +3 -3
  100. data/sig/stigg/resources/v1/customers/usage.rbs +0 -10
  101. data/sig/stigg/resources/v1/customers.rbs +3 -5
  102. data/sig/stigg/resources/v1/subscriptions.rbs +19 -4
  103. metadata +2 -23
  104. data/lib/stigg/models/v1/customers/promotional_create_params.rb +0 -294
  105. data/lib/stigg/models/v1/customers/promotional_create_response.rb +0 -268
  106. data/lib/stigg/models/v1/customers/promotional_revoke_params.rb +0 -24
  107. data/lib/stigg/models/v1/customers/promotional_revoke_response.rb +0 -268
  108. data/lib/stigg/models/v1/customers/usage_retrieve_params.rb +0 -56
  109. data/lib/stigg/models/v1/customers/usage_retrieve_response.rb +0 -145
  110. data/lib/stigg/resources/v1/customers/promotional.rb +0 -69
  111. data/rbi/stigg/models/v1/customers/promotional_create_params.rbi +0 -639
  112. data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
  113. data/rbi/stigg/models/v1/customers/promotional_revoke_params.rbi +0 -42
  114. data/rbi/stigg/models/v1/customers/promotional_revoke_response.rbi +0 -497
  115. data/rbi/stigg/models/v1/customers/usage_retrieve_params.rbi +0 -84
  116. data/rbi/stigg/models/v1/customers/usage_retrieve_response.rbi +0 -353
  117. data/rbi/stigg/resources/v1/customers/promotional.rbi +0 -53
  118. data/sig/stigg/models/v1/customers/promotional_create_params.rbs +0 -234
  119. data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
  120. data/sig/stigg/models/v1/customers/promotional_revoke_params.rbs +0 -27
  121. data/sig/stigg/models/v1/customers/promotional_revoke_response.rbs +0 -209
  122. data/sig/stigg/models/v1/customers/usage_retrieve_params.rbs +0 -54
  123. data/sig/stigg/models/v1/customers/usage_retrieve_response.rbs +0 -134
  124. data/sig/stigg/resources/v1/customers/promotional.rbs +0 -23
@@ -35,6 +35,7 @@ module Stigg
35
35
  metadata: ::Hash[Symbol, String],
36
36
  paying_customer_id: String?,
37
37
  payment_collection_method: Stigg::Models::V1::SubscriptionRetrieveResponse::Data::payment_collection_method?,
38
+ prices: ::Array[Stigg::Models::V1::SubscriptionRetrieveResponse::Data::Price],
38
39
  resource_id: String?,
39
40
  trial_end_date: Time?
40
41
  }
@@ -78,6 +79,12 @@ module Stigg
78
79
 
79
80
  attr_accessor payment_collection_method: Stigg::Models::V1::SubscriptionRetrieveResponse::Data::payment_collection_method?
80
81
 
82
+ attr_reader prices: ::Array[Stigg::Models::V1::SubscriptionRetrieveResponse::Data::Price]?
83
+
84
+ def prices=: (
85
+ ::Array[Stigg::Models::V1::SubscriptionRetrieveResponse::Data::Price]
86
+ ) -> ::Array[Stigg::Models::V1::SubscriptionRetrieveResponse::Data::Price]
87
+
81
88
  attr_accessor resource_id: String?
82
89
 
83
90
  attr_accessor trial_end_date: Time?
@@ -101,6 +108,7 @@ module Stigg
101
108
  ?metadata: ::Hash[Symbol, String],
102
109
  ?paying_customer_id: String?,
103
110
  ?payment_collection_method: Stigg::Models::V1::SubscriptionRetrieveResponse::Data::payment_collection_method?,
111
+ ?prices: ::Array[Stigg::Models::V1::SubscriptionRetrieveResponse::Data::Price],
104
112
  ?resource_id: String?,
105
113
  ?trial_end_date: Time?
106
114
  ) -> void
@@ -124,6 +132,7 @@ module Stigg
124
132
  metadata: ::Hash[Symbol, String],
125
133
  paying_customer_id: String?,
126
134
  payment_collection_method: Stigg::Models::V1::SubscriptionRetrieveResponse::Data::payment_collection_method?,
135
+ prices: ::Array[Stigg::Models::V1::SubscriptionRetrieveResponse::Data::Price],
127
136
  resource_id: String?,
128
137
  trial_end_date: Time?
129
138
  }
@@ -217,6 +226,28 @@ module Stigg
217
226
 
218
227
  def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionRetrieveResponse::Data::payment_collection_method]
219
228
  end
229
+
230
+ type price = { id: String, created_at: String, updated_at: String }
231
+
232
+ class Price < Stigg::Internal::Type::BaseModel
233
+ attr_accessor id: String
234
+
235
+ attr_accessor created_at: String
236
+
237
+ attr_accessor updated_at: String
238
+
239
+ def initialize: (
240
+ id: String,
241
+ created_at: String,
242
+ updated_at: String
243
+ ) -> void
244
+
245
+ def to_hash: -> {
246
+ id: String,
247
+ created_at: String,
248
+ updated_at: String
249
+ }
250
+ end
220
251
  end
221
252
  end
222
253
  end
@@ -35,6 +35,7 @@ module Stigg
35
35
  metadata: ::Hash[Symbol, String],
36
36
  paying_customer_id: String?,
37
37
  payment_collection_method: Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection_method?,
38
+ prices: ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::Price],
38
39
  resource_id: String?,
39
40
  trial_end_date: Time?
40
41
  }
@@ -78,6 +79,12 @@ module Stigg
78
79
 
79
80
  attr_accessor payment_collection_method: Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection_method?
80
81
 
82
+ attr_reader prices: ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::Price]?
83
+
84
+ def prices=: (
85
+ ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::Price]
86
+ ) -> ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::Price]
87
+
81
88
  attr_accessor resource_id: String?
82
89
 
83
90
  attr_accessor trial_end_date: Time?
@@ -101,6 +108,7 @@ module Stigg
101
108
  ?metadata: ::Hash[Symbol, String],
102
109
  ?paying_customer_id: String?,
103
110
  ?payment_collection_method: Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection_method?,
111
+ ?prices: ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::Price],
104
112
  ?resource_id: String?,
105
113
  ?trial_end_date: Time?
106
114
  ) -> void
@@ -124,6 +132,7 @@ module Stigg
124
132
  metadata: ::Hash[Symbol, String],
125
133
  paying_customer_id: String?,
126
134
  payment_collection_method: Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection_method?,
135
+ prices: ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::Price],
127
136
  resource_id: String?,
128
137
  trial_end_date: Time?
129
138
  }
@@ -217,6 +226,28 @@ module Stigg
217
226
 
218
227
  def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionTransferResponse::Data::payment_collection_method]
219
228
  end
229
+
230
+ type price = { id: String, created_at: String, updated_at: String }
231
+
232
+ class Price < Stigg::Internal::Type::BaseModel
233
+ attr_accessor id: String
234
+
235
+ attr_accessor created_at: String
236
+
237
+ attr_accessor updated_at: String
238
+
239
+ def initialize: (
240
+ id: String,
241
+ created_at: String,
242
+ updated_at: String
243
+ ) -> void
244
+
245
+ def to_hash: -> {
246
+ id: String,
247
+ created_at: String,
248
+ updated_at: String
249
+ }
250
+ end
220
251
  end
221
252
  end
222
253
  end
@@ -26,7 +26,7 @@ module Stigg
26
26
  feature_id: String,
27
27
  value: Integer,
28
28
  created_at: Time,
29
- dimensions: ::Hash[Symbol, String],
29
+ dimensions: ::Hash[Symbol, Stigg::Models::V1CreateUsageParams::Usage::dimension],
30
30
  resource_id: String?,
31
31
  update_behavior: Stigg::Models::V1CreateUsageParams::Usage::update_behavior
32
32
  }
@@ -42,9 +42,11 @@ module Stigg
42
42
 
43
43
  def created_at=: (Time) -> Time
44
44
 
45
- attr_reader dimensions: ::Hash[Symbol, String]?
45
+ attr_reader dimensions: ::Hash[Symbol, Stigg::Models::V1CreateUsageParams::Usage::dimension]?
46
46
 
47
- def dimensions=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
47
+ def dimensions=: (
48
+ ::Hash[Symbol, Stigg::Models::V1CreateUsageParams::Usage::dimension]
49
+ ) -> ::Hash[Symbol, Stigg::Models::V1CreateUsageParams::Usage::dimension]
48
50
 
49
51
  attr_accessor resource_id: String?
50
52
 
@@ -59,7 +61,7 @@ module Stigg
59
61
  feature_id: String,
60
62
  value: Integer,
61
63
  ?created_at: Time,
62
- ?dimensions: ::Hash[Symbol, String],
64
+ ?dimensions: ::Hash[Symbol, Stigg::Models::V1CreateUsageParams::Usage::dimension],
63
65
  ?resource_id: String?,
64
66
  ?update_behavior: Stigg::Models::V1CreateUsageParams::Usage::update_behavior
65
67
  ) -> void
@@ -69,11 +71,19 @@ module Stigg
69
71
  feature_id: String,
70
72
  value: Integer,
71
73
  created_at: Time,
72
- dimensions: ::Hash[Symbol, String],
74
+ dimensions: ::Hash[Symbol, Stigg::Models::V1CreateUsageParams::Usage::dimension],
73
75
  resource_id: String?,
74
76
  update_behavior: Stigg::Models::V1CreateUsageParams::Usage::update_behavior
75
77
  }
76
78
 
79
+ type dimension = String | Float | bool
80
+
81
+ module Dimension
82
+ extend Stigg::Internal::Type::Union
83
+
84
+ def self?.variants: -> ::Array[Stigg::Models::V1CreateUsageParams::Usage::dimension]
85
+ end
86
+
77
87
  type update_behavior = :DELTA | :SET
78
88
 
79
89
  module UpdateBehavior
@@ -19,11 +19,11 @@ module Stigg
19
19
  ) -> Stigg::Models::V1::CouponRetrieveResponse
20
20
 
21
21
  def list: (
22
- ?ending_before: String,
22
+ ?after: String,
23
+ ?before: String,
23
24
  ?limit: Integer,
24
- ?starting_after: String,
25
25
  ?request_options: Stigg::request_opts
26
- ) -> Stigg::Models::V1::CouponListResponse
26
+ ) -> Stigg::Internal::MyCursorIDPage[Stigg::Models::V1::CouponListResponse]
27
27
 
28
28
  def initialize: (client: Stigg::Client) -> void
29
29
  end
@@ -3,16 +3,6 @@ module Stigg
3
3
  class V1
4
4
  class Customers
5
5
  class Usage
6
- def retrieve: (
7
- String feature_id,
8
- customer_id: String,
9
- start_date: Time,
10
- ?end_date: Time,
11
- ?group_by: String,
12
- ?resource_id: String?,
13
- ?request_options: Stigg::request_opts
14
- ) -> Stigg::Models::V1::Customers::UsageRetrieveResponse
15
-
16
6
  def initialize: (client: Stigg::Client) -> void
17
7
  end
18
8
  end
@@ -6,8 +6,6 @@ module Stigg
6
6
 
7
7
  attr_reader usage: Stigg::Resources::V1::Customers::Usage
8
8
 
9
- attr_reader promotional: Stigg::Resources::V1::Customers::Promotional
10
-
11
9
  def create: (
12
10
  id: String,
13
11
  ?coupon_id: String?,
@@ -35,11 +33,11 @@ module Stigg
35
33
  ) -> Stigg::V1::CustomerResponse
36
34
 
37
35
  def list: (
38
- ?ending_before: String,
36
+ ?after: String,
37
+ ?before: String,
39
38
  ?limit: Integer,
40
- ?starting_after: String,
41
39
  ?request_options: Stigg::request_opts
42
- ) -> Stigg::Models::V1::CustomerListResponse
40
+ ) -> Stigg::Internal::MyCursorIDPage[Stigg::Models::V1::CustomerListResponse]
43
41
 
44
42
  def archive: (
45
43
  String id,
@@ -7,14 +7,29 @@ module Stigg
7
7
  def create: (
8
8
  customer_id: String,
9
9
  plan_id: String,
10
- ?id: String?,
10
+ ?id: String,
11
+ ?addons: ::Array[Stigg::V1::SubscriptionCreateParams::Addon],
12
+ ?applied_coupon: Stigg::V1::SubscriptionCreateParams::AppliedCoupon,
11
13
  ?await_payment_confirmation: bool,
14
+ ?billing_country_code: String?,
15
+ ?billing_id: String?,
16
+ ?billing_information: Stigg::V1::SubscriptionCreateParams::BillingInformation,
12
17
  ?billing_period: Stigg::Models::V1::SubscriptionCreateParams::billing_period,
18
+ ?budget: Stigg::V1::SubscriptionCreateParams::Budget?,
19
+ ?charges: ::Array[Stigg::V1::SubscriptionCreateParams::Charge],
13
20
  ?checkout_options: Stigg::V1::SubscriptionCreateParams::CheckoutOptions,
14
21
  ?metadata: ::Hash[Symbol, String],
22
+ ?minimum_spend: Stigg::V1::SubscriptionCreateParams::MinimumSpend?,
15
23
  ?paying_customer_id: String?,
24
+ ?payment_collection_method: Stigg::Models::V1::SubscriptionCreateParams::payment_collection_method,
25
+ ?price_overrides: ::Array[Stigg::V1::SubscriptionCreateParams::PriceOverride],
16
26
  ?resource_id: String?,
27
+ ?salesforce_id: String?,
28
+ ?schedule_strategy: Stigg::Models::V1::SubscriptionCreateParams::schedule_strategy,
29
+ ?start_date: Time,
30
+ ?subscription_entitlements: ::Array[Stigg::V1::SubscriptionCreateParams::SubscriptionEntitlement],
17
31
  ?trial_override_configuration: Stigg::V1::SubscriptionCreateParams::TrialOverrideConfiguration,
32
+ ?unit_quantity: Float,
18
33
  ?request_options: Stigg::request_opts
19
34
  ) -> Stigg::Models::V1::SubscriptionCreateResponse
20
35
 
@@ -24,13 +39,13 @@ module Stigg
24
39
  ) -> Stigg::Models::V1::SubscriptionRetrieveResponse
25
40
 
26
41
  def list: (
42
+ ?after: String,
43
+ ?before: String,
27
44
  ?customer_id: String,
28
- ?ending_before: String,
29
45
  ?limit: Integer,
30
- ?starting_after: String,
31
46
  ?status: String,
32
47
  ?request_options: Stigg::request_opts
33
- ) -> Stigg::Models::V1::SubscriptionListResponse
48
+ ) -> Stigg::Internal::MyCursorIDPage[Stigg::Models::V1::SubscriptionListResponse]
34
49
 
35
50
  def delegate: (
36
51
  String id,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stigg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.1
4
+ version: 0.1.0.pre.alpha.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-26 00:00:00.000000000 Z
11
+ date: 2026-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi
@@ -86,12 +86,6 @@ files:
86
86
  - lib/stigg/models/v1/customer_update_params.rb
87
87
  - lib/stigg/models/v1/customers/payment_method_attach_params.rb
88
88
  - lib/stigg/models/v1/customers/payment_method_detach_params.rb
89
- - lib/stigg/models/v1/customers/promotional_create_params.rb
90
- - lib/stigg/models/v1/customers/promotional_create_response.rb
91
- - lib/stigg/models/v1/customers/promotional_revoke_params.rb
92
- - lib/stigg/models/v1/customers/promotional_revoke_response.rb
93
- - lib/stigg/models/v1/customers/usage_retrieve_params.rb
94
- - lib/stigg/models/v1/customers/usage_retrieve_response.rb
95
89
  - lib/stigg/models/v1/subscription_create_params.rb
96
90
  - lib/stigg/models/v1/subscription_create_response.rb
97
91
  - lib/stigg/models/v1/subscription_delegate_params.rb
@@ -119,7 +113,6 @@ files:
119
113
  - lib/stigg/resources/v1/coupons.rb
120
114
  - lib/stigg/resources/v1/customers.rb
121
115
  - lib/stigg/resources/v1/customers/payment_method.rb
122
- - lib/stigg/resources/v1/customers/promotional.rb
123
116
  - lib/stigg/resources/v1/customers/usage.rb
124
117
  - lib/stigg/resources/v1/subscriptions.rb
125
118
  - lib/stigg/resources/v1/subscriptions/future_update.rb
@@ -161,12 +154,6 @@ files:
161
154
  - rbi/stigg/models/v1/customer_update_params.rbi
162
155
  - rbi/stigg/models/v1/customers/payment_method_attach_params.rbi
163
156
  - rbi/stigg/models/v1/customers/payment_method_detach_params.rbi
164
- - rbi/stigg/models/v1/customers/promotional_create_params.rbi
165
- - rbi/stigg/models/v1/customers/promotional_create_response.rbi
166
- - rbi/stigg/models/v1/customers/promotional_revoke_params.rbi
167
- - rbi/stigg/models/v1/customers/promotional_revoke_response.rbi
168
- - rbi/stigg/models/v1/customers/usage_retrieve_params.rbi
169
- - rbi/stigg/models/v1/customers/usage_retrieve_response.rbi
170
157
  - rbi/stigg/models/v1/subscription_create_params.rbi
171
158
  - rbi/stigg/models/v1/subscription_create_response.rbi
172
159
  - rbi/stigg/models/v1/subscription_delegate_params.rbi
@@ -194,7 +181,6 @@ files:
194
181
  - rbi/stigg/resources/v1/coupons.rbi
195
182
  - rbi/stigg/resources/v1/customers.rbi
196
183
  - rbi/stigg/resources/v1/customers/payment_method.rbi
197
- - rbi/stigg/resources/v1/customers/promotional.rbi
198
184
  - rbi/stigg/resources/v1/customers/usage.rbi
199
185
  - rbi/stigg/resources/v1/subscriptions.rbi
200
186
  - rbi/stigg/resources/v1/subscriptions/future_update.rbi
@@ -235,12 +221,6 @@ files:
235
221
  - sig/stigg/models/v1/customer_update_params.rbs
236
222
  - sig/stigg/models/v1/customers/payment_method_attach_params.rbs
237
223
  - sig/stigg/models/v1/customers/payment_method_detach_params.rbs
238
- - sig/stigg/models/v1/customers/promotional_create_params.rbs
239
- - sig/stigg/models/v1/customers/promotional_create_response.rbs
240
- - sig/stigg/models/v1/customers/promotional_revoke_params.rbs
241
- - sig/stigg/models/v1/customers/promotional_revoke_response.rbs
242
- - sig/stigg/models/v1/customers/usage_retrieve_params.rbs
243
- - sig/stigg/models/v1/customers/usage_retrieve_response.rbs
244
224
  - sig/stigg/models/v1/subscription_create_params.rbs
245
225
  - sig/stigg/models/v1/subscription_create_response.rbs
246
226
  - sig/stigg/models/v1/subscription_delegate_params.rbs
@@ -268,7 +248,6 @@ files:
268
248
  - sig/stigg/resources/v1/coupons.rbs
269
249
  - sig/stigg/resources/v1/customers.rbs
270
250
  - sig/stigg/resources/v1/customers/payment_method.rbs
271
- - sig/stigg/resources/v1/customers/promotional.rbs
272
251
  - sig/stigg/resources/v1/customers/usage.rbs
273
252
  - sig/stigg/resources/v1/subscriptions.rbs
274
253
  - sig/stigg/resources/v1/subscriptions/future_update.rbs
@@ -1,294 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Stigg
4
- module Models
5
- module V1
6
- module Customers
7
- # @see Stigg::Resources::V1::Customers::Promotional#create
8
- class PromotionalCreateParams < Stigg::Internal::Type::BaseModel
9
- extend Stigg::Internal::Type::RequestParameters::Converter
10
- include Stigg::Internal::Type::RequestParameters
11
-
12
- # @!attribute promotional_entitlements
13
- # Promotional entitlements to grant
14
- #
15
- # @return [Array<Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement>]
16
- required :promotional_entitlements,
17
- -> {
18
- Stigg::Internal::Type::ArrayOf[Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement]
19
- },
20
- api_name: :promotionalEntitlements
21
-
22
- # @!method initialize(promotional_entitlements:, request_options: {})
23
- # @param promotional_entitlements [Array<Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement>] Promotional entitlements to grant
24
- #
25
- # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
26
-
27
- class PromotionalEntitlement < Stigg::Internal::Type::BaseModel
28
- # @!attribute custom_end_date
29
- # The custom end date of the promotional entitlement
30
- #
31
- # @return [Time, nil]
32
- required :custom_end_date, Time, api_name: :customEndDate, nil?: true
33
-
34
- # @!attribute enum_values
35
- # The enum values of the entitlement
36
- #
37
- # @return [Array<String>, nil]
38
- required :enum_values, Stigg::Internal::Type::ArrayOf[String], api_name: :enumValues, nil?: true
39
-
40
- # @!attribute feature_id
41
- # The unique identifier of the entitlement feature
42
- #
43
- # @return [String]
44
- required :feature_id, String, api_name: :featureId
45
-
46
- # @!attribute has_soft_limit
47
- # Whether the entitlement has a soft limit
48
- #
49
- # @return [Boolean, nil]
50
- required :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit, nil?: true
51
-
52
- # @!attribute has_unlimited_usage
53
- # Whether the entitlement has an unlimited usage
54
- #
55
- # @return [Boolean, nil]
56
- required :has_unlimited_usage,
57
- Stigg::Internal::Type::Boolean,
58
- api_name: :hasUnlimitedUsage,
59
- nil?: true
60
-
61
- # @!attribute is_visible
62
- # Whether the entitlement is visible
63
- #
64
- # @return [Boolean, nil]
65
- required :is_visible, Stigg::Internal::Type::Boolean, api_name: :isVisible, nil?: true
66
-
67
- # @!attribute monthly_reset_period_configuration
68
- # The monthly reset period configuration of the entitlement, defined when reset
69
- # period is monthly
70
- #
71
- # @return [Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil]
72
- required :monthly_reset_period_configuration,
73
- -> {
74
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration
75
- },
76
- api_name: :monthlyResetPeriodConfiguration,
77
- nil?: true
78
-
79
- # @!attribute period
80
- # The grant period of the promotional entitlement
81
- #
82
- # @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period]
83
- required :period,
84
- enum: -> { Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period }
85
-
86
- # @!attribute reset_period
87
- # The reset period of the entitlement
88
- #
89
- # @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod, nil]
90
- required :reset_period,
91
- enum: -> {
92
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod
93
- },
94
- api_name: :resetPeriod,
95
- nil?: true
96
-
97
- # @!attribute usage_limit
98
- # The usage limit of the entitlement
99
- #
100
- # @return [Integer, nil]
101
- required :usage_limit, Integer, api_name: :usageLimit, nil?: true
102
-
103
- # @!attribute weekly_reset_period_configuration
104
- # The weekly reset period configuration of the entitlement, defined when reset
105
- # period is weekly
106
- #
107
- # @return [Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil]
108
- required :weekly_reset_period_configuration,
109
- -> {
110
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration
111
- },
112
- api_name: :weeklyResetPeriodConfiguration,
113
- nil?: true
114
-
115
- # @!attribute yearly_reset_period_configuration
116
- # The yearly reset period configuration of the entitlement, defined when reset
117
- # period is yearly
118
- #
119
- # @return [Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil]
120
- required :yearly_reset_period_configuration,
121
- -> {
122
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration
123
- },
124
- api_name: :yearlyResetPeriodConfiguration,
125
- nil?: true
126
-
127
- # @!method initialize(custom_end_date:, enum_values:, feature_id:, has_soft_limit:, has_unlimited_usage:, is_visible:, monthly_reset_period_configuration:, period:, reset_period:, usage_limit:, weekly_reset_period_configuration:, yearly_reset_period_configuration:)
128
- # Some parameter documentations has been truncated, see
129
- # {Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement}
130
- # for more details.
131
- #
132
- # @param custom_end_date [Time, nil] The custom end date of the promotional entitlement
133
- #
134
- # @param enum_values [Array<String>, nil] The enum values of the entitlement
135
- #
136
- # @param feature_id [String] The unique identifier of the entitlement feature
137
- #
138
- # @param has_soft_limit [Boolean, nil] Whether the entitlement has a soft limit
139
- #
140
- # @param has_unlimited_usage [Boolean, nil] Whether the entitlement has an unlimited usage
141
- #
142
- # @param is_visible [Boolean, nil] Whether the entitlement is visible
143
- #
144
- # @param monthly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration, nil] The monthly reset period configuration of the entitlement, defined when reset pe
145
- #
146
- # @param period [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::Period] The grant period of the promotional entitlement
147
- #
148
- # @param reset_period [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::ResetPeriod, nil] The reset period of the entitlement
149
- #
150
- # @param usage_limit [Integer, nil] The usage limit of the entitlement
151
- #
152
- # @param weekly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration, nil] The weekly reset period configuration of the entitlement, defined when reset per
153
- #
154
- # @param yearly_reset_period_configuration [Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration, nil] The yearly reset period configuration of the entitlement, defined when reset per
155
-
156
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#monthly_reset_period_configuration
157
- class MonthlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
158
- # @!attribute according_to
159
- # Monthly reset period according to
160
- #
161
- # @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo]
162
- required :according_to,
163
- enum: -> {
164
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo
165
- },
166
- api_name: :accordingTo
167
-
168
- # @!method initialize(according_to:)
169
- # The monthly reset period configuration of the entitlement, defined when reset
170
- # period is monthly
171
- #
172
- # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration::AccordingTo] Monthly reset period according to
173
-
174
- # Monthly reset period according to
175
- #
176
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::MonthlyResetPeriodConfiguration#according_to
177
- module AccordingTo
178
- extend Stigg::Internal::Type::Enum
179
-
180
- SUBSCRIPTION_START = :SubscriptionStart
181
- START_OF_THE_MONTH = :StartOfTheMonth
182
-
183
- # @!method self.values
184
- # @return [Array<Symbol>]
185
- end
186
- end
187
-
188
- # The grant period of the promotional entitlement
189
- #
190
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#period
191
- module Period
192
- extend Stigg::Internal::Type::Enum
193
-
194
- PERIOD_1_WEEK = :"1 week"
195
- PERIOD_1_MONTH = :"1 month"
196
- PERIOD_6_MONTH = :"6 month"
197
- PERIOD_1_YEAR = :"1 year"
198
- LIFETIME = :lifetime
199
- CUSTOM = :custom
200
-
201
- # @!method self.values
202
- # @return [Array<Symbol>]
203
- end
204
-
205
- # The reset period of the entitlement
206
- #
207
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#reset_period
208
- module ResetPeriod
209
- extend Stigg::Internal::Type::Enum
210
-
211
- YEAR = :YEAR
212
- MONTH = :MONTH
213
- WEEK = :WEEK
214
- DAY = :DAY
215
- HOUR = :HOUR
216
-
217
- # @!method self.values
218
- # @return [Array<Symbol>]
219
- end
220
-
221
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#weekly_reset_period_configuration
222
- class WeeklyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
223
- # @!attribute according_to
224
- # Weekly reset period according to
225
- #
226
- # @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo]
227
- required :according_to,
228
- enum: -> {
229
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo
230
- },
231
- api_name: :accordingTo
232
-
233
- # @!method initialize(according_to:)
234
- # The weekly reset period configuration of the entitlement, defined when reset
235
- # period is weekly
236
- #
237
- # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration::AccordingTo] Weekly reset period according to
238
-
239
- # Weekly reset period according to
240
- #
241
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::WeeklyResetPeriodConfiguration#according_to
242
- module AccordingTo
243
- extend Stigg::Internal::Type::Enum
244
-
245
- SUBSCRIPTION_START = :SubscriptionStart
246
- EVERY_SUNDAY = :EverySunday
247
- EVERY_MONDAY = :EveryMonday
248
- EVERY_TUESDAY = :EveryTuesday
249
- EVERY_WEDNESDAY = :EveryWednesday
250
- EVERY_THURSDAY = :EveryThursday
251
- EVERY_FRIDAY = :EveryFriday
252
- EVERY_SATURDAY = :EverySaturday
253
-
254
- # @!method self.values
255
- # @return [Array<Symbol>]
256
- end
257
- end
258
-
259
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement#yearly_reset_period_configuration
260
- class YearlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel
261
- # @!attribute according_to
262
- # Yearly reset period according to
263
- #
264
- # @return [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo]
265
- required :according_to,
266
- enum: -> {
267
- Stigg::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo
268
- },
269
- api_name: :accordingTo
270
-
271
- # @!method initialize(according_to:)
272
- # The yearly reset period configuration of the entitlement, defined when reset
273
- # period is yearly
274
- #
275
- # @param according_to [Symbol, Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration::AccordingTo] Yearly reset period according to
276
-
277
- # Yearly reset period according to
278
- #
279
- # @see Stigg::Models::V1::Customers::PromotionalCreateParams::PromotionalEntitlement::YearlyResetPeriodConfiguration#according_to
280
- module AccordingTo
281
- extend Stigg::Internal::Type::Enum
282
-
283
- SUBSCRIPTION_START = :SubscriptionStart
284
-
285
- # @!method self.values
286
- # @return [Array<Symbol>]
287
- end
288
- end
289
- end
290
- end
291
- end
292
- end
293
- end
294
- end