Add PCM carrier-route postcard pick-and-send (#15)
CI / test (pull_request) Successful in 24s
CI / test (pull_request) Successful in 24s
## Summary Closes #15. - Let compose target mailing-list contacts or 1–2 USPS carrier routes, with household count and estimated cost shown before save. - Place selected routes through PCM list-count orders instead of importing occupant addresses into Contacts.
This commit is contained in:
1 parent
a867a57750
commit
f7e3c05c59
17 files changed
+1211
-28
No files matched your search
@@ -110,6 +110,22 @@ HMAC-SHA256 of body) matching **any** listed secret.
|
||||
Correlation: we send `extRefNbr=<Message.uuid>` on each recipient; webhooks should
|
||||
echo that (or `orderID`, matched to `Message.provider_message_id`).
|
||||
|
||||
### Carrier-route (neighborhood) mailings
|
||||
|
||||
Postcard compose can target **mailing-list contacts** or **USPS carrier routes**.
|
||||
Route mode calls PCM `POST /list/count/zipcode` (or `/radius`) with
|
||||
`breakdownType=ZipCRRT`, then recounts selected routes via
|
||||
`POST /list/count/carrier-route` and sends
|
||||
`POST /order/postcard/with-list-count`. Estimated cost uses design `pricing[]`
|
||||
or `PCM_POSTCARD_PRICE_FIRSTCLASS` / `PCM_POSTCARD_PRICE_STANDARD`. Default
|
||||
purchased list type is `IRL` (`PCM_LIST_TYPE`). This is not official EDDM postage.
|
||||
|
||||
| Extra env | Purpose |
|
||||
|-----------|---------|
|
||||
| `PCM_POSTCARD_PRICE_FIRSTCLASS` | Fallback $/piece if PCM omits FirstClass pricing |
|
||||
| `PCM_POSTCARD_PRICE_STANDARD` | Fallback $/piece for Standard |
|
||||
| `PCM_LIST_TYPE` | PCM list type key (default `IRL`) |
|
||||
|
||||
### Campaign completion email
|
||||
|
||||
When a campaign reaches **completed** (email, SMS, or postcard), one summary email
|
||||
|
||||
Reference in new issue
Block a user