terminal-shop 0.1.0.pre.alpha.10 → 0.1.0.pre.alpha.12
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/terminal-shop/base_client.rb +165 -137
- data/lib/terminal-shop/base_model.rb +2 -4
- data/lib/terminal-shop/base_page.rb +2 -6
- data/lib/terminal-shop/client.rb +0 -1
- data/lib/terminal-shop/models/address.rb +0 -11
- data/lib/terminal-shop/models/address_create_response.rb +0 -6
- data/lib/terminal-shop/models/address_delete_response.rb +0 -6
- data/lib/terminal-shop/models/address_list_response.rb +0 -6
- data/lib/terminal-shop/models/app.rb +8 -9
- data/lib/terminal-shop/models/app_create_response.rb +0 -13
- data/lib/terminal-shop/models/app_delete_response.rb +0 -6
- data/lib/terminal-shop/models/app_get_response.rb +0 -6
- data/lib/terminal-shop/models/app_list_response.rb +0 -6
- data/lib/terminal-shop/models/card.rb +0 -16
- data/lib/terminal-shop/models/card_collect_response.rb +0 -12
- data/lib/terminal-shop/models/card_create_response.rb +0 -6
- data/lib/terminal-shop/models/card_delete_response.rb +0 -6
- data/lib/terminal-shop/models/card_list_response.rb +0 -6
- data/lib/terminal-shop/models/cart.rb +0 -33
- data/lib/terminal-shop/models/cart_convert_response.rb +0 -6
- data/lib/terminal-shop/models/cart_get_response.rb +0 -6
- data/lib/terminal-shop/models/cart_set_address_response.rb +0 -6
- data/lib/terminal-shop/models/cart_set_card_response.rb +0 -6
- data/lib/terminal-shop/models/cart_set_item_response.rb +0 -6
- data/lib/terminal-shop/models/email_create_response.rb +0 -6
- data/lib/terminal-shop/models/order.rb +0 -46
- data/lib/terminal-shop/models/order_get_response.rb +0 -6
- data/lib/terminal-shop/models/order_list_response.rb +0 -6
- data/lib/terminal-shop/models/product.rb +0 -11
- data/lib/terminal-shop/models/product_list_response.rb +0 -6
- data/lib/terminal-shop/models/product_variant.rb +0 -8
- data/lib/terminal-shop/models/profile.rb +0 -16
- data/lib/terminal-shop/models/profile_me_response.rb +0 -6
- data/lib/terminal-shop/models/profile_update_response.rb +0 -6
- data/lib/terminal-shop/models/subscription.rb +1 -66
- data/lib/terminal-shop/models/subscription_create_response.rb +0 -6
- data/lib/terminal-shop/models/subscription_delete_response.rb +0 -6
- data/lib/terminal-shop/models/subscription_list_response.rb +0 -6
- data/lib/terminal-shop/models/token.rb +6 -37
- data/lib/terminal-shop/models/token_create_response.rb +0 -13
- data/lib/terminal-shop/models/token_delete_response.rb +0 -6
- data/lib/terminal-shop/models/token_get_response.rb +0 -6
- data/lib/terminal-shop/models/token_list_response.rb +0 -6
- data/lib/terminal-shop/models/view_init_response.rb +0 -17
- data/lib/terminal-shop/pooled_net_requester.rb +127 -82
- data/lib/terminal-shop/resources/app.rb +2 -0
- data/lib/terminal-shop/resources/subscription.rb +0 -2
- data/lib/terminal-shop/util.rb +64 -7
- data/lib/terminal-shop/version.rb +1 -1
- data/lib/terminal-shop.rb +56 -55
- data/manifest.yaml +1 -0
- data/rbi/lib/terminal-shop/base_client.rbi +41 -27
- data/rbi/lib/terminal-shop/base_model.rbi +63 -99
- data/rbi/lib/terminal-shop/base_page.rbi +4 -3
- data/rbi/lib/terminal-shop/client.rbi +2 -1
- data/rbi/lib/terminal-shop/errors.rbi +10 -5
- data/rbi/lib/terminal-shop/models/address.rbi +16 -14
- data/rbi/lib/terminal-shop/models/address_create_params.rbi +16 -14
- data/rbi/lib/terminal-shop/models/address_list_response.rbi +1 -3
- data/rbi/lib/terminal-shop/models/app.rbi +11 -3
- data/rbi/lib/terminal-shop/models/app_create_response.rbi +2 -1
- data/rbi/lib/terminal-shop/models/app_list_response.rbi +1 -3
- data/rbi/lib/terminal-shop/models/card.rbi +5 -17
- data/rbi/lib/terminal-shop/models/card_collect_response.rbi +2 -1
- data/rbi/lib/terminal-shop/models/card_create_params.rbi +6 -2
- data/rbi/lib/terminal-shop/models/card_list_response.rbi +1 -3
- data/rbi/lib/terminal-shop/models/cart.rbi +16 -15
- data/rbi/lib/terminal-shop/models/cart_set_address_params.rbi +2 -1
- data/rbi/lib/terminal-shop/models/cart_set_card_params.rbi +6 -2
- data/rbi/lib/terminal-shop/models/cart_set_item_params.rbi +8 -8
- data/rbi/lib/terminal-shop/models/email_create_params.rbi +6 -2
- data/rbi/lib/terminal-shop/models/order.rbi +43 -44
- data/rbi/lib/terminal-shop/models/order_list_response.rbi +1 -3
- data/rbi/lib/terminal-shop/models/product.rbi +17 -14
- data/rbi/lib/terminal-shop/models/product_list_response.rbi +1 -3
- data/rbi/lib/terminal-shop/models/profile.rbi +13 -13
- data/rbi/lib/terminal-shop/models/profile_update_params.rbi +6 -8
- data/rbi/lib/terminal-shop/models/subscription.rbi +29 -59
- data/rbi/lib/terminal-shop/models/subscription_list_response.rbi +2 -1
- data/rbi/lib/terminal-shop/models/token.rbi +7 -25
- data/rbi/lib/terminal-shop/models/token_create_response.rbi +2 -1
- data/rbi/lib/terminal-shop/models/token_list_response.rbi +1 -3
- data/rbi/lib/terminal-shop/models/view_init_response.rbi +26 -34
- data/rbi/lib/terminal-shop/pooled_net_requester.rbi +38 -0
- data/rbi/lib/terminal-shop/request_options.rbi +6 -24
- data/rbi/lib/terminal-shop/resources/address.rbi +6 -11
- data/rbi/lib/terminal-shop/resources/app.rbi +10 -13
- data/rbi/lib/terminal-shop/resources/card.rbi +8 -20
- data/rbi/lib/terminal-shop/resources/cart.rbi +10 -21
- data/rbi/lib/terminal-shop/resources/email.rbi +2 -1
- data/rbi/lib/terminal-shop/resources/order.rbi +4 -10
- data/rbi/lib/terminal-shop/resources/product.rbi +2 -9
- data/rbi/lib/terminal-shop/resources/profile.rbi +4 -10
- data/rbi/lib/terminal-shop/resources/subscription.rbi +6 -13
- data/rbi/lib/terminal-shop/resources/token.rbi +8 -20
- data/rbi/lib/terminal-shop/resources/view.rbi +2 -9
- data/rbi/lib/terminal-shop/util.rbi +33 -23
- data/rbi/lib/terminal-shop/version.rbi +1 -1
- data/sig/terminal-shop/base_client.rbs +28 -27
- data/sig/terminal-shop/base_model.rbs +0 -2
- data/sig/terminal-shop/base_page.rbs +1 -1
- data/sig/terminal-shop/models/app.rbs +5 -2
- data/sig/terminal-shop/models/subscription.rbs +0 -16
- data/sig/terminal-shop/models/token.rbs +3 -22
- data/sig/terminal-shop/pooled_net_requester.rbs +32 -0
- data/sig/terminal-shop/resources/app.rbs +1 -0
- data/sig/terminal-shop/resources/subscription.rbs +0 -1
- data/sig/terminal-shop/util.rbs +11 -1
- data/sig/terminal-shop/version.rbs +1 -1
- metadata +5 -3
@@ -19,39 +19,21 @@ module TerminalShop
|
|
19
19
|
def token=(_)
|
20
20
|
end
|
21
21
|
|
22
|
-
sig { returns(
|
23
|
-
def
|
22
|
+
sig { returns(String) }
|
23
|
+
def created
|
24
24
|
end
|
25
25
|
|
26
|
-
sig { params(_:
|
27
|
-
def
|
26
|
+
sig { params(_: String).returns(String) }
|
27
|
+
def created=(_)
|
28
28
|
end
|
29
29
|
|
30
|
-
sig { params(id: String, token: String,
|
31
|
-
def initialize(id:, token:,
|
30
|
+
sig { params(id: String, token: String, created: String).void }
|
31
|
+
def initialize(id:, token:, created:)
|
32
32
|
end
|
33
33
|
|
34
|
-
sig { override.returns({id: String, token: String,
|
34
|
+
sig { override.returns({id: String, token: String, created: String}) }
|
35
35
|
def to_hash
|
36
36
|
end
|
37
|
-
|
38
|
-
class Time < TerminalShop::BaseModel
|
39
|
-
sig { returns(String) }
|
40
|
-
def created
|
41
|
-
end
|
42
|
-
|
43
|
-
sig { params(_: String).returns(String) }
|
44
|
-
def created=(_)
|
45
|
-
end
|
46
|
-
|
47
|
-
sig { params(created: String).void }
|
48
|
-
def initialize(created:)
|
49
|
-
end
|
50
|
-
|
51
|
-
sig { override.returns({created: String}) }
|
52
|
-
def to_hash
|
53
|
-
end
|
54
|
-
end
|
55
37
|
end
|
56
38
|
end
|
57
39
|
end
|
@@ -8,7 +8,8 @@ module TerminalShop
|
|
8
8
|
end
|
9
9
|
|
10
10
|
sig do
|
11
|
-
params(_: TerminalShop::Models::TokenCreateResponse::Data)
|
11
|
+
params(_: TerminalShop::Models::TokenCreateResponse::Data)
|
12
|
+
.returns(TerminalShop::Models::TokenCreateResponse::Data)
|
12
13
|
end
|
13
14
|
def data=(_)
|
14
15
|
end
|
@@ -7,9 +7,7 @@ module TerminalShop
|
|
7
7
|
def data
|
8
8
|
end
|
9
9
|
|
10
|
-
sig
|
11
|
-
params(_: T::Array[TerminalShop::Models::TokenAPI]).returns(T::Array[TerminalShop::Models::TokenAPI])
|
12
|
-
end
|
10
|
+
sig { params(_: T::Array[TerminalShop::Models::TokenAPI]).returns(T::Array[TerminalShop::Models::TokenAPI]) }
|
13
11
|
def data=(_)
|
14
12
|
end
|
15
13
|
|
@@ -8,7 +8,8 @@ module TerminalShop
|
|
8
8
|
end
|
9
9
|
|
10
10
|
sig do
|
11
|
-
params(_: TerminalShop::Models::ViewInitResponse::Data)
|
11
|
+
params(_: TerminalShop::Models::ViewInitResponse::Data)
|
12
|
+
.returns(TerminalShop::Models::ViewInitResponse::Data)
|
12
13
|
end
|
13
14
|
def data=(_)
|
14
15
|
end
|
@@ -26,9 +27,7 @@ module TerminalShop
|
|
26
27
|
def addresses
|
27
28
|
end
|
28
29
|
|
29
|
-
sig
|
30
|
-
params(_: T::Array[TerminalShop::Models::AddressAPI]).returns(T::Array[TerminalShop::Models::AddressAPI])
|
31
|
-
end
|
30
|
+
sig { params(_: T::Array[TerminalShop::Models::AddressAPI]).returns(T::Array[TerminalShop::Models::AddressAPI]) }
|
32
31
|
def addresses=(_)
|
33
32
|
end
|
34
33
|
|
@@ -36,9 +35,7 @@ module TerminalShop
|
|
36
35
|
def apps
|
37
36
|
end
|
38
37
|
|
39
|
-
sig
|
40
|
-
params(_: T::Array[TerminalShop::Models::AppAPI]).returns(T::Array[TerminalShop::Models::AppAPI])
|
41
|
-
end
|
38
|
+
sig { params(_: T::Array[TerminalShop::Models::AppAPI]).returns(T::Array[TerminalShop::Models::AppAPI]) }
|
42
39
|
def apps=(_)
|
43
40
|
end
|
44
41
|
|
@@ -46,9 +43,7 @@ module TerminalShop
|
|
46
43
|
def cards
|
47
44
|
end
|
48
45
|
|
49
|
-
sig
|
50
|
-
params(_: T::Array[TerminalShop::Models::CardAPI]).returns(T::Array[TerminalShop::Models::CardAPI])
|
51
|
-
end
|
46
|
+
sig { params(_: T::Array[TerminalShop::Models::CardAPI]).returns(T::Array[TerminalShop::Models::CardAPI]) }
|
52
47
|
def cards=(_)
|
53
48
|
end
|
54
49
|
|
@@ -64,9 +59,7 @@ module TerminalShop
|
|
64
59
|
def orders
|
65
60
|
end
|
66
61
|
|
67
|
-
sig
|
68
|
-
params(_: T::Array[TerminalShop::Models::OrderAPI]).returns(T::Array[TerminalShop::Models::OrderAPI])
|
69
|
-
end
|
62
|
+
sig { params(_: T::Array[TerminalShop::Models::OrderAPI]).returns(T::Array[TerminalShop::Models::OrderAPI]) }
|
70
63
|
def orders=(_)
|
71
64
|
end
|
72
65
|
|
@@ -74,9 +67,7 @@ module TerminalShop
|
|
74
67
|
def products
|
75
68
|
end
|
76
69
|
|
77
|
-
sig
|
78
|
-
params(_: T::Array[TerminalShop::Models::ProductAPI]).returns(T::Array[TerminalShop::Models::ProductAPI])
|
79
|
-
end
|
70
|
+
sig { params(_: T::Array[TerminalShop::Models::ProductAPI]).returns(T::Array[TerminalShop::Models::ProductAPI]) }
|
80
71
|
def products=(_)
|
81
72
|
end
|
82
73
|
|
@@ -93,7 +84,8 @@ module TerminalShop
|
|
93
84
|
end
|
94
85
|
|
95
86
|
sig do
|
96
|
-
params(_: T::Array[TerminalShop::Models::SubscriptionAPI])
|
87
|
+
params(_: T::Array[TerminalShop::Models::SubscriptionAPI])
|
88
|
+
.returns(T::Array[TerminalShop::Models::SubscriptionAPI])
|
97
89
|
end
|
98
90
|
def subscriptions=(_)
|
99
91
|
end
|
@@ -102,9 +94,7 @@ module TerminalShop
|
|
102
94
|
def tokens
|
103
95
|
end
|
104
96
|
|
105
|
-
sig
|
106
|
-
params(_: T::Array[TerminalShop::Models::TokenAPI]).returns(T::Array[TerminalShop::Models::TokenAPI])
|
107
|
-
end
|
97
|
+
sig { params(_: T::Array[TerminalShop::Models::TokenAPI]).returns(T::Array[TerminalShop::Models::TokenAPI]) }
|
108
98
|
def tokens=(_)
|
109
99
|
end
|
110
100
|
|
@@ -119,7 +109,8 @@ module TerminalShop
|
|
119
109
|
profile: TerminalShop::Models::ProfileAPI,
|
120
110
|
subscriptions: T::Array[TerminalShop::Models::SubscriptionAPI],
|
121
111
|
tokens: T::Array[TerminalShop::Models::TokenAPI]
|
122
|
-
)
|
112
|
+
)
|
113
|
+
.void
|
123
114
|
end
|
124
115
|
def initialize(
|
125
116
|
addresses:,
|
@@ -135,19 +126,20 @@ module TerminalShop
|
|
135
126
|
end
|
136
127
|
|
137
128
|
sig do
|
138
|
-
override
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
129
|
+
override
|
130
|
+
.returns(
|
131
|
+
{
|
132
|
+
addresses: T::Array[TerminalShop::Models::AddressAPI],
|
133
|
+
apps: T::Array[TerminalShop::Models::AppAPI],
|
134
|
+
cards: T::Array[TerminalShop::Models::CardAPI],
|
135
|
+
cart: TerminalShop::Models::CartAPI,
|
136
|
+
orders: T::Array[TerminalShop::Models::OrderAPI],
|
137
|
+
products: T::Array[TerminalShop::Models::ProductAPI],
|
138
|
+
profile: TerminalShop::Models::ProfileAPI,
|
139
|
+
subscriptions: T::Array[TerminalShop::Models::SubscriptionAPI],
|
140
|
+
tokens: T::Array[TerminalShop::Models::TokenAPI]
|
141
|
+
}
|
142
|
+
)
|
151
143
|
end
|
152
144
|
def to_hash
|
153
145
|
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
class PooledNetRequester
|
5
|
+
RequestShape = T.type_alias do
|
6
|
+
{method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float}
|
7
|
+
end
|
8
|
+
|
9
|
+
sig { params(url: URI::Generic).returns(Net::HTTP) }
|
10
|
+
def self.connect(url)
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { params(conn: Net::HTTP, deadline: Float).void }
|
14
|
+
def self.calibrate_socket_timeout(conn, deadline)
|
15
|
+
end
|
16
|
+
|
17
|
+
sig { params(request: TerminalShop::PooledNetRequester::RequestShape).returns(Net::HTTPGenericRequest) }
|
18
|
+
def self.build_request(request)
|
19
|
+
end
|
20
|
+
|
21
|
+
sig do
|
22
|
+
params(url: URI::Generic, blk: T.proc.params(arg0: Net::HTTP, arg1: Enumerator::Yielder).void).void
|
23
|
+
end
|
24
|
+
private def with_pool(url, &blk)
|
25
|
+
end
|
26
|
+
|
27
|
+
sig do
|
28
|
+
params(request: TerminalShop::PooledNetRequester::RequestShape)
|
29
|
+
.returns([Net::HTTPResponse, T::Enumerable[String]])
|
30
|
+
end
|
31
|
+
def execute(request)
|
32
|
+
end
|
33
|
+
|
34
|
+
sig { void }
|
35
|
+
def initialize
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -9,13 +9,8 @@ module TerminalShop
|
|
9
9
|
end
|
10
10
|
|
11
11
|
sig do
|
12
|
-
params(
|
13
|
-
|
14
|
-
TerminalShop::RequestOptions,
|
15
|
-
T::Hash[Symbol,
|
16
|
-
T.anything]
|
17
|
-
)
|
18
|
-
).returns(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
12
|
+
params(_: T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
13
|
+
.returns(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
19
14
|
end
|
20
15
|
def request_options=(_)
|
21
16
|
end
|
@@ -45,17 +40,8 @@ module TerminalShop
|
|
45
40
|
end
|
46
41
|
|
47
42
|
sig do
|
48
|
-
params(
|
49
|
-
|
50
|
-
T::Hash[String,
|
51
|
-
T.nilable(
|
52
|
-
T.any(
|
53
|
-
T::Array[String],
|
54
|
-
String
|
55
|
-
)
|
56
|
-
)]
|
57
|
-
)
|
58
|
-
).returns(T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]))
|
43
|
+
params(_: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]))
|
44
|
+
.returns(T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]))
|
59
45
|
end
|
60
46
|
def extra_query=(_)
|
61
47
|
end
|
@@ -65,12 +51,8 @@ module TerminalShop
|
|
65
51
|
end
|
66
52
|
|
67
53
|
sig do
|
68
|
-
params(
|
69
|
-
|
70
|
-
T::Hash[String,
|
71
|
-
T.nilable(String)]
|
72
|
-
)
|
73
|
-
).returns(T.nilable(T::Hash[String, T.nilable(String)]))
|
54
|
+
params(_: T.nilable(T::Hash[String, T.nilable(String)]))
|
55
|
+
.returns(T.nilable(T::Hash[String, T.nilable(String)]))
|
74
56
|
end
|
75
57
|
def extra_headers=(_)
|
76
58
|
end
|
@@ -14,7 +14,8 @@ module TerminalShop
|
|
14
14
|
province: String,
|
15
15
|
street2: String,
|
16
16
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
17
|
-
)
|
17
|
+
)
|
18
|
+
.returns(TerminalShop::Models::AddressCreateResponse)
|
18
19
|
end
|
19
20
|
def create(
|
20
21
|
city:,
|
@@ -30,15 +31,8 @@ module TerminalShop
|
|
30
31
|
end
|
31
32
|
|
32
33
|
sig do
|
33
|
-
params(
|
34
|
-
|
35
|
-
T.any(
|
36
|
-
TerminalShop::RequestOptions,
|
37
|
-
T::Hash[Symbol,
|
38
|
-
T.anything]
|
39
|
-
)
|
40
|
-
)
|
41
|
-
).returns(TerminalShop::Models::AddressListResponse)
|
34
|
+
params(request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])))
|
35
|
+
.returns(TerminalShop::Models::AddressListResponse)
|
42
36
|
end
|
43
37
|
def list(request_options: {})
|
44
38
|
end
|
@@ -47,7 +41,8 @@ module TerminalShop
|
|
47
41
|
params(
|
48
42
|
id: String,
|
49
43
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
50
|
-
)
|
44
|
+
)
|
45
|
+
.returns(TerminalShop::Models::AddressDeleteResponse)
|
51
46
|
end
|
52
47
|
def delete(id, request_options: {})
|
53
48
|
end
|
@@ -8,22 +8,17 @@ module TerminalShop
|
|
8
8
|
id: String,
|
9
9
|
name: String,
|
10
10
|
redirect_uri: String,
|
11
|
+
secret: String,
|
11
12
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
12
|
-
)
|
13
|
+
)
|
14
|
+
.returns(TerminalShop::Models::AppCreateResponse)
|
13
15
|
end
|
14
|
-
def create(id:, name:, redirect_uri:, request_options: {})
|
16
|
+
def create(id:, name:, redirect_uri:, secret:, request_options: {})
|
15
17
|
end
|
16
18
|
|
17
19
|
sig do
|
18
|
-
params(
|
19
|
-
|
20
|
-
T.any(
|
21
|
-
TerminalShop::RequestOptions,
|
22
|
-
T::Hash[Symbol,
|
23
|
-
T.anything]
|
24
|
-
)
|
25
|
-
)
|
26
|
-
).returns(TerminalShop::Models::AppListResponse)
|
20
|
+
params(request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])))
|
21
|
+
.returns(TerminalShop::Models::AppListResponse)
|
27
22
|
end
|
28
23
|
def list(request_options: {})
|
29
24
|
end
|
@@ -32,7 +27,8 @@ module TerminalShop
|
|
32
27
|
params(
|
33
28
|
id: String,
|
34
29
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
35
|
-
)
|
30
|
+
)
|
31
|
+
.returns(TerminalShop::Models::AppDeleteResponse)
|
36
32
|
end
|
37
33
|
def delete(id, request_options: {})
|
38
34
|
end
|
@@ -41,7 +37,8 @@ module TerminalShop
|
|
41
37
|
params(
|
42
38
|
id: String,
|
43
39
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
44
|
-
)
|
40
|
+
)
|
41
|
+
.returns(TerminalShop::Models::AppGetResponse)
|
45
42
|
end
|
46
43
|
def get(id, request_options: {})
|
47
44
|
end
|
@@ -7,21 +7,15 @@ module TerminalShop
|
|
7
7
|
params(
|
8
8
|
token: String,
|
9
9
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
10
|
-
)
|
10
|
+
)
|
11
|
+
.returns(TerminalShop::Models::CardCreateResponse)
|
11
12
|
end
|
12
13
|
def create(token:, request_options: {})
|
13
14
|
end
|
14
15
|
|
15
16
|
sig do
|
16
|
-
params(
|
17
|
-
|
18
|
-
T.any(
|
19
|
-
TerminalShop::RequestOptions,
|
20
|
-
T::Hash[Symbol,
|
21
|
-
T.anything]
|
22
|
-
)
|
23
|
-
)
|
24
|
-
).returns(TerminalShop::Models::CardListResponse)
|
17
|
+
params(request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])))
|
18
|
+
.returns(TerminalShop::Models::CardListResponse)
|
25
19
|
end
|
26
20
|
def list(request_options: {})
|
27
21
|
end
|
@@ -30,21 +24,15 @@ module TerminalShop
|
|
30
24
|
params(
|
31
25
|
id: String,
|
32
26
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
33
|
-
)
|
27
|
+
)
|
28
|
+
.returns(TerminalShop::Models::CardDeleteResponse)
|
34
29
|
end
|
35
30
|
def delete(id, request_options: {})
|
36
31
|
end
|
37
32
|
|
38
33
|
sig do
|
39
|
-
params(
|
40
|
-
|
41
|
-
T.any(
|
42
|
-
TerminalShop::RequestOptions,
|
43
|
-
T::Hash[Symbol,
|
44
|
-
T.anything]
|
45
|
-
)
|
46
|
-
)
|
47
|
-
).returns(TerminalShop::Models::CardCollectResponse)
|
34
|
+
params(request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])))
|
35
|
+
.returns(TerminalShop::Models::CardCollectResponse)
|
48
36
|
end
|
49
37
|
def collect(request_options: {})
|
50
38
|
end
|
@@ -4,29 +4,15 @@ module TerminalShop
|
|
4
4
|
module Resources
|
5
5
|
class Cart
|
6
6
|
sig do
|
7
|
-
params(
|
8
|
-
|
9
|
-
T.any(
|
10
|
-
TerminalShop::RequestOptions,
|
11
|
-
T::Hash[Symbol,
|
12
|
-
T.anything]
|
13
|
-
)
|
14
|
-
)
|
15
|
-
).returns(TerminalShop::Models::CartConvertResponse)
|
7
|
+
params(request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])))
|
8
|
+
.returns(TerminalShop::Models::CartConvertResponse)
|
16
9
|
end
|
17
10
|
def convert(request_options: {})
|
18
11
|
end
|
19
12
|
|
20
13
|
sig do
|
21
|
-
params(
|
22
|
-
|
23
|
-
T.any(
|
24
|
-
TerminalShop::RequestOptions,
|
25
|
-
T::Hash[Symbol,
|
26
|
-
T.anything]
|
27
|
-
)
|
28
|
-
)
|
29
|
-
).returns(TerminalShop::Models::CartGetResponse)
|
14
|
+
params(request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])))
|
15
|
+
.returns(TerminalShop::Models::CartGetResponse)
|
30
16
|
end
|
31
17
|
def get(request_options: {})
|
32
18
|
end
|
@@ -35,7 +21,8 @@ module TerminalShop
|
|
35
21
|
params(
|
36
22
|
address_id: String,
|
37
23
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
38
|
-
)
|
24
|
+
)
|
25
|
+
.returns(TerminalShop::Models::CartSetAddressResponse)
|
39
26
|
end
|
40
27
|
def set_address(address_id:, request_options: {})
|
41
28
|
end
|
@@ -44,7 +31,8 @@ module TerminalShop
|
|
44
31
|
params(
|
45
32
|
card_id: String,
|
46
33
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
47
|
-
)
|
34
|
+
)
|
35
|
+
.returns(TerminalShop::Models::CartSetCardResponse)
|
48
36
|
end
|
49
37
|
def set_card(card_id:, request_options: {})
|
50
38
|
end
|
@@ -54,7 +42,8 @@ module TerminalShop
|
|
54
42
|
product_variant_id: String,
|
55
43
|
quantity: Integer,
|
56
44
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
57
|
-
)
|
45
|
+
)
|
46
|
+
.returns(TerminalShop::Models::CartSetItemResponse)
|
58
47
|
end
|
59
48
|
def set_item(product_variant_id:, quantity:, request_options: {})
|
60
49
|
end
|
@@ -7,7 +7,8 @@ module TerminalShop
|
|
7
7
|
params(
|
8
8
|
email: String,
|
9
9
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
10
|
-
)
|
10
|
+
)
|
11
|
+
.returns(TerminalShop::Models::EmailCreateResponse)
|
11
12
|
end
|
12
13
|
def create(email:, request_options: {})
|
13
14
|
end
|
@@ -4,15 +4,8 @@ module TerminalShop
|
|
4
4
|
module Resources
|
5
5
|
class Order
|
6
6
|
sig do
|
7
|
-
params(
|
8
|
-
|
9
|
-
T.any(
|
10
|
-
TerminalShop::RequestOptions,
|
11
|
-
T::Hash[Symbol,
|
12
|
-
T.anything]
|
13
|
-
)
|
14
|
-
)
|
15
|
-
).returns(TerminalShop::Models::OrderListResponse)
|
7
|
+
params(request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])))
|
8
|
+
.returns(TerminalShop::Models::OrderListResponse)
|
16
9
|
end
|
17
10
|
def list(request_options: {})
|
18
11
|
end
|
@@ -21,7 +14,8 @@ module TerminalShop
|
|
21
14
|
params(
|
22
15
|
id: String,
|
23
16
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
24
|
-
)
|
17
|
+
)
|
18
|
+
.returns(TerminalShop::Models::OrderGetResponse)
|
25
19
|
end
|
26
20
|
def get(id, request_options: {})
|
27
21
|
end
|
@@ -4,15 +4,8 @@ module TerminalShop
|
|
4
4
|
module Resources
|
5
5
|
class Product
|
6
6
|
sig do
|
7
|
-
params(
|
8
|
-
|
9
|
-
T.any(
|
10
|
-
TerminalShop::RequestOptions,
|
11
|
-
T::Hash[Symbol,
|
12
|
-
T.anything]
|
13
|
-
)
|
14
|
-
)
|
15
|
-
).returns(TerminalShop::Models::ProductListResponse)
|
7
|
+
params(request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])))
|
8
|
+
.returns(TerminalShop::Models::ProductListResponse)
|
16
9
|
end
|
17
10
|
def list(request_options: {})
|
18
11
|
end
|
@@ -8,21 +8,15 @@ module TerminalShop
|
|
8
8
|
email: T.nilable(String),
|
9
9
|
name: T.nilable(String),
|
10
10
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
11
|
-
)
|
11
|
+
)
|
12
|
+
.returns(TerminalShop::Models::ProfileUpdateResponse)
|
12
13
|
end
|
13
14
|
def update(email: nil, name: nil, request_options: {})
|
14
15
|
end
|
15
16
|
|
16
17
|
sig do
|
17
|
-
params(
|
18
|
-
|
19
|
-
T.any(
|
20
|
-
TerminalShop::RequestOptions,
|
21
|
-
T::Hash[Symbol,
|
22
|
-
T.anything]
|
23
|
-
)
|
24
|
-
)
|
25
|
-
).returns(TerminalShop::Models::ProfileMeResponse)
|
18
|
+
params(request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])))
|
19
|
+
.returns(TerminalShop::Models::ProfileMeResponse)
|
26
20
|
end
|
27
21
|
def me(request_options: {})
|
28
22
|
end
|
@@ -8,7 +8,6 @@ module TerminalShop
|
|
8
8
|
id: String,
|
9
9
|
address_id: String,
|
10
10
|
card_id: String,
|
11
|
-
frequency: Symbol,
|
12
11
|
product_variant_id: String,
|
13
12
|
quantity: Integer,
|
14
13
|
next_: String,
|
@@ -17,13 +16,13 @@ module TerminalShop
|
|
17
16
|
TerminalShop::Models::SubscriptionAPI::Schedule::Weekly
|
18
17
|
),
|
19
18
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
20
|
-
)
|
19
|
+
)
|
20
|
+
.returns(TerminalShop::Models::SubscriptionCreateResponse)
|
21
21
|
end
|
22
22
|
def create(
|
23
23
|
id:,
|
24
24
|
address_id:,
|
25
25
|
card_id:,
|
26
|
-
frequency:,
|
27
26
|
product_variant_id:,
|
28
27
|
quantity:,
|
29
28
|
next_: nil,
|
@@ -33,15 +32,8 @@ module TerminalShop
|
|
33
32
|
end
|
34
33
|
|
35
34
|
sig do
|
36
|
-
params(
|
37
|
-
|
38
|
-
T.any(
|
39
|
-
TerminalShop::RequestOptions,
|
40
|
-
T::Hash[Symbol,
|
41
|
-
T.anything]
|
42
|
-
)
|
43
|
-
)
|
44
|
-
).returns(TerminalShop::Models::SubscriptionListResponse)
|
35
|
+
params(request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])))
|
36
|
+
.returns(TerminalShop::Models::SubscriptionListResponse)
|
45
37
|
end
|
46
38
|
def list(request_options: {})
|
47
39
|
end
|
@@ -50,7 +42,8 @@ module TerminalShop
|
|
50
42
|
params(
|
51
43
|
id: String,
|
52
44
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
53
|
-
)
|
45
|
+
)
|
46
|
+
.returns(TerminalShop::Models::SubscriptionDeleteResponse)
|
54
47
|
end
|
55
48
|
def delete(id, request_options: {})
|
56
49
|
end
|
@@ -4,29 +4,15 @@ module TerminalShop
|
|
4
4
|
module Resources
|
5
5
|
class Token
|
6
6
|
sig do
|
7
|
-
params(
|
8
|
-
|
9
|
-
T.any(
|
10
|
-
TerminalShop::RequestOptions,
|
11
|
-
T::Hash[Symbol,
|
12
|
-
T.anything]
|
13
|
-
)
|
14
|
-
)
|
15
|
-
).returns(TerminalShop::Models::TokenCreateResponse)
|
7
|
+
params(request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])))
|
8
|
+
.returns(TerminalShop::Models::TokenCreateResponse)
|
16
9
|
end
|
17
10
|
def create(request_options: {})
|
18
11
|
end
|
19
12
|
|
20
13
|
sig do
|
21
|
-
params(
|
22
|
-
|
23
|
-
T.any(
|
24
|
-
TerminalShop::RequestOptions,
|
25
|
-
T::Hash[Symbol,
|
26
|
-
T.anything]
|
27
|
-
)
|
28
|
-
)
|
29
|
-
).returns(TerminalShop::Models::TokenListResponse)
|
14
|
+
params(request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])))
|
15
|
+
.returns(TerminalShop::Models::TokenListResponse)
|
30
16
|
end
|
31
17
|
def list(request_options: {})
|
32
18
|
end
|
@@ -35,7 +21,8 @@ module TerminalShop
|
|
35
21
|
params(
|
36
22
|
id: String,
|
37
23
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
38
|
-
)
|
24
|
+
)
|
25
|
+
.returns(TerminalShop::Models::TokenDeleteResponse)
|
39
26
|
end
|
40
27
|
def delete(id, request_options: {})
|
41
28
|
end
|
@@ -44,7 +31,8 @@ module TerminalShop
|
|
44
31
|
params(
|
45
32
|
id: String,
|
46
33
|
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
47
|
-
)
|
34
|
+
)
|
35
|
+
.returns(TerminalShop::Models::TokenGetResponse)
|
48
36
|
end
|
49
37
|
def get(id, request_options: {})
|
50
38
|
end
|