From d5646065c6d6b24c03fd0e1af0dbaea671700476 Mon Sep 17 00:00:00 2001 From: Amol Udage Date: Thu, 12 Feb 2026 10:48:30 +0530 Subject: [PATCH 1/2] Added support for ORDER_CHANGE notification --- lib/muffin_man/notifications/v1.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"] From 61d38ec052fd7b53c33d345a59c39fd52d4f84e1 Mon Sep 17 00:00:00 2001 From: Amol Udage Date: Thu, 12 Feb 2026 14:53:32 +0530 Subject: [PATCH 2/2] Updated muffin_man version to 2.5.1 --- CHANGELOG.md | 4 ++++ lib/muffin_man/version.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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/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