terminal-shop 3.6.1 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +3 -3
- data/lib/terminal_shop/file_part.rb +2 -2
- data/lib/terminal_shop/internal/type/enum.rb +4 -4
- data/lib/terminal_shop/internal/type/request_parameters.rb +4 -4
- data/lib/terminal_shop/internal/util.rb +1 -1
- data/lib/terminal_shop/models/address.rb +3 -3
- data/lib/terminal_shop/models/address_get_response.rb +3 -3
- data/lib/terminal_shop/models/address_list_response.rb +3 -3
- data/lib/terminal_shop/models/app.rb +3 -3
- data/lib/terminal_shop/models/app_get_response.rb +3 -3
- data/lib/terminal_shop/models/app_list_response.rb +3 -3
- data/lib/terminal_shop/models/card.rb +7 -7
- data/lib/terminal_shop/models/card_collect_response.rb +0 -1
- data/lib/terminal_shop/models/card_create_params.rb +0 -1
- data/lib/terminal_shop/models/card_get_response.rb +3 -3
- data/lib/terminal_shop/models/card_list_response.rb +3 -3
- data/lib/terminal_shop/models/cart.rb +13 -13
- data/lib/terminal_shop/models/cart_convert_response.rb +3 -3
- data/lib/terminal_shop/models/cart_get_response.rb +3 -3
- data/lib/terminal_shop/models/cart_set_item_response.rb +3 -3
- data/lib/terminal_shop/models/order.rb +24 -24
- data/lib/terminal_shop/models/order_get_response.rb +3 -3
- data/lib/terminal_shop/models/order_list_response.rb +3 -3
- data/lib/terminal_shop/models/product.rb +14 -14
- data/lib/terminal_shop/models/product_get_response.rb +3 -3
- data/lib/terminal_shop/models/product_list_response.rb +3 -3
- data/lib/terminal_shop/models/product_variant.rb +6 -6
- data/lib/terminal_shop/models/profile.rb +6 -6
- data/lib/terminal_shop/models/profile_me_response.rb +3 -3
- data/lib/terminal_shop/models/profile_update_response.rb +3 -3
- data/lib/terminal_shop/models/subscription.rb +9 -9
- data/lib/terminal_shop/models/subscription_get_response.rb +3 -3
- data/lib/terminal_shop/models/subscription_list_response.rb +3 -3
- data/lib/terminal_shop/models/subscription_update_params.rb +6 -6
- data/lib/terminal_shop/models/subscription_update_response.rb +3 -3
- data/lib/terminal_shop/models/token.rb +3 -3
- data/lib/terminal_shop/models/token_create_response.rb +0 -1
- data/lib/terminal_shop/models/token_get_response.rb +3 -4
- data/lib/terminal_shop/models/token_list_response.rb +3 -3
- data/lib/terminal_shop/models/view_init_response.rb +30 -31
- data/lib/terminal_shop/resources/address.rb +1 -1
- data/lib/terminal_shop/resources/app.rb +1 -1
- data/lib/terminal_shop/resources/card.rb +1 -2
- data/lib/terminal_shop/resources/cart.rb +3 -3
- data/lib/terminal_shop/resources/email.rb +1 -1
- data/lib/terminal_shop/resources/order.rb +1 -1
- data/lib/terminal_shop/resources/profile.rb +1 -1
- data/lib/terminal_shop/resources/subscription.rb +5 -5
- data/lib/terminal_shop/version.rb +1 -1
- data/lib/terminal_shop.rb +1 -0
- data/rbi/terminal_shop/client.rbi +9 -5
- data/rbi/terminal_shop/errors.rbi +35 -16
- data/rbi/terminal_shop/file_part.rbi +9 -6
- data/rbi/terminal_shop/internal/transport/base_client.rbi +140 -75
- data/rbi/terminal_shop/internal/transport/pooled_net_requester.rbi +26 -12
- data/rbi/terminal_shop/internal/type/array_of.rbi +34 -24
- data/rbi/terminal_shop/internal/type/base_model.rbi +131 -64
- data/rbi/terminal_shop/internal/type/base_page.rbi +13 -8
- data/rbi/terminal_shop/internal/type/boolean.rbi +16 -14
- data/rbi/terminal_shop/internal/type/converter.rbi +70 -28
- data/rbi/terminal_shop/internal/type/enum.rbi +23 -13
- data/rbi/terminal_shop/internal/type/file_input.rbi +8 -4
- data/rbi/terminal_shop/internal/type/hash_of.rbi +34 -24
- data/rbi/terminal_shop/internal/type/request_parameters.rbi +14 -4
- data/rbi/terminal_shop/internal/type/union.rbi +52 -22
- data/rbi/terminal_shop/internal/type/unknown.rbi +16 -6
- data/rbi/terminal_shop/internal/util.rbi +210 -88
- data/rbi/terminal_shop/models/address.rbi +23 -19
- data/rbi/terminal_shop/models/address_create_params.rbi +23 -19
- data/rbi/terminal_shop/models/address_create_response.rbi +9 -3
- data/rbi/terminal_shop/models/address_delete_params.rbi +13 -5
- data/rbi/terminal_shop/models/address_delete_response.rbi +8 -3
- data/rbi/terminal_shop/models/address_get_params.rbi +13 -5
- data/rbi/terminal_shop/models/address_get_response.rbi +12 -7
- data/rbi/terminal_shop/models/address_list_params.rbi +13 -5
- data/rbi/terminal_shop/models/address_list_response.rbi +13 -6
- data/rbi/terminal_shop/models/app.rbi +21 -4
- data/rbi/terminal_shop/models/app_create_params.rbi +16 -6
- data/rbi/terminal_shop/models/app_create_response.rbi +27 -9
- data/rbi/terminal_shop/models/app_delete_params.rbi +13 -5
- data/rbi/terminal_shop/models/app_delete_response.rbi +8 -3
- data/rbi/terminal_shop/models/app_get_params.rbi +13 -5
- data/rbi/terminal_shop/models/app_get_response.rbi +12 -7
- data/rbi/terminal_shop/models/app_list_params.rbi +13 -5
- data/rbi/terminal_shop/models/app_list_response.rbi +13 -6
- data/rbi/terminal_shop/models/card.rbi +30 -14
- data/rbi/terminal_shop/models/card_collect_params.rbi +13 -5
- data/rbi/terminal_shop/models/card_collect_response.rbi +30 -9
- data/rbi/terminal_shop/models/card_create_params.rbi +15 -6
- data/rbi/terminal_shop/models/card_create_response.rbi +9 -3
- data/rbi/terminal_shop/models/card_delete_params.rbi +13 -5
- data/rbi/terminal_shop/models/card_delete_response.rbi +8 -3
- data/rbi/terminal_shop/models/card_get_params.rbi +13 -5
- data/rbi/terminal_shop/models/card_get_response.rbi +12 -7
- data/rbi/terminal_shop/models/card_list_params.rbi +13 -5
- data/rbi/terminal_shop/models/card_list_response.rbi +13 -6
- data/rbi/terminal_shop/models/cart.rbi +79 -36
- data/rbi/terminal_shop/models/cart_clear_params.rbi +13 -5
- data/rbi/terminal_shop/models/cart_clear_response.rbi +8 -3
- data/rbi/terminal_shop/models/cart_convert_params.rbi +13 -5
- data/rbi/terminal_shop/models/cart_convert_response.rbi +12 -7
- data/rbi/terminal_shop/models/cart_get_params.rbi +13 -5
- data/rbi/terminal_shop/models/cart_get_response.rbi +12 -7
- data/rbi/terminal_shop/models/cart_set_address_params.rbi +15 -6
- data/rbi/terminal_shop/models/cart_set_address_response.rbi +8 -3
- data/rbi/terminal_shop/models/cart_set_card_params.rbi +15 -6
- data/rbi/terminal_shop/models/cart_set_card_response.rbi +8 -3
- data/rbi/terminal_shop/models/cart_set_item_params.rbi +17 -11
- data/rbi/terminal_shop/models/cart_set_item_response.rbi +12 -7
- data/rbi/terminal_shop/models/email_create_params.rbi +15 -6
- data/rbi/terminal_shop/models/email_create_response.rbi +8 -3
- data/rbi/terminal_shop/models/order.rbi +153 -87
- data/rbi/terminal_shop/models/order_create_params.rbi +18 -14
- data/rbi/terminal_shop/models/order_create_response.rbi +9 -3
- data/rbi/terminal_shop/models/order_get_params.rbi +13 -5
- data/rbi/terminal_shop/models/order_get_response.rbi +12 -7
- data/rbi/terminal_shop/models/order_list_params.rbi +13 -5
- data/rbi/terminal_shop/models/order_list_response.rbi +13 -6
- data/rbi/terminal_shop/models/product.rbi +71 -44
- data/rbi/terminal_shop/models/product_get_params.rbi +13 -5
- data/rbi/terminal_shop/models/product_get_response.rbi +12 -7
- data/rbi/terminal_shop/models/product_list_params.rbi +13 -5
- data/rbi/terminal_shop/models/product_list_response.rbi +13 -6
- data/rbi/terminal_shop/models/product_variant.rbi +39 -15
- data/rbi/terminal_shop/models/profile.rbi +32 -21
- data/rbi/terminal_shop/models/profile_me_params.rbi +13 -5
- data/rbi/terminal_shop/models/profile_me_response.rbi +12 -7
- data/rbi/terminal_shop/models/profile_update_params.rbi +18 -6
- data/rbi/terminal_shop/models/profile_update_response.rbi +12 -7
- data/rbi/terminal_shop/models/region.rbi +7 -6
- data/rbi/terminal_shop/models/subscription.rbi +70 -46
- data/rbi/terminal_shop/models/subscription_create_params.rbi +13 -5
- data/rbi/terminal_shop/models/subscription_create_response.rbi +8 -3
- data/rbi/terminal_shop/models/subscription_delete_params.rbi +13 -5
- data/rbi/terminal_shop/models/subscription_delete_response.rbi +8 -3
- data/rbi/terminal_shop/models/subscription_get_params.rbi +13 -5
- data/rbi/terminal_shop/models/subscription_get_response.rbi +14 -7
- data/rbi/terminal_shop/models/subscription_list_params.rbi +13 -5
- data/rbi/terminal_shop/models/subscription_list_response.rbi +15 -6
- data/rbi/terminal_shop/models/subscription_update_params.rbi +66 -42
- data/rbi/terminal_shop/models/subscription_update_response.rbi +14 -7
- data/rbi/terminal_shop/models/token.rbi +14 -4
- data/rbi/terminal_shop/models/token_create_params.rbi +13 -5
- data/rbi/terminal_shop/models/token_create_response.rbi +29 -9
- data/rbi/terminal_shop/models/token_delete_params.rbi +13 -5
- data/rbi/terminal_shop/models/token_delete_response.rbi +8 -3
- data/rbi/terminal_shop/models/token_get_params.rbi +13 -5
- data/rbi/terminal_shop/models/token_get_response.rbi +12 -7
- data/rbi/terminal_shop/models/token_list_params.rbi +13 -5
- data/rbi/terminal_shop/models/token_list_response.rbi +13 -6
- data/rbi/terminal_shop/models/view_init_params.rbi +13 -5
- data/rbi/terminal_shop/models/view_init_response.rbi +62 -47
- data/rbi/terminal_shop/request_options.rbi +16 -7
- data/rbi/terminal_shop/resources/address.rbi +28 -13
- data/rbi/terminal_shop/resources/app.rbi +30 -12
- data/rbi/terminal_shop/resources/card.rbi +37 -14
- data/rbi/terminal_shop/resources/cart.rbi +45 -16
- data/rbi/terminal_shop/resources/email.rbi +9 -4
- data/rbi/terminal_shop/resources/order.rbi +21 -10
- data/rbi/terminal_shop/resources/product.rbi +16 -6
- data/rbi/terminal_shop/resources/profile.rbi +16 -6
- data/rbi/terminal_shop/resources/subscription.rbi +43 -27
- data/rbi/terminal_shop/resources/token.rbi +30 -11
- data/rbi/terminal_shop/resources/view.rbi +9 -3
- data/sig/terminal_shop/internal/type/request_parameters.rbs +5 -1
- data/sig/terminal_shop/models/address.rbs +0 -2
- data/sig/terminal_shop/models/address_create_params.rbs +0 -2
- data/sig/terminal_shop/models/address_create_response.rbs +0 -2
- data/sig/terminal_shop/models/address_delete_params.rbs +0 -2
- data/sig/terminal_shop/models/address_delete_response.rbs +0 -2
- data/sig/terminal_shop/models/address_get_params.rbs +0 -2
- data/sig/terminal_shop/models/address_get_response.rbs +3 -5
- data/sig/terminal_shop/models/address_list_params.rbs +0 -2
- data/sig/terminal_shop/models/address_list_response.rbs +3 -6
- data/sig/terminal_shop/models/app.rbs +0 -2
- data/sig/terminal_shop/models/app_create_params.rbs +0 -2
- data/sig/terminal_shop/models/app_create_response.rbs +0 -4
- data/sig/terminal_shop/models/app_delete_params.rbs +0 -2
- data/sig/terminal_shop/models/app_delete_response.rbs +0 -2
- data/sig/terminal_shop/models/app_get_params.rbs +0 -2
- data/sig/terminal_shop/models/app_get_response.rbs +3 -5
- data/sig/terminal_shop/models/app_list_params.rbs +0 -2
- data/sig/terminal_shop/models/app_list_response.rbs +3 -5
- data/sig/terminal_shop/models/card.rbs +3 -7
- data/sig/terminal_shop/models/card_collect_params.rbs +0 -2
- data/sig/terminal_shop/models/card_collect_response.rbs +0 -4
- data/sig/terminal_shop/models/card_create_params.rbs +0 -2
- data/sig/terminal_shop/models/card_create_response.rbs +0 -2
- data/sig/terminal_shop/models/card_delete_params.rbs +0 -2
- data/sig/terminal_shop/models/card_delete_response.rbs +0 -2
- data/sig/terminal_shop/models/card_get_params.rbs +0 -2
- data/sig/terminal_shop/models/card_get_response.rbs +3 -5
- data/sig/terminal_shop/models/card_list_params.rbs +0 -2
- data/sig/terminal_shop/models/card_list_response.rbs +3 -5
- data/sig/terminal_shop/models/cart.rbs +11 -19
- data/sig/terminal_shop/models/cart_clear_params.rbs +0 -2
- data/sig/terminal_shop/models/cart_clear_response.rbs +0 -2
- data/sig/terminal_shop/models/cart_convert_params.rbs +0 -2
- data/sig/terminal_shop/models/cart_convert_response.rbs +3 -5
- data/sig/terminal_shop/models/cart_get_params.rbs +0 -2
- data/sig/terminal_shop/models/cart_get_response.rbs +3 -5
- data/sig/terminal_shop/models/cart_set_address_params.rbs +0 -2
- data/sig/terminal_shop/models/cart_set_address_response.rbs +0 -2
- data/sig/terminal_shop/models/cart_set_card_params.rbs +0 -2
- data/sig/terminal_shop/models/cart_set_card_response.rbs +0 -2
- data/sig/terminal_shop/models/cart_set_item_params.rbs +0 -2
- data/sig/terminal_shop/models/cart_set_item_response.rbs +3 -5
- data/sig/terminal_shop/models/email_create_params.rbs +0 -2
- data/sig/terminal_shop/models/email_create_response.rbs +0 -2
- data/sig/terminal_shop/models/order.rbs +18 -28
- data/sig/terminal_shop/models/order_create_params.rbs +0 -2
- data/sig/terminal_shop/models/order_create_response.rbs +0 -2
- data/sig/terminal_shop/models/order_get_params.rbs +0 -2
- data/sig/terminal_shop/models/order_get_response.rbs +3 -5
- data/sig/terminal_shop/models/order_list_params.rbs +0 -2
- data/sig/terminal_shop/models/order_list_response.rbs +3 -5
- data/sig/terminal_shop/models/product.rbs +14 -18
- data/sig/terminal_shop/models/product_get_params.rbs +0 -2
- data/sig/terminal_shop/models/product_get_response.rbs +3 -5
- data/sig/terminal_shop/models/product_list_params.rbs +0 -2
- data/sig/terminal_shop/models/product_list_response.rbs +3 -6
- data/sig/terminal_shop/models/product_variant.rbs +5 -9
- data/sig/terminal_shop/models/profile.rbs +3 -7
- data/sig/terminal_shop/models/profile_me_params.rbs +0 -2
- data/sig/terminal_shop/models/profile_me_response.rbs +3 -5
- data/sig/terminal_shop/models/profile_update_params.rbs +0 -2
- data/sig/terminal_shop/models/profile_update_response.rbs +3 -5
- data/sig/terminal_shop/models/subscription.rbs +8 -14
- data/sig/terminal_shop/models/subscription_create_params.rbs +0 -2
- data/sig/terminal_shop/models/subscription_create_response.rbs +0 -2
- data/sig/terminal_shop/models/subscription_delete_params.rbs +0 -2
- data/sig/terminal_shop/models/subscription_delete_response.rbs +0 -2
- data/sig/terminal_shop/models/subscription_get_params.rbs +0 -2
- data/sig/terminal_shop/models/subscription_get_response.rbs +3 -6
- data/sig/terminal_shop/models/subscription_list_params.rbs +0 -2
- data/sig/terminal_shop/models/subscription_list_response.rbs +3 -7
- data/sig/terminal_shop/models/subscription_update_params.rbs +3 -9
- data/sig/terminal_shop/models/subscription_update_response.rbs +3 -6
- data/sig/terminal_shop/models/token.rbs +0 -2
- data/sig/terminal_shop/models/token_create_params.rbs +0 -2
- data/sig/terminal_shop/models/token_create_response.rbs +0 -4
- data/sig/terminal_shop/models/token_delete_params.rbs +0 -2
- data/sig/terminal_shop/models/token_delete_response.rbs +0 -2
- data/sig/terminal_shop/models/token_get_params.rbs +0 -2
- data/sig/terminal_shop/models/token_get_response.rbs +3 -5
- data/sig/terminal_shop/models/token_list_params.rbs +0 -2
- data/sig/terminal_shop/models/token_list_response.rbs +3 -5
- data/sig/terminal_shop/models/view_init_params.rbs +0 -2
- data/sig/terminal_shop/models/view_init_response.rbs +27 -31
- data/sig/terminal_shop/request_options.rbs +1 -1
- metadata +2 -2
@@ -24,8 +24,8 @@ module TerminalShop
|
|
24
24
|
# @!attribute variants
|
25
25
|
# List of variants of the product.
|
26
26
|
#
|
27
|
-
# @return [Array<TerminalShop::
|
28
|
-
required :variants, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::
|
27
|
+
# @return [Array<TerminalShop::ProductVariant>]
|
28
|
+
required :variants, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::ProductVariant] }
|
29
29
|
|
30
30
|
# @!attribute order
|
31
31
|
# Order of the product used when displaying a sorted list of products.
|
@@ -36,38 +36,38 @@ module TerminalShop
|
|
36
36
|
# @!attribute subscription
|
37
37
|
# Whether the product must be or can be subscribed to.
|
38
38
|
#
|
39
|
-
# @return [Symbol, TerminalShop::
|
40
|
-
optional :subscription, enum: -> { TerminalShop::
|
39
|
+
# @return [Symbol, TerminalShop::ProductAPI::Subscription, nil]
|
40
|
+
optional :subscription, enum: -> { TerminalShop::ProductAPI::Subscription }
|
41
41
|
|
42
42
|
# @!attribute tags
|
43
43
|
# Tags for the product.
|
44
44
|
#
|
45
|
-
# @return [TerminalShop::
|
46
|
-
optional :tags, -> { TerminalShop::
|
45
|
+
# @return [TerminalShop::ProductAPI::Tags, nil]
|
46
|
+
optional :tags, -> { TerminalShop::ProductAPI::Tags }
|
47
47
|
|
48
48
|
# @!method initialize(id:, description:, name:, variants:, order: nil, subscription: nil, tags: nil)
|
49
|
-
# Some parameter documentations has been truncated, see
|
50
|
-
#
|
49
|
+
# Some parameter documentations has been truncated, see {TerminalShop::ProductAPI}
|
50
|
+
# for more details.
|
51
51
|
#
|
52
52
|
# Product sold in the Terminal shop.
|
53
53
|
#
|
54
|
-
# @param id [String] Unique object identifier.
|
54
|
+
# @param id [String] Unique object identifier.
|
55
55
|
#
|
56
56
|
# @param description [String] Description of the product.
|
57
57
|
#
|
58
58
|
# @param name [String] Name of the product.
|
59
59
|
#
|
60
|
-
# @param variants [Array<TerminalShop::
|
60
|
+
# @param variants [Array<TerminalShop::ProductVariant>] List of variants of the product.
|
61
61
|
#
|
62
62
|
# @param order [Integer] Order of the product used when displaying a sorted list of products.
|
63
63
|
#
|
64
|
-
# @param subscription [Symbol, TerminalShop::
|
64
|
+
# @param subscription [Symbol, TerminalShop::ProductAPI::Subscription] Whether the product must be or can be subscribed to.
|
65
65
|
#
|
66
|
-
# @param tags [TerminalShop::
|
66
|
+
# @param tags [TerminalShop::ProductAPI::Tags] Tags for the product.
|
67
67
|
|
68
68
|
# Whether the product must be or can be subscribed to.
|
69
69
|
#
|
70
|
-
# @see TerminalShop::
|
70
|
+
# @see TerminalShop::ProductAPI#subscription
|
71
71
|
module Subscription
|
72
72
|
extend TerminalShop::Internal::Type::Enum
|
73
73
|
|
@@ -78,7 +78,7 @@ module TerminalShop
|
|
78
78
|
# @return [Array<Symbol>]
|
79
79
|
end
|
80
80
|
|
81
|
-
# @see TerminalShop::
|
81
|
+
# @see TerminalShop::ProductAPI#tags
|
82
82
|
class Tags < TerminalShop::Internal::Type::BaseModel
|
83
83
|
# @!attribute app
|
84
84
|
#
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# Product sold in the Terminal shop.
|
9
9
|
#
|
10
|
-
# @return [TerminalShop::
|
11
|
-
required :data, -> { TerminalShop::
|
10
|
+
# @return [TerminalShop::ProductAPI]
|
11
|
+
required :data, -> { TerminalShop::ProductAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::
|
14
|
+
# @param data [TerminalShop::ProductAPI] Product sold in the Terminal shop.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# A list of products.
|
9
9
|
#
|
10
|
-
# @return [Array<TerminalShop::
|
11
|
-
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::
|
10
|
+
# @return [Array<TerminalShop::ProductAPI>]
|
11
|
+
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::ProductAPI] }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [Array<TerminalShop::
|
14
|
+
# @param data [Array<TerminalShop::ProductAPI>] A list of products.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -30,16 +30,16 @@ module TerminalShop
|
|
30
30
|
# @!attribute tags
|
31
31
|
# Tags for the product variant.
|
32
32
|
#
|
33
|
-
# @return [TerminalShop::
|
34
|
-
optional :tags, -> { TerminalShop::
|
33
|
+
# @return [TerminalShop::ProductVariant::Tags, nil]
|
34
|
+
optional :tags, -> { TerminalShop::ProductVariant::Tags }
|
35
35
|
|
36
36
|
# @!method initialize(id:, name:, price:, description: nil, tags: nil)
|
37
37
|
# Some parameter documentations has been truncated, see
|
38
|
-
# {TerminalShop::
|
38
|
+
# {TerminalShop::ProductVariant} for more details.
|
39
39
|
#
|
40
40
|
# Variant of a product in the Terminal shop.
|
41
41
|
#
|
42
|
-
# @param id [String] Unique object identifier.
|
42
|
+
# @param id [String] Unique object identifier.
|
43
43
|
#
|
44
44
|
# @param name [String] Name of the product variant.
|
45
45
|
#
|
@@ -47,9 +47,9 @@ module TerminalShop
|
|
47
47
|
#
|
48
48
|
# @param description [String] Description of the product variant.
|
49
49
|
#
|
50
|
-
# @param tags [TerminalShop::
|
50
|
+
# @param tags [TerminalShop::ProductVariant::Tags] Tags for the product variant.
|
51
51
|
|
52
|
-
# @see TerminalShop::
|
52
|
+
# @see TerminalShop::ProductVariant#tags
|
53
53
|
class Tags < TerminalShop::Internal::Type::BaseModel
|
54
54
|
# @!attribute app
|
55
55
|
#
|
@@ -6,15 +6,15 @@ module TerminalShop
|
|
6
6
|
# @!attribute user
|
7
7
|
# A Terminal shop user. (We have users, btw.)
|
8
8
|
#
|
9
|
-
# @return [TerminalShop::
|
10
|
-
required :user, -> { TerminalShop::
|
9
|
+
# @return [TerminalShop::ProfileAPI::User]
|
10
|
+
required :user, -> { TerminalShop::ProfileAPI::User }
|
11
11
|
|
12
12
|
# @!method initialize(user:)
|
13
13
|
# A Terminal shop user's profile. (We have users, btw.)
|
14
14
|
#
|
15
|
-
# @param user [TerminalShop::
|
15
|
+
# @param user [TerminalShop::ProfileAPI::User] A Terminal shop user. (We have users, btw.)
|
16
16
|
|
17
|
-
# @see TerminalShop::
|
17
|
+
# @see TerminalShop::ProfileAPI#user
|
18
18
|
class User < TerminalShop::Internal::Type::BaseModel
|
19
19
|
# @!attribute id
|
20
20
|
# Unique object identifier. The format and length of IDs may change over time.
|
@@ -48,11 +48,11 @@ module TerminalShop
|
|
48
48
|
|
49
49
|
# @!method initialize(id:, email:, fingerprint:, name:, stripe_customer_id:)
|
50
50
|
# Some parameter documentations has been truncated, see
|
51
|
-
# {TerminalShop::
|
51
|
+
# {TerminalShop::ProfileAPI::User} for more details.
|
52
52
|
#
|
53
53
|
# A Terminal shop user. (We have users, btw.)
|
54
54
|
#
|
55
|
-
# @param id [String] Unique object identifier.
|
55
|
+
# @param id [String] Unique object identifier.
|
56
56
|
#
|
57
57
|
# @param email [String, nil] Email address of the user.
|
58
58
|
#
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# A Terminal shop user's profile. (We have users, btw.)
|
9
9
|
#
|
10
|
-
# @return [TerminalShop::
|
11
|
-
required :data, -> { TerminalShop::
|
10
|
+
# @return [TerminalShop::ProfileAPI]
|
11
|
+
required :data, -> { TerminalShop::ProfileAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::
|
14
|
+
# @param data [TerminalShop::ProfileAPI] A Terminal shop user's profile. (We have users, btw.)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# A Terminal shop user's profile. (We have users, btw.)
|
9
9
|
#
|
10
|
-
# @return [TerminalShop::
|
11
|
-
required :data, -> { TerminalShop::
|
10
|
+
# @return [TerminalShop::ProfileAPI]
|
11
|
+
required :data, -> { TerminalShop::ProfileAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::
|
14
|
+
# @param data [TerminalShop::ProfileAPI] A Terminal shop user's profile. (We have users, btw.)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -54,16 +54,16 @@ module TerminalShop
|
|
54
54
|
# @!attribute schedule
|
55
55
|
# Schedule of the subscription.
|
56
56
|
#
|
57
|
-
# @return [TerminalShop::
|
58
|
-
optional :schedule, union: -> { TerminalShop::
|
57
|
+
# @return [TerminalShop::SubscriptionAPI::Schedule::Fixed, TerminalShop::SubscriptionAPI::Schedule::Weekly, nil]
|
58
|
+
optional :schedule, union: -> { TerminalShop::SubscriptionAPI::Schedule }
|
59
59
|
|
60
60
|
# @!method initialize(id:, address_id:, card_id:, created:, price:, product_variant_id:, quantity:, next_: nil, schedule: nil)
|
61
61
|
# Some parameter documentations has been truncated, see
|
62
|
-
# {TerminalShop::
|
62
|
+
# {TerminalShop::SubscriptionAPI} for more details.
|
63
63
|
#
|
64
64
|
# Subscription to a Terminal shop product.
|
65
65
|
#
|
66
|
-
# @param id [String] Unique object identifier.
|
66
|
+
# @param id [String] Unique object identifier.
|
67
67
|
#
|
68
68
|
# @param address_id [String] ID of the shipping address used for the subscription.
|
69
69
|
#
|
@@ -79,17 +79,17 @@ module TerminalShop
|
|
79
79
|
#
|
80
80
|
# @param next_ [String] Next shipment and billing date for the subscription.
|
81
81
|
#
|
82
|
-
# @param schedule [TerminalShop::
|
82
|
+
# @param schedule [TerminalShop::SubscriptionAPI::Schedule::Fixed, TerminalShop::SubscriptionAPI::Schedule::Weekly] Schedule of the subscription.
|
83
83
|
|
84
84
|
# Schedule of the subscription.
|
85
85
|
#
|
86
|
-
# @see TerminalShop::
|
86
|
+
# @see TerminalShop::SubscriptionAPI#schedule
|
87
87
|
module Schedule
|
88
88
|
extend TerminalShop::Internal::Type::Union
|
89
89
|
|
90
|
-
variant -> { TerminalShop::
|
90
|
+
variant -> { TerminalShop::SubscriptionAPI::Schedule::Fixed }
|
91
91
|
|
92
|
-
variant -> { TerminalShop::
|
92
|
+
variant -> { TerminalShop::SubscriptionAPI::Schedule::Weekly }
|
93
93
|
|
94
94
|
class Fixed < TerminalShop::Internal::Type::BaseModel
|
95
95
|
# @!attribute type
|
@@ -118,7 +118,7 @@ module TerminalShop
|
|
118
118
|
end
|
119
119
|
|
120
120
|
# @!method self.variants
|
121
|
-
# @return [Array(TerminalShop::
|
121
|
+
# @return [Array(TerminalShop::SubscriptionAPI::Schedule::Fixed, TerminalShop::SubscriptionAPI::Schedule::Weekly)]
|
122
122
|
end
|
123
123
|
end
|
124
124
|
end
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# Subscription to a Terminal shop product.
|
9
9
|
#
|
10
|
-
# @return [TerminalShop::
|
11
|
-
required :data, -> { TerminalShop::
|
10
|
+
# @return [TerminalShop::SubscriptionAPI]
|
11
|
+
required :data, -> { TerminalShop::SubscriptionAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::
|
14
|
+
# @param data [TerminalShop::SubscriptionAPI] Subscription to a Terminal shop product.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# List of subscriptions.
|
9
9
|
#
|
10
|
-
# @return [Array<TerminalShop::
|
11
|
-
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::
|
10
|
+
# @return [Array<TerminalShop::SubscriptionAPI>]
|
11
|
+
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::SubscriptionAPI] }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [Array<TerminalShop::
|
14
|
+
# @param data [Array<TerminalShop::SubscriptionAPI>] List of subscriptions.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -22,15 +22,15 @@ module TerminalShop
|
|
22
22
|
# @!attribute schedule
|
23
23
|
# New schedule for the subscription.
|
24
24
|
#
|
25
|
-
# @return [TerminalShop::
|
26
|
-
optional :schedule, union: -> { TerminalShop::
|
25
|
+
# @return [TerminalShop::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::SubscriptionUpdateParams::Schedule::Weekly, nil]
|
26
|
+
optional :schedule, union: -> { TerminalShop::SubscriptionUpdateParams::Schedule }
|
27
27
|
|
28
28
|
# @!method initialize(address_id: nil, card_id: nil, schedule: nil, request_options: {})
|
29
29
|
# @param address_id [String] New shipping address ID for the subscription.
|
30
30
|
#
|
31
31
|
# @param card_id [String] New payment method ID for the subscription.
|
32
32
|
#
|
33
|
-
# @param schedule [TerminalShop::
|
33
|
+
# @param schedule [TerminalShop::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::SubscriptionUpdateParams::Schedule::Weekly] New schedule for the subscription.
|
34
34
|
#
|
35
35
|
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}]
|
36
36
|
|
@@ -38,9 +38,9 @@ module TerminalShop
|
|
38
38
|
module Schedule
|
39
39
|
extend TerminalShop::Internal::Type::Union
|
40
40
|
|
41
|
-
variant -> { TerminalShop::
|
41
|
+
variant -> { TerminalShop::SubscriptionUpdateParams::Schedule::Fixed }
|
42
42
|
|
43
|
-
variant -> { TerminalShop::
|
43
|
+
variant -> { TerminalShop::SubscriptionUpdateParams::Schedule::Weekly }
|
44
44
|
|
45
45
|
class Fixed < TerminalShop::Internal::Type::BaseModel
|
46
46
|
# @!attribute type
|
@@ -69,7 +69,7 @@ module TerminalShop
|
|
69
69
|
end
|
70
70
|
|
71
71
|
# @!method self.variants
|
72
|
-
# @return [Array(TerminalShop::
|
72
|
+
# @return [Array(TerminalShop::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::SubscriptionUpdateParams::Schedule::Weekly)]
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# Subscription to a Terminal shop product.
|
9
9
|
#
|
10
|
-
# @return [TerminalShop::
|
11
|
-
required :data, -> { TerminalShop::
|
10
|
+
# @return [TerminalShop::SubscriptionAPI]
|
11
|
+
required :data, -> { TerminalShop::SubscriptionAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::
|
14
|
+
# @param data [TerminalShop::SubscriptionAPI] Subscription to a Terminal shop product.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -22,13 +22,13 @@ module TerminalShop
|
|
22
22
|
required :created, String
|
23
23
|
|
24
24
|
# @!method initialize(id:, token:, created:)
|
25
|
-
# Some parameter documentations has been truncated, see
|
26
|
-
#
|
25
|
+
# Some parameter documentations has been truncated, see {TerminalShop::TokenAPI}
|
26
|
+
# for more details.
|
27
27
|
#
|
28
28
|
# A personal access token used to access the Terminal API. If you leak this,
|
29
29
|
# expect large sums of coffee to be ordered on your credit card.
|
30
30
|
#
|
31
|
-
# @param id [String] Unique object identifier.
|
31
|
+
# @param id [String] Unique object identifier.
|
32
32
|
#
|
33
33
|
# @param token [String] Personal access token (obfuscated).
|
34
34
|
#
|
@@ -8,15 +8,14 @@ module TerminalShop
|
|
8
8
|
# A personal access token used to access the Terminal API. If you leak this,
|
9
9
|
# expect large sums of coffee to be ordered on your credit card.
|
10
10
|
#
|
11
|
-
# @return [TerminalShop::
|
12
|
-
required :data, -> { TerminalShop::
|
11
|
+
# @return [TerminalShop::TokenAPI]
|
12
|
+
required :data, -> { TerminalShop::TokenAPI }
|
13
13
|
|
14
14
|
# @!method initialize(data:)
|
15
15
|
# Some parameter documentations has been truncated, see
|
16
16
|
# {TerminalShop::Models::TokenGetResponse} for more details.
|
17
17
|
#
|
18
|
-
# @param data [TerminalShop::
|
19
|
-
# ...
|
18
|
+
# @param data [TerminalShop::TokenAPI] A personal access token used to access the Terminal API. If you leak this, expec
|
20
19
|
end
|
21
20
|
end
|
22
21
|
end
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# List of personal access tokens.
|
9
9
|
#
|
10
|
-
# @return [Array<TerminalShop::
|
11
|
-
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::
|
10
|
+
# @return [Array<TerminalShop::TokenAPI>]
|
11
|
+
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::TokenAPI] }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [Array<TerminalShop::
|
14
|
+
# @param data [Array<TerminalShop::TokenAPI>] List of personal access tokens.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -17,80 +17,79 @@ module TerminalShop
|
|
17
17
|
class Data < TerminalShop::Internal::Type::BaseModel
|
18
18
|
# @!attribute addresses
|
19
19
|
#
|
20
|
-
# @return [Array<TerminalShop::
|
21
|
-
required :addresses, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::
|
20
|
+
# @return [Array<TerminalShop::AddressAPI>]
|
21
|
+
required :addresses, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::AddressAPI] }
|
22
22
|
|
23
23
|
# @!attribute apps
|
24
24
|
#
|
25
|
-
# @return [Array<TerminalShop::
|
26
|
-
required :apps, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::
|
25
|
+
# @return [Array<TerminalShop::AppAPI>]
|
26
|
+
required :apps, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::AppAPI] }
|
27
27
|
|
28
28
|
# @!attribute cards
|
29
29
|
#
|
30
|
-
# @return [Array<TerminalShop::
|
31
|
-
required :cards, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::
|
30
|
+
# @return [Array<TerminalShop::CardAPI>]
|
31
|
+
required :cards, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::CardAPI] }
|
32
32
|
|
33
33
|
# @!attribute cart
|
34
34
|
# The current Terminal shop user's cart.
|
35
35
|
#
|
36
|
-
# @return [TerminalShop::
|
37
|
-
required :cart, -> { TerminalShop::
|
36
|
+
# @return [TerminalShop::CartAPI]
|
37
|
+
required :cart, -> { TerminalShop::CartAPI }
|
38
38
|
|
39
39
|
# @!attribute orders
|
40
40
|
#
|
41
|
-
# @return [Array<TerminalShop::
|
42
|
-
required :orders, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::
|
41
|
+
# @return [Array<TerminalShop::OrderAPI>]
|
42
|
+
required :orders, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::OrderAPI] }
|
43
43
|
|
44
44
|
# @!attribute products
|
45
45
|
#
|
46
|
-
# @return [Array<TerminalShop::
|
47
|
-
required :products, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::
|
46
|
+
# @return [Array<TerminalShop::ProductAPI>]
|
47
|
+
required :products, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::ProductAPI] }
|
48
48
|
|
49
49
|
# @!attribute profile
|
50
50
|
# A Terminal shop user's profile. (We have users, btw.)
|
51
51
|
#
|
52
|
-
# @return [TerminalShop::
|
53
|
-
required :profile, -> { TerminalShop::
|
52
|
+
# @return [TerminalShop::ProfileAPI]
|
53
|
+
required :profile, -> { TerminalShop::ProfileAPI }
|
54
54
|
|
55
55
|
# @!attribute region
|
56
56
|
# A Terminal shop user's region.
|
57
57
|
#
|
58
|
-
# @return [Symbol, TerminalShop::
|
59
|
-
required :region, enum: -> { TerminalShop::
|
58
|
+
# @return [Symbol, TerminalShop::Region]
|
59
|
+
required :region, enum: -> { TerminalShop::Region }
|
60
60
|
|
61
61
|
# @!attribute subscriptions
|
62
62
|
#
|
63
|
-
# @return [Array<TerminalShop::
|
64
|
-
required :subscriptions,
|
65
|
-
-> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::Models::SubscriptionAPI] }
|
63
|
+
# @return [Array<TerminalShop::SubscriptionAPI>]
|
64
|
+
required :subscriptions, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::SubscriptionAPI] }
|
66
65
|
|
67
66
|
# @!attribute tokens
|
68
67
|
#
|
69
|
-
# @return [Array<TerminalShop::
|
70
|
-
required :tokens, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::
|
68
|
+
# @return [Array<TerminalShop::TokenAPI>]
|
69
|
+
required :tokens, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::TokenAPI] }
|
71
70
|
|
72
71
|
# @!method initialize(addresses:, apps:, cards:, cart:, orders:, products:, profile:, region:, subscriptions:, tokens:)
|
73
72
|
# Initial app data.
|
74
73
|
#
|
75
|
-
# @param addresses [Array<TerminalShop::
|
74
|
+
# @param addresses [Array<TerminalShop::AddressAPI>]
|
76
75
|
#
|
77
|
-
# @param apps [Array<TerminalShop::
|
76
|
+
# @param apps [Array<TerminalShop::AppAPI>]
|
78
77
|
#
|
79
|
-
# @param cards [Array<TerminalShop::
|
78
|
+
# @param cards [Array<TerminalShop::CardAPI>]
|
80
79
|
#
|
81
|
-
# @param cart [TerminalShop::
|
80
|
+
# @param cart [TerminalShop::CartAPI] The current Terminal shop user's cart.
|
82
81
|
#
|
83
|
-
# @param orders [Array<TerminalShop::
|
82
|
+
# @param orders [Array<TerminalShop::OrderAPI>]
|
84
83
|
#
|
85
|
-
# @param products [Array<TerminalShop::
|
84
|
+
# @param products [Array<TerminalShop::ProductAPI>]
|
86
85
|
#
|
87
|
-
# @param profile [TerminalShop::
|
86
|
+
# @param profile [TerminalShop::ProfileAPI] A Terminal shop user's profile. (We have users, btw.)
|
88
87
|
#
|
89
|
-
# @param region [Symbol, TerminalShop::
|
88
|
+
# @param region [Symbol, TerminalShop::Region] A Terminal shop user's region.
|
90
89
|
#
|
91
|
-
# @param subscriptions [Array<TerminalShop::
|
90
|
+
# @param subscriptions [Array<TerminalShop::SubscriptionAPI>]
|
92
91
|
#
|
93
|
-
# @param tokens [Array<TerminalShop::
|
92
|
+
# @param tokens [Array<TerminalShop::TokenAPI>]
|
94
93
|
end
|
95
94
|
end
|
96
95
|
end
|
@@ -29,7 +29,7 @@ module TerminalShop
|
|
29
29
|
#
|
30
30
|
# @see TerminalShop::Models::AddressCreateParams
|
31
31
|
def create(params)
|
32
|
-
parsed, options = TerminalShop::
|
32
|
+
parsed, options = TerminalShop::AddressCreateParams.dump_request(params)
|
33
33
|
@client.request(
|
34
34
|
method: :post,
|
35
35
|
path: "address",
|
@@ -15,7 +15,7 @@ module TerminalShop
|
|
15
15
|
#
|
16
16
|
# @see TerminalShop::Models::AppCreateParams
|
17
17
|
def create(params)
|
18
|
-
parsed, options = TerminalShop::
|
18
|
+
parsed, options = TerminalShop::AppCreateParams.dump_request(params)
|
19
19
|
@client.request(
|
20
20
|
method: :post,
|
21
21
|
path: "app",
|
@@ -11,7 +11,6 @@ module TerminalShop
|
|
11
11
|
# @overload create(token:, request_options: {})
|
12
12
|
#
|
13
13
|
# @param token [String] Stripe card token. Learn how to [create one here](https://docs.stripe.com/api/to
|
14
|
-
# ...
|
15
14
|
#
|
16
15
|
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}, nil]
|
17
16
|
#
|
@@ -19,7 +18,7 @@ module TerminalShop
|
|
19
18
|
#
|
20
19
|
# @see TerminalShop::Models::CardCreateParams
|
21
20
|
def create(params)
|
22
|
-
parsed, options = TerminalShop::
|
21
|
+
parsed, options = TerminalShop::CardCreateParams.dump_request(params)
|
23
22
|
@client.request(
|
24
23
|
method: :post,
|
25
24
|
path: "card",
|
@@ -69,7 +69,7 @@ module TerminalShop
|
|
69
69
|
#
|
70
70
|
# @see TerminalShop::Models::CartSetAddressParams
|
71
71
|
def set_address(params)
|
72
|
-
parsed, options = TerminalShop::
|
72
|
+
parsed, options = TerminalShop::CartSetAddressParams.dump_request(params)
|
73
73
|
@client.request(
|
74
74
|
method: :put,
|
75
75
|
path: "cart/address",
|
@@ -91,7 +91,7 @@ module TerminalShop
|
|
91
91
|
#
|
92
92
|
# @see TerminalShop::Models::CartSetCardParams
|
93
93
|
def set_card(params)
|
94
|
-
parsed, options = TerminalShop::
|
94
|
+
parsed, options = TerminalShop::CartSetCardParams.dump_request(params)
|
95
95
|
@client.request(
|
96
96
|
method: :put,
|
97
97
|
path: "cart/card",
|
@@ -115,7 +115,7 @@ module TerminalShop
|
|
115
115
|
#
|
116
116
|
# @see TerminalShop::Models::CartSetItemParams
|
117
117
|
def set_item(params)
|
118
|
-
parsed, options = TerminalShop::
|
118
|
+
parsed, options = TerminalShop::CartSetItemParams.dump_request(params)
|
119
119
|
@client.request(
|
120
120
|
method: :put,
|
121
121
|
path: "cart/item",
|
@@ -15,7 +15,7 @@ module TerminalShop
|
|
15
15
|
#
|
16
16
|
# @see TerminalShop::Models::EmailCreateParams
|
17
17
|
def create(params)
|
18
|
-
parsed, options = TerminalShop::
|
18
|
+
parsed, options = TerminalShop::EmailCreateParams.dump_request(params)
|
19
19
|
@client.request(
|
20
20
|
method: :post,
|
21
21
|
path: "email",
|
@@ -19,7 +19,7 @@ module TerminalShop
|
|
19
19
|
#
|
20
20
|
# @see TerminalShop::Models::OrderCreateParams
|
21
21
|
def create(params)
|
22
|
-
parsed, options = TerminalShop::
|
22
|
+
parsed, options = TerminalShop::OrderCreateParams.dump_request(params)
|
23
23
|
@client.request(
|
24
24
|
method: :post,
|
25
25
|
path: "order",
|
@@ -15,7 +15,7 @@ module TerminalShop
|
|
15
15
|
#
|
16
16
|
# @see TerminalShop::Models::ProfileUpdateParams
|
17
17
|
def update(params)
|
18
|
-
parsed, options = TerminalShop::
|
18
|
+
parsed, options = TerminalShop::ProfileUpdateParams.dump_request(params)
|
19
19
|
@client.request(
|
20
20
|
method: :put,
|
21
21
|
path: "profile",
|