terminal-shop 3.6.1 → 3.7.0

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 (274) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/README.md +3 -3
  4. data/lib/terminal_shop/errors.rb +1 -1
  5. data/lib/terminal_shop/file_part.rb +2 -2
  6. data/lib/terminal_shop/internal/transport/base_client.rb +77 -5
  7. data/lib/terminal_shop/internal/transport/pooled_net_requester.rb +14 -0
  8. data/lib/terminal_shop/internal/type/array_of.rb +1 -1
  9. data/lib/terminal_shop/internal/type/base_model.rb +62 -30
  10. data/lib/terminal_shop/internal/type/converter.rb +18 -0
  11. data/lib/terminal_shop/internal/type/enum.rb +5 -4
  12. data/lib/terminal_shop/internal/type/hash_of.rb +1 -1
  13. data/lib/terminal_shop/internal/type/request_parameters.rb +4 -4
  14. data/lib/terminal_shop/internal/type/union.rb +1 -0
  15. data/lib/terminal_shop/internal/util.rb +57 -1
  16. data/lib/terminal_shop/internal.rb +6 -0
  17. data/lib/terminal_shop/models/address.rb +3 -3
  18. data/lib/terminal_shop/models/address_get_response.rb +3 -3
  19. data/lib/terminal_shop/models/address_list_response.rb +3 -3
  20. data/lib/terminal_shop/models/app.rb +3 -3
  21. data/lib/terminal_shop/models/app_get_response.rb +3 -3
  22. data/lib/terminal_shop/models/app_list_response.rb +3 -3
  23. data/lib/terminal_shop/models/card.rb +7 -7
  24. data/lib/terminal_shop/models/card_collect_response.rb +0 -1
  25. data/lib/terminal_shop/models/card_create_params.rb +0 -1
  26. data/lib/terminal_shop/models/card_get_response.rb +3 -3
  27. data/lib/terminal_shop/models/card_list_response.rb +3 -3
  28. data/lib/terminal_shop/models/cart.rb +13 -13
  29. data/lib/terminal_shop/models/cart_convert_response.rb +3 -3
  30. data/lib/terminal_shop/models/cart_get_response.rb +3 -3
  31. data/lib/terminal_shop/models/cart_set_item_response.rb +3 -3
  32. data/lib/terminal_shop/models/order.rb +24 -24
  33. data/lib/terminal_shop/models/order_get_response.rb +3 -3
  34. data/lib/terminal_shop/models/order_list_response.rb +3 -3
  35. data/lib/terminal_shop/models/product.rb +14 -14
  36. data/lib/terminal_shop/models/product_get_response.rb +3 -3
  37. data/lib/terminal_shop/models/product_list_response.rb +3 -3
  38. data/lib/terminal_shop/models/product_variant.rb +6 -6
  39. data/lib/terminal_shop/models/profile.rb +6 -6
  40. data/lib/terminal_shop/models/profile_me_response.rb +3 -3
  41. data/lib/terminal_shop/models/profile_update_response.rb +3 -3
  42. data/lib/terminal_shop/models/subscription.rb +18 -9
  43. data/lib/terminal_shop/models/subscription_get_response.rb +3 -3
  44. data/lib/terminal_shop/models/subscription_list_response.rb +3 -3
  45. data/lib/terminal_shop/models/subscription_update_params.rb +15 -6
  46. data/lib/terminal_shop/models/subscription_update_response.rb +3 -3
  47. data/lib/terminal_shop/models/token.rb +3 -3
  48. data/lib/terminal_shop/models/token_create_response.rb +0 -1
  49. data/lib/terminal_shop/models/token_get_response.rb +3 -4
  50. data/lib/terminal_shop/models/token_list_response.rb +3 -3
  51. data/lib/terminal_shop/models/view_init_response.rb +30 -31
  52. data/lib/terminal_shop/models.rb +27 -0
  53. data/lib/terminal_shop/request_options.rb +4 -0
  54. data/lib/terminal_shop/resources/address.rb +1 -1
  55. data/lib/terminal_shop/resources/app.rb +1 -1
  56. data/lib/terminal_shop/resources/card.rb +1 -2
  57. data/lib/terminal_shop/resources/cart.rb +3 -3
  58. data/lib/terminal_shop/resources/email.rb +1 -1
  59. data/lib/terminal_shop/resources/order.rb +1 -1
  60. data/lib/terminal_shop/resources/profile.rb +1 -1
  61. data/lib/terminal_shop/resources/subscription.rb +5 -5
  62. data/lib/terminal_shop/version.rb +1 -1
  63. data/lib/terminal_shop.rb +3 -0
  64. data/rbi/terminal_shop/client.rbi +9 -5
  65. data/rbi/terminal_shop/errors.rbi +35 -16
  66. data/rbi/terminal_shop/file_part.rbi +9 -6
  67. data/rbi/terminal_shop/internal/transport/base_client.rbi +165 -77
  68. data/rbi/terminal_shop/internal/transport/pooled_net_requester.rbi +29 -13
  69. data/rbi/terminal_shop/internal/type/array_of.rbi +34 -24
  70. data/rbi/terminal_shop/internal/type/base_model.rbi +155 -70
  71. data/rbi/terminal_shop/internal/type/base_page.rbi +13 -8
  72. data/rbi/terminal_shop/internal/type/boolean.rbi +16 -14
  73. data/rbi/terminal_shop/internal/type/converter.rbi +72 -28
  74. data/rbi/terminal_shop/internal/type/enum.rbi +24 -13
  75. data/rbi/terminal_shop/internal/type/file_input.rbi +8 -4
  76. data/rbi/terminal_shop/internal/type/hash_of.rbi +34 -24
  77. data/rbi/terminal_shop/internal/type/request_parameters.rbi +14 -4
  78. data/rbi/terminal_shop/internal/type/union.rbi +53 -22
  79. data/rbi/terminal_shop/internal/type/unknown.rbi +16 -6
  80. data/rbi/terminal_shop/internal/util.rbi +236 -91
  81. data/rbi/terminal_shop/internal.rbi +2 -0
  82. data/rbi/terminal_shop/models/address.rbi +25 -19
  83. data/rbi/terminal_shop/models/address_create_params.rbi +28 -19
  84. data/rbi/terminal_shop/models/address_create_response.rbi +14 -3
  85. data/rbi/terminal_shop/models/address_delete_params.rbi +18 -5
  86. data/rbi/terminal_shop/models/address_delete_response.rbi +13 -3
  87. data/rbi/terminal_shop/models/address_get_params.rbi +15 -5
  88. data/rbi/terminal_shop/models/address_get_response.rbi +17 -7
  89. data/rbi/terminal_shop/models/address_list_params.rbi +18 -5
  90. data/rbi/terminal_shop/models/address_list_response.rbi +18 -6
  91. data/rbi/terminal_shop/models/app.rbi +23 -4
  92. data/rbi/terminal_shop/models/app_create_params.rbi +18 -6
  93. data/rbi/terminal_shop/models/app_create_response.rbi +37 -9
  94. data/rbi/terminal_shop/models/app_delete_params.rbi +15 -5
  95. data/rbi/terminal_shop/models/app_delete_response.rbi +13 -3
  96. data/rbi/terminal_shop/models/app_get_params.rbi +15 -5
  97. data/rbi/terminal_shop/models/app_get_response.rbi +17 -7
  98. data/rbi/terminal_shop/models/app_list_params.rbi +15 -5
  99. data/rbi/terminal_shop/models/app_list_response.rbi +18 -6
  100. data/rbi/terminal_shop/models/card.rbi +37 -14
  101. data/rbi/terminal_shop/models/card_collect_params.rbi +18 -5
  102. data/rbi/terminal_shop/models/card_collect_response.rbi +40 -9
  103. data/rbi/terminal_shop/models/card_create_params.rbi +17 -6
  104. data/rbi/terminal_shop/models/card_create_response.rbi +14 -3
  105. data/rbi/terminal_shop/models/card_delete_params.rbi +15 -5
  106. data/rbi/terminal_shop/models/card_delete_response.rbi +13 -3
  107. data/rbi/terminal_shop/models/card_get_params.rbi +15 -5
  108. data/rbi/terminal_shop/models/card_get_response.rbi +17 -7
  109. data/rbi/terminal_shop/models/card_list_params.rbi +15 -5
  110. data/rbi/terminal_shop/models/card_list_response.rbi +18 -6
  111. data/rbi/terminal_shop/models/cart.rbi +93 -36
  112. data/rbi/terminal_shop/models/cart_clear_params.rbi +15 -5
  113. data/rbi/terminal_shop/models/cart_clear_response.rbi +13 -3
  114. data/rbi/terminal_shop/models/cart_convert_params.rbi +18 -5
  115. data/rbi/terminal_shop/models/cart_convert_response.rbi +17 -7
  116. data/rbi/terminal_shop/models/cart_get_params.rbi +15 -5
  117. data/rbi/terminal_shop/models/cart_get_response.rbi +17 -7
  118. data/rbi/terminal_shop/models/cart_set_address_params.rbi +20 -6
  119. data/rbi/terminal_shop/models/cart_set_address_response.rbi +13 -3
  120. data/rbi/terminal_shop/models/cart_set_card_params.rbi +20 -6
  121. data/rbi/terminal_shop/models/cart_set_card_response.rbi +13 -3
  122. data/rbi/terminal_shop/models/cart_set_item_params.rbi +22 -11
  123. data/rbi/terminal_shop/models/cart_set_item_response.rbi +17 -7
  124. data/rbi/terminal_shop/models/email_create_params.rbi +20 -6
  125. data/rbi/terminal_shop/models/email_create_response.rbi +13 -3
  126. data/rbi/terminal_shop/models/order.rbi +172 -87
  127. data/rbi/terminal_shop/models/order_create_params.rbi +23 -14
  128. data/rbi/terminal_shop/models/order_create_response.rbi +14 -3
  129. data/rbi/terminal_shop/models/order_get_params.rbi +15 -5
  130. data/rbi/terminal_shop/models/order_get_response.rbi +17 -7
  131. data/rbi/terminal_shop/models/order_list_params.rbi +15 -5
  132. data/rbi/terminal_shop/models/order_list_response.rbi +18 -6
  133. data/rbi/terminal_shop/models/product.rbi +78 -44
  134. data/rbi/terminal_shop/models/product_get_params.rbi +15 -5
  135. data/rbi/terminal_shop/models/product_get_response.rbi +17 -7
  136. data/rbi/terminal_shop/models/product_list_params.rbi +18 -5
  137. data/rbi/terminal_shop/models/product_list_response.rbi +18 -6
  138. data/rbi/terminal_shop/models/product_variant.rbi +46 -15
  139. data/rbi/terminal_shop/models/profile.rbi +39 -21
  140. data/rbi/terminal_shop/models/profile_me_params.rbi +15 -5
  141. data/rbi/terminal_shop/models/profile_me_response.rbi +17 -7
  142. data/rbi/terminal_shop/models/profile_update_params.rbi +23 -6
  143. data/rbi/terminal_shop/models/profile_update_response.rbi +17 -7
  144. data/rbi/terminal_shop/models/region.rbi +7 -6
  145. data/rbi/terminal_shop/models/subscription.rbi +82 -46
  146. data/rbi/terminal_shop/models/subscription_create_params.rbi +18 -5
  147. data/rbi/terminal_shop/models/subscription_create_response.rbi +13 -3
  148. data/rbi/terminal_shop/models/subscription_delete_params.rbi +18 -5
  149. data/rbi/terminal_shop/models/subscription_delete_response.rbi +13 -3
  150. data/rbi/terminal_shop/models/subscription_get_params.rbi +18 -5
  151. data/rbi/terminal_shop/models/subscription_get_response.rbi +19 -7
  152. data/rbi/terminal_shop/models/subscription_list_params.rbi +18 -5
  153. data/rbi/terminal_shop/models/subscription_list_response.rbi +20 -6
  154. data/rbi/terminal_shop/models/subscription_update_params.rbi +81 -42
  155. data/rbi/terminal_shop/models/subscription_update_response.rbi +19 -7
  156. data/rbi/terminal_shop/models/token.rbi +16 -4
  157. data/rbi/terminal_shop/models/token_create_params.rbi +18 -5
  158. data/rbi/terminal_shop/models/token_create_response.rbi +39 -9
  159. data/rbi/terminal_shop/models/token_delete_params.rbi +18 -5
  160. data/rbi/terminal_shop/models/token_delete_response.rbi +13 -3
  161. data/rbi/terminal_shop/models/token_get_params.rbi +15 -5
  162. data/rbi/terminal_shop/models/token_get_response.rbi +17 -7
  163. data/rbi/terminal_shop/models/token_list_params.rbi +15 -5
  164. data/rbi/terminal_shop/models/token_list_response.rbi +18 -6
  165. data/rbi/terminal_shop/models/view_init_params.rbi +15 -5
  166. data/rbi/terminal_shop/models/view_init_response.rbi +72 -47
  167. data/rbi/terminal_shop/request_options.rbi +18 -7
  168. data/rbi/terminal_shop/resources/address.rbi +28 -13
  169. data/rbi/terminal_shop/resources/app.rbi +30 -12
  170. data/rbi/terminal_shop/resources/card.rbi +37 -14
  171. data/rbi/terminal_shop/resources/cart.rbi +45 -16
  172. data/rbi/terminal_shop/resources/email.rbi +9 -4
  173. data/rbi/terminal_shop/resources/order.rbi +21 -10
  174. data/rbi/terminal_shop/resources/product.rbi +16 -6
  175. data/rbi/terminal_shop/resources/profile.rbi +16 -6
  176. data/rbi/terminal_shop/resources/subscription.rbi +43 -27
  177. data/rbi/terminal_shop/resources/token.rbi +30 -11
  178. data/rbi/terminal_shop/resources/view.rbi +9 -3
  179. data/sig/terminal_shop/internal/transport/base_client.rbs +16 -1
  180. data/sig/terminal_shop/internal/transport/pooled_net_requester.rbs +2 -0
  181. data/sig/terminal_shop/internal/type/base_model.rbs +11 -5
  182. data/sig/terminal_shop/internal/type/base_page.rbs +1 -1
  183. data/sig/terminal_shop/internal/type/converter.rbs +2 -0
  184. data/sig/terminal_shop/internal/type/enum.rbs +1 -0
  185. data/sig/terminal_shop/internal/type/request_parameters.rbs +5 -1
  186. data/sig/terminal_shop/internal/type/union.rbs +1 -0
  187. data/sig/terminal_shop/internal/util.rbs +13 -0
  188. data/sig/terminal_shop/internal.rbs +2 -0
  189. data/sig/terminal_shop/models/address.rbs +0 -2
  190. data/sig/terminal_shop/models/address_create_params.rbs +0 -2
  191. data/sig/terminal_shop/models/address_create_response.rbs +0 -2
  192. data/sig/terminal_shop/models/address_delete_params.rbs +0 -2
  193. data/sig/terminal_shop/models/address_delete_response.rbs +0 -2
  194. data/sig/terminal_shop/models/address_get_params.rbs +0 -2
  195. data/sig/terminal_shop/models/address_get_response.rbs +3 -5
  196. data/sig/terminal_shop/models/address_list_params.rbs +0 -2
  197. data/sig/terminal_shop/models/address_list_response.rbs +3 -6
  198. data/sig/terminal_shop/models/app.rbs +0 -2
  199. data/sig/terminal_shop/models/app_create_params.rbs +0 -2
  200. data/sig/terminal_shop/models/app_create_response.rbs +0 -4
  201. data/sig/terminal_shop/models/app_delete_params.rbs +0 -2
  202. data/sig/terminal_shop/models/app_delete_response.rbs +0 -2
  203. data/sig/terminal_shop/models/app_get_params.rbs +0 -2
  204. data/sig/terminal_shop/models/app_get_response.rbs +3 -5
  205. data/sig/terminal_shop/models/app_list_params.rbs +0 -2
  206. data/sig/terminal_shop/models/app_list_response.rbs +3 -5
  207. data/sig/terminal_shop/models/card.rbs +3 -7
  208. data/sig/terminal_shop/models/card_collect_params.rbs +0 -2
  209. data/sig/terminal_shop/models/card_collect_response.rbs +0 -4
  210. data/sig/terminal_shop/models/card_create_params.rbs +0 -2
  211. data/sig/terminal_shop/models/card_create_response.rbs +0 -2
  212. data/sig/terminal_shop/models/card_delete_params.rbs +0 -2
  213. data/sig/terminal_shop/models/card_delete_response.rbs +0 -2
  214. data/sig/terminal_shop/models/card_get_params.rbs +0 -2
  215. data/sig/terminal_shop/models/card_get_response.rbs +3 -5
  216. data/sig/terminal_shop/models/card_list_params.rbs +0 -2
  217. data/sig/terminal_shop/models/card_list_response.rbs +3 -5
  218. data/sig/terminal_shop/models/cart.rbs +11 -19
  219. data/sig/terminal_shop/models/cart_clear_params.rbs +0 -2
  220. data/sig/terminal_shop/models/cart_clear_response.rbs +0 -2
  221. data/sig/terminal_shop/models/cart_convert_params.rbs +0 -2
  222. data/sig/terminal_shop/models/cart_convert_response.rbs +3 -5
  223. data/sig/terminal_shop/models/cart_get_params.rbs +0 -2
  224. data/sig/terminal_shop/models/cart_get_response.rbs +3 -5
  225. data/sig/terminal_shop/models/cart_set_address_params.rbs +0 -2
  226. data/sig/terminal_shop/models/cart_set_address_response.rbs +0 -2
  227. data/sig/terminal_shop/models/cart_set_card_params.rbs +0 -2
  228. data/sig/terminal_shop/models/cart_set_card_response.rbs +0 -2
  229. data/sig/terminal_shop/models/cart_set_item_params.rbs +0 -2
  230. data/sig/terminal_shop/models/cart_set_item_response.rbs +3 -5
  231. data/sig/terminal_shop/models/email_create_params.rbs +0 -2
  232. data/sig/terminal_shop/models/email_create_response.rbs +0 -2
  233. data/sig/terminal_shop/models/order.rbs +18 -28
  234. data/sig/terminal_shop/models/order_create_params.rbs +0 -2
  235. data/sig/terminal_shop/models/order_create_response.rbs +0 -2
  236. data/sig/terminal_shop/models/order_get_params.rbs +0 -2
  237. data/sig/terminal_shop/models/order_get_response.rbs +3 -5
  238. data/sig/terminal_shop/models/order_list_params.rbs +0 -2
  239. data/sig/terminal_shop/models/order_list_response.rbs +3 -5
  240. data/sig/terminal_shop/models/product.rbs +14 -18
  241. data/sig/terminal_shop/models/product_get_params.rbs +0 -2
  242. data/sig/terminal_shop/models/product_get_response.rbs +3 -5
  243. data/sig/terminal_shop/models/product_list_params.rbs +0 -2
  244. data/sig/terminal_shop/models/product_list_response.rbs +3 -6
  245. data/sig/terminal_shop/models/product_variant.rbs +5 -9
  246. data/sig/terminal_shop/models/profile.rbs +3 -7
  247. data/sig/terminal_shop/models/profile_me_params.rbs +0 -2
  248. data/sig/terminal_shop/models/profile_me_response.rbs +3 -5
  249. data/sig/terminal_shop/models/profile_update_params.rbs +0 -2
  250. data/sig/terminal_shop/models/profile_update_response.rbs +3 -5
  251. data/sig/terminal_shop/models/subscription.rbs +8 -14
  252. data/sig/terminal_shop/models/subscription_create_params.rbs +0 -2
  253. data/sig/terminal_shop/models/subscription_create_response.rbs +0 -2
  254. data/sig/terminal_shop/models/subscription_delete_params.rbs +0 -2
  255. data/sig/terminal_shop/models/subscription_delete_response.rbs +0 -2
  256. data/sig/terminal_shop/models/subscription_get_params.rbs +0 -2
  257. data/sig/terminal_shop/models/subscription_get_response.rbs +3 -6
  258. data/sig/terminal_shop/models/subscription_list_params.rbs +0 -2
  259. data/sig/terminal_shop/models/subscription_list_response.rbs +3 -7
  260. data/sig/terminal_shop/models/subscription_update_params.rbs +3 -9
  261. data/sig/terminal_shop/models/subscription_update_response.rbs +3 -6
  262. data/sig/terminal_shop/models/token.rbs +0 -2
  263. data/sig/terminal_shop/models/token_create_params.rbs +0 -2
  264. data/sig/terminal_shop/models/token_create_response.rbs +0 -4
  265. data/sig/terminal_shop/models/token_delete_params.rbs +0 -2
  266. data/sig/terminal_shop/models/token_delete_response.rbs +0 -2
  267. data/sig/terminal_shop/models/token_get_params.rbs +0 -2
  268. data/sig/terminal_shop/models/token_get_response.rbs +3 -5
  269. data/sig/terminal_shop/models/token_list_params.rbs +0 -2
  270. data/sig/terminal_shop/models/token_list_response.rbs +3 -5
  271. data/sig/terminal_shop/models/view_init_params.rbs +0 -2
  272. data/sig/terminal_shop/models/view_init_response.rbs +27 -31
  273. data/sig/terminal_shop/request_options.rbs +1 -1
  274. metadata +2 -2
@@ -5,10 +5,10 @@ module TerminalShop
5
5
  id: String,
6
6
  description: String,
7
7
  name: String,
8
- variants: ::Array[TerminalShop::Models::ProductVariant],
8
+ variants: ::Array[TerminalShop::ProductVariant],
9
9
  order: Integer,
10
- subscription: TerminalShop::Models::ProductAPI::subscription,
11
- tags: TerminalShop::Models::ProductAPI::Tags
10
+ subscription: TerminalShop::ProductAPI::subscription,
11
+ tags: TerminalShop::ProductAPI::Tags
12
12
  }
13
13
 
14
14
  class ProductAPI < TerminalShop::Internal::Type::BaseModel
@@ -18,36 +18,34 @@ module TerminalShop
18
18
 
19
19
  attr_accessor name: String
20
20
 
21
- attr_accessor variants: ::Array[TerminalShop::Models::ProductVariant]
21
+ attr_accessor variants: ::Array[TerminalShop::ProductVariant]
22
22
 
23
23
  attr_reader order: Integer?
24
24
 
25
25
  def order=: (Integer) -> Integer
26
26
 
27
- attr_reader subscription: TerminalShop::Models::ProductAPI::subscription?
27
+ attr_reader subscription: TerminalShop::ProductAPI::subscription?
28
28
 
29
29
  def subscription=: (
30
- TerminalShop::Models::ProductAPI::subscription
31
- ) -> TerminalShop::Models::ProductAPI::subscription
30
+ TerminalShop::ProductAPI::subscription
31
+ ) -> TerminalShop::ProductAPI::subscription
32
32
 
33
- attr_reader tags: TerminalShop::Models::ProductAPI::Tags?
33
+ attr_reader tags: TerminalShop::ProductAPI::Tags?
34
34
 
35
35
  def tags=: (
36
- TerminalShop::Models::ProductAPI::Tags
37
- ) -> TerminalShop::Models::ProductAPI::Tags
36
+ TerminalShop::ProductAPI::Tags
37
+ ) -> TerminalShop::ProductAPI::Tags
38
38
 
39
39
  def initialize: (
40
40
  id: String,
41
41
  description: String,
42
42
  name: String,
43
- variants: ::Array[TerminalShop::Models::ProductVariant],
43
+ variants: ::Array[TerminalShop::ProductVariant],
44
44
  ?order: Integer,
45
- ?subscription: TerminalShop::Models::ProductAPI::subscription,
46
- ?tags: TerminalShop::Models::ProductAPI::Tags
45
+ ?subscription: TerminalShop::ProductAPI::subscription,
46
+ ?tags: TerminalShop::ProductAPI::Tags
47
47
  ) -> void
48
48
 
49
- def to_hash: -> TerminalShop::Models::product_api
50
-
51
49
  type subscription = :allowed | :required
52
50
 
53
51
  module Subscription
@@ -56,7 +54,7 @@ module TerminalShop
56
54
  ALLOWED: :allowed
57
55
  REQUIRED: :required
58
56
 
59
- def self?.values: -> ::Array[TerminalShop::Models::ProductAPI::subscription]
57
+ def self?.values: -> ::Array[TerminalShop::ProductAPI::subscription]
60
58
  end
61
59
 
62
60
  type tags =
@@ -102,8 +100,6 @@ module TerminalShop
102
100
  ?market_global: bool,
103
101
  ?market_na: bool
104
102
  ) -> void
105
-
106
- def to_hash: -> TerminalShop::Models::ProductAPI::tags
107
103
  end
108
104
  end
109
105
  end
@@ -8,8 +8,6 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
-
12
- def to_hash: -> TerminalShop::Models::product_get_params
13
11
  end
14
12
  end
15
13
  end
@@ -1,13 +1,11 @@
1
1
  module TerminalShop
2
2
  module Models
3
- type product_get_response = { data: TerminalShop::Models::ProductAPI }
3
+ type product_get_response = { data: TerminalShop::ProductAPI }
4
4
 
5
5
  class ProductGetResponse < TerminalShop::Internal::Type::BaseModel
6
- attr_accessor data: TerminalShop::Models::ProductAPI
6
+ attr_accessor data: TerminalShop::ProductAPI
7
7
 
8
- def initialize: (data: TerminalShop::Models::ProductAPI) -> void
9
-
10
- def to_hash: -> TerminalShop::Models::product_get_response
8
+ def initialize: (data: TerminalShop::ProductAPI) -> void
11
9
  end
12
10
  end
13
11
  end
@@ -8,8 +8,6 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
-
12
- def to_hash: -> TerminalShop::Models::product_list_params
13
11
  end
14
12
  end
15
13
  end
@@ -1,14 +1,11 @@
1
1
  module TerminalShop
2
2
  module Models
3
- type product_list_response =
4
- { data: ::Array[TerminalShop::Models::ProductAPI] }
3
+ type product_list_response = { data: ::Array[TerminalShop::ProductAPI] }
5
4
 
6
5
  class ProductListResponse < TerminalShop::Internal::Type::BaseModel
7
- attr_accessor data: ::Array[TerminalShop::Models::ProductAPI]
6
+ attr_accessor data: ::Array[TerminalShop::ProductAPI]
8
7
 
9
- def initialize: (data: ::Array[TerminalShop::Models::ProductAPI]) -> void
10
-
11
- def to_hash: -> TerminalShop::Models::product_list_response
8
+ def initialize: (data: ::Array[TerminalShop::ProductAPI]) -> void
12
9
  end
13
10
  end
14
11
  end
@@ -6,7 +6,7 @@ module TerminalShop
6
6
  name: String,
7
7
  price: Integer,
8
8
  description: String,
9
- tags: TerminalShop::Models::ProductVariant::Tags
9
+ tags: TerminalShop::ProductVariant::Tags
10
10
  }
11
11
 
12
12
  class ProductVariant < TerminalShop::Internal::Type::BaseModel
@@ -20,22 +20,20 @@ module TerminalShop
20
20
 
21
21
  def description=: (String) -> String
22
22
 
23
- attr_reader tags: TerminalShop::Models::ProductVariant::Tags?
23
+ attr_reader tags: TerminalShop::ProductVariant::Tags?
24
24
 
25
25
  def tags=: (
26
- TerminalShop::Models::ProductVariant::Tags
27
- ) -> TerminalShop::Models::ProductVariant::Tags
26
+ TerminalShop::ProductVariant::Tags
27
+ ) -> TerminalShop::ProductVariant::Tags
28
28
 
29
29
  def initialize: (
30
30
  id: String,
31
31
  name: String,
32
32
  price: Integer,
33
33
  ?description: String,
34
- ?tags: TerminalShop::Models::ProductVariant::Tags
34
+ ?tags: TerminalShop::ProductVariant::Tags
35
35
  ) -> void
36
36
 
37
- def to_hash: -> TerminalShop::Models::product_variant
38
-
39
37
  type tags =
40
38
  { app: String, market_eu: bool, market_global: bool, market_na: bool }
41
39
 
@@ -62,8 +60,6 @@ module TerminalShop
62
60
  ?market_global: bool,
63
61
  ?market_na: bool
64
62
  ) -> void
65
-
66
- def to_hash: -> TerminalShop::Models::ProductVariant::tags
67
63
  end
68
64
  end
69
65
  end
@@ -1,13 +1,11 @@
1
1
  module TerminalShop
2
2
  module Models
3
- type profile_api = { user: TerminalShop::Models::ProfileAPI::User }
3
+ type profile_api = { user: TerminalShop::ProfileAPI::User }
4
4
 
5
5
  class ProfileAPI < TerminalShop::Internal::Type::BaseModel
6
- attr_accessor user: TerminalShop::Models::ProfileAPI::User
6
+ attr_accessor user: TerminalShop::ProfileAPI::User
7
7
 
8
- def initialize: (user: TerminalShop::Models::ProfileAPI::User) -> void
9
-
10
- def to_hash: -> TerminalShop::Models::profile_api
8
+ def initialize: (user: TerminalShop::ProfileAPI::User) -> void
11
9
 
12
10
  type user =
13
11
  {
@@ -36,8 +34,6 @@ module TerminalShop
36
34
  name: String?,
37
35
  stripe_customer_id: String
38
36
  ) -> void
39
-
40
- def to_hash: -> TerminalShop::Models::ProfileAPI::user
41
37
  end
42
38
  end
43
39
  end
@@ -8,8 +8,6 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
-
12
- def to_hash: -> TerminalShop::Models::profile_me_params
13
11
  end
14
12
  end
15
13
  end
@@ -1,13 +1,11 @@
1
1
  module TerminalShop
2
2
  module Models
3
- type profile_me_response = { data: TerminalShop::Models::ProfileAPI }
3
+ type profile_me_response = { data: TerminalShop::ProfileAPI }
4
4
 
5
5
  class ProfileMeResponse < TerminalShop::Internal::Type::BaseModel
6
- attr_accessor data: TerminalShop::Models::ProfileAPI
6
+ attr_accessor data: TerminalShop::ProfileAPI
7
7
 
8
- def initialize: (data: TerminalShop::Models::ProfileAPI) -> void
9
-
10
- def to_hash: -> TerminalShop::Models::profile_me_response
8
+ def initialize: (data: TerminalShop::ProfileAPI) -> void
11
9
  end
12
10
  end
13
11
  end
@@ -17,8 +17,6 @@ module TerminalShop
17
17
  name: String,
18
18
  ?request_options: TerminalShop::request_opts
19
19
  ) -> void
20
-
21
- def to_hash: -> TerminalShop::Models::profile_update_params
22
20
  end
23
21
  end
24
22
  end
@@ -1,13 +1,11 @@
1
1
  module TerminalShop
2
2
  module Models
3
- type profile_update_response = { data: TerminalShop::Models::ProfileAPI }
3
+ type profile_update_response = { data: TerminalShop::ProfileAPI }
4
4
 
5
5
  class ProfileUpdateResponse < TerminalShop::Internal::Type::BaseModel
6
- attr_accessor data: TerminalShop::Models::ProfileAPI
6
+ attr_accessor data: TerminalShop::ProfileAPI
7
7
 
8
- def initialize: (data: TerminalShop::Models::ProfileAPI) -> void
9
-
10
- def to_hash: -> TerminalShop::Models::profile_update_response
8
+ def initialize: (data: TerminalShop::ProfileAPI) -> void
11
9
  end
12
10
  end
13
11
  end
@@ -10,7 +10,7 @@ module TerminalShop
10
10
  product_variant_id: String,
11
11
  quantity: Integer,
12
12
  next_: String,
13
- schedule: TerminalShop::Models::SubscriptionAPI::schedule
13
+ schedule: TerminalShop::SubscriptionAPI::schedule
14
14
  }
15
15
 
16
16
  class SubscriptionAPI < TerminalShop::Internal::Type::BaseModel
@@ -32,11 +32,11 @@ module TerminalShop
32
32
 
33
33
  def next_=: (String) -> String
34
34
 
35
- attr_reader schedule: TerminalShop::Models::SubscriptionAPI::schedule?
35
+ attr_reader schedule: TerminalShop::SubscriptionAPI::schedule?
36
36
 
37
37
  def schedule=: (
38
- TerminalShop::Models::SubscriptionAPI::schedule
39
- ) -> TerminalShop::Models::SubscriptionAPI::schedule
38
+ TerminalShop::SubscriptionAPI::schedule
39
+ ) -> TerminalShop::SubscriptionAPI::schedule
40
40
 
41
41
  def initialize: (
42
42
  id: String,
@@ -47,14 +47,12 @@ module TerminalShop
47
47
  product_variant_id: String,
48
48
  quantity: Integer,
49
49
  ?next_: String,
50
- ?schedule: TerminalShop::Models::SubscriptionAPI::schedule
50
+ ?schedule: TerminalShop::SubscriptionAPI::schedule
51
51
  ) -> void
52
52
 
53
- def to_hash: -> TerminalShop::Models::subscription_api
54
-
55
53
  type schedule =
56
- TerminalShop::Models::SubscriptionAPI::Schedule::Fixed
57
- | TerminalShop::Models::SubscriptionAPI::Schedule::Weekly
54
+ TerminalShop::SubscriptionAPI::Schedule::Fixed
55
+ | TerminalShop::SubscriptionAPI::Schedule::Weekly
58
56
 
59
57
  module Schedule
60
58
  extend TerminalShop::Internal::Type::Union
@@ -65,8 +63,6 @@ module TerminalShop
65
63
  attr_accessor type: :fixed
66
64
 
67
65
  def initialize: (?type: :fixed) -> void
68
-
69
- def to_hash: -> TerminalShop::Models::SubscriptionAPI::Schedule::fixed
70
66
  end
71
67
 
72
68
  type weekly = { interval: Integer, type: :weekly }
@@ -77,11 +73,9 @@ module TerminalShop
77
73
  attr_accessor type: :weekly
78
74
 
79
75
  def initialize: (interval: Integer, ?type: :weekly) -> void
80
-
81
- def to_hash: -> TerminalShop::Models::SubscriptionAPI::Schedule::weekly
82
76
  end
83
77
 
84
- def self?.variants: -> [TerminalShop::Models::SubscriptionAPI::Schedule::Fixed, TerminalShop::Models::SubscriptionAPI::Schedule::Weekly]
78
+ def self?.variants: -> ::Array[TerminalShop::SubscriptionAPI::schedule]
85
79
  end
86
80
  end
87
81
  end
@@ -8,8 +8,6 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
-
12
- def to_hash: -> TerminalShop::Models::subscription_create_params
13
11
  end
14
12
  end
15
13
  end
@@ -6,8 +6,6 @@ module TerminalShop
6
6
  attr_accessor data: :ok
7
7
 
8
8
  def initialize: (?data: :ok) -> void
9
-
10
- def to_hash: -> TerminalShop::Models::subscription_create_response
11
9
  end
12
10
  end
13
11
  end
@@ -8,8 +8,6 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
-
12
- def to_hash: -> TerminalShop::Models::subscription_delete_params
13
11
  end
14
12
  end
15
13
  end
@@ -6,8 +6,6 @@ module TerminalShop
6
6
  attr_accessor data: :ok
7
7
 
8
8
  def initialize: (?data: :ok) -> void
9
-
10
- def to_hash: -> TerminalShop::Models::subscription_delete_response
11
9
  end
12
10
  end
13
11
  end
@@ -8,8 +8,6 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
-
12
- def to_hash: -> TerminalShop::Models::subscription_get_params
13
11
  end
14
12
  end
15
13
  end
@@ -1,14 +1,11 @@
1
1
  module TerminalShop
2
2
  module Models
3
- type subscription_get_response =
4
- { data: TerminalShop::Models::SubscriptionAPI }
3
+ type subscription_get_response = { data: TerminalShop::SubscriptionAPI }
5
4
 
6
5
  class SubscriptionGetResponse < TerminalShop::Internal::Type::BaseModel
7
- attr_accessor data: TerminalShop::Models::SubscriptionAPI
6
+ attr_accessor data: TerminalShop::SubscriptionAPI
8
7
 
9
- def initialize: (data: TerminalShop::Models::SubscriptionAPI) -> void
10
-
11
- def to_hash: -> TerminalShop::Models::subscription_get_response
8
+ def initialize: (data: TerminalShop::SubscriptionAPI) -> void
12
9
  end
13
10
  end
14
11
  end
@@ -8,8 +8,6 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
-
12
- def to_hash: -> TerminalShop::Models::subscription_list_params
13
11
  end
14
12
  end
15
13
  end
@@ -1,16 +1,12 @@
1
1
  module TerminalShop
2
2
  module Models
3
3
  type subscription_list_response =
4
- { data: ::Array[TerminalShop::Models::SubscriptionAPI] }
4
+ { data: ::Array[TerminalShop::SubscriptionAPI] }
5
5
 
6
6
  class SubscriptionListResponse < TerminalShop::Internal::Type::BaseModel
7
- attr_accessor data: ::Array[TerminalShop::Models::SubscriptionAPI]
7
+ attr_accessor data: ::Array[TerminalShop::SubscriptionAPI]
8
8
 
9
- def initialize: (
10
- data: ::Array[TerminalShop::Models::SubscriptionAPI]
11
- ) -> void
12
-
13
- def to_hash: -> TerminalShop::Models::subscription_list_response
9
+ def initialize: (data: ::Array[TerminalShop::SubscriptionAPI]) -> void
14
10
  end
15
11
  end
16
12
  end
@@ -33,11 +33,9 @@ module TerminalShop
33
33
  ?request_options: TerminalShop::request_opts
34
34
  ) -> void
35
35
 
36
- def to_hash: -> TerminalShop::Models::subscription_update_params
37
-
38
36
  type schedule =
39
- TerminalShop::Models::SubscriptionUpdateParams::Schedule::Fixed
40
- | TerminalShop::Models::SubscriptionUpdateParams::Schedule::Weekly
37
+ TerminalShop::SubscriptionUpdateParams::Schedule::Fixed
38
+ | TerminalShop::SubscriptionUpdateParams::Schedule::Weekly
41
39
 
42
40
  module Schedule
43
41
  extend TerminalShop::Internal::Type::Union
@@ -48,8 +46,6 @@ module TerminalShop
48
46
  attr_accessor type: :fixed
49
47
 
50
48
  def initialize: (?type: :fixed) -> void
51
-
52
- def to_hash: -> TerminalShop::Models::SubscriptionUpdateParams::Schedule::fixed
53
49
  end
54
50
 
55
51
  type weekly = { interval: Integer, type: :weekly }
@@ -60,11 +56,9 @@ module TerminalShop
60
56
  attr_accessor type: :weekly
61
57
 
62
58
  def initialize: (interval: Integer, ?type: :weekly) -> void
63
-
64
- def to_hash: -> TerminalShop::Models::SubscriptionUpdateParams::Schedule::weekly
65
59
  end
66
60
 
67
- def self?.variants: -> [TerminalShop::Models::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::Models::SubscriptionUpdateParams::Schedule::Weekly]
61
+ def self?.variants: -> ::Array[TerminalShop::Models::SubscriptionUpdateParams::schedule]
68
62
  end
69
63
  end
70
64
  end
@@ -1,14 +1,11 @@
1
1
  module TerminalShop
2
2
  module Models
3
- type subscription_update_response =
4
- { data: TerminalShop::Models::SubscriptionAPI }
3
+ type subscription_update_response = { data: TerminalShop::SubscriptionAPI }
5
4
 
6
5
  class SubscriptionUpdateResponse < TerminalShop::Internal::Type::BaseModel
7
- attr_accessor data: TerminalShop::Models::SubscriptionAPI
6
+ attr_accessor data: TerminalShop::SubscriptionAPI
8
7
 
9
- def initialize: (data: TerminalShop::Models::SubscriptionAPI) -> void
10
-
11
- def to_hash: -> TerminalShop::Models::subscription_update_response
8
+ def initialize: (data: TerminalShop::SubscriptionAPI) -> void
12
9
  end
13
10
  end
14
11
  end
@@ -10,8 +10,6 @@ module TerminalShop
10
10
  attr_accessor created: String
11
11
 
12
12
  def initialize: (id: String, token: String, created: String) -> void
13
-
14
- def to_hash: -> TerminalShop::Models::token_api
15
13
  end
16
14
  end
17
15
  end
@@ -8,8 +8,6 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
-
12
- def to_hash: -> TerminalShop::Models::token_create_params
13
11
  end
14
12
  end
15
13
  end
@@ -10,8 +10,6 @@ module TerminalShop
10
10
  data: TerminalShop::Models::TokenCreateResponse::Data
11
11
  ) -> void
12
12
 
13
- def to_hash: -> TerminalShop::Models::token_create_response
14
-
15
13
  type data = { id: String, token: String }
16
14
 
17
15
  class Data < TerminalShop::Internal::Type::BaseModel
@@ -20,8 +18,6 @@ module TerminalShop
20
18
  attr_accessor token: String
21
19
 
22
20
  def initialize: (id: String, token: String) -> void
23
-
24
- def to_hash: -> TerminalShop::Models::TokenCreateResponse::data
25
21
  end
26
22
  end
27
23
  end
@@ -8,8 +8,6 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
-
12
- def to_hash: -> TerminalShop::Models::token_delete_params
13
11
  end
14
12
  end
15
13
  end
@@ -6,8 +6,6 @@ module TerminalShop
6
6
  attr_accessor data: :ok
7
7
 
8
8
  def initialize: (?data: :ok) -> void
9
-
10
- def to_hash: -> TerminalShop::Models::token_delete_response
11
9
  end
12
10
  end
13
11
  end
@@ -8,8 +8,6 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
-
12
- def to_hash: -> TerminalShop::Models::token_get_params
13
11
  end
14
12
  end
15
13
  end
@@ -1,13 +1,11 @@
1
1
  module TerminalShop
2
2
  module Models
3
- type token_get_response = { data: TerminalShop::Models::TokenAPI }
3
+ type token_get_response = { data: TerminalShop::TokenAPI }
4
4
 
5
5
  class TokenGetResponse < TerminalShop::Internal::Type::BaseModel
6
- attr_accessor data: TerminalShop::Models::TokenAPI
6
+ attr_accessor data: TerminalShop::TokenAPI
7
7
 
8
- def initialize: (data: TerminalShop::Models::TokenAPI) -> void
9
-
10
- def to_hash: -> TerminalShop::Models::token_get_response
8
+ def initialize: (data: TerminalShop::TokenAPI) -> void
11
9
  end
12
10
  end
13
11
  end
@@ -8,8 +8,6 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
-
12
- def to_hash: -> TerminalShop::Models::token_list_params
13
11
  end
14
12
  end
15
13
  end
@@ -1,13 +1,11 @@
1
1
  module TerminalShop
2
2
  module Models
3
- type token_list_response = { data: ::Array[TerminalShop::Models::TokenAPI] }
3
+ type token_list_response = { data: ::Array[TerminalShop::TokenAPI] }
4
4
 
5
5
  class TokenListResponse < TerminalShop::Internal::Type::BaseModel
6
- attr_accessor data: ::Array[TerminalShop::Models::TokenAPI]
6
+ attr_accessor data: ::Array[TerminalShop::TokenAPI]
7
7
 
8
- def initialize: (data: ::Array[TerminalShop::Models::TokenAPI]) -> void
9
-
10
- def to_hash: -> TerminalShop::Models::token_list_response
8
+ def initialize: (data: ::Array[TerminalShop::TokenAPI]) -> void
11
9
  end
12
10
  end
13
11
  end
@@ -8,8 +8,6 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
-
12
- def to_hash: -> TerminalShop::Models::view_init_params
13
11
  end
14
12
  end
15
13
  end