diff --git a/CHANGELOG.md b/CHANGELOG.md index e550ff0..5378881 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 2.5.1 [#107](https://github.com/patterninc/muffin_man/pull/107) + +- Added ORDER_CHANGE to PROCESSING_DIRECTIVE_SUPPORTED_NOTIFICATIONS in Notifications API v1 + # 2.5.0 [#102](https://github.com/patterninc/muffin_man/pull/102) - Restrictive data token for Vendor Direct Fulfillment Shipping v2021-12-28 createShippingLabels diff --git a/lib/muffin_man/notifications/v1.rb b/lib/muffin_man/notifications/v1.rb index c5cb1b8..1b494c4 100644 --- a/lib/muffin_man/notifications/v1.rb +++ b/lib/muffin_man/notifications/v1.rb @@ -7,7 +7,7 @@ module Notifications class V1 < SpApiClient NOTIFICATION_PATH = "/notifications/v1" NOTIFICATION_SCOPE = "sellingpartnerapi::notifications" - PROCESSING_DIRECTIVE_SUPPORTED_NOTIFICATIONS = ["ANY_OFFER_CHANGED"].freeze + PROCESSING_DIRECTIVE_SUPPORTED_NOTIFICATIONS = ["ANY_OFFER_CHANGED", "ORDER_CHANGE"].freeze def create_destination(arn, name, params = {}) @local_var_path = "#{NOTIFICATION_PATH}/destinations" @@ -42,7 +42,7 @@ def create_subscription(notification_type, params = {}) @local_var_path = "#{NOTIFICATION_PATH}/subscriptions/#{notification_type}" params = params.transform_keys(&:to_s) subscription_params = { "destinationId" => params["destination_id"] } - # currently SP-API's `processingDirective` only supports ANY_OFFER_CHANGED notification type. + # currently SP-API's `processingDirective` supports ANY_OFFER_CHANGED and ORDER_CHANGE notification types. if include_processing_directive?(notification_type, params) subscription_params.merge!( "processingDirective" => params["processing_directive"] diff --git a/lib/muffin_man/version.rb b/lib/muffin_man/version.rb index 2df6eb4..aedd6be 100644 --- a/lib/muffin_man/version.rb +++ b/lib/muffin_man/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module MuffinMan - VERSION = "2.5.0" + VERSION = "2.5.1" end