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 +4 -4
- data/README.md +1 -1
- data/lib/peddler/notifications/any_offer_changed/offer.rb +4 -0
- data/lib/peddler/notifications/b2b_any_offer_changed/b2b_any_offer_changed_notification.rb +4 -4
- data/lib/peddler/notifications/b2b_any_offer_changed/offer.rb +10 -6
- data/lib/peddler/notifications/b2b_any_offer_changed/prime_information.rb +2 -2
- data/lib/peddler/notifications/pricing_health/buy_box_price.rb +2 -2
- data/lib/peddler/notifications/pricing_health/merchant_offer.rb +2 -2
- data/lib/peddler/notifications/pricing_health/payload.rb +6 -6
- data/lib/peddler/notifications/pricing_health/summary.rb +2 -2
- data/lib/peddler/version.rb +1 -1
- data/sig/peddler/notifications/any_offer_changed.rbs +9 -7
- data/sig/peddler/notifications/b2b_any_offer_changed.rbs +20 -19
- data/sig/peddler/notifications/pricing_health.rbs +26 -26
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ee190fadb5703ee02fa1b6ceab63a108f12320f281a276426c7b92b490395615
|
|
4
|
+
data.tar.gz: bd4666f02e7f3bceb31ccc7b0629e4e6704b9444eb81207fd991cce13c0d007a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b14be992ea5c31528f7e4dbcb2721350a7c4b7c5cd8c5f1fae58ba5e78b7f7bcba1e0fa351c87e9783b9e7092521a9cf7cd1dc58082dc7e7a807ddaace604940
|
|
7
|
+
data.tar.gz: 4d919c1be13aa6f772feac62018149065a672de3132004ba357c1d679ad54d7734fb0b716971f0176a4d027d30e28416354ed90bbf543d22d7cfa7eb003bf288
|
data/README.md
CHANGED
|
@@ -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 [
|
|
12
|
-
attribute(:offer_change_trigger,
|
|
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 [
|
|
22
|
-
attribute(:summary,
|
|
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 [
|
|
24
|
-
attribute(:shipping_time,
|
|
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 [
|
|
44
|
-
attribute?(:seller_feedback_rating,
|
|
47
|
+
# @return [SellerFeedbackRating]
|
|
48
|
+
attribute?(:seller_feedback_rating, SellerFeedbackRating, from: "sellerFeedbackRating")
|
|
45
49
|
|
|
46
|
-
# @return [
|
|
47
|
-
attribute?(:ships_from,
|
|
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
|
|
@@ -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 [
|
|
16
|
-
attribute(:merchant_offer,
|
|
15
|
+
# @return [MerchantOffer]
|
|
16
|
+
attribute(:merchant_offer, MerchantOffer, from: "merchantOffer")
|
|
17
17
|
|
|
18
|
-
# @return [
|
|
19
|
-
attribute(:offer_change_trigger,
|
|
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 [
|
|
25
|
-
attribute(:summary,
|
|
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 [
|
|
20
|
-
attribute(:reference_price,
|
|
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")
|
data/lib/peddler/version.rb
CHANGED
|
@@ -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:
|
|
6
|
-
| (
|
|
7
|
-
def self.[]: (offer_change_trigger:
|
|
8
|
-
| (
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
111
|
-
| (bool?, Peddler::Money?, String?, Peddler::Money?,
|
|
112
|
-
def self.[]: (fulfilled_by_amazon: bool?, listing_price: Peddler::Money?, seller_id: String?, shipping: Peddler::Money?, shipping_time:
|
|
113
|
-
| (bool?, Peddler::Money?, String?, Peddler::Money?,
|
|
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:
|
|
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:
|
|
129
|
-
attr_reader ships_from:
|
|
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:
|
|
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:
|
|
6
|
-
| (String?, Peddler::Money?, Peddler::Money?, Peddler::Money?,
|
|
7
|
-
def self.[]: (condition: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, ?points:
|
|
8
|
-
| (String?, Peddler::Money?, Peddler::Money?, Peddler::Money?,
|
|
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:
|
|
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:
|
|
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:
|
|
26
|
-
| (String?, String?, Peddler::Money?, Peddler::Money?, Peddler::Money?,
|
|
27
|
-
def self.[]: (condition: String?, fulfillment_type: String?, landed_price: Peddler::Money?, listing_price: Peddler::Money?, shipping: Peddler::Money?, ?points:
|
|
28
|
-
| (String?, String?, Peddler::Money?, Peddler::Money?, Peddler::Money?,
|
|
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:
|
|
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:
|
|
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:
|
|
124
|
-
| (String?,
|
|
125
|
-
def self.[]: (issue_type: String?, merchant_offer:
|
|
126
|
-
| (String?,
|
|
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:
|
|
134
|
-
attr_reader offer_change_trigger:
|
|
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:
|
|
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:
|
|
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:
|
|
196
|
-
| (Array[Peddler::Notifications::PricingHealth::OfferCount]?, Array[Peddler::Notifications::PricingHealth::OfferCount]?,
|
|
197
|
-
def self.[]: (buy_box_eligible_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, number_of_offers: Array[Peddler::Notifications::PricingHealth::OfferCount]?, reference_price:
|
|
198
|
-
| (Array[Peddler::Notifications::PricingHealth::OfferCount]?, Array[Peddler::Notifications::PricingHealth::OfferCount]?,
|
|
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:
|
|
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:
|
|
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
|