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,19 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type subscription_create_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class SubscriptionCreateParams < TerminalShop::Models::SubscriptionAPI
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(request_options: TerminalShop::request_opts) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::subscription_create_params
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::subscription_create_params
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type subscription_create_response = { data: :ok }
|
4
|
+
|
5
|
+
class SubscriptionCreateResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: :ok
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: :ok) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::subscription_create_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::subscription_create_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type subscription_delete_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class SubscriptionDeleteParams < 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::subscription_delete_params
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::subscription_delete_params
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type subscription_delete_response = { data: :ok }
|
4
|
+
|
5
|
+
class SubscriptionDeleteResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: :ok
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: :ok) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::subscription_delete_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::subscription_delete_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type subscription_list_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class SubscriptionListParams < 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::subscription_list_params
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::subscription_list_params
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type subscription_list_response =
|
4
|
+
{ data: Array[TerminalShop::Models::SubscriptionAPI] }
|
5
|
+
|
6
|
+
class SubscriptionListResponse < TerminalShop::BaseModel
|
7
|
+
attr_accessor data: Array[TerminalShop::Models::SubscriptionAPI]
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(data: Array[TerminalShop::Models::SubscriptionAPI]) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::subscription_list_response
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::subscription_list_response
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type token_api =
|
4
|
+
{ id: String, token: String, time: TerminalShop::Models::TokenAPI::Time }
|
5
|
+
|
6
|
+
class TokenAPI < TerminalShop::BaseModel
|
7
|
+
attr_accessor id: String
|
8
|
+
|
9
|
+
attr_accessor token: String
|
10
|
+
|
11
|
+
attr_accessor time: TerminalShop::Models::TokenAPI::Time
|
12
|
+
|
13
|
+
def initialize:
|
14
|
+
(
|
15
|
+
id: String,
|
16
|
+
token: String,
|
17
|
+
time: TerminalShop::Models::TokenAPI::Time
|
18
|
+
) -> void
|
19
|
+
| (
|
20
|
+
?TerminalShop::Models::token_api | TerminalShop::BaseModel data
|
21
|
+
) -> void
|
22
|
+
|
23
|
+
def to_hash: -> TerminalShop::Models::token_api
|
24
|
+
|
25
|
+
type time = { created: String }
|
26
|
+
|
27
|
+
class Time < TerminalShop::BaseModel
|
28
|
+
attr_accessor created: String
|
29
|
+
|
30
|
+
def initialize:
|
31
|
+
(created: String) -> void
|
32
|
+
| (
|
33
|
+
?TerminalShop::Models::TokenAPI::time | TerminalShop::BaseModel data
|
34
|
+
) -> void
|
35
|
+
|
36
|
+
def to_hash: -> TerminalShop::Models::TokenAPI::time
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type token_create_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class TokenCreateParams < 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::token_create_params
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::token_create_params
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type token_create_response =
|
4
|
+
{ data: TerminalShop::Models::TokenCreateResponse::Data }
|
5
|
+
|
6
|
+
class TokenCreateResponse < TerminalShop::BaseModel
|
7
|
+
attr_accessor data: TerminalShop::Models::TokenCreateResponse::Data
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(data: TerminalShop::Models::TokenCreateResponse::Data) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::token_create_response
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::token_create_response
|
17
|
+
|
18
|
+
type data = { id: String, token: String }
|
19
|
+
|
20
|
+
class Data < TerminalShop::BaseModel
|
21
|
+
attr_accessor id: String
|
22
|
+
|
23
|
+
attr_accessor token: String
|
24
|
+
|
25
|
+
def initialize:
|
26
|
+
(id: String, token: String) -> void
|
27
|
+
| (
|
28
|
+
?TerminalShop::Models::TokenCreateResponse::data
|
29
|
+
| TerminalShop::BaseModel data
|
30
|
+
) -> void
|
31
|
+
|
32
|
+
def to_hash: -> TerminalShop::Models::TokenCreateResponse::data
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type token_delete_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class TokenDeleteParams < 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::token_delete_params
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::token_delete_params
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type token_delete_response = { data: :ok }
|
4
|
+
|
5
|
+
class TokenDeleteResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: :ok
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: :ok) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::token_delete_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::token_delete_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type token_get_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class TokenGetParams < 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::token_get_params | TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::token_get_params
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type token_get_response = { data: TerminalShop::Models::TokenAPI }
|
4
|
+
|
5
|
+
class TokenGetResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: TerminalShop::Models::TokenAPI
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: TerminalShop::Models::TokenAPI) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::token_get_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::token_get_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type token_list_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class TokenListParams < 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::token_list_params
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::token_list_params
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type token_list_response = { data: Array[TerminalShop::Models::TokenAPI] }
|
4
|
+
|
5
|
+
class TokenListResponse < TerminalShop::BaseModel
|
6
|
+
attr_accessor data: Array[TerminalShop::Models::TokenAPI]
|
7
|
+
|
8
|
+
def initialize:
|
9
|
+
(data: Array[TerminalShop::Models::TokenAPI]) -> void
|
10
|
+
| (
|
11
|
+
?TerminalShop::Models::token_list_response
|
12
|
+
| TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::token_list_response
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type view_init_params = { } & TerminalShop::request_parameters
|
4
|
+
|
5
|
+
class ViewInitParams < 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::view_init_params | TerminalShop::BaseModel data
|
13
|
+
) -> void
|
14
|
+
|
15
|
+
def to_hash: -> TerminalShop::Models::view_init_params
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Models
|
3
|
+
type view_init_response =
|
4
|
+
{ data: TerminalShop::Models::ViewInitResponse::Data }
|
5
|
+
|
6
|
+
class ViewInitResponse < TerminalShop::BaseModel
|
7
|
+
attr_accessor data: TerminalShop::Models::ViewInitResponse::Data
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(data: TerminalShop::Models::ViewInitResponse::Data) -> void
|
11
|
+
| (
|
12
|
+
?TerminalShop::Models::view_init_response
|
13
|
+
| TerminalShop::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> TerminalShop::Models::view_init_response
|
17
|
+
|
18
|
+
type data =
|
19
|
+
{
|
20
|
+
addresses: Array[TerminalShop::Models::AddressAPI],
|
21
|
+
apps: Array[TerminalShop::Models::AppAPI],
|
22
|
+
cards: Array[TerminalShop::Models::CardAPI],
|
23
|
+
cart: TerminalShop::Models::CartAPI,
|
24
|
+
orders: Array[TerminalShop::Models::OrderAPI],
|
25
|
+
products: Array[TerminalShop::Models::ProductAPI],
|
26
|
+
profile: TerminalShop::Models::ProfileAPI,
|
27
|
+
subscriptions: Array[TerminalShop::Models::SubscriptionAPI],
|
28
|
+
tokens: Array[TerminalShop::Models::TokenAPI]
|
29
|
+
}
|
30
|
+
|
31
|
+
class Data < TerminalShop::BaseModel
|
32
|
+
attr_accessor addresses: Array[TerminalShop::Models::AddressAPI]
|
33
|
+
|
34
|
+
attr_accessor apps: Array[TerminalShop::Models::AppAPI]
|
35
|
+
|
36
|
+
attr_accessor cards: Array[TerminalShop::Models::CardAPI]
|
37
|
+
|
38
|
+
attr_accessor cart: TerminalShop::Models::CartAPI
|
39
|
+
|
40
|
+
attr_accessor orders: Array[TerminalShop::Models::OrderAPI]
|
41
|
+
|
42
|
+
attr_accessor products: Array[TerminalShop::Models::ProductAPI]
|
43
|
+
|
44
|
+
attr_accessor profile: TerminalShop::Models::ProfileAPI
|
45
|
+
|
46
|
+
attr_accessor subscriptions: Array[TerminalShop::Models::SubscriptionAPI]
|
47
|
+
|
48
|
+
attr_accessor tokens: Array[TerminalShop::Models::TokenAPI]
|
49
|
+
|
50
|
+
def initialize:
|
51
|
+
(
|
52
|
+
addresses: Array[TerminalShop::Models::AddressAPI],
|
53
|
+
apps: Array[TerminalShop::Models::AppAPI],
|
54
|
+
cards: Array[TerminalShop::Models::CardAPI],
|
55
|
+
cart: TerminalShop::Models::CartAPI,
|
56
|
+
orders: Array[TerminalShop::Models::OrderAPI],
|
57
|
+
products: Array[TerminalShop::Models::ProductAPI],
|
58
|
+
profile: TerminalShop::Models::ProfileAPI,
|
59
|
+
subscriptions: Array[TerminalShop::Models::SubscriptionAPI],
|
60
|
+
tokens: Array[TerminalShop::Models::TokenAPI]
|
61
|
+
) -> void
|
62
|
+
| (
|
63
|
+
?TerminalShop::Models::ViewInitResponse::data
|
64
|
+
| TerminalShop::BaseModel data
|
65
|
+
) -> void
|
66
|
+
|
67
|
+
def to_hash: -> TerminalShop::Models::ViewInitResponse::data
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
type request_opts =
|
3
|
+
TerminalShop::RequestOptions
|
4
|
+
| TerminalShop::request_options
|
5
|
+
| Hash[Symbol, top]
|
6
|
+
|
7
|
+
type request_parameters = { request_options: TerminalShop::request_opts }
|
8
|
+
|
9
|
+
module RequestParameters
|
10
|
+
attr_accessor request_options: TerminalShop::request_opts
|
11
|
+
|
12
|
+
module Converter
|
13
|
+
def dump_request: (top params) -> [top, Hash[Symbol, top]]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
type request_options =
|
18
|
+
{
|
19
|
+
idempotency_key: String?,
|
20
|
+
extra_query: Hash[String, (Array[String] | String)?]?,
|
21
|
+
extra_headers: Hash[String, String?]?,
|
22
|
+
extra_body: Hash[Symbol, top]?,
|
23
|
+
max_retries: Integer?,
|
24
|
+
timeout: Float?
|
25
|
+
}
|
26
|
+
|
27
|
+
class RequestOptions < TerminalShop::BaseModel
|
28
|
+
def self.validate!: (self | Hash[Symbol, top] opts) -> void
|
29
|
+
|
30
|
+
attr_accessor idempotency_key: String?
|
31
|
+
|
32
|
+
attr_accessor extra_query: Hash[String, (Array[String] | String)?]?
|
33
|
+
|
34
|
+
attr_accessor extra_headers: Hash[String, String?]?
|
35
|
+
|
36
|
+
attr_accessor extra_body: Hash[Symbol, top]?
|
37
|
+
|
38
|
+
attr_accessor max_retries: Integer?
|
39
|
+
|
40
|
+
attr_accessor timeout: Float?
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Resources
|
3
|
+
class Address
|
4
|
+
def create:
|
5
|
+
(
|
6
|
+
TerminalShop::Models::AddressCreateParams | Hash[Symbol, top] params
|
7
|
+
) -> TerminalShop::Models::AddressCreateResponse
|
8
|
+
| (
|
9
|
+
city: String,
|
10
|
+
country: String,
|
11
|
+
name: String,
|
12
|
+
street1: String,
|
13
|
+
zip: String,
|
14
|
+
phone: String,
|
15
|
+
province: String,
|
16
|
+
street2: String,
|
17
|
+
request_options: TerminalShop::request_opts
|
18
|
+
) -> TerminalShop::Models::AddressCreateResponse
|
19
|
+
|
20
|
+
def list:
|
21
|
+
(
|
22
|
+
?TerminalShop::Models::AddressListParams | Hash[Symbol, top] params
|
23
|
+
) -> TerminalShop::Models::AddressListResponse
|
24
|
+
| (
|
25
|
+
request_options: TerminalShop::request_opts
|
26
|
+
) -> TerminalShop::Models::AddressListResponse
|
27
|
+
|
28
|
+
def delete:
|
29
|
+
(
|
30
|
+
String id,
|
31
|
+
?TerminalShop::Models::AddressDeleteParams | Hash[Symbol, top] params
|
32
|
+
) -> TerminalShop::Models::AddressDeleteResponse
|
33
|
+
| (
|
34
|
+
String id,
|
35
|
+
request_options: TerminalShop::request_opts
|
36
|
+
) -> TerminalShop::Models::AddressDeleteResponse
|
37
|
+
|
38
|
+
def initialize: (client: TerminalShop::Client) -> void
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Resources
|
3
|
+
class App
|
4
|
+
def create:
|
5
|
+
(
|
6
|
+
TerminalShop::Models::AppCreateParams | Hash[Symbol, top] params
|
7
|
+
) -> TerminalShop::Models::AppCreateResponse
|
8
|
+
| (
|
9
|
+
id: String,
|
10
|
+
name: String,
|
11
|
+
redirect_uri: String,
|
12
|
+
request_options: TerminalShop::request_opts
|
13
|
+
) -> TerminalShop::Models::AppCreateResponse
|
14
|
+
|
15
|
+
def list:
|
16
|
+
(
|
17
|
+
?TerminalShop::Models::AppListParams | Hash[Symbol, top] params
|
18
|
+
) -> TerminalShop::Models::AppListResponse
|
19
|
+
| (
|
20
|
+
request_options: TerminalShop::request_opts
|
21
|
+
) -> TerminalShop::Models::AppListResponse
|
22
|
+
|
23
|
+
def delete:
|
24
|
+
(
|
25
|
+
String id,
|
26
|
+
?TerminalShop::Models::AppDeleteParams | Hash[Symbol, top] params
|
27
|
+
) -> TerminalShop::Models::AppDeleteResponse
|
28
|
+
| (
|
29
|
+
String id,
|
30
|
+
request_options: TerminalShop::request_opts
|
31
|
+
) -> TerminalShop::Models::AppDeleteResponse
|
32
|
+
|
33
|
+
def get:
|
34
|
+
(
|
35
|
+
String id,
|
36
|
+
?TerminalShop::Models::AppGetParams | Hash[Symbol, top] params
|
37
|
+
) -> TerminalShop::Models::AppGetResponse
|
38
|
+
| (
|
39
|
+
String id,
|
40
|
+
request_options: TerminalShop::request_opts
|
41
|
+
) -> TerminalShop::Models::AppGetResponse
|
42
|
+
|
43
|
+
def initialize: (client: TerminalShop::Client) -> void
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Resources
|
3
|
+
class Card
|
4
|
+
def create:
|
5
|
+
(
|
6
|
+
TerminalShop::Models::CardCreateParams | Hash[Symbol, top] params
|
7
|
+
) -> TerminalShop::Models::CardCreateResponse
|
8
|
+
| (
|
9
|
+
token: String,
|
10
|
+
request_options: TerminalShop::request_opts
|
11
|
+
) -> TerminalShop::Models::CardCreateResponse
|
12
|
+
|
13
|
+
def list:
|
14
|
+
(
|
15
|
+
?TerminalShop::Models::CardListParams | Hash[Symbol, top] params
|
16
|
+
) -> TerminalShop::Models::CardListResponse
|
17
|
+
| (
|
18
|
+
request_options: TerminalShop::request_opts
|
19
|
+
) -> TerminalShop::Models::CardListResponse
|
20
|
+
|
21
|
+
def delete:
|
22
|
+
(
|
23
|
+
String id,
|
24
|
+
?TerminalShop::Models::CardDeleteParams | Hash[Symbol, top] params
|
25
|
+
) -> TerminalShop::Models::CardDeleteResponse
|
26
|
+
| (
|
27
|
+
String id,
|
28
|
+
request_options: TerminalShop::request_opts
|
29
|
+
) -> TerminalShop::Models::CardDeleteResponse
|
30
|
+
|
31
|
+
def collect:
|
32
|
+
(
|
33
|
+
?TerminalShop::Models::CardCollectParams | Hash[Symbol, top] params
|
34
|
+
) -> TerminalShop::Models::CardCollectResponse
|
35
|
+
| (
|
36
|
+
request_options: TerminalShop::request_opts
|
37
|
+
) -> TerminalShop::Models::CardCollectResponse
|
38
|
+
|
39
|
+
def initialize: (client: TerminalShop::Client) -> void
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Resources
|
3
|
+
class Cart
|
4
|
+
def convert:
|
5
|
+
(
|
6
|
+
?TerminalShop::Models::CartConvertParams | Hash[Symbol, top] params
|
7
|
+
) -> TerminalShop::Models::CartConvertResponse
|
8
|
+
| (
|
9
|
+
request_options: TerminalShop::request_opts
|
10
|
+
) -> TerminalShop::Models::CartConvertResponse
|
11
|
+
|
12
|
+
def get:
|
13
|
+
(
|
14
|
+
?TerminalShop::Models::CartGetParams | Hash[Symbol, top] params
|
15
|
+
) -> TerminalShop::Models::CartGetResponse
|
16
|
+
| (
|
17
|
+
request_options: TerminalShop::request_opts
|
18
|
+
) -> TerminalShop::Models::CartGetResponse
|
19
|
+
|
20
|
+
def set_address:
|
21
|
+
(
|
22
|
+
TerminalShop::Models::CartSetAddressParams | Hash[Symbol, top] params
|
23
|
+
) -> TerminalShop::Models::CartSetAddressResponse
|
24
|
+
| (
|
25
|
+
address_id: String,
|
26
|
+
request_options: TerminalShop::request_opts
|
27
|
+
) -> TerminalShop::Models::CartSetAddressResponse
|
28
|
+
|
29
|
+
def set_card:
|
30
|
+
(
|
31
|
+
TerminalShop::Models::CartSetCardParams | Hash[Symbol, top] params
|
32
|
+
) -> TerminalShop::Models::CartSetCardResponse
|
33
|
+
| (
|
34
|
+
card_id: String,
|
35
|
+
request_options: TerminalShop::request_opts
|
36
|
+
) -> TerminalShop::Models::CartSetCardResponse
|
37
|
+
|
38
|
+
def set_item:
|
39
|
+
(
|
40
|
+
TerminalShop::Models::CartSetItemParams | Hash[Symbol, top] params
|
41
|
+
) -> TerminalShop::Models::CartSetItemResponse
|
42
|
+
| (
|
43
|
+
product_variant_id: String,
|
44
|
+
quantity: Integer,
|
45
|
+
request_options: TerminalShop::request_opts
|
46
|
+
) -> TerminalShop::Models::CartSetItemResponse
|
47
|
+
|
48
|
+
def initialize: (client: TerminalShop::Client) -> void
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module TerminalShop
|
2
|
+
module Resources
|
3
|
+
class Email
|
4
|
+
def create:
|
5
|
+
(
|
6
|
+
TerminalShop::Models::EmailCreateParams | Hash[Symbol, top] params
|
7
|
+
) -> TerminalShop::Models::EmailCreateResponse
|
8
|
+
| (
|
9
|
+
email: String,
|
10
|
+
request_options: TerminalShop::request_opts
|
11
|
+
) -> TerminalShop::Models::EmailCreateResponse
|
12
|
+
|
13
|
+
def initialize: (client: TerminalShop::Client) -> void
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|