terminal-shop 3.8.0 → 3.8.1
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 +15 -0
- data/README.md +1 -1
- data/lib/terminal_shop/internal/util.rb +5 -1
- data/lib/terminal_shop/models/address.rb +2 -2
- data/lib/terminal_shop/models/address_get_response.rb +2 -2
- data/lib/terminal_shop/models/address_list_response.rb +2 -2
- data/lib/terminal_shop/models/app.rb +2 -2
- data/lib/terminal_shop/models/app_get_response.rb +2 -2
- data/lib/terminal_shop/models/app_list_response.rb +2 -2
- data/lib/terminal_shop/models/card.rb +5 -5
- data/lib/terminal_shop/models/card_get_response.rb +2 -2
- data/lib/terminal_shop/models/card_list_response.rb +2 -2
- data/lib/terminal_shop/models/cart.rb +9 -9
- data/lib/terminal_shop/models/cart_convert_response.rb +2 -2
- data/lib/terminal_shop/models/cart_get_response.rb +2 -2
- data/lib/terminal_shop/models/cart_set_item_response.rb +2 -2
- data/lib/terminal_shop/models/order.rb +17 -17
- data/lib/terminal_shop/models/order_get_response.rb +2 -2
- data/lib/terminal_shop/models/order_list_response.rb +2 -2
- data/lib/terminal_shop/models/product.rb +10 -10
- data/lib/terminal_shop/models/product_get_response.rb +2 -2
- data/lib/terminal_shop/models/product_list_response.rb +2 -2
- data/lib/terminal_shop/models/product_variant.rb +4 -4
- data/lib/terminal_shop/models/profile.rb +4 -4
- data/lib/terminal_shop/models/profile_me_response.rb +2 -2
- data/lib/terminal_shop/models/profile_update_response.rb +2 -2
- data/lib/terminal_shop/models/subscription.rb +5 -5
- data/lib/terminal_shop/models/subscription_get_response.rb +2 -2
- data/lib/terminal_shop/models/subscription_list_response.rb +2 -2
- data/lib/terminal_shop/models/subscription_update_params.rb +3 -3
- data/lib/terminal_shop/models/subscription_update_response.rb +2 -2
- data/lib/terminal_shop/models/token.rb +2 -2
- data/lib/terminal_shop/models/token_get_response.rb +2 -2
- data/lib/terminal_shop/models/token_list_response.rb +2 -2
- data/lib/terminal_shop/models/view_init_response.rb +20 -20
- data/lib/terminal_shop/resources/subscription.rb +2 -2
- data/lib/terminal_shop/version.rb +1 -1
- data/sig/terminal_shop/models/address.rbs +13 -0
- data/sig/terminal_shop/models/address_create_params.rbs +12 -0
- data/sig/terminal_shop/models/address_create_response.rbs +2 -0
- data/sig/terminal_shop/models/address_delete_params.rbs +2 -0
- data/sig/terminal_shop/models/address_delete_response.rbs +2 -0
- data/sig/terminal_shop/models/address_get_params.rbs +2 -0
- data/sig/terminal_shop/models/address_get_response.rbs +2 -0
- data/sig/terminal_shop/models/address_list_params.rbs +2 -0
- data/sig/terminal_shop/models/address_list_response.rbs +2 -0
- data/sig/terminal_shop/models/app.rbs +7 -0
- data/sig/terminal_shop/models/app_create_params.rbs +6 -0
- data/sig/terminal_shop/models/app_create_response.rbs +4 -0
- data/sig/terminal_shop/models/app_delete_params.rbs +2 -0
- data/sig/terminal_shop/models/app_delete_response.rbs +2 -0
- data/sig/terminal_shop/models/app_get_params.rbs +2 -0
- data/sig/terminal_shop/models/app_get_response.rbs +2 -0
- data/sig/terminal_shop/models/app_list_params.rbs +2 -0
- data/sig/terminal_shop/models/app_list_response.rbs +2 -0
- data/sig/terminal_shop/models/card.rbs +10 -0
- data/sig/terminal_shop/models/card_collect_params.rbs +2 -0
- data/sig/terminal_shop/models/card_collect_response.rbs +4 -0
- data/sig/terminal_shop/models/card_create_params.rbs +5 -0
- data/sig/terminal_shop/models/card_create_response.rbs +2 -0
- data/sig/terminal_shop/models/card_delete_params.rbs +2 -0
- data/sig/terminal_shop/models/card_delete_response.rbs +2 -0
- data/sig/terminal_shop/models/card_get_params.rbs +2 -0
- data/sig/terminal_shop/models/card_get_response.rbs +2 -0
- data/sig/terminal_shop/models/card_list_params.rbs +2 -0
- data/sig/terminal_shop/models/card_list_response.rbs +2 -0
- data/sig/terminal_shop/models/cart.rbs +20 -0
- data/sig/terminal_shop/models/cart_clear_params.rbs +2 -0
- data/sig/terminal_shop/models/cart_clear_response.rbs +2 -0
- data/sig/terminal_shop/models/cart_convert_params.rbs +2 -0
- data/sig/terminal_shop/models/cart_convert_response.rbs +2 -0
- data/sig/terminal_shop/models/cart_get_params.rbs +2 -0
- data/sig/terminal_shop/models/cart_get_response.rbs +2 -0
- data/sig/terminal_shop/models/cart_set_address_params.rbs +5 -0
- data/sig/terminal_shop/models/cart_set_address_response.rbs +2 -0
- data/sig/terminal_shop/models/cart_set_card_params.rbs +5 -0
- data/sig/terminal_shop/models/cart_set_card_response.rbs +2 -0
- data/sig/terminal_shop/models/cart_set_item_params.rbs +6 -0
- data/sig/terminal_shop/models/cart_set_item_response.rbs +2 -0
- data/sig/terminal_shop/models/email_create_params.rbs +5 -0
- data/sig/terminal_shop/models/email_create_response.rbs +2 -0
- data/sig/terminal_shop/models/order.rbs +46 -6
- data/sig/terminal_shop/models/order_create_params.rbs +7 -0
- data/sig/terminal_shop/models/order_create_response.rbs +2 -0
- data/sig/terminal_shop/models/order_get_params.rbs +2 -0
- data/sig/terminal_shop/models/order_get_response.rbs +2 -0
- data/sig/terminal_shop/models/order_list_params.rbs +2 -0
- data/sig/terminal_shop/models/order_list_response.rbs +2 -0
- data/sig/terminal_shop/models/product.rbs +25 -6
- data/sig/terminal_shop/models/product_get_params.rbs +2 -0
- data/sig/terminal_shop/models/product_get_response.rbs +2 -0
- data/sig/terminal_shop/models/product_list_params.rbs +2 -0
- data/sig/terminal_shop/models/product_list_response.rbs +2 -0
- data/sig/terminal_shop/models/product_variant.rbs +15 -0
- data/sig/terminal_shop/models/profile.rbs +10 -0
- data/sig/terminal_shop/models/profile_me_params.rbs +2 -0
- data/sig/terminal_shop/models/profile_me_response.rbs +2 -0
- data/sig/terminal_shop/models/profile_update_params.rbs +6 -0
- data/sig/terminal_shop/models/profile_update_response.rbs +2 -0
- data/sig/terminal_shop/models/subscription.rbs +22 -6
- data/sig/terminal_shop/models/subscription_create_params.rbs +2 -0
- data/sig/terminal_shop/models/subscription_create_response.rbs +2 -0
- data/sig/terminal_shop/models/subscription_delete_params.rbs +2 -0
- data/sig/terminal_shop/models/subscription_delete_response.rbs +2 -0
- data/sig/terminal_shop/models/subscription_get_params.rbs +2 -0
- data/sig/terminal_shop/models/subscription_get_response.rbs +2 -0
- data/sig/terminal_shop/models/subscription_list_params.rbs +2 -0
- data/sig/terminal_shop/models/subscription_list_response.rbs +2 -0
- data/sig/terminal_shop/models/subscription_update_params.rbs +11 -0
- data/sig/terminal_shop/models/subscription_update_response.rbs +2 -0
- data/sig/terminal_shop/models/token.rbs +2 -0
- data/sig/terminal_shop/models/token_create_params.rbs +2 -0
- data/sig/terminal_shop/models/token_create_response.rbs +4 -0
- data/sig/terminal_shop/models/token_delete_params.rbs +2 -0
- data/sig/terminal_shop/models/token_delete_response.rbs +2 -0
- data/sig/terminal_shop/models/token_get_params.rbs +2 -0
- data/sig/terminal_shop/models/token_get_response.rbs +2 -0
- data/sig/terminal_shop/models/token_list_params.rbs +2 -0
- data/sig/terminal_shop/models/token_list_response.rbs +2 -0
- data/sig/terminal_shop/models/view_init_params.rbs +2 -0
- data/sig/terminal_shop/models/view_init_response.rbs +15 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 599e129d7291d6af08b3d81afb02569f0b59daf1db3ab1b9e0aab5eb8420c8b1
|
4
|
+
data.tar.gz: 80ac8c28092fb302019fc19c536258f4fae23ce8777108dde50898fe49f6572e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1214379df3ea55463a0e23d01249c474ad3ca6e29c70d127e153787a59cbb82552ec12818867948f7a90774fff3fe571d22c09a2d7c6a6c31b7ad8048f1f57c6
|
7
|
+
data.tar.gz: '0592dcc2f02b159ea20773cd02caaf9c3d49d9a6ed27ff72b8e824455f30468f608f649e8bb4f97d7821a55c5ede02908920aa1b7b5ecb9f61774c73d40fe722'
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 3.8.1 (2025-05-24)
|
4
|
+
|
5
|
+
Full Changelog: [v3.8.0...v3.8.1](https://github.com/terminaldotshop/terminal-sdk-ruby/compare/v3.8.0...v3.8.1)
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
* prevent rubocop from mangling `===` to `is_a?` check ([ef67cc1](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/ef67cc123e98b33e690847f476fec8301fb48081))
|
10
|
+
|
11
|
+
|
12
|
+
### Chores
|
13
|
+
|
14
|
+
* force utf-8 locale via `RUBYOPT` when formatting ([f38a6fe](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/f38a6feeb6dd8fc0771bb885cdd61c6d2cdedd84))
|
15
|
+
* **internal:** codegen related update ([ed70989](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/ed70989fc05a5d6e3736656467c9b838757db6eb))
|
16
|
+
* use fully qualified names for yard annotations and rbs aliases ([ea3d97a](https://github.com/terminaldotshop/terminal-sdk-ruby/commit/ea3d97acf7a9d7d01d5e10f6f5f990c0994c396f))
|
17
|
+
|
3
18
|
## 3.8.0 (2025-05-22)
|
4
19
|
|
5
20
|
Full Changelog: [v3.7.0...v3.8.0](https://github.com/terminaldotshop/terminal-sdk-ruby/compare/v3.7.0...v3.8.0)
|
data/README.md
CHANGED
@@ -600,11 +600,13 @@ module TerminalShop
|
|
600
600
|
#
|
601
601
|
# @return [Object]
|
602
602
|
def encode_content(headers, body)
|
603
|
+
# rubocop:disable Style/CaseEquality
|
604
|
+
# rubocop:disable Layout/LineLength
|
603
605
|
content_type = headers["content-type"]
|
604
606
|
case [content_type, body]
|
605
607
|
in [TerminalShop::Internal::Util::JSON_CONTENT, Hash | Array | -> { primitive?(_1) }]
|
606
608
|
[headers, JSON.generate(body)]
|
607
|
-
in [TerminalShop::Internal::Util::JSONL_CONTENT, Enumerable] unless
|
609
|
+
in [TerminalShop::Internal::Util::JSONL_CONTENT, Enumerable] unless TerminalShop::Internal::Type::FileInput === body
|
608
610
|
[headers, body.lazy.map { JSON.generate(_1) }]
|
609
611
|
in [%r{^multipart/form-data}, Hash | TerminalShop::Internal::Type::FileInput]
|
610
612
|
boundary, strio = encode_multipart_streaming(body)
|
@@ -619,6 +621,8 @@ module TerminalShop
|
|
619
621
|
else
|
620
622
|
[headers, body]
|
621
623
|
end
|
624
|
+
# rubocop:enable Layout/LineLength
|
625
|
+
# rubocop:enable Style/CaseEquality
|
622
626
|
end
|
623
627
|
|
624
628
|
# @api private
|
@@ -64,8 +64,8 @@ module TerminalShop
|
|
64
64
|
optional :street2, String
|
65
65
|
|
66
66
|
# @!method initialize(id:, city:, country:, created:, name:, street1:, zip:, phone: nil, province: nil, street2: nil)
|
67
|
-
# Some parameter documentations has been truncated, see
|
68
|
-
# for more details.
|
67
|
+
# Some parameter documentations has been truncated, see
|
68
|
+
# {TerminalShop::Models::AddressAPI} for more details.
|
69
69
|
#
|
70
70
|
# Physical address associated with a Terminal shop user.
|
71
71
|
#
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# Physical address associated with a Terminal shop user.
|
9
9
|
#
|
10
|
-
# @return [TerminalShop::AddressAPI]
|
10
|
+
# @return [TerminalShop::Models::AddressAPI]
|
11
11
|
required :data, -> { TerminalShop::AddressAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::AddressAPI] Physical address associated with a Terminal shop user.
|
14
|
+
# @param data [TerminalShop::Models::AddressAPI] Physical address associated with a Terminal shop user.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# Shipping addresses.
|
9
9
|
#
|
10
|
-
# @return [Array<TerminalShop::AddressAPI>]
|
10
|
+
# @return [Array<TerminalShop::Models::AddressAPI>]
|
11
11
|
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::AddressAPI] }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [Array<TerminalShop::AddressAPI>] Shipping addresses.
|
14
|
+
# @param data [Array<TerminalShop::Models::AddressAPI>] Shipping addresses.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -28,8 +28,8 @@ module TerminalShop
|
|
28
28
|
required :secret, String
|
29
29
|
|
30
30
|
# @!method initialize(id:, name:, redirect_uri:, secret:)
|
31
|
-
# Some parameter documentations has been truncated, see
|
32
|
-
# more details.
|
31
|
+
# Some parameter documentations has been truncated, see
|
32
|
+
# {TerminalShop::Models::AppAPI} for more details.
|
33
33
|
#
|
34
34
|
# A Terminal App used for configuring an OAuth 2.0 client.
|
35
35
|
#
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# A Terminal App used for configuring an OAuth 2.0 client.
|
9
9
|
#
|
10
|
-
# @return [TerminalShop::AppAPI]
|
10
|
+
# @return [TerminalShop::Models::AppAPI]
|
11
11
|
required :data, -> { TerminalShop::AppAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::AppAPI] A Terminal App used for configuring an OAuth 2.0 client.
|
14
|
+
# @param data [TerminalShop::Models::AppAPI] A Terminal App used for configuring an OAuth 2.0 client.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# List of apps.
|
9
9
|
#
|
10
|
-
# @return [Array<TerminalShop::AppAPI>]
|
10
|
+
# @return [Array<TerminalShop::Models::AppAPI>]
|
11
11
|
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::AppAPI] }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [Array<TerminalShop::AppAPI>] List of apps.
|
14
|
+
# @param data [Array<TerminalShop::Models::AppAPI>] List of apps.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -24,7 +24,7 @@ module TerminalShop
|
|
24
24
|
# @!attribute expiration
|
25
25
|
# Expiration of the card.
|
26
26
|
#
|
27
|
-
# @return [TerminalShop::CardAPI::Expiration]
|
27
|
+
# @return [TerminalShop::Models::CardAPI::Expiration]
|
28
28
|
required :expiration, -> { TerminalShop::CardAPI::Expiration }
|
29
29
|
|
30
30
|
# @!attribute last4
|
@@ -34,8 +34,8 @@ module TerminalShop
|
|
34
34
|
required :last4, String
|
35
35
|
|
36
36
|
# @!method initialize(id:, brand:, created:, expiration:, last4:)
|
37
|
-
# Some parameter documentations has been truncated, see
|
38
|
-
# for more details.
|
37
|
+
# Some parameter documentations has been truncated, see
|
38
|
+
# {TerminalShop::Models::CardAPI} for more details.
|
39
39
|
#
|
40
40
|
# Credit card used for payments in the Terminal shop.
|
41
41
|
#
|
@@ -45,11 +45,11 @@ module TerminalShop
|
|
45
45
|
#
|
46
46
|
# @param created [String] Date the card was created.
|
47
47
|
#
|
48
|
-
# @param expiration [TerminalShop::CardAPI::Expiration] Expiration of the card.
|
48
|
+
# @param expiration [TerminalShop::Models::CardAPI::Expiration] Expiration of the card.
|
49
49
|
#
|
50
50
|
# @param last4 [String] Last four digits of the card.
|
51
51
|
|
52
|
-
# @see TerminalShop::CardAPI#expiration
|
52
|
+
# @see TerminalShop::Models::CardAPI#expiration
|
53
53
|
class Expiration < TerminalShop::Internal::Type::BaseModel
|
54
54
|
# @!attribute month
|
55
55
|
# Expiration month of the card.
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# Credit card used for payments in the Terminal shop.
|
9
9
|
#
|
10
|
-
# @return [TerminalShop::CardAPI]
|
10
|
+
# @return [TerminalShop::Models::CardAPI]
|
11
11
|
required :data, -> { TerminalShop::CardAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::CardAPI] Credit card used for payments in the Terminal shop.
|
14
|
+
# @param data [TerminalShop::Models::CardAPI] Credit card used for payments 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
|
# List of cards associated with the user.
|
9
9
|
#
|
10
|
-
# @return [Array<TerminalShop::CardAPI>]
|
10
|
+
# @return [Array<TerminalShop::Models::CardAPI>]
|
11
11
|
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::CardAPI] }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [Array<TerminalShop::CardAPI>] List of cards associated with the user.
|
14
|
+
# @param data [Array<TerminalShop::Models::CardAPI>] List of cards associated with the user.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -6,13 +6,13 @@ module TerminalShop
|
|
6
6
|
# @!attribute amount
|
7
7
|
# The subtotal and shipping amounts for the current user's cart.
|
8
8
|
#
|
9
|
-
# @return [TerminalShop::CartAPI::Amount]
|
9
|
+
# @return [TerminalShop::Models::CartAPI::Amount]
|
10
10
|
required :amount, -> { TerminalShop::CartAPI::Amount }
|
11
11
|
|
12
12
|
# @!attribute items
|
13
13
|
# An array of items in the current user's cart.
|
14
14
|
#
|
15
|
-
# @return [Array<TerminalShop::CartAPI::Item>]
|
15
|
+
# @return [Array<TerminalShop::Models::CartAPI::Item>]
|
16
16
|
required :items, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::CartAPI::Item] }
|
17
17
|
|
18
18
|
# @!attribute subtotal
|
@@ -36,15 +36,15 @@ module TerminalShop
|
|
36
36
|
# @!attribute shipping
|
37
37
|
# Shipping information for the current user's cart.
|
38
38
|
#
|
39
|
-
# @return [TerminalShop::CartAPI::Shipping, nil]
|
39
|
+
# @return [TerminalShop::Models::CartAPI::Shipping, nil]
|
40
40
|
optional :shipping, -> { TerminalShop::CartAPI::Shipping }
|
41
41
|
|
42
42
|
# @!method initialize(amount:, items:, subtotal:, address_id: nil, card_id: nil, shipping: nil)
|
43
43
|
# The current Terminal shop user's cart.
|
44
44
|
#
|
45
|
-
# @param amount [TerminalShop::CartAPI::Amount] The subtotal and shipping amounts for the current user's cart.
|
45
|
+
# @param amount [TerminalShop::Models::CartAPI::Amount] The subtotal and shipping amounts for the current user's cart.
|
46
46
|
#
|
47
|
-
# @param items [Array<TerminalShop::CartAPI::Item>] An array of items in the current user's cart.
|
47
|
+
# @param items [Array<TerminalShop::Models::CartAPI::Item>] An array of items in the current user's cart.
|
48
48
|
#
|
49
49
|
# @param subtotal [Integer] The subtotal of all items in the current user's cart, in cents (USD).
|
50
50
|
#
|
@@ -52,9 +52,9 @@ module TerminalShop
|
|
52
52
|
#
|
53
53
|
# @param card_id [String] ID of the card selected on the current user's cart.
|
54
54
|
#
|
55
|
-
# @param shipping [TerminalShop::CartAPI::Shipping] Shipping information for the current user's cart.
|
55
|
+
# @param shipping [TerminalShop::Models::CartAPI::Shipping] Shipping information for the current user's cart.
|
56
56
|
|
57
|
-
# @see TerminalShop::CartAPI#amount
|
57
|
+
# @see TerminalShop::Models::CartAPI#amount
|
58
58
|
class Amount < TerminalShop::Internal::Type::BaseModel
|
59
59
|
# @!attribute subtotal
|
60
60
|
# Subtotal of the current user's cart, in cents (USD).
|
@@ -111,7 +111,7 @@ module TerminalShop
|
|
111
111
|
|
112
112
|
# @!method initialize(id:, product_variant_id:, quantity:, subtotal:)
|
113
113
|
# Some parameter documentations has been truncated, see
|
114
|
-
# {TerminalShop::CartAPI::Item} for more details.
|
114
|
+
# {TerminalShop::Models::CartAPI::Item} for more details.
|
115
115
|
#
|
116
116
|
# An item in the current Terminal shop user's cart.
|
117
117
|
#
|
@@ -124,7 +124,7 @@ module TerminalShop
|
|
124
124
|
# @param subtotal [Integer] Subtotal of the item in the current user's cart, in cents (USD).
|
125
125
|
end
|
126
126
|
|
127
|
-
# @see TerminalShop::CartAPI#shipping
|
127
|
+
# @see TerminalShop::Models::CartAPI#shipping
|
128
128
|
class Shipping < TerminalShop::Internal::Type::BaseModel
|
129
129
|
# @!attribute service
|
130
130
|
# Shipping service name.
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# An order from the Terminal shop.
|
9
9
|
#
|
10
|
-
# @return [TerminalShop::OrderAPI]
|
10
|
+
# @return [TerminalShop::Models::OrderAPI]
|
11
11
|
required :data, -> { TerminalShop::OrderAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::OrderAPI] An order from the Terminal shop.
|
14
|
+
# @param data [TerminalShop::Models::OrderAPI] An order from the Terminal shop.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# The current Terminal shop user's cart.
|
9
9
|
#
|
10
|
-
# @return [TerminalShop::CartAPI]
|
10
|
+
# @return [TerminalShop::Models::CartAPI]
|
11
11
|
required :data, -> { TerminalShop::CartAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::CartAPI] The current Terminal shop user's cart.
|
14
|
+
# @param data [TerminalShop::Models::CartAPI] The current Terminal shop user's cart.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# The current Terminal shop user's cart.
|
9
9
|
#
|
10
|
-
# @return [TerminalShop::CartAPI]
|
10
|
+
# @return [TerminalShop::Models::CartAPI]
|
11
11
|
required :data, -> { TerminalShop::CartAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::CartAPI] The current Terminal shop user's cart.
|
14
|
+
# @param data [TerminalShop::Models::CartAPI] The current Terminal shop user's cart.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -12,7 +12,7 @@ module TerminalShop
|
|
12
12
|
# @!attribute amount
|
13
13
|
# The subtotal and shipping amounts of the order.
|
14
14
|
#
|
15
|
-
# @return [TerminalShop::OrderAPI::Amount]
|
15
|
+
# @return [TerminalShop::Models::OrderAPI::Amount]
|
16
16
|
required :amount, -> { TerminalShop::OrderAPI::Amount }
|
17
17
|
|
18
18
|
# @!attribute created
|
@@ -24,19 +24,19 @@ module TerminalShop
|
|
24
24
|
# @!attribute items
|
25
25
|
# Items in the order.
|
26
26
|
#
|
27
|
-
# @return [Array<TerminalShop::OrderAPI::Item>]
|
27
|
+
# @return [Array<TerminalShop::Models::OrderAPI::Item>]
|
28
28
|
required :items, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::OrderAPI::Item] }
|
29
29
|
|
30
30
|
# @!attribute shipping
|
31
31
|
# Shipping address of the order.
|
32
32
|
#
|
33
|
-
# @return [TerminalShop::OrderAPI::Shipping]
|
33
|
+
# @return [TerminalShop::Models::OrderAPI::Shipping]
|
34
34
|
required :shipping, -> { TerminalShop::OrderAPI::Shipping }
|
35
35
|
|
36
36
|
# @!attribute tracking
|
37
37
|
# Tracking information of the order.
|
38
38
|
#
|
39
|
-
# @return [TerminalShop::OrderAPI::Tracking]
|
39
|
+
# @return [TerminalShop::Models::OrderAPI::Tracking]
|
40
40
|
required :tracking, -> { TerminalShop::OrderAPI::Tracking }
|
41
41
|
|
42
42
|
# @!attribute index
|
@@ -46,26 +46,26 @@ module TerminalShop
|
|
46
46
|
optional :index, Integer
|
47
47
|
|
48
48
|
# @!method initialize(id:, amount:, created:, items:, shipping:, tracking:, index: nil)
|
49
|
-
# Some parameter documentations has been truncated, see
|
50
|
-
# for more details.
|
49
|
+
# Some parameter documentations has been truncated, see
|
50
|
+
# {TerminalShop::Models::OrderAPI} for more details.
|
51
51
|
#
|
52
52
|
# An order from the Terminal shop.
|
53
53
|
#
|
54
54
|
# @param id [String] Unique object identifier.
|
55
55
|
#
|
56
|
-
# @param amount [TerminalShop::OrderAPI::Amount] The subtotal and shipping amounts of the order.
|
56
|
+
# @param amount [TerminalShop::Models::OrderAPI::Amount] The subtotal and shipping amounts of the order.
|
57
57
|
#
|
58
58
|
# @param created [String] Date the order was created.
|
59
59
|
#
|
60
|
-
# @param items [Array<TerminalShop::OrderAPI::Item>] Items in the order.
|
60
|
+
# @param items [Array<TerminalShop::Models::OrderAPI::Item>] Items in the order.
|
61
61
|
#
|
62
|
-
# @param shipping [TerminalShop::OrderAPI::Shipping] Shipping address of the order.
|
62
|
+
# @param shipping [TerminalShop::Models::OrderAPI::Shipping] Shipping address of the order.
|
63
63
|
#
|
64
|
-
# @param tracking [TerminalShop::OrderAPI::Tracking] Tracking information of the order.
|
64
|
+
# @param tracking [TerminalShop::Models::OrderAPI::Tracking] Tracking information of the order.
|
65
65
|
#
|
66
66
|
# @param index [Integer] Zero-based index of the order for this user only.
|
67
67
|
|
68
|
-
# @see TerminalShop::OrderAPI#amount
|
68
|
+
# @see TerminalShop::Models::OrderAPI#amount
|
69
69
|
class Amount < TerminalShop::Internal::Type::BaseModel
|
70
70
|
# @!attribute shipping
|
71
71
|
# Shipping amount of the order, in cents (USD).
|
@@ -120,7 +120,7 @@ module TerminalShop
|
|
120
120
|
|
121
121
|
# @!method initialize(id:, amount:, quantity:, description: nil, product_variant_id: nil)
|
122
122
|
# Some parameter documentations has been truncated, see
|
123
|
-
# {TerminalShop::OrderAPI::Item} for more details.
|
123
|
+
# {TerminalShop::Models::OrderAPI::Item} for more details.
|
124
124
|
#
|
125
125
|
# @param id [String] Unique object identifier.
|
126
126
|
#
|
@@ -133,7 +133,7 @@ module TerminalShop
|
|
133
133
|
# @param product_variant_id [String] ID of the product variant of the item in the order.
|
134
134
|
end
|
135
135
|
|
136
|
-
# @see TerminalShop::OrderAPI#shipping
|
136
|
+
# @see TerminalShop::Models::OrderAPI#shipping
|
137
137
|
class Shipping < TerminalShop::Internal::Type::BaseModel
|
138
138
|
# @!attribute city
|
139
139
|
# City of the address.
|
@@ -203,7 +203,7 @@ module TerminalShop
|
|
203
203
|
# @param street2 [String] Apartment, suite, etc. of the address.
|
204
204
|
end
|
205
205
|
|
206
|
-
# @see TerminalShop::OrderAPI#tracking
|
206
|
+
# @see TerminalShop::Models::OrderAPI#tracking
|
207
207
|
class Tracking < TerminalShop::Internal::Type::BaseModel
|
208
208
|
# @!attribute number
|
209
209
|
# Tracking number of the order.
|
@@ -220,7 +220,7 @@ module TerminalShop
|
|
220
220
|
# @!attribute status
|
221
221
|
# Current tracking status of the shipment.
|
222
222
|
#
|
223
|
-
# @return [Symbol, TerminalShop::OrderAPI::Tracking::Status, nil]
|
223
|
+
# @return [Symbol, TerminalShop::Models::OrderAPI::Tracking::Status, nil]
|
224
224
|
optional :status, enum: -> { TerminalShop::OrderAPI::Tracking::Status }
|
225
225
|
|
226
226
|
# @!attribute status_details
|
@@ -248,7 +248,7 @@ module TerminalShop
|
|
248
248
|
#
|
249
249
|
# @param service [String] Shipping service of the order.
|
250
250
|
#
|
251
|
-
# @param status [Symbol, TerminalShop::OrderAPI::Tracking::Status] Current tracking status of the shipment.
|
251
|
+
# @param status [Symbol, TerminalShop::Models::OrderAPI::Tracking::Status] Current tracking status of the shipment.
|
252
252
|
#
|
253
253
|
# @param status_details [String] Additional details about the tracking status.
|
254
254
|
#
|
@@ -258,7 +258,7 @@ module TerminalShop
|
|
258
258
|
|
259
259
|
# Current tracking status of the shipment.
|
260
260
|
#
|
261
|
-
# @see TerminalShop::OrderAPI::Tracking#status
|
261
|
+
# @see TerminalShop::Models::OrderAPI::Tracking#status
|
262
262
|
module Status
|
263
263
|
extend TerminalShop::Internal::Type::Enum
|
264
264
|
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# An order from the Terminal shop.
|
9
9
|
#
|
10
|
-
# @return [TerminalShop::OrderAPI]
|
10
|
+
# @return [TerminalShop::Models::OrderAPI]
|
11
11
|
required :data, -> { TerminalShop::OrderAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::OrderAPI] An order from the Terminal shop.
|
14
|
+
# @param data [TerminalShop::Models::OrderAPI] An order from the Terminal shop.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -7,11 +7,11 @@ module TerminalShop
|
|
7
7
|
# @!attribute data
|
8
8
|
# List of orders.
|
9
9
|
#
|
10
|
-
# @return [Array<TerminalShop::OrderAPI>]
|
10
|
+
# @return [Array<TerminalShop::Models::OrderAPI>]
|
11
11
|
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::OrderAPI] }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [Array<TerminalShop::OrderAPI>] List of orders.
|
14
|
+
# @param data [Array<TerminalShop::Models::OrderAPI>] List of orders.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -24,7 +24,7 @@ module TerminalShop
|
|
24
24
|
# @!attribute variants
|
25
25
|
# List of variants of the product.
|
26
26
|
#
|
27
|
-
# @return [Array<TerminalShop::ProductVariant>]
|
27
|
+
# @return [Array<TerminalShop::Models::ProductVariant>]
|
28
28
|
required :variants, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::ProductVariant] }
|
29
29
|
|
30
30
|
# @!attribute order
|
@@ -36,18 +36,18 @@ module TerminalShop
|
|
36
36
|
# @!attribute subscription
|
37
37
|
# Whether the product must be or can be subscribed to.
|
38
38
|
#
|
39
|
-
# @return [Symbol, TerminalShop::ProductAPI::Subscription, nil]
|
39
|
+
# @return [Symbol, TerminalShop::Models::ProductAPI::Subscription, nil]
|
40
40
|
optional :subscription, enum: -> { TerminalShop::ProductAPI::Subscription }
|
41
41
|
|
42
42
|
# @!attribute tags
|
43
43
|
# Tags for the product.
|
44
44
|
#
|
45
|
-
# @return [TerminalShop::ProductAPI::Tags, nil]
|
45
|
+
# @return [TerminalShop::Models::ProductAPI::Tags, nil]
|
46
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
|
-
# for more details.
|
49
|
+
# Some parameter documentations has been truncated, see
|
50
|
+
# {TerminalShop::Models::ProductAPI} for more details.
|
51
51
|
#
|
52
52
|
# Product sold in the Terminal shop.
|
53
53
|
#
|
@@ -57,17 +57,17 @@ module TerminalShop
|
|
57
57
|
#
|
58
58
|
# @param name [String] Name of the product.
|
59
59
|
#
|
60
|
-
# @param variants [Array<TerminalShop::ProductVariant>] List of variants of the product.
|
60
|
+
# @param variants [Array<TerminalShop::Models::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::ProductAPI::Subscription] Whether the product must be or can be subscribed to.
|
64
|
+
# @param subscription [Symbol, TerminalShop::Models::ProductAPI::Subscription] Whether the product must be or can be subscribed to.
|
65
65
|
#
|
66
|
-
# @param tags [TerminalShop::ProductAPI::Tags] Tags for the product.
|
66
|
+
# @param tags [TerminalShop::Models::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::ProductAPI#subscription
|
70
|
+
# @see TerminalShop::Models::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::ProductAPI#tags
|
81
|
+
# @see TerminalShop::Models::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::ProductAPI]
|
10
|
+
# @return [TerminalShop::Models::ProductAPI]
|
11
11
|
required :data, -> { TerminalShop::ProductAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::ProductAPI] Product sold in the Terminal shop.
|
14
|
+
# @param data [TerminalShop::Models::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::ProductAPI>]
|
10
|
+
# @return [Array<TerminalShop::Models::ProductAPI>]
|
11
11
|
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::ProductAPI] }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [Array<TerminalShop::ProductAPI>] A list of products.
|
14
|
+
# @param data [Array<TerminalShop::Models::ProductAPI>] A list of products.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -30,12 +30,12 @@ module TerminalShop
|
|
30
30
|
# @!attribute tags
|
31
31
|
# Tags for the product variant.
|
32
32
|
#
|
33
|
-
# @return [TerminalShop::ProductVariant::Tags, nil]
|
33
|
+
# @return [TerminalShop::Models::ProductVariant::Tags, nil]
|
34
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::ProductVariant} for more details.
|
38
|
+
# {TerminalShop::Models::ProductVariant} for more details.
|
39
39
|
#
|
40
40
|
# Variant of a product in the Terminal shop.
|
41
41
|
#
|
@@ -47,9 +47,9 @@ module TerminalShop
|
|
47
47
|
#
|
48
48
|
# @param description [String] Description of the product variant.
|
49
49
|
#
|
50
|
-
# @param tags [TerminalShop::ProductVariant::Tags] Tags for the product variant.
|
50
|
+
# @param tags [TerminalShop::Models::ProductVariant::Tags] Tags for the product variant.
|
51
51
|
|
52
|
-
# @see TerminalShop::ProductVariant#tags
|
52
|
+
# @see TerminalShop::Models::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::ProfileAPI::User]
|
9
|
+
# @return [TerminalShop::Models::ProfileAPI::User]
|
10
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::ProfileAPI::User] A Terminal shop user. (We have users, btw.)
|
15
|
+
# @param user [TerminalShop::Models::ProfileAPI::User] A Terminal shop user. (We have users, btw.)
|
16
16
|
|
17
|
-
# @see TerminalShop::ProfileAPI#user
|
17
|
+
# @see TerminalShop::Models::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,7 +48,7 @@ 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::ProfileAPI::User} for more details.
|
51
|
+
# {TerminalShop::Models::ProfileAPI::User} for more details.
|
52
52
|
#
|
53
53
|
# A Terminal shop user. (We have users, btw.)
|
54
54
|
#
|
@@ -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::ProfileAPI]
|
10
|
+
# @return [TerminalShop::Models::ProfileAPI]
|
11
11
|
required :data, -> { TerminalShop::ProfileAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::ProfileAPI] A Terminal shop user's profile. (We have users, btw.)
|
14
|
+
# @param data [TerminalShop::Models::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::ProfileAPI]
|
10
|
+
# @return [TerminalShop::Models::ProfileAPI]
|
11
11
|
required :data, -> { TerminalShop::ProfileAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::ProfileAPI] A Terminal shop user's profile. (We have users, btw.)
|
14
|
+
# @param data [TerminalShop::Models::ProfileAPI] A Terminal shop user's profile. (We have users, btw.)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|