Skip to content

JNY-COM-CAT-004A coordinator prepares codes and an administrator launches the offer

Markdown

JNY-COM-CAT-004

A coordinator prepares codes and an administrator launches the offer

Markdown
  • DocumentDraft
  • Product intentConfirmed
  • ImplementationObserved

KindJourneyProduct areaCommerceModuleCatalog and Selling ConfigurationRevision1End-to-endRequired

Read atservices-commerce c8b66a98react-console baf6dae3

The Formal Contract

The narrative above explains; the sections below are authoritative — the rules, scenarios and tests this document binds.

Goal
Prepare a controlled marketing campaign for authorized activation.
Screens
/console/{tenantId}/configuration/orders/promotions/console/{tenantId}/configuration/orders/promotions/new/console/{tenantId}/configuration/orders/promotions/{id}/console/{tenantId}/configuration/orders/promotions/{id}/codes/new/console/{tenantId}/configuration/orders/promotionCodes

Steps

#SurfaceActionCapabilityExpectedProvenance
1/console/{tenantId}/configuration/orders/promotions/newPrepare Books and Apparel benefit parts and a minimum purchaseCAP-COM-CAT-014The draft presents the configured parts and summarytest
react-console:e2e/mock/promotions.mock.spec.ts#a new promotion is created for a category, shown on its view, and an edit to 15% comes back to the view
2/console/{tenantId}/configuration/orders/promotions/{id}/codes/newCreate restricted single-use and organization-limited shared codesCAP-COM-CAT-015The saved code pages present their dates and capacity choicestest
react-console:e2e/mock/promotions.mock.spec.ts#a code is added in the code editor with a limit and a note, and lands on its page
3/console/{tenantId}/configuration/orders/promotions/{id}/codesRequest a generated batch and export its completed codesCAP-COM-CAT-015Issuance history identifies the batch and provides its downloadable exporttest
react-console:e2e/mock/promotions.mock.spec.ts#Generate Many starts a job that the Issuances tab lists
4/console/{tenantId}/configuration/orders/promotions/{id}Assess a member’s sample cart through Try ItCAP-COM-CAT-018The response shows sample discounts and pre-tax, pre-shipping totalstest
services-commerce:modules/promotions/tests/e2e/promotion-previews.e2e.spec.js#is, line for line and total for total, what the real checkout preview answers
5activatePromotionHave an authorized administrator activate the campaignCAP-COM-CAT-014Active state and the transition appear in promotion historytest

Alternate and Failure Paths

PathFrom stepConditionPath takenOutcomeProvenance
alternate5The manager requests launch without the separate grantLaunch remains absent from permitted console actions and fails backend accessAn authorized activator is required to leave preparation statetest
failure5No usable claim exists for the coded offerActivation fails validation saying a code is neededActivation leaves preparation state unchangedtest
services-commerce:modules/promotions/tests/e2e/promotions.e2e.spec.js#refuses to activate a coded promotion with no active code, 409 no_active_code
failure2Entry duplicates an occupied claim after normalizationThe code fails validation as takenThe invalid operation persists no changetest
services-commerce:modules/promotions/tests/e2e/promotion-codes.e2e.spec.js#refuses “EARLY25” beside “early 25”, 409 code_taken

Assertions

IdStatementProvenance
01Promotion history retains each lifecycle action and supplied reason.test
services-commerce:modules/promotions/tests/e2e/promotions.e2e.spec.js#records every transition on the history, newest first, with the reason given
02Management authority does not include launch authority.test
03A saved console edit returns to the updated promotion view.test
react-console:e2e/mock/promotions.mock.spec.ts#a new promotion is created for a category, shown on its view, and an edit to 15% comes back to the view
04Repeated issuance requests reuse their existing batch.test
services-commerce:modules/promotions/tests/e2e/promotion-code-issuances.e2e.spec.js#answers the same batch for a repeat under the same key and makes no second batch
05All Codes provides cross-promotion code discovery.test
react-console:e2e/mock/promotions.mock.spec.ts#All Codes lists the codes of every promotion and narrows them by search
06Sample assessment leaves sale records and usage unchanged.test

End-to-end policy: required: It crosses the promotion, code and issuance screens and depends on the console offering each action exclusively to the right role.

The Markdown files under specs/ in rhythmsoftware/rhythm-v2-docs are the canonical source of truth. This reader is a generated, read-only projection of them.