peddler 5.0.0.pre.6 → 5.0.0.pre.8

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 (25) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/peddler/notifications/any_offer_changed/offer.rb +4 -0
  4. data/lib/peddler/notifications/any_offer_changed/summary.rb +14 -14
  5. data/lib/peddler/notifications/b2b_any_offer_changed/b2b_any_offer_changed_notification.rb +4 -4
  6. data/lib/peddler/notifications/b2b_any_offer_changed/offer.rb +10 -6
  7. data/lib/peddler/notifications/b2b_any_offer_changed/offer_count.rb +1 -1
  8. data/lib/peddler/notifications/b2b_any_offer_changed/prime_information.rb +2 -2
  9. data/lib/peddler/notifications/b2b_any_offer_changed/seller_feedback_rating.rb +1 -1
  10. data/lib/peddler/notifications/b2b_any_offer_changed/ships_from.rb +1 -1
  11. data/lib/peddler/notifications/b2b_any_offer_changed/summary.rb +4 -4
  12. data/lib/peddler/notifications/fee_promotion/fee_detail.rb +5 -5
  13. data/lib/peddler/notifications/fee_promotion/identifier_value.rb +2 -2
  14. data/lib/peddler/notifications/fee_promotion/promotion_information.rb +8 -8
  15. data/lib/peddler/notifications/pricing_health/buy_box_price.rb +2 -2
  16. data/lib/peddler/notifications/pricing_health/merchant_offer.rb +2 -2
  17. data/lib/peddler/notifications/pricing_health/offer_change_trigger.rb +1 -1
  18. data/lib/peddler/notifications/pricing_health/payload.rb +6 -6
  19. data/lib/peddler/notifications/pricing_health/summary.rb +2 -2
  20. data/lib/peddler/version.rb +1 -1
  21. data/sig/peddler/notifications/any_offer_changed.rbs +16 -14
  22. data/sig/peddler/notifications/b2b_any_offer_changed.rbs +33 -32
  23. data/sig/peddler/notifications/fee_promotion.rbs +19 -19
  24. data/sig/peddler/notifications/pricing_health.rbs +28 -28
  25. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '04903eecb617837564ce2fba386cab0aa1d968f189c2f84f4e780da15b9e906f'
4
- data.tar.gz: f1387b9a9a4d403e224307245fdf02920213bed039e23a4f480c84a0928cf3a8
3
+ metadata.gz: ee190fadb5703ee02fa1b6ceab63a108f12320f281a276426c7b92b490395615
4
+ data.tar.gz: bd4666f02e7f3bceb31ccc7b0629e4e6704b9444eb81207fd991cce13c0d007a
5
5
  SHA512:
6
- metadata.gz: 962b07bd4f8fd2123702ea454c665c7352af44a8fe905db68105e13dbd9f32b6835a89bc4b6e7953e6ba84286136dcd40decbfca8b995c1d039158b2b7920f7b
7
- data.tar.gz: e6abf8226db4617d965f78e3e5c066d267fcc27817c9d1e136c1deb110f1d6f26824d23e0afbb1b622c75a6a17ef4f9e281f655bac6ec3b84f429e868ca65a78
6
+ metadata.gz: b14be992ea5c31528f7e4dbcb2721350a7c4b7c5cd8c5f1fae58ba5e78b7f7bcba1e0fa351c87e9783b9e7092521a9cf7cd1dc58082dc7e7a807ddaace604940
7
+ data.tar.gz: 4d919c1be13aa6f772feac62018149065a672de3132004ba357c1d679ad54d7734fb0b716971f0176a4d027d30e28416354ed90bbf543d22d7cfa7eb003bf288
data/README.md CHANGED
@@ -21,7 +21,7 @@ To begin using the Amazon SP-API, you must [register as a developer][register-as
21
21
  Add this line to your Gemfile.
22
22
 
23
23
  ```ruby
24
- gem "peddler", "~> 5.0.0.pre.4"
24
+ gem "peddler", "~> 5.0.0.pre.8"
25
25
  ```
26
26
 
27
27
  And then execute:
@@ -27,6 +27,10 @@ module Peddler
27
27
  # @return [String]
28
28
  attribute(:sub_condition, String, from: "SubCondition")
29
29
 
30
+ # @return [:boolean] True when the offer is currently in the Buy Box. There can be up to two Buy Box winners at
31
+ # any time per ASIN, one that is eligible for Prime and one that is not eligible for Prime.
32
+ attribute?(:buy_box_winner, :boolean, from: "IsBuyBoxWinner")
33
+
30
34
  # @return [:boolean]
31
35
  attribute?(:expedited_shipping_available, :boolean, from: "IsExpeditedShippingAvailable")
32
36
 
@@ -9,34 +9,34 @@ module Peddler
9
9
  module AnyOfferChanged
10
10
  Summary = Structure.new do
11
11
  # @return [Array]
12
- attribute(:buy_box_prices, Array, from: "BuyBoxPrices")
12
+ attribute(:lowest_prices, Array, from: "LowestPrices")
13
13
 
14
- # @return [Money]
15
- attribute(:competitive_price_threshold, Money, from: "CompetitivePriceThreshold")
14
+ # @return [Array]
15
+ attribute(:number_of_buy_box_eligible_offers, Array, from: "NumberOfBuyBoxEligibleOffers")
16
16
 
17
- # @return [Money]
18
- attribute(:list_price, Money, from: "ListPrice")
17
+ # @return [Array]
18
+ attribute(:number_of_offers, Array, from: "NumberOfOffers")
19
19
 
20
20
  # @return [Array]
21
- attribute(:lowest_prices, Array, from: "LowestPrices")
21
+ attribute?(:buy_box_prices, Array, from: "BuyBoxPrices")
22
22
 
23
23
  # @return [Money]
24
- attribute(:minimum_advertised_price, Money, from: "MinimumAdvertisedPrice")
24
+ attribute?(:competitive_price_threshold, Money, from: "CompetitivePriceThreshold")
25
25
 
26
- # @return [Array]
27
- attribute(:number_of_buy_box_eligible_offers, Array, from: "NumberOfBuyBoxEligibleOffers")
26
+ # @return [Money]
27
+ attribute?(:list_price, Money, from: "ListPrice")
28
28
 
29
- # @return [Array]
30
- attribute(:number_of_offers, Array, from: "NumberOfOffers")
29
+ # @return [Money]
30
+ attribute?(:minimum_advertised_price, Money, from: "MinimumAdvertisedPrice")
31
31
 
32
32
  # @return [Array]
33
- attribute(:sales_rankings, Array, from: "SalesRankings")
33
+ attribute?(:sales_rankings, Array, from: "SalesRankings")
34
34
 
35
35
  # @return [Money]
36
- attribute(:suggested_lower_price_plus_shipping, Money, from: "SuggestedLowerPricePlusShipping")
36
+ attribute?(:suggested_lower_price_plus_shipping, Money, from: "SuggestedLowerPricePlusShipping")
37
37
 
38
38
  # @return [Integer]
39
- attribute(:total_buy_box_eligible_offers, Integer, from: "TotalBuyBoxEligibleOffers")
39
+ attribute?(:total_buy_box_eligible_offers, Integer, from: "TotalBuyBoxEligibleOffers")
40
40
  end
41
41
  end
42
42
  end
@@ -8,8 +8,8 @@ module Peddler
8
8
  module Notifications
9
9
  module B2BAnyOfferChanged
10
10
  B2BAnyOfferChangedNotification = Structure.new do
11
- # @return [String]
12
- attribute(:offer_change_trigger, String, from: "offerChangeTrigger")
11
+ # @return [OfferChangeTrigger]
12
+ attribute(:offer_change_trigger, OfferChangeTrigger, from: "offerChangeTrigger")
13
13
 
14
14
  # @return [Array<Offer>] The top 20 competitive B2B offers for the item and condition that triggered the
15
15
  # notification.
@@ -18,8 +18,8 @@ module Peddler
18
18
  # @return [String] The seller identifier for the offer.
19
19
  attribute(:seller_id, String, from: "sellerId")
20
20
 
21
- # @return [String]
22
- attribute(:summary, String)
21
+ # @return [Summary]
22
+ attribute(:summary, Summary)
23
23
  end
24
24
  end
25
25
  end
@@ -3,6 +3,7 @@
3
3
  # This file is generated. Do not edit.
4
4
 
5
5
  require "structure"
6
+ require "time"
6
7
 
7
8
  module Peddler
8
9
  module Notifications
@@ -20,8 +21,8 @@ module Peddler
20
21
  # @return [Money]
21
22
  attribute(:shipping, Money)
22
23
 
23
- # @return [String]
24
- attribute(:shipping_time, String, from: "shippingTime")
24
+ # @return [ShippingTime]
25
+ attribute(:shipping_time, ShippingTime, from: "shippingTime")
25
26
 
26
27
  # @return [String] The subcondition of the item.
27
28
  attribute(:sub_condition, String, from: "subCondition")
@@ -36,15 +37,18 @@ module Peddler
36
37
  # @return [:boolean] True when the seller of the item is eligible to win the Buy Box.
37
38
  attribute?(:featured_merchant, :boolean, from: "isFeaturedMerchant")
38
39
 
40
+ # @return [PrimeInformation]
41
+ attribute?(:prime_information, PrimeInformation, from: "primeInformation")
42
+
39
43
  # @return [Array<QuantityDiscountPriceType>] Contains a list of pricing information that includes special
40
44
  # pricing when buying in bulk.
41
45
  attribute?(:quantity_discount_price, [QuantityDiscountPriceType], from: "quantityDiscountPrice")
42
46
 
43
- # @return [String]
44
- attribute?(:seller_feedback_rating, String, from: "sellerFeedbackRating")
47
+ # @return [SellerFeedbackRating]
48
+ attribute?(:seller_feedback_rating, SellerFeedbackRating, from: "sellerFeedbackRating")
45
49
 
46
- # @return [String]
47
- attribute?(:ships_from, String, from: "shipsFrom")
50
+ # @return [ShipsFrom]
51
+ attribute?(:ships_from, ShipsFrom, from: "shipsFrom")
48
52
  end
49
53
  end
50
54
  end
@@ -15,7 +15,7 @@ module Peddler
15
15
  attribute(:fulfillment_channel, String, from: "fulfillmentChannel")
16
16
 
17
17
  # @return [Integer] The total number of offers for the specified condition and fulfillment channel.
18
- attribute(:offer_count, Integer, from: "offerCount")
18
+ attribute?(:offer_count, Integer, from: "offerCount")
19
19
  end
20
20
  end
21
21
  end
@@ -10,10 +10,10 @@ module Peddler
10
10
  PrimeInformation = Structure.new do
11
11
  # @return [:boolean] Indicates whether the offer is an Amazon Prime offer throughout the entire marketplace
12
12
  # where it is listed.
13
- attribute(:offer_national_prime, :boolean, from: "isOfferNationalPrime")
13
+ attribute?(:offer_national_prime, :boolean, from: "isOfferNationalPrime")
14
14
 
15
15
  # @return [:boolean] Indicates whether the offer is an Amazon Prime offer.
16
- attribute(:offer_prime, :boolean, from: "isOfferPrime")
16
+ attribute?(:offer_prime, :boolean, from: "isOfferPrime")
17
17
  end
18
18
  end
19
19
  end
@@ -12,7 +12,7 @@ module Peddler
12
12
  attribute(:feedback_count, Integer, from: "feedbackCount")
13
13
 
14
14
  # @return [Float] The percentage of positive feedback for the seller in the past 365 days.
15
- attribute(:seller_positive_feedback_rating, Float, from: "sellerPositiveFeedbackRating")
15
+ attribute?(:seller_positive_feedback_rating, Float, from: "sellerPositiveFeedbackRating")
16
16
  end
17
17
  end
18
18
  end
@@ -9,7 +9,7 @@ module Peddler
9
9
  module B2BAnyOfferChanged
10
10
  ShipsFrom = Structure.new do
11
11
  # @return [String]
12
- attribute(:country, String)
12
+ attribute?(:country, String)
13
13
  end
14
14
  end
15
15
  end
@@ -12,10 +12,6 @@ module Peddler
12
12
  # Box for the given conditions and fulfillment channels.
13
13
  attribute(:buy_box_eligible_offers, [OfferCount], from: "buyBoxEligibleOffers")
14
14
 
15
- # @return [Array<BuyBoxPrice>] A list that contains the Buy Box price of the item for the given conditions,
16
- # quantity tiers, and discount types.
17
- attribute(:buy_box_prices, [BuyBoxPrice], from: "buyBoxPrices")
18
-
19
15
  # @return [Array<LowestPrice>] A list that contains the lowest prices of the item for the given conditions,
20
16
  # fulfillment channels, quantity tiers, and discount types.
21
17
  attribute(:lowest_prices, [LowestPrice], from: "lowestPrices")
@@ -23,6 +19,10 @@ module Peddler
23
19
  # @return [Array<OfferCount>] A list that contains the total number of B2B offers for the item for the given
24
20
  # conditions and fulfillment channels.
25
21
  attribute(:number_of_offers, [OfferCount], from: "numberOfOffers")
22
+
23
+ # @return [Array<BuyBoxPrice>] A list that contains the Buy Box price of the item for the given conditions,
24
+ # quantity tiers, and discount types.
25
+ attribute?(:buy_box_prices, [BuyBoxPrice], from: "buyBoxPrices")
26
26
  end
27
27
  end
28
28
  end
@@ -11,20 +11,20 @@ module Peddler
11
11
  # @return [FeeAmount]
12
12
  attribute(:fee_amount, FeeAmount, from: "FeeAmount")
13
13
 
14
- # @return [FeePromotion]
15
- attribute(:fee_promotion, FeePromotion, from: "FeePromotion")
16
-
17
14
  # @return [String]
18
15
  attribute(:fee_type, String, from: "FeeType")
19
16
 
20
17
  # @return [FinalFee]
21
18
  attribute(:final_fee, FinalFee, from: "FinalFee")
22
19
 
20
+ # @return [FeePromotion]
21
+ attribute?(:fee_promotion, FeePromotion, from: "FeePromotion")
22
+
23
23
  # @return [Array]
24
- attribute(:included_fees, Array, from: "IncludedFees")
24
+ attribute?(:included_fees, Array, from: "IncludedFees")
25
25
 
26
26
  # @return [TaxAmount]
27
- attribute(:tax_amount, TaxAmount, from: "TaxAmount")
27
+ attribute?(:tax_amount, TaxAmount, from: "TaxAmount")
28
28
  end
29
29
  end
30
30
  end
@@ -9,10 +9,10 @@ module Peddler
9
9
  module FeePromotion
10
10
  IdentifierValue = Structure.new do
11
11
  # @return [String]
12
- attribute(:identifier_value_friendly_name, String, from: "IdentifierValueFriendlyName")
12
+ attribute(:identifier_value_id, String, from: "IdentifierValueId")
13
13
 
14
14
  # @return [String]
15
- attribute(:identifier_value_id, String, from: "IdentifierValueId")
15
+ attribute?(:identifier_value_friendly_name, String, from: "IdentifierValueFriendlyName")
16
16
  end
17
17
  end
18
18
  end
@@ -8,23 +8,23 @@ module Peddler
8
8
  module Notifications
9
9
  module FeePromotion
10
10
  PromotionInformation = Structure.new do
11
- # @return [FeeDiscountMonetaryAmount]
12
- attribute(:fee_discount_monetary_amount, FeeDiscountMonetaryAmount, from: "FeeDiscountMonetaryAmount")
13
-
14
11
  # @return [String]
15
12
  attribute(:fee_discount_type, String, from: "FeeDiscountType")
16
13
 
17
- # @return [Float]
18
- attribute(:fee_discount_value, Float, from: "FeeDiscountValue")
19
-
20
14
  # @return [String]
21
15
  attribute(:fee_type, String, from: "FeeType")
22
16
 
17
+ # @return [FeeDiscountMonetaryAmount]
18
+ attribute?(:fee_discount_monetary_amount, FeeDiscountMonetaryAmount, from: "FeeDiscountMonetaryAmount")
19
+
20
+ # @return [Float]
21
+ attribute?(:fee_discount_value, Float, from: "FeeDiscountValue")
22
+
23
23
  # @return [FeesEstimate]
24
- attribute(:fees_estimate, FeesEstimate, from: "FeesEstimate")
24
+ attribute?(:fees_estimate, FeesEstimate, from: "FeesEstimate")
25
25
 
26
26
  # @return [PriceThreshold]
27
- attribute(:price_threshold, PriceThreshold, from: "PriceThreshold")
27
+ attribute?(:price_threshold, PriceThreshold, from: "PriceThreshold")
28
28
  end
29
29
  end
30
30
  end
@@ -20,8 +20,8 @@ module Peddler
20
20
  # @return [Money]
21
21
  attribute(:shipping, Money)
22
22
 
23
- # @return [String]
24
- attribute?(:points, String)
23
+ # @return [Points]
24
+ attribute?(:points, Points)
25
25
  end
26
26
  end
27
27
  end
@@ -24,8 +24,8 @@ module Peddler
24
24
  # @return [Money]
25
25
  attribute(:shipping, Money)
26
26
 
27
- # @return [String]
28
- attribute?(:points, String)
27
+ # @return [Points]
28
+ attribute?(:points, Points)
29
29
  end
30
30
  end
31
31
  end
@@ -19,7 +19,7 @@ module Peddler
19
19
  attribute(:marketplace_id, String, from: "marketplaceId")
20
20
 
21
21
  # @return [String] The update time for the offer that caused this notification
22
- attribute(:time_of_offer_change, String, from: "timeOfOfferChange")
22
+ attribute?(:time_of_offer_change, String, from: "timeOfOfferChange")
23
23
  end
24
24
  end
25
25
  end
@@ -12,17 +12,17 @@ module Peddler
12
12
  # @return [String] The issue type for the notification
13
13
  attribute(:issue_type, String, from: "issueType")
14
14
 
15
- # @return [String]
16
- attribute(:merchant_offer, String, from: "merchantOffer")
15
+ # @return [MerchantOffer]
16
+ attribute(:merchant_offer, MerchantOffer, from: "merchantOffer")
17
17
 
18
- # @return [String]
19
- attribute(:offer_change_trigger, String, from: "offerChangeTrigger")
18
+ # @return [OfferChangeTrigger]
19
+ attribute(:offer_change_trigger, OfferChangeTrigger, from: "offerChangeTrigger")
20
20
 
21
21
  # @return [String] The seller identifier for the offer
22
22
  attribute(:seller_id, String, from: "sellerId")
23
23
 
24
- # @return [String]
25
- attribute(:summary, String)
24
+ # @return [Summary]
25
+ attribute(:summary, Summary)
26
26
  end
27
27
  end
28
28
  end
@@ -16,8 +16,8 @@ module Peddler
16
16
  # conditions and fulfillment channels
17
17
  attribute(:number_of_offers, [OfferCount], from: "numberOfOffers")
18
18
 
19
- # @return [String]
20
- attribute(:reference_price, String, from: "referencePrice")
19
+ # @return [ReferencePrice]
20
+ attribute(:reference_price, ReferencePrice, from: "referencePrice")
21
21
 
22
22
  # @return [Array<BuyBoxPrice>] A list that contains the Buy Box price of the item for the given conditions
23
23
  attribute?(:buy_box_prices, [BuyBoxPrice], from: "buyBoxPrices")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Peddler
4
- VERSION = "5.0.0.pre.6"
4
+ VERSION = "5.0.0.pre.8"
5
5
  end
@@ -119,15 +119,16 @@ module Peddler
119
119
  end
120
120
 
121
121
  class Offer < Data
122
- def self.new: (fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time: Peddler::Notifications::AnyOfferChanged::ShippingTime?, sub_condition: String?, ?expedited_shipping_available: bool?, ?featured_merchant: bool?, ?points: Peddler::Notifications::AnyOfferChanged::Points?, ?prime_information: Peddler::Notifications::AnyOfferChanged::PrimeInformation?, ?seller_feedback_rating: Peddler::Notifications::AnyOfferChanged::SellerFeedbackRating?, ?ships_domestically: bool?, ?ships_from: Peddler::Notifications::AnyOfferChanged::ShipsFrom?, ?ships_internationally: bool?) -> Peddler::Notifications::AnyOfferChanged::Offer
123
- | (bool?, Peddler::Money?, String?, Peddler::Money?, Peddler::Notifications::AnyOfferChanged::ShippingTime?, String?, bool?, bool?, Peddler::Notifications::AnyOfferChanged::Points?, Peddler::Notifications::AnyOfferChanged::PrimeInformation?, Peddler::Notifications::AnyOfferChanged::SellerFeedbackRating?, bool?, Peddler::Notifications::AnyOfferChanged::ShipsFrom?, bool?) -> Peddler::Notifications::AnyOfferChanged::Offer
124
- def self.[]: (fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time: Peddler::Notifications::AnyOfferChanged::ShippingTime?, sub_condition: String?, ?expedited_shipping_available: bool?, ?featured_merchant: bool?, ?points: Peddler::Notifications::AnyOfferChanged::Points?, ?prime_information: Peddler::Notifications::AnyOfferChanged::PrimeInformation?, ?seller_feedback_rating: Peddler::Notifications::AnyOfferChanged::SellerFeedbackRating?, ?ships_domestically: bool?, ?ships_from: Peddler::Notifications::AnyOfferChanged::ShipsFrom?, ?ships_internationally: bool?) -> Peddler::Notifications::AnyOfferChanged::Offer
125
- | (bool?, Peddler::Money?, String?, Peddler::Money?, Peddler::Notifications::AnyOfferChanged::ShippingTime?, String?, bool?, bool?, Peddler::Notifications::AnyOfferChanged::Points?, Peddler::Notifications::AnyOfferChanged::PrimeInformation?, Peddler::Notifications::AnyOfferChanged::SellerFeedbackRating?, bool?, Peddler::Notifications::AnyOfferChanged::ShipsFrom?, bool?) -> Peddler::Notifications::AnyOfferChanged::Offer
122
+ def self.new: (fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time: Peddler::Notifications::AnyOfferChanged::ShippingTime?, sub_condition: String?, ?buy_box_winner: bool?, ?expedited_shipping_available: bool?, ?featured_merchant: bool?, ?points: Peddler::Notifications::AnyOfferChanged::Points?, ?prime_information: Peddler::Notifications::AnyOfferChanged::PrimeInformation?, ?seller_feedback_rating: Peddler::Notifications::AnyOfferChanged::SellerFeedbackRating?, ?ships_domestically: bool?, ?ships_from: Peddler::Notifications::AnyOfferChanged::ShipsFrom?, ?ships_internationally: bool?) -> Peddler::Notifications::AnyOfferChanged::Offer
123
+ | (bool?, Peddler::Money?, String?, Peddler::Money?, Peddler::Notifications::AnyOfferChanged::ShippingTime?, String?, bool?, bool?, bool?, Peddler::Notifications::AnyOfferChanged::Points?, Peddler::Notifications::AnyOfferChanged::PrimeInformation?, Peddler::Notifications::AnyOfferChanged::SellerFeedbackRating?, bool?, Peddler::Notifications::AnyOfferChanged::ShipsFrom?, bool?) -> Peddler::Notifications::AnyOfferChanged::Offer
124
+ def self.[]: (fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time: Peddler::Notifications::AnyOfferChanged::ShippingTime?, sub_condition: String?, ?buy_box_winner: bool?, ?expedited_shipping_available: bool?, ?featured_merchant: bool?, ?points: Peddler::Notifications::AnyOfferChanged::Points?, ?prime_information: Peddler::Notifications::AnyOfferChanged::PrimeInformation?, ?seller_feedback_rating: Peddler::Notifications::AnyOfferChanged::SellerFeedbackRating?, ?ships_domestically: bool?, ?ships_from: Peddler::Notifications::AnyOfferChanged::ShipsFrom?, ?ships_internationally: bool?) -> Peddler::Notifications::AnyOfferChanged::Offer
125
+ | (bool?, Peddler::Money?, String?, Peddler::Money?, Peddler::Notifications::AnyOfferChanged::ShippingTime?, String?, bool?, bool?, bool?, Peddler::Notifications::AnyOfferChanged::Points?, Peddler::Notifications::AnyOfferChanged::PrimeInformation?, Peddler::Notifications::AnyOfferChanged::SellerFeedbackRating?, bool?, Peddler::Notifications::AnyOfferChanged::ShipsFrom?, bool?) -> Peddler::Notifications::AnyOfferChanged::Offer
126
126
 
127
- def self.members: () -> [ :fulfilled_by_amazon, :listing_price, :seller_id, :shipping, :shipping_time, :sub_condition, :expedited_shipping_available, :featured_merchant, :points, :prime_information, :seller_feedback_rating, :ships_domestically, :ships_from, :ships_internationally ]
127
+ def self.members: () -> [ :fulfilled_by_amazon, :listing_price, :seller_id, :shipping, :shipping_time, :sub_condition, :buy_box_winner, :expedited_shipping_available, :featured_merchant, :points, :prime_information, :seller_feedback_rating, :ships_domestically, :ships_from, :ships_internationally ]
128
128
 
129
129
  def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::AnyOfferChanged::Offer
130
130
 
131
+ attr_reader buy_box_winner: bool?
131
132
  attr_reader expedited_shipping_available: bool?
132
133
  attr_reader featured_merchant: bool?
133
134
  attr_reader fulfilled_by_amazon: bool?
@@ -143,13 +144,14 @@ module Peddler
143
144
  attr_reader ships_internationally: bool?
144
145
  attr_reader sub_condition: String?
145
146
 
147
+ def buy_box_winner?: () -> bool
146
148
  def expedited_shipping_available?: () -> bool
147
149
  def featured_merchant?: () -> bool
148
150
  def fulfilled_by_amazon?: () -> bool
149
- def members: () -> [ :fulfilled_by_amazon, :listing_price, :seller_id, :shipping, :shipping_time, :sub_condition, :expedited_shipping_available, :featured_merchant, :points, :prime_information, :seller_feedback_rating, :ships_domestically, :ships_from, :ships_internationally ]
151
+ def members: () -> [ :fulfilled_by_amazon, :listing_price, :seller_id, :shipping, :shipping_time, :sub_condition, :buy_box_winner, :expedited_shipping_available, :featured_merchant, :points, :prime_information, :seller_feedback_rating, :ships_domestically, :ships_from, :ships_internationally ]
150
152
  def ships_domestically?: () -> bool
151
153
  def ships_internationally?: () -> bool
152
- def to_h: () -> { fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time: Peddler::Notifications::AnyOfferChanged::ShippingTime?, sub_condition: String?, expedited_shipping_available: bool?, featured_merchant: bool?, points: Peddler::Notifications::AnyOfferChanged::Points?, prime_information: Peddler::Notifications::AnyOfferChanged::PrimeInformation?, seller_feedback_rating: Peddler::Notifications::AnyOfferChanged::SellerFeedbackRating?, ships_domestically: bool?, ships_from: Peddler::Notifications::AnyOfferChanged::ShipsFrom?, ships_internationally: bool? }
154
+ def to_h: () -> { fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time: Peddler::Notifications::AnyOfferChanged::ShippingTime?, sub_condition: String?, buy_box_winner: bool?, expedited_shipping_available: bool?, featured_merchant: bool?, points: Peddler::Notifications::AnyOfferChanged::Points?, prime_information: Peddler::Notifications::AnyOfferChanged::PrimeInformation?, seller_feedback_rating: Peddler::Notifications::AnyOfferChanged::SellerFeedbackRating?, ships_domestically: bool?, ships_from: Peddler::Notifications::AnyOfferChanged::ShipsFrom?, ships_internationally: bool? }
153
155
  end
154
156
 
155
157
  class OfferChangeTrigger < Data
@@ -294,12 +296,12 @@ module Peddler
294
296
  end
295
297
 
296
298
  class Summary < Data
297
- def self.new: (buy_box_prices: Array[untyped]?, competitive_price_threshold: Peddler::Money?, list_price: Peddler::Money?, lowest_prices: Array[untyped]?, minimum_advertised_price: Peddler::Money?, number_of_buy_box_eligible_offers: Array[untyped]?, number_of_offers: Array[untyped]?, sales_rankings: Array[untyped]?, suggested_lower_price_plus_shipping: Peddler::Money?, total_buy_box_eligible_offers: Integer?) -> Peddler::Notifications::AnyOfferChanged::Summary
298
- | (Array[untyped]?, Peddler::Money?, Peddler::Money?, Array[untyped]?, Peddler::Money?, Array[untyped]?, Array[untyped]?, Array[untyped]?, Peddler::Money?, Integer?) -> Peddler::Notifications::AnyOfferChanged::Summary
299
- def self.[]: (buy_box_prices: Array[untyped]?, competitive_price_threshold: Peddler::Money?, list_price: Peddler::Money?, lowest_prices: Array[untyped]?, minimum_advertised_price: Peddler::Money?, number_of_buy_box_eligible_offers: Array[untyped]?, number_of_offers: Array[untyped]?, sales_rankings: Array[untyped]?, suggested_lower_price_plus_shipping: Peddler::Money?, total_buy_box_eligible_offers: Integer?) -> Peddler::Notifications::AnyOfferChanged::Summary
300
- | (Array[untyped]?, Peddler::Money?, Peddler::Money?, Array[untyped]?, Peddler::Money?, Array[untyped]?, Array[untyped]?, Array[untyped]?, Peddler::Money?, Integer?) -> Peddler::Notifications::AnyOfferChanged::Summary
299
+ def self.new: (lowest_prices: Array[untyped]?, number_of_buy_box_eligible_offers: Array[untyped]?, number_of_offers: Array[untyped]?, ?buy_box_prices: Array[untyped]?, ?competitive_price_threshold: Peddler::Money?, ?list_price: Peddler::Money?, ?minimum_advertised_price: Peddler::Money?, ?sales_rankings: Array[untyped]?, ?suggested_lower_price_plus_shipping: Peddler::Money?, ?total_buy_box_eligible_offers: Integer?) -> Peddler::Notifications::AnyOfferChanged::Summary
300
+ | (Array[untyped]?, Array[untyped]?, Array[untyped]?, Array[untyped]?, Peddler::Money?, Peddler::Money?, Peddler::Money?, Array[untyped]?, Peddler::Money?, Integer?) -> Peddler::Notifications::AnyOfferChanged::Summary
301
+ def self.[]: (lowest_prices: Array[untyped]?, number_of_buy_box_eligible_offers: Array[untyped]?, number_of_offers: Array[untyped]?, ?buy_box_prices: Array[untyped]?, ?competitive_price_threshold: Peddler::Money?, ?list_price: Peddler::Money?, ?minimum_advertised_price: Peddler::Money?, ?sales_rankings: Array[untyped]?, ?suggested_lower_price_plus_shipping: Peddler::Money?, ?total_buy_box_eligible_offers: Integer?) -> Peddler::Notifications::AnyOfferChanged::Summary
302
+ | (Array[untyped]?, Array[untyped]?, Array[untyped]?, Array[untyped]?, Peddler::Money?, Peddler::Money?, Peddler::Money?, Array[untyped]?, Peddler::Money?, Integer?) -> Peddler::Notifications::AnyOfferChanged::Summary
301
303
 
302
- def self.members: () -> [ :buy_box_prices, :competitive_price_threshold, :list_price, :lowest_prices, :minimum_advertised_price, :number_of_buy_box_eligible_offers, :number_of_offers, :sales_rankings, :suggested_lower_price_plus_shipping, :total_buy_box_eligible_offers ]
304
+ def self.members: () -> [ :lowest_prices, :number_of_buy_box_eligible_offers, :number_of_offers, :buy_box_prices, :competitive_price_threshold, :list_price, :minimum_advertised_price, :sales_rankings, :suggested_lower_price_plus_shipping, :total_buy_box_eligible_offers ]
303
305
 
304
306
  def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::AnyOfferChanged::Summary
305
307
 
@@ -314,8 +316,8 @@ module Peddler
314
316
  attr_reader suggested_lower_price_plus_shipping: Peddler::Money?
315
317
  attr_reader total_buy_box_eligible_offers: Integer?
316
318
 
317
- def members: () -> [ :buy_box_prices, :competitive_price_threshold, :list_price, :lowest_prices, :minimum_advertised_price, :number_of_buy_box_eligible_offers, :number_of_offers, :sales_rankings, :suggested_lower_price_plus_shipping, :total_buy_box_eligible_offers ]
318
- def to_h: () -> { buy_box_prices: Array[untyped]?, competitive_price_threshold: Peddler::Money?, list_price: Peddler::Money?, lowest_prices: Array[untyped]?, minimum_advertised_price: Peddler::Money?, number_of_buy_box_eligible_offers: Array[untyped]?, number_of_offers: Array[untyped]?, sales_rankings: Array[untyped]?, suggested_lower_price_plus_shipping: Peddler::Money?, total_buy_box_eligible_offers: Integer? }
319
+ def members: () -> [ :lowest_prices, :number_of_buy_box_eligible_offers, :number_of_offers, :buy_box_prices, :competitive_price_threshold, :list_price, :minimum_advertised_price, :sales_rankings, :suggested_lower_price_plus_shipping, :total_buy_box_eligible_offers ]
320
+ def to_h: () -> { lowest_prices: Array[untyped]?, number_of_buy_box_eligible_offers: Array[untyped]?, number_of_offers: Array[untyped]?, buy_box_prices: Array[untyped]?, competitive_price_threshold: Peddler::Money?, list_price: Peddler::Money?, minimum_advertised_price: Peddler::Money?, sales_rankings: Array[untyped]?, suggested_lower_price_plus_shipping: Peddler::Money?, total_buy_box_eligible_offers: Integer? }
319
321
  end
320
322
 
321
323
  def self.parse: (Hash[String | Symbol, untyped]) -> Peddler::Notifications::AnyOfferChanged::Notification
@@ -2,22 +2,22 @@ module Peddler
2
2
  module Notifications
3
3
  module B2BAnyOfferChanged
4
4
  class B2BAnyOfferChangedNotification < Data
5
- def self.new: (offer_change_trigger: String?, offers: Array[Peddler::Notifications::B2BAnyOfferChanged::Offer]?, seller_id: String?, summary: String?) -> Peddler::Notifications::B2BAnyOfferChanged::B2BAnyOfferChangedNotification
6
- | (String?, Array[Peddler::Notifications::B2BAnyOfferChanged::Offer]?, String?, String?) -> Peddler::Notifications::B2BAnyOfferChanged::B2BAnyOfferChangedNotification
7
- def self.[]: (offer_change_trigger: String?, offers: Array[Peddler::Notifications::B2BAnyOfferChanged::Offer]?, seller_id: String?, summary: String?) -> Peddler::Notifications::B2BAnyOfferChanged::B2BAnyOfferChangedNotification
8
- | (String?, Array[Peddler::Notifications::B2BAnyOfferChanged::Offer]?, String?, String?) -> Peddler::Notifications::B2BAnyOfferChanged::B2BAnyOfferChangedNotification
5
+ def self.new: (offer_change_trigger: Peddler::Notifications::B2BAnyOfferChanged::OfferChangeTrigger?, offers: Array[Peddler::Notifications::B2BAnyOfferChanged::Offer]?, seller_id: String?, summary: Peddler::Notifications::B2BAnyOfferChanged::Summary?) -> Peddler::Notifications::B2BAnyOfferChanged::B2BAnyOfferChangedNotification
6
+ | (Peddler::Notifications::B2BAnyOfferChanged::OfferChangeTrigger?, Array[Peddler::Notifications::B2BAnyOfferChanged::Offer]?, String?, Peddler::Notifications::B2BAnyOfferChanged::Summary?) -> Peddler::Notifications::B2BAnyOfferChanged::B2BAnyOfferChangedNotification
7
+ def self.[]: (offer_change_trigger: Peddler::Notifications::B2BAnyOfferChanged::OfferChangeTrigger?, offers: Array[Peddler::Notifications::B2BAnyOfferChanged::Offer]?, seller_id: String?, summary: Peddler::Notifications::B2BAnyOfferChanged::Summary?) -> Peddler::Notifications::B2BAnyOfferChanged::B2BAnyOfferChangedNotification
8
+ | (Peddler::Notifications::B2BAnyOfferChanged::OfferChangeTrigger?, Array[Peddler::Notifications::B2BAnyOfferChanged::Offer]?, String?, Peddler::Notifications::B2BAnyOfferChanged::Summary?) -> Peddler::Notifications::B2BAnyOfferChanged::B2BAnyOfferChangedNotification
9
9
 
10
10
  def self.members: () -> [ :offer_change_trigger, :offers, :seller_id, :summary ]
11
11
 
12
12
  def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::B2BAnyOfferChanged::B2BAnyOfferChangedNotification
13
13
 
14
- attr_reader offer_change_trigger: String?
14
+ attr_reader offer_change_trigger: Peddler::Notifications::B2BAnyOfferChanged::OfferChangeTrigger?
15
15
  attr_reader offers: Array[Peddler::Notifications::B2BAnyOfferChanged::Offer]?
16
16
  attr_reader seller_id: String?
17
- attr_reader summary: String?
17
+ attr_reader summary: Peddler::Notifications::B2BAnyOfferChanged::Summary?
18
18
 
19
19
  def members: () -> [ :offer_change_trigger, :offers, :seller_id, :summary ]
20
- def to_h: () -> { offer_change_trigger: String?, offers: Array[Peddler::Notifications::B2BAnyOfferChanged::Offer]?, seller_id: String?, summary: String? }
20
+ def to_h: () -> { offer_change_trigger: Peddler::Notifications::B2BAnyOfferChanged::OfferChangeTrigger?, offers: Array[Peddler::Notifications::B2BAnyOfferChanged::Offer]?, seller_id: String?, summary: Peddler::Notifications::B2BAnyOfferChanged::Summary? }
21
21
  end
22
22
 
23
23
  class BuyBoxPrice < Data
@@ -107,12 +107,12 @@ module Peddler
107
107
  end
108
108
 
109
109
  class Offer < Data
110
- def self.new: (fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time: String?, sub_condition: String?, ?condition_notes: String?, ?buy_box_winner: bool?, ?featured_merchant: bool?, ?quantity_discount_price: Array[Peddler::Notifications::B2BAnyOfferChanged::QuantityDiscountPriceType]?, ?seller_feedback_rating: String?, ?ships_from: String?) -> Peddler::Notifications::B2BAnyOfferChanged::Offer
111
- | (bool?, Peddler::Money?, String?, Peddler::Money?, String?, String?, String?, bool?, bool?, Array[Peddler::Notifications::B2BAnyOfferChanged::QuantityDiscountPriceType]?, String?, String?) -> Peddler::Notifications::B2BAnyOfferChanged::Offer
112
- def self.[]: (fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time: String?, sub_condition: String?, ?condition_notes: String?, ?buy_box_winner: bool?, ?featured_merchant: bool?, ?quantity_discount_price: Array[Peddler::Notifications::B2BAnyOfferChanged::QuantityDiscountPriceType]?, ?seller_feedback_rating: String?, ?ships_from: String?) -> Peddler::Notifications::B2BAnyOfferChanged::Offer
113
- | (bool?, Peddler::Money?, String?, Peddler::Money?, String?, String?, String?, bool?, bool?, Array[Peddler::Notifications::B2BAnyOfferChanged::QuantityDiscountPriceType]?, String?, String?) -> Peddler::Notifications::B2BAnyOfferChanged::Offer
110
+ def self.new: (fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time: Peddler::Notifications::B2BAnyOfferChanged::ShippingTime?, sub_condition: String?, ?condition_notes: String?, ?buy_box_winner: bool?, ?featured_merchant: bool?, ?prime_information: Peddler::Notifications::B2BAnyOfferChanged::PrimeInformation?, ?quantity_discount_price: Array[Peddler::Notifications::B2BAnyOfferChanged::QuantityDiscountPriceType]?, ?seller_feedback_rating: Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating?, ?ships_from: Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom?) -> Peddler::Notifications::B2BAnyOfferChanged::Offer
111
+ | (bool?, Peddler::Money?, String?, Peddler::Money?, Peddler::Notifications::B2BAnyOfferChanged::ShippingTime?, String?, String?, bool?, bool?, Peddler::Notifications::B2BAnyOfferChanged::PrimeInformation?, Array[Peddler::Notifications::B2BAnyOfferChanged::QuantityDiscountPriceType]?, Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating?, Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom?) -> Peddler::Notifications::B2BAnyOfferChanged::Offer
112
+ def self.[]: (fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time: Peddler::Notifications::B2BAnyOfferChanged::ShippingTime?, sub_condition: String?, ?condition_notes: String?, ?buy_box_winner: bool?, ?featured_merchant: bool?, ?prime_information: Peddler::Notifications::B2BAnyOfferChanged::PrimeInformation?, ?quantity_discount_price: Array[Peddler::Notifications::B2BAnyOfferChanged::QuantityDiscountPriceType]?, ?seller_feedback_rating: Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating?, ?ships_from: Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom?) -> Peddler::Notifications::B2BAnyOfferChanged::Offer
113
+ | (bool?, Peddler::Money?, String?, Peddler::Money?, Peddler::Notifications::B2BAnyOfferChanged::ShippingTime?, String?, String?, bool?, bool?, Peddler::Notifications::B2BAnyOfferChanged::PrimeInformation?, Array[Peddler::Notifications::B2BAnyOfferChanged::QuantityDiscountPriceType]?, Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating?, Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom?) -> Peddler::Notifications::B2BAnyOfferChanged::Offer
114
114
 
115
- def self.members: () -> [ :fulfilled_by_amazon, :listing_price, :seller_id, :shipping, :shipping_time, :sub_condition, :condition_notes, :buy_box_winner, :featured_merchant, :quantity_discount_price, :seller_feedback_rating, :ships_from ]
115
+ def self.members: () -> [ :fulfilled_by_amazon, :listing_price, :seller_id, :shipping, :shipping_time, :sub_condition, :condition_notes, :buy_box_winner, :featured_merchant, :prime_information, :quantity_discount_price, :seller_feedback_rating, :ships_from ]
116
116
 
117
117
  def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::B2BAnyOfferChanged::Offer
118
118
 
@@ -121,19 +121,20 @@ module Peddler
121
121
  attr_reader featured_merchant: bool?
122
122
  attr_reader fulfilled_by_amazon: bool?
123
123
  attr_reader listing_price: Peddler::Money?
124
+ attr_reader prime_information: Peddler::Notifications::B2BAnyOfferChanged::PrimeInformation?
124
125
  attr_reader quantity_discount_price: Array[Peddler::Notifications::B2BAnyOfferChanged::QuantityDiscountPriceType]?
125
- attr_reader seller_feedback_rating: String?
126
+ attr_reader seller_feedback_rating: Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating?
126
127
  attr_reader seller_id: String?
127
128
  attr_reader shipping: Peddler::Money?
128
- attr_reader shipping_time: String?
129
- attr_reader ships_from: String?
129
+ attr_reader shipping_time: Peddler::Notifications::B2BAnyOfferChanged::ShippingTime?
130
+ attr_reader ships_from: Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom?
130
131
  attr_reader sub_condition: String?
131
132
 
132
133
  def buy_box_winner?: () -> bool
133
134
  def featured_merchant?: () -> bool
134
135
  def fulfilled_by_amazon?: () -> bool
135
- def members: () -> [ :fulfilled_by_amazon, :listing_price, :seller_id, :shipping, :shipping_time, :sub_condition, :condition_notes, :buy_box_winner, :featured_merchant, :quantity_discount_price, :seller_feedback_rating, :ships_from ]
136
- def to_h: () -> { fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time: String?, sub_condition: String?, condition_notes: String?, buy_box_winner: bool?, featured_merchant: bool?, quantity_discount_price: Array[Peddler::Notifications::B2BAnyOfferChanged::QuantityDiscountPriceType]?, seller_feedback_rating: String?, ships_from: String? }
136
+ def members: () -> [ :fulfilled_by_amazon, :listing_price, :seller_id, :shipping, :shipping_time, :sub_condition, :condition_notes, :buy_box_winner, :featured_merchant, :prime_information, :quantity_discount_price, :seller_feedback_rating, :ships_from ]
137
+ def to_h: () -> { fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time: Peddler::Notifications::B2BAnyOfferChanged::ShippingTime?, sub_condition: String?, condition_notes: String?, buy_box_winner: bool?, featured_merchant: bool?, prime_information: Peddler::Notifications::B2BAnyOfferChanged::PrimeInformation?, quantity_discount_price: Array[Peddler::Notifications::B2BAnyOfferChanged::QuantityDiscountPriceType]?, seller_feedback_rating: Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating?, ships_from: Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom? }
137
138
  end
138
139
 
139
140
  class OfferChangeTrigger < Data
@@ -156,9 +157,9 @@ module Peddler
156
157
  end
157
158
 
158
159
  class OfferCount < Data
159
- def self.new: (condition: String?, fulfillment_channel: String?, offer_count: Integer?) -> Peddler::Notifications::B2BAnyOfferChanged::OfferCount
160
+ def self.new: (condition: String?, fulfillment_channel: String?, ?offer_count: Integer?) -> Peddler::Notifications::B2BAnyOfferChanged::OfferCount
160
161
  | (String?, String?, Integer?) -> Peddler::Notifications::B2BAnyOfferChanged::OfferCount
161
- def self.[]: (condition: String?, fulfillment_channel: String?, offer_count: Integer?) -> Peddler::Notifications::B2BAnyOfferChanged::OfferCount
162
+ def self.[]: (condition: String?, fulfillment_channel: String?, ?offer_count: Integer?) -> Peddler::Notifications::B2BAnyOfferChanged::OfferCount
162
163
  | (String?, String?, Integer?) -> Peddler::Notifications::B2BAnyOfferChanged::OfferCount
163
164
 
164
165
  def self.members: () -> [ :condition, :fulfillment_channel, :offer_count ]
@@ -190,9 +191,9 @@ module Peddler
190
191
  end
191
192
 
192
193
  class PrimeInformation < Data
193
- def self.new: (offer_national_prime: bool?, offer_prime: bool?) -> Peddler::Notifications::B2BAnyOfferChanged::PrimeInformation
194
+ def self.new: (?offer_national_prime: bool?, ?offer_prime: bool?) -> Peddler::Notifications::B2BAnyOfferChanged::PrimeInformation
194
195
  | (bool?, bool?) -> Peddler::Notifications::B2BAnyOfferChanged::PrimeInformation
195
- def self.[]: (offer_national_prime: bool?, offer_prime: bool?) -> Peddler::Notifications::B2BAnyOfferChanged::PrimeInformation
196
+ def self.[]: (?offer_national_prime: bool?, ?offer_prime: bool?) -> Peddler::Notifications::B2BAnyOfferChanged::PrimeInformation
196
197
  | (bool?, bool?) -> Peddler::Notifications::B2BAnyOfferChanged::PrimeInformation
197
198
 
198
199
  def self.members: () -> [ :offer_national_prime, :offer_prime ]
@@ -227,9 +228,9 @@ module Peddler
227
228
  end
228
229
 
229
230
  class SellerFeedbackRating < Data
230
- def self.new: (feedback_count: Integer?, seller_positive_feedback_rating: Float?) -> Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating
231
+ def self.new: (feedback_count: Integer?, ?seller_positive_feedback_rating: Float?) -> Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating
231
232
  | (Integer?, Float?) -> Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating
232
- def self.[]: (feedback_count: Integer?, seller_positive_feedback_rating: Float?) -> Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating
233
+ def self.[]: (feedback_count: Integer?, ?seller_positive_feedback_rating: Float?) -> Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating
233
234
  | (Integer?, Float?) -> Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating
234
235
 
235
236
  def self.members: () -> [ :feedback_count, :seller_positive_feedback_rating ]
@@ -263,9 +264,9 @@ module Peddler
263
264
  end
264
265
 
265
266
  class ShipsFrom < Data
266
- def self.new: (country: String?) -> Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom
267
+ def self.new: (?country: String?) -> Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom
267
268
  | (String?) -> Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom
268
- def self.[]: (country: String?) -> Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom
269
+ def self.[]: (?country: String?) -> Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom
269
270
  | (String?) -> Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom
270
271
 
271
272
  def self.members: () -> [ :country ]
@@ -279,12 +280,12 @@ module Peddler
279
280
  end
280
281
 
281
282
  class Summary < Data
282
- def self.new: (buy_box_eligible_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, buy_box_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::BuyBoxPrice]?, lowest_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?, number_of_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?) -> Peddler::Notifications::B2BAnyOfferChanged::Summary
283
- | (Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, Array[Peddler::Notifications::B2BAnyOfferChanged::BuyBoxPrice]?, Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?, Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?) -> Peddler::Notifications::B2BAnyOfferChanged::Summary
284
- def self.[]: (buy_box_eligible_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, buy_box_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::BuyBoxPrice]?, lowest_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?, number_of_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?) -> Peddler::Notifications::B2BAnyOfferChanged::Summary
285
- | (Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, Array[Peddler::Notifications::B2BAnyOfferChanged::BuyBoxPrice]?, Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?, Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?) -> Peddler::Notifications::B2BAnyOfferChanged::Summary
283
+ def self.new: (buy_box_eligible_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, lowest_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?, number_of_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, ?buy_box_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::BuyBoxPrice]?) -> Peddler::Notifications::B2BAnyOfferChanged::Summary
284
+ | (Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?, Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, Array[Peddler::Notifications::B2BAnyOfferChanged::BuyBoxPrice]?) -> Peddler::Notifications::B2BAnyOfferChanged::Summary
285
+ def self.[]: (buy_box_eligible_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, lowest_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?, number_of_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, ?buy_box_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::BuyBoxPrice]?) -> Peddler::Notifications::B2BAnyOfferChanged::Summary
286
+ | (Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?, Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, Array[Peddler::Notifications::B2BAnyOfferChanged::BuyBoxPrice]?) -> Peddler::Notifications::B2BAnyOfferChanged::Summary
286
287
 
287
- def self.members: () -> [ :buy_box_eligible_offers, :buy_box_prices, :lowest_prices, :number_of_offers ]
288
+ def self.members: () -> [ :buy_box_eligible_offers, :lowest_prices, :number_of_offers, :buy_box_prices ]
288
289
 
289
290
  def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::B2BAnyOfferChanged::Summary
290
291
 
@@ -293,8 +294,8 @@ module Peddler
293
294
  attr_reader lowest_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?
294
295
  attr_reader number_of_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?
295
296
 
296
- def members: () -> [ :buy_box_eligible_offers, :buy_box_prices, :lowest_prices, :number_of_offers ]
297
- def to_h: () -> { buy_box_eligible_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, buy_box_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::BuyBoxPrice]?, lowest_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?, number_of_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]? }
297
+ def members: () -> [ :buy_box_eligible_offers, :lowest_prices, :number_of_offers, :buy_box_prices ]
298
+ def to_h: () -> { buy_box_eligible_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, lowest_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?, number_of_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, buy_box_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::BuyBoxPrice]? }
298
299
  end
299
300
 
300
301
  def self.parse: (Hash[String | Symbol, untyped]) -> Peddler::Notifications::B2BAnyOfferChanged::Notification
@@ -19,12 +19,12 @@ module Peddler
19
19
  end
20
20
 
21
21
  class FeeDetail < Data
22
- def self.new: (fee_amount: Peddler::Notifications::FeePromotion::FeeAmount?, fee_promotion: Peddler::Notifications::FeePromotion::FeePromotion?, fee_type: String?, final_fee: Peddler::Notifications::FeePromotion::FinalFee?, included_fees: Array[untyped]?, tax_amount: Peddler::Notifications::FeePromotion::TaxAmount?) -> Peddler::Notifications::FeePromotion::FeeDetail
23
- | (Peddler::Notifications::FeePromotion::FeeAmount?, Peddler::Notifications::FeePromotion::FeePromotion?, String?, Peddler::Notifications::FeePromotion::FinalFee?, Array[untyped]?, Peddler::Notifications::FeePromotion::TaxAmount?) -> Peddler::Notifications::FeePromotion::FeeDetail
24
- def self.[]: (fee_amount: Peddler::Notifications::FeePromotion::FeeAmount?, fee_promotion: Peddler::Notifications::FeePromotion::FeePromotion?, fee_type: String?, final_fee: Peddler::Notifications::FeePromotion::FinalFee?, included_fees: Array[untyped]?, tax_amount: Peddler::Notifications::FeePromotion::TaxAmount?) -> Peddler::Notifications::FeePromotion::FeeDetail
25
- | (Peddler::Notifications::FeePromotion::FeeAmount?, Peddler::Notifications::FeePromotion::FeePromotion?, String?, Peddler::Notifications::FeePromotion::FinalFee?, Array[untyped]?, Peddler::Notifications::FeePromotion::TaxAmount?) -> Peddler::Notifications::FeePromotion::FeeDetail
22
+ def self.new: (fee_amount: Peddler::Notifications::FeePromotion::FeeAmount?, fee_type: String?, final_fee: Peddler::Notifications::FeePromotion::FinalFee?, ?fee_promotion: Peddler::Notifications::FeePromotion::FeePromotion?, ?included_fees: Array[untyped]?, ?tax_amount: Peddler::Notifications::FeePromotion::TaxAmount?) -> Peddler::Notifications::FeePromotion::FeeDetail
23
+ | (Peddler::Notifications::FeePromotion::FeeAmount?, String?, Peddler::Notifications::FeePromotion::FinalFee?, Peddler::Notifications::FeePromotion::FeePromotion?, Array[untyped]?, Peddler::Notifications::FeePromotion::TaxAmount?) -> Peddler::Notifications::FeePromotion::FeeDetail
24
+ def self.[]: (fee_amount: Peddler::Notifications::FeePromotion::FeeAmount?, fee_type: String?, final_fee: Peddler::Notifications::FeePromotion::FinalFee?, ?fee_promotion: Peddler::Notifications::FeePromotion::FeePromotion?, ?included_fees: Array[untyped]?, ?tax_amount: Peddler::Notifications::FeePromotion::TaxAmount?) -> Peddler::Notifications::FeePromotion::FeeDetail
25
+ | (Peddler::Notifications::FeePromotion::FeeAmount?, String?, Peddler::Notifications::FeePromotion::FinalFee?, Peddler::Notifications::FeePromotion::FeePromotion?, Array[untyped]?, Peddler::Notifications::FeePromotion::TaxAmount?) -> Peddler::Notifications::FeePromotion::FeeDetail
26
26
 
27
- def self.members: () -> [ :fee_amount, :fee_promotion, :fee_type, :final_fee, :included_fees, :tax_amount ]
27
+ def self.members: () -> [ :fee_amount, :fee_type, :final_fee, :fee_promotion, :included_fees, :tax_amount ]
28
28
 
29
29
  def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::FeePromotion::FeeDetail
30
30
 
@@ -35,8 +35,8 @@ module Peddler
35
35
  attr_reader included_fees: Array[untyped]?
36
36
  attr_reader tax_amount: Peddler::Notifications::FeePromotion::TaxAmount?
37
37
 
38
- def members: () -> [ :fee_amount, :fee_promotion, :fee_type, :final_fee, :included_fees, :tax_amount ]
39
- def to_h: () -> { fee_amount: Peddler::Notifications::FeePromotion::FeeAmount?, fee_promotion: Peddler::Notifications::FeePromotion::FeePromotion?, fee_type: String?, final_fee: Peddler::Notifications::FeePromotion::FinalFee?, included_fees: Array[untyped]?, tax_amount: Peddler::Notifications::FeePromotion::TaxAmount? }
38
+ def members: () -> [ :fee_amount, :fee_type, :final_fee, :fee_promotion, :included_fees, :tax_amount ]
39
+ def to_h: () -> { fee_amount: Peddler::Notifications::FeePromotion::FeeAmount?, fee_type: String?, final_fee: Peddler::Notifications::FeePromotion::FinalFee?, fee_promotion: Peddler::Notifications::FeePromotion::FeePromotion?, included_fees: Array[untyped]?, tax_amount: Peddler::Notifications::FeePromotion::TaxAmount? }
40
40
  end
41
41
 
42
42
  class FeeDiscountMonetaryAmount < Data
@@ -165,20 +165,20 @@ module Peddler
165
165
  end
166
166
 
167
167
  class IdentifierValue < Data
168
- def self.new: (identifier_value_friendly_name: String?, identifier_value_id: String?) -> Peddler::Notifications::FeePromotion::IdentifierValue
168
+ def self.new: (identifier_value_id: String?, ?identifier_value_friendly_name: String?) -> Peddler::Notifications::FeePromotion::IdentifierValue
169
169
  | (String?, String?) -> Peddler::Notifications::FeePromotion::IdentifierValue
170
- def self.[]: (identifier_value_friendly_name: String?, identifier_value_id: String?) -> Peddler::Notifications::FeePromotion::IdentifierValue
170
+ def self.[]: (identifier_value_id: String?, ?identifier_value_friendly_name: String?) -> Peddler::Notifications::FeePromotion::IdentifierValue
171
171
  | (String?, String?) -> Peddler::Notifications::FeePromotion::IdentifierValue
172
172
 
173
- def self.members: () -> [ :identifier_value_friendly_name, :identifier_value_id ]
173
+ def self.members: () -> [ :identifier_value_id, :identifier_value_friendly_name ]
174
174
 
175
175
  def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::FeePromotion::IdentifierValue
176
176
 
177
177
  attr_reader identifier_value_friendly_name: String?
178
178
  attr_reader identifier_value_id: String?
179
179
 
180
- def members: () -> [ :identifier_value_friendly_name, :identifier_value_id ]
181
- def to_h: () -> { identifier_value_friendly_name: String?, identifier_value_id: String? }
180
+ def members: () -> [ :identifier_value_id, :identifier_value_friendly_name ]
181
+ def to_h: () -> { identifier_value_id: String?, identifier_value_friendly_name: String? }
182
182
  end
183
183
 
184
184
  class IncludedFee < Data
@@ -273,12 +273,12 @@ module Peddler
273
273
  end
274
274
 
275
275
  class PromotionInformation < Data
276
- def self.new: (fee_discount_monetary_amount: Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?, fee_discount_type: String?, fee_discount_value: Float?, fee_type: String?, fees_estimate: Peddler::Notifications::FeePromotion::FeesEstimate?, price_threshold: Peddler::Notifications::FeePromotion::PriceThreshold?) -> Peddler::Notifications::FeePromotion::PromotionInformation
277
- | (Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?, String?, Float?, String?, Peddler::Notifications::FeePromotion::FeesEstimate?, Peddler::Notifications::FeePromotion::PriceThreshold?) -> Peddler::Notifications::FeePromotion::PromotionInformation
278
- def self.[]: (fee_discount_monetary_amount: Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?, fee_discount_type: String?, fee_discount_value: Float?, fee_type: String?, fees_estimate: Peddler::Notifications::FeePromotion::FeesEstimate?, price_threshold: Peddler::Notifications::FeePromotion::PriceThreshold?) -> Peddler::Notifications::FeePromotion::PromotionInformation
279
- | (Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?, String?, Float?, String?, Peddler::Notifications::FeePromotion::FeesEstimate?, Peddler::Notifications::FeePromotion::PriceThreshold?) -> Peddler::Notifications::FeePromotion::PromotionInformation
276
+ def self.new: (fee_discount_type: String?, fee_type: String?, ?fee_discount_monetary_amount: Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?, ?fee_discount_value: Float?, ?fees_estimate: Peddler::Notifications::FeePromotion::FeesEstimate?, ?price_threshold: Peddler::Notifications::FeePromotion::PriceThreshold?) -> Peddler::Notifications::FeePromotion::PromotionInformation
277
+ | (String?, String?, Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?, Float?, Peddler::Notifications::FeePromotion::FeesEstimate?, Peddler::Notifications::FeePromotion::PriceThreshold?) -> Peddler::Notifications::FeePromotion::PromotionInformation
278
+ def self.[]: (fee_discount_type: String?, fee_type: String?, ?fee_discount_monetary_amount: Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?, ?fee_discount_value: Float?, ?fees_estimate: Peddler::Notifications::FeePromotion::FeesEstimate?, ?price_threshold: Peddler::Notifications::FeePromotion::PriceThreshold?) -> Peddler::Notifications::FeePromotion::PromotionInformation
279
+ | (String?, String?, Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?, Float?, Peddler::Notifications::FeePromotion::FeesEstimate?, Peddler::Notifications::FeePromotion::PriceThreshold?) -> Peddler::Notifications::FeePromotion::PromotionInformation
280
280
 
281
- def self.members: () -> [ :fee_discount_monetary_amount, :fee_discount_type, :fee_discount_value, :fee_type, :fees_estimate, :price_threshold ]
281
+ def self.members: () -> [ :fee_discount_type, :fee_type, :fee_discount_monetary_amount, :fee_discount_value, :fees_estimate, :price_threshold ]
282
282
 
283
283
  def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::FeePromotion::PromotionInformation
284
284
 
@@ -289,8 +289,8 @@ module Peddler
289
289
  attr_reader fees_estimate: Peddler::Notifications::FeePromotion::FeesEstimate?
290
290
  attr_reader price_threshold: Peddler::Notifications::FeePromotion::PriceThreshold?
291
291
 
292
- def members: () -> [ :fee_discount_monetary_amount, :fee_discount_type, :fee_discount_value, :fee_type, :fees_estimate, :price_threshold ]
293
- def to_h: () -> { fee_discount_monetary_amount: Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?, fee_discount_type: String?, fee_discount_value: Float?, fee_type: String?, fees_estimate: Peddler::Notifications::FeePromotion::FeesEstimate?, price_threshold: Peddler::Notifications::FeePromotion::PriceThreshold? }
292
+ def members: () -> [ :fee_discount_type, :fee_type, :fee_discount_monetary_amount, :fee_discount_value, :fees_estimate, :price_threshold ]
293
+ def to_h: () -> { fee_discount_type: String?, fee_type: String?, fee_discount_monetary_amount: Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?, fee_discount_value: Float?, fees_estimate: Peddler::Notifications::FeePromotion::FeesEstimate?, price_threshold: Peddler::Notifications::FeePromotion::PriceThreshold? }
294
294
  end
295
295
 
296
296
  class TaxAmount < Data
@@ -2,10 +2,10 @@ module Peddler
2
2
  module Notifications
3
3
  module PricingHealth
4
4
  class BuyBoxPrice < Data
5
- def self.new: (condition: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, ?points: String?) -> Peddler::Notifications::PricingHealth::BuyBoxPrice
6
- | (String?, Peddler::Money?, Peddler::Money?, Peddler::Money?, String?) -> Peddler::Notifications::PricingHealth::BuyBoxPrice
7
- def self.[]: (condition: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, ?points: String?) -> Peddler::Notifications::PricingHealth::BuyBoxPrice
8
- | (String?, Peddler::Money?, Peddler::Money?, Peddler::Money?, String?) -> Peddler::Notifications::PricingHealth::BuyBoxPrice
5
+ def self.new: (condition: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, ?points: Peddler::Notifications::PricingHealth::Points?) -> Peddler::Notifications::PricingHealth::BuyBoxPrice
6
+ | (String?, Peddler::Money?, Peddler::Money?, Peddler::Money?, Peddler::Notifications::PricingHealth::Points?) -> Peddler::Notifications::PricingHealth::BuyBoxPrice
7
+ def self.[]: (condition: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, ?points: Peddler::Notifications::PricingHealth::Points?) -> Peddler::Notifications::PricingHealth::BuyBoxPrice
8
+ | (String?, Peddler::Money?, Peddler::Money?, Peddler::Money?, Peddler::Notifications::PricingHealth::Points?) -> Peddler::Notifications::PricingHealth::BuyBoxPrice
9
9
 
10
10
  def self.members: () -> [ :condition, :landed_price, :listing_price, :shipping, :points ]
11
11
 
@@ -14,18 +14,18 @@ module Peddler
14
14
  attr_reader condition: String?
15
15
  attr_reader landed_price: Peddler::Money?
16
16
  attr_reader listing_price: Peddler::Money?
17
- attr_reader points: String?
17
+ attr_reader points: Peddler::Notifications::PricingHealth::Points?
18
18
  attr_reader shipping: Peddler::Money?
19
19
 
20
20
  def members: () -> [ :condition, :landed_price, :listing_price, :shipping, :points ]
21
- def to_h: () -> { condition: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, points: String? }
21
+ def to_h: () -> { condition: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, points: Peddler::Notifications::PricingHealth::Points? }
22
22
  end
23
23
 
24
24
  class MerchantOffer < Data
25
- def self.new: (condition: String?, fulfillment_type: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, ?points: String?) -> Peddler::Notifications::PricingHealth::MerchantOffer
26
- | (String?, String?, Peddler::Money?, Peddler::Money?, Peddler::Money?, String?) -> Peddler::Notifications::PricingHealth::MerchantOffer
27
- def self.[]: (condition: String?, fulfillment_type: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, ?points: String?) -> Peddler::Notifications::PricingHealth::MerchantOffer
28
- | (String?, String?, Peddler::Money?, Peddler::Money?, Peddler::Money?, String?) -> Peddler::Notifications::PricingHealth::MerchantOffer
25
+ def self.new: (condition: String?, fulfillment_type: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, ?points: Peddler::Notifications::PricingHealth::Points?) -> Peddler::Notifications::PricingHealth::MerchantOffer
26
+ | (String?, String?, Peddler::Money?, Peddler::Money?, Peddler::Money?, Peddler::Notifications::PricingHealth::Points?) -> Peddler::Notifications::PricingHealth::MerchantOffer
27
+ def self.[]: (condition: String?, fulfillment_type: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, ?points: Peddler::Notifications::PricingHealth::Points?) -> Peddler::Notifications::PricingHealth::MerchantOffer
28
+ | (String?, String?, Peddler::Money?, Peddler::Money?, Peddler::Money?, Peddler::Notifications::PricingHealth::Points?) -> Peddler::Notifications::PricingHealth::MerchantOffer
29
29
 
30
30
  def self.members: () -> [ :condition, :fulfillment_type, :landed_price, :listing_price, :shipping, :points ]
31
31
 
@@ -35,11 +35,11 @@ module Peddler
35
35
  attr_reader fulfillment_type: String?
36
36
  attr_reader landed_price: Peddler::Money?
37
37
  attr_reader listing_price: Peddler::Money?
38
- attr_reader points: String?
38
+ attr_reader points: Peddler::Notifications::PricingHealth::Points?
39
39
  attr_reader shipping: Peddler::Money?
40
40
 
41
41
  def members: () -> [ :condition, :fulfillment_type, :landed_price, :listing_price, :shipping, :points ]
42
- def to_h: () -> { condition: String?, fulfillment_type: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, points: String? }
42
+ def to_h: () -> { condition: String?, fulfillment_type: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, points: Peddler::Notifications::PricingHealth::Points? }
43
43
  end
44
44
 
45
45
  class Notification < Data
@@ -83,9 +83,9 @@ module Peddler
83
83
  end
84
84
 
85
85
  class OfferChangeTrigger < Data
86
- def self.new: (asin: String?, item_condition: String?, marketplace_id: String?, time_of_offer_change: String?) -> Peddler::Notifications::PricingHealth::OfferChangeTrigger
86
+ def self.new: (asin: String?, item_condition: String?, marketplace_id: String?, ?time_of_offer_change: String?) -> Peddler::Notifications::PricingHealth::OfferChangeTrigger
87
87
  | (String?, String?, String?, String?) -> Peddler::Notifications::PricingHealth::OfferChangeTrigger
88
- def self.[]: (asin: String?, item_condition: String?, marketplace_id: String?, time_of_offer_change: String?) -> Peddler::Notifications::PricingHealth::OfferChangeTrigger
88
+ def self.[]: (asin: String?, item_condition: String?, marketplace_id: String?, ?time_of_offer_change: String?) -> Peddler::Notifications::PricingHealth::OfferChangeTrigger
89
89
  | (String?, String?, String?, String?) -> Peddler::Notifications::PricingHealth::OfferChangeTrigger
90
90
 
91
91
  def self.members: () -> [ :asin, :item_condition, :marketplace_id, :time_of_offer_change ]
@@ -120,23 +120,23 @@ module Peddler
120
120
  end
121
121
 
122
122
  class Payload < Data
123
- def self.new: (issue_type: String?, merchant_offer: String?, offer_change_trigger: String?, seller_id: String?, summary: String?) -> Peddler::Notifications::PricingHealth::Payload
124
- | (String?, String?, String?, String?, String?) -> Peddler::Notifications::PricingHealth::Payload
125
- def self.[]: (issue_type: String?, merchant_offer: String?, offer_change_trigger: String?, seller_id: String?, summary: String?) -> Peddler::Notifications::PricingHealth::Payload
126
- | (String?, String?, String?, String?, String?) -> Peddler::Notifications::PricingHealth::Payload
123
+ def self.new: (issue_type: String?, merchant_offer: Peddler::Notifications::PricingHealth::MerchantOffer?, offer_change_trigger: Peddler::Notifications::PricingHealth::OfferChangeTrigger?, seller_id: String?, summary: Peddler::Notifications::PricingHealth::Summary?) -> Peddler::Notifications::PricingHealth::Payload
124
+ | (String?, Peddler::Notifications::PricingHealth::MerchantOffer?, Peddler::Notifications::PricingHealth::OfferChangeTrigger?, String?, Peddler::Notifications::PricingHealth::Summary?) -> Peddler::Notifications::PricingHealth::Payload
125
+ def self.[]: (issue_type: String?, merchant_offer: Peddler::Notifications::PricingHealth::MerchantOffer?, offer_change_trigger: Peddler::Notifications::PricingHealth::OfferChangeTrigger?, seller_id: String?, summary: Peddler::Notifications::PricingHealth::Summary?) -> Peddler::Notifications::PricingHealth::Payload
126
+ | (String?, Peddler::Notifications::PricingHealth::MerchantOffer?, Peddler::Notifications::PricingHealth::OfferChangeTrigger?, String?, Peddler::Notifications::PricingHealth::Summary?) -> Peddler::Notifications::PricingHealth::Payload
127
127
 
128
128
  def self.members: () -> [ :issue_type, :merchant_offer, :offer_change_trigger, :seller_id, :summary ]
129
129
 
130
130
  def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::PricingHealth::Payload
131
131
 
132
132
  attr_reader issue_type: String?
133
- attr_reader merchant_offer: String?
134
- attr_reader offer_change_trigger: String?
133
+ attr_reader merchant_offer: Peddler::Notifications::PricingHealth::MerchantOffer?
134
+ attr_reader offer_change_trigger: Peddler::Notifications::PricingHealth::OfferChangeTrigger?
135
135
  attr_reader seller_id: String?
136
- attr_reader summary: String?
136
+ attr_reader summary: Peddler::Notifications::PricingHealth::Summary?
137
137
 
138
138
  def members: () -> [ :issue_type, :merchant_offer, :offer_change_trigger, :seller_id, :summary ]
139
- def to_h: () -> { issue_type: String?, merchant_offer: String?, offer_change_trigger: String?, seller_id: String?, summary: String? }
139
+ def to_h: () -> { issue_type: String?, merchant_offer: Peddler::Notifications::PricingHealth::MerchantOffer?, offer_change_trigger: Peddler::Notifications::PricingHealth::OfferChangeTrigger?, seller_id: String?, summary: Peddler::Notifications::PricingHealth::Summary? }
140
140
  end
141
141
 
142
142
  class Points < Data
@@ -192,10 +192,10 @@ module Peddler
192
192
  end
193
193
 
194
194
  class Summary < Data
195
- def self.new: (buy_box_eligible_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, number_of_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, reference_price: String?, ?buy_box_prices: Array[Peddler::Notifications::PricingHealth::BuyBoxPrice]?, ?sales_rankings: Array[Peddler::Notifications::PricingHealth::SalesRank]?) -> Peddler::Notifications::PricingHealth::Summary
196
- | (Array[Peddler::Notifications::PricingHealth::OfferCount]?, Array[Peddler::Notifications::PricingHealth::OfferCount]?, String?, Array[Peddler::Notifications::PricingHealth::BuyBoxPrice]?, Array[Peddler::Notifications::PricingHealth::SalesRank]?) -> Peddler::Notifications::PricingHealth::Summary
197
- def self.[]: (buy_box_eligible_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, number_of_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, reference_price: String?, ?buy_box_prices: Array[Peddler::Notifications::PricingHealth::BuyBoxPrice]?, ?sales_rankings: Array[Peddler::Notifications::PricingHealth::SalesRank]?) -> Peddler::Notifications::PricingHealth::Summary
198
- | (Array[Peddler::Notifications::PricingHealth::OfferCount]?, Array[Peddler::Notifications::PricingHealth::OfferCount]?, String?, Array[Peddler::Notifications::PricingHealth::BuyBoxPrice]?, Array[Peddler::Notifications::PricingHealth::SalesRank]?) -> Peddler::Notifications::PricingHealth::Summary
195
+ def self.new: (buy_box_eligible_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, number_of_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, reference_price: Peddler::Notifications::PricingHealth::ReferencePrice?, ?buy_box_prices: Array[Peddler::Notifications::PricingHealth::BuyBoxPrice]?, ?sales_rankings: Array[Peddler::Notifications::PricingHealth::SalesRank]?) -> Peddler::Notifications::PricingHealth::Summary
196
+ | (Array[Peddler::Notifications::PricingHealth::OfferCount]?, Array[Peddler::Notifications::PricingHealth::OfferCount]?, Peddler::Notifications::PricingHealth::ReferencePrice?, Array[Peddler::Notifications::PricingHealth::BuyBoxPrice]?, Array[Peddler::Notifications::PricingHealth::SalesRank]?) -> Peddler::Notifications::PricingHealth::Summary
197
+ def self.[]: (buy_box_eligible_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, number_of_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, reference_price: Peddler::Notifications::PricingHealth::ReferencePrice?, ?buy_box_prices: Array[Peddler::Notifications::PricingHealth::BuyBoxPrice]?, ?sales_rankings: Array[Peddler::Notifications::PricingHealth::SalesRank]?) -> Peddler::Notifications::PricingHealth::Summary
198
+ | (Array[Peddler::Notifications::PricingHealth::OfferCount]?, Array[Peddler::Notifications::PricingHealth::OfferCount]?, Peddler::Notifications::PricingHealth::ReferencePrice?, Array[Peddler::Notifications::PricingHealth::BuyBoxPrice]?, Array[Peddler::Notifications::PricingHealth::SalesRank]?) -> Peddler::Notifications::PricingHealth::Summary
199
199
 
200
200
  def self.members: () -> [ :buy_box_eligible_offers, :number_of_offers, :reference_price, :buy_box_prices, :sales_rankings ]
201
201
 
@@ -204,11 +204,11 @@ module Peddler
204
204
  attr_reader buy_box_eligible_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?
205
205
  attr_reader buy_box_prices: Array[Peddler::Notifications::PricingHealth::BuyBoxPrice]?
206
206
  attr_reader number_of_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?
207
- attr_reader reference_price: String?
207
+ attr_reader reference_price: Peddler::Notifications::PricingHealth::ReferencePrice?
208
208
  attr_reader sales_rankings: Array[Peddler::Notifications::PricingHealth::SalesRank]?
209
209
 
210
210
  def members: () -> [ :buy_box_eligible_offers, :number_of_offers, :reference_price, :buy_box_prices, :sales_rankings ]
211
- def to_h: () -> { buy_box_eligible_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, number_of_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, reference_price: String?, buy_box_prices: Array[Peddler::Notifications::PricingHealth::BuyBoxPrice]?, sales_rankings: Array[Peddler::Notifications::PricingHealth::SalesRank]? }
211
+ def to_h: () -> { buy_box_eligible_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, number_of_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, reference_price: Peddler::Notifications::PricingHealth::ReferencePrice?, buy_box_prices: Array[Peddler::Notifications::PricingHealth::BuyBoxPrice]?, sales_rankings: Array[Peddler::Notifications::PricingHealth::SalesRank]? }
212
212
  end
213
213
 
214
214
  def self.parse: (Hash[String | Symbol, untyped]) -> Peddler::Notifications::PricingHealth::Notification
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peddler
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0.pre.6
4
+ version: 5.0.0.pre.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari