peddler 5.0.0.pre.7 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a4ba345830f628a204734b0032d61b921183ef4bec9067cbda505679978d031
4
- data.tar.gz: 530a8cd8952373c1232b8b76e7ba6009dae8d5686eee0e77441a926264831b48
3
+ metadata.gz: ee190fadb5703ee02fa1b6ceab63a108f12320f281a276426c7b92b490395615
4
+ data.tar.gz: bd4666f02e7f3bceb31ccc7b0629e4e6704b9444eb81207fd991cce13c0d007a
5
5
  SHA512:
6
- metadata.gz: d5cefc76721fa838f1c658fa564cb14112445506290e86043b1431b9344632579020b5046133692a6cbb1a64d340b546729393c55f6664e63a536b2d98b0af9b
7
- data.tar.gz: b5beea6eeb93f917b08640b68231307ebb8e024f56608ffb4b3fb0f8c303aacb0e3f4405f71c78dfd113be3330f3edfafaf426a3230bc890fb23e0ce6efa69c0
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
 
@@ -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
@@ -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
@@ -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
@@ -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.7"
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
@@ -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
@@ -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 ]
@@ -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
@@ -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.7
4
+ version: 5.0.0.pre.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hakan Ensari