terminal-shop 0.1.0.pre.alpha.5
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 +7 -0
- data/README.md +127 -0
- data/lib/terminal-shop/base_client.rb +452 -0
- data/lib/terminal-shop/base_model.rb +1189 -0
- data/lib/terminal-shop/base_page.rb +44 -0
- data/lib/terminal-shop/client.rb +135 -0
- data/lib/terminal-shop/errors.rb +187 -0
- data/lib/terminal-shop/extern.rb +10 -0
- data/lib/terminal-shop/models/address.rb +101 -0
- data/lib/terminal-shop/models/address_create_params.rb +86 -0
- data/lib/terminal-shop/models/address_create_response.rb +26 -0
- data/lib/terminal-shop/models/address_delete_params.rb +18 -0
- data/lib/terminal-shop/models/address_delete_response.rb +25 -0
- data/lib/terminal-shop/models/address_list_params.rb +18 -0
- data/lib/terminal-shop/models/address_list_response.rb +26 -0
- data/lib/terminal-shop/models/app.rb +44 -0
- data/lib/terminal-shop/models/app_create_params.rb +18 -0
- data/lib/terminal-shop/models/app_create_response.rb +54 -0
- data/lib/terminal-shop/models/app_delete_params.rb +18 -0
- data/lib/terminal-shop/models/app_delete_response.rb +25 -0
- data/lib/terminal-shop/models/app_get_params.rb +18 -0
- data/lib/terminal-shop/models/app_get_response.rb +26 -0
- data/lib/terminal-shop/models/app_list_params.rb +18 -0
- data/lib/terminal-shop/models/app_list_response.rb +26 -0
- data/lib/terminal-shop/models/card.rb +83 -0
- data/lib/terminal-shop/models/card_collect_params.rb +18 -0
- data/lib/terminal-shop/models/card_collect_response.rb +50 -0
- data/lib/terminal-shop/models/card_create_params.rb +26 -0
- data/lib/terminal-shop/models/card_create_response.rb +26 -0
- data/lib/terminal-shop/models/card_delete_params.rb +18 -0
- data/lib/terminal-shop/models/card_delete_response.rb +25 -0
- data/lib/terminal-shop/models/card_list_params.rb +18 -0
- data/lib/terminal-shop/models/card_list_response.rb +26 -0
- data/lib/terminal-shop/models/cart.rb +200 -0
- data/lib/terminal-shop/models/cart_convert_params.rb +18 -0
- data/lib/terminal-shop/models/cart_convert_response.rb +26 -0
- data/lib/terminal-shop/models/cart_get_params.rb +18 -0
- data/lib/terminal-shop/models/cart_get_response.rb +26 -0
- data/lib/terminal-shop/models/cart_set_address_params.rb +25 -0
- data/lib/terminal-shop/models/cart_set_address_response.rb +25 -0
- data/lib/terminal-shop/models/cart_set_card_params.rb +25 -0
- data/lib/terminal-shop/models/cart_set_card_response.rb +25 -0
- data/lib/terminal-shop/models/cart_set_item_params.rb +32 -0
- data/lib/terminal-shop/models/cart_set_item_response.rb +26 -0
- data/lib/terminal-shop/models/email_create_params.rb +25 -0
- data/lib/terminal-shop/models/email_create_response.rb +25 -0
- data/lib/terminal-shop/models/order.rb +303 -0
- data/lib/terminal-shop/models/order_get_params.rb +18 -0
- data/lib/terminal-shop/models/order_get_response.rb +26 -0
- data/lib/terminal-shop/models/order_list_params.rb +18 -0
- data/lib/terminal-shop/models/order_list_response.rb +26 -0
- data/lib/terminal-shop/models/product.rb +141 -0
- data/lib/terminal-shop/models/product_list_params.rb +18 -0
- data/lib/terminal-shop/models/product_list_response.rb +26 -0
- data/lib/terminal-shop/models/product_variant.rb +44 -0
- data/lib/terminal-shop/models/profile.rb +83 -0
- data/lib/terminal-shop/models/profile_me_params.rb +18 -0
- data/lib/terminal-shop/models/profile_me_response.rb +26 -0
- data/lib/terminal-shop/models/profile_update_params.rb +32 -0
- data/lib/terminal-shop/models/profile_update_response.rb +26 -0
- data/lib/terminal-shop/models/subscription.rb +113 -0
- data/lib/terminal-shop/models/subscription_create_params.rb +18 -0
- data/lib/terminal-shop/models/subscription_create_response.rb +25 -0
- data/lib/terminal-shop/models/subscription_delete_params.rb +18 -0
- data/lib/terminal-shop/models/subscription_delete_response.rb +25 -0
- data/lib/terminal-shop/models/subscription_list_params.rb +18 -0
- data/lib/terminal-shop/models/subscription_list_response.rb +26 -0
- data/lib/terminal-shop/models/token.rb +68 -0
- data/lib/terminal-shop/models/token_create_params.rb +18 -0
- data/lib/terminal-shop/models/token_create_response.rb +55 -0
- data/lib/terminal-shop/models/token_delete_params.rb +18 -0
- data/lib/terminal-shop/models/token_delete_response.rb +25 -0
- data/lib/terminal-shop/models/token_get_params.rb +18 -0
- data/lib/terminal-shop/models/token_get_response.rb +27 -0
- data/lib/terminal-shop/models/token_list_params.rb +18 -0
- data/lib/terminal-shop/models/token_list_response.rb +26 -0
- data/lib/terminal-shop/models/view_init_params.rb +18 -0
- data/lib/terminal-shop/models/view_init_response.rb +103 -0
- data/lib/terminal-shop/pooled_net_requester.rb +94 -0
- data/lib/terminal-shop/request_options.rb +115 -0
- data/lib/terminal-shop/resources/address.rb +84 -0
- data/lib/terminal-shop/resources/app.rb +93 -0
- data/lib/terminal-shop/resources/card.rb +89 -0
- data/lib/terminal-shop/resources/cart.rb +112 -0
- data/lib/terminal-shop/resources/email.rb +34 -0
- data/lib/terminal-shop/resources/order.rb +49 -0
- data/lib/terminal-shop/resources/product.rb +30 -0
- data/lib/terminal-shop/resources/profile.rb +53 -0
- data/lib/terminal-shop/resources/subscription.rb +82 -0
- data/lib/terminal-shop/resources/token.rb +85 -0
- data/lib/terminal-shop/resources/view.rb +31 -0
- data/lib/terminal-shop/util.rb +460 -0
- data/lib/terminal-shop/version.rb +5 -0
- data/lib/terminal-shop.rb +110 -0
- data/manifest.yaml +12 -0
- data/rbi/lib/terminal-shop/base_client.rbi +145 -0
- data/rbi/lib/terminal-shop/base_model.rbi +514 -0
- data/rbi/lib/terminal-shop/base_page.rbi +38 -0
- data/rbi/lib/terminal-shop/client.rbi +80 -0
- data/rbi/lib/terminal-shop/errors.rbi +133 -0
- data/rbi/lib/terminal-shop/extern.rbi +7 -0
- data/rbi/lib/terminal-shop/models/address.rbi +77 -0
- data/rbi/lib/terminal-shop/models/address_create_params.rbi +87 -0
- data/rbi/lib/terminal-shop/models/address_create_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/address_delete_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/address_delete_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/address_list_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/address_list_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/app.rbi +24 -0
- data/rbi/lib/terminal-shop/models/app_create_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/app_create_response.rbi +34 -0
- data/rbi/lib/terminal-shop/models/app_delete_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/app_delete_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/app_get_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/app_get_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/app_list_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/app_list_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/card.rbi +59 -0
- data/rbi/lib/terminal-shop/models/card_collect_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/card_collect_response.rbi +31 -0
- data/rbi/lib/terminal-shop/models/card_create_params.rbi +26 -0
- data/rbi/lib/terminal-shop/models/card_create_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/card_delete_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/card_delete_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/card_list_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/card_list_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/cart.rbi +127 -0
- data/rbi/lib/terminal-shop/models/cart_convert_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/cart_convert_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/cart_get_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/cart_get_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/cart_set_address_params.rbi +26 -0
- data/rbi/lib/terminal-shop/models/cart_set_address_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/cart_set_card_params.rbi +26 -0
- data/rbi/lib/terminal-shop/models/cart_set_card_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/cart_set_item_params.rbi +38 -0
- data/rbi/lib/terminal-shop/models/cart_set_item_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/email_create_params.rbi +26 -0
- data/rbi/lib/terminal-shop/models/email_create_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/order.rbi +216 -0
- data/rbi/lib/terminal-shop/models/order_get_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/order_get_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/order_list_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/order_list_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/product.rbi +94 -0
- data/rbi/lib/terminal-shop/models/product_list_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/product_list_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/product_variant.rbi +24 -0
- data/rbi/lib/terminal-shop/models/profile.rbi +61 -0
- data/rbi/lib/terminal-shop/models/profile_me_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/profile_me_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/profile_update_params.rbi +38 -0
- data/rbi/lib/terminal-shop/models/profile_update_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/subscription.rbi +75 -0
- data/rbi/lib/terminal-shop/models/subscription_create_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/subscription_create_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/subscription_delete_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/subscription_delete_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/subscription_list_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/subscription_list_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/token.rbi +37 -0
- data/rbi/lib/terminal-shop/models/token_create_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/token_create_response.rbi +34 -0
- data/rbi/lib/terminal-shop/models/token_delete_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/token_delete_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/token_get_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/token_get_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/token_list_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/token_list_response.rbi +18 -0
- data/rbi/lib/terminal-shop/models/view_init_params.rbi +18 -0
- data/rbi/lib/terminal-shop/models/view_init_response.rbi +91 -0
- data/rbi/lib/terminal-shop/request_options.rbi +40 -0
- data/rbi/lib/terminal-shop/resources/address.rbi +60 -0
- data/rbi/lib/terminal-shop/resources/app.rbi +54 -0
- data/rbi/lib/terminal-shop/resources/card.rbi +57 -0
- data/rbi/lib/terminal-shop/resources/cart.rbi +67 -0
- data/rbi/lib/terminal-shop/resources/email.rbi +20 -0
- data/rbi/lib/terminal-shop/resources/order.rbi +34 -0
- data/rbi/lib/terminal-shop/resources/product.rbi +25 -0
- data/rbi/lib/terminal-shop/resources/profile.rbi +35 -0
- data/rbi/lib/terminal-shop/resources/subscription.rbi +58 -0
- data/rbi/lib/terminal-shop/resources/token.rbi +57 -0
- data/rbi/lib/terminal-shop/resources/view.rbi +25 -0
- data/rbi/lib/terminal-shop/util.rbi +128 -0
- data/rbi/lib/terminal-shop/version.rbi +5 -0
- data/sig/terminal-shop/base_client.rbs +100 -0
- data/sig/terminal-shop/base_model.rbs +246 -0
- data/sig/terminal-shop/base_page.rbs +20 -0
- data/sig/terminal-shop/client.rbs +52 -0
- data/sig/terminal-shop/errors.rbs +98 -0
- data/sig/terminal-shop/extern.rbs +4 -0
- data/sig/terminal-shop/models/address.rbs +60 -0
- data/sig/terminal-shop/models/address_create_params.rbs +62 -0
- data/sig/terminal-shop/models/address_create_response.rbs +18 -0
- data/sig/terminal-shop/models/address_delete_params.rbs +19 -0
- data/sig/terminal-shop/models/address_delete_response.rbs +18 -0
- data/sig/terminal-shop/models/address_list_params.rbs +19 -0
- data/sig/terminal-shop/models/address_list_response.rbs +19 -0
- data/sig/terminal-shop/models/app.rbs +21 -0
- data/sig/terminal-shop/models/app_create_params.rbs +19 -0
- data/sig/terminal-shop/models/app_create_response.rbs +36 -0
- data/sig/terminal-shop/models/app_delete_params.rbs +19 -0
- data/sig/terminal-shop/models/app_delete_response.rbs +18 -0
- data/sig/terminal-shop/models/app_get_params.rbs +18 -0
- data/sig/terminal-shop/models/app_get_response.rbs +17 -0
- data/sig/terminal-shop/models/app_list_params.rbs +18 -0
- data/sig/terminal-shop/models/app_list_response.rbs +18 -0
- data/sig/terminal-shop/models/card.rbs +51 -0
- data/sig/terminal-shop/models/card_collect_params.rbs +19 -0
- data/sig/terminal-shop/models/card_collect_response.rbs +34 -0
- data/sig/terminal-shop/models/card_create_params.rbs +22 -0
- data/sig/terminal-shop/models/card_create_response.rbs +18 -0
- data/sig/terminal-shop/models/card_delete_params.rbs +19 -0
- data/sig/terminal-shop/models/card_delete_response.rbs +18 -0
- data/sig/terminal-shop/models/card_list_params.rbs +18 -0
- data/sig/terminal-shop/models/card_list_response.rbs +18 -0
- data/sig/terminal-shop/models/cart.rbs +119 -0
- data/sig/terminal-shop/models/cart_convert_params.rbs +19 -0
- data/sig/terminal-shop/models/cart_convert_response.rbs +18 -0
- data/sig/terminal-shop/models/cart_get_params.rbs +18 -0
- data/sig/terminal-shop/models/cart_get_response.rbs +18 -0
- data/sig/terminal-shop/models/cart_set_address_params.rbs +25 -0
- data/sig/terminal-shop/models/cart_set_address_response.rbs +18 -0
- data/sig/terminal-shop/models/cart_set_card_params.rbs +22 -0
- data/sig/terminal-shop/models/cart_set_card_response.rbs +18 -0
- data/sig/terminal-shop/models/cart_set_item_params.rbs +29 -0
- data/sig/terminal-shop/models/cart_set_item_response.rbs +18 -0
- data/sig/terminal-shop/models/email_create_params.rbs +22 -0
- data/sig/terminal-shop/models/email_create_response.rbs +18 -0
- data/sig/terminal-shop/models/order.rbs +179 -0
- data/sig/terminal-shop/models/order_get_params.rbs +18 -0
- data/sig/terminal-shop/models/order_get_response.rbs +18 -0
- data/sig/terminal-shop/models/order_list_params.rbs +19 -0
- data/sig/terminal-shop/models/order_list_response.rbs +18 -0
- data/sig/terminal-shop/models/product.rbs +76 -0
- data/sig/terminal-shop/models/product_list_params.rbs +19 -0
- data/sig/terminal-shop/models/product_list_response.rbs +19 -0
- data/sig/terminal-shop/models/product_variant.rbs +21 -0
- data/sig/terminal-shop/models/profile.rbs +53 -0
- data/sig/terminal-shop/models/profile_me_params.rbs +19 -0
- data/sig/terminal-shop/models/profile_me_response.rbs +18 -0
- data/sig/terminal-shop/models/profile_update_params.rbs +28 -0
- data/sig/terminal-shop/models/profile_update_response.rbs +18 -0
- data/sig/terminal-shop/models/subscription.rbs +60 -0
- data/sig/terminal-shop/models/subscription_create_params.rbs +19 -0
- data/sig/terminal-shop/models/subscription_create_response.rbs +18 -0
- data/sig/terminal-shop/models/subscription_delete_params.rbs +19 -0
- data/sig/terminal-shop/models/subscription_delete_response.rbs +18 -0
- data/sig/terminal-shop/models/subscription_list_params.rbs +19 -0
- data/sig/terminal-shop/models/subscription_list_response.rbs +19 -0
- data/sig/terminal-shop/models/token.rbs +40 -0
- data/sig/terminal-shop/models/token_create_params.rbs +19 -0
- data/sig/terminal-shop/models/token_create_response.rbs +36 -0
- data/sig/terminal-shop/models/token_delete_params.rbs +19 -0
- data/sig/terminal-shop/models/token_delete_response.rbs +18 -0
- data/sig/terminal-shop/models/token_get_params.rbs +18 -0
- data/sig/terminal-shop/models/token_get_response.rbs +18 -0
- data/sig/terminal-shop/models/token_list_params.rbs +19 -0
- data/sig/terminal-shop/models/token_list_response.rbs +18 -0
- data/sig/terminal-shop/models/view_init_params.rbs +18 -0
- data/sig/terminal-shop/models/view_init_response.rbs +71 -0
- data/sig/terminal-shop/request_options.rbs +42 -0
- data/sig/terminal-shop/resources/address.rbs +41 -0
- data/sig/terminal-shop/resources/app.rbs +46 -0
- data/sig/terminal-shop/resources/card.rbs +42 -0
- data/sig/terminal-shop/resources/cart.rbs +51 -0
- data/sig/terminal-shop/resources/email.rbs +16 -0
- data/sig/terminal-shop/resources/order.rbs +25 -0
- data/sig/terminal-shop/resources/product.rbs +15 -0
- data/sig/terminal-shop/resources/profile.rbs +25 -0
- data/sig/terminal-shop/resources/subscription.rbs +43 -0
- data/sig/terminal-shop/resources/token.rbs +43 -0
- data/sig/terminal-shop/resources/view.rbs +15 -0
- data/sig/terminal-shop/util.rbs +85 -0
- data/sig/terminal-shop/version.rbs +3 -0
- metadata +333 -0
@@ -0,0 +1,36 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type app_create_response =
|
4
|
+
{ data: TerminalShop::Models::AppCreateResponse::Data }
|
5
|
+
|
6
|
+
class AppCreateResponse < TerminalShop::BaseModel
|
7
|
+
attr_accessor data: TerminalShop::Models::AppCreateResponse::Data
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(data: TerminalShop::Models::AppCreateResponse::Data) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::app_create_response
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::app_create_response
|
17
|
+
|
18
|
+
type data = { id: String, secret: String }
|
19
|
+
|
20
|
+
class Data < TerminalShop::BaseModel
|
21
|
+
attr_accessor id: String
|
22
|
+
|
23
|
+
attr_accessor secret: String
|
24
|
+
|
25
|
+
def initialize:
|
26
|
+
(id: String, secret: String) -> void
|
27
|
+
| (
|
28
|
+
?TerminalShop::Models::AppCreateResponse::data
|
29
|
+
| TerminalShop::BaseModel data
|
30
|
+
) -> void
|
31
|
+
|
32
|
+
def to_hash: -> TerminalShop::Models::AppCreateResponse::data
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type app_delete_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class AppDeleteParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(request_options: TerminalShop::request_opts) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::app_delete_params
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::app_delete_params
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type app_delete_response = { data: :ok }
|
4
|
+
|
5
|
+
class AppDeleteResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: :ok
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: :ok) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::app_delete_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::app_delete_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type app_get_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class AppGetParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(request_options: TerminalShop::request_opts) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::app_get_params | TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::app_get_params
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type app_get_response = { data: TerminalShop::Models::AppAPI }
|
4
|
+
|
5
|
+
class AppGetResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: TerminalShop::Models::AppAPI
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: TerminalShop::Models::AppAPI) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::app_get_response | TerminalShop::BaseModel data
|
12
|
+
) -> void
|
13
|
+
|
14
|
+
def to_hash: -> TerminalShop::Models::app_get_response
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type app_list_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class AppListParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(request_options: TerminalShop::request_opts) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::app_list_params | TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::app_list_params
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type app_list_response = { data: Array[TerminalShop::Models::AppAPI] }
|
4
|
+
|
5
|
+
class AppListResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: Array[TerminalShop::Models::AppAPI]
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: Array[TerminalShop::Models::AppAPI]) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::app_list_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::app_list_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type card_api =
|
4
|
+
{
|
5
|
+
id: String,
|
6
|
+
brand: String,
|
7
|
+
expiration: TerminalShop::Models::CardAPI::Expiration,
|
8
|
+
:last4 => String
|
9
|
+
}
|
10
|
+
|
11
|
+
class CardAPI < TerminalShop::BaseModel
|
12
|
+
attr_accessor id: String
|
13
|
+
|
14
|
+
attr_accessor brand: String
|
15
|
+
|
16
|
+
attr_accessor expiration: TerminalShop::Models::CardAPI::Expiration
|
17
|
+
|
18
|
+
attr_accessor last4: String
|
19
|
+
|
20
|
+
def initialize:
|
21
|
+
(
|
22
|
+
id: String,
|
23
|
+
brand: String,
|
24
|
+
expiration: TerminalShop::Models::CardAPI::Expiration,
|
25
|
+
last4: String
|
26
|
+
) -> void
|
27
|
+
| (
|
28
|
+
?TerminalShop::Models::card_api | TerminalShop::BaseModel data
|
29
|
+
) -> void
|
30
|
+
|
31
|
+
def to_hash: -> TerminalShop::Models::card_api
|
32
|
+
|
33
|
+
type expiration = { month: Integer, year: Integer }
|
34
|
+
|
35
|
+
class Expiration < TerminalShop::BaseModel
|
36
|
+
attr_accessor month: Integer
|
37
|
+
|
38
|
+
attr_accessor year: Integer
|
39
|
+
|
40
|
+
def initialize:
|
41
|
+
(month: Integer, year: Integer) -> void
|
42
|
+
| (
|
43
|
+
?TerminalShop::Models::CardAPI::expiration
|
44
|
+
| TerminalShop::BaseModel data
|
45
|
+
) -> void
|
46
|
+
|
47
|
+
def to_hash: -> TerminalShop::Models::CardAPI::expiration
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type card_collect_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class CardCollectParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(request_options: TerminalShop::request_opts) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::card_collect_params
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::card_collect_params
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type card_collect_response =
|
4
|
+
{ data: TerminalShop::Models::CardCollectResponse::Data }
|
5
|
+
|
6
|
+
class CardCollectResponse < TerminalShop::BaseModel
|
7
|
+
attr_accessor data: TerminalShop::Models::CardCollectResponse::Data
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(data: TerminalShop::Models::CardCollectResponse::Data) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::card_collect_response
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::card_collect_response
|
17
|
+
|
18
|
+
type data = { url: String }
|
19
|
+
|
20
|
+
class Data < TerminalShop::BaseModel
|
21
|
+
attr_accessor url: String
|
22
|
+
|
23
|
+
def initialize:
|
24
|
+
(url: String) -> void
|
25
|
+
| (
|
26
|
+
?TerminalShop::Models::CardCollectResponse::data
|
27
|
+
| TerminalShop::BaseModel data
|
28
|
+
) -> void
|
29
|
+
|
30
|
+
def to_hash: -> TerminalShop::Models::CardCollectResponse::data
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type card_create_params =
|
4
|
+
{ token: String } & TerminalShop::request_parameters
|
5
|
+
|
6
|
+
class CardCreateParams < TerminalShop::BaseModel
|
7
|
+
extend TerminalShop::RequestParameters::Converter
|
8
|
+
include TerminalShop::RequestParameters
|
9
|
+
|
10
|
+
attr_accessor token: String
|
11
|
+
|
12
|
+
def initialize:
|
13
|
+
(token: String, request_options: TerminalShop::request_opts) -> void
|
14
|
+
| (
|
15
|
+
?TerminalShop::Models::card_create_params
|
16
|
+
| TerminalShop::BaseModel data
|
17
|
+
) -> void
|
18
|
+
|
19
|
+
def to_hash: -> TerminalShop::Models::card_create_params
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type card_create_response = { data: String }
|
4
|
+
|
5
|
+
class CardCreateResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: String
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: String) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::card_create_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::card_create_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type card_delete_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class CardDeleteParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(request_options: TerminalShop::request_opts) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::card_delete_params
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::card_delete_params
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type card_delete_response = { data: :ok }
|
4
|
+
|
5
|
+
class CardDeleteResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: :ok
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: :ok) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::card_delete_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::card_delete_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type card_list_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class CardListParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(request_options: TerminalShop::request_opts) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::card_list_params | TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::card_list_params
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type card_list_response = { data: Array[TerminalShop::Models::CardAPI] }
|
4
|
+
|
5
|
+
class CardListResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: Array[TerminalShop::Models::CardAPI]
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: Array[TerminalShop::Models::CardAPI]) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::card_list_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::card_list_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,119 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type cart_api =
|
4
|
+
{
|
5
|
+
amount: TerminalShop::Models::CartAPI::Amount,
|
6
|
+
items: Array[TerminalShop::Models::CartAPI::Item],
|
7
|
+
subtotal: Integer,
|
8
|
+
address_id: String,
|
9
|
+
card_id: String,
|
10
|
+
shipping: TerminalShop::Models::CartAPI::Shipping
|
11
|
+
}
|
12
|
+
|
13
|
+
class CartAPI < TerminalShop::BaseModel
|
14
|
+
attr_accessor amount: TerminalShop::Models::CartAPI::Amount
|
15
|
+
|
16
|
+
attr_accessor items: Array[TerminalShop::Models::CartAPI::Item]
|
17
|
+
|
18
|
+
attr_accessor subtotal: Integer
|
19
|
+
|
20
|
+
attr_reader address_id: String?
|
21
|
+
|
22
|
+
def address_id=: (String) -> void
|
23
|
+
|
24
|
+
attr_reader card_id: String?
|
25
|
+
|
26
|
+
def card_id=: (String) -> void
|
27
|
+
|
28
|
+
attr_reader shipping: TerminalShop::Models::CartAPI::Shipping?
|
29
|
+
|
30
|
+
def shipping=: (TerminalShop::Models::CartAPI::Shipping) -> void
|
31
|
+
|
32
|
+
def initialize:
|
33
|
+
(
|
34
|
+
amount: TerminalShop::Models::CartAPI::Amount,
|
35
|
+
items: Array[TerminalShop::Models::CartAPI::Item],
|
36
|
+
subtotal: Integer,
|
37
|
+
address_id: String,
|
38
|
+
card_id: String,
|
39
|
+
shipping: TerminalShop::Models::CartAPI::Shipping
|
40
|
+
) -> void
|
41
|
+
| (
|
42
|
+
?TerminalShop::Models::cart_api | TerminalShop::BaseModel data
|
43
|
+
) -> void
|
44
|
+
|
45
|
+
def to_hash: -> TerminalShop::Models::cart_api
|
46
|
+
|
47
|
+
type amount = { subtotal: Integer, shipping: Integer }
|
48
|
+
|
49
|
+
class Amount < TerminalShop::BaseModel
|
50
|
+
attr_accessor subtotal: Integer
|
51
|
+
|
52
|
+
attr_reader shipping: Integer?
|
53
|
+
|
54
|
+
def shipping=: (Integer) -> void
|
55
|
+
|
56
|
+
def initialize:
|
57
|
+
(subtotal: Integer, shipping: Integer) -> void
|
58
|
+
| (
|
59
|
+
?TerminalShop::Models::CartAPI::amount
|
60
|
+
| TerminalShop::BaseModel data
|
61
|
+
) -> void
|
62
|
+
|
63
|
+
def to_hash: -> TerminalShop::Models::CartAPI::amount
|
64
|
+
end
|
65
|
+
|
66
|
+
type item =
|
67
|
+
{
|
68
|
+
id: String,
|
69
|
+
product_variant_id: String,
|
70
|
+
quantity: Integer,
|
71
|
+
subtotal: Integer
|
72
|
+
}
|
73
|
+
|
74
|
+
class Item < TerminalShop::BaseModel
|
75
|
+
attr_accessor id: String
|
76
|
+
|
77
|
+
attr_accessor product_variant_id: String
|
78
|
+
|
79
|
+
attr_accessor quantity: Integer
|
80
|
+
|
81
|
+
attr_accessor subtotal: Integer
|
82
|
+
|
83
|
+
def initialize:
|
84
|
+
(
|
85
|
+
id: String,
|
86
|
+
product_variant_id: String,
|
87
|
+
quantity: Integer,
|
88
|
+
subtotal: Integer
|
89
|
+
) -> void
|
90
|
+
| (
|
91
|
+
?TerminalShop::Models::CartAPI::item | TerminalShop::BaseModel data
|
92
|
+
) -> void
|
93
|
+
|
94
|
+
def to_hash: -> TerminalShop::Models::CartAPI::item
|
95
|
+
end
|
96
|
+
|
97
|
+
type shipping = { service: String, timeframe: String }
|
98
|
+
|
99
|
+
class Shipping < TerminalShop::BaseModel
|
100
|
+
attr_reader service: String?
|
101
|
+
|
102
|
+
def service=: (String) -> void
|
103
|
+
|
104
|
+
attr_reader timeframe: String?
|
105
|
+
|
106
|
+
def timeframe=: (String) -> void
|
107
|
+
|
108
|
+
def initialize:
|
109
|
+
(service: String, timeframe: String) -> void
|
110
|
+
| (
|
111
|
+
?TerminalShop::Models::CartAPI::shipping
|
112
|
+
| TerminalShop::BaseModel data
|
113
|
+
) -> void
|
114
|
+
|
115
|
+
def to_hash: -> TerminalShop::Models::CartAPI::shipping
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type cart_convert_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class CartConvertParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(request_options: TerminalShop::request_opts) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::cart_convert_params
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::cart_convert_params
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type cart_convert_response = { data: TerminalShop::Models::OrderAPI }
|
4
|
+
|
5
|
+
class CartConvertResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: TerminalShop::Models::OrderAPI
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: TerminalShop::Models::OrderAPI) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::cart_convert_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::cart_convert_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type cart_get_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class CartGetParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(request_options: TerminalShop::request_opts) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::cart_get_params | TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::cart_get_params
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type cart_get_response = { data: TerminalShop::Models::CartAPI }
|
4
|
+
|
5
|
+
class CartGetResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: TerminalShop::Models::CartAPI
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: TerminalShop::Models::CartAPI) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::cart_get_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::cart_get_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type cart_set_address_params =
|
4
|
+
{ address_id: String } & TerminalShop::request_parameters
|
5
|
+
|
6
|
+
class CartSetAddressParams < TerminalShop::BaseModel
|
7
|
+
extend TerminalShop::RequestParameters::Converter
|
8
|
+
include TerminalShop::RequestParameters
|
9
|
+
|
10
|
+
attr_accessor address_id: String
|
11
|
+
|
12
|
+
def initialize:
|
13
|
+
(
|
14
|
+
address_id: String,
|
15
|
+
request_options: TerminalShop::request_opts
|
16
|
+
) -> void
|
17
|
+
| (
|
18
|
+
?TerminalShop::Models::cart_set_address_params
|
19
|
+
| TerminalShop::BaseModel data
|
20
|
+
) -> void
|
21
|
+
|
22
|
+
def to_hash: -> TerminalShop::Models::cart_set_address_params
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type cart_set_address_response = { data: :ok }
|
4
|
+
|
5
|
+
class CartSetAddressResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: :ok
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: :ok) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::cart_set_address_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::cart_set_address_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type cart_set_card_params =
|
4
|
+
{ card_id: String } & TerminalShop::request_parameters
|
5
|
+
|
6
|
+
class CartSetCardParams < TerminalShop::BaseModel
|
7
|
+
extend TerminalShop::RequestParameters::Converter
|
8
|
+
include TerminalShop::RequestParameters
|
9
|
+
|
10
|
+
attr_accessor card_id: String
|
11
|
+
|
12
|
+
def initialize:
|
13
|
+
(card_id: String, request_options: TerminalShop::request_opts) -> void
|
14
|
+
| (
|
15
|
+
?TerminalShop::Models::cart_set_card_params
|
16
|
+
| TerminalShop::BaseModel data
|
17
|
+
) -> void
|
18
|
+
|
19
|
+
def to_hash: -> TerminalShop::Models::cart_set_card_params
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type cart_set_card_response = { data: :ok }
|
4
|
+
|
5
|
+
class CartSetCardResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: :ok
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: :ok) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::cart_set_card_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::cart_set_card_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|