peddler 5.0.0.pre.4 → 5.0.0.pre.6
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 +2 -8
- data/lib/peddler/acronyms.rb +5 -2
- data/lib/peddler/feeds/listings_feed_processing_report_schema/issue.rb +4 -0
- data/lib/peddler/notifications/any_offer_changed/offer.rb +21 -21
- data/lib/peddler/notifications/fulfillment_order_status/fulfillment_order_status_notification.rb +8 -8
- data/lib/peddler/notifications/order_status_change/order_status_change_notification.rb +7 -7
- data/lib/peddler/version.rb +1 -1
- data/lib/peddler.rb +5 -3
- data/sig/peddler/feeds/listings_feed_processing_report_schema.rbs +8 -7
- data/sig/peddler/notifications/any_offer_changed.rbs +7 -7
- data/sig/peddler/notifications/fulfillment_order_status.rbs +7 -7
- data/sig/peddler/notifications/order_status_change.rbs +7 -7
- metadata +3 -3
- /data/lib/peddler/apis/shipping_v2/{claim_proof_ur_ls.rb → claim_proof_urls.rb} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '04903eecb617837564ce2fba386cab0aa1d968f189c2f84f4e780da15b9e906f'
|
|
4
|
+
data.tar.gz: f1387b9a9a4d403e224307245fdf02920213bed039e23a4f480c84a0928cf3a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 962b07bd4f8fd2123702ea454c665c7352af44a8fe905db68105e13dbd9f32b6835a89bc4b6e7953e6ba84286136dcd40decbfca8b995c1d039158b2b7920f7b
|
|
7
|
+
data.tar.gz: e6abf8226db4617d965f78e3e5c066d267fcc27817c9d1e136c1deb110f1d6f26824d23e0afbb1b622c75a6a17ef4f9e281f655bac6ec3b84f429e868ca65a78
|
data/README.md
CHANGED
|
@@ -488,15 +488,9 @@ parsed_data = JSON.parse(http_response.to_s)
|
|
|
488
488
|
sales_data = Peddler::DataKiosk::SalesAndTraffic20231115.parse(parsed_data)
|
|
489
489
|
```
|
|
490
490
|
|
|
491
|
-
**Query Document Management
|
|
491
|
+
**Query Document Management:**
|
|
492
492
|
|
|
493
|
-
Peddler provides a helper method for downloading query documents
|
|
494
|
-
|
|
495
|
-
```ruby
|
|
496
|
-
gem "graphql", "~> 2.0"
|
|
497
|
-
```
|
|
498
|
-
|
|
499
|
-
Then use the helper method:
|
|
493
|
+
Peddler provides a helper method for downloading query documents:
|
|
500
494
|
|
|
501
495
|
```ruby
|
|
502
496
|
api = Peddler.data_kiosk.new(aws_region, access_token)
|
data/lib/peddler/acronyms.rb
CHANGED
|
@@ -8,6 +8,7 @@ module Peddler
|
|
|
8
8
|
# Mapping of camelized forms to their uppercase acronym equivalents
|
|
9
9
|
MAP = {
|
|
10
10
|
"Api" => "API",
|
|
11
|
+
"Apis" => "APIs",
|
|
11
12
|
"Asin" => "ASIN",
|
|
12
13
|
"B2b" => "B2B",
|
|
13
14
|
"Cgst" => "CGST",
|
|
@@ -20,15 +21,17 @@ module Peddler
|
|
|
20
21
|
"Sku" => "SKU",
|
|
21
22
|
"Tds" => "TDS",
|
|
22
23
|
"Url" => "URL",
|
|
24
|
+
"Urls" => "URLs",
|
|
23
25
|
}.freeze
|
|
24
26
|
|
|
25
27
|
# Transforms acronyms in camelized words to uppercase equivalents. Uses lookahead to prevent partial matches
|
|
26
|
-
# within words (e.g., "Cod" won't match inside "Code").
|
|
28
|
+
# within words (e.g., "Cod" won't match inside "Code"). Plural forms require explicit mappings (e.g.,
|
|
29
|
+
# "Urls" => "URLs").
|
|
27
30
|
#
|
|
28
31
|
# @param word [String]
|
|
29
32
|
# @return [String]
|
|
30
33
|
def apply(word)
|
|
31
|
-
MAP.reduce(word) { |w, (from, to)| w.gsub(/#{from}(
|
|
34
|
+
MAP.reduce(word) { |w, (from, to)| w.gsub(/#{from}(?=[A-Z]|$)/) { to } }
|
|
32
35
|
end
|
|
33
36
|
|
|
34
37
|
# @return [Array<String>] Array of uppercase acronyms
|
|
@@ -25,6 +25,10 @@ module Peddler
|
|
|
25
25
|
# Identifiers provided in the submitted feed. Not provided if the error is not related to a message (e.g. feed
|
|
26
26
|
# formatting issue).
|
|
27
27
|
attribute?(:message_id, Integer, from: "messageId")
|
|
28
|
+
|
|
29
|
+
# @return [String] Selling Partner SKU (stock keeping unit) identifier for the listing. SKU uniquely identifies
|
|
30
|
+
# a listing for a Selling Partner.
|
|
31
|
+
attribute?(:sku, String)
|
|
28
32
|
end
|
|
29
33
|
end
|
|
30
34
|
end
|
|
@@ -9,27 +9,12 @@ module Peddler
|
|
|
9
9
|
module Notifications
|
|
10
10
|
module AnyOfferChanged
|
|
11
11
|
Offer = Structure.new do
|
|
12
|
-
# @return [:boolean]
|
|
13
|
-
attribute(:expedited_shipping_available, :boolean, from: "IsExpeditedShippingAvailable")
|
|
14
|
-
|
|
15
|
-
# @return [:boolean]
|
|
16
|
-
attribute(:featured_merchant, :boolean, from: "IsFeaturedMerchant")
|
|
17
|
-
|
|
18
12
|
# @return [:boolean]
|
|
19
13
|
attribute(:fulfilled_by_amazon, :boolean, from: "IsFulfilledByAmazon")
|
|
20
14
|
|
|
21
15
|
# @return [Money]
|
|
22
16
|
attribute(:listing_price, Money, from: "ListingPrice")
|
|
23
17
|
|
|
24
|
-
# @return [Points]
|
|
25
|
-
attribute(:points, Points, from: "Points")
|
|
26
|
-
|
|
27
|
-
# @return [PrimeInformation]
|
|
28
|
-
attribute(:prime_information, PrimeInformation, from: "PrimeInformation")
|
|
29
|
-
|
|
30
|
-
# @return [SellerFeedbackRating]
|
|
31
|
-
attribute(:seller_feedback_rating, SellerFeedbackRating, from: "SellerFeedbackRating")
|
|
32
|
-
|
|
33
18
|
# @return [String]
|
|
34
19
|
attribute(:seller_id, String, from: "SellerId")
|
|
35
20
|
|
|
@@ -39,17 +24,32 @@ module Peddler
|
|
|
39
24
|
# @return [ShippingTime]
|
|
40
25
|
attribute(:shipping_time, ShippingTime, from: "ShippingTime")
|
|
41
26
|
|
|
27
|
+
# @return [String]
|
|
28
|
+
attribute(:sub_condition, String, from: "SubCondition")
|
|
29
|
+
|
|
42
30
|
# @return [:boolean]
|
|
43
|
-
attribute(:
|
|
31
|
+
attribute?(:expedited_shipping_available, :boolean, from: "IsExpeditedShippingAvailable")
|
|
44
32
|
|
|
45
|
-
# @return [
|
|
46
|
-
attribute(:
|
|
33
|
+
# @return [:boolean]
|
|
34
|
+
attribute?(:featured_merchant, :boolean, from: "IsFeaturedMerchant")
|
|
35
|
+
|
|
36
|
+
# @return [Points]
|
|
37
|
+
attribute?(:points, Points, from: "Points")
|
|
38
|
+
|
|
39
|
+
# @return [PrimeInformation]
|
|
40
|
+
attribute?(:prime_information, PrimeInformation, from: "PrimeInformation")
|
|
41
|
+
|
|
42
|
+
# @return [SellerFeedbackRating]
|
|
43
|
+
attribute?(:seller_feedback_rating, SellerFeedbackRating, from: "SellerFeedbackRating")
|
|
47
44
|
|
|
48
45
|
# @return [:boolean]
|
|
49
|
-
attribute(:
|
|
46
|
+
attribute?(:ships_domestically, :boolean, from: "ShipsDomestically")
|
|
50
47
|
|
|
51
|
-
# @return [
|
|
52
|
-
attribute(:
|
|
48
|
+
# @return [ShipsFrom]
|
|
49
|
+
attribute?(:ships_from, ShipsFrom, from: "ShipsFrom")
|
|
50
|
+
|
|
51
|
+
# @return [:boolean]
|
|
52
|
+
attribute?(:ships_internationally, :boolean, from: "ShipsInternationally")
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
end
|
data/lib/peddler/notifications/fulfillment_order_status/fulfillment_order_status_notification.rb
CHANGED
|
@@ -15,20 +15,20 @@ module Peddler
|
|
|
15
15
|
# @return [String]
|
|
16
16
|
attribute(:fulfillment_order_status, String, from: "FulfillmentOrderStatus")
|
|
17
17
|
|
|
18
|
-
# @return [FulfillmentReturnItem]
|
|
19
|
-
attribute(:fulfillment_return_item, FulfillmentReturnItem, from: "FulfillmentReturnItem")
|
|
20
|
-
|
|
21
|
-
# @return [FulfillmentShipment]
|
|
22
|
-
attribute(:fulfillment_shipment, FulfillmentShipment, from: "FulfillmentShipment")
|
|
23
|
-
|
|
24
18
|
# @return [String]
|
|
25
19
|
attribute(:seller_fulfillment_order_id, String, from: "SellerFulfillmentOrderId")
|
|
26
20
|
|
|
27
21
|
# @return [String]
|
|
28
|
-
attribute(:
|
|
22
|
+
attribute(:status_updated_date_time, String, from: "StatusUpdatedDateTime")
|
|
23
|
+
|
|
24
|
+
# @return [FulfillmentReturnItem]
|
|
25
|
+
attribute?(:fulfillment_return_item, FulfillmentReturnItem, from: "FulfillmentReturnItem")
|
|
26
|
+
|
|
27
|
+
# @return [FulfillmentShipment]
|
|
28
|
+
attribute?(:fulfillment_shipment, FulfillmentShipment, from: "FulfillmentShipment")
|
|
29
29
|
|
|
30
30
|
# @return [String]
|
|
31
|
-
attribute(:
|
|
31
|
+
attribute?(:seller_id, String, from: "SellerId")
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
end
|
|
@@ -12,9 +12,6 @@ module Peddler
|
|
|
12
12
|
# @return [String] An Amazon-defined order identifier in 3-7-7 format.
|
|
13
13
|
attribute(:amazon_order_id, String, from: "AmazonOrderId")
|
|
14
14
|
|
|
15
|
-
# @return [String] The destination postal code.
|
|
16
|
-
attribute(:destination_postal_code, String, from: "DestinationPostalCode")
|
|
17
|
-
|
|
18
15
|
# @return [String] Fulfillment channel of the affected order, MFN or AFN.
|
|
19
16
|
attribute(:fulfillment_channel, String, from: "FulfillmentChannel")
|
|
20
17
|
|
|
@@ -28,9 +25,6 @@ module Peddler
|
|
|
28
25
|
# PartiallyShipped, PendingAvailability, Canceled, InvoiceUnconfirmed, Shipped, and Unfulfillable.
|
|
29
26
|
attribute(:order_status, String, from: "OrderStatus")
|
|
30
27
|
|
|
31
|
-
# @return [String] The purchase date of the order in Epoch time.
|
|
32
|
-
attribute(:purchase_date, String, from: "PurchaseDate")
|
|
33
|
-
|
|
34
28
|
# @return [Integer] The number of items in the order.
|
|
35
29
|
attribute(:quantity, Integer, from: "Quantity")
|
|
36
30
|
|
|
@@ -40,8 +34,14 @@ module Peddler
|
|
|
40
34
|
# @return [String] The seller-specific SKU identifier for an item.
|
|
41
35
|
attribute(:seller_sku, String, from: "SellerSKU")
|
|
42
36
|
|
|
37
|
+
# @return [String] The destination postal code.
|
|
38
|
+
attribute?(:destination_postal_code, String, from: "DestinationPostalCode")
|
|
39
|
+
|
|
40
|
+
# @return [String] The purchase date of the order in Epoch time.
|
|
41
|
+
attribute?(:purchase_date, String, from: "PurchaseDate")
|
|
42
|
+
|
|
43
43
|
# @return [String] The unique identifier of the supply source.
|
|
44
|
-
attribute(:supply_source_id, String, from: "SupplySourceId")
|
|
44
|
+
attribute?(:supply_source_id, String, from: "SupplySourceId")
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
end
|
data/lib/peddler/version.rb
CHANGED
data/lib/peddler.rb
CHANGED
|
@@ -7,8 +7,10 @@ require "peddler/inflector"
|
|
|
7
7
|
|
|
8
8
|
loader = Zeitwerk::Loader.for_gem
|
|
9
9
|
loader.inflector = Peddler::Inflector.new(__FILE__)
|
|
10
|
-
|
|
11
|
-
loader.ignore("#{__dir__}/generator.rb")
|
|
10
|
+
if File.exist?("#{__dir__}/generator.rb")
|
|
11
|
+
loader.ignore("#{__dir__}/generator.rb")
|
|
12
|
+
loader.ignore("#{__dir__}/generator")
|
|
13
|
+
end
|
|
12
14
|
loader.setup
|
|
13
15
|
|
|
14
16
|
module Peddler
|
|
@@ -31,7 +33,6 @@ module Peddler
|
|
|
31
33
|
def feeds_2021_06_30 = APIs::Feeds20210630
|
|
32
34
|
def finances_v0 = APIs::FinancesV0
|
|
33
35
|
def finances_2024_06_19 = APIs::Finances20240619
|
|
34
|
-
def transfers_2024_06_01 = APIs::Transfers20240601
|
|
35
36
|
def fulfillment_inbound_v0 = APIs::FulfillmentInboundV0
|
|
36
37
|
def fulfillment_inbound_2024_03_20 = APIs::FulfillmentInbound20240320
|
|
37
38
|
def fulfillment_outbound_2020_07_01 = APIs::FulfillmentOutbound20200701
|
|
@@ -59,6 +60,7 @@ module Peddler
|
|
|
59
60
|
def solicitations_v1 = APIs::SolicitationsV1
|
|
60
61
|
def supply_sources_2020_07_01 = APIs::SupplySources20200701
|
|
61
62
|
def tokens_2021_03_01 = APIs::Tokens20210301
|
|
63
|
+
def transfers_2024_06_01 = APIs::Transfers20240601
|
|
62
64
|
def uploads_2020_11_01 = APIs::Uploads20201101
|
|
63
65
|
def vehicles_2024_11_01 = APIs::Vehicles20241101
|
|
64
66
|
def vendor_direct_fulfillment_inventory_v1 = APIs::VendorDirectFulfillmentInventoryV1
|
|
@@ -40,12 +40,12 @@ module Peddler
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
class Issue < Data
|
|
43
|
-
def self.new: (message: String?, severity: String?, ?attribute_name: String?, ?code: String?, ?message_id: Integer?) -> Peddler::Feeds::ListingsFeedProcessingReportSchema::Issue
|
|
44
|
-
| (String?, String?, String?, String?, Integer?) -> Peddler::Feeds::ListingsFeedProcessingReportSchema::Issue
|
|
45
|
-
def self.[]: (message: String?, severity: String?, ?attribute_name: String?, ?code: String?, ?message_id: Integer?) -> Peddler::Feeds::ListingsFeedProcessingReportSchema::Issue
|
|
46
|
-
| (String?, String?, String?, String?, Integer?) -> Peddler::Feeds::ListingsFeedProcessingReportSchema::Issue
|
|
43
|
+
def self.new: (message: String?, severity: String?, ?attribute_name: String?, ?code: String?, ?message_id: Integer?, ?sku: String?) -> Peddler::Feeds::ListingsFeedProcessingReportSchema::Issue
|
|
44
|
+
| (String?, String?, String?, String?, Integer?, String?) -> Peddler::Feeds::ListingsFeedProcessingReportSchema::Issue
|
|
45
|
+
def self.[]: (message: String?, severity: String?, ?attribute_name: String?, ?code: String?, ?message_id: Integer?, ?sku: String?) -> Peddler::Feeds::ListingsFeedProcessingReportSchema::Issue
|
|
46
|
+
| (String?, String?, String?, String?, Integer?, String?) -> Peddler::Feeds::ListingsFeedProcessingReportSchema::Issue
|
|
47
47
|
|
|
48
|
-
def self.members: () -> [ :message, :severity, :attribute_name, :code, :message_id ]
|
|
48
|
+
def self.members: () -> [ :message, :severity, :attribute_name, :code, :message_id, :sku ]
|
|
49
49
|
|
|
50
50
|
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Feeds::ListingsFeedProcessingReportSchema::Issue
|
|
51
51
|
|
|
@@ -54,9 +54,10 @@ module Peddler
|
|
|
54
54
|
attr_reader message: String?
|
|
55
55
|
attr_reader message_id: Integer?
|
|
56
56
|
attr_reader severity: String?
|
|
57
|
+
attr_reader sku: String?
|
|
57
58
|
|
|
58
|
-
def members: () -> [ :message, :severity, :attribute_name, :code, :message_id ]
|
|
59
|
-
def to_h: () -> { message: String?, severity: String?, attribute_name: String?, code: String?, message_id: Integer? }
|
|
59
|
+
def members: () -> [ :message, :severity, :attribute_name, :code, :message_id, :sku ]
|
|
60
|
+
def to_h: () -> { message: String?, severity: String?, attribute_name: String?, code: String?, message_id: Integer?, sku: String? }
|
|
60
61
|
end
|
|
61
62
|
|
|
62
63
|
class ItemSummary < Data
|
|
@@ -119,12 +119,12 @@ module Peddler
|
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
class Offer < Data
|
|
122
|
-
def self.new: (
|
|
123
|
-
| (bool?,
|
|
124
|
-
def self.[]: (
|
|
125
|
-
| (bool?,
|
|
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
|
|
126
126
|
|
|
127
|
-
def self.members: () -> [ :
|
|
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 ]
|
|
128
128
|
|
|
129
129
|
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::AnyOfferChanged::Offer
|
|
130
130
|
|
|
@@ -146,10 +146,10 @@ module Peddler
|
|
|
146
146
|
def expedited_shipping_available?: () -> bool
|
|
147
147
|
def featured_merchant?: () -> bool
|
|
148
148
|
def fulfilled_by_amazon?: () -> bool
|
|
149
|
-
def members: () -> [ :
|
|
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 ]
|
|
150
150
|
def ships_domestically?: () -> bool
|
|
151
151
|
def ships_internationally?: () -> bool
|
|
152
|
-
def to_h: () -> {
|
|
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? }
|
|
153
153
|
end
|
|
154
154
|
|
|
155
155
|
class OfferChangeTrigger < Data
|
|
@@ -2,12 +2,12 @@ module Peddler
|
|
|
2
2
|
module Notifications
|
|
3
3
|
module FulfillmentOrderStatus
|
|
4
4
|
class FulfillmentOrderStatusNotification < Data
|
|
5
|
-
def self.new: (event_type: String?, fulfillment_order_status: String?, fulfillment_return_item: Peddler::Notifications::FulfillmentOrderStatus::FulfillmentReturnItem?, fulfillment_shipment: Peddler::Notifications::FulfillmentOrderStatus::FulfillmentShipment?,
|
|
6
|
-
| (String?, String?, Peddler::Notifications::FulfillmentOrderStatus::FulfillmentReturnItem?, Peddler::Notifications::FulfillmentOrderStatus::FulfillmentShipment?, String
|
|
7
|
-
def self.[]: (event_type: String?, fulfillment_order_status: String?, fulfillment_return_item: Peddler::Notifications::FulfillmentOrderStatus::FulfillmentReturnItem?, fulfillment_shipment: Peddler::Notifications::FulfillmentOrderStatus::FulfillmentShipment?,
|
|
8
|
-
| (String?, String?, Peddler::Notifications::FulfillmentOrderStatus::FulfillmentReturnItem?, Peddler::Notifications::FulfillmentOrderStatus::FulfillmentShipment?, String
|
|
5
|
+
def self.new: (event_type: String?, fulfillment_order_status: String?, seller_fulfillment_order_id: String?, status_updated_date_time: String?, ?fulfillment_return_item: Peddler::Notifications::FulfillmentOrderStatus::FulfillmentReturnItem?, ?fulfillment_shipment: Peddler::Notifications::FulfillmentOrderStatus::FulfillmentShipment?, ?seller_id: String?) -> Peddler::Notifications::FulfillmentOrderStatus::FulfillmentOrderStatusNotification
|
|
6
|
+
| (String?, String?, String?, String?, Peddler::Notifications::FulfillmentOrderStatus::FulfillmentReturnItem?, Peddler::Notifications::FulfillmentOrderStatus::FulfillmentShipment?, String?) -> Peddler::Notifications::FulfillmentOrderStatus::FulfillmentOrderStatusNotification
|
|
7
|
+
def self.[]: (event_type: String?, fulfillment_order_status: String?, seller_fulfillment_order_id: String?, status_updated_date_time: String?, ?fulfillment_return_item: Peddler::Notifications::FulfillmentOrderStatus::FulfillmentReturnItem?, ?fulfillment_shipment: Peddler::Notifications::FulfillmentOrderStatus::FulfillmentShipment?, ?seller_id: String?) -> Peddler::Notifications::FulfillmentOrderStatus::FulfillmentOrderStatusNotification
|
|
8
|
+
| (String?, String?, String?, String?, Peddler::Notifications::FulfillmentOrderStatus::FulfillmentReturnItem?, Peddler::Notifications::FulfillmentOrderStatus::FulfillmentShipment?, String?) -> Peddler::Notifications::FulfillmentOrderStatus::FulfillmentOrderStatusNotification
|
|
9
9
|
|
|
10
|
-
def self.members: () -> [ :event_type, :fulfillment_order_status, :
|
|
10
|
+
def self.members: () -> [ :event_type, :fulfillment_order_status, :seller_fulfillment_order_id, :status_updated_date_time, :fulfillment_return_item, :fulfillment_shipment, :seller_id ]
|
|
11
11
|
|
|
12
12
|
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::FulfillmentOrderStatus::FulfillmentOrderStatusNotification
|
|
13
13
|
|
|
@@ -19,8 +19,8 @@ module Peddler
|
|
|
19
19
|
attr_reader seller_id: String?
|
|
20
20
|
attr_reader status_updated_date_time: String?
|
|
21
21
|
|
|
22
|
-
def members: () -> [ :event_type, :fulfillment_order_status, :
|
|
23
|
-
def to_h: () -> { event_type: String?, fulfillment_order_status: String?, fulfillment_return_item: Peddler::Notifications::FulfillmentOrderStatus::FulfillmentReturnItem?, fulfillment_shipment: Peddler::Notifications::FulfillmentOrderStatus::FulfillmentShipment?,
|
|
22
|
+
def members: () -> [ :event_type, :fulfillment_order_status, :seller_fulfillment_order_id, :status_updated_date_time, :fulfillment_return_item, :fulfillment_shipment, :seller_id ]
|
|
23
|
+
def to_h: () -> { event_type: String?, fulfillment_order_status: String?, seller_fulfillment_order_id: String?, status_updated_date_time: String?, fulfillment_return_item: Peddler::Notifications::FulfillmentOrderStatus::FulfillmentReturnItem?, fulfillment_shipment: Peddler::Notifications::FulfillmentOrderStatus::FulfillmentShipment?, seller_id: String? }
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
class FulfillmentReturnItem < Data
|
|
@@ -23,12 +23,12 @@ module Peddler
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
class OrderStatusChangeNotification < Data
|
|
26
|
-
def self.new: (amazon_order_id: String?,
|
|
27
|
-
| (String?, String?, String?, String?, String?,
|
|
28
|
-
def self.[]: (amazon_order_id: String?,
|
|
29
|
-
| (String?, String?, String?, String?, String?,
|
|
26
|
+
def self.new: (amazon_order_id: String?, fulfillment_channel: String?, marketplace_id: String?, order_item_id: String?, order_status: String?, quantity: Integer?, seller_id: String?, seller_sku: String?, ?destination_postal_code: String?, ?purchase_date: String?, ?supply_source_id: String?) -> Peddler::Notifications::OrderStatusChange::OrderStatusChangeNotification
|
|
27
|
+
| (String?, String?, String?, String?, String?, Integer?, String?, String?, String?, String?, String?) -> Peddler::Notifications::OrderStatusChange::OrderStatusChangeNotification
|
|
28
|
+
def self.[]: (amazon_order_id: String?, fulfillment_channel: String?, marketplace_id: String?, order_item_id: String?, order_status: String?, quantity: Integer?, seller_id: String?, seller_sku: String?, ?destination_postal_code: String?, ?purchase_date: String?, ?supply_source_id: String?) -> Peddler::Notifications::OrderStatusChange::OrderStatusChangeNotification
|
|
29
|
+
| (String?, String?, String?, String?, String?, Integer?, String?, String?, String?, String?, String?) -> Peddler::Notifications::OrderStatusChange::OrderStatusChangeNotification
|
|
30
30
|
|
|
31
|
-
def self.members: () -> [ :amazon_order_id, :
|
|
31
|
+
def self.members: () -> [ :amazon_order_id, :fulfillment_channel, :marketplace_id, :order_item_id, :order_status, :quantity, :seller_id, :seller_sku, :destination_postal_code, :purchase_date, :supply_source_id ]
|
|
32
32
|
|
|
33
33
|
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Notifications::OrderStatusChange::OrderStatusChangeNotification
|
|
34
34
|
|
|
@@ -44,8 +44,8 @@ module Peddler
|
|
|
44
44
|
attr_reader seller_sku: String?
|
|
45
45
|
attr_reader supply_source_id: String?
|
|
46
46
|
|
|
47
|
-
def members: () -> [ :amazon_order_id, :
|
|
48
|
-
def to_h: () -> { amazon_order_id: String?,
|
|
47
|
+
def members: () -> [ :amazon_order_id, :fulfillment_channel, :marketplace_id, :order_item_id, :order_status, :quantity, :seller_id, :seller_sku, :destination_postal_code, :purchase_date, :supply_source_id ]
|
|
48
|
+
def to_h: () -> { amazon_order_id: String?, fulfillment_channel: String?, marketplace_id: String?, order_item_id: String?, order_status: String?, quantity: Integer?, seller_id: String?, seller_sku: String?, destination_postal_code: String?, purchase_date: String?, supply_source_id: String? }
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
class Payload < Data
|
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.
|
|
4
|
+
version: 5.0.0.pre.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hakan Ensari
|
|
@@ -1484,7 +1484,7 @@ files:
|
|
|
1484
1484
|
- lib/peddler/apis/shipping_v2/channel_details.rb
|
|
1485
1485
|
- lib/peddler/apis/shipping_v2/charge_component.rb
|
|
1486
1486
|
- lib/peddler/apis/shipping_v2/charge_list.rb
|
|
1487
|
-
- lib/peddler/apis/shipping_v2/
|
|
1487
|
+
- lib/peddler/apis/shipping_v2/claim_proof_urls.rb
|
|
1488
1488
|
- lib/peddler/apis/shipping_v2/client_reference_detail.rb
|
|
1489
1489
|
- lib/peddler/apis/shipping_v2/client_reference_details.rb
|
|
1490
1490
|
- lib/peddler/apis/shipping_v2/collect_on_delivery.rb
|
|
@@ -2478,7 +2478,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
2478
2478
|
- !ruby/object:Gem::Version
|
|
2479
2479
|
version: '0'
|
|
2480
2480
|
requirements: []
|
|
2481
|
-
rubygems_version: 3.
|
|
2481
|
+
rubygems_version: 3.7.2
|
|
2482
2482
|
specification_version: 4
|
|
2483
2483
|
summary: Amazon Selling Partner API (SP-API) in Ruby
|
|
2484
2484
|
test_files: []
|
|
File without changes
|