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
@@ -54,12 +54,12 @@ module TerminalShop
|
|
54
54
|
# @!attribute schedule
|
55
55
|
# Schedule of the subscription.
|
56
56
|
#
|
57
|
-
# @return [TerminalShop::SubscriptionAPI::Schedule::Fixed, TerminalShop::SubscriptionAPI::Schedule::Weekly, nil]
|
57
|
+
# @return [TerminalShop::Models::SubscriptionAPI::Schedule::Fixed, TerminalShop::Models::SubscriptionAPI::Schedule::Weekly, nil]
|
58
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::SubscriptionAPI} for more details.
|
62
|
+
# {TerminalShop::Models::SubscriptionAPI} for more details.
|
63
63
|
#
|
64
64
|
# Subscription to a Terminal shop product.
|
65
65
|
#
|
@@ -79,11 +79,11 @@ module TerminalShop
|
|
79
79
|
#
|
80
80
|
# @param next_ [String] Next shipment and billing date for the subscription.
|
81
81
|
#
|
82
|
-
# @param schedule [TerminalShop::SubscriptionAPI::Schedule::Fixed, TerminalShop::SubscriptionAPI::Schedule::Weekly] Schedule of the subscription.
|
82
|
+
# @param schedule [TerminalShop::Models::SubscriptionAPI::Schedule::Fixed, TerminalShop::Models::SubscriptionAPI::Schedule::Weekly] Schedule of the subscription.
|
83
83
|
|
84
84
|
# Schedule of the subscription.
|
85
85
|
#
|
86
|
-
# @see TerminalShop::SubscriptionAPI#schedule
|
86
|
+
# @see TerminalShop::Models::SubscriptionAPI#schedule
|
87
87
|
module Schedule
|
88
88
|
extend TerminalShop::Internal::Type::Union
|
89
89
|
|
@@ -118,7 +118,7 @@ module TerminalShop
|
|
118
118
|
end
|
119
119
|
|
120
120
|
# @!method self.variants
|
121
|
-
# @return [Array(TerminalShop::SubscriptionAPI::Schedule::Fixed, TerminalShop::SubscriptionAPI::Schedule::Weekly)]
|
121
|
+
# @return [Array(TerminalShop::Models::SubscriptionAPI::Schedule::Fixed, TerminalShop::Models::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::SubscriptionAPI]
|
10
|
+
# @return [TerminalShop::Models::SubscriptionAPI]
|
11
11
|
required :data, -> { TerminalShop::SubscriptionAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::SubscriptionAPI] Subscription to a Terminal shop product.
|
14
|
+
# @param data [TerminalShop::Models::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::SubscriptionAPI>]
|
10
|
+
# @return [Array<TerminalShop::Models::SubscriptionAPI>]
|
11
11
|
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::SubscriptionAPI] }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [Array<TerminalShop::SubscriptionAPI>] List of subscriptions.
|
14
|
+
# @param data [Array<TerminalShop::Models::SubscriptionAPI>] List of subscriptions.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -22,7 +22,7 @@ module TerminalShop
|
|
22
22
|
# @!attribute schedule
|
23
23
|
# New schedule for the subscription.
|
24
24
|
#
|
25
|
-
# @return [TerminalShop::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::SubscriptionUpdateParams::Schedule::Weekly, nil]
|
25
|
+
# @return [TerminalShop::Models::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::Models::SubscriptionUpdateParams::Schedule::Weekly, nil]
|
26
26
|
optional :schedule, union: -> { TerminalShop::SubscriptionUpdateParams::Schedule }
|
27
27
|
|
28
28
|
# @!method initialize(address_id: nil, card_id: nil, schedule: nil, request_options: {})
|
@@ -30,7 +30,7 @@ module TerminalShop
|
|
30
30
|
#
|
31
31
|
# @param card_id [String] New payment method ID for the subscription.
|
32
32
|
#
|
33
|
-
# @param schedule [TerminalShop::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::SubscriptionUpdateParams::Schedule::Weekly] New schedule for the subscription.
|
33
|
+
# @param schedule [TerminalShop::Models::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::Models::SubscriptionUpdateParams::Schedule::Weekly] New schedule for the subscription.
|
34
34
|
#
|
35
35
|
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}]
|
36
36
|
|
@@ -69,7 +69,7 @@ module TerminalShop
|
|
69
69
|
end
|
70
70
|
|
71
71
|
# @!method self.variants
|
72
|
-
# @return [Array(TerminalShop::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::SubscriptionUpdateParams::Schedule::Weekly)]
|
72
|
+
# @return [Array(TerminalShop::Models::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::Models::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::SubscriptionAPI]
|
10
|
+
# @return [TerminalShop::Models::SubscriptionAPI]
|
11
11
|
required :data, -> { TerminalShop::SubscriptionAPI }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [TerminalShop::SubscriptionAPI] Subscription to a Terminal shop product.
|
14
|
+
# @param data [TerminalShop::Models::SubscriptionAPI] Subscription to a Terminal shop product.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -22,8 +22,8 @@ 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
|
-
# for more details.
|
25
|
+
# Some parameter documentations has been truncated, see
|
26
|
+
# {TerminalShop::Models::TokenAPI} 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.
|
@@ -8,14 +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::TokenAPI]
|
11
|
+
# @return [TerminalShop::Models::TokenAPI]
|
12
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::TokenAPI] A personal access token used to access the Terminal API. If you leak this, expec
|
18
|
+
# @param data [TerminalShop::Models::TokenAPI] A personal access token used to access the Terminal API. If you leak this, expec
|
19
19
|
end
|
20
20
|
end
|
21
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::TokenAPI>]
|
10
|
+
# @return [Array<TerminalShop::Models::TokenAPI>]
|
11
11
|
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::TokenAPI] }
|
12
12
|
|
13
13
|
# @!method initialize(data:)
|
14
|
-
# @param data [Array<TerminalShop::TokenAPI>] List of personal access tokens.
|
14
|
+
# @param data [Array<TerminalShop::Models::TokenAPI>] List of personal access tokens.
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -17,79 +17,79 @@ module TerminalShop
|
|
17
17
|
class Data < TerminalShop::Internal::Type::BaseModel
|
18
18
|
# @!attribute addresses
|
19
19
|
#
|
20
|
-
# @return [Array<TerminalShop::AddressAPI>]
|
20
|
+
# @return [Array<TerminalShop::Models::AddressAPI>]
|
21
21
|
required :addresses, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::AddressAPI] }
|
22
22
|
|
23
23
|
# @!attribute apps
|
24
24
|
#
|
25
|
-
# @return [Array<TerminalShop::AppAPI>]
|
25
|
+
# @return [Array<TerminalShop::Models::AppAPI>]
|
26
26
|
required :apps, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::AppAPI] }
|
27
27
|
|
28
28
|
# @!attribute cards
|
29
29
|
#
|
30
|
-
# @return [Array<TerminalShop::CardAPI>]
|
30
|
+
# @return [Array<TerminalShop::Models::CardAPI>]
|
31
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::CartAPI]
|
36
|
+
# @return [TerminalShop::Models::CartAPI]
|
37
37
|
required :cart, -> { TerminalShop::CartAPI }
|
38
38
|
|
39
39
|
# @!attribute orders
|
40
40
|
#
|
41
|
-
# @return [Array<TerminalShop::OrderAPI>]
|
41
|
+
# @return [Array<TerminalShop::Models::OrderAPI>]
|
42
42
|
required :orders, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::OrderAPI] }
|
43
43
|
|
44
44
|
# @!attribute products
|
45
45
|
#
|
46
|
-
# @return [Array<TerminalShop::ProductAPI>]
|
46
|
+
# @return [Array<TerminalShop::Models::ProductAPI>]
|
47
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::ProfileAPI]
|
52
|
+
# @return [TerminalShop::Models::ProfileAPI]
|
53
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::Region]
|
58
|
+
# @return [Symbol, TerminalShop::Models::Region]
|
59
59
|
required :region, enum: -> { TerminalShop::Region }
|
60
60
|
|
61
61
|
# @!attribute subscriptions
|
62
62
|
#
|
63
|
-
# @return [Array<TerminalShop::SubscriptionAPI>]
|
63
|
+
# @return [Array<TerminalShop::Models::SubscriptionAPI>]
|
64
64
|
required :subscriptions, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::SubscriptionAPI] }
|
65
65
|
|
66
66
|
# @!attribute tokens
|
67
67
|
#
|
68
|
-
# @return [Array<TerminalShop::TokenAPI>]
|
68
|
+
# @return [Array<TerminalShop::Models::TokenAPI>]
|
69
69
|
required :tokens, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::TokenAPI] }
|
70
70
|
|
71
71
|
# @!method initialize(addresses:, apps:, cards:, cart:, orders:, products:, profile:, region:, subscriptions:, tokens:)
|
72
72
|
# Initial app data.
|
73
73
|
#
|
74
|
-
# @param addresses [Array<TerminalShop::AddressAPI>]
|
74
|
+
# @param addresses [Array<TerminalShop::Models::AddressAPI>]
|
75
75
|
#
|
76
|
-
# @param apps [Array<TerminalShop::AppAPI>]
|
76
|
+
# @param apps [Array<TerminalShop::Models::AppAPI>]
|
77
77
|
#
|
78
|
-
# @param cards [Array<TerminalShop::CardAPI>]
|
78
|
+
# @param cards [Array<TerminalShop::Models::CardAPI>]
|
79
79
|
#
|
80
|
-
# @param cart [TerminalShop::CartAPI] The current Terminal shop user's cart.
|
80
|
+
# @param cart [TerminalShop::Models::CartAPI] The current Terminal shop user's cart.
|
81
81
|
#
|
82
|
-
# @param orders [Array<TerminalShop::OrderAPI>]
|
82
|
+
# @param orders [Array<TerminalShop::Models::OrderAPI>]
|
83
83
|
#
|
84
|
-
# @param products [Array<TerminalShop::ProductAPI>]
|
84
|
+
# @param products [Array<TerminalShop::Models::ProductAPI>]
|
85
85
|
#
|
86
|
-
# @param profile [TerminalShop::ProfileAPI] A Terminal shop user's profile. (We have users, btw.)
|
86
|
+
# @param profile [TerminalShop::Models::ProfileAPI] A Terminal shop user's profile. (We have users, btw.)
|
87
87
|
#
|
88
|
-
# @param region [Symbol, TerminalShop::Region] A Terminal shop user's region.
|
88
|
+
# @param region [Symbol, TerminalShop::Models::Region] A Terminal shop user's region.
|
89
89
|
#
|
90
|
-
# @param subscriptions [Array<TerminalShop::SubscriptionAPI>]
|
90
|
+
# @param subscriptions [Array<TerminalShop::Models::SubscriptionAPI>]
|
91
91
|
#
|
92
|
-
# @param tokens [Array<TerminalShop::TokenAPI>]
|
92
|
+
# @param tokens [Array<TerminalShop::Models::TokenAPI>]
|
93
93
|
end
|
94
94
|
end
|
95
95
|
end
|
@@ -26,7 +26,7 @@ module TerminalShop
|
|
26
26
|
#
|
27
27
|
# @param next_ [String] Next shipment and billing date for the subscription.
|
28
28
|
#
|
29
|
-
# @param schedule [TerminalShop::SubscriptionAPI::Schedule::Fixed, TerminalShop::SubscriptionAPI::Schedule::Weekly] Schedule of the subscription.
|
29
|
+
# @param schedule [TerminalShop::Models::SubscriptionAPI::Schedule::Fixed, TerminalShop::Models::SubscriptionAPI::Schedule::Weekly] Schedule of the subscription.
|
30
30
|
#
|
31
31
|
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}, nil]
|
32
32
|
#
|
@@ -54,7 +54,7 @@ module TerminalShop
|
|
54
54
|
#
|
55
55
|
# @param card_id [String] New payment method ID for the subscription.
|
56
56
|
#
|
57
|
-
# @param schedule [TerminalShop::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::SubscriptionUpdateParams::Schedule::Weekly] New schedule for the subscription.
|
57
|
+
# @param schedule [TerminalShop::Models::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::Models::SubscriptionUpdateParams::Schedule::Weekly] New schedule for the subscription.
|
58
58
|
#
|
59
59
|
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}, nil]
|
60
60
|
#
|
@@ -53,6 +53,19 @@ module TerminalShop
|
|
53
53
|
?province: String,
|
54
54
|
?street2: String
|
55
55
|
) -> void
|
56
|
+
|
57
|
+
def to_hash: -> {
|
58
|
+
id: String,
|
59
|
+
city: String,
|
60
|
+
country: String,
|
61
|
+
created: String,
|
62
|
+
name: String,
|
63
|
+
:street1 => String,
|
64
|
+
zip: String,
|
65
|
+
phone: String,
|
66
|
+
province: String,
|
67
|
+
:street2 => String
|
68
|
+
}
|
56
69
|
end
|
57
70
|
end
|
58
71
|
end
|
@@ -50,6 +50,18 @@ module TerminalShop
|
|
50
50
|
?street2: String,
|
51
51
|
?request_options: TerminalShop::request_opts
|
52
52
|
) -> void
|
53
|
+
|
54
|
+
def to_hash: -> {
|
55
|
+
city: String,
|
56
|
+
country: String,
|
57
|
+
name: String,
|
58
|
+
:street1 => String,
|
59
|
+
zip: String,
|
60
|
+
phone: String,
|
61
|
+
province: String,
|
62
|
+
:street2 => String,
|
63
|
+
request_options: TerminalShop::RequestOptions
|
64
|
+
}
|
53
65
|
end
|
54
66
|
end
|
55
67
|
end
|
@@ -10,6 +10,8 @@ module TerminalShop
|
|
10
10
|
data: TerminalShop::Models::AppCreateResponse::Data
|
11
11
|
) -> void
|
12
12
|
|
13
|
+
def to_hash: -> { data: TerminalShop::Models::AppCreateResponse::Data }
|
14
|
+
|
13
15
|
type data = { id: String, secret: String }
|
14
16
|
|
15
17
|
class Data < TerminalShop::Internal::Type::BaseModel
|
@@ -18,6 +20,8 @@ module TerminalShop
|
|
18
20
|
attr_accessor secret: String
|
19
21
|
|
20
22
|
def initialize: (id: String, secret: String) -> void
|
23
|
+
|
24
|
+
def to_hash: -> { id: String, secret: String }
|
21
25
|
end
|
22
26
|
end
|
23
27
|
end
|
@@ -28,6 +28,14 @@ module TerminalShop
|
|
28
28
|
last4: String
|
29
29
|
) -> void
|
30
30
|
|
31
|
+
def to_hash: -> {
|
32
|
+
id: String,
|
33
|
+
brand: String,
|
34
|
+
created: String,
|
35
|
+
expiration: TerminalShop::CardAPI::Expiration,
|
36
|
+
:last4 => String
|
37
|
+
}
|
38
|
+
|
31
39
|
type expiration = { month: Integer, year: Integer }
|
32
40
|
|
33
41
|
class Expiration < TerminalShop::Internal::Type::BaseModel
|
@@ -36,6 +44,8 @@ module TerminalShop
|
|
36
44
|
attr_accessor year: Integer
|
37
45
|
|
38
46
|
def initialize: (month: Integer, year: Integer) -> void
|
47
|
+
|
48
|
+
def to_hash: -> { month: Integer, year: Integer }
|
39
49
|
end
|
40
50
|
end
|
41
51
|
end
|
@@ -10,12 +10,16 @@ module TerminalShop
|
|
10
10
|
data: TerminalShop::Models::CardCollectResponse::Data
|
11
11
|
) -> void
|
12
12
|
|
13
|
+
def to_hash: -> { data: TerminalShop::Models::CardCollectResponse::Data }
|
14
|
+
|
13
15
|
type data = { url: String }
|
14
16
|
|
15
17
|
class Data < TerminalShop::Internal::Type::BaseModel
|
16
18
|
attr_accessor url: String
|
17
19
|
|
18
20
|
def initialize: (url: String) -> void
|
21
|
+
|
22
|
+
def to_hash: -> { url: String }
|
19
23
|
end
|
20
24
|
end
|
21
25
|
end
|