Skip to content

Commit b9277a2

Browse files
promoCodeView lambda: created handler and tests (#3311)
* promoCodeView lambda: created handler and tests * formatting fix * Refactoring * Grant read/write permissions to PromoCodeView Lambda * streamLabels updated * Removed batching complexity * formatting fix * show promo codes in logs * test fix * refactor: use promoCampaignSchema and set promotion_type to 'percent_discount' * snapshots updated to reflect node version change
1 parent b2f6c98 commit b9277a2

File tree

9 files changed

+1790
-150
lines changed

9 files changed

+1790
-150
lines changed

buildcheck/data/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ const promotionsLambdas: HandlerDefinition = {
202202
functionNames: [
203203
'promotions-lambdas-promo-campaign-sync-',
204204
'promotions-lambdas-promo-sync-',
205+
'promotions-lambdas-promo-code-view-',
205206
],
206207
entryPoints: ['src/handlers/*.ts'],
207208
dependencies: {

cdk/bin/cdk.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,12 @@ new SingleContributionSalesforceWrites(
127127
new PromotionsLambdas(app, 'CODE', {
128128
oldPromoCampaignStreamLabel: '2025-12-17T11:57:50.933',
129129
oldPromoStreamLabel: '2023-04-28T14:57:20.201',
130+
newPromoStreamLabel: '2026-01-05T11:33:36.603',
130131
});
131132
new PromotionsLambdas(app, 'PROD', {
132133
oldPromoCampaignStreamLabel: '2025-12-17T11:57:59.560',
133134
oldPromoStreamLabel: '2016-06-01T13:26:09.654',
135+
newPromoStreamLabel: '2026-01-05T11:50:46.239',
134136
});
135137

136138
const stacks: Array<new (app: App, stage: SrStageNames) => unknown> = [

0 commit comments

Comments
 (0)