muffin_man 1.4.11 → 1.4.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8400a92d789fef98393d6ab3b6ab8f6fb941a491c1624b988e38f92c72758637
4
- data.tar.gz: 5465023294a1f34f4ee539f9101976ad6a381f2fb2bbb48457d8c20b996522bd
3
+ metadata.gz: 7a42ef0ba984b7f8a4cb0c0dd4f57df1fee295f9b7e0419a98aaf2aa8c91d9d0
4
+ data.tar.gz: f9b47bfc74b0914f7ea0135fc2f3e9bea4b1297fdebc3e72efa9e70a6295cbee
5
5
  SHA512:
6
- metadata.gz: 6b162a5707a72cd42332b8380c8c62fd5e03031936a1e18f1ccb75d6486c101237355b12becc89e48d9fcfc03effa94c1868016122e220c2652f6a2cd8899f89
7
- data.tar.gz: ba79b6aba53200162015a747fcab1127bb71e6cf7b6efe5af030f622f6214f34351add33a80c77c55481db55955ca8167b911b1042ed485c52a9020980bdb1d1
6
+ metadata.gz: 6da1096325d7b5dca43d48f41f703771e90e5d73e1ab1e10578bba159b20bd5bdc345fc06e89c7fddf4670702dfdba51861adf825b49a252979568b75ac5a795
7
+ data.tar.gz: de6ea25f3a1ccaee93304e39c2f340aa4468289ca43e8b4a4f48c8c0d6f9b8e5dd2759a5c2e49d0588aaa6153fe00ed3d02755fd20a974d0736ca142c11ea767
data/CHANGELOG.md CHANGED
@@ -1,9 +1,18 @@
1
+ # 1.4.13
2
+
3
+ - Support for updateInboundShipment [#28](https://github.com/patterninc/muffin_man/pull/28)
4
+
5
+ # 1.4.12
6
+
7
+ - Support for getShipmentItemsByShipmentId [#30](https://github.com/patterninc/muffin_man/pull/30)
8
+
1
9
  # 1.4.11
2
10
 
3
11
  - Support for getLabels [#25](https://github.com/patterninc/muffin_man/pull/29)
12
+
4
13
  # 1.4.10
5
14
 
6
- - Fix to override global AWS config with credentials that are passed [#27](https://github.com/patterninc/muffin_man/pull/27)
15
+ - Support for getShipments [#27](https://github.com/patterninc/muffin_man/pull/27)
7
16
 
8
17
  # 1.4.9
9
18
 
@@ -52,6 +52,17 @@ module MuffinMan
52
52
  call_api
53
53
  end
54
54
 
55
+ def update_inbound_shipment(shipment_id, marketplace_id, inbound_shipment_header, inbound_shipment_items)
56
+ @local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}"
57
+ @request_body = {
58
+ "MarketplaceId": marketplace_id,
59
+ "InboundShipmentHeader": inbound_shipment_header,
60
+ "InboundShipmentItems": inbound_shipment_items,
61
+ }
62
+ @request_type = "PUT"
63
+ call_api
64
+ end
65
+
55
66
  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
67
  @local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}/labels"
57
68
  @query_params = {
@@ -64,10 +75,30 @@ module MuffinMan
64
75
  @query_params["NumberOfPallets"] = number_of_pallets unless number_of_pallets.nil?
65
76
  @query_params["PageSize"] = page_size unless page_size.nil?
66
77
  @query_params["PageStartIndex"] = page_start_index unless page_start_index.nil?
78
+ @request_type = "GET"
79
+ call_api
80
+ end
67
81
 
82
+ def get_shipment_items_by_shipment_id(shipment_id, marketplace_id)
83
+ @local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}/items"
84
+ @query_params = {
85
+ "MarketplaceId" => marketplace_id,
86
+ }
68
87
  @request_type = "GET"
69
88
  call_api
70
89
  end
90
+
91
+ def put_transport_details(shipment_id, is_partnered, shipment_type, transport_details)
92
+ @local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}/transport"
93
+ @request_body = {
94
+ "shipmentId": shipment_id,
95
+ "IsPartnered": is_partnered,
96
+ "ShipmentType": shipment_type,
97
+ "TransportDetails": transport_details,
98
+ }
99
+ @request_type = "PUT"
100
+ call_api
101
+ end
71
102
  end
72
103
  end
73
104
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuffinMan
4
- VERSION = "1.4.11"
4
+ VERSION = "1.4.13"
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.11
4
+ version: 1.4.13
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-10-03 00:00:00.000000000 Z
13
+ date: 2022-10-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec