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.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +1 -1
  4. data/lib/terminal_shop/internal/util.rb +5 -1
  5. data/lib/terminal_shop/models/address.rb +2 -2
  6. data/lib/terminal_shop/models/address_get_response.rb +2 -2
  7. data/lib/terminal_shop/models/address_list_response.rb +2 -2
  8. data/lib/terminal_shop/models/app.rb +2 -2
  9. data/lib/terminal_shop/models/app_get_response.rb +2 -2
  10. data/lib/terminal_shop/models/app_list_response.rb +2 -2
  11. data/lib/terminal_shop/models/card.rb +5 -5
  12. data/lib/terminal_shop/models/card_get_response.rb +2 -2
  13. data/lib/terminal_shop/models/card_list_response.rb +2 -2
  14. data/lib/terminal_shop/models/cart.rb +9 -9
  15. data/lib/terminal_shop/models/cart_convert_response.rb +2 -2
  16. data/lib/terminal_shop/models/cart_get_response.rb +2 -2
  17. data/lib/terminal_shop/models/cart_set_item_response.rb +2 -2
  18. data/lib/terminal_shop/models/order.rb +17 -17
  19. data/lib/terminal_shop/models/order_get_response.rb +2 -2
  20. data/lib/terminal_shop/models/order_list_response.rb +2 -2
  21. data/lib/terminal_shop/models/product.rb +10 -10
  22. data/lib/terminal_shop/models/product_get_response.rb +2 -2
  23. data/lib/terminal_shop/models/product_list_response.rb +2 -2
  24. data/lib/terminal_shop/models/product_variant.rb +4 -4
  25. data/lib/terminal_shop/models/profile.rb +4 -4
  26. data/lib/terminal_shop/models/profile_me_response.rb +2 -2
  27. data/lib/terminal_shop/models/profile_update_response.rb +2 -2
  28. data/lib/terminal_shop/models/subscription.rb +5 -5
  29. data/lib/terminal_shop/models/subscription_get_response.rb +2 -2
  30. data/lib/terminal_shop/models/subscription_list_response.rb +2 -2
  31. data/lib/terminal_shop/models/subscription_update_params.rb +3 -3
  32. data/lib/terminal_shop/models/subscription_update_response.rb +2 -2
  33. data/lib/terminal_shop/models/token.rb +2 -2
  34. data/lib/terminal_shop/models/token_get_response.rb +2 -2
  35. data/lib/terminal_shop/models/token_list_response.rb +2 -2
  36. data/lib/terminal_shop/models/view_init_response.rb +20 -20
  37. data/lib/terminal_shop/resources/subscription.rb +2 -2
  38. data/lib/terminal_shop/version.rb +1 -1
  39. data/sig/terminal_shop/models/address.rbs +13 -0
  40. data/sig/terminal_shop/models/address_create_params.rbs +12 -0
  41. data/sig/terminal_shop/models/address_create_response.rbs +2 -0
  42. data/sig/terminal_shop/models/address_delete_params.rbs +2 -0
  43. data/sig/terminal_shop/models/address_delete_response.rbs +2 -0
  44. data/sig/terminal_shop/models/address_get_params.rbs +2 -0
  45. data/sig/terminal_shop/models/address_get_response.rbs +2 -0
  46. data/sig/terminal_shop/models/address_list_params.rbs +2 -0
  47. data/sig/terminal_shop/models/address_list_response.rbs +2 -0
  48. data/sig/terminal_shop/models/app.rbs +7 -0
  49. data/sig/terminal_shop/models/app_create_params.rbs +6 -0
  50. data/sig/terminal_shop/models/app_create_response.rbs +4 -0
  51. data/sig/terminal_shop/models/app_delete_params.rbs +2 -0
  52. data/sig/terminal_shop/models/app_delete_response.rbs +2 -0
  53. data/sig/terminal_shop/models/app_get_params.rbs +2 -0
  54. data/sig/terminal_shop/models/app_get_response.rbs +2 -0
  55. data/sig/terminal_shop/models/app_list_params.rbs +2 -0
  56. data/sig/terminal_shop/models/app_list_response.rbs +2 -0
  57. data/sig/terminal_shop/models/card.rbs +10 -0
  58. data/sig/terminal_shop/models/card_collect_params.rbs +2 -0
  59. data/sig/terminal_shop/models/card_collect_response.rbs +4 -0
  60. data/sig/terminal_shop/models/card_create_params.rbs +5 -0
  61. data/sig/terminal_shop/models/card_create_response.rbs +2 -0
  62. data/sig/terminal_shop/models/card_delete_params.rbs +2 -0
  63. data/sig/terminal_shop/models/card_delete_response.rbs +2 -0
  64. data/sig/terminal_shop/models/card_get_params.rbs +2 -0
  65. data/sig/terminal_shop/models/card_get_response.rbs +2 -0
  66. data/sig/terminal_shop/models/card_list_params.rbs +2 -0
  67. data/sig/terminal_shop/models/card_list_response.rbs +2 -0
  68. data/sig/terminal_shop/models/cart.rbs +20 -0
  69. data/sig/terminal_shop/models/cart_clear_params.rbs +2 -0
  70. data/sig/terminal_shop/models/cart_clear_response.rbs +2 -0
  71. data/sig/terminal_shop/models/cart_convert_params.rbs +2 -0
  72. data/sig/terminal_shop/models/cart_convert_response.rbs +2 -0
  73. data/sig/terminal_shop/models/cart_get_params.rbs +2 -0
  74. data/sig/terminal_shop/models/cart_get_response.rbs +2 -0
  75. data/sig/terminal_shop/models/cart_set_address_params.rbs +5 -0
  76. data/sig/terminal_shop/models/cart_set_address_response.rbs +2 -0
  77. data/sig/terminal_shop/models/cart_set_card_params.rbs +5 -0
  78. data/sig/terminal_shop/models/cart_set_card_response.rbs +2 -0
  79. data/sig/terminal_shop/models/cart_set_item_params.rbs +6 -0
  80. data/sig/terminal_shop/models/cart_set_item_response.rbs +2 -0
  81. data/sig/terminal_shop/models/email_create_params.rbs +5 -0
  82. data/sig/terminal_shop/models/email_create_response.rbs +2 -0
  83. data/sig/terminal_shop/models/order.rbs +46 -6
  84. data/sig/terminal_shop/models/order_create_params.rbs +7 -0
  85. data/sig/terminal_shop/models/order_create_response.rbs +2 -0
  86. data/sig/terminal_shop/models/order_get_params.rbs +2 -0
  87. data/sig/terminal_shop/models/order_get_response.rbs +2 -0
  88. data/sig/terminal_shop/models/order_list_params.rbs +2 -0
  89. data/sig/terminal_shop/models/order_list_response.rbs +2 -0
  90. data/sig/terminal_shop/models/product.rbs +25 -6
  91. data/sig/terminal_shop/models/product_get_params.rbs +2 -0
  92. data/sig/terminal_shop/models/product_get_response.rbs +2 -0
  93. data/sig/terminal_shop/models/product_list_params.rbs +2 -0
  94. data/sig/terminal_shop/models/product_list_response.rbs +2 -0
  95. data/sig/terminal_shop/models/product_variant.rbs +15 -0
  96. data/sig/terminal_shop/models/profile.rbs +10 -0
  97. data/sig/terminal_shop/models/profile_me_params.rbs +2 -0
  98. data/sig/terminal_shop/models/profile_me_response.rbs +2 -0
  99. data/sig/terminal_shop/models/profile_update_params.rbs +6 -0
  100. data/sig/terminal_shop/models/profile_update_response.rbs +2 -0
  101. data/sig/terminal_shop/models/subscription.rbs +22 -6
  102. data/sig/terminal_shop/models/subscription_create_params.rbs +2 -0
  103. data/sig/terminal_shop/models/subscription_create_response.rbs +2 -0
  104. data/sig/terminal_shop/models/subscription_delete_params.rbs +2 -0
  105. data/sig/terminal_shop/models/subscription_delete_response.rbs +2 -0
  106. data/sig/terminal_shop/models/subscription_get_params.rbs +2 -0
  107. data/sig/terminal_shop/models/subscription_get_response.rbs +2 -0
  108. data/sig/terminal_shop/models/subscription_list_params.rbs +2 -0
  109. data/sig/terminal_shop/models/subscription_list_response.rbs +2 -0
  110. data/sig/terminal_shop/models/subscription_update_params.rbs +11 -0
  111. data/sig/terminal_shop/models/subscription_update_response.rbs +2 -0
  112. data/sig/terminal_shop/models/token.rbs +2 -0
  113. data/sig/terminal_shop/models/token_create_params.rbs +2 -0
  114. data/sig/terminal_shop/models/token_create_response.rbs +4 -0
  115. data/sig/terminal_shop/models/token_delete_params.rbs +2 -0
  116. data/sig/terminal_shop/models/token_delete_response.rbs +2 -0
  117. data/sig/terminal_shop/models/token_get_params.rbs +2 -0
  118. data/sig/terminal_shop/models/token_get_response.rbs +2 -0
  119. data/sig/terminal_shop/models/token_list_params.rbs +2 -0
  120. data/sig/terminal_shop/models/token_list_response.rbs +2 -0
  121. data/sig/terminal_shop/models/view_init_params.rbs +2 -0
  122. data/sig/terminal_shop/models/view_init_response.rbs +15 -0
  123. 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 {TerminalShop::TokenAPI}
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
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TerminalShop
4
- VERSION = "3.8.0"
4
+ VERSION = "3.8.1"
5
5
  end
@@ -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
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: String
7
7
 
8
8
  def initialize: (data: String) -> void
9
+
10
+ def to_hash: -> { data: String }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: :ok
7
7
 
8
8
  def initialize: (?data: :ok) -> void
9
+
10
+ def to_hash: -> { data: :ok }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: TerminalShop::AddressAPI
7
7
 
8
8
  def initialize: (data: TerminalShop::AddressAPI) -> void
9
+
10
+ def to_hash: -> { data: TerminalShop::AddressAPI }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: ::Array[TerminalShop::AddressAPI]
7
7
 
8
8
  def initialize: (data: ::Array[TerminalShop::AddressAPI]) -> void
9
+
10
+ def to_hash: -> { data: ::Array[TerminalShop::AddressAPI] }
9
11
  end
10
12
  end
11
13
  end
@@ -18,6 +18,13 @@ module TerminalShop
18
18
  redirect_uri: String,
19
19
  secret: String
20
20
  ) -> void
21
+
22
+ def to_hash: -> {
23
+ id: String,
24
+ name: String,
25
+ redirect_uri: String,
26
+ secret: String
27
+ }
21
28
  end
22
29
  end
23
30
  end
@@ -17,6 +17,12 @@ module TerminalShop
17
17
  redirect_uri: String,
18
18
  ?request_options: TerminalShop::request_opts
19
19
  ) -> void
20
+
21
+ def to_hash: -> {
22
+ name: String,
23
+ redirect_uri: String,
24
+ request_options: TerminalShop::RequestOptions
25
+ }
20
26
  end
21
27
  end
22
28
  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
@@ -8,6 +8,8 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: :ok
7
7
 
8
8
  def initialize: (?data: :ok) -> void
9
+
10
+ def to_hash: -> { data: :ok }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: TerminalShop::AppAPI
7
7
 
8
8
  def initialize: (data: TerminalShop::AppAPI) -> void
9
+
10
+ def to_hash: -> { data: TerminalShop::AppAPI }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: ::Array[TerminalShop::AppAPI]
7
7
 
8
8
  def initialize: (data: ::Array[TerminalShop::AppAPI]) -> void
9
+
10
+ def to_hash: -> { data: ::Array[TerminalShop::AppAPI] }
9
11
  end
10
12
  end
11
13
  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
@@ -8,6 +8,8 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  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
@@ -13,6 +13,11 @@ module TerminalShop
13
13
  token: String,
14
14
  ?request_options: TerminalShop::request_opts
15
15
  ) -> void
16
+
17
+ def to_hash: -> {
18
+ token: String,
19
+ request_options: TerminalShop::RequestOptions
20
+ }
16
21
  end
17
22
  end
18
23
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: String
7
7
 
8
8
  def initialize: (data: String) -> void
9
+
10
+ def to_hash: -> { data: String }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: :ok
7
7
 
8
8
  def initialize: (?data: :ok) -> void
9
+
10
+ def to_hash: -> { data: :ok }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: TerminalShop::CardAPI
7
7
 
8
8
  def initialize: (data: TerminalShop::CardAPI) -> void
9
+
10
+ def to_hash: -> { data: TerminalShop::CardAPI }
9
11
  end
10
12
  end
11
13
  end
@@ -8,6 +8,8 @@ module TerminalShop
8
8
  include TerminalShop::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: TerminalShop::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: TerminalShop::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -6,6 +6,8 @@ module TerminalShop
6
6
  attr_accessor data: ::Array[TerminalShop::CardAPI]
7
7
 
8
8
  def initialize: (data: ::Array[TerminalShop::CardAPI]) -> void
9
+
10
+ def to_hash: -> { data: ::Array[TerminalShop::CardAPI] }
9
11
  end
10
12
  end
11
13
  end