muffin_man 1.4.7 → 1.4.9
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 +8 -0
- data/lib/muffin_man/fulfillment_inbound/v0.rb +11 -0
- data/lib/muffin_man/sp_api_client.rb +1 -2
- 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: abe8f107256b455dc589e5e38753d87874c11bf9c92114e4bd11a6497f8d4e3f
|
|
4
|
+
data.tar.gz: 1998aa01640019705052b4fda79dc0508aadc78e58e93b7d7540e8b910a07a92
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 06c252574d2d49ce4c32c102b38278f481c284cb2984c154d0008406b75bc5a72aac38ba966e08fc2b55e5e3addac470d7cdc84ca79d4a7f4ae5845decb98eb6
|
|
7
|
+
data.tar.gz: 047cdfe79b73a7390123cb32ec9d4b386144059658d17e62936e2fe39cdae1a65c58895aad485f607cb8a81c3daa35b3c909558b23efc57cde24bcf4f7a44423
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# 1.4.9
|
|
2
|
+
|
|
3
|
+
- Fix to override global AWS config with credentials that are passed [#26](https://github.com/patterninc/muffin_man/pull/26)
|
|
4
|
+
|
|
5
|
+
# 1.4.8
|
|
6
|
+
|
|
7
|
+
- Support for createInboundShipment [#25](https://github.com/patterninc/muffin_man/pull/25)
|
|
8
|
+
|
|
1
9
|
# 1.4.7
|
|
2
10
|
|
|
3
11
|
- Support for createInboundShipmentPlan [#24](https://github.com/patterninc/muffin_man/pull/24)
|
|
@@ -24,6 +24,17 @@ module MuffinMan
|
|
|
24
24
|
@request_type = "POST"
|
|
25
25
|
call_api
|
|
26
26
|
end
|
|
27
|
+
|
|
28
|
+
def create_inbound_shipment(shipment_id, marketplace_id, inbound_shipment_header, inbound_shipment_items)
|
|
29
|
+
@local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}"
|
|
30
|
+
@request_body = {
|
|
31
|
+
"MarketplaceId": marketplace_id,
|
|
32
|
+
"InboundShipmentHeader": inbound_shipment_header,
|
|
33
|
+
"InboundShipmentItems": inbound_shipment_items,
|
|
34
|
+
}
|
|
35
|
+
@request_type = "POST"
|
|
36
|
+
call_api
|
|
37
|
+
end
|
|
27
38
|
end
|
|
28
39
|
end
|
|
29
40
|
end
|
|
@@ -126,8 +126,7 @@ module MuffinMan
|
|
|
126
126
|
def request_sts_token
|
|
127
127
|
client = Aws::STS::Client.new(
|
|
128
128
|
region: derive_aws_region,
|
|
129
|
-
|
|
130
|
-
secret_access_key: aws_secret_access_key,
|
|
129
|
+
credentials: Aws::Credentials.new(aws_access_key_id, aws_secret_access_key),
|
|
131
130
|
http_wire_trace: (ENV["AWS_DEBUG"] == "true" || false)
|
|
132
131
|
)
|
|
133
132
|
client.assume_role(role_arn: sts_iam_role_arn, role_session_name: SecureRandom.uuid)
|
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.9
|
|
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-
|
|
13
|
+
date: 2022-09-27 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rspec
|