muffin_man 1.4.6 → 1.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/muffin_man/fulfillment_inbound/v0.rb +13 -0
- data/lib/muffin_man/request_helpers/base.rb +15 -0
- data/lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb +27 -0
- data/lib/muffin_man/request_helpers.rb +2 -0
- data/lib/muffin_man/version.rb +1 -1
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a917d17125d2557b73aec27117dd30327c866382198d202ba9a8d54bff5db82c
|
4
|
+
data.tar.gz: 46eafd766beab5cd7d300bbd2ad9a2aaf62d47ee48c67b51c0173f07eb657959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56e85f023181739f5946a912483eade11c1e14fe02963dd2ad845b3ddc7e95da36c0490c2cafd3a8d36ec83d6d0156374134a81e83c0e9cbbe8f2b9c8a76c515
|
7
|
+
data.tar.gz: 3034a2f736e1be8d4c4d0261ce90e76e5f2dba3b7c73572d30d72d90426c177faf483fc72cc9ed4192b2aee1f2364c091dee9a867fc641150f440ade552babef
|
data/CHANGELOG.md
CHANGED
@@ -11,6 +11,19 @@ module MuffinMan
|
|
11
11
|
@request_type = "GET"
|
12
12
|
call_api
|
13
13
|
end
|
14
|
+
|
15
|
+
def create_inbound_shipment_plan(ship_from_address, label_prep_preference, inbound_shipment_plan_request_items, ship_to_country_code: nil, ship_to_country_subdivision_code: nil)
|
16
|
+
@local_var_path = "/fba/inbound/v0/plans"
|
17
|
+
@request_body = {
|
18
|
+
"ShipFromAddress" => ship_from_address,
|
19
|
+
"LabelPrepPreference" => label_prep_preference,
|
20
|
+
"InboundShipmentPlanRequestItems" => inbound_shipment_plan_request_items,
|
21
|
+
}
|
22
|
+
@request_body["ShipToCountryCode"] = ship_to_country_code unless ship_to_country_code.nil?
|
23
|
+
@request_body["ShipToCountrySubdivisionCode"] = ship_to_country_subdivision_code unless ship_to_country_subdivision_code.nil?
|
24
|
+
@request_type = "POST"
|
25
|
+
call_api
|
26
|
+
end
|
14
27
|
end
|
15
28
|
end
|
16
29
|
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module MuffinMan
|
2
|
+
module RequestHelpers
|
3
|
+
class InboundShipmentPlanRequestItem < Base
|
4
|
+
attr_reader :seller_sku, :asin, :condition, :quantity, :quantity_in_case, :prep_details_list
|
5
|
+
|
6
|
+
def initialize(seller_sku, asin, condition, quantity, quantity_in_case: nil, prep_details_list: [])
|
7
|
+
@seller_sku = seller_sku
|
8
|
+
@asin = asin
|
9
|
+
@quantity = quantity
|
10
|
+
@condition = condition
|
11
|
+
@quantity_in_case = quantity_in_case
|
12
|
+
@prep_details_list = prep_details_list
|
13
|
+
end
|
14
|
+
|
15
|
+
def json_body
|
16
|
+
{
|
17
|
+
"SellerSKU": seller_sku,
|
18
|
+
"ASIN": asin,
|
19
|
+
"Condition": condition,
|
20
|
+
"Quantity": quantity,
|
21
|
+
"QuantityInCase": quantity_in_case,
|
22
|
+
"PrepDetailsList": prep_details_list
|
23
|
+
}
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
data/lib/muffin_man/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muffin_man
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin
|
8
8
|
- Jason
|
9
9
|
- Nate
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-09-
|
13
|
+
date: 2022-09-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -116,7 +116,7 @@ dependencies:
|
|
116
116
|
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: 2.4.4
|
119
|
-
description:
|
119
|
+
description:
|
120
120
|
email:
|
121
121
|
- gavin@pattern.com
|
122
122
|
- jason@pattern.com
|
@@ -150,6 +150,9 @@ files:
|
|
150
150
|
- lib/muffin_man/product_fees/v0.rb
|
151
151
|
- lib/muffin_man/product_pricing/v0.rb
|
152
152
|
- lib/muffin_man/reports/v20210630.rb
|
153
|
+
- lib/muffin_man/request_helpers.rb
|
154
|
+
- lib/muffin_man/request_helpers/base.rb
|
155
|
+
- lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
|
153
156
|
- lib/muffin_man/solicitations/v1.rb
|
154
157
|
- lib/muffin_man/sp_api_client.rb
|
155
158
|
- lib/muffin_man/tokens/v20210301.rb
|
@@ -160,7 +163,7 @@ homepage: https://github.com/patterninc/muffin_man
|
|
160
163
|
licenses:
|
161
164
|
- MIT
|
162
165
|
metadata: {}
|
163
|
-
post_install_message:
|
166
|
+
post_install_message:
|
164
167
|
rdoc_options: []
|
165
168
|
require_paths:
|
166
169
|
- lib
|
@@ -175,8 +178,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
178
|
- !ruby/object:Gem::Version
|
176
179
|
version: '0'
|
177
180
|
requirements: []
|
178
|
-
rubygems_version: 3.
|
179
|
-
signing_key:
|
181
|
+
rubygems_version: 3.0.3
|
182
|
+
signing_key:
|
180
183
|
specification_version: 4
|
181
184
|
summary: Amazon Selling Partner API client
|
182
185
|
test_files: []
|