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.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/lib/terminal-shop/base_client.rb +11 -10
- data/lib/terminal-shop/base_model.rb +257 -244
- data/lib/terminal-shop/base_page.rb +19 -20
- data/lib/terminal-shop/client.rb +1 -0
- data/lib/terminal-shop/models/product.rb +7 -3
- data/lib/terminal-shop/models/region.rb +7 -3
- data/lib/terminal-shop/models/subscription.rb +5 -7
- data/lib/terminal-shop/pooled_net_requester.rb +12 -1
- data/lib/terminal-shop/request_options.rb +1 -1
- data/lib/terminal-shop/util.rb +16 -7
- data/lib/terminal-shop/version.rb +1 -1
- data/lib/terminal-shop.rb +15 -0
- data/rbi/lib/terminal-shop/base_client.rbi +40 -41
- data/rbi/lib/terminal-shop/base_model.rbi +139 -116
- data/rbi/lib/terminal-shop/base_page.rbi +0 -2
- data/rbi/lib/terminal-shop/client.rbi +18 -30
- data/rbi/lib/terminal-shop/errors.rbi +7 -42
- data/rbi/lib/terminal-shop/models/address.rbi +15 -51
- data/rbi/lib/terminal-shop/models/address_create_params.rbi +15 -46
- data/rbi/lib/terminal-shop/models/address_create_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/address_delete_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/address_delete_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/address_get_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/address_get_response.rbi +7 -6
- data/rbi/lib/terminal-shop/models/address_list_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/address_list_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/app.rbi +4 -24
- data/rbi/lib/terminal-shop/models/app_create_params.rbi +3 -13
- data/rbi/lib/terminal-shop/models/app_create_response.rbi +8 -20
- data/rbi/lib/terminal-shop/models/app_delete_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/app_delete_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/app_get_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/app_get_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/app_list_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/app_list_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/card.rbi +14 -36
- data/rbi/lib/terminal-shop/models/card_collect_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/card_collect_response.rbi +7 -14
- data/rbi/lib/terminal-shop/models/card_create_params.rbi +2 -7
- data/rbi/lib/terminal-shop/models/card_create_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/card_delete_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/card_delete_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/card_get_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/card_get_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/card_list_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/card_list_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/cart.rbi +34 -88
- data/rbi/lib/terminal-shop/models/cart_clear_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/cart_clear_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/cart_convert_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/cart_convert_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/cart_get_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/cart_get_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/cart_set_address_params.rbi +2 -7
- data/rbi/lib/terminal-shop/models/cart_set_address_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/cart_set_card_params.rbi +2 -7
- data/rbi/lib/terminal-shop/models/cart_set_card_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/cart_set_item_params.rbi +3 -13
- data/rbi/lib/terminal-shop/models/cart_set_item_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/email_create_params.rbi +2 -7
- data/rbi/lib/terminal-shop/models/email_create_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/order.rbi +52 -139
- data/rbi/lib/terminal-shop/models/order_create_params.rbi +4 -19
- data/rbi/lib/terminal-shop/models/order_create_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/order_get_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/order_get_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/order_list_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/order_list_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/product.rbi +43 -77
- data/rbi/lib/terminal-shop/models/product_get_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/product_get_response.rbi +7 -6
- data/rbi/lib/terminal-shop/models/product_list_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/product_list_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/product_variant.rbi +3 -18
- data/rbi/lib/terminal-shop/models/profile.rbi +12 -36
- data/rbi/lib/terminal-shop/models/profile_me_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/profile_me_response.rbi +7 -6
- data/rbi/lib/terminal-shop/models/profile_update_params.rbi +3 -13
- data/rbi/lib/terminal-shop/models/profile_update_response.rbi +7 -6
- data/rbi/lib/terminal-shop/models/region.rbi +10 -5
- data/rbi/lib/terminal-shop/models/subscription.rbi +28 -75
- data/rbi/lib/terminal-shop/models/subscription_create_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/subscription_create_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/subscription_delete_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/subscription_delete_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/subscription_get_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/subscription_get_response.rbi +7 -6
- data/rbi/lib/terminal-shop/models/subscription_list_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/subscription_list_response.rbi +3 -8
- data/rbi/lib/terminal-shop/models/token.rbi +3 -18
- data/rbi/lib/terminal-shop/models/token_create_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/token_create_response.rbi +8 -20
- data/rbi/lib/terminal-shop/models/token_delete_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/token_delete_response.rbi +1 -6
- data/rbi/lib/terminal-shop/models/token_get_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/token_get_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/token_list_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/token_list_response.rbi +4 -6
- data/rbi/lib/terminal-shop/models/view_init_params.rbi +1 -1
- data/rbi/lib/terminal-shop/models/view_init_response.rbi +32 -81
- data/rbi/lib/terminal-shop/pooled_net_requester.rbi +14 -3
- data/rbi/lib/terminal-shop/request_options.rbi +11 -55
- data/rbi/lib/terminal-shop/resources/address.rbi +4 -4
- data/rbi/lib/terminal-shop/resources/app.rbi +4 -4
- data/rbi/lib/terminal-shop/resources/card.rbi +5 -5
- data/rbi/lib/terminal-shop/resources/cart.rbi +6 -6
- data/rbi/lib/terminal-shop/resources/email.rbi +1 -1
- data/rbi/lib/terminal-shop/resources/order.rbi +3 -3
- data/rbi/lib/terminal-shop/resources/product.rbi +2 -2
- data/rbi/lib/terminal-shop/resources/profile.rbi +2 -2
- data/rbi/lib/terminal-shop/resources/subscription.rbi +5 -4
- data/rbi/lib/terminal-shop/resources/token.rbi +4 -4
- data/rbi/lib/terminal-shop/resources/view.rbi +1 -1
- data/rbi/lib/terminal-shop/util.rbi +24 -13
- data/rbi/lib/terminal-shop/version.rbi +1 -1
- data/sig/terminal-shop/base_client.rbs +14 -14
- data/sig/terminal-shop/base_model.rbs +34 -18
- data/sig/terminal-shop/client.rbs +8 -8
- data/sig/terminal-shop/errors.rbs +17 -17
- data/sig/terminal-shop/models/address.rbs +11 -15
- data/sig/terminal-shop/models/address_create_params.rbs +11 -16
- data/sig/terminal-shop/models/address_create_response.rbs +1 -6
- data/sig/terminal-shop/models/address_delete_params.rbs +1 -6
- data/sig/terminal-shop/models/address_delete_response.rbs +1 -6
- data/sig/terminal-shop/models/address_get_params.rbs +1 -6
- data/sig/terminal-shop/models/address_get_response.rbs +1 -6
- data/sig/terminal-shop/models/address_list_params.rbs +1 -6
- data/sig/terminal-shop/models/address_list_response.rbs +1 -6
- data/sig/terminal-shop/models/app.rbs +6 -5
- data/sig/terminal-shop/models/app_create_params.rbs +5 -10
- data/sig/terminal-shop/models/app_create_response.rbs +4 -12
- data/sig/terminal-shop/models/app_delete_params.rbs +1 -6
- data/sig/terminal-shop/models/app_delete_response.rbs +1 -6
- data/sig/terminal-shop/models/app_get_params.rbs +1 -5
- data/sig/terminal-shop/models/app_get_response.rbs +1 -5
- data/sig/terminal-shop/models/app_list_params.rbs +1 -5
- data/sig/terminal-shop/models/app_list_response.rbs +1 -6
- data/sig/terminal-shop/models/card.rbs +7 -16
- data/sig/terminal-shop/models/card_collect_params.rbs +1 -6
- data/sig/terminal-shop/models/card_collect_response.rbs +4 -12
- data/sig/terminal-shop/models/card_create_params.rbs +4 -6
- data/sig/terminal-shop/models/card_create_response.rbs +1 -6
- data/sig/terminal-shop/models/card_delete_params.rbs +1 -6
- data/sig/terminal-shop/models/card_delete_response.rbs +1 -6
- data/sig/terminal-shop/models/card_get_params.rbs +1 -5
- data/sig/terminal-shop/models/card_get_response.rbs +1 -6
- data/sig/terminal-shop/models/card_list_params.rbs +1 -5
- data/sig/terminal-shop/models/card_list_response.rbs +1 -6
- data/sig/terminal-shop/models/cart.rbs +20 -34
- data/sig/terminal-shop/models/cart_clear_params.rbs +1 -6
- data/sig/terminal-shop/models/cart_clear_response.rbs +1 -6
- data/sig/terminal-shop/models/cart_convert_params.rbs +1 -6
- data/sig/terminal-shop/models/cart_convert_response.rbs +1 -6
- data/sig/terminal-shop/models/cart_get_params.rbs +1 -5
- data/sig/terminal-shop/models/cart_get_response.rbs +1 -6
- data/sig/terminal-shop/models/cart_set_address_params.rbs +4 -9
- data/sig/terminal-shop/models/cart_set_address_response.rbs +1 -6
- data/sig/terminal-shop/models/cart_set_card_params.rbs +4 -6
- data/sig/terminal-shop/models/cart_set_card_response.rbs +1 -6
- data/sig/terminal-shop/models/cart_set_item_params.rbs +5 -10
- data/sig/terminal-shop/models/cart_set_item_response.rbs +1 -6
- data/sig/terminal-shop/models/email_create_params.rbs +4 -6
- data/sig/terminal-shop/models/email_create_response.rbs +1 -6
- data/sig/terminal-shop/models/order.rbs +31 -50
- data/sig/terminal-shop/models/order_create_params.rbs +6 -11
- data/sig/terminal-shop/models/order_create_response.rbs +1 -6
- data/sig/terminal-shop/models/order_get_params.rbs +1 -5
- data/sig/terminal-shop/models/order_get_response.rbs +1 -6
- data/sig/terminal-shop/models/order_list_params.rbs +1 -6
- data/sig/terminal-shop/models/order_list_response.rbs +1 -6
- data/sig/terminal-shop/models/product.rbs +20 -27
- data/sig/terminal-shop/models/product_get_params.rbs +1 -6
- data/sig/terminal-shop/models/product_get_response.rbs +1 -6
- data/sig/terminal-shop/models/product_list_params.rbs +1 -6
- data/sig/terminal-shop/models/product_list_response.rbs +1 -6
- data/sig/terminal-shop/models/product_variant.rbs +1 -5
- data/sig/terminal-shop/models/profile.rbs +8 -17
- data/sig/terminal-shop/models/profile_me_params.rbs +1 -6
- data/sig/terminal-shop/models/profile_me_response.rbs +1 -6
- data/sig/terminal-shop/models/profile_update_params.rbs +5 -10
- data/sig/terminal-shop/models/profile_update_response.rbs +1 -6
- data/sig/terminal-shop/models/region.rbs +4 -2
- data/sig/terminal-shop/models/subscription.rbs +15 -27
- data/sig/terminal-shop/models/subscription_create_params.rbs +1 -6
- data/sig/terminal-shop/models/subscription_create_response.rbs +1 -6
- data/sig/terminal-shop/models/subscription_delete_params.rbs +1 -6
- data/sig/terminal-shop/models/subscription_delete_response.rbs +1 -6
- data/sig/terminal-shop/models/subscription_get_params.rbs +1 -6
- data/sig/terminal-shop/models/subscription_get_response.rbs +1 -6
- data/sig/terminal-shop/models/subscription_list_params.rbs +1 -6
- data/sig/terminal-shop/models/subscription_list_response.rbs +3 -6
- data/sig/terminal-shop/models/token.rbs +1 -5
- data/sig/terminal-shop/models/token_create_params.rbs +1 -6
- data/sig/terminal-shop/models/token_create_response.rbs +4 -12
- data/sig/terminal-shop/models/token_delete_params.rbs +1 -6
- data/sig/terminal-shop/models/token_delete_response.rbs +1 -6
- data/sig/terminal-shop/models/token_get_params.rbs +1 -5
- data/sig/terminal-shop/models/token_get_response.rbs +1 -6
- data/sig/terminal-shop/models/token_list_params.rbs +1 -6
- data/sig/terminal-shop/models/token_list_response.rbs +1 -6
- data/sig/terminal-shop/models/view_init_params.rbs +1 -5
- data/sig/terminal-shop/models/view_init_response.rbs +15 -23
- data/sig/terminal-shop/pooled_net_requester.rbs +3 -1
- data/sig/terminal-shop/request_options.rbs +2 -2
- data/sig/terminal-shop/resources/address.rbs +22 -41
- data/sig/terminal-shop/resources/app.rbs +16 -34
- data/sig/terminal-shop/resources/card.rbs +18 -40
- data/sig/terminal-shop/resources/cart.rbs +22 -47
- data/sig/terminal-shop/resources/email.rbs +4 -8
- data/sig/terminal-shop/resources/order.rbs +13 -26
- data/sig/terminal-shop/resources/product.rbs +7 -16
- data/sig/terminal-shop/resources/profile.rbs +8 -16
- data/sig/terminal-shop/resources/subscription.rbs +21 -43
- data/sig/terminal-shop/resources/token.rbs +14 -32
- data/sig/terminal-shop/resources/view.rbs +3 -7
- data/sig/terminal-shop/util.rbs +5 -5
- data/sig/terminal-shop/version.rbs +1 -1
- 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
|
-
|
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
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
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:
|
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:
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
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
|
-
|
31
|
-
|
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
|
-
|
42
|
-
|
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
|
-
|
7
|
-
|
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
|
-
|
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
|
-
|
25
|
-
|
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
|
-
|
35
|
-
|
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
|
-
|
7
|
-
|
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
|
-
|
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
|
-
|
24
|
-
|
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
|
-
|
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
|
-
|
42
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
31
|
-
|
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
|
-
|
41
|
-
|
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
|
-
|
50
|
-
|
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
|
-
|
7
|
-
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
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
|
-
|
26
|
-
|
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
|
-
|
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
|
-
|
15
|
-
|
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
|
-
|
7
|
-
|
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
|
-
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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
|
-
|
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
|
-
|
32
|
-
|
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
|
-
|
43
|
-
|
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
|