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