terminal-shop 3.8.0 → 3.8.2

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 (124) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -0
  3. data/README.md +1 -1
  4. data/lib/terminal_shop/internal/util.rb +10 -2
  5. data/lib/terminal_shop/models/address.rb +2 -2
  6. data/lib/terminal_shop/models/address_get_response.rb +2 -2
  7. data/lib/terminal_shop/models/address_list_response.rb +2 -2
  8. data/lib/terminal_shop/models/app.rb +2 -2
  9. data/lib/terminal_shop/models/app_get_response.rb +2 -2
  10. data/lib/terminal_shop/models/app_list_response.rb +2 -2
  11. data/lib/terminal_shop/models/card.rb +5 -5
  12. data/lib/terminal_shop/models/card_get_response.rb +2 -2
  13. data/lib/terminal_shop/models/card_list_response.rb +2 -2
  14. data/lib/terminal_shop/models/cart.rb +9 -9
  15. data/lib/terminal_shop/models/cart_convert_response.rb +2 -2
  16. data/lib/terminal_shop/models/cart_get_response.rb +2 -2
  17. data/lib/terminal_shop/models/cart_set_item_response.rb +2 -2
  18. data/lib/terminal_shop/models/order.rb +17 -17
  19. data/lib/terminal_shop/models/order_get_response.rb +2 -2
  20. data/lib/terminal_shop/models/order_list_response.rb +2 -2
  21. data/lib/terminal_shop/models/product.rb +10 -10
  22. data/lib/terminal_shop/models/product_get_response.rb +2 -2
  23. data/lib/terminal_shop/models/product_list_response.rb +2 -2
  24. data/lib/terminal_shop/models/product_variant.rb +4 -4
  25. data/lib/terminal_shop/models/profile.rb +4 -4
  26. data/lib/terminal_shop/models/profile_me_response.rb +2 -2
  27. data/lib/terminal_shop/models/profile_update_response.rb +2 -2
  28. data/lib/terminal_shop/models/subscription.rb +5 -5
  29. data/lib/terminal_shop/models/subscription_get_response.rb +2 -2
  30. data/lib/terminal_shop/models/subscription_list_response.rb +2 -2
  31. data/lib/terminal_shop/models/subscription_update_params.rb +3 -3
  32. data/lib/terminal_shop/models/subscription_update_response.rb +2 -2
  33. data/lib/terminal_shop/models/token.rb +2 -2
  34. data/lib/terminal_shop/models/token_get_response.rb +2 -2
  35. data/lib/terminal_shop/models/token_list_response.rb +2 -2
  36. data/lib/terminal_shop/models/view_init_response.rb +20 -20
  37. data/lib/terminal_shop/resources/subscription.rb +2 -2
  38. data/lib/terminal_shop/version.rb +1 -1
  39. data/lib/terminal_shop.rb +3 -1
  40. data/sig/terminal_shop/models/address.rbs +13 -0
  41. data/sig/terminal_shop/models/address_create_params.rbs +12 -0
  42. data/sig/terminal_shop/models/address_create_response.rbs +2 -0
  43. data/sig/terminal_shop/models/address_delete_params.rbs +2 -0
  44. data/sig/terminal_shop/models/address_delete_response.rbs +2 -0
  45. data/sig/terminal_shop/models/address_get_params.rbs +2 -0
  46. data/sig/terminal_shop/models/address_get_response.rbs +2 -0
  47. data/sig/terminal_shop/models/address_list_params.rbs +2 -0
  48. data/sig/terminal_shop/models/address_list_response.rbs +2 -0
  49. data/sig/terminal_shop/models/app.rbs +7 -0
  50. data/sig/terminal_shop/models/app_create_params.rbs +6 -0
  51. data/sig/terminal_shop/models/app_create_response.rbs +4 -0
  52. data/sig/terminal_shop/models/app_delete_params.rbs +2 -0
  53. data/sig/terminal_shop/models/app_delete_response.rbs +2 -0
  54. data/sig/terminal_shop/models/app_get_params.rbs +2 -0
  55. data/sig/terminal_shop/models/app_get_response.rbs +2 -0
  56. data/sig/terminal_shop/models/app_list_params.rbs +2 -0
  57. data/sig/terminal_shop/models/app_list_response.rbs +2 -0
  58. data/sig/terminal_shop/models/card.rbs +10 -0
  59. data/sig/terminal_shop/models/card_collect_params.rbs +2 -0
  60. data/sig/terminal_shop/models/card_collect_response.rbs +4 -0
  61. data/sig/terminal_shop/models/card_create_params.rbs +5 -0
  62. data/sig/terminal_shop/models/card_create_response.rbs +2 -0
  63. data/sig/terminal_shop/models/card_delete_params.rbs +2 -0
  64. data/sig/terminal_shop/models/card_delete_response.rbs +2 -0
  65. data/sig/terminal_shop/models/card_get_params.rbs +2 -0
  66. data/sig/terminal_shop/models/card_get_response.rbs +2 -0
  67. data/sig/terminal_shop/models/card_list_params.rbs +2 -0
  68. data/sig/terminal_shop/models/card_list_response.rbs +2 -0
  69. data/sig/terminal_shop/models/cart.rbs +20 -0
  70. data/sig/terminal_shop/models/cart_clear_params.rbs +2 -0
  71. data/sig/terminal_shop/models/cart_clear_response.rbs +2 -0
  72. data/sig/terminal_shop/models/cart_convert_params.rbs +2 -0
  73. data/sig/terminal_shop/models/cart_convert_response.rbs +2 -0
  74. data/sig/terminal_shop/models/cart_get_params.rbs +2 -0
  75. data/sig/terminal_shop/models/cart_get_response.rbs +2 -0
  76. data/sig/terminal_shop/models/cart_set_address_params.rbs +5 -0
  77. data/sig/terminal_shop/models/cart_set_address_response.rbs +2 -0
  78. data/sig/terminal_shop/models/cart_set_card_params.rbs +5 -0
  79. data/sig/terminal_shop/models/cart_set_card_response.rbs +2 -0
  80. data/sig/terminal_shop/models/cart_set_item_params.rbs +6 -0
  81. data/sig/terminal_shop/models/cart_set_item_response.rbs +2 -0
  82. data/sig/terminal_shop/models/email_create_params.rbs +5 -0
  83. data/sig/terminal_shop/models/email_create_response.rbs +2 -0
  84. data/sig/terminal_shop/models/order.rbs +46 -6
  85. data/sig/terminal_shop/models/order_create_params.rbs +7 -0
  86. data/sig/terminal_shop/models/order_create_response.rbs +2 -0
  87. data/sig/terminal_shop/models/order_get_params.rbs +2 -0
  88. data/sig/terminal_shop/models/order_get_response.rbs +2 -0
  89. data/sig/terminal_shop/models/order_list_params.rbs +2 -0
  90. data/sig/terminal_shop/models/order_list_response.rbs +2 -0
  91. data/sig/terminal_shop/models/product.rbs +25 -6
  92. data/sig/terminal_shop/models/product_get_params.rbs +2 -0
  93. data/sig/terminal_shop/models/product_get_response.rbs +2 -0
  94. data/sig/terminal_shop/models/product_list_params.rbs +2 -0
  95. data/sig/terminal_shop/models/product_list_response.rbs +2 -0
  96. data/sig/terminal_shop/models/product_variant.rbs +15 -0
  97. data/sig/terminal_shop/models/profile.rbs +10 -0
  98. data/sig/terminal_shop/models/profile_me_params.rbs +2 -0
  99. data/sig/terminal_shop/models/profile_me_response.rbs +2 -0
  100. data/sig/terminal_shop/models/profile_update_params.rbs +6 -0
  101. data/sig/terminal_shop/models/profile_update_response.rbs +2 -0
  102. data/sig/terminal_shop/models/subscription.rbs +22 -6
  103. data/sig/terminal_shop/models/subscription_create_params.rbs +2 -0
  104. data/sig/terminal_shop/models/subscription_create_response.rbs +2 -0
  105. data/sig/terminal_shop/models/subscription_delete_params.rbs +2 -0
  106. data/sig/terminal_shop/models/subscription_delete_response.rbs +2 -0
  107. data/sig/terminal_shop/models/subscription_get_params.rbs +2 -0
  108. data/sig/terminal_shop/models/subscription_get_response.rbs +2 -0
  109. data/sig/terminal_shop/models/subscription_list_params.rbs +2 -0
  110. data/sig/terminal_shop/models/subscription_list_response.rbs +2 -0
  111. data/sig/terminal_shop/models/subscription_update_params.rbs +11 -0
  112. data/sig/terminal_shop/models/subscription_update_response.rbs +2 -0
  113. data/sig/terminal_shop/models/token.rbs +2 -0
  114. data/sig/terminal_shop/models/token_create_params.rbs +2 -0
  115. data/sig/terminal_shop/models/token_create_response.rbs +4 -0
  116. data/sig/terminal_shop/models/token_delete_params.rbs +2 -0
  117. data/sig/terminal_shop/models/token_delete_response.rbs +2 -0
  118. data/sig/terminal_shop/models/token_get_params.rbs +2 -0
  119. data/sig/terminal_shop/models/token_get_response.rbs +2 -0
  120. data/sig/terminal_shop/models/token_list_params.rbs +2 -0
  121. data/sig/terminal_shop/models/token_list_response.rbs +2 -0
  122. data/sig/terminal_shop/models/view_init_params.rbs +2 -0
  123. data/sig/terminal_shop/models/view_init_response.rbs +15 -0
  124. metadata +2 -2
@@ -10,7 +10,7 @@ module TerminalShop
10
10
  product_variant_id: String,
11
11
  quantity: Integer,
12
12
  next_: String,
13
- schedule: TerminalShop::SubscriptionAPI::schedule
13
+ schedule: TerminalShop::Models::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::SubscriptionAPI::schedule?
35
+ attr_reader schedule: TerminalShop::Models::SubscriptionAPI::schedule?
36
36
 
37
37
  def schedule=: (
38
- TerminalShop::SubscriptionAPI::schedule
39
- ) -> TerminalShop::SubscriptionAPI::schedule
38
+ TerminalShop::Models::SubscriptionAPI::schedule
39
+ ) -> TerminalShop::Models::SubscriptionAPI::schedule
40
40
 
41
41
  def initialize: (
42
42
  id: String,
@@ -47,9 +47,21 @@ module TerminalShop
47
47
  product_variant_id: String,
48
48
  quantity: Integer,
49
49
  ?next_: String,
50
- ?schedule: TerminalShop::SubscriptionAPI::schedule
50
+ ?schedule: TerminalShop::Models::SubscriptionAPI::schedule
51
51
  ) -> void
52
52
 
53
+ def to_hash: -> {
54
+ id: String,
55
+ address_id: String,
56
+ card_id: String,
57
+ created: String,
58
+ price: Integer,
59
+ product_variant_id: String,
60
+ quantity: Integer,
61
+ next_: String,
62
+ schedule: TerminalShop::Models::SubscriptionAPI::schedule
63
+ }
64
+
53
65
  type schedule =
54
66
  TerminalShop::SubscriptionAPI::Schedule::Fixed
55
67
  | TerminalShop::SubscriptionAPI::Schedule::Weekly
@@ -63,6 +75,8 @@ module TerminalShop
63
75
  attr_accessor type: :fixed
64
76
 
65
77
  def initialize: (?type: :fixed) -> void
78
+
79
+ def to_hash: -> { type: :fixed }
66
80
  end
67
81
 
68
82
  type weekly = { interval: Integer, type: :weekly }
@@ -73,9 +87,11 @@ module TerminalShop
73
87
  attr_accessor type: :weekly
74
88
 
75
89
  def initialize: (interval: Integer, ?type: :weekly) -> void
90
+
91
+ def to_hash: -> { interval: Integer, type: :weekly }
76
92
  end
77
93
 
78
- def self?.variants: -> ::Array[TerminalShop::SubscriptionAPI::schedule]
94
+ def self?.variants: -> ::Array[TerminalShop::Models::SubscriptionAPI::schedule]
79
95
  end
80
96
  end
81
97
  end
@@ -8,6 +8,8 @@ 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: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: :ok
7
7
 
8
8
  def initialize: (?data: :ok) -> void
9
+
10
+ def to_hash: -> { data: :ok }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ 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: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: :ok
7
7
 
8
8
  def initialize: (?data: :ok) -> void
9
+
10
+ def to_hash: -> { data: :ok }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ 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: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: TerminalShop::SubscriptionAPI
7
7
 
8
8
  def initialize: (data: TerminalShop::SubscriptionAPI) -> void
9
+
10
+ def to_hash: -> { data: TerminalShop::SubscriptionAPI }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ 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: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -7,6 +7,8 @@ module TerminalShop
7
7
  attr_accessor data: ::Array[TerminalShop::SubscriptionAPI]
8
8
 
9
9
  def initialize: (data: ::Array[TerminalShop::SubscriptionAPI]) -> void
10
+
11
+ def to_hash: -> { data: ::Array[TerminalShop::SubscriptionAPI] }
10
12
  end
11
13
  end
12
14
  end
@@ -33,6 +33,13 @@ module TerminalShop
33
33
  ?request_options: TerminalShop::request_opts
34
34
  ) -> void
35
35
 
36
+ def to_hash: -> {
37
+ address_id: String,
38
+ card_id: String,
39
+ schedule: TerminalShop::Models::SubscriptionUpdateParams::schedule,
40
+ request_options: TerminalShop::RequestOptions
41
+ }
42
+
36
43
  type schedule =
37
44
  TerminalShop::SubscriptionUpdateParams::Schedule::Fixed
38
45
  | TerminalShop::SubscriptionUpdateParams::Schedule::Weekly
@@ -46,6 +53,8 @@ module TerminalShop
46
53
  attr_accessor type: :fixed
47
54
 
48
55
  def initialize: (?type: :fixed) -> void
56
+
57
+ def to_hash: -> { type: :fixed }
49
58
  end
50
59
 
51
60
  type weekly = { interval: Integer, type: :weekly }
@@ -56,6 +65,8 @@ module TerminalShop
56
65
  attr_accessor type: :weekly
57
66
 
58
67
  def initialize: (interval: Integer, ?type: :weekly) -> void
68
+
69
+ def to_hash: -> { interval: Integer, type: :weekly }
59
70
  end
60
71
 
61
72
  def self?.variants: -> ::Array[TerminalShop::Models::SubscriptionUpdateParams::schedule]
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: TerminalShop::SubscriptionAPI
7
7
 
8
8
  def initialize: (data: TerminalShop::SubscriptionAPI) -> void
9
+
10
+ def to_hash: -> { data: TerminalShop::SubscriptionAPI }
9
11
  end
10
12
  end
11
13
  end
@@ -10,6 +10,8 @@ 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: -> { id: String, token: String, created: String }
13
15
  end
14
16
  end
15
17
  end
@@ -8,6 +8,8 @@ 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: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -10,6 +10,8 @@ module TerminalShop
10
10
  data: TerminalShop::Models::TokenCreateResponse::Data
11
11
  ) -> void
12
12
 
13
+ def to_hash: -> { data: TerminalShop::Models::TokenCreateResponse::Data }
14
+
13
15
  type data = { id: String, token: String }
14
16
 
15
17
  class Data < TerminalShop::Internal::Type::BaseModel
@@ -18,6 +20,8 @@ module TerminalShop
18
20
  attr_accessor token: String
19
21
 
20
22
  def initialize: (id: String, token: String) -> void
23
+
24
+ def to_hash: -> { id: String, token: String }
21
25
  end
22
26
  end
23
27
  end
@@ -8,6 +8,8 @@ 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: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: :ok
7
7
 
8
8
  def initialize: (?data: :ok) -> void
9
+
10
+ def to_hash: -> { data: :ok }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ 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: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: TerminalShop::TokenAPI
7
7
 
8
8
  def initialize: (data: TerminalShop::TokenAPI) -> void
9
+
10
+ def to_hash: -> { data: TerminalShop::TokenAPI }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ 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: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: ::Array[TerminalShop::TokenAPI]
7
7
 
8
8
  def initialize: (data: ::Array[TerminalShop::TokenAPI]) -> void
9
+
10
+ def to_hash: -> { data: ::Array[TerminalShop::TokenAPI] }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ 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: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -10,6 +10,8 @@ module TerminalShop
10
10
  data: TerminalShop::Models::ViewInitResponse::Data
11
11
  ) -> void
12
12
 
13
+ def to_hash: -> { data: TerminalShop::Models::ViewInitResponse::Data }
14
+
13
15
  type data =
14
16
  {
15
17
  addresses: ::Array[TerminalShop::AddressAPI],
@@ -57,6 +59,19 @@ module TerminalShop
57
59
  subscriptions: ::Array[TerminalShop::SubscriptionAPI],
58
60
  tokens: ::Array[TerminalShop::TokenAPI]
59
61
  ) -> void
62
+
63
+ def to_hash: -> {
64
+ addresses: ::Array[TerminalShop::AddressAPI],
65
+ apps: ::Array[TerminalShop::AppAPI],
66
+ cards: ::Array[TerminalShop::CardAPI],
67
+ cart: TerminalShop::CartAPI,
68
+ orders: ::Array[TerminalShop::OrderAPI],
69
+ products: ::Array[TerminalShop::ProductAPI],
70
+ profile: TerminalShop::ProfileAPI,
71
+ region: TerminalShop::Models::region,
72
+ subscriptions: ::Array[TerminalShop::SubscriptionAPI],
73
+ tokens: ::Array[TerminalShop::TokenAPI]
74
+ }
60
75
  end
61
76
  end
62
77
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal-shop
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.0
4
+ version: 3.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terminal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-22 00:00:00.000000000 Z
11
+ date: 2025-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool