muffin_man 2.4.2 → 2.4.4

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: d6ce4c06aa97acdef0dd6d1a1959a89b038fd99dfbdc718e07cd119338137db7
4
- data.tar.gz: 0bac02da9b9af7875324101073e30e0012215fe8f02bd17c0d53a645528924d6
3
+ metadata.gz: 498fdf4e286f370a279ccfb70bab4cb33fec07815d7123320f2da0c8addd340b
4
+ data.tar.gz: bcca2ae669373511f2b1b0f7cf6013a2e71e3272645fed420e9c9a5c743cde38
5
5
  SHA512:
6
- metadata.gz: d7e3add57e41ca34546a36d24a9006a08d059482dc6d9b25b7a9b91d8d4095a89cb19a35a5c3f4b0ea4d6d4d7a30c2c26f4ef32461654598ddf9dbd183c51fdf
7
- data.tar.gz: 3862fc6c73824469f13ce291e5eb50ddd58d9f07cdc6f6ad9490977e527642a54889003863a84b5d39b15d3aa19bdd9af05ad6c150f846335a8212e04da4e358
6
+ metadata.gz: 66c2eb1f4f7a8b68f9cb2fefa1cac9dba6184ba0eb5150cc626518beff799ab3944064c893c9b9c1cbadfab0bb61a08efb583fe6c2a1cf2503d29393cd17c9ef
7
+ data.tar.gz: 587889acfff2acabfb2013593a5c6bfaa1b15aed223ebc5be3a025e9c00cbc40417ef6795fca3d8a85a75984a89bb76fc65ffbbf99a5bd3c4aae8e891ffefdc2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 2.4.4 [#73](https://github.com/patterninc/muffin_man/pull/73)
2
+
3
+ - Support for more Fulfillment Inbound API v2024-03-30 endpoints
1
4
  # 2.4.1 [#73](https://github.com/patterninc/muffin_man/pull/73)
2
5
 
3
6
  - Support for Listings Restrictions API v2021-08-01
@@ -112,6 +112,18 @@ module MuffinMan
112
112
  call_api
113
113
  end
114
114
 
115
+ def confirm_placement_option(inbound_plan_id, placement_option_id)
116
+ @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/placementOptions/#{placement_option_id}/confirmation" # rubocop:disable Layout/LineLength
117
+ @request_type = "POST"
118
+ call_api
119
+ end
120
+
121
+ def cancel_inbound_plan(inbound_plan_id)
122
+ @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/cancellation"
123
+ @request_type = "POST"
124
+ call_api
125
+ end
126
+
115
127
  def get_inbound_operation_status(operation_id)
116
128
  @local_var_path = "#{INBOUND_PATH}/operations/#{operation_id}"
117
129
  @request_type = "GET"
@@ -216,6 +228,34 @@ module MuffinMan
216
228
  @request_type = "POST"
217
229
  call_api
218
230
  end
231
+
232
+ def generate_shipment_content_update_previews(inbound_plan_id, shipment_id, body)
233
+ @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/contentUpdatePreviews" # rubocop:disable Layout/LineLength
234
+ @request_body = body
235
+ @request_type = "POST"
236
+ call_api
237
+ end
238
+
239
+ def get_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id)
240
+ @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/contentUpdatePreviews/#{content_update_preview_id}" # rubocop:disable Layout/LineLength
241
+ @request_type = "GET"
242
+ call_api
243
+ end
244
+
245
+ def confirm_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id)
246
+ @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/contentUpdatePreviews/#{content_update_preview_id}/confirmation" # rubocop:disable Layout/LineLength
247
+ @request_type = "POST"
248
+ call_api
249
+ end
250
+
251
+ def list_shipment_content_update_previews(inbound_plan_id, shipment_id, page_size: nil, pagination_token: nil)
252
+ @local_var_path = "#{INBOUND_PATH}/inboundPlans/#{inbound_plan_id}/shipments/#{shipment_id}/contentUpdatePreviews" # rubocop:disable Layout/LineLength
253
+ @query_params = {}
254
+ @query_params["pageSize"] = page_size if page_size
255
+ @query_params["paginationToken"] = pagination_token if pagination_token
256
+ @request_type = "GET"
257
+ call_api
258
+ end
219
259
  end
220
260
  end
221
261
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MuffinMan
4
- VERSION = "2.4.2"
4
+ VERSION = "2.4.4"
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.2
4
+ version: 2.4.4
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-23 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