muffin_man 1.4.8 → 1.4.10
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 +16 -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: d99336084bdbc05d11f2cddbcbf636a7a17f1ce9e58c23d8a253a3947b3e49de
|
|
4
|
+
data.tar.gz: 5f922a13cdd02ac1519c59d3531ed4334843f63f4d712aedf04091ad290ec94f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 18c0579876c8afa967acb5b03cf69e1d3c746e214fdf429e9b82064de6761cbea3590705e84fe8794229966b865015b89f918f87cb6503c0cb318f0ee69ea749
|
|
7
|
+
data.tar.gz: 324582599fd338f169adf1f9cd83c86c14980571b27e866fb8fdddc92e6689167bd0e413b8e4e6571adabeec7d0ea051564bfeceed916b64357a6e71c7bfc840
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# 1.4.10
|
|
2
|
+
|
|
3
|
+
- Fix to override global AWS config with credentials that are passed [#27](https://github.com/patterninc/muffin_man/pull/27)
|
|
4
|
+
|
|
5
|
+
# 1.4.9
|
|
6
|
+
|
|
7
|
+
- Fix to override global AWS config with credentials that are passed [#26](https://github.com/patterninc/muffin_man/pull/26)
|
|
8
|
+
|
|
1
9
|
# 1.4.8
|
|
2
10
|
|
|
3
11
|
- Support for createInboundShipment [#25](https://github.com/patterninc/muffin_man/pull/25)
|
|
@@ -35,6 +35,22 @@ 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
|
|
38
54
|
end
|
|
39
55
|
end
|
|
40
56
|
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.10
|
|
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-28 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rspec
|