diff --git a/src/cdk/v2/destinations/rakuten/procWorkflow.yaml b/src/cdk/v2/destinations/rakuten/procWorkflow.yaml index 9ee9b5c03a..b4dcacfa09 100644 --- a/src/cdk/v2/destinations/rakuten/procWorkflow.yaml +++ b/src/cdk/v2/destinations/rakuten/procWorkflow.yaml @@ -23,7 +23,7 @@ steps: template: | const properties = $.constructProperties(.message); const lineItems = $.constructLineItems(.message.properties) - $.context.payload = {...properties,...lineItems,xml:1, mid:.destination.Config.mid} + $.context.payload = {...properties,...lineItems,xml:1,source:'rudderstack', mid:.destination.Config.mid} $.context.payload = $.removeUndefinedAndNullValues($.context.payload); - name: buildResponse diff --git a/test/integrations/destinations/rakuten/dataDelivery/data.ts b/test/integrations/destinations/rakuten/dataDelivery/data.ts index 2d2b00a5e4..ff40954fdf 100644 --- a/test/integrations/destinations/rakuten/dataDelivery/data.ts +++ b/test/integrations/destinations/rakuten/dataDelivery/data.ts @@ -1,6 +1,7 @@ import { endpoint, commonOutputHeaders } from '../processor/commonConfig'; const commonParams = { xml: 1, + source: 'rudderstack', amtlist: '12500|12500', qlist: '|5', ord: 'SampleOrderId', diff --git a/test/integrations/destinations/rakuten/network.ts b/test/integrations/destinations/rakuten/network.ts index 9633ee54a1..a9770d83e2 100644 --- a/test/integrations/destinations/rakuten/network.ts +++ b/test/integrations/destinations/rakuten/network.ts @@ -6,6 +6,7 @@ export const networkCallsData = [ params: { mid: 'invalid_mid', xml: 1, + source: 'rudderstack', amtlist: '12500|12500', qlist: '|5', ord: 'SampleOrderId', @@ -30,6 +31,7 @@ export const networkCallsData = [ params: { mid: 'access_denied_for_mid', xml: 1, + source: 'rudderstack', amtlist: '12500|12500', qlist: '|5', ord: 'SampleOrderId', @@ -54,6 +56,7 @@ export const networkCallsData = [ params: { mid: 'valid_mid_with_good_records', xml: 1, + source: 'rudderstack', amtlist: '12500|12500', qlist: '|5', ord: 'SampleOrderId', @@ -78,6 +81,7 @@ export const networkCallsData = [ params: { mid: 'valid_mid_with_bad_records', xml: 1, + source: 'rudderstack', amtlist: '12500|12500', qlist: '|5', ord: 'SampleOrderId', diff --git a/test/integrations/destinations/rakuten/processor/track.ts b/test/integrations/destinations/rakuten/processor/track.ts index 78a76e4263..49b26e4658 100644 --- a/test/integrations/destinations/rakuten/processor/track.ts +++ b/test/integrations/destinations/rakuten/processor/track.ts @@ -80,6 +80,7 @@ export const trackSuccess = [ params: { mid: 'dummyMarketingId', xml: 1, + source: 'rudderstack', amtlist: '2000|2500|3000', brandlist: 'SampleBrand||', catidlist: '12345||', @@ -209,6 +210,7 @@ export const trackSuccess = [ params: { mid: 'dummyMarketingId', xml: 1, + source: 'rudderstack', amtlist: '12500|12500|3000', couponlist: '||SALE50', namelist: 'name_1|name_2|SampleProduct', @@ -316,6 +318,7 @@ export const trackSuccess = [ params: { mid: 'dummyMarketingId', xml: 1, + source: 'rudderstack', amtlist: '-12500|-12500', skulist: 'custom sku 0|custom sku 1', qlist: '1|5', @@ -429,6 +432,7 @@ export const trackSuccess = [ params: { mid: 'dummyMarketingId', xml: 1, + source: 'rudderstack', namelist: 'name_1|name_2|Discount', amtlist: '12500|12500|-50000', skulist: 'custom sku 0|custom sku 1|Discount',