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,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class SubscriptionCreateResponse < TerminalShop::BaseModel
|
6
|
+
sig { returns(Symbol) }
|
7
|
+
attr_accessor :data
|
8
|
+
|
9
|
+
sig { params(data: Symbol).void }
|
10
|
+
def initialize(data: :ok)
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({data: Symbol}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class SubscriptionDeleteParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
sig { params(request_options: T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])).void }
|
10
|
+
def initialize(request_options: {})
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({request_options: TerminalShop::RequestOptions}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class SubscriptionDeleteResponse < TerminalShop::BaseModel
|
6
|
+
sig { returns(Symbol) }
|
7
|
+
attr_accessor :data
|
8
|
+
|
9
|
+
sig { params(data: Symbol).void }
|
10
|
+
def initialize(data: :ok)
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({data: Symbol}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class SubscriptionListParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
sig { params(request_options: T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])).void }
|
10
|
+
def initialize(request_options: {})
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({request_options: TerminalShop::RequestOptions}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class SubscriptionListResponse < TerminalShop::BaseModel
|
6
|
+
sig { returns(T::Array[TerminalShop::Models::SubscriptionAPI]) }
|
7
|
+
attr_accessor :data
|
8
|
+
|
9
|
+
sig { params(data: T::Array[TerminalShop::Models::SubscriptionAPI]).void }
|
10
|
+
def initialize(data:)
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({data: T::Array[TerminalShop::Models::SubscriptionAPI]}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class TokenAPI < TerminalShop::BaseModel
|
6
|
+
sig { returns(String) }
|
7
|
+
attr_accessor :id
|
8
|
+
|
9
|
+
sig { returns(String) }
|
10
|
+
attr_accessor :token
|
11
|
+
|
12
|
+
sig { returns(TerminalShop::Models::TokenAPI::Time) }
|
13
|
+
attr_accessor :time
|
14
|
+
|
15
|
+
sig { params(id: String, token: String, time: TerminalShop::Models::TokenAPI::Time).void }
|
16
|
+
def initialize(id:, token:, time:)
|
17
|
+
end
|
18
|
+
|
19
|
+
sig { override.returns({id: String, token: String, time: TerminalShop::Models::TokenAPI::Time}) }
|
20
|
+
def to_hash
|
21
|
+
end
|
22
|
+
|
23
|
+
class Time < TerminalShop::BaseModel
|
24
|
+
sig { returns(String) }
|
25
|
+
attr_accessor :created
|
26
|
+
|
27
|
+
sig { params(created: String).void }
|
28
|
+
def initialize(created:)
|
29
|
+
end
|
30
|
+
|
31
|
+
sig { override.returns({created: String}) }
|
32
|
+
def to_hash
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class TokenCreateParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
sig { params(request_options: T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])).void }
|
10
|
+
def initialize(request_options: {})
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({request_options: TerminalShop::RequestOptions}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class TokenCreateResponse < TerminalShop::BaseModel
|
6
|
+
sig { returns(TerminalShop::Models::TokenCreateResponse::Data) }
|
7
|
+
attr_accessor :data
|
8
|
+
|
9
|
+
sig { params(data: TerminalShop::Models::TokenCreateResponse::Data).void }
|
10
|
+
def initialize(data:)
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({data: TerminalShop::Models::TokenCreateResponse::Data}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
|
17
|
+
class Data < TerminalShop::BaseModel
|
18
|
+
sig { returns(String) }
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
sig { returns(String) }
|
22
|
+
attr_accessor :token
|
23
|
+
|
24
|
+
sig { params(id: String, token: String).void }
|
25
|
+
def initialize(id:, token:)
|
26
|
+
end
|
27
|
+
|
28
|
+
sig { override.returns({id: String, token: String}) }
|
29
|
+
def to_hash
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class TokenDeleteParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
sig { params(request_options: T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])).void }
|
10
|
+
def initialize(request_options: {})
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({request_options: TerminalShop::RequestOptions}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class TokenDeleteResponse < TerminalShop::BaseModel
|
6
|
+
sig { returns(Symbol) }
|
7
|
+
attr_accessor :data
|
8
|
+
|
9
|
+
sig { params(data: Symbol).void }
|
10
|
+
def initialize(data: :ok)
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({data: Symbol}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class TokenGetParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
sig { params(request_options: T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])).void }
|
10
|
+
def initialize(request_options: {})
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({request_options: TerminalShop::RequestOptions}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class TokenGetResponse < TerminalShop::BaseModel
|
6
|
+
sig { returns(TerminalShop::Models::TokenAPI) }
|
7
|
+
attr_accessor :data
|
8
|
+
|
9
|
+
sig { params(data: TerminalShop::Models::TokenAPI).void }
|
10
|
+
def initialize(data:)
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({data: TerminalShop::Models::TokenAPI}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class TokenListParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
sig { params(request_options: T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])).void }
|
10
|
+
def initialize(request_options: {})
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({request_options: TerminalShop::RequestOptions}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class TokenListResponse < TerminalShop::BaseModel
|
6
|
+
sig { returns(T::Array[TerminalShop::Models::TokenAPI]) }
|
7
|
+
attr_accessor :data
|
8
|
+
|
9
|
+
sig { params(data: T::Array[TerminalShop::Models::TokenAPI]).void }
|
10
|
+
def initialize(data:)
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({data: T::Array[TerminalShop::Models::TokenAPI]}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class ViewInitParams < TerminalShop::BaseModel
|
6
|
+
extend TerminalShop::RequestParameters::Converter
|
7
|
+
include TerminalShop::RequestParameters
|
8
|
+
|
9
|
+
sig { params(request_options: T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])).void }
|
10
|
+
def initialize(request_options: {})
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({request_options: TerminalShop::RequestOptions}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class ViewInitResponse < TerminalShop::BaseModel
|
6
|
+
sig { returns(TerminalShop::Models::ViewInitResponse::Data) }
|
7
|
+
attr_accessor :data
|
8
|
+
|
9
|
+
sig { params(data: TerminalShop::Models::ViewInitResponse::Data).void }
|
10
|
+
def initialize(data:)
|
11
|
+
end
|
12
|
+
|
13
|
+
sig { override.returns({data: TerminalShop::Models::ViewInitResponse::Data}) }
|
14
|
+
def to_hash
|
15
|
+
end
|
16
|
+
|
17
|
+
class Data < TerminalShop::BaseModel
|
18
|
+
sig { returns(T::Array[TerminalShop::Models::AddressAPI]) }
|
19
|
+
attr_accessor :addresses
|
20
|
+
|
21
|
+
sig { returns(T::Array[TerminalShop::Models::AppAPI]) }
|
22
|
+
attr_accessor :apps
|
23
|
+
|
24
|
+
sig { returns(T::Array[TerminalShop::Models::CardAPI]) }
|
25
|
+
attr_accessor :cards
|
26
|
+
|
27
|
+
sig { returns(TerminalShop::Models::CartAPI) }
|
28
|
+
attr_accessor :cart
|
29
|
+
|
30
|
+
sig { returns(T::Array[TerminalShop::Models::OrderAPI]) }
|
31
|
+
attr_accessor :orders
|
32
|
+
|
33
|
+
sig { returns(T::Array[TerminalShop::Models::ProductAPI]) }
|
34
|
+
attr_accessor :products
|
35
|
+
|
36
|
+
sig { returns(TerminalShop::Models::ProfileAPI) }
|
37
|
+
attr_accessor :profile
|
38
|
+
|
39
|
+
sig { returns(T::Array[TerminalShop::Models::SubscriptionAPI]) }
|
40
|
+
attr_accessor :subscriptions
|
41
|
+
|
42
|
+
sig { returns(T::Array[TerminalShop::Models::TokenAPI]) }
|
43
|
+
attr_accessor :tokens
|
44
|
+
|
45
|
+
sig do
|
46
|
+
params(
|
47
|
+
addresses: T::Array[TerminalShop::Models::AddressAPI],
|
48
|
+
apps: T::Array[TerminalShop::Models::AppAPI],
|
49
|
+
cards: T::Array[TerminalShop::Models::CardAPI],
|
50
|
+
cart: TerminalShop::Models::CartAPI,
|
51
|
+
orders: T::Array[TerminalShop::Models::OrderAPI],
|
52
|
+
products: T::Array[TerminalShop::Models::ProductAPI],
|
53
|
+
profile: TerminalShop::Models::ProfileAPI,
|
54
|
+
subscriptions: T::Array[TerminalShop::Models::SubscriptionAPI],
|
55
|
+
tokens: T::Array[TerminalShop::Models::TokenAPI]
|
56
|
+
).void
|
57
|
+
end
|
58
|
+
def initialize(
|
59
|
+
addresses:,
|
60
|
+
apps:,
|
61
|
+
cards:,
|
62
|
+
cart:,
|
63
|
+
orders:,
|
64
|
+
products:,
|
65
|
+
profile:,
|
66
|
+
subscriptions:,
|
67
|
+
tokens:
|
68
|
+
)
|
69
|
+
end
|
70
|
+
|
71
|
+
sig do
|
72
|
+
override.returns(
|
73
|
+
{
|
74
|
+
addresses: T::Array[TerminalShop::Models::AddressAPI],
|
75
|
+
apps: T::Array[TerminalShop::Models::AppAPI],
|
76
|
+
cards: T::Array[TerminalShop::Models::CardAPI],
|
77
|
+
cart: TerminalShop::Models::CartAPI,
|
78
|
+
orders: T::Array[TerminalShop::Models::OrderAPI],
|
79
|
+
products: T::Array[TerminalShop::Models::ProductAPI],
|
80
|
+
profile: TerminalShop::Models::ProfileAPI,
|
81
|
+
subscriptions: T::Array[TerminalShop::Models::SubscriptionAPI],
|
82
|
+
tokens: T::Array[TerminalShop::Models::TokenAPI]
|
83
|
+
}
|
84
|
+
)
|
85
|
+
end
|
86
|
+
def to_hash
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module RequestParameters
|
5
|
+
abstract!
|
6
|
+
|
7
|
+
sig { returns(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything])) }
|
8
|
+
attr_accessor :request_options
|
9
|
+
|
10
|
+
module Converter
|
11
|
+
sig { params(params: T.anything).returns([T.anything, T::Hash[Symbol, T.anything]]) }
|
12
|
+
def dump_request(params)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
class RequestOptions < TerminalShop::BaseModel
|
18
|
+
sig { params(opts: T.any(T.self_type, T::Hash[Symbol, T.anything])).void }
|
19
|
+
def self.validate!(opts)
|
20
|
+
end
|
21
|
+
|
22
|
+
sig { returns(T.nilable(String)) }
|
23
|
+
attr_accessor :idempotency_key
|
24
|
+
|
25
|
+
sig { returns(T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))])) }
|
26
|
+
attr_accessor :extra_query
|
27
|
+
|
28
|
+
sig { returns(T.nilable(T::Hash[String, T.nilable(String)])) }
|
29
|
+
attr_accessor :extra_headers
|
30
|
+
|
31
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
32
|
+
attr_accessor :extra_body
|
33
|
+
|
34
|
+
sig { returns(T.nilable(Integer)) }
|
35
|
+
attr_accessor :max_retries
|
36
|
+
|
37
|
+
sig { returns(T.nilable(Float)) }
|
38
|
+
attr_accessor :timeout
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Resources
|
5
|
+
class Address
|
6
|
+
sig do
|
7
|
+
params(
|
8
|
+
city: String,
|
9
|
+
country: String,
|
10
|
+
name: String,
|
11
|
+
street1: String,
|
12
|
+
zip: String,
|
13
|
+
phone: String,
|
14
|
+
province: String,
|
15
|
+
street2: String,
|
16
|
+
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
17
|
+
).returns(TerminalShop::Models::AddressCreateResponse)
|
18
|
+
end
|
19
|
+
def create(
|
20
|
+
city:,
|
21
|
+
country:,
|
22
|
+
name:,
|
23
|
+
street1:,
|
24
|
+
zip:,
|
25
|
+
phone: nil,
|
26
|
+
province: nil,
|
27
|
+
street2: nil,
|
28
|
+
request_options: {}
|
29
|
+
)
|
30
|
+
end
|
31
|
+
|
32
|
+
sig do
|
33
|
+
params(
|
34
|
+
request_options: T.nilable(
|
35
|
+
T.any(
|
36
|
+
TerminalShop::RequestOptions,
|
37
|
+
T::Hash[Symbol,
|
38
|
+
T.anything]
|
39
|
+
)
|
40
|
+
)
|
41
|
+
).returns(TerminalShop::Models::AddressListResponse)
|
42
|
+
end
|
43
|
+
def list(request_options: {})
|
44
|
+
end
|
45
|
+
|
46
|
+
sig do
|
47
|
+
params(
|
48
|
+
id: String,
|
49
|
+
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
50
|
+
).returns(TerminalShop::Models::AddressDeleteResponse)
|
51
|
+
end
|
52
|
+
def delete(id, request_options: {})
|
53
|
+
end
|
54
|
+
|
55
|
+
sig { params(client: TerminalShop::Client).void }
|
56
|
+
def initialize(client:)
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Resources
|
5
|
+
class App
|
6
|
+
sig do
|
7
|
+
params(
|
8
|
+
id: String,
|
9
|
+
name: String,
|
10
|
+
redirect_uri: String,
|
11
|
+
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
12
|
+
).returns(TerminalShop::Models::AppCreateResponse)
|
13
|
+
end
|
14
|
+
def create(id:, name:, redirect_uri:, request_options: {})
|
15
|
+
end
|
16
|
+
|
17
|
+
sig do
|
18
|
+
params(
|
19
|
+
request_options: T.nilable(
|
20
|
+
T.any(
|
21
|
+
TerminalShop::RequestOptions,
|
22
|
+
T::Hash[Symbol,
|
23
|
+
T.anything]
|
24
|
+
)
|
25
|
+
)
|
26
|
+
).returns(TerminalShop::Models::AppListResponse)
|
27
|
+
end
|
28
|
+
def list(request_options: {})
|
29
|
+
end
|
30
|
+
|
31
|
+
sig do
|
32
|
+
params(
|
33
|
+
id: String,
|
34
|
+
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
35
|
+
).returns(TerminalShop::Models::AppDeleteResponse)
|
36
|
+
end
|
37
|
+
def delete(id, request_options: {})
|
38
|
+
end
|
39
|
+
|
40
|
+
sig do
|
41
|
+
params(
|
42
|
+
id: String,
|
43
|
+
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
44
|
+
).returns(TerminalShop::Models::AppGetResponse)
|
45
|
+
end
|
46
|
+
def get(id, request_options: {})
|
47
|
+
end
|
48
|
+
|
49
|
+
sig { params(client: TerminalShop::Client).void }
|
50
|
+
def initialize(client:)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Resources
|
5
|
+
class Card
|
6
|
+
sig do
|
7
|
+
params(
|
8
|
+
token: String,
|
9
|
+
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
10
|
+
).returns(TerminalShop::Models::CardCreateResponse)
|
11
|
+
end
|
12
|
+
def create(token:, request_options: {})
|
13
|
+
end
|
14
|
+
|
15
|
+
sig do
|
16
|
+
params(
|
17
|
+
request_options: T.nilable(
|
18
|
+
T.any(
|
19
|
+
TerminalShop::RequestOptions,
|
20
|
+
T::Hash[Symbol,
|
21
|
+
T.anything]
|
22
|
+
)
|
23
|
+
)
|
24
|
+
).returns(TerminalShop::Models::CardListResponse)
|
25
|
+
end
|
26
|
+
def list(request_options: {})
|
27
|
+
end
|
28
|
+
|
29
|
+
sig do
|
30
|
+
params(
|
31
|
+
id: String,
|
32
|
+
request_options: T.nilable(T.any(TerminalShop::RequestOptions, T::Hash[Symbol, T.anything]))
|
33
|
+
).returns(TerminalShop::Models::CardDeleteResponse)
|
34
|
+
end
|
35
|
+
def delete(id, request_options: {})
|
36
|
+
end
|
37
|
+
|
38
|
+
sig do
|
39
|
+
params(
|
40
|
+
request_options: T.nilable(
|
41
|
+
T.any(
|
42
|
+
TerminalShop::RequestOptions,
|
43
|
+
T::Hash[Symbol,
|
44
|
+
T.anything]
|
45
|
+
)
|
46
|
+
)
|
47
|
+
).returns(TerminalShop::Models::CardCollectResponse)
|
48
|
+
end
|
49
|
+
def collect(request_options: {})
|
50
|
+
end
|
51
|
+
|
52
|
+
sig { params(client: TerminalShop::Client).void }
|
53
|
+
def initialize(client:)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|