terminal-shop 1.8.0 → 2.0.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 (220) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -0
  3. data/lib/terminal-shop/base_client.rb +11 -10
  4. data/lib/terminal-shop/base_model.rb +257 -244
  5. data/lib/terminal-shop/base_page.rb +19 -20
  6. data/lib/terminal-shop/client.rb +1 -0
  7. data/lib/terminal-shop/models/product.rb +7 -3
  8. data/lib/terminal-shop/models/region.rb +7 -3
  9. data/lib/terminal-shop/models/subscription.rb +5 -7
  10. data/lib/terminal-shop/pooled_net_requester.rb +12 -1
  11. data/lib/terminal-shop/request_options.rb +1 -1
  12. data/lib/terminal-shop/util.rb +16 -7
  13. data/lib/terminal-shop/version.rb +1 -1
  14. data/lib/terminal-shop.rb +15 -0
  15. data/rbi/lib/terminal-shop/base_client.rbi +40 -41
  16. data/rbi/lib/terminal-shop/base_model.rbi +139 -116
  17. data/rbi/lib/terminal-shop/base_page.rbi +0 -2
  18. data/rbi/lib/terminal-shop/client.rbi +18 -30
  19. data/rbi/lib/terminal-shop/errors.rbi +7 -42
  20. data/rbi/lib/terminal-shop/models/address.rbi +15 -51
  21. data/rbi/lib/terminal-shop/models/address_create_params.rbi +15 -46
  22. data/rbi/lib/terminal-shop/models/address_create_response.rbi +1 -6
  23. data/rbi/lib/terminal-shop/models/address_delete_params.rbi +1 -1
  24. data/rbi/lib/terminal-shop/models/address_delete_response.rbi +1 -6
  25. data/rbi/lib/terminal-shop/models/address_get_params.rbi +1 -1
  26. data/rbi/lib/terminal-shop/models/address_get_response.rbi +7 -6
  27. data/rbi/lib/terminal-shop/models/address_list_params.rbi +1 -1
  28. data/rbi/lib/terminal-shop/models/address_list_response.rbi +4 -6
  29. data/rbi/lib/terminal-shop/models/app.rbi +4 -24
  30. data/rbi/lib/terminal-shop/models/app_create_params.rbi +3 -13
  31. data/rbi/lib/terminal-shop/models/app_create_response.rbi +8 -20
  32. data/rbi/lib/terminal-shop/models/app_delete_params.rbi +1 -1
  33. data/rbi/lib/terminal-shop/models/app_delete_response.rbi +1 -6
  34. data/rbi/lib/terminal-shop/models/app_get_params.rbi +1 -1
  35. data/rbi/lib/terminal-shop/models/app_get_response.rbi +4 -6
  36. data/rbi/lib/terminal-shop/models/app_list_params.rbi +1 -1
  37. data/rbi/lib/terminal-shop/models/app_list_response.rbi +4 -6
  38. data/rbi/lib/terminal-shop/models/card.rbi +14 -36
  39. data/rbi/lib/terminal-shop/models/card_collect_params.rbi +1 -1
  40. data/rbi/lib/terminal-shop/models/card_collect_response.rbi +7 -14
  41. data/rbi/lib/terminal-shop/models/card_create_params.rbi +2 -7
  42. data/rbi/lib/terminal-shop/models/card_create_response.rbi +1 -6
  43. data/rbi/lib/terminal-shop/models/card_delete_params.rbi +1 -1
  44. data/rbi/lib/terminal-shop/models/card_delete_response.rbi +1 -6
  45. data/rbi/lib/terminal-shop/models/card_get_params.rbi +1 -1
  46. data/rbi/lib/terminal-shop/models/card_get_response.rbi +4 -6
  47. data/rbi/lib/terminal-shop/models/card_list_params.rbi +1 -1
  48. data/rbi/lib/terminal-shop/models/card_list_response.rbi +4 -6
  49. data/rbi/lib/terminal-shop/models/cart.rbi +34 -88
  50. data/rbi/lib/terminal-shop/models/cart_clear_params.rbi +1 -1
  51. data/rbi/lib/terminal-shop/models/cart_clear_response.rbi +1 -6
  52. data/rbi/lib/terminal-shop/models/cart_convert_params.rbi +1 -1
  53. data/rbi/lib/terminal-shop/models/cart_convert_response.rbi +4 -6
  54. data/rbi/lib/terminal-shop/models/cart_get_params.rbi +1 -1
  55. data/rbi/lib/terminal-shop/models/cart_get_response.rbi +4 -6
  56. data/rbi/lib/terminal-shop/models/cart_set_address_params.rbi +2 -7
  57. data/rbi/lib/terminal-shop/models/cart_set_address_response.rbi +1 -6
  58. data/rbi/lib/terminal-shop/models/cart_set_card_params.rbi +2 -7
  59. data/rbi/lib/terminal-shop/models/cart_set_card_response.rbi +1 -6
  60. data/rbi/lib/terminal-shop/models/cart_set_item_params.rbi +3 -13
  61. data/rbi/lib/terminal-shop/models/cart_set_item_response.rbi +4 -6
  62. data/rbi/lib/terminal-shop/models/email_create_params.rbi +2 -7
  63. data/rbi/lib/terminal-shop/models/email_create_response.rbi +1 -6
  64. data/rbi/lib/terminal-shop/models/order.rbi +52 -139
  65. data/rbi/lib/terminal-shop/models/order_create_params.rbi +4 -19
  66. data/rbi/lib/terminal-shop/models/order_create_response.rbi +1 -6
  67. data/rbi/lib/terminal-shop/models/order_get_params.rbi +1 -1
  68. data/rbi/lib/terminal-shop/models/order_get_response.rbi +4 -6
  69. data/rbi/lib/terminal-shop/models/order_list_params.rbi +1 -1
  70. data/rbi/lib/terminal-shop/models/order_list_response.rbi +4 -6
  71. data/rbi/lib/terminal-shop/models/product.rbi +43 -77
  72. data/rbi/lib/terminal-shop/models/product_get_params.rbi +1 -1
  73. data/rbi/lib/terminal-shop/models/product_get_response.rbi +7 -6
  74. data/rbi/lib/terminal-shop/models/product_list_params.rbi +1 -1
  75. data/rbi/lib/terminal-shop/models/product_list_response.rbi +4 -6
  76. data/rbi/lib/terminal-shop/models/product_variant.rbi +3 -18
  77. data/rbi/lib/terminal-shop/models/profile.rbi +12 -36
  78. data/rbi/lib/terminal-shop/models/profile_me_params.rbi +1 -1
  79. data/rbi/lib/terminal-shop/models/profile_me_response.rbi +7 -6
  80. data/rbi/lib/terminal-shop/models/profile_update_params.rbi +3 -13
  81. data/rbi/lib/terminal-shop/models/profile_update_response.rbi +7 -6
  82. data/rbi/lib/terminal-shop/models/region.rbi +10 -5
  83. data/rbi/lib/terminal-shop/models/subscription.rbi +28 -75
  84. data/rbi/lib/terminal-shop/models/subscription_create_params.rbi +1 -1
  85. data/rbi/lib/terminal-shop/models/subscription_create_response.rbi +1 -6
  86. data/rbi/lib/terminal-shop/models/subscription_delete_params.rbi +1 -1
  87. data/rbi/lib/terminal-shop/models/subscription_delete_response.rbi +1 -6
  88. data/rbi/lib/terminal-shop/models/subscription_get_params.rbi +1 -1
  89. data/rbi/lib/terminal-shop/models/subscription_get_response.rbi +7 -6
  90. data/rbi/lib/terminal-shop/models/subscription_list_params.rbi +1 -1
  91. data/rbi/lib/terminal-shop/models/subscription_list_response.rbi +3 -8
  92. data/rbi/lib/terminal-shop/models/token.rbi +3 -18
  93. data/rbi/lib/terminal-shop/models/token_create_params.rbi +1 -1
  94. data/rbi/lib/terminal-shop/models/token_create_response.rbi +8 -20
  95. data/rbi/lib/terminal-shop/models/token_delete_params.rbi +1 -1
  96. data/rbi/lib/terminal-shop/models/token_delete_response.rbi +1 -6
  97. data/rbi/lib/terminal-shop/models/token_get_params.rbi +1 -1
  98. data/rbi/lib/terminal-shop/models/token_get_response.rbi +4 -6
  99. data/rbi/lib/terminal-shop/models/token_list_params.rbi +1 -1
  100. data/rbi/lib/terminal-shop/models/token_list_response.rbi +4 -6
  101. data/rbi/lib/terminal-shop/models/view_init_params.rbi +1 -1
  102. data/rbi/lib/terminal-shop/models/view_init_response.rbi +32 -81
  103. data/rbi/lib/terminal-shop/pooled_net_requester.rbi +14 -3
  104. data/rbi/lib/terminal-shop/request_options.rbi +11 -55
  105. data/rbi/lib/terminal-shop/resources/address.rbi +4 -4
  106. data/rbi/lib/terminal-shop/resources/app.rbi +4 -4
  107. data/rbi/lib/terminal-shop/resources/card.rbi +5 -5
  108. data/rbi/lib/terminal-shop/resources/cart.rbi +6 -6
  109. data/rbi/lib/terminal-shop/resources/email.rbi +1 -1
  110. data/rbi/lib/terminal-shop/resources/order.rbi +3 -3
  111. data/rbi/lib/terminal-shop/resources/product.rbi +2 -2
  112. data/rbi/lib/terminal-shop/resources/profile.rbi +2 -2
  113. data/rbi/lib/terminal-shop/resources/subscription.rbi +5 -4
  114. data/rbi/lib/terminal-shop/resources/token.rbi +4 -4
  115. data/rbi/lib/terminal-shop/resources/view.rbi +1 -1
  116. data/rbi/lib/terminal-shop/util.rbi +24 -13
  117. data/rbi/lib/terminal-shop/version.rbi +1 -1
  118. data/sig/terminal-shop/base_client.rbs +14 -14
  119. data/sig/terminal-shop/base_model.rbs +34 -18
  120. data/sig/terminal-shop/client.rbs +8 -8
  121. data/sig/terminal-shop/errors.rbs +17 -17
  122. data/sig/terminal-shop/models/address.rbs +11 -15
  123. data/sig/terminal-shop/models/address_create_params.rbs +11 -16
  124. data/sig/terminal-shop/models/address_create_response.rbs +1 -6
  125. data/sig/terminal-shop/models/address_delete_params.rbs +1 -6
  126. data/sig/terminal-shop/models/address_delete_response.rbs +1 -6
  127. data/sig/terminal-shop/models/address_get_params.rbs +1 -6
  128. data/sig/terminal-shop/models/address_get_response.rbs +1 -6
  129. data/sig/terminal-shop/models/address_list_params.rbs +1 -6
  130. data/sig/terminal-shop/models/address_list_response.rbs +1 -6
  131. data/sig/terminal-shop/models/app.rbs +6 -5
  132. data/sig/terminal-shop/models/app_create_params.rbs +5 -10
  133. data/sig/terminal-shop/models/app_create_response.rbs +4 -12
  134. data/sig/terminal-shop/models/app_delete_params.rbs +1 -6
  135. data/sig/terminal-shop/models/app_delete_response.rbs +1 -6
  136. data/sig/terminal-shop/models/app_get_params.rbs +1 -5
  137. data/sig/terminal-shop/models/app_get_response.rbs +1 -5
  138. data/sig/terminal-shop/models/app_list_params.rbs +1 -5
  139. data/sig/terminal-shop/models/app_list_response.rbs +1 -6
  140. data/sig/terminal-shop/models/card.rbs +7 -16
  141. data/sig/terminal-shop/models/card_collect_params.rbs +1 -6
  142. data/sig/terminal-shop/models/card_collect_response.rbs +4 -12
  143. data/sig/terminal-shop/models/card_create_params.rbs +4 -6
  144. data/sig/terminal-shop/models/card_create_response.rbs +1 -6
  145. data/sig/terminal-shop/models/card_delete_params.rbs +1 -6
  146. data/sig/terminal-shop/models/card_delete_response.rbs +1 -6
  147. data/sig/terminal-shop/models/card_get_params.rbs +1 -5
  148. data/sig/terminal-shop/models/card_get_response.rbs +1 -6
  149. data/sig/terminal-shop/models/card_list_params.rbs +1 -5
  150. data/sig/terminal-shop/models/card_list_response.rbs +1 -6
  151. data/sig/terminal-shop/models/cart.rbs +20 -34
  152. data/sig/terminal-shop/models/cart_clear_params.rbs +1 -6
  153. data/sig/terminal-shop/models/cart_clear_response.rbs +1 -6
  154. data/sig/terminal-shop/models/cart_convert_params.rbs +1 -6
  155. data/sig/terminal-shop/models/cart_convert_response.rbs +1 -6
  156. data/sig/terminal-shop/models/cart_get_params.rbs +1 -5
  157. data/sig/terminal-shop/models/cart_get_response.rbs +1 -6
  158. data/sig/terminal-shop/models/cart_set_address_params.rbs +4 -9
  159. data/sig/terminal-shop/models/cart_set_address_response.rbs +1 -6
  160. data/sig/terminal-shop/models/cart_set_card_params.rbs +4 -6
  161. data/sig/terminal-shop/models/cart_set_card_response.rbs +1 -6
  162. data/sig/terminal-shop/models/cart_set_item_params.rbs +5 -10
  163. data/sig/terminal-shop/models/cart_set_item_response.rbs +1 -6
  164. data/sig/terminal-shop/models/email_create_params.rbs +4 -6
  165. data/sig/terminal-shop/models/email_create_response.rbs +1 -6
  166. data/sig/terminal-shop/models/order.rbs +31 -50
  167. data/sig/terminal-shop/models/order_create_params.rbs +6 -11
  168. data/sig/terminal-shop/models/order_create_response.rbs +1 -6
  169. data/sig/terminal-shop/models/order_get_params.rbs +1 -5
  170. data/sig/terminal-shop/models/order_get_response.rbs +1 -6
  171. data/sig/terminal-shop/models/order_list_params.rbs +1 -6
  172. data/sig/terminal-shop/models/order_list_response.rbs +1 -6
  173. data/sig/terminal-shop/models/product.rbs +20 -27
  174. data/sig/terminal-shop/models/product_get_params.rbs +1 -6
  175. data/sig/terminal-shop/models/product_get_response.rbs +1 -6
  176. data/sig/terminal-shop/models/product_list_params.rbs +1 -6
  177. data/sig/terminal-shop/models/product_list_response.rbs +1 -6
  178. data/sig/terminal-shop/models/product_variant.rbs +1 -5
  179. data/sig/terminal-shop/models/profile.rbs +8 -17
  180. data/sig/terminal-shop/models/profile_me_params.rbs +1 -6
  181. data/sig/terminal-shop/models/profile_me_response.rbs +1 -6
  182. data/sig/terminal-shop/models/profile_update_params.rbs +5 -10
  183. data/sig/terminal-shop/models/profile_update_response.rbs +1 -6
  184. data/sig/terminal-shop/models/region.rbs +4 -2
  185. data/sig/terminal-shop/models/subscription.rbs +15 -27
  186. data/sig/terminal-shop/models/subscription_create_params.rbs +1 -6
  187. data/sig/terminal-shop/models/subscription_create_response.rbs +1 -6
  188. data/sig/terminal-shop/models/subscription_delete_params.rbs +1 -6
  189. data/sig/terminal-shop/models/subscription_delete_response.rbs +1 -6
  190. data/sig/terminal-shop/models/subscription_get_params.rbs +1 -6
  191. data/sig/terminal-shop/models/subscription_get_response.rbs +1 -6
  192. data/sig/terminal-shop/models/subscription_list_params.rbs +1 -6
  193. data/sig/terminal-shop/models/subscription_list_response.rbs +3 -6
  194. data/sig/terminal-shop/models/token.rbs +1 -5
  195. data/sig/terminal-shop/models/token_create_params.rbs +1 -6
  196. data/sig/terminal-shop/models/token_create_response.rbs +4 -12
  197. data/sig/terminal-shop/models/token_delete_params.rbs +1 -6
  198. data/sig/terminal-shop/models/token_delete_response.rbs +1 -6
  199. data/sig/terminal-shop/models/token_get_params.rbs +1 -5
  200. data/sig/terminal-shop/models/token_get_response.rbs +1 -6
  201. data/sig/terminal-shop/models/token_list_params.rbs +1 -6
  202. data/sig/terminal-shop/models/token_list_response.rbs +1 -6
  203. data/sig/terminal-shop/models/view_init_params.rbs +1 -5
  204. data/sig/terminal-shop/models/view_init_response.rbs +15 -23
  205. data/sig/terminal-shop/pooled_net_requester.rbs +3 -1
  206. data/sig/terminal-shop/request_options.rbs +2 -2
  207. data/sig/terminal-shop/resources/address.rbs +22 -41
  208. data/sig/terminal-shop/resources/app.rbs +16 -34
  209. data/sig/terminal-shop/resources/card.rbs +18 -40
  210. data/sig/terminal-shop/resources/cart.rbs +22 -47
  211. data/sig/terminal-shop/resources/email.rbs +4 -8
  212. data/sig/terminal-shop/resources/order.rbs +13 -26
  213. data/sig/terminal-shop/resources/product.rbs +7 -16
  214. data/sig/terminal-shop/resources/profile.rbs +8 -16
  215. data/sig/terminal-shop/resources/subscription.rbs +21 -43
  216. data/sig/terminal-shop/resources/token.rbs +14 -32
  217. data/sig/terminal-shop/resources/view.rbs +3 -7
  218. data/sig/terminal-shop/util.rbs +5 -5
  219. data/sig/terminal-shop/version.rbs +1 -1
  220. metadata +2 -2
@@ -6,12 +6,7 @@ module TerminalShop
6
6
  extend TerminalShop::RequestParameters::Converter
7
7
  include TerminalShop::RequestParameters
8
8
 
9
- def initialize:
10
- (request_options: TerminalShop::request_opts) -> void
11
- | (
12
- ?TerminalShop::Models::token_list_params
13
- | TerminalShop::BaseModel data
14
- ) -> void
9
+ def initialize: (?request_options: TerminalShop::request_opts) -> void
15
10
 
16
11
  def to_hash: -> TerminalShop::Models::token_list_params
17
12
  end
@@ -5,12 +5,7 @@ module TerminalShop
5
5
  class TokenListResponse < TerminalShop::BaseModel
6
6
  attr_accessor data: ::Array[TerminalShop::Models::TokenAPI]
7
7
 
8
- def initialize:
9
- (data: ::Array[TerminalShop::Models::TokenAPI]) -> void
10
- | (
11
- ?TerminalShop::Models::token_list_response
12
- | TerminalShop::BaseModel data
13
- ) -> void
8
+ def initialize: (data: ::Array[TerminalShop::Models::TokenAPI]) -> void
14
9
 
15
10
  def to_hash: -> TerminalShop::Models::token_list_response
16
11
  end
@@ -6,11 +6,7 @@ module TerminalShop
6
6
  extend TerminalShop::RequestParameters::Converter
7
7
  include TerminalShop::RequestParameters
8
8
 
9
- def initialize:
10
- (request_options: TerminalShop::request_opts) -> void
11
- | (
12
- ?TerminalShop::Models::view_init_params | TerminalShop::BaseModel data
13
- ) -> void
9
+ def initialize: (?request_options: TerminalShop::request_opts) -> void
14
10
 
15
11
  def to_hash: -> TerminalShop::Models::view_init_params
16
12
  end
@@ -6,12 +6,9 @@ module TerminalShop
6
6
  class ViewInitResponse < TerminalShop::BaseModel
7
7
  attr_accessor data: TerminalShop::Models::ViewInitResponse::Data
8
8
 
9
- def initialize:
10
- (data: TerminalShop::Models::ViewInitResponse::Data) -> void
11
- | (
12
- ?TerminalShop::Models::view_init_response
13
- | TerminalShop::BaseModel data
14
- ) -> void
9
+ def initialize: (
10
+ data: TerminalShop::Models::ViewInitResponse::Data
11
+ ) -> void
15
12
 
16
13
  def to_hash: -> TerminalShop::Models::view_init_response
17
14
 
@@ -50,23 +47,18 @@ module TerminalShop
50
47
 
51
48
  attr_accessor tokens: ::Array[TerminalShop::Models::TokenAPI]
52
49
 
53
- def initialize:
54
- (
55
- addresses: ::Array[TerminalShop::Models::AddressAPI],
56
- apps: ::Array[TerminalShop::Models::AppAPI],
57
- cards: ::Array[TerminalShop::Models::CardAPI],
58
- cart: TerminalShop::Models::CartAPI,
59
- orders: ::Array[TerminalShop::Models::OrderAPI],
60
- products: ::Array[TerminalShop::Models::ProductAPI],
61
- profile: TerminalShop::Models::ProfileAPI,
62
- region: TerminalShop::Models::region,
63
- subscriptions: ::Array[TerminalShop::Models::SubscriptionAPI],
64
- tokens: ::Array[TerminalShop::Models::TokenAPI]
65
- ) -> void
66
- | (
67
- ?TerminalShop::Models::ViewInitResponse::data
68
- | TerminalShop::BaseModel data
69
- ) -> void
50
+ def initialize: (
51
+ addresses: ::Array[TerminalShop::Models::AddressAPI],
52
+ apps: ::Array[TerminalShop::Models::AppAPI],
53
+ cards: ::Array[TerminalShop::Models::CardAPI],
54
+ cart: TerminalShop::Models::CartAPI,
55
+ orders: ::Array[TerminalShop::Models::OrderAPI],
56
+ products: ::Array[TerminalShop::Models::ProductAPI],
57
+ profile: TerminalShop::Models::ProfileAPI,
58
+ region: TerminalShop::Models::region,
59
+ subscriptions: ::Array[TerminalShop::Models::SubscriptionAPI],
60
+ tokens: ::Array[TerminalShop::Models::TokenAPI]
61
+ ) -> void
70
62
 
71
63
  def to_hash: -> TerminalShop::Models::ViewInitResponse::data
72
64
  end
@@ -9,6 +9,8 @@ module TerminalShop
9
9
  deadline: Float
10
10
  }
11
11
 
12
+ KEEP_ALIVE_TIMEOUT: 30
13
+
12
14
  def self.connect: (URI::Generic url) -> top
13
15
 
14
16
  def self.calibrate_socket_timeout: (top conn, Float deadline) -> void
@@ -30,6 +32,6 @@ module TerminalShop
30
32
  TerminalShop::PooledNetRequester::request request
31
33
  ) -> [Integer, top, Enumerable[String]]
32
34
 
33
- def initialize: (size: Integer) -> void
35
+ def initialize: (?size: Integer) -> void
34
36
  end
35
37
  end
@@ -19,7 +19,7 @@ module TerminalShop
19
19
  idempotency_key: String?,
20
20
  extra_query: ::Hash[String, (::Array[String] | String)?]?,
21
21
  extra_headers: ::Hash[String, String?]?,
22
- extra_body: ::Hash[Symbol, top]?,
22
+ extra_body: top?,
23
23
  max_retries: Integer?,
24
24
  timeout: Float?
25
25
  }
@@ -33,7 +33,7 @@ module TerminalShop
33
33
 
34
34
  attr_accessor extra_headers: ::Hash[String, String?]?
35
35
 
36
- attr_accessor extra_body: ::Hash[Symbol, top]?
36
+ attr_accessor extra_body: top?
37
37
 
38
38
  attr_accessor max_retries: Integer?
39
39
 
@@ -1,50 +1,31 @@
1
1
  module TerminalShop
2
2
  module Resources
3
3
  class Address
4
- def create:
5
- (
6
- TerminalShop::Models::AddressCreateParams | ::Hash[Symbol, top] params
7
- ) -> TerminalShop::Models::AddressCreateResponse
8
- | (
9
- city: String,
10
- country: String,
11
- name: String,
12
- street1: String,
13
- zip: String,
14
- phone: String,
15
- province: String,
16
- street2: String,
17
- request_options: TerminalShop::request_opts
18
- ) -> TerminalShop::Models::AddressCreateResponse
4
+ def create: (
5
+ city: String,
6
+ country: String,
7
+ name: String,
8
+ street1: String,
9
+ zip: String,
10
+ ?phone: String,
11
+ ?province: String,
12
+ ?street2: String,
13
+ ?request_options: TerminalShop::request_opts
14
+ ) -> TerminalShop::Models::AddressCreateResponse
19
15
 
20
- def list:
21
- (
22
- ?TerminalShop::Models::AddressListParams | ::Hash[Symbol, top] params
23
- ) -> TerminalShop::Models::AddressListResponse
24
- | (
25
- request_options: TerminalShop::request_opts
26
- ) -> TerminalShop::Models::AddressListResponse
16
+ def list: (
17
+ ?request_options: TerminalShop::request_opts
18
+ ) -> TerminalShop::Models::AddressListResponse
27
19
 
28
- def delete:
29
- (
30
- String id,
31
- ?TerminalShop::Models::AddressDeleteParams
32
- | ::Hash[Symbol, top] params
33
- ) -> TerminalShop::Models::AddressDeleteResponse
34
- | (
35
- String id,
36
- request_options: TerminalShop::request_opts
37
- ) -> TerminalShop::Models::AddressDeleteResponse
20
+ def delete: (
21
+ String id,
22
+ ?request_options: TerminalShop::request_opts
23
+ ) -> TerminalShop::Models::AddressDeleteResponse
38
24
 
39
- def get:
40
- (
41
- String id,
42
- ?TerminalShop::Models::AddressGetParams | ::Hash[Symbol, top] params
43
- ) -> TerminalShop::Models::AddressGetResponse
44
- | (
45
- String id,
46
- request_options: TerminalShop::request_opts
47
- ) -> TerminalShop::Models::AddressGetResponse
25
+ def get: (
26
+ String id,
27
+ ?request_options: TerminalShop::request_opts
28
+ ) -> TerminalShop::Models::AddressGetResponse
48
29
 
49
30
  def initialize: (client: TerminalShop::Client) -> void
50
31
  end
@@ -1,43 +1,25 @@
1
1
  module TerminalShop
2
2
  module Resources
3
3
  class App
4
- def create:
5
- (
6
- TerminalShop::Models::AppCreateParams | ::Hash[Symbol, top] params
7
- ) -> TerminalShop::Models::AppCreateResponse
8
- | (
9
- name: String,
10
- redirect_uri: String,
11
- request_options: TerminalShop::request_opts
12
- ) -> TerminalShop::Models::AppCreateResponse
4
+ def create: (
5
+ name: String,
6
+ redirect_uri: String,
7
+ ?request_options: TerminalShop::request_opts
8
+ ) -> TerminalShop::Models::AppCreateResponse
13
9
 
14
- def list:
15
- (
16
- ?TerminalShop::Models::AppListParams | ::Hash[Symbol, top] params
17
- ) -> TerminalShop::Models::AppListResponse
18
- | (
19
- request_options: TerminalShop::request_opts
20
- ) -> TerminalShop::Models::AppListResponse
10
+ def list: (
11
+ ?request_options: TerminalShop::request_opts
12
+ ) -> TerminalShop::Models::AppListResponse
21
13
 
22
- def delete:
23
- (
24
- String id,
25
- ?TerminalShop::Models::AppDeleteParams | ::Hash[Symbol, top] params
26
- ) -> TerminalShop::Models::AppDeleteResponse
27
- | (
28
- String id,
29
- request_options: TerminalShop::request_opts
30
- ) -> TerminalShop::Models::AppDeleteResponse
14
+ def delete: (
15
+ String id,
16
+ ?request_options: TerminalShop::request_opts
17
+ ) -> TerminalShop::Models::AppDeleteResponse
31
18
 
32
- def get:
33
- (
34
- String id,
35
- ?TerminalShop::Models::AppGetParams | ::Hash[Symbol, top] params
36
- ) -> TerminalShop::Models::AppGetResponse
37
- | (
38
- String id,
39
- request_options: TerminalShop::request_opts
40
- ) -> TerminalShop::Models::AppGetResponse
19
+ def get: (
20
+ String id,
21
+ ?request_options: TerminalShop::request_opts
22
+ ) -> TerminalShop::Models::AppGetResponse
41
23
 
42
24
  def initialize: (client: TerminalShop::Client) -> void
43
25
  end
@@ -1,50 +1,28 @@
1
1
  module TerminalShop
2
2
  module Resources
3
3
  class Card
4
- def create:
5
- (
6
- TerminalShop::Models::CardCreateParams | ::Hash[Symbol, top] params
7
- ) -> TerminalShop::Models::CardCreateResponse
8
- | (
9
- token: String,
10
- request_options: TerminalShop::request_opts
11
- ) -> TerminalShop::Models::CardCreateResponse
4
+ def create: (
5
+ token: String,
6
+ ?request_options: TerminalShop::request_opts
7
+ ) -> TerminalShop::Models::CardCreateResponse
12
8
 
13
- def list:
14
- (
15
- ?TerminalShop::Models::CardListParams | ::Hash[Symbol, top] params
16
- ) -> TerminalShop::Models::CardListResponse
17
- | (
18
- request_options: TerminalShop::request_opts
19
- ) -> TerminalShop::Models::CardListResponse
9
+ def list: (
10
+ ?request_options: TerminalShop::request_opts
11
+ ) -> TerminalShop::Models::CardListResponse
20
12
 
21
- def delete:
22
- (
23
- String id,
24
- ?TerminalShop::Models::CardDeleteParams | ::Hash[Symbol, top] params
25
- ) -> TerminalShop::Models::CardDeleteResponse
26
- | (
27
- String id,
28
- request_options: TerminalShop::request_opts
29
- ) -> TerminalShop::Models::CardDeleteResponse
13
+ def delete: (
14
+ String id,
15
+ ?request_options: TerminalShop::request_opts
16
+ ) -> TerminalShop::Models::CardDeleteResponse
30
17
 
31
- def collect:
32
- (
33
- ?TerminalShop::Models::CardCollectParams | ::Hash[Symbol, top] params
34
- ) -> TerminalShop::Models::CardCollectResponse
35
- | (
36
- request_options: TerminalShop::request_opts
37
- ) -> TerminalShop::Models::CardCollectResponse
18
+ def collect: (
19
+ ?request_options: TerminalShop::request_opts
20
+ ) -> TerminalShop::Models::CardCollectResponse
38
21
 
39
- def get:
40
- (
41
- String id,
42
- ?TerminalShop::Models::CardGetParams | ::Hash[Symbol, top] params
43
- ) -> TerminalShop::Models::CardGetResponse
44
- | (
45
- String id,
46
- request_options: TerminalShop::request_opts
47
- ) -> TerminalShop::Models::CardGetResponse
22
+ def get: (
23
+ String id,
24
+ ?request_options: TerminalShop::request_opts
25
+ ) -> TerminalShop::Models::CardGetResponse
48
26
 
49
27
  def initialize: (client: TerminalShop::Client) -> void
50
28
  end
@@ -1,58 +1,33 @@
1
1
  module TerminalShop
2
2
  module Resources
3
3
  class Cart
4
- def clear:
5
- (
6
- ?TerminalShop::Models::CartClearParams | ::Hash[Symbol, top] params
7
- ) -> TerminalShop::Models::CartClearResponse
8
- | (
9
- request_options: TerminalShop::request_opts
10
- ) -> TerminalShop::Models::CartClearResponse
4
+ def clear: (
5
+ ?request_options: TerminalShop::request_opts
6
+ ) -> TerminalShop::Models::CartClearResponse
11
7
 
12
- def convert:
13
- (
14
- ?TerminalShop::Models::CartConvertParams | ::Hash[Symbol, top] params
15
- ) -> TerminalShop::Models::CartConvertResponse
16
- | (
17
- request_options: TerminalShop::request_opts
18
- ) -> TerminalShop::Models::CartConvertResponse
8
+ def convert: (
9
+ ?request_options: TerminalShop::request_opts
10
+ ) -> TerminalShop::Models::CartConvertResponse
19
11
 
20
- def get:
21
- (
22
- ?TerminalShop::Models::CartGetParams | ::Hash[Symbol, top] params
23
- ) -> TerminalShop::Models::CartGetResponse
24
- | (
25
- request_options: TerminalShop::request_opts
26
- ) -> TerminalShop::Models::CartGetResponse
12
+ def get: (
13
+ ?request_options: TerminalShop::request_opts
14
+ ) -> TerminalShop::Models::CartGetResponse
27
15
 
28
- def set_address:
29
- (
30
- TerminalShop::Models::CartSetAddressParams
31
- | ::Hash[Symbol, top] params
32
- ) -> TerminalShop::Models::CartSetAddressResponse
33
- | (
34
- address_id: String,
35
- request_options: TerminalShop::request_opts
36
- ) -> TerminalShop::Models::CartSetAddressResponse
16
+ def set_address: (
17
+ address_id: String,
18
+ ?request_options: TerminalShop::request_opts
19
+ ) -> TerminalShop::Models::CartSetAddressResponse
37
20
 
38
- def set_card:
39
- (
40
- TerminalShop::Models::CartSetCardParams | ::Hash[Symbol, top] params
41
- ) -> TerminalShop::Models::CartSetCardResponse
42
- | (
43
- card_id: String,
44
- request_options: TerminalShop::request_opts
45
- ) -> TerminalShop::Models::CartSetCardResponse
21
+ def set_card: (
22
+ card_id: String,
23
+ ?request_options: TerminalShop::request_opts
24
+ ) -> TerminalShop::Models::CartSetCardResponse
46
25
 
47
- def set_item:
48
- (
49
- TerminalShop::Models::CartSetItemParams | ::Hash[Symbol, top] params
50
- ) -> TerminalShop::Models::CartSetItemResponse
51
- | (
52
- product_variant_id: String,
53
- quantity: Integer,
54
- request_options: TerminalShop::request_opts
55
- ) -> TerminalShop::Models::CartSetItemResponse
26
+ def set_item: (
27
+ product_variant_id: String,
28
+ quantity: Integer,
29
+ ?request_options: TerminalShop::request_opts
30
+ ) -> TerminalShop::Models::CartSetItemResponse
56
31
 
57
32
  def initialize: (client: TerminalShop::Client) -> void
58
33
  end
@@ -1,14 +1,10 @@
1
1
  module TerminalShop
2
2
  module Resources
3
3
  class Email
4
- def create:
5
- (
6
- TerminalShop::Models::EmailCreateParams | ::Hash[Symbol, top] params
7
- ) -> TerminalShop::Models::EmailCreateResponse
8
- | (
9
- email: String,
10
- request_options: TerminalShop::request_opts
11
- ) -> TerminalShop::Models::EmailCreateResponse
4
+ def create: (
5
+ email: String,
6
+ ?request_options: TerminalShop::request_opts
7
+ ) -> TerminalShop::Models::EmailCreateResponse
12
8
 
13
9
  def initialize: (client: TerminalShop::Client) -> void
14
10
  end
@@ -1,34 +1,21 @@
1
1
  module TerminalShop
2
2
  module Resources
3
3
  class Order
4
- def create:
5
- (
6
- TerminalShop::Models::OrderCreateParams | ::Hash[Symbol, top] params
7
- ) -> TerminalShop::Models::OrderCreateResponse
8
- | (
9
- address_id: String,
10
- card_id: String,
11
- variants: ::Hash[Symbol, Integer],
12
- request_options: TerminalShop::request_opts
13
- ) -> TerminalShop::Models::OrderCreateResponse
4
+ def create: (
5
+ address_id: String,
6
+ card_id: String,
7
+ variants: ::Hash[Symbol, Integer],
8
+ ?request_options: TerminalShop::request_opts
9
+ ) -> TerminalShop::Models::OrderCreateResponse
14
10
 
15
- def list:
16
- (
17
- ?TerminalShop::Models::OrderListParams | ::Hash[Symbol, top] params
18
- ) -> TerminalShop::Models::OrderListResponse
19
- | (
20
- request_options: TerminalShop::request_opts
21
- ) -> TerminalShop::Models::OrderListResponse
11
+ def list: (
12
+ ?request_options: TerminalShop::request_opts
13
+ ) -> TerminalShop::Models::OrderListResponse
22
14
 
23
- def get:
24
- (
25
- String id,
26
- ?TerminalShop::Models::OrderGetParams | ::Hash[Symbol, top] params
27
- ) -> TerminalShop::Models::OrderGetResponse
28
- | (
29
- String id,
30
- request_options: TerminalShop::request_opts
31
- ) -> TerminalShop::Models::OrderGetResponse
15
+ def get: (
16
+ String id,
17
+ ?request_options: TerminalShop::request_opts
18
+ ) -> TerminalShop::Models::OrderGetResponse
32
19
 
33
20
  def initialize: (client: TerminalShop::Client) -> void
34
21
  end
@@ -1,23 +1,14 @@
1
1
  module TerminalShop
2
2
  module Resources
3
3
  class Product
4
- def list:
5
- (
6
- ?TerminalShop::Models::ProductListParams | ::Hash[Symbol, top] params
7
- ) -> TerminalShop::Models::ProductListResponse
8
- | (
9
- request_options: TerminalShop::request_opts
10
- ) -> TerminalShop::Models::ProductListResponse
4
+ def list: (
5
+ ?request_options: TerminalShop::request_opts
6
+ ) -> TerminalShop::Models::ProductListResponse
11
7
 
12
- def get:
13
- (
14
- String id,
15
- ?TerminalShop::Models::ProductGetParams | ::Hash[Symbol, top] params
16
- ) -> TerminalShop::Models::ProductGetResponse
17
- | (
18
- String id,
19
- request_options: TerminalShop::request_opts
20
- ) -> TerminalShop::Models::ProductGetResponse
8
+ def get: (
9
+ String id,
10
+ ?request_options: TerminalShop::request_opts
11
+ ) -> TerminalShop::Models::ProductGetResponse
21
12
 
22
13
  def initialize: (client: TerminalShop::Client) -> void
23
14
  end
@@ -1,23 +1,15 @@
1
1
  module TerminalShop
2
2
  module Resources
3
3
  class Profile
4
- def update:
5
- (
6
- TerminalShop::Models::ProfileUpdateParams | ::Hash[Symbol, top] params
7
- ) -> TerminalShop::Models::ProfileUpdateResponse
8
- | (
9
- email: String,
10
- name: String,
11
- request_options: TerminalShop::request_opts
12
- ) -> TerminalShop::Models::ProfileUpdateResponse
4
+ def update: (
5
+ email: String,
6
+ name: String,
7
+ ?request_options: TerminalShop::request_opts
8
+ ) -> TerminalShop::Models::ProfileUpdateResponse
13
9
 
14
- def me:
15
- (
16
- ?TerminalShop::Models::ProfileMeParams | ::Hash[Symbol, top] params
17
- ) -> TerminalShop::Models::ProfileMeResponse
18
- | (
19
- request_options: TerminalShop::request_opts
20
- ) -> TerminalShop::Models::ProfileMeResponse
10
+ def me: (
11
+ ?request_options: TerminalShop::request_opts
12
+ ) -> TerminalShop::Models::ProfileMeResponse
21
13
 
22
14
  def initialize: (client: TerminalShop::Client) -> void
23
15
  end
@@ -1,52 +1,30 @@
1
1
  module TerminalShop
2
2
  module Resources
3
3
  class Subscription
4
- def create:
5
- (
6
- TerminalShop::Models::SubscriptionCreateParams
7
- | ::Hash[Symbol, top] params
8
- ) -> TerminalShop::Models::SubscriptionCreateResponse
9
- | (
10
- id: String,
11
- address_id: String,
12
- card_id: String,
13
- product_variant_id: String,
14
- quantity: Integer,
15
- next_: String,
16
- schedule: TerminalShop::Models::SubscriptionAPI::schedule,
17
- request_options: TerminalShop::request_opts
18
- ) -> TerminalShop::Models::SubscriptionCreateResponse
4
+ def create: (
5
+ id: String,
6
+ address_id: String,
7
+ card_id: String,
8
+ product_variant_id: String,
9
+ quantity: Integer,
10
+ ?next_: String,
11
+ ?schedule: TerminalShop::Models::SubscriptionAPI::schedule,
12
+ ?request_options: TerminalShop::request_opts
13
+ ) -> TerminalShop::Models::SubscriptionCreateResponse
19
14
 
20
- def list:
21
- (
22
- ?TerminalShop::Models::SubscriptionListParams
23
- | ::Hash[Symbol, top] params
24
- ) -> TerminalShop::Models::SubscriptionListResponse
25
- | (
26
- request_options: TerminalShop::request_opts
27
- ) -> TerminalShop::Models::SubscriptionListResponse
15
+ def list: (
16
+ ?request_options: TerminalShop::request_opts
17
+ ) -> TerminalShop::Models::SubscriptionListResponse
28
18
 
29
- def delete:
30
- (
31
- String id,
32
- ?TerminalShop::Models::SubscriptionDeleteParams
33
- | ::Hash[Symbol, top] params
34
- ) -> TerminalShop::Models::SubscriptionDeleteResponse
35
- | (
36
- String id,
37
- request_options: TerminalShop::request_opts
38
- ) -> TerminalShop::Models::SubscriptionDeleteResponse
19
+ def delete: (
20
+ String id,
21
+ ?request_options: TerminalShop::request_opts
22
+ ) -> TerminalShop::Models::SubscriptionDeleteResponse
39
23
 
40
- def get:
41
- (
42
- String id,
43
- ?TerminalShop::Models::SubscriptionGetParams
44
- | ::Hash[Symbol, top] params
45
- ) -> TerminalShop::Models::SubscriptionGetResponse
46
- | (
47
- String id,
48
- request_options: TerminalShop::request_opts
49
- ) -> TerminalShop::Models::SubscriptionGetResponse
24
+ def get: (
25
+ String id,
26
+ ?request_options: TerminalShop::request_opts
27
+ ) -> TerminalShop::Models::SubscriptionGetResponse
50
28
 
51
29
  def initialize: (client: TerminalShop::Client) -> void
52
30
  end