muffin_man 2.4.3 → 2.4.5

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: 21a20dfe78a4888f4520142fb9244b320a33e9bc6a14d7a7370b844f21b93f06
4
- data.tar.gz: b11f73554d50353fb1d4f6e3f6381331dc4b6071e720761760f205cff46b6fa9
3
+ metadata.gz: 746f41e9f47c24e2e8454e6f117b2ca592db016aecfd372991350e5b0ac35d7c
4
+ data.tar.gz: 19747d26e92b6704474e03eb5b69ad989e4c4d993a7bcafe19fa02bdabc84c2d
5
5
  SHA512:
6
- metadata.gz: afe3648eec9e7ea3806e5bbc4aa048d922a9f108d42c99a91182a0a518a9037df6edb12eed37c71c5c29734c4da20c8939e5e22a67f087dc2ea6536911eafe0e
7
- data.tar.gz: ecc2b68344f43b7587d68bd1f020234159a3af50672ea9d66bf09b60d3660f6bc20b6ac6d2269d13321eba2aa69ccda3dcf677986fc614e09bf75aaf0c51c42e
6
+ metadata.gz: 94b105ea80fd17f88749996e0c0b07337371e7de7b7742894ac83e43afe56e6b076b00f9c3a1331e86288a8af04831525b34f6cc94b07218f16af74d8a0a4069
7
+ data.tar.gz: 2ec760d43798dd4e1a7f85c8e2796848af0b269188ed95bc6a95a8bc3da03756f58bc6979e34a07b3bb2c82d3f04e80a2df69e7e0892497b74b5b125dd125b2d
@@ -26,6 +26,7 @@ jobs:
26
26
  uses: ruby/setup-ruby@v1
27
27
  with:
28
28
  ruby-version: ${{ matrix.ruby-version }}
29
+ bundler-cache: true
29
30
  - name: Install dependencies
30
31
  run: bundle install
31
32
  - name: Run RSpec
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
+ # 2.4.5 [#74](https://github.com/patterninc/muffin_man/pull/74)
2
+
3
+ - Support for FulfillmentInbound listShipmentItems [#74](https://github.com/patterninc/muffin_man/pull/74)
4
+ # 2.4.4 [#78](https://github.com/patterninc/muffin_man/pull/78)
5
+
6
+ - Support for more Fulfillment Inbound API v2024-03-30 endpoints
1
7
  # 2.4.1 [#73](https://github.com/patterninc/muffin_man/pull/73)
2
8
 
3
- - Support for Listings Restrictions API v2021-08-01
4
9
  # 2.4.0 [#72](https://github.com/patterninc/muffin_man/pull/72)
5
10
 
6
11
  - Support for the following:
@@ -38,6 +38,15 @@ module MuffinMan
38
38
  call_api
39
39
  end
40
40
 
41
+ def list_shipment_items(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil)
42
+ @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/items"
43
+ @query_params = {}
44
+ @query_params["pageSize"] = page_size if page_size
45
+ @query_params["paginationToken"] = pagination_token if pagination_token
46
+ @request_type = "GET"
47
+ call_api
48
+ end
49
+
41
50
  def list_shipment_boxes(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil)
42
51
  @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/boxes"
43
52
  @query_params = {}
@@ -112,6 +121,18 @@ module MuffinMan
112
121
  call_api
113
122
  end
114
123
 
124
+ def confirm_placement_option(inbound_plan_id, placement_option_id)
125
+ @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/placementOptions/#{placement_option_id}/confirmation" # rubocop:disable Layout/LineLength
126
+ @request_type = "POST"
127
+ call_api
128
+ end
129
+
130
+ def cancel_inbound_plan(inbound_plan_id)
131
+ @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/cancellation"
132
+ @request_type = "POST"
133
+ call_api
134
+ end
135
+
115
136
  def get_inbound_operation_status(operation_id)
116
137
  @local_var_path = "#{INBOUND_PATH}/operations/#{operation_id}"
117
138
  @request_type = "GET"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuffinMan
4
- VERSION = "2.4.3"
4
+ VERSION = "2.4.5"
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: 2.4.3
4
+ version: 2.4.5
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: 2024-10-24 00:00:00.000000000 Z
13
+ date: 2024-10-25 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec