peddler 5.0.0.pre.6 → 5.0.0.pre.7
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/lib/peddler/notifications/any_offer_changed/summary.rb +14 -14
- data/lib/peddler/notifications/b2b_any_offer_changed/offer_count.rb +1 -1
- data/lib/peddler/notifications/b2b_any_offer_changed/seller_feedback_rating.rb +1 -1
- data/lib/peddler/notifications/b2b_any_offer_changed/ships_from.rb +1 -1
- data/lib/peddler/notifications/b2b_any_offer_changed/summary.rb +4 -4
- data/lib/peddler/notifications/fee_promotion/fee_detail.rb +5 -5
- data/lib/peddler/notifications/fee_promotion/identifier_value.rb +2 -2
- data/lib/peddler/notifications/fee_promotion/promotion_information.rb +8 -8
- data/lib/peddler/notifications/pricing_health/offer_change_trigger.rb +1 -1
- data/lib/peddler/version.rb +1 -1
- data/sig/peddler/notifications/any_offer_changed.rbs +7 -7
- data/sig/peddler/notifications/b2b_any_offer_changed.rbs +13 -13
- data/sig/peddler/notifications/fee_promotion.rbs +19 -19
- data/sig/peddler/notifications/pricing_health.rbs +2 -2
- 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: 8a4ba345830f628a204734b0032d61b921183ef4bec9067cbda505679978d031
|
|
4
|
+
data.tar.gz: 530a8cd8952373c1232b8b76e7ba6009dae8d5686eee0e77441a926264831b48
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5cefc76721fa838f1c658fa564cb14112445506290e86043b1431b9344632579020b5046133692a6cbb1a64d340b546729393c55f6664e63a536b2d98b0af9b
|
|
7
|
+
data.tar.gz: b5beea6eeb93f917b08640b68231307ebb8e024f56608ffb4b3fb0f8c303aacb0e3f4405f71c78dfd113be3330f3edfafaf426a3230bc890fb23e0ce6efa69c0
|
|
@@ -9,34 +9,34 @@ module Peddler
|
|
|
9
9
|
module AnyOfferChanged
|
|
10
10
|
Summary = Structure.new do
|
|
11
11
|
# @return [Array]
|
|
12
|
-
attribute(:
|
|
12
|
+
attribute(:lowest_prices, Array, from: "LowestPrices")
|
|
13
13
|
|
|
14
|
-
# @return [
|
|
15
|
-
attribute(:
|
|
14
|
+
# @return [Array]
|
|
15
|
+
attribute(:number_of_buy_box_eligible_offers, Array, from: "NumberOfBuyBoxEligibleOffers")
|
|
16
16
|
|
|
17
|
-
# @return [
|
|
18
|
-
attribute(:
|
|
17
|
+
# @return [Array]
|
|
18
|
+
attribute(:number_of_offers, Array, from: "NumberOfOffers")
|
|
19
19
|
|
|
20
20
|
# @return [Array]
|
|
21
|
-
attribute(:
|
|
21
|
+
attribute?(:buy_box_prices, Array, from: "BuyBoxPrices")
|
|
22
22
|
|
|
23
23
|
# @return [Money]
|
|
24
|
-
attribute(:
|
|
24
|
+
attribute?(:competitive_price_threshold, Money, from: "CompetitivePriceThreshold")
|
|
25
25
|
|
|
26
|
-
# @return [
|
|
27
|
-
attribute(:
|
|
26
|
+
# @return [Money]
|
|
27
|
+
attribute?(:list_price, Money, from: "ListPrice")
|
|
28
28
|
|
|
29
|
-
# @return [
|
|
30
|
-
attribute(:
|
|
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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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(:
|
|
12
|
+
attribute(:identifier_value_id, String, from: "IdentifierValueId")
|
|
13
13
|
|
|
14
14
|
# @return [String]
|
|
15
|
-
attribute(:
|
|
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
|
|
@@ -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
|
data/lib/peddler/version.rb
CHANGED
|
@@ -294,12 +294,12 @@ module Peddler
|
|
|
294
294
|
end
|
|
295
295
|
|
|
296
296
|
class Summary < Data
|
|
297
|
-
def self.new: (
|
|
298
|
-
| (Array[untyped]?,
|
|
299
|
-
def self.[]: (
|
|
300
|
-
| (Array[untyped]?,
|
|
297
|
+
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
|
|
298
|
+
| (Array[untyped]?, Array[untyped]?, Array[untyped]?, Array[untyped]?, Peddler::Money?, Peddler::Money?, Peddler::Money?, Array[untyped]?, Peddler::Money?, Integer?) -> Peddler::Notifications::AnyOfferChanged::Summary
|
|
299
|
+
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
|
|
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
301
|
|
|
302
|
-
def self.members: () -> [ :
|
|
302
|
+
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
303
|
|
|
304
304
|
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::AnyOfferChanged::Summary
|
|
305
305
|
|
|
@@ -314,8 +314,8 @@ module Peddler
|
|
|
314
314
|
attr_reader suggested_lower_price_plus_shipping: Peddler::Money?
|
|
315
315
|
attr_reader total_buy_box_eligible_offers: Integer?
|
|
316
316
|
|
|
317
|
-
def members: () -> [ :
|
|
318
|
-
def to_h: () -> {
|
|
317
|
+
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 ]
|
|
318
|
+
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
319
|
end
|
|
320
320
|
|
|
321
321
|
def self.parse: (Hash[String | Symbol, untyped]) -> Peddler::Notifications::AnyOfferChanged::Notification
|
|
@@ -156,9 +156,9 @@ module Peddler
|
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
class OfferCount < Data
|
|
159
|
-
def self.new: (condition: String?, fulfillment_channel: String?, offer_count: Integer?) -> Peddler::Notifications::B2BAnyOfferChanged::OfferCount
|
|
159
|
+
def self.new: (condition: String?, fulfillment_channel: String?, ?offer_count: Integer?) -> Peddler::Notifications::B2BAnyOfferChanged::OfferCount
|
|
160
160
|
| (String?, String?, Integer?) -> Peddler::Notifications::B2BAnyOfferChanged::OfferCount
|
|
161
|
-
def self.[]: (condition: String?, fulfillment_channel: String?, offer_count: Integer?) -> Peddler::Notifications::B2BAnyOfferChanged::OfferCount
|
|
161
|
+
def self.[]: (condition: String?, fulfillment_channel: String?, ?offer_count: Integer?) -> Peddler::Notifications::B2BAnyOfferChanged::OfferCount
|
|
162
162
|
| (String?, String?, Integer?) -> Peddler::Notifications::B2BAnyOfferChanged::OfferCount
|
|
163
163
|
|
|
164
164
|
def self.members: () -> [ :condition, :fulfillment_channel, :offer_count ]
|
|
@@ -227,9 +227,9 @@ module Peddler
|
|
|
227
227
|
end
|
|
228
228
|
|
|
229
229
|
class SellerFeedbackRating < Data
|
|
230
|
-
def self.new: (feedback_count: Integer?, seller_positive_feedback_rating: Float?) -> Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating
|
|
230
|
+
def self.new: (feedback_count: Integer?, ?seller_positive_feedback_rating: Float?) -> Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating
|
|
231
231
|
| (Integer?, Float?) -> Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating
|
|
232
|
-
def self.[]: (feedback_count: Integer?, seller_positive_feedback_rating: Float?) -> Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating
|
|
232
|
+
def self.[]: (feedback_count: Integer?, ?seller_positive_feedback_rating: Float?) -> Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating
|
|
233
233
|
| (Integer?, Float?) -> Peddler::Notifications::B2BAnyOfferChanged::SellerFeedbackRating
|
|
234
234
|
|
|
235
235
|
def self.members: () -> [ :feedback_count, :seller_positive_feedback_rating ]
|
|
@@ -263,9 +263,9 @@ module Peddler
|
|
|
263
263
|
end
|
|
264
264
|
|
|
265
265
|
class ShipsFrom < Data
|
|
266
|
-
def self.new: (country: String?) -> Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom
|
|
266
|
+
def self.new: (?country: String?) -> Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom
|
|
267
267
|
| (String?) -> Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom
|
|
268
|
-
def self.[]: (country: String?) -> Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom
|
|
268
|
+
def self.[]: (?country: String?) -> Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom
|
|
269
269
|
| (String?) -> Peddler::Notifications::B2BAnyOfferChanged::ShipsFrom
|
|
270
270
|
|
|
271
271
|
def self.members: () -> [ :country ]
|
|
@@ -279,12 +279,12 @@ module Peddler
|
|
|
279
279
|
end
|
|
280
280
|
|
|
281
281
|
class Summary < Data
|
|
282
|
-
def self.new: (buy_box_eligible_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?,
|
|
283
|
-
| (Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, Array[Peddler::Notifications::B2BAnyOfferChanged::
|
|
284
|
-
def self.[]: (buy_box_eligible_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?,
|
|
285
|
-
| (Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, Array[Peddler::Notifications::B2BAnyOfferChanged::
|
|
282
|
+
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
|
|
283
|
+
| (Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?, Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?, Array[Peddler::Notifications::B2BAnyOfferChanged::BuyBoxPrice]?) -> Peddler::Notifications::B2BAnyOfferChanged::Summary
|
|
284
|
+
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
|
|
285
|
+
| (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
286
|
|
|
287
|
-
def self.members: () -> [ :buy_box_eligible_offers, :
|
|
287
|
+
def self.members: () -> [ :buy_box_eligible_offers, :lowest_prices, :number_of_offers, :buy_box_prices ]
|
|
288
288
|
|
|
289
289
|
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::B2BAnyOfferChanged::Summary
|
|
290
290
|
|
|
@@ -293,8 +293,8 @@ module Peddler
|
|
|
293
293
|
attr_reader lowest_prices: Array[Peddler::Notifications::B2BAnyOfferChanged::LowestPrice]?
|
|
294
294
|
attr_reader number_of_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?
|
|
295
295
|
|
|
296
|
-
def members: () -> [ :buy_box_eligible_offers, :
|
|
297
|
-
def to_h: () -> { buy_box_eligible_offers: Array[Peddler::Notifications::B2BAnyOfferChanged::OfferCount]?,
|
|
296
|
+
def members: () -> [ :buy_box_eligible_offers, :lowest_prices, :number_of_offers, :buy_box_prices ]
|
|
297
|
+
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
298
|
end
|
|
299
299
|
|
|
300
300
|
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?,
|
|
23
|
-
| (Peddler::Notifications::FeePromotion::FeeAmount?, Peddler::Notifications::FeePromotion::
|
|
24
|
-
def self.[]: (fee_amount: Peddler::Notifications::FeePromotion::FeeAmount?,
|
|
25
|
-
| (Peddler::Notifications::FeePromotion::FeeAmount?, Peddler::Notifications::FeePromotion::
|
|
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, :
|
|
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, :
|
|
39
|
-
def to_h: () -> { fee_amount: Peddler::Notifications::FeePromotion::FeeAmount?,
|
|
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: (
|
|
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.[]: (
|
|
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: () -> [ :
|
|
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: () -> [ :
|
|
181
|
-
def to_h: () -> {
|
|
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?,
|
|
277
|
-
| (Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?,
|
|
278
|
-
def self.[]: (fee_discount_monetary_amount: Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?,
|
|
279
|
-
| (Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?,
|
|
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: () -> [ :
|
|
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: () -> [ :
|
|
293
|
-
def to_h: () -> { fee_discount_monetary_amount: Peddler::Notifications::FeePromotion::FeeDiscountMonetaryAmount?,
|
|
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
|
|
@@ -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 ]
|