stigg 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.3

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 (190) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +29 -1
  4. data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
  5. data/lib/stigg/internal/type/base_model.rb +2 -2
  6. data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +31 -26
  7. data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
  8. data/lib/stigg/models/v1/coupon_list_params.rb +14 -14
  9. data/lib/stigg/models/v1/coupon_list_response.rb +262 -278
  10. data/lib/stigg/models/v1/customer_import_params.rb +75 -0
  11. data/lib/stigg/models/v1/customer_import_response.rb +35 -0
  12. data/lib/stigg/models/v1/customer_list_params.rb +14 -14
  13. data/lib/stigg/models/v1/customer_list_response.rb +160 -174
  14. data/lib/stigg/models/v1/{customer_create_params.rb → customer_provision_params.rb} +18 -16
  15. data/lib/stigg/models/v1/customer_response.rb +9 -2
  16. data/lib/stigg/models/v1/customer_update_params.rb +2 -0
  17. data/lib/stigg/models/v1/customers/payment_method_attach_params.rb +3 -1
  18. data/lib/stigg/models/v1/customers/{promotional_create_params.rb → promotional_entitlement_grant_params.rb} +46 -44
  19. data/lib/stigg/models/v1/customers/{promotional_create_response.rb → promotional_entitlement_grant_response.rb} +105 -32
  20. data/lib/stigg/models/v1/customers/{promotional_revoke_params.rb → promotional_entitlement_revoke_params.rb} +2 -2
  21. data/lib/stigg/models/v1/customers/{promotional_revoke_response.rb → promotional_entitlement_revoke_response.rb} +107 -33
  22. data/lib/stigg/models/v1/event_report_params.rb +91 -0
  23. data/lib/stigg/models/v1/event_report_response.rb +25 -0
  24. data/lib/stigg/models/v1/{subscription_retrieve_response.rb → subscription.rb} +67 -26
  25. data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
  26. data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
  27. data/lib/stigg/models/v1/subscription_import_params.rb +92 -0
  28. data/lib/stigg/models/v1/subscription_import_response.rb +32 -0
  29. data/lib/stigg/models/v1/subscription_list_params.rb +20 -24
  30. data/lib/stigg/models/v1/subscription_list_response.rb +255 -236
  31. data/lib/stigg/models/v1/subscription_migrate_params.rb +3 -3
  32. data/lib/stigg/models/v1/subscription_preview_params.rb +139 -46
  33. data/lib/stigg/models/v1/subscription_preview_response.rb +164 -49
  34. data/lib/stigg/models/v1/subscription_provision_params.rb +1693 -0
  35. data/lib/stigg/models/v1/subscription_provision_response.rb +1038 -0
  36. data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
  37. data/lib/stigg/models/v1/subscription_update_params.rb +1114 -0
  38. data/lib/stigg/models/v1/subscriptions/{future_update_cancel_pending_payment_response.rb → cancel_subscription.rb} +9 -5
  39. data/lib/stigg/models/v1/usage_history_params.rb +54 -0
  40. data/lib/stigg/models/v1/usage_history_response.rb +155 -0
  41. data/lib/stigg/models/v1/usage_report_params.rb +114 -0
  42. data/lib/stigg/models/v1/usage_report_response.rb +120 -0
  43. data/lib/stigg/models.rb +0 -4
  44. data/lib/stigg/resources/v1/coupons.rb +16 -14
  45. data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
  46. data/lib/stigg/resources/v1/customers/{promotional.rb → promotional_entitlements.rb} +17 -17
  47. data/lib/stigg/resources/v1/customers.rb +78 -56
  48. data/lib/stigg/resources/v1/events.rb +38 -0
  49. data/lib/stigg/resources/v1/subscriptions/future_update.rb +10 -8
  50. data/lib/stigg/resources/v1/subscriptions.rb +206 -79
  51. data/lib/stigg/resources/v1/usage.rb +79 -0
  52. data/lib/stigg/resources/v1.rb +6 -42
  53. data/lib/stigg/version.rb +1 -1
  54. data/lib/stigg.rb +25 -23
  55. data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
  56. data/rbi/stigg/models/v1/coupon.rbi +891 -0
  57. data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
  58. data/rbi/stigg/models/v1/coupon_list_params.rbi +21 -21
  59. data/rbi/stigg/models/v1/coupon_list_response.rbi +812 -869
  60. data/rbi/stigg/models/v1/customer_import_params.rbi +130 -0
  61. data/rbi/stigg/models/v1/customer_import_response.rbi +76 -0
  62. data/rbi/stigg/models/v1/customer_list_params.rbi +21 -21
  63. data/rbi/stigg/models/v1/customer_list_response.rbi +307 -347
  64. data/rbi/stigg/models/v1/{customer_create_params.rbi → customer_provision_params.rbi} +36 -35
  65. data/rbi/stigg/models/v1/customer_response.rbi +8 -1
  66. data/rbi/stigg/models/v1/customer_update_params.rbi +1 -0
  67. data/rbi/stigg/models/v1/customers/payment_method_attach_params.rbi +3 -0
  68. data/rbi/stigg/models/v1/customers/{promotional_create_params.rbi → promotional_entitlement_grant_params.rbi} +78 -77
  69. data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
  70. data/rbi/stigg/models/v1/customers/{promotional_revoke_params.rbi → promotional_entitlement_revoke_params.rbi} +2 -2
  71. data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbi +696 -0
  72. data/rbi/stigg/models/v1/event_report_params.rbi +168 -0
  73. data/rbi/stigg/models/v1/event_report_response.rbi +35 -0
  74. data/rbi/stigg/models/v1/{subscription_migrate_response.rbi → subscription.rbi} +130 -98
  75. data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
  76. data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
  77. data/rbi/stigg/models/v1/subscription_import_params.rbi +148 -0
  78. data/rbi/stigg/models/v1/subscription_import_response.rbi +69 -0
  79. data/rbi/stigg/models/v1/subscription_list_params.rbi +26 -28
  80. data/rbi/stigg/models/v1/subscription_list_response.rbi +460 -435
  81. data/rbi/stigg/models/v1/subscription_migrate_params.rbi +3 -3
  82. data/rbi/stigg/models/v1/subscription_preview_params.rbi +112 -14
  83. data/rbi/stigg/models/v1/subscription_preview_response.rbi +139 -6
  84. data/rbi/stigg/models/v1/subscription_provision_params.rbi +5306 -0
  85. data/rbi/stigg/models/v1/subscription_provision_response.rbi +3175 -0
  86. data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
  87. data/rbi/stigg/models/v1/subscription_update_params.rbi +3578 -0
  88. data/rbi/stigg/models/v1/subscriptions/{future_update_cancel_schedule_response.rbi → cancel_subscription.rbi} +10 -16
  89. data/rbi/stigg/models/v1/usage_history_params.rbi +79 -0
  90. data/rbi/stigg/models/v1/usage_history_response.rbi +347 -0
  91. data/rbi/stigg/models/v1/usage_report_params.rbi +227 -0
  92. data/rbi/stigg/models/v1/usage_report_response.rbi +162 -0
  93. data/rbi/stigg/models.rbi +0 -4
  94. data/rbi/stigg/resources/v1/coupons.rbi +22 -14
  95. data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
  96. data/rbi/stigg/resources/v1/customers/{promotional.rbi → promotional_entitlements.rbi} +13 -9
  97. data/rbi/stigg/resources/v1/customers.rbi +84 -53
  98. data/rbi/stigg/resources/v1/events.rbi +28 -0
  99. data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +14 -10
  100. data/rbi/stigg/resources/v1/subscriptions.rbi +242 -58
  101. data/rbi/stigg/resources/v1/usage.rbi +57 -0
  102. data/rbi/stigg/resources/v1.rbi +4 -26
  103. data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
  104. data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
  105. data/sig/stigg/models/v1/coupon_list_params.rbs +11 -11
  106. data/sig/stigg/models/v1/coupon_list_response.rbs +331 -351
  107. data/sig/stigg/models/v1/customer_import_params.rbs +74 -0
  108. data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
  109. data/sig/stigg/models/v1/customer_list_params.rbs +11 -11
  110. data/sig/stigg/models/v1/customer_list_response.rbs +133 -153
  111. data/sig/stigg/models/v1/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
  112. data/sig/stigg/models/v1/customers/{promotional_create_params.rbs → promotional_entitlement_grant_params.rbs} +43 -43
  113. data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
  114. data/sig/stigg/models/v1/customers/{promotional_revoke_params.rbs → promotional_entitlement_revoke_params.rbs} +2 -2
  115. data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbs +281 -0
  116. data/sig/stigg/models/v1/event_report_params.rbs +82 -0
  117. data/sig/stigg/models/v1/event_report_response.rbs +15 -0
  118. data/sig/stigg/models/v1/{subscription_retrieve_response.rbs → subscription.rbs} +61 -35
  119. data/sig/stigg/models/v1/subscription_cancel_params.rbs +79 -0
  120. data/sig/stigg/models/v1/subscription_import_params.rbs +84 -0
  121. data/sig/stigg/models/v1/subscription_import_response.rbs +30 -0
  122. data/sig/stigg/models/v1/subscription_list_params.rbs +14 -14
  123. data/sig/stigg/models/v1/subscription_list_response.rbs +196 -189
  124. data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
  125. data/sig/stigg/models/v1/subscription_provision_params.rbs +2223 -0
  126. data/sig/stigg/models/v1/subscription_provision_response.rbs +1305 -0
  127. data/sig/stigg/models/v1/subscription_update_params.rbs +1544 -0
  128. data/sig/stigg/models/v1/subscriptions/cancel_subscription.rbs +34 -0
  129. data/sig/stigg/models/v1/usage_history_params.rbs +52 -0
  130. data/sig/stigg/models/v1/usage_history_response.rbs +129 -0
  131. data/sig/stigg/models/v1/usage_report_params.rbs +102 -0
  132. data/sig/stigg/models/v1/usage_report_response.rbs +87 -0
  133. data/sig/stigg/models.rbs +0 -4
  134. data/sig/stigg/resources/v1/coupons.rbs +5 -5
  135. data/sig/stigg/resources/v1/customers/{promotional.rbs → promotional_entitlements.rbs} +5 -5
  136. data/sig/stigg/resources/v1/customers.rbs +20 -17
  137. data/sig/stigg/resources/v1/events.rbs +14 -0
  138. data/sig/stigg/resources/v1/subscriptions/future_update.rbs +2 -2
  139. data/sig/stigg/resources/v1/subscriptions.rbs +68 -20
  140. data/sig/stigg/resources/v1/usage.rbs +24 -0
  141. data/sig/stigg/resources/v1.rbs +2 -8
  142. metadata +77 -71
  143. data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -317
  144. data/lib/stigg/models/v1/customers/usage_retrieve_params.rb +0 -56
  145. data/lib/stigg/models/v1/customers/usage_retrieve_response.rb +0 -145
  146. data/lib/stigg/models/v1/subscription_create_params.rb +0 -214
  147. data/lib/stigg/models/v1/subscription_create_response.rb +0 -338
  148. data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -274
  149. data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -274
  150. data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -274
  151. data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -32
  152. data/lib/stigg/models/v1_create_event_params.rb +0 -87
  153. data/lib/stigg/models/v1_create_event_response.rb +0 -16
  154. data/lib/stigg/models/v1_create_usage_params.rb +0 -96
  155. data/lib/stigg/models/v1_create_usage_response.rb +0 -112
  156. data/lib/stigg/resources/v1/customers/usage.rb +0 -59
  157. data/rbi/stigg/models/v1/coupon_create_response.rbi +0 -986
  158. data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -986
  159. data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
  160. data/rbi/stigg/models/v1/customers/promotional_revoke_response.rbi +0 -497
  161. data/rbi/stigg/models/v1/customers/usage_retrieve_params.rbi +0 -84
  162. data/rbi/stigg/models/v1/customers/usage_retrieve_response.rbi +0 -353
  163. data/rbi/stigg/models/v1/subscription_create_params.rbi +0 -394
  164. data/rbi/stigg/models/v1/subscription_create_response.rbi +0 -668
  165. data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -535
  166. data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -535
  167. data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -535
  168. data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -79
  169. data/rbi/stigg/models/v1_create_event_params.rbi +0 -160
  170. data/rbi/stigg/models/v1_create_event_response.rbi +0 -23
  171. data/rbi/stigg/models/v1_create_usage_params.rbi +0 -177
  172. data/rbi/stigg/models/v1_create_usage_response.rbi +0 -150
  173. data/rbi/stigg/resources/v1/customers/usage.rbi +0 -45
  174. data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
  175. data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
  176. data/sig/stigg/models/v1/customers/promotional_revoke_response.rbs +0 -209
  177. data/sig/stigg/models/v1/customers/usage_retrieve_params.rbs +0 -54
  178. data/sig/stigg/models/v1/customers/usage_retrieve_response.rbs +0 -134
  179. data/sig/stigg/models/v1/subscription_create_params.rbs +0 -199
  180. data/sig/stigg/models/v1/subscription_create_response.rbs +0 -283
  181. data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -224
  182. data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -224
  183. data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -224
  184. data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +0 -34
  185. data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +0 -34
  186. data/sig/stigg/models/v1_create_event_params.rbs +0 -80
  187. data/sig/stigg/models/v1_create_event_response.rbs +0 -13
  188. data/sig/stigg/models/v1_create_usage_params.rbs +0 -90
  189. data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
  190. data/sig/stigg/resources/v1/customers/usage.rbs +0 -21
@@ -0,0 +1,891 @@
1
+ # typed: strong
2
+
3
+ module Stigg
4
+ module Models
5
+ module V1
6
+ class Coupon < Stigg::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias { T.any(Stigg::V1::Coupon, Stigg::Internal::AnyHash) }
9
+
10
+ # Discount instrument with percentage or fixed amount
11
+ sig { returns(Stigg::V1::Coupon::Data) }
12
+ attr_reader :data
13
+
14
+ sig { params(data: Stigg::V1::Coupon::Data::OrHash).void }
15
+ attr_writer :data
16
+
17
+ # Response object
18
+ sig do
19
+ params(data: Stigg::V1::Coupon::Data::OrHash).returns(
20
+ T.attached_class
21
+ )
22
+ end
23
+ def self.new(
24
+ # Discount instrument with percentage or fixed amount
25
+ data:
26
+ )
27
+ end
28
+
29
+ sig { override.returns({ data: Stigg::V1::Coupon::Data }) }
30
+ def to_hash
31
+ end
32
+
33
+ class Data < Stigg::Internal::Type::BaseModel
34
+ OrHash =
35
+ T.type_alias do
36
+ T.any(Stigg::V1::Coupon::Data, Stigg::Internal::AnyHash)
37
+ end
38
+
39
+ # The unique identifier for the entity
40
+ sig { returns(String) }
41
+ attr_accessor :id
42
+
43
+ # Fixed amount discounts in different currencies
44
+ sig do
45
+ returns(T.nilable(T::Array[Stigg::V1::Coupon::Data::AmountsOff]))
46
+ end
47
+ attr_accessor :amounts_off
48
+
49
+ # The unique identifier for the entity in the billing provider
50
+ sig { returns(T.nilable(String)) }
51
+ attr_accessor :billing_id
52
+
53
+ # The URL to the entity in the billing provider
54
+ sig { returns(T.nilable(String)) }
55
+ attr_accessor :billing_link_url
56
+
57
+ # Timestamp of when the record was created
58
+ sig { returns(Time) }
59
+ attr_accessor :created_at
60
+
61
+ # Description of the coupon
62
+ sig { returns(T.nilable(String)) }
63
+ attr_accessor :description
64
+
65
+ # Duration of the coupon validity in months
66
+ sig { returns(T.nilable(Float)) }
67
+ attr_accessor :duration_in_months
68
+
69
+ # Name of the coupon
70
+ sig { returns(String) }
71
+ attr_accessor :name
72
+
73
+ # Percentage discount off the original price
74
+ sig { returns(T.nilable(Float)) }
75
+ attr_accessor :percent_off
76
+
77
+ # The source of the coupon
78
+ sig do
79
+ returns(T.nilable(Stigg::V1::Coupon::Data::Source::TaggedSymbol))
80
+ end
81
+ attr_accessor :source
82
+
83
+ # Current status of the coupon
84
+ sig { returns(Stigg::V1::Coupon::Data::Status::TaggedSymbol) }
85
+ attr_accessor :status
86
+
87
+ # Type of the coupon (percentage or fixed amount)
88
+ sig { returns(Stigg::V1::Coupon::Data::Type::TaggedSymbol) }
89
+ attr_accessor :type
90
+
91
+ # Timestamp of when the record was last updated
92
+ sig { returns(Time) }
93
+ attr_accessor :updated_at
94
+
95
+ # Discount instrument with percentage or fixed amount
96
+ sig do
97
+ params(
98
+ id: String,
99
+ amounts_off:
100
+ T.nilable(
101
+ T::Array[Stigg::V1::Coupon::Data::AmountsOff::OrHash]
102
+ ),
103
+ billing_id: T.nilable(String),
104
+ billing_link_url: T.nilable(String),
105
+ created_at: Time,
106
+ description: T.nilable(String),
107
+ duration_in_months: T.nilable(Float),
108
+ name: String,
109
+ percent_off: T.nilable(Float),
110
+ source: T.nilable(Stigg::V1::Coupon::Data::Source::OrSymbol),
111
+ status: Stigg::V1::Coupon::Data::Status::OrSymbol,
112
+ type: Stigg::V1::Coupon::Data::Type::OrSymbol,
113
+ updated_at: Time
114
+ ).returns(T.attached_class)
115
+ end
116
+ def self.new(
117
+ # The unique identifier for the entity
118
+ id:,
119
+ # Fixed amount discounts in different currencies
120
+ amounts_off:,
121
+ # The unique identifier for the entity in the billing provider
122
+ billing_id:,
123
+ # The URL to the entity in the billing provider
124
+ billing_link_url:,
125
+ # Timestamp of when the record was created
126
+ created_at:,
127
+ # Description of the coupon
128
+ description:,
129
+ # Duration of the coupon validity in months
130
+ duration_in_months:,
131
+ # Name of the coupon
132
+ name:,
133
+ # Percentage discount off the original price
134
+ percent_off:,
135
+ # The source of the coupon
136
+ source:,
137
+ # Current status of the coupon
138
+ status:,
139
+ # Type of the coupon (percentage or fixed amount)
140
+ type:,
141
+ # Timestamp of when the record was last updated
142
+ updated_at:
143
+ )
144
+ end
145
+
146
+ sig do
147
+ override.returns(
148
+ {
149
+ id: String,
150
+ amounts_off:
151
+ T.nilable(T::Array[Stigg::V1::Coupon::Data::AmountsOff]),
152
+ billing_id: T.nilable(String),
153
+ billing_link_url: T.nilable(String),
154
+ created_at: Time,
155
+ description: T.nilable(String),
156
+ duration_in_months: T.nilable(Float),
157
+ name: String,
158
+ percent_off: T.nilable(Float),
159
+ source:
160
+ T.nilable(Stigg::V1::Coupon::Data::Source::TaggedSymbol),
161
+ status: Stigg::V1::Coupon::Data::Status::TaggedSymbol,
162
+ type: Stigg::V1::Coupon::Data::Type::TaggedSymbol,
163
+ updated_at: Time
164
+ }
165
+ )
166
+ end
167
+ def to_hash
168
+ end
169
+
170
+ class AmountsOff < Stigg::Internal::Type::BaseModel
171
+ OrHash =
172
+ T.type_alias do
173
+ T.any(
174
+ Stigg::V1::Coupon::Data::AmountsOff,
175
+ Stigg::Internal::AnyHash
176
+ )
177
+ end
178
+
179
+ # The price amount
180
+ sig { returns(Float) }
181
+ attr_accessor :amount
182
+
183
+ # The price currency
184
+ sig do
185
+ returns(
186
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
187
+ )
188
+ end
189
+ attr_accessor :currency
190
+
191
+ # Monetary amount with currency
192
+ sig do
193
+ params(
194
+ amount: Float,
195
+ currency:
196
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::OrSymbol
197
+ ).returns(T.attached_class)
198
+ end
199
+ def self.new(
200
+ # The price amount
201
+ amount:,
202
+ # The price currency
203
+ currency:
204
+ )
205
+ end
206
+
207
+ sig do
208
+ override.returns(
209
+ {
210
+ amount: Float,
211
+ currency:
212
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
213
+ }
214
+ )
215
+ end
216
+ def to_hash
217
+ end
218
+
219
+ # The price currency
220
+ module Currency
221
+ extend Stigg::Internal::Type::Enum
222
+
223
+ TaggedSymbol =
224
+ T.type_alias do
225
+ T.all(Symbol, Stigg::V1::Coupon::Data::AmountsOff::Currency)
226
+ end
227
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
228
+
229
+ USD =
230
+ T.let(
231
+ :usd,
232
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
233
+ )
234
+ AED =
235
+ T.let(
236
+ :aed,
237
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
238
+ )
239
+ ALL =
240
+ T.let(
241
+ :all,
242
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
243
+ )
244
+ AMD =
245
+ T.let(
246
+ :amd,
247
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
248
+ )
249
+ ANG =
250
+ T.let(
251
+ :ang,
252
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
253
+ )
254
+ AUD =
255
+ T.let(
256
+ :aud,
257
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
258
+ )
259
+ AWG =
260
+ T.let(
261
+ :awg,
262
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
263
+ )
264
+ AZN =
265
+ T.let(
266
+ :azn,
267
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
268
+ )
269
+ BAM =
270
+ T.let(
271
+ :bam,
272
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
273
+ )
274
+ BBD =
275
+ T.let(
276
+ :bbd,
277
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
278
+ )
279
+ BDT =
280
+ T.let(
281
+ :bdt,
282
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
283
+ )
284
+ BGN =
285
+ T.let(
286
+ :bgn,
287
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
288
+ )
289
+ BIF =
290
+ T.let(
291
+ :bif,
292
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
293
+ )
294
+ BMD =
295
+ T.let(
296
+ :bmd,
297
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
298
+ )
299
+ BND =
300
+ T.let(
301
+ :bnd,
302
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
303
+ )
304
+ BSD =
305
+ T.let(
306
+ :bsd,
307
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
308
+ )
309
+ BWP =
310
+ T.let(
311
+ :bwp,
312
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
313
+ )
314
+ BYN =
315
+ T.let(
316
+ :byn,
317
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
318
+ )
319
+ BZD =
320
+ T.let(
321
+ :bzd,
322
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
323
+ )
324
+ BRL =
325
+ T.let(
326
+ :brl,
327
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
328
+ )
329
+ CAD =
330
+ T.let(
331
+ :cad,
332
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
333
+ )
334
+ CDF =
335
+ T.let(
336
+ :cdf,
337
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
338
+ )
339
+ CHF =
340
+ T.let(
341
+ :chf,
342
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
343
+ )
344
+ CNY =
345
+ T.let(
346
+ :cny,
347
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
348
+ )
349
+ CZK =
350
+ T.let(
351
+ :czk,
352
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
353
+ )
354
+ DKK =
355
+ T.let(
356
+ :dkk,
357
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
358
+ )
359
+ DOP =
360
+ T.let(
361
+ :dop,
362
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
363
+ )
364
+ DZD =
365
+ T.let(
366
+ :dzd,
367
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
368
+ )
369
+ EGP =
370
+ T.let(
371
+ :egp,
372
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
373
+ )
374
+ ETB =
375
+ T.let(
376
+ :etb,
377
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
378
+ )
379
+ EUR =
380
+ T.let(
381
+ :eur,
382
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
383
+ )
384
+ FJD =
385
+ T.let(
386
+ :fjd,
387
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
388
+ )
389
+ GBP =
390
+ T.let(
391
+ :gbp,
392
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
393
+ )
394
+ GEL =
395
+ T.let(
396
+ :gel,
397
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
398
+ )
399
+ GIP =
400
+ T.let(
401
+ :gip,
402
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
403
+ )
404
+ GMD =
405
+ T.let(
406
+ :gmd,
407
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
408
+ )
409
+ GYD =
410
+ T.let(
411
+ :gyd,
412
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
413
+ )
414
+ HKD =
415
+ T.let(
416
+ :hkd,
417
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
418
+ )
419
+ HRK =
420
+ T.let(
421
+ :hrk,
422
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
423
+ )
424
+ HTG =
425
+ T.let(
426
+ :htg,
427
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
428
+ )
429
+ IDR =
430
+ T.let(
431
+ :idr,
432
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
433
+ )
434
+ ILS =
435
+ T.let(
436
+ :ils,
437
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
438
+ )
439
+ INR =
440
+ T.let(
441
+ :inr,
442
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
443
+ )
444
+ ISK =
445
+ T.let(
446
+ :isk,
447
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
448
+ )
449
+ JMD =
450
+ T.let(
451
+ :jmd,
452
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
453
+ )
454
+ JPY =
455
+ T.let(
456
+ :jpy,
457
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
458
+ )
459
+ KES =
460
+ T.let(
461
+ :kes,
462
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
463
+ )
464
+ KGS =
465
+ T.let(
466
+ :kgs,
467
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
468
+ )
469
+ KHR =
470
+ T.let(
471
+ :khr,
472
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
473
+ )
474
+ KMF =
475
+ T.let(
476
+ :kmf,
477
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
478
+ )
479
+ KRW =
480
+ T.let(
481
+ :krw,
482
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
483
+ )
484
+ KYD =
485
+ T.let(
486
+ :kyd,
487
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
488
+ )
489
+ KZT =
490
+ T.let(
491
+ :kzt,
492
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
493
+ )
494
+ LBP =
495
+ T.let(
496
+ :lbp,
497
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
498
+ )
499
+ LKR =
500
+ T.let(
501
+ :lkr,
502
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
503
+ )
504
+ LRD =
505
+ T.let(
506
+ :lrd,
507
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
508
+ )
509
+ LSL =
510
+ T.let(
511
+ :lsl,
512
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
513
+ )
514
+ MAD =
515
+ T.let(
516
+ :mad,
517
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
518
+ )
519
+ MDL =
520
+ T.let(
521
+ :mdl,
522
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
523
+ )
524
+ MGA =
525
+ T.let(
526
+ :mga,
527
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
528
+ )
529
+ MKD =
530
+ T.let(
531
+ :mkd,
532
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
533
+ )
534
+ MMK =
535
+ T.let(
536
+ :mmk,
537
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
538
+ )
539
+ MNT =
540
+ T.let(
541
+ :mnt,
542
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
543
+ )
544
+ MOP =
545
+ T.let(
546
+ :mop,
547
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
548
+ )
549
+ MRO =
550
+ T.let(
551
+ :mro,
552
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
553
+ )
554
+ MVR =
555
+ T.let(
556
+ :mvr,
557
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
558
+ )
559
+ MWK =
560
+ T.let(
561
+ :mwk,
562
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
563
+ )
564
+ MXN =
565
+ T.let(
566
+ :mxn,
567
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
568
+ )
569
+ MYR =
570
+ T.let(
571
+ :myr,
572
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
573
+ )
574
+ MZN =
575
+ T.let(
576
+ :mzn,
577
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
578
+ )
579
+ NAD =
580
+ T.let(
581
+ :nad,
582
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
583
+ )
584
+ NGN =
585
+ T.let(
586
+ :ngn,
587
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
588
+ )
589
+ NOK =
590
+ T.let(
591
+ :nok,
592
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
593
+ )
594
+ NPR =
595
+ T.let(
596
+ :npr,
597
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
598
+ )
599
+ NZD =
600
+ T.let(
601
+ :nzd,
602
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
603
+ )
604
+ PGK =
605
+ T.let(
606
+ :pgk,
607
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
608
+ )
609
+ PHP =
610
+ T.let(
611
+ :php,
612
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
613
+ )
614
+ PKR =
615
+ T.let(
616
+ :pkr,
617
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
618
+ )
619
+ PLN =
620
+ T.let(
621
+ :pln,
622
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
623
+ )
624
+ QAR =
625
+ T.let(
626
+ :qar,
627
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
628
+ )
629
+ RON =
630
+ T.let(
631
+ :ron,
632
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
633
+ )
634
+ RSD =
635
+ T.let(
636
+ :rsd,
637
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
638
+ )
639
+ RUB =
640
+ T.let(
641
+ :rub,
642
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
643
+ )
644
+ RWF =
645
+ T.let(
646
+ :rwf,
647
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
648
+ )
649
+ SAR =
650
+ T.let(
651
+ :sar,
652
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
653
+ )
654
+ SBD =
655
+ T.let(
656
+ :sbd,
657
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
658
+ )
659
+ SCR =
660
+ T.let(
661
+ :scr,
662
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
663
+ )
664
+ SEK =
665
+ T.let(
666
+ :sek,
667
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
668
+ )
669
+ SGD =
670
+ T.let(
671
+ :sgd,
672
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
673
+ )
674
+ SLE =
675
+ T.let(
676
+ :sle,
677
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
678
+ )
679
+ SLL =
680
+ T.let(
681
+ :sll,
682
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
683
+ )
684
+ SOS =
685
+ T.let(
686
+ :sos,
687
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
688
+ )
689
+ SZL =
690
+ T.let(
691
+ :szl,
692
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
693
+ )
694
+ THB =
695
+ T.let(
696
+ :thb,
697
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
698
+ )
699
+ TJS =
700
+ T.let(
701
+ :tjs,
702
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
703
+ )
704
+ TOP =
705
+ T.let(
706
+ :top,
707
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
708
+ )
709
+ TRY =
710
+ T.let(
711
+ :try,
712
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
713
+ )
714
+ TTD =
715
+ T.let(
716
+ :ttd,
717
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
718
+ )
719
+ TZS =
720
+ T.let(
721
+ :tzs,
722
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
723
+ )
724
+ UAH =
725
+ T.let(
726
+ :uah,
727
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
728
+ )
729
+ UZS =
730
+ T.let(
731
+ :uzs,
732
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
733
+ )
734
+ VND =
735
+ T.let(
736
+ :vnd,
737
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
738
+ )
739
+ VUV =
740
+ T.let(
741
+ :vuv,
742
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
743
+ )
744
+ WST =
745
+ T.let(
746
+ :wst,
747
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
748
+ )
749
+ XAF =
750
+ T.let(
751
+ :xaf,
752
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
753
+ )
754
+ XCD =
755
+ T.let(
756
+ :xcd,
757
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
758
+ )
759
+ YER =
760
+ T.let(
761
+ :yer,
762
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
763
+ )
764
+ ZAR =
765
+ T.let(
766
+ :zar,
767
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
768
+ )
769
+ ZMW =
770
+ T.let(
771
+ :zmw,
772
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
773
+ )
774
+ CLP =
775
+ T.let(
776
+ :clp,
777
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
778
+ )
779
+ DJF =
780
+ T.let(
781
+ :djf,
782
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
783
+ )
784
+ GNF =
785
+ T.let(
786
+ :gnf,
787
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
788
+ )
789
+ UGX =
790
+ T.let(
791
+ :ugx,
792
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
793
+ )
794
+ PYG =
795
+ T.let(
796
+ :pyg,
797
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
798
+ )
799
+ XOF =
800
+ T.let(
801
+ :xof,
802
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
803
+ )
804
+ XPF =
805
+ T.let(
806
+ :xpf,
807
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
808
+ )
809
+
810
+ sig do
811
+ override.returns(
812
+ T::Array[
813
+ Stigg::V1::Coupon::Data::AmountsOff::Currency::TaggedSymbol
814
+ ]
815
+ )
816
+ end
817
+ def self.values
818
+ end
819
+ end
820
+ end
821
+
822
+ # The source of the coupon
823
+ module Source
824
+ extend Stigg::Internal::Type::Enum
825
+
826
+ TaggedSymbol =
827
+ T.type_alias { T.all(Symbol, Stigg::V1::Coupon::Data::Source) }
828
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
829
+
830
+ STIGG = T.let(:STIGG, Stigg::V1::Coupon::Data::Source::TaggedSymbol)
831
+ STIGG_ADHOC =
832
+ T.let(:STIGG_ADHOC, Stigg::V1::Coupon::Data::Source::TaggedSymbol)
833
+ STRIPE =
834
+ T.let(:STRIPE, Stigg::V1::Coupon::Data::Source::TaggedSymbol)
835
+
836
+ sig do
837
+ override.returns(
838
+ T::Array[Stigg::V1::Coupon::Data::Source::TaggedSymbol]
839
+ )
840
+ end
841
+ def self.values
842
+ end
843
+ end
844
+
845
+ # Current status of the coupon
846
+ module Status
847
+ extend Stigg::Internal::Type::Enum
848
+
849
+ TaggedSymbol =
850
+ T.type_alias { T.all(Symbol, Stigg::V1::Coupon::Data::Status) }
851
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
852
+
853
+ ACTIVE =
854
+ T.let(:ACTIVE, Stigg::V1::Coupon::Data::Status::TaggedSymbol)
855
+ ARCHIVED =
856
+ T.let(:ARCHIVED, Stigg::V1::Coupon::Data::Status::TaggedSymbol)
857
+
858
+ sig do
859
+ override.returns(
860
+ T::Array[Stigg::V1::Coupon::Data::Status::TaggedSymbol]
861
+ )
862
+ end
863
+ def self.values
864
+ end
865
+ end
866
+
867
+ # Type of the coupon (percentage or fixed amount)
868
+ module Type
869
+ extend Stigg::Internal::Type::Enum
870
+
871
+ TaggedSymbol =
872
+ T.type_alias { T.all(Symbol, Stigg::V1::Coupon::Data::Type) }
873
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
874
+
875
+ FIXED = T.let(:FIXED, Stigg::V1::Coupon::Data::Type::TaggedSymbol)
876
+ PERCENTAGE =
877
+ T.let(:PERCENTAGE, Stigg::V1::Coupon::Data::Type::TaggedSymbol)
878
+
879
+ sig do
880
+ override.returns(
881
+ T::Array[Stigg::V1::Coupon::Data::Type::TaggedSymbol]
882
+ )
883
+ end
884
+ def self.values
885
+ end
886
+ end
887
+ end
888
+ end
889
+ end
890
+ end
891
+ end