safetykit 0.26.0 → 0.27.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/safety_kit/models/beta/event_create_params.rb +52 -8
- data/lib/safety_kit/version.rb +1 -1
- data/rbi/safety_kit/models/beta/event_create_params.rbi +110 -12
- data/sig/safety_kit/models/beta/event_create_params.rbs +51 -11
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6bae3d66ff90c542d5e0dd6a5c1b7941b5917d84d6a907eb3a3f9549b0c643dc
|
|
4
|
+
data.tar.gz: 8f7f373155147e2856c097b7b6f76d49c48ff9df0b36fa0609557680f59a9503
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1dde75c89768f2b67457bff7e97fda88b30262c2b208f98c3f0f67048768fffa8ee988bd6b73deee24ac71e6993169ab26d0e878c809fc2f1522ba3ae4847a87
|
|
7
|
+
data.tar.gz: 6f9e49654e441e6ff1e22b2aa5d0c306eecc5f94a04e248d0058dd5d834eeaac2f976b28972b7d87042b0088a50676beff278c8fe80bc1ed12f4a5f2deb46d08
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.27.0 (2026-06-10)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.26.0...v0.27.0](https://github.com/GetSafetyKit/safetykit-ruby/compare/v0.26.0...v0.27.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([d691a9f](https://github.com/GetSafetyKit/safetykit-ruby/commit/d691a9f7d3b182a1a6504e8bc1988b3a077f6b07))
|
|
10
|
+
|
|
3
11
|
## 0.26.0 (2026-06-10)
|
|
4
12
|
|
|
5
13
|
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
|
@@ -919,11 +919,11 @@ module SafetyKit
|
|
|
919
919
|
-> { SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice }
|
|
920
920
|
|
|
921
921
|
# @!attribute shipping_info
|
|
922
|
-
# Shipping details for the product
|
|
922
|
+
# Shipping details for the product.
|
|
923
923
|
#
|
|
924
|
-
# @return [
|
|
924
|
+
# @return [SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo, nil]
|
|
925
925
|
optional :shipping_info,
|
|
926
|
-
SafetyKit::
|
|
926
|
+
-> { SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo }
|
|
927
927
|
|
|
928
928
|
# @!method initialize(price:, discounted_price: nil, shipping_info: nil)
|
|
929
929
|
# Commerce details for the product involved in this event.
|
|
@@ -932,7 +932,7 @@ module SafetyKit
|
|
|
932
932
|
#
|
|
933
933
|
# @param discounted_price [SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice] Discounted price of the product, when a discount applies.
|
|
934
934
|
#
|
|
935
|
-
# @param shipping_info [
|
|
935
|
+
# @param shipping_info [SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo] Shipping details for the product.
|
|
936
936
|
|
|
937
937
|
# @see SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product#price
|
|
938
938
|
class Price < SafetyKit::Internal::Type::BaseModel
|
|
@@ -977,6 +977,28 @@ module SafetyKit
|
|
|
977
977
|
#
|
|
978
978
|
# @param currency [String] ISO 4217 currency code.
|
|
979
979
|
end
|
|
980
|
+
|
|
981
|
+
# @see SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product#shipping_info
|
|
982
|
+
class ShippingInfo < SafetyKit::Internal::Type::BaseModel
|
|
983
|
+
# @!attribute ships_from
|
|
984
|
+
# Location the product ships from.
|
|
985
|
+
#
|
|
986
|
+
# @return [String]
|
|
987
|
+
required :ships_from, String
|
|
988
|
+
|
|
989
|
+
# @!attribute ships_to
|
|
990
|
+
# Locations the product ships to.
|
|
991
|
+
#
|
|
992
|
+
# @return [Array<String>]
|
|
993
|
+
required :ships_to, SafetyKit::Internal::Type::ArrayOf[String]
|
|
994
|
+
|
|
995
|
+
# @!method initialize(ships_from:, ships_to:)
|
|
996
|
+
# Shipping details for the product.
|
|
997
|
+
#
|
|
998
|
+
# @param ships_from [String] Location the product ships from.
|
|
999
|
+
#
|
|
1000
|
+
# @param ships_to [Array<String>] Locations the product ships to.
|
|
1001
|
+
end
|
|
980
1002
|
end
|
|
981
1003
|
|
|
982
1004
|
# @see SafetyKit::Models::Beta::EventCreateParams::Body::ProductChangedEventRequest#type
|
|
@@ -3203,11 +3225,11 @@ module SafetyKit
|
|
|
3203
3225
|
-> { SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice }
|
|
3204
3226
|
|
|
3205
3227
|
# @!attribute shipping_info
|
|
3206
|
-
# Shipping details for the product
|
|
3228
|
+
# Shipping details for the product.
|
|
3207
3229
|
#
|
|
3208
|
-
# @return [
|
|
3230
|
+
# @return [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo, nil]
|
|
3209
3231
|
optional :shipping_info,
|
|
3210
|
-
SafetyKit::
|
|
3232
|
+
-> { SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo }
|
|
3211
3233
|
|
|
3212
3234
|
# @!method initialize(price:, discounted_price: nil, shipping_info: nil)
|
|
3213
3235
|
# Commerce details for the product involved in this event.
|
|
@@ -3216,7 +3238,7 @@ module SafetyKit
|
|
|
3216
3238
|
#
|
|
3217
3239
|
# @param discounted_price [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice] Discounted price of the product, when a discount applies.
|
|
3218
3240
|
#
|
|
3219
|
-
# @param shipping_info [
|
|
3241
|
+
# @param shipping_info [SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo] Shipping details for the product.
|
|
3220
3242
|
|
|
3221
3243
|
# @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product#price
|
|
3222
3244
|
class Price < SafetyKit::Internal::Type::BaseModel
|
|
@@ -3261,6 +3283,28 @@ module SafetyKit
|
|
|
3261
3283
|
#
|
|
3262
3284
|
# @param currency [String] ISO 4217 currency code.
|
|
3263
3285
|
end
|
|
3286
|
+
|
|
3287
|
+
# @see SafetyKit::Models::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product#shipping_info
|
|
3288
|
+
class ShippingInfo < SafetyKit::Internal::Type::BaseModel
|
|
3289
|
+
# @!attribute ships_from
|
|
3290
|
+
# Location the product ships from.
|
|
3291
|
+
#
|
|
3292
|
+
# @return [String]
|
|
3293
|
+
required :ships_from, String
|
|
3294
|
+
|
|
3295
|
+
# @!attribute ships_to
|
|
3296
|
+
# Locations the product ships to.
|
|
3297
|
+
#
|
|
3298
|
+
# @return [Array<String>]
|
|
3299
|
+
required :ships_to, SafetyKit::Internal::Type::ArrayOf[String]
|
|
3300
|
+
|
|
3301
|
+
# @!method initialize(ships_from:, ships_to:)
|
|
3302
|
+
# Shipping details for the product.
|
|
3303
|
+
#
|
|
3304
|
+
# @param ships_from [String] Location the product ships from.
|
|
3305
|
+
#
|
|
3306
|
+
# @param ships_to [Array<String>] Locations the product ships to.
|
|
3307
|
+
end
|
|
3264
3308
|
end
|
|
3265
3309
|
|
|
3266
3310
|
module Metadata
|
data/lib/safety_kit/version.rb
CHANGED
|
@@ -1997,13 +1997,20 @@ module SafetyKit
|
|
|
1997
1997
|
end
|
|
1998
1998
|
attr_writer :discounted_price
|
|
1999
1999
|
|
|
2000
|
-
# Shipping details for the product
|
|
2001
|
-
sig
|
|
2000
|
+
# Shipping details for the product.
|
|
2001
|
+
sig do
|
|
2002
|
+
returns(
|
|
2003
|
+
T.nilable(
|
|
2004
|
+
SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
|
|
2005
|
+
)
|
|
2006
|
+
)
|
|
2007
|
+
end
|
|
2002
2008
|
attr_reader :shipping_info
|
|
2003
2009
|
|
|
2004
2010
|
sig do
|
|
2005
2011
|
params(
|
|
2006
|
-
shipping_info:
|
|
2012
|
+
shipping_info:
|
|
2013
|
+
SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo::OrHash
|
|
2007
2014
|
).void
|
|
2008
2015
|
end
|
|
2009
2016
|
attr_writer :shipping_info
|
|
@@ -2015,7 +2022,8 @@ module SafetyKit
|
|
|
2015
2022
|
SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::Price::OrHash,
|
|
2016
2023
|
discounted_price:
|
|
2017
2024
|
SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice::OrHash,
|
|
2018
|
-
shipping_info:
|
|
2025
|
+
shipping_info:
|
|
2026
|
+
SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo::OrHash
|
|
2019
2027
|
).returns(T.attached_class)
|
|
2020
2028
|
end
|
|
2021
2029
|
def self.new(
|
|
@@ -2023,7 +2031,7 @@ module SafetyKit
|
|
|
2023
2031
|
price:,
|
|
2024
2032
|
# Discounted price of the product, when a discount applies.
|
|
2025
2033
|
discounted_price: nil,
|
|
2026
|
-
# Shipping details for the product
|
|
2034
|
+
# Shipping details for the product.
|
|
2027
2035
|
shipping_info: nil
|
|
2028
2036
|
)
|
|
2029
2037
|
end
|
|
@@ -2035,7 +2043,8 @@ module SafetyKit
|
|
|
2035
2043
|
SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::Price,
|
|
2036
2044
|
discounted_price:
|
|
2037
2045
|
SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice,
|
|
2038
|
-
shipping_info:
|
|
2046
|
+
shipping_info:
|
|
2047
|
+
SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
|
|
2039
2048
|
}
|
|
2040
2049
|
)
|
|
2041
2050
|
end
|
|
@@ -2113,6 +2122,47 @@ module SafetyKit
|
|
|
2113
2122
|
def to_hash
|
|
2114
2123
|
end
|
|
2115
2124
|
end
|
|
2125
|
+
|
|
2126
|
+
class ShippingInfo < SafetyKit::Internal::Type::BaseModel
|
|
2127
|
+
OrHash =
|
|
2128
|
+
T.type_alias do
|
|
2129
|
+
T.any(
|
|
2130
|
+
SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo,
|
|
2131
|
+
SafetyKit::Internal::AnyHash
|
|
2132
|
+
)
|
|
2133
|
+
end
|
|
2134
|
+
|
|
2135
|
+
# Location the product ships from.
|
|
2136
|
+
sig { returns(String) }
|
|
2137
|
+
attr_accessor :ships_from
|
|
2138
|
+
|
|
2139
|
+
# Locations the product ships to.
|
|
2140
|
+
sig { returns(T::Array[String]) }
|
|
2141
|
+
attr_accessor :ships_to
|
|
2142
|
+
|
|
2143
|
+
# Shipping details for the product.
|
|
2144
|
+
sig do
|
|
2145
|
+
params(
|
|
2146
|
+
ships_from: String,
|
|
2147
|
+
ships_to: T::Array[String]
|
|
2148
|
+
).returns(T.attached_class)
|
|
2149
|
+
end
|
|
2150
|
+
def self.new(
|
|
2151
|
+
# Location the product ships from.
|
|
2152
|
+
ships_from:,
|
|
2153
|
+
# Locations the product ships to.
|
|
2154
|
+
ships_to:
|
|
2155
|
+
)
|
|
2156
|
+
end
|
|
2157
|
+
|
|
2158
|
+
sig do
|
|
2159
|
+
override.returns(
|
|
2160
|
+
{ ships_from: String, ships_to: T::Array[String] }
|
|
2161
|
+
)
|
|
2162
|
+
end
|
|
2163
|
+
def to_hash
|
|
2164
|
+
end
|
|
2165
|
+
end
|
|
2116
2166
|
end
|
|
2117
2167
|
|
|
2118
2168
|
module Type
|
|
@@ -6710,15 +6760,20 @@ module SafetyKit
|
|
|
6710
6760
|
end
|
|
6711
6761
|
attr_writer :discounted_price
|
|
6712
6762
|
|
|
6713
|
-
# Shipping details for the product
|
|
6763
|
+
# Shipping details for the product.
|
|
6714
6764
|
sig do
|
|
6715
|
-
returns(
|
|
6765
|
+
returns(
|
|
6766
|
+
T.nilable(
|
|
6767
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
|
|
6768
|
+
)
|
|
6769
|
+
)
|
|
6716
6770
|
end
|
|
6717
6771
|
attr_reader :shipping_info
|
|
6718
6772
|
|
|
6719
6773
|
sig do
|
|
6720
6774
|
params(
|
|
6721
|
-
shipping_info:
|
|
6775
|
+
shipping_info:
|
|
6776
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo::OrHash
|
|
6722
6777
|
).void
|
|
6723
6778
|
end
|
|
6724
6779
|
attr_writer :shipping_info
|
|
@@ -6730,7 +6785,8 @@ module SafetyKit
|
|
|
6730
6785
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::Price::OrHash,
|
|
6731
6786
|
discounted_price:
|
|
6732
6787
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice::OrHash,
|
|
6733
|
-
shipping_info:
|
|
6788
|
+
shipping_info:
|
|
6789
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo::OrHash
|
|
6734
6790
|
).returns(T.attached_class)
|
|
6735
6791
|
end
|
|
6736
6792
|
def self.new(
|
|
@@ -6738,7 +6794,7 @@ module SafetyKit
|
|
|
6738
6794
|
price:,
|
|
6739
6795
|
# Discounted price of the product, when a discount applies.
|
|
6740
6796
|
discounted_price: nil,
|
|
6741
|
-
# Shipping details for the product
|
|
6797
|
+
# Shipping details for the product.
|
|
6742
6798
|
shipping_info: nil
|
|
6743
6799
|
)
|
|
6744
6800
|
end
|
|
@@ -6750,7 +6806,8 @@ module SafetyKit
|
|
|
6750
6806
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::Price,
|
|
6751
6807
|
discounted_price:
|
|
6752
6808
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice,
|
|
6753
|
-
shipping_info:
|
|
6809
|
+
shipping_info:
|
|
6810
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
|
|
6754
6811
|
}
|
|
6755
6812
|
)
|
|
6756
6813
|
end
|
|
@@ -6828,6 +6885,47 @@ module SafetyKit
|
|
|
6828
6885
|
def to_hash
|
|
6829
6886
|
end
|
|
6830
6887
|
end
|
|
6888
|
+
|
|
6889
|
+
class ShippingInfo < SafetyKit::Internal::Type::BaseModel
|
|
6890
|
+
OrHash =
|
|
6891
|
+
T.type_alias do
|
|
6892
|
+
T.any(
|
|
6893
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo,
|
|
6894
|
+
SafetyKit::Internal::AnyHash
|
|
6895
|
+
)
|
|
6896
|
+
end
|
|
6897
|
+
|
|
6898
|
+
# Location the product ships from.
|
|
6899
|
+
sig { returns(String) }
|
|
6900
|
+
attr_accessor :ships_from
|
|
6901
|
+
|
|
6902
|
+
# Locations the product ships to.
|
|
6903
|
+
sig { returns(T::Array[String]) }
|
|
6904
|
+
attr_accessor :ships_to
|
|
6905
|
+
|
|
6906
|
+
# Shipping details for the product.
|
|
6907
|
+
sig do
|
|
6908
|
+
params(
|
|
6909
|
+
ships_from: String,
|
|
6910
|
+
ships_to: T::Array[String]
|
|
6911
|
+
).returns(T.attached_class)
|
|
6912
|
+
end
|
|
6913
|
+
def self.new(
|
|
6914
|
+
# Location the product ships from.
|
|
6915
|
+
ships_from:,
|
|
6916
|
+
# Locations the product ships to.
|
|
6917
|
+
ships_to:
|
|
6918
|
+
)
|
|
6919
|
+
end
|
|
6920
|
+
|
|
6921
|
+
sig do
|
|
6922
|
+
override.returns(
|
|
6923
|
+
{ ships_from: String, ships_to: T::Array[String] }
|
|
6924
|
+
)
|
|
6925
|
+
end
|
|
6926
|
+
def to_hash
|
|
6927
|
+
end
|
|
6928
|
+
end
|
|
6831
6929
|
end
|
|
6832
6930
|
|
|
6833
6931
|
module Metadata
|
|
@@ -719,7 +719,7 @@ module SafetyKit
|
|
|
719
719
|
{
|
|
720
720
|
price: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::Price,
|
|
721
721
|
discounted_price: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice,
|
|
722
|
-
shipping_info: ::
|
|
722
|
+
shipping_info: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
|
|
723
723
|
}
|
|
724
724
|
|
|
725
725
|
class Product < SafetyKit::Internal::Type::BaseModel
|
|
@@ -731,20 +731,22 @@ module SafetyKit
|
|
|
731
731
|
SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice
|
|
732
732
|
) -> SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice
|
|
733
733
|
|
|
734
|
-
attr_reader shipping_info: ::
|
|
734
|
+
attr_reader shipping_info: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo?
|
|
735
735
|
|
|
736
|
-
def shipping_info=: (
|
|
736
|
+
def shipping_info=: (
|
|
737
|
+
SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
|
|
738
|
+
) -> SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
|
|
737
739
|
|
|
738
740
|
def initialize: (
|
|
739
741
|
price: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::Price,
|
|
740
742
|
?discounted_price: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice,
|
|
741
|
-
?shipping_info: ::
|
|
743
|
+
?shipping_info: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
|
|
742
744
|
) -> void
|
|
743
745
|
|
|
744
746
|
def to_hash: -> {
|
|
745
747
|
price: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::Price,
|
|
746
748
|
discounted_price: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::DiscountedPrice,
|
|
747
|
-
shipping_info: ::
|
|
749
|
+
shipping_info: SafetyKit::Beta::EventCreateParams::Body::ProductChangedEventRequest::Product::ShippingInfo
|
|
748
750
|
}
|
|
749
751
|
|
|
750
752
|
type price = { amount: String, currency: String }
|
|
@@ -770,6 +772,25 @@ module SafetyKit
|
|
|
770
772
|
|
|
771
773
|
def to_hash: -> { amount: String, currency: String }
|
|
772
774
|
end
|
|
775
|
+
|
|
776
|
+
type shipping_info =
|
|
777
|
+
{ ships_from: String, ships_to: ::Array[String] }
|
|
778
|
+
|
|
779
|
+
class ShippingInfo < SafetyKit::Internal::Type::BaseModel
|
|
780
|
+
attr_accessor ships_from: String
|
|
781
|
+
|
|
782
|
+
attr_accessor ships_to: ::Array[String]
|
|
783
|
+
|
|
784
|
+
def initialize: (
|
|
785
|
+
ships_from: String,
|
|
786
|
+
ships_to: ::Array[String]
|
|
787
|
+
) -> void
|
|
788
|
+
|
|
789
|
+
def to_hash: -> {
|
|
790
|
+
ships_from: String,
|
|
791
|
+
ships_to: ::Array[String]
|
|
792
|
+
}
|
|
793
|
+
end
|
|
773
794
|
end
|
|
774
795
|
|
|
775
796
|
type type_ = :product_changed
|
|
@@ -2499,7 +2520,7 @@ module SafetyKit
|
|
|
2499
2520
|
{
|
|
2500
2521
|
price: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::Price,
|
|
2501
2522
|
discounted_price: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice,
|
|
2502
|
-
shipping_info: ::
|
|
2523
|
+
shipping_info: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
|
|
2503
2524
|
}
|
|
2504
2525
|
|
|
2505
2526
|
class Product < SafetyKit::Internal::Type::BaseModel
|
|
@@ -2511,22 +2532,22 @@ module SafetyKit
|
|
|
2511
2532
|
SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice
|
|
2512
2533
|
) -> SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice
|
|
2513
2534
|
|
|
2514
|
-
attr_reader shipping_info: ::
|
|
2535
|
+
attr_reader shipping_info: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo?
|
|
2515
2536
|
|
|
2516
2537
|
def shipping_info=: (
|
|
2517
|
-
::
|
|
2518
|
-
) -> ::
|
|
2538
|
+
SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
|
|
2539
|
+
) -> SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
|
|
2519
2540
|
|
|
2520
2541
|
def initialize: (
|
|
2521
2542
|
price: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::Price,
|
|
2522
2543
|
?discounted_price: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice,
|
|
2523
|
-
?shipping_info: ::
|
|
2544
|
+
?shipping_info: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
|
|
2524
2545
|
) -> void
|
|
2525
2546
|
|
|
2526
2547
|
def to_hash: -> {
|
|
2527
2548
|
price: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::Price,
|
|
2528
2549
|
discounted_price: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::DiscountedPrice,
|
|
2529
|
-
shipping_info: ::
|
|
2550
|
+
shipping_info: SafetyKit::Beta::EventCreateParams::Body::UnionMember7::ProductChanged::Product::ShippingInfo
|
|
2530
2551
|
}
|
|
2531
2552
|
|
|
2532
2553
|
type price = { amount: String, currency: String }
|
|
@@ -2552,6 +2573,25 @@ module SafetyKit
|
|
|
2552
2573
|
|
|
2553
2574
|
def to_hash: -> { amount: String, currency: String }
|
|
2554
2575
|
end
|
|
2576
|
+
|
|
2577
|
+
type shipping_info =
|
|
2578
|
+
{ ships_from: String, ships_to: ::Array[String] }
|
|
2579
|
+
|
|
2580
|
+
class ShippingInfo < SafetyKit::Internal::Type::BaseModel
|
|
2581
|
+
attr_accessor ships_from: String
|
|
2582
|
+
|
|
2583
|
+
attr_accessor ships_to: ::Array[String]
|
|
2584
|
+
|
|
2585
|
+
def initialize: (
|
|
2586
|
+
ships_from: String,
|
|
2587
|
+
ships_to: ::Array[String]
|
|
2588
|
+
) -> void
|
|
2589
|
+
|
|
2590
|
+
def to_hash: -> {
|
|
2591
|
+
ships_from: String,
|
|
2592
|
+
ships_to: ::Array[String]
|
|
2593
|
+
}
|
|
2594
|
+
end
|
|
2555
2595
|
end
|
|
2556
2596
|
|
|
2557
2597
|
type metadata =
|