muffin_man 1.4.9 → 1.4.11
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/CHANGELOG.md +7 -0
- data/README.md +1 -0
- data/lib/muffin_man/fulfillment_inbound/v0.rb +33 -0
- data/lib/muffin_man/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8400a92d789fef98393d6ab3b6ab8f6fb941a491c1624b988e38f92c72758637
|
4
|
+
data.tar.gz: 5465023294a1f34f4ee539f9101976ad6a381f2fb2bbb48457d8c20b996522bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b162a5707a72cd42332b8380c8c62fd5e03031936a1e18f1ccb75d6486c101237355b12becc89e48d9fcfc03effa94c1868016122e220c2652f6a2cd8899f89
|
7
|
+
data.tar.gz: ba79b6aba53200162015a747fcab1127bb71e6cf7b6efe5af030f622f6214f34351add33a80c77c55481db55955ca8167b911b1042ed485c52a9020980bdb1d1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# 1.4.11
|
2
|
+
|
3
|
+
- Support for getLabels [#25](https://github.com/patterninc/muffin_man/pull/29)
|
4
|
+
# 1.4.10
|
5
|
+
|
6
|
+
- Fix to override global AWS config with credentials that are passed [#27](https://github.com/patterninc/muffin_man/pull/27)
|
7
|
+
|
1
8
|
# 1.4.9
|
2
9
|
|
3
10
|
- Fix to override global AWS config with credentials that are passed [#26](https://github.com/patterninc/muffin_man/pull/26)
|
data/README.md
CHANGED
@@ -35,6 +35,39 @@ module MuffinMan
|
|
35
35
|
@request_type = "POST"
|
36
36
|
call_api
|
37
37
|
end
|
38
|
+
|
39
|
+
def get_shipments(query_type, marketplace_id, shipment_status_list: [], shipment_id_list: [], last_updated_after: nil, last_updated_before: nil, next_token: nil)
|
40
|
+
@local_var_path = "/fba/inbound/v0/shipments"
|
41
|
+
@query_params = {
|
42
|
+
"MarketplaceId" => marketplace_id,
|
43
|
+
"QueryType" => query_type,
|
44
|
+
}
|
45
|
+
@query_params["ShipmentStatusList"] = shipment_status_list.join(",") if shipment_status_list.any?
|
46
|
+
@query_params["ShipmentIdList"] = shipment_id_list.join(",") if shipment_id_list.any?
|
47
|
+
@query_params["LastUpdatedAfter"] = last_updated_after unless last_updated_after.nil?
|
48
|
+
@query_params["LastUpdatedBefore"] = last_updated_before unless last_updated_before.nil?
|
49
|
+
@query_params["NextToken"] = next_token unless next_token.nil?
|
50
|
+
|
51
|
+
@request_type = "GET"
|
52
|
+
call_api
|
53
|
+
end
|
54
|
+
|
55
|
+
def get_labels(shipment_id, page_type, label_type, number_of_packages: nil, package_labels_to_print: [], number_of_pallets: nil, page_size: nil, page_start_index: nil)
|
56
|
+
@local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}/labels"
|
57
|
+
@query_params = {
|
58
|
+
"shipmentID" => shipment_id,
|
59
|
+
"PageType" => page_type,
|
60
|
+
"LabelType" => label_type
|
61
|
+
}
|
62
|
+
@query_params["NumberOfPackages"] = number_of_packages unless number_of_packages.nil?
|
63
|
+
@query_params["PackageLabelsToPrint"] = package_labels_to_print.join(",") if package_labels_to_print.any?
|
64
|
+
@query_params["NumberOfPallets"] = number_of_pallets unless number_of_pallets.nil?
|
65
|
+
@query_params["PageSize"] = page_size unless page_size.nil?
|
66
|
+
@query_params["PageStartIndex"] = page_start_index unless page_start_index.nil?
|
67
|
+
|
68
|
+
@request_type = "GET"
|
69
|
+
call_api
|
70
|
+
end
|
38
71
|
end
|
39
72
|
end
|
40
73
|
end
|
data/lib/muffin_man/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|