muffin_man 1.5.8 → 1.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23aa73b6bbde8a83e5f715048e13e5abb5512373935270da0310162d9baccc49
4
- data.tar.gz: ca5a93e882e3162498be0dd4843c5d74ab8df19d48b7bb4aa020d4f1869ac80a
3
+ metadata.gz: f8f077ec0f83f067c863c9c704d1bbafe089fb2a86163334aec78a6c7b314e80
4
+ data.tar.gz: 3d08c4f8b1669946ae37402a60e0a587dd86fb1c9178c90d930014a78dc5808f
5
5
  SHA512:
6
- metadata.gz: a6ccca43b4e84396271b01fc9b4a6360f3c298bdd76d47d4a41c890e9a107616afb3585e7e11a633003f79369444bd9b716f416ef8c61e0ee34c4916d4330332
7
- data.tar.gz: f5fb4e499fb511ff02a239a8e6e3b83667f36f8fdbf174569ef650079f25eee272445f066e7b3e53a31e6f9fc401612d547720b451cd4a4b91e96b2fe76b9f04
6
+ metadata.gz: 37a390862e651d6d234253c3b5cf590ddee5299d53408b0c83a4a1a214a4e829ec94be63565d193191d0e5c714c24642054f20741a2b71175311f652aa4a3c1b
7
+ data.tar.gz: 788dd07230db3c66e64d049db004e09b483120bba67bb17e5aa4d72d6624c5f9e07f6d4520ce33dad8bdcbb56db34a034eff17f98f9e24f5e7c10fcb902c8d4f
data/.rubocop.yml CHANGED
@@ -19,6 +19,9 @@ Style/StringLiteralsInInterpolation:
19
19
  Layout/LineLength:
20
20
  Max: 120
21
21
 
22
+ Metrics/ClassLength:
23
+ Max: 500
24
+
22
25
  Metrics/MethodLength:
23
26
  Max: 30
24
27
 
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # 1.5.10
2
+
3
+ - Add sandbox support for inbound small parcel
4
+
5
+ # 1.5.9
6
+
7
+ - Support for estimateTransport, getTransportDetails, confirmTransport, and voidTransport [#44](https://github.com/patterninc/muffin_man/pull/44)
8
+
9
+ # 1.5.8
10
+
11
+ - Add batch functionality to competitive price
12
+
1
13
  # 1.5.7
2
14
 
3
15
  - Fix sandbox support for create shipments in Merchant Fulfillment
@@ -2,7 +2,7 @@
2
2
 
3
3
  module MuffinMan
4
4
  module Feeds
5
- require "sp_api_helpers" # Wat?
5
+ require "sp_api_helpers"
6
6
  class V20210630 < SpApiClient
7
7
  FEED_PATH = "/feeds/2021-06-30"
8
8
 
@@ -99,6 +99,35 @@ module MuffinMan
99
99
  @request_type = "PUT"
100
100
  call_api
101
101
  end
102
+
103
+ SANDBOX_SHIPMENT_ID = "shipmentId1"
104
+ def estimate_transport(shipment_id)
105
+ shipment_id = SANDBOX_SHIPMENT_ID if sandbox
106
+ @local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}/transport/estimate"
107
+ @request_type = "POST"
108
+ call_api
109
+ end
110
+
111
+ def get_transport_details(shipment_id)
112
+ shipment_id = SANDBOX_SHIPMENT_ID if sandbox
113
+ @local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}/transport"
114
+ @request_type = "GET"
115
+ call_api
116
+ end
117
+
118
+ def confirm_transport(shipment_id)
119
+ shipment_id = SANDBOX_SHIPMENT_ID if sandbox
120
+ @local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}/transport/confirm"
121
+ @request_type = "POST"
122
+ call_api
123
+ end
124
+
125
+ def void_transport(shipment_id)
126
+ shipment_id = SANDBOX_SHIPMENT_ID if sandbox
127
+ @local_var_path = "/fba/inbound/v0/shipments/#{shipment_id}/transport/void"
128
+ @request_type = "POST"
129
+ call_api
130
+ end
102
131
  end
103
132
  end
104
133
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuffinMan
4
- VERSION = "1.5.8"
4
+ VERSION = "1.5.10"
5
5
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muffin_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.8
4
+ version: 1.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin
8
8
  - Jason
9
9
  - Nate
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2022-11-29 00:00:00.000000000 Z
13
+ date: 2022-12-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -130,7 +130,7 @@ dependencies:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
- description:
133
+ description:
134
134
  email:
135
135
  - gavin@pattern.com
136
136
  - jason@pattern.com
@@ -190,7 +190,7 @@ homepage: https://github.com/patterninc/muffin_man
190
190
  licenses:
191
191
  - MIT
192
192
  metadata: {}
193
- post_install_message:
193
+ post_install_message:
194
194
  rdoc_options: []
195
195
  require_paths:
196
196
  - lib
@@ -205,8 +205,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  - !ruby/object:Gem::Version
206
206
  version: '0'
207
207
  requirements: []
208
- rubygems_version: 3.2.22
209
- signing_key:
208
+ rubygems_version: 3.0.3
209
+ signing_key:
210
210
  specification_version: 4
211
211
  summary: Amazon Selling Partner API client
212
212
  test_files: []