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
@@ -2,396 +2,376 @@ module Stigg
2
2
  module Models
3
3
  module V1
4
4
  type coupon_list_response =
5
- { data: ::Array[Stigg::Models::V1::CouponListResponse::Data] }
5
+ {
6
+ id: String,
7
+ amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::AmountsOff]?,
8
+ billing_id: String?,
9
+ billing_link_url: String?,
10
+ created_at: Time,
11
+ description: String?,
12
+ duration_in_months: Float?,
13
+ name: String,
14
+ percent_off: Float?,
15
+ source: Stigg::Models::V1::CouponListResponse::source?,
16
+ status: Stigg::Models::V1::CouponListResponse::status,
17
+ type: Stigg::Models::V1::CouponListResponse::type_,
18
+ updated_at: Time
19
+ }
6
20
 
7
21
  class CouponListResponse < Stigg::Internal::Type::BaseModel
8
- attr_accessor data: ::Array[Stigg::Models::V1::CouponListResponse::Data]
22
+ attr_accessor id: String
9
23
 
10
- def initialize: (
11
- data: ::Array[Stigg::Models::V1::CouponListResponse::Data]
12
- ) -> void
24
+ attr_accessor amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::AmountsOff]?
13
25
 
14
- def to_hash: -> {
15
- data: ::Array[Stigg::Models::V1::CouponListResponse::Data]
16
- }
26
+ attr_accessor billing_id: String?
17
27
 
18
- type data =
19
- {
20
- id: String,
21
- amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::Data::AmountsOff]?,
22
- billing_id: String?,
23
- billing_link_url: String?,
24
- created_at: Time,
25
- cursor_id: String,
26
- description: String?,
27
- duration_in_months: Float?,
28
- name: String,
29
- percent_off: Float?,
30
- source: Stigg::Models::V1::CouponListResponse::Data::source?,
31
- status: Stigg::Models::V1::CouponListResponse::Data::status,
32
- type: Stigg::Models::V1::CouponListResponse::Data::type_,
33
- updated_at: Time
34
- }
28
+ attr_accessor billing_link_url: String?
35
29
 
36
- class Data < Stigg::Internal::Type::BaseModel
37
- attr_accessor id: String
30
+ attr_accessor created_at: Time
38
31
 
39
- attr_accessor amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::Data::AmountsOff]?
32
+ attr_accessor description: String?
40
33
 
41
- attr_accessor billing_id: String?
34
+ attr_accessor duration_in_months: Float?
42
35
 
43
- attr_accessor billing_link_url: String?
36
+ attr_accessor name: String
44
37
 
45
- attr_accessor created_at: Time
38
+ attr_accessor percent_off: Float?
46
39
 
47
- attr_accessor cursor_id: String
40
+ attr_accessor source: Stigg::Models::V1::CouponListResponse::source?
48
41
 
49
- attr_accessor description: String?
42
+ attr_accessor status: Stigg::Models::V1::CouponListResponse::status
50
43
 
51
- attr_accessor duration_in_months: Float?
44
+ attr_accessor type: Stigg::Models::V1::CouponListResponse::type_
52
45
 
53
- attr_accessor name: String
46
+ attr_accessor updated_at: Time
54
47
 
55
- attr_accessor percent_off: Float?
48
+ def initialize: (
49
+ id: String,
50
+ amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::AmountsOff]?,
51
+ billing_id: String?,
52
+ billing_link_url: String?,
53
+ created_at: Time,
54
+ description: String?,
55
+ duration_in_months: Float?,
56
+ name: String,
57
+ percent_off: Float?,
58
+ source: Stigg::Models::V1::CouponListResponse::source?,
59
+ status: Stigg::Models::V1::CouponListResponse::status,
60
+ type: Stigg::Models::V1::CouponListResponse::type_,
61
+ updated_at: Time
62
+ ) -> void
56
63
 
57
- attr_accessor source: Stigg::Models::V1::CouponListResponse::Data::source?
64
+ def to_hash: -> {
65
+ id: String,
66
+ amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::AmountsOff]?,
67
+ billing_id: String?,
68
+ billing_link_url: String?,
69
+ created_at: Time,
70
+ description: String?,
71
+ duration_in_months: Float?,
72
+ name: String,
73
+ percent_off: Float?,
74
+ source: Stigg::Models::V1::CouponListResponse::source?,
75
+ status: Stigg::Models::V1::CouponListResponse::status,
76
+ type: Stigg::Models::V1::CouponListResponse::type_,
77
+ updated_at: Time
78
+ }
58
79
 
59
- attr_accessor status: Stigg::Models::V1::CouponListResponse::Data::status
80
+ type amounts_off =
81
+ {
82
+ amount: Float,
83
+ currency: Stigg::Models::V1::CouponListResponse::AmountsOff::currency
84
+ }
60
85
 
61
- attr_accessor type: Stigg::Models::V1::CouponListResponse::Data::type_
86
+ class AmountsOff < Stigg::Internal::Type::BaseModel
87
+ attr_accessor amount: Float
62
88
 
63
- attr_accessor updated_at: Time
89
+ attr_accessor currency: Stigg::Models::V1::CouponListResponse::AmountsOff::currency
64
90
 
65
91
  def initialize: (
66
- id: String,
67
- amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::Data::AmountsOff]?,
68
- billing_id: String?,
69
- billing_link_url: String?,
70
- created_at: Time,
71
- cursor_id: String,
72
- description: String?,
73
- duration_in_months: Float?,
74
- name: String,
75
- percent_off: Float?,
76
- source: Stigg::Models::V1::CouponListResponse::Data::source?,
77
- status: Stigg::Models::V1::CouponListResponse::Data::status,
78
- type: Stigg::Models::V1::CouponListResponse::Data::type_,
79
- updated_at: Time
92
+ amount: Float,
93
+ currency: Stigg::Models::V1::CouponListResponse::AmountsOff::currency
80
94
  ) -> void
81
95
 
82
96
  def to_hash: -> {
83
- id: String,
84
- amounts_off: ::Array[Stigg::Models::V1::CouponListResponse::Data::AmountsOff]?,
85
- billing_id: String?,
86
- billing_link_url: String?,
87
- created_at: Time,
88
- cursor_id: String,
89
- description: String?,
90
- duration_in_months: Float?,
91
- name: String,
92
- percent_off: Float?,
93
- source: Stigg::Models::V1::CouponListResponse::Data::source?,
94
- status: Stigg::Models::V1::CouponListResponse::Data::status,
95
- type: Stigg::Models::V1::CouponListResponse::Data::type_,
96
- updated_at: Time
97
+ amount: Float,
98
+ currency: Stigg::Models::V1::CouponListResponse::AmountsOff::currency
97
99
  }
98
100
 
99
- type amounts_off =
100
- {
101
- amount: Float,
102
- currency: Stigg::Models::V1::CouponListResponse::Data::AmountsOff::currency?
103
- }
104
-
105
- class AmountsOff < Stigg::Internal::Type::BaseModel
106
- attr_accessor amount: Float
107
-
108
- attr_accessor currency: Stigg::Models::V1::CouponListResponse::Data::AmountsOff::currency?
109
-
110
- def initialize: (
111
- amount: Float,
112
- currency: Stigg::Models::V1::CouponListResponse::Data::AmountsOff::currency?
113
- ) -> void
114
-
115
- def to_hash: -> {
116
- amount: Float,
117
- currency: Stigg::Models::V1::CouponListResponse::Data::AmountsOff::currency?
118
- }
119
-
120
- type currency =
121
- :usd
122
- | :aed
123
- | :all
124
- | :amd
125
- | :ang
126
- | :aud
127
- | :awg
128
- | :azn
129
- | :bam
130
- | :bbd
131
- | :bdt
132
- | :bgn
133
- | :bif
134
- | :bmd
135
- | :bnd
136
- | :bsd
137
- | :bwp
138
- | :byn
139
- | :bzd
140
- | :brl
141
- | :cad
142
- | :cdf
143
- | :chf
144
- | :cny
145
- | :czk
146
- | :dkk
147
- | :dop
148
- | :dzd
149
- | :egp
150
- | :etb
151
- | :eur
152
- | :fjd
153
- | :gbp
154
- | :gel
155
- | :gip
156
- | :gmd
157
- | :gyd
158
- | :hkd
159
- | :hrk
160
- | :htg
161
- | :idr
162
- | :ils
163
- | :inr
164
- | :isk
165
- | :jmd
166
- | :jpy
167
- | :kes
168
- | :kgs
169
- | :khr
170
- | :kmf
171
- | :krw
172
- | :kyd
173
- | :kzt
174
- | :lbp
175
- | :lkr
176
- | :lrd
177
- | :lsl
178
- | :mad
179
- | :mdl
180
- | :mga
181
- | :mkd
182
- | :mmk
183
- | :mnt
184
- | :mop
185
- | :mro
186
- | :mvr
187
- | :mwk
188
- | :mxn
189
- | :myr
190
- | :mzn
191
- | :nad
192
- | :ngn
193
- | :nok
194
- | :npr
195
- | :nzd
196
- | :pgk
197
- | :php
198
- | :pkr
199
- | :pln
200
- | :qar
201
- | :ron
202
- | :rsd
203
- | :rub
204
- | :rwf
205
- | :sar
206
- | :sbd
207
- | :scr
208
- | :sek
209
- | :sgd
210
- | :sle
211
- | :sll
212
- | :sos
213
- | :szl
214
- | :thb
215
- | :tjs
216
- | :top
217
- | :try
218
- | :ttd
219
- | :tzs
220
- | :uah
221
- | :uzs
222
- | :vnd
223
- | :vuv
224
- | :wst
225
- | :xaf
226
- | :xcd
227
- | :yer
228
- | :zar
229
- | :zmw
230
- | :clp
231
- | :djf
232
- | :gnf
233
- | :ugx
234
- | :pyg
235
- | :xof
236
- | :xpf
237
-
238
- module Currency
239
- extend Stigg::Internal::Type::Enum
240
-
241
- USD: :usd
242
- AED: :aed
243
- ALL: :all
244
- AMD: :amd
245
- ANG: :ang
246
- AUD: :aud
247
- AWG: :awg
248
- AZN: :azn
249
- BAM: :bam
250
- BBD: :bbd
251
- BDT: :bdt
252
- BGN: :bgn
253
- BIF: :bif
254
- BMD: :bmd
255
- BND: :bnd
256
- BSD: :bsd
257
- BWP: :bwp
258
- BYN: :byn
259
- BZD: :bzd
260
- BRL: :brl
261
- CAD: :cad
262
- CDF: :cdf
263
- CHF: :chf
264
- CNY: :cny
265
- CZK: :czk
266
- DKK: :dkk
267
- DOP: :dop
268
- DZD: :dzd
269
- EGP: :egp
270
- ETB: :etb
271
- EUR: :eur
272
- FJD: :fjd
273
- GBP: :gbp
274
- GEL: :gel
275
- GIP: :gip
276
- GMD: :gmd
277
- GYD: :gyd
278
- HKD: :hkd
279
- HRK: :hrk
280
- HTG: :htg
281
- IDR: :idr
282
- ILS: :ils
283
- INR: :inr
284
- ISK: :isk
285
- JMD: :jmd
286
- JPY: :jpy
287
- KES: :kes
288
- KGS: :kgs
289
- KHR: :khr
290
- KMF: :kmf
291
- KRW: :krw
292
- KYD: :kyd
293
- KZT: :kzt
294
- LBP: :lbp
295
- LKR: :lkr
296
- LRD: :lrd
297
- LSL: :lsl
298
- MAD: :mad
299
- MDL: :mdl
300
- MGA: :mga
301
- MKD: :mkd
302
- MMK: :mmk
303
- MNT: :mnt
304
- MOP: :mop
305
- MRO: :mro
306
- MVR: :mvr
307
- MWK: :mwk
308
- MXN: :mxn
309
- MYR: :myr
310
- MZN: :mzn
311
- NAD: :nad
312
- NGN: :ngn
313
- NOK: :nok
314
- NPR: :npr
315
- NZD: :nzd
316
- PGK: :pgk
317
- PHP: :php
318
- PKR: :pkr
319
- PLN: :pln
320
- QAR: :qar
321
- RON: :ron
322
- RSD: :rsd
323
- RUB: :rub
324
- RWF: :rwf
325
- SAR: :sar
326
- SBD: :sbd
327
- SCR: :scr
328
- SEK: :sek
329
- SGD: :sgd
330
- SLE: :sle
331
- SLL: :sll
332
- SOS: :sos
333
- SZL: :szl
334
- THB: :thb
335
- TJS: :tjs
336
- TOP: :top
337
- TRY: :try
338
- TTD: :ttd
339
- TZS: :tzs
340
- UAH: :uah
341
- UZS: :uzs
342
- VND: :vnd
343
- VUV: :vuv
344
- WST: :wst
345
- XAF: :xaf
346
- XCD: :xcd
347
- YER: :yer
348
- ZAR: :zar
349
- ZMW: :zmw
350
- CLP: :clp
351
- DJF: :djf
352
- GNF: :gnf
353
- UGX: :ugx
354
- PYG: :pyg
355
- XOF: :xof
356
- XPF: :xpf
357
-
358
- def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::Data::AmountsOff::currency]
359
- end
101
+ type currency =
102
+ :usd
103
+ | :aed
104
+ | :all
105
+ | :amd
106
+ | :ang
107
+ | :aud
108
+ | :awg
109
+ | :azn
110
+ | :bam
111
+ | :bbd
112
+ | :bdt
113
+ | :bgn
114
+ | :bif
115
+ | :bmd
116
+ | :bnd
117
+ | :bsd
118
+ | :bwp
119
+ | :byn
120
+ | :bzd
121
+ | :brl
122
+ | :cad
123
+ | :cdf
124
+ | :chf
125
+ | :cny
126
+ | :czk
127
+ | :dkk
128
+ | :dop
129
+ | :dzd
130
+ | :egp
131
+ | :etb
132
+ | :eur
133
+ | :fjd
134
+ | :gbp
135
+ | :gel
136
+ | :gip
137
+ | :gmd
138
+ | :gyd
139
+ | :hkd
140
+ | :hrk
141
+ | :htg
142
+ | :idr
143
+ | :ils
144
+ | :inr
145
+ | :isk
146
+ | :jmd
147
+ | :jpy
148
+ | :kes
149
+ | :kgs
150
+ | :khr
151
+ | :kmf
152
+ | :krw
153
+ | :kyd
154
+ | :kzt
155
+ | :lbp
156
+ | :lkr
157
+ | :lrd
158
+ | :lsl
159
+ | :mad
160
+ | :mdl
161
+ | :mga
162
+ | :mkd
163
+ | :mmk
164
+ | :mnt
165
+ | :mop
166
+ | :mro
167
+ | :mvr
168
+ | :mwk
169
+ | :mxn
170
+ | :myr
171
+ | :mzn
172
+ | :nad
173
+ | :ngn
174
+ | :nok
175
+ | :npr
176
+ | :nzd
177
+ | :pgk
178
+ | :php
179
+ | :pkr
180
+ | :pln
181
+ | :qar
182
+ | :ron
183
+ | :rsd
184
+ | :rub
185
+ | :rwf
186
+ | :sar
187
+ | :sbd
188
+ | :scr
189
+ | :sek
190
+ | :sgd
191
+ | :sle
192
+ | :sll
193
+ | :sos
194
+ | :szl
195
+ | :thb
196
+ | :tjs
197
+ | :top
198
+ | :try
199
+ | :ttd
200
+ | :tzs
201
+ | :uah
202
+ | :uzs
203
+ | :vnd
204
+ | :vuv
205
+ | :wst
206
+ | :xaf
207
+ | :xcd
208
+ | :yer
209
+ | :zar
210
+ | :zmw
211
+ | :clp
212
+ | :djf
213
+ | :gnf
214
+ | :ugx
215
+ | :pyg
216
+ | :xof
217
+ | :xpf
218
+
219
+ module Currency
220
+ extend Stigg::Internal::Type::Enum
221
+
222
+ USD: :usd
223
+ AED: :aed
224
+ ALL: :all
225
+ AMD: :amd
226
+ ANG: :ang
227
+ AUD: :aud
228
+ AWG: :awg
229
+ AZN: :azn
230
+ BAM: :bam
231
+ BBD: :bbd
232
+ BDT: :bdt
233
+ BGN: :bgn
234
+ BIF: :bif
235
+ BMD: :bmd
236
+ BND: :bnd
237
+ BSD: :bsd
238
+ BWP: :bwp
239
+ BYN: :byn
240
+ BZD: :bzd
241
+ BRL: :brl
242
+ CAD: :cad
243
+ CDF: :cdf
244
+ CHF: :chf
245
+ CNY: :cny
246
+ CZK: :czk
247
+ DKK: :dkk
248
+ DOP: :dop
249
+ DZD: :dzd
250
+ EGP: :egp
251
+ ETB: :etb
252
+ EUR: :eur
253
+ FJD: :fjd
254
+ GBP: :gbp
255
+ GEL: :gel
256
+ GIP: :gip
257
+ GMD: :gmd
258
+ GYD: :gyd
259
+ HKD: :hkd
260
+ HRK: :hrk
261
+ HTG: :htg
262
+ IDR: :idr
263
+ ILS: :ils
264
+ INR: :inr
265
+ ISK: :isk
266
+ JMD: :jmd
267
+ JPY: :jpy
268
+ KES: :kes
269
+ KGS: :kgs
270
+ KHR: :khr
271
+ KMF: :kmf
272
+ KRW: :krw
273
+ KYD: :kyd
274
+ KZT: :kzt
275
+ LBP: :lbp
276
+ LKR: :lkr
277
+ LRD: :lrd
278
+ LSL: :lsl
279
+ MAD: :mad
280
+ MDL: :mdl
281
+ MGA: :mga
282
+ MKD: :mkd
283
+ MMK: :mmk
284
+ MNT: :mnt
285
+ MOP: :mop
286
+ MRO: :mro
287
+ MVR: :mvr
288
+ MWK: :mwk
289
+ MXN: :mxn
290
+ MYR: :myr
291
+ MZN: :mzn
292
+ NAD: :nad
293
+ NGN: :ngn
294
+ NOK: :nok
295
+ NPR: :npr
296
+ NZD: :nzd
297
+ PGK: :pgk
298
+ PHP: :php
299
+ PKR: :pkr
300
+ PLN: :pln
301
+ QAR: :qar
302
+ RON: :ron
303
+ RSD: :rsd
304
+ RUB: :rub
305
+ RWF: :rwf
306
+ SAR: :sar
307
+ SBD: :sbd
308
+ SCR: :scr
309
+ SEK: :sek
310
+ SGD: :sgd
311
+ SLE: :sle
312
+ SLL: :sll
313
+ SOS: :sos
314
+ SZL: :szl
315
+ THB: :thb
316
+ TJS: :tjs
317
+ TOP: :top
318
+ TRY: :try
319
+ TTD: :ttd
320
+ TZS: :tzs
321
+ UAH: :uah
322
+ UZS: :uzs
323
+ VND: :vnd
324
+ VUV: :vuv
325
+ WST: :wst
326
+ XAF: :xaf
327
+ XCD: :xcd
328
+ YER: :yer
329
+ ZAR: :zar
330
+ ZMW: :zmw
331
+ CLP: :clp
332
+ DJF: :djf
333
+ GNF: :gnf
334
+ UGX: :ugx
335
+ PYG: :pyg
336
+ XOF: :xof
337
+ XPF: :xpf
338
+
339
+ def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::AmountsOff::currency]
360
340
  end
341
+ end
361
342
 
362
- type source = :STIGG | :STIGG_ADHOC | :STRIPE
343
+ type source = :STIGG | :STIGG_ADHOC | :STRIPE
363
344
 
364
- module Source
365
- extend Stigg::Internal::Type::Enum
345
+ module Source
346
+ extend Stigg::Internal::Type::Enum
366
347
 
367
- STIGG: :STIGG
368
- STIGG_ADHOC: :STIGG_ADHOC
369
- STRIPE: :STRIPE
348
+ STIGG: :STIGG
349
+ STIGG_ADHOC: :STIGG_ADHOC
350
+ STRIPE: :STRIPE
370
351
 
371
- def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::Data::source]
372
- end
352
+ def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::source]
353
+ end
373
354
 
374
- type status = :ACTIVE | :ARCHIVED
355
+ type status = :ACTIVE | :ARCHIVED
375
356
 
376
- module Status
377
- extend Stigg::Internal::Type::Enum
357
+ module Status
358
+ extend Stigg::Internal::Type::Enum
378
359
 
379
- ACTIVE: :ACTIVE
380
- ARCHIVED: :ARCHIVED
360
+ ACTIVE: :ACTIVE
361
+ ARCHIVED: :ARCHIVED
381
362
 
382
- def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::Data::status]
383
- end
363
+ def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::status]
364
+ end
384
365
 
385
- type type_ = :FIXED | :PERCENTAGE
366
+ type type_ = :FIXED | :PERCENTAGE
386
367
 
387
- module Type
388
- extend Stigg::Internal::Type::Enum
368
+ module Type
369
+ extend Stigg::Internal::Type::Enum
389
370
 
390
- FIXED: :FIXED
391
- PERCENTAGE: :PERCENTAGE
371
+ FIXED: :FIXED
372
+ PERCENTAGE: :PERCENTAGE
392
373
 
393
- def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::Data::type_]
394
- end
374
+ def self?.values: -> ::Array[Stigg::Models::V1::CouponListResponse::type_]
395
375
  end
396
376
  end
397
377
  end