safetykit 0.26.0 → 0.28.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe6c6fd85d93c41840d1adb85c44a06601114039a2449b97d50e300ca2689866
4
- data.tar.gz: 2a9eed6117b513711f5a6a63f9bf3d9ff9db770dbd75c1d24be9c8b14274ada4
3
+ metadata.gz: 5b7959eb602ad8f8311067d3ffe44cf8be4c5ea1c9638b46ec4f5dbc0c2282fc
4
+ data.tar.gz: c19355242a2879258e9eac3878522aeb21d700fc89c92b03c74df4be180ff5eb
5
5
  SHA512:
6
- metadata.gz: 3c4830ef7ca04dc68c4357a9ab3affc3cb347d0064da02a48ec60fda2754fda6a7a7831c777c634c7959a4724a7d9dcca685fe7eadfacbde4934ec153c584cf8
7
- data.tar.gz: 152d5a1149c88bf53ca24e84d3581c908805ab07740d8523dfdb22e175d5a95b2efb6fcda11091d515037592d5f3c2f93daa6163a73060d114307814365e7f13
6
+ metadata.gz: 72ad84aeffb7b5d1485c32cfae6ed1c63b5dee176ac3c577a9a06d39220d3c62f84759c31642668c2dfd67e88d2f2126a004bbd22f77d8440d5fbd4e17115e78
7
+ data.tar.gz: bcf65074220898df1e6167d38d8fbe3908fe1a65b363f6b8948a4b4730b6721d378140f7ef8efc0ef5884f263b678ff7f70434ea6d0f42208bbc1b9025b0e4ab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.28.0 (2026-06-11)
4
+
5
+ Full Changelog: [v0.27.0...v0.28.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.27.0...v0.28.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([c5afe2f](https://github.com/GetSafetyKit/safetykit-ruby/commit/c5afe2f9641cfa5223177c6366ccbe83d19be7aa))
10
+
11
+ ## 0.27.0 (2026-06-10)
12
+
13
+ Full Changelog: [v0.26.0...v0.27.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.26.0...v0.27.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([d691a9f](https://github.com/GetSafetyKit/safetykit-ruby/commit/d691a9f7d3b182a1a6504e8bc1988b3a077f6b07))
18
+
3
19
  ## 0.26.0 (2026-06-10)
4
20
 
5
21
  Full Changelog: [v0.25.0...v0.26.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.25.0...v0.26.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "safetykit", "~> 0.26.0"
20
+ gem "safetykit", "~> 0.28.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -896,7 +896,6 @@ module SafetyKit
896
896
 
897
897
  PRODUCT_CREATED = :product_created
898
898
  PRODUCT_UPDATED = :product_updated
899
- DISCOUNT_ADDED = :discount_added
900
899
 
901
900
  # @!method self.values
902
901
  # @return [Array<Symbol>]
@@ -919,11 +918,11 @@ module SafetyKit
919
918
  -> { SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice }
920
919
 
921
920
  # @!attribute shipping_info
922
- # Shipping details for the product, such as cost, regions, and carrier.
921
+ # Shipping details for the product.
923
922
  #
924
- # @return [Hash{Symbol=>Object, nil}, nil]
923
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo, nil]
925
924
  optional :shipping_info,
926
- SafetyKit::Internal::Type::HashOf[SafetyKit::Internal::Type::Unknown, nil?: true]
925
+ -> { SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo }
927
926
 
928
927
  # @!method initialize(price:, discounted_price: nil, shipping_info: nil)
929
928
  # Commerce details for the product involved in this event.
@@ -932,7 +931,7 @@ module SafetyKit
932
931
  #
933
932
  # @param discounted_price [SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice] Discounted price of the product, when a discount applies.
934
933
  #
935
- # @param shipping_info [Hash{Symbol=>Object, nil}] Shipping details for the product, such as cost, regions, and carrier.
934
+ # @param shipping_info [SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo] Shipping details for the product.
936
935
 
937
936
  # @see SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product#price
938
937
  class Price < SafetyKit::Internal::Type::BaseModel
@@ -977,6 +976,28 @@ module SafetyKit
977
976
  #
978
977
  # @param currency [String] ISO 4217 currency code.
979
978
  end
979
+
980
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product#shipping_info
981
+ class ShippingInfo < SafetyKit::Internal::Type::BaseModel
982
+ # @!attribute ships_from
983
+ # Location the product ships from.
984
+ #
985
+ # @return [String]
986
+ required :ships_from, String
987
+
988
+ # @!attribute ships_to
989
+ # Locations the product ships to.
990
+ #
991
+ # @return [Array<String>]
992
+ required :ships_to, SafetyKit::Internal::Type::ArrayOf[String]
993
+
994
+ # @!method initialize(ships_from:, ships_to:)
995
+ # Shipping details for the product.
996
+ #
997
+ # @param ships_from [String] Location the product ships from.
998
+ #
999
+ # @param ships_to [Array<String>] Locations the product ships to.
1000
+ end
980
1001
  end
981
1002
 
982
1003
  # @see SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest#type
@@ -3180,7 +3201,6 @@ module SafetyKit
3180
3201
 
3181
3202
  PRODUCT_CREATED = :product_created
3182
3203
  PRODUCT_UPDATED = :product_updated
3183
- DISCOUNT_ADDED = :discount_added
3184
3204
 
3185
3205
  # @!method self.values
3186
3206
  # @return [Array<Symbol>]
@@ -3203,11 +3223,11 @@ module SafetyKit
3203
3223
  -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice }
3204
3224
 
3205
3225
  # @!attribute shipping_info
3206
- # Shipping details for the product, such as cost, regions, and carrier.
3226
+ # Shipping details for the product.
3207
3227
  #
3208
- # @return [Hash{Symbol=>Object, nil}, nil]
3228
+ # @return [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo, nil]
3209
3229
  optional :shipping_info,
3210
- SafetyKit::Internal::Type::HashOf[SafetyKit::Internal::Type::Unknown, nil?: true]
3230
+ -> { SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo }
3211
3231
 
3212
3232
  # @!method initialize(price:, discounted_price: nil, shipping_info: nil)
3213
3233
  # Commerce details for the product involved in this event.
@@ -3216,7 +3236,7 @@ module SafetyKit
3216
3236
  #
3217
3237
  # @param discounted_price [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice] Discounted price of the product, when a discount applies.
3218
3238
  #
3219
- # @param shipping_info [Hash{Symbol=>Object, nil}] Shipping details for the product, such as cost, regions, and carrier.
3239
+ # @param shipping_info [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo] Shipping details for the product.
3220
3240
 
3221
3241
  # @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product#price
3222
3242
  class Price < SafetyKit::Internal::Type::BaseModel
@@ -3261,6 +3281,28 @@ module SafetyKit
3261
3281
  #
3262
3282
  # @param currency [String] ISO 4217 currency code.
3263
3283
  end
3284
+
3285
+ # @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product#shipping_info
3286
+ class ShippingInfo < SafetyKit::Internal::Type::BaseModel
3287
+ # @!attribute ships_from
3288
+ # Location the product ships from.
3289
+ #
3290
+ # @return [String]
3291
+ required :ships_from, String
3292
+
3293
+ # @!attribute ships_to
3294
+ # Locations the product ships to.
3295
+ #
3296
+ # @return [Array<String>]
3297
+ required :ships_to, SafetyKit::Internal::Type::ArrayOf[String]
3298
+
3299
+ # @!method initialize(ships_from:, ships_to:)
3300
+ # Shipping details for the product.
3301
+ #
3302
+ # @param ships_from [String] Location the product ships from.
3303
+ #
3304
+ # @param ships_to [Array<String>] Locations the product ships to.
3305
+ end
3264
3306
  end
3265
3307
 
3266
3308
  module Metadata
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SafetyKit
4
- VERSION = "0.26.0"
4
+ VERSION = "0.28.0"
5
5
  end
@@ -1937,11 +1937,6 @@ module SafetyKit
1937
1937
  :product_updated,
1938
1938
  SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::EventName::TaggedSymbol
1939
1939
  )
1940
- DISCOUNT_ADDED =
1941
- T.let(
1942
- :discount_added,
1943
- SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::EventName::TaggedSymbol
1944
- )
1945
1940
 
1946
1941
  sig do
1947
1942
  override.returns(
@@ -1997,13 +1992,20 @@ module SafetyKit
1997
1992
  end
1998
1993
  attr_writer :discounted_price
1999
1994
 
2000
- # Shipping details for the product, such as cost, regions, and carrier.
2001
- sig { returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)])) }
1995
+ # Shipping details for the product.
1996
+ sig do
1997
+ returns(
1998
+ T.nilable(
1999
+ SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
2000
+ )
2001
+ )
2002
+ end
2002
2003
  attr_reader :shipping_info
2003
2004
 
2004
2005
  sig do
2005
2006
  params(
2006
- shipping_info: T::Hash[Symbol, T.nilable(T.anything)]
2007
+ shipping_info:
2008
+ SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo::OrHash
2007
2009
  ).void
2008
2010
  end
2009
2011
  attr_writer :shipping_info
@@ -2015,7 +2017,8 @@ module SafetyKit
2015
2017
  SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::Price::OrHash,
2016
2018
  discounted_price:
2017
2019
  SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice::OrHash,
2018
- shipping_info: T::Hash[Symbol, T.nilable(T.anything)]
2020
+ shipping_info:
2021
+ SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo::OrHash
2019
2022
  ).returns(T.attached_class)
2020
2023
  end
2021
2024
  def self.new(
@@ -2023,7 +2026,7 @@ module SafetyKit
2023
2026
  price:,
2024
2027
  # Discounted price of the product, when a discount applies.
2025
2028
  discounted_price: nil,
2026
- # Shipping details for the product, such as cost, regions, and carrier.
2029
+ # Shipping details for the product.
2027
2030
  shipping_info: nil
2028
2031
  )
2029
2032
  end
@@ -2035,7 +2038,8 @@ module SafetyKit
2035
2038
  SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::Price,
2036
2039
  discounted_price:
2037
2040
  SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice,
2038
- shipping_info: T::Hash[Symbol, T.nilable(T.anything)]
2041
+ shipping_info:
2042
+ SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
2039
2043
  }
2040
2044
  )
2041
2045
  end
@@ -2113,6 +2117,47 @@ module SafetyKit
2113
2117
  def to_hash
2114
2118
  end
2115
2119
  end
2120
+
2121
+ class ShippingInfo < SafetyKit::Internal::Type::BaseModel
2122
+ OrHash =
2123
+ T.type_alias do
2124
+ T.any(
2125
+ SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo,
2126
+ SafetyKit::Internal::AnyHash
2127
+ )
2128
+ end
2129
+
2130
+ # Location the product ships from.
2131
+ sig { returns(String) }
2132
+ attr_accessor :ships_from
2133
+
2134
+ # Locations the product ships to.
2135
+ sig { returns(T::Array[String]) }
2136
+ attr_accessor :ships_to
2137
+
2138
+ # Shipping details for the product.
2139
+ sig do
2140
+ params(
2141
+ ships_from: String,
2142
+ ships_to: T::Array[String]
2143
+ ).returns(T.attached_class)
2144
+ end
2145
+ def self.new(
2146
+ # Location the product ships from.
2147
+ ships_from:,
2148
+ # Locations the product ships to.
2149
+ ships_to:
2150
+ )
2151
+ end
2152
+
2153
+ sig do
2154
+ override.returns(
2155
+ { ships_from: String, ships_to: T::Array[String] }
2156
+ )
2157
+ end
2158
+ def to_hash
2159
+ end
2160
+ end
2116
2161
  end
2117
2162
 
2118
2163
  module Type
@@ -6650,11 +6695,6 @@ module SafetyKit
6650
6695
  :product_updated,
6651
6696
  SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::EventName::TaggedSymbol
6652
6697
  )
6653
- DISCOUNT_ADDED =
6654
- T.let(
6655
- :discount_added,
6656
- SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::EventName::TaggedSymbol
6657
- )
6658
6698
 
6659
6699
  sig do
6660
6700
  override.returns(
@@ -6710,15 +6750,20 @@ module SafetyKit
6710
6750
  end
6711
6751
  attr_writer :discounted_price
6712
6752
 
6713
- # Shipping details for the product, such as cost, regions, and carrier.
6753
+ # Shipping details for the product.
6714
6754
  sig do
6715
- returns(T.nilable(T::Hash[Symbol, T.nilable(T.anything)]))
6755
+ returns(
6756
+ T.nilable(
6757
+ SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
6758
+ )
6759
+ )
6716
6760
  end
6717
6761
  attr_reader :shipping_info
6718
6762
 
6719
6763
  sig do
6720
6764
  params(
6721
- shipping_info: T::Hash[Symbol, T.nilable(T.anything)]
6765
+ shipping_info:
6766
+ SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo::OrHash
6722
6767
  ).void
6723
6768
  end
6724
6769
  attr_writer :shipping_info
@@ -6730,7 +6775,8 @@ module SafetyKit
6730
6775
  SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::Price::OrHash,
6731
6776
  discounted_price:
6732
6777
  SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice::OrHash,
6733
- shipping_info: T::Hash[Symbol, T.nilable(T.anything)]
6778
+ shipping_info:
6779
+ SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo::OrHash
6734
6780
  ).returns(T.attached_class)
6735
6781
  end
6736
6782
  def self.new(
@@ -6738,7 +6784,7 @@ module SafetyKit
6738
6784
  price:,
6739
6785
  # Discounted price of the product, when a discount applies.
6740
6786
  discounted_price: nil,
6741
- # Shipping details for the product, such as cost, regions, and carrier.
6787
+ # Shipping details for the product.
6742
6788
  shipping_info: nil
6743
6789
  )
6744
6790
  end
@@ -6750,7 +6796,8 @@ module SafetyKit
6750
6796
  SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::Price,
6751
6797
  discounted_price:
6752
6798
  SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice,
6753
- shipping_info: T::Hash[Symbol, T.nilable(T.anything)]
6799
+ shipping_info:
6800
+ SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
6754
6801
  }
6755
6802
  )
6756
6803
  end
@@ -6828,6 +6875,47 @@ module SafetyKit
6828
6875
  def to_hash
6829
6876
  end
6830
6877
  end
6878
+
6879
+ class ShippingInfo < SafetyKit::Internal::Type::BaseModel
6880
+ OrHash =
6881
+ T.type_alias do
6882
+ T.any(
6883
+ SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo,
6884
+ SafetyKit::Internal::AnyHash
6885
+ )
6886
+ end
6887
+
6888
+ # Location the product ships from.
6889
+ sig { returns(String) }
6890
+ attr_accessor :ships_from
6891
+
6892
+ # Locations the product ships to.
6893
+ sig { returns(T::Array[String]) }
6894
+ attr_accessor :ships_to
6895
+
6896
+ # Shipping details for the product.
6897
+ sig do
6898
+ params(
6899
+ ships_from: String,
6900
+ ships_to: T::Array[String]
6901
+ ).returns(T.attached_class)
6902
+ end
6903
+ def self.new(
6904
+ # Location the product ships from.
6905
+ ships_from:,
6906
+ # Locations the product ships to.
6907
+ ships_to:
6908
+ )
6909
+ end
6910
+
6911
+ sig do
6912
+ override.returns(
6913
+ { ships_from: String, ships_to: T::Array[String] }
6914
+ )
6915
+ end
6916
+ def to_hash
6917
+ end
6918
+ end
6831
6919
  end
6832
6920
 
6833
6921
  module Metadata
@@ -702,15 +702,13 @@ module SafetyKit
702
702
  def self?.variants: -> ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::content]
703
703
  end
704
704
 
705
- type event_name =
706
- :product_created | :product_updated | :discount_added
705
+ type event_name = :product_created | :product_updated
707
706
 
708
707
  module EventName
709
708
  extend SafetyKit::Internal::Type::Enum
710
709
 
711
710
  PRODUCT_CREATED: :product_created
712
711
  PRODUCT_UPDATED: :product_updated
713
- DISCOUNT_ADDED: :discount_added
714
712
 
715
713
  def self?.values: -> ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::event_name]
716
714
  end
@@ -719,7 +717,7 @@ module SafetyKit
719
717
  {
720
718
  price: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::Price,
721
719
  discounted_price: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice,
722
- shipping_info: ::Hash[Symbol, top?]
720
+ shipping_info: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
723
721
  }
724
722
 
725
723
  class Product < SafetyKit::Internal::Type::BaseModel
@@ -731,20 +729,22 @@ module SafetyKit
731
729
  SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice
732
730
  ) -> SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice
733
731
 
734
- attr_reader shipping_info: ::Hash[Symbol, top?]?
732
+ attr_reader shipping_info: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo?
735
733
 
736
- def shipping_info=: (::Hash[Symbol, top?]) -> ::Hash[Symbol, top?]
734
+ def shipping_info=: (
735
+ SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
736
+ ) -> SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
737
737
 
738
738
  def initialize: (
739
739
  price: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::Price,
740
740
  ?discounted_price: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice,
741
- ?shipping_info: ::Hash[Symbol, top?]
741
+ ?shipping_info: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
742
742
  ) -> void
743
743
 
744
744
  def to_hash: -> {
745
745
  price: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::Price,
746
746
  discounted_price: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice,
747
- shipping_info: ::Hash[Symbol, top?]
747
+ shipping_info: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
748
748
  }
749
749
 
750
750
  type price = { amount: String, currency: String }
@@ -770,6 +770,25 @@ module SafetyKit
770
770
 
771
771
  def to_hash: -> { amount: String, currency: String }
772
772
  end
773
+
774
+ type shipping_info =
775
+ { ships_from: String, ships_to: ::Array[String] }
776
+
777
+ class ShippingInfo < SafetyKit::Internal::Type::BaseModel
778
+ attr_accessor ships_from: String
779
+
780
+ attr_accessor ships_to: ::Array[String]
781
+
782
+ def initialize: (
783
+ ships_from: String,
784
+ ships_to: ::Array[String]
785
+ ) -> void
786
+
787
+ def to_hash: -> {
788
+ ships_from: String,
789
+ ships_to: ::Array[String]
790
+ }
791
+ end
773
792
  end
774
793
 
775
794
  type type_ = :product_changed
@@ -2482,15 +2501,13 @@ module SafetyKit
2482
2501
  def self?.variants: -> ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::content]
2483
2502
  end
2484
2503
 
2485
- type event_name =
2486
- :product_created | :product_updated | :discount_added
2504
+ type event_name = :product_created | :product_updated
2487
2505
 
2488
2506
  module EventName
2489
2507
  extend SafetyKit::Internal::Type::Enum
2490
2508
 
2491
2509
  PRODUCT_CREATED: :product_created
2492
2510
  PRODUCT_UPDATED: :product_updated
2493
- DISCOUNT_ADDED: :discount_added
2494
2511
 
2495
2512
  def self?.values: -> ::Array[SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::event_name]
2496
2513
  end
@@ -2499,7 +2516,7 @@ module SafetyKit
2499
2516
  {
2500
2517
  price: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::Price,
2501
2518
  discounted_price: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice,
2502
- shipping_info: ::Hash[Symbol, top?]
2519
+ shipping_info: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
2503
2520
  }
2504
2521
 
2505
2522
  class Product < SafetyKit::Internal::Type::BaseModel
@@ -2511,22 +2528,22 @@ module SafetyKit
2511
2528
  SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice
2512
2529
  ) -> SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice
2513
2530
 
2514
- attr_reader shipping_info: ::Hash[Symbol, top?]?
2531
+ attr_reader shipping_info: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo?
2515
2532
 
2516
2533
  def shipping_info=: (
2517
- ::Hash[Symbol, top?]
2518
- ) -> ::Hash[Symbol, top?]
2534
+ SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
2535
+ ) -> SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
2519
2536
 
2520
2537
  def initialize: (
2521
2538
  price: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::Price,
2522
2539
  ?discounted_price: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice,
2523
- ?shipping_info: ::Hash[Symbol, top?]
2540
+ ?shipping_info: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
2524
2541
  ) -> void
2525
2542
 
2526
2543
  def to_hash: -> {
2527
2544
  price: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::Price,
2528
2545
  discounted_price: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice,
2529
- shipping_info: ::Hash[Symbol, top?]
2546
+ shipping_info: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
2530
2547
  }
2531
2548
 
2532
2549
  type price = { amount: String, currency: String }
@@ -2552,6 +2569,25 @@ module SafetyKit
2552
2569
 
2553
2570
  def to_hash: -> { amount: String, currency: String }
2554
2571
  end
2572
+
2573
+ type shipping_info =
2574
+ { ships_from: String, ships_to: ::Array[String] }
2575
+
2576
+ class ShippingInfo < SafetyKit::Internal::Type::BaseModel
2577
+ attr_accessor ships_from: String
2578
+
2579
+ attr_accessor ships_to: ::Array[String]
2580
+
2581
+ def initialize: (
2582
+ ships_from: String,
2583
+ ships_to: ::Array[String]
2584
+ ) -> void
2585
+
2586
+ def to_hash: -> {
2587
+ ships_from: String,
2588
+ ships_to: ::Array[String]
2589
+ }
2590
+ end
2555
2591
  end
2556
2592
 
2557
2593
  type metadata =
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safetykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.28.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Safetykit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-10 00:00:00.000000000 Z
11
+ date: 2026-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi