muffin_man 1.4.10 → 1.4.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d99336084bdbc05d11f2cddbcbf636a7a17f1ce9e58c23d8a253a3947b3e49de
4
- data.tar.gz: 5f922a13cdd02ac1519c59d3531ed4334843f63f4d712aedf04091ad290ec94f
3
+ metadata.gz: 56a11750c6d7476f8ec76a10d48af26c4a08950925441d27711614db8f4a461d
4
+ data.tar.gz: 54ad3a2010e6e8740faeb3c99f56b3a03b0eaf16764a3ddc332dc6a5d66f417e
5
5
  SHA512:
6
- metadata.gz: 18c0579876c8afa967acb5b03cf69e1d3c746e214fdf429e9b82064de6761cbea3590705e84fe8794229966b865015b89f918f87cb6503c0cb318f0ee69ea749
7
- data.tar.gz: 324582599fd338f169adf1f9cd83c86c14980571b27e866fb8fdddc92e6689167bd0e413b8e4e6571adabeec7d0ea051564bfeceed916b64357a6e71c7bfc840
6
+ metadata.gz: '0839c14a32a23c9c5116e67579d0c972635075f3f552c62700d5ead90b9b74685b9dfc638856d9018c24380f5ca3ed3527c940b30763607318c2068612e700e1'
7
+ data.tar.gz: ad67a79ef140ddbd2c5d01d8ea70c5e00c0ff8037ae13de6f864b411b1a6105d3e3338ce505459587b74801c5612030447908a416da8c84b7b8f4dd4080cf89a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 1.4.12
2
+
3
+ - Support for getLabels [#30](https://github.com/patterninc/muffin_man/pull/30)
4
+
5
+ # 1.4.11
6
+
7
+ - Support for getLabels [#25](https://github.com/patterninc/muffin_man/pull/29)
8
+
1
9
  # 1.4.10
2
10
 
3
11
  - Fix to override global AWS config with credentials that are passed [#27](https://github.com/patterninc/muffin_man/pull/27)
data/README.md CHANGED
@@ -11,6 +11,7 @@ As of now, this gem only supports portions of the following APIs with more to co
11
11
  - `reports`
12
12
  - `product_fees`
13
13
  - `product_pricing`
14
+ - `fulfillment_inbound`
14
15
 
15
16
  ## Installation
16
17
 
@@ -51,6 +51,31 @@ module MuffinMan
51
51
  @request_type = "GET"
52
52
  call_api
53
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
+ @request_type = "GET"
68
+ call_api
69
+ end
70
+
71
+ def get_shipment_items_by_shipment_id(shipment_id, marketplace_id)
72
+ @local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}/items"
73
+ @query_params = {
74
+ "MarketplaceId" => marketplace_id,
75
+ }
76
+ @request_type = "GET"
77
+ call_api
78
+ end
54
79
  end
55
80
  end
56
81
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuffinMan
4
- VERSION = "1.4.10"
4
+ VERSION = "1.4.12"
5
5
  end
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.10
4
+ version: 1.4.12
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-09-28 00:00:00.000000000 Z
13
+ date: 2022-10-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec