peddler 4.1.1 → 4.2.0
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 +0 -3
- data/lib/peddler/api.rb +3 -2
- data/lib/peddler/apis/amazon_warehousing_and_distribution_2024_05_09.rb +119 -2
- data/lib/peddler/apis/aplus_content_2020_11_01.rb +59 -49
- data/lib/peddler/apis/catalog_items_2022_04_01.rb +34 -33
- data/lib/peddler/apis/easy_ship_2022_03_23.rb +19 -18
- data/lib/peddler/apis/feeds_2021_06_30.rb +1 -1
- data/lib/peddler/apis/finances_2024_06_01.rb +53 -0
- data/lib/peddler/apis/finances_2024_06_19.rb +14 -17
- data/lib/peddler/apis/fulfillment_inbound_2024_03_20.rb +10 -5
- data/lib/peddler/apis/fulfillment_inbound_v0.rb +2 -170
- data/lib/peddler/apis/listings_items_2021_08_01.rb +77 -5
- data/lib/peddler/apis/messaging_v1.rb +50 -49
- data/lib/peddler/apis/orders_v0.rb +1 -1
- data/lib/peddler/apis/product_pricing_v0.rb +3 -2
- data/lib/peddler/apis/reports_2021_06_30.rb +1 -1
- data/lib/peddler/apis/sellers_v1.rb +1 -1
- data/lib/peddler/apis/shipping_v1.rb +12 -12
- data/lib/peddler/apis/shipping_v2.rb +46 -20
- data/lib/peddler/apis/uploads_2020_11_01.rb +9 -8
- data/lib/peddler/apis/vehicles_2024_11_01.rb +40 -0
- data/lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb +40 -27
- data/lib/peddler/apis/vendor_invoices_v1.rb +1 -1
- data/lib/peddler/apis/vendor_shipments_v1.rb +40 -1
- data/lib/peddler/error.rb +11 -1
- data/lib/peddler/token.rb +12 -12
- data/lib/peddler/version.rb +1 -1
- data/lib/peddler.rb +2 -0
- metadata +5 -8
- data/lib/peddler/json_feed_document.rb +0 -31
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peddler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hakan Ensari
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-18 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: http
|
@@ -30,7 +29,6 @@ dependencies:
|
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
31
|
version: '7.0'
|
33
|
-
description:
|
34
32
|
email:
|
35
33
|
- hakanensari@gmail.com
|
36
34
|
executables: []
|
@@ -53,6 +51,7 @@ files:
|
|
53
51
|
- lib/peddler/apis/fba_inbound_eligibility_v1.rb
|
54
52
|
- lib/peddler/apis/fba_inventory_v1.rb
|
55
53
|
- lib/peddler/apis/feeds_2021_06_30.rb
|
54
|
+
- lib/peddler/apis/finances_2024_06_01.rb
|
56
55
|
- lib/peddler/apis/finances_2024_06_19.rb
|
57
56
|
- lib/peddler/apis/finances_v0.rb
|
58
57
|
- lib/peddler/apis/fulfillment_inbound_2024_03_20.rb
|
@@ -82,6 +81,7 @@ files:
|
|
82
81
|
- lib/peddler/apis/supply_sources_2020_07_01.rb
|
83
82
|
- lib/peddler/apis/tokens_2021_03_01.rb
|
84
83
|
- lib/peddler/apis/uploads_2020_11_01.rb
|
84
|
+
- lib/peddler/apis/vehicles_2024_11_01.rb
|
85
85
|
- lib/peddler/apis/vendor_direct_fulfillment_inventory_v1.rb
|
86
86
|
- lib/peddler/apis/vendor_direct_fulfillment_orders_2021_12_28.rb
|
87
87
|
- lib/peddler/apis/vendor_direct_fulfillment_orders_v1.rb
|
@@ -98,7 +98,6 @@ files:
|
|
98
98
|
- lib/peddler/endpoint.rb
|
99
99
|
- lib/peddler/error.rb
|
100
100
|
- lib/peddler/helpers/feeds_2021_06_30.rb
|
101
|
-
- lib/peddler/json_feed_document.rb
|
102
101
|
- lib/peddler/marketplace.rb
|
103
102
|
- lib/peddler/response.rb
|
104
103
|
- lib/peddler/token.rb
|
@@ -108,7 +107,6 @@ licenses:
|
|
108
107
|
- MIT
|
109
108
|
metadata:
|
110
109
|
rubygems_mfa_required: 'true'
|
111
|
-
post_install_message:
|
112
110
|
rdoc_options: []
|
113
111
|
require_paths:
|
114
112
|
- lib
|
@@ -123,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
121
|
- !ruby/object:Gem::Version
|
124
122
|
version: '0'
|
125
123
|
requirements: []
|
126
|
-
rubygems_version: 3.
|
127
|
-
signing_key:
|
124
|
+
rubygems_version: 3.6.2
|
128
125
|
specification_version: 4
|
129
126
|
summary: Amazon Selling Partner API (SP-API) in Ruby
|
130
127
|
test_files: []
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Peddler
|
4
|
-
class JSONFeedDocument
|
5
|
-
CONTENT_TYPE = "application/json; charset=UTF-8"
|
6
|
-
|
7
|
-
def upload(content)
|
8
|
-
# While HTTPrb already sets the content-type, Amazon server seems to fail if we don't explicitly set it again
|
9
|
-
# here. A bit of a mystery; maybe it's the order of the headers that's screwing things up on their end?
|
10
|
-
HTTP.headers("Content-Type" => CONTENT_TYPE).put(url, json: content)
|
11
|
-
end
|
12
|
-
|
13
|
-
def initialize(api)
|
14
|
-
@api = api
|
15
|
-
end
|
16
|
-
|
17
|
-
def id
|
18
|
-
metadata.fetch("id")
|
19
|
-
end
|
20
|
-
|
21
|
-
def url
|
22
|
-
metadata.fetch("url")
|
23
|
-
end
|
24
|
-
|
25
|
-
private
|
26
|
-
|
27
|
-
def metadata
|
28
|
-
@metadata ||= @api.create_feed_document({ "contentType" => CONTENT_TYPE }).parse
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|