feat(payment): support user-bound seven-discount offers
This commit is contained in:
@@ -61,7 +61,21 @@ export async function registerChatMocks(page: Page, options: ChatMockOptions, st
|
||||
await route.fulfill({ status: 401, json: { message: "expired" } });
|
||||
return;
|
||||
}
|
||||
const response = message.includes("private album offer test")
|
||||
const response = message.includes("discount offer test")
|
||||
? {
|
||||
...chatSendResponse,
|
||||
reply: "I know you're thinking carefully about the price.",
|
||||
messageId: "discount-action-message",
|
||||
commercialAction: {
|
||||
actionId: "13ec8a10-58d7-4d24-b66b-8db5699a1aa8",
|
||||
type: "discountOffer",
|
||||
copy: "Want me to ask for my best private offer?",
|
||||
ctaLabel: "Yes, ask for me",
|
||||
target: "discountConsent",
|
||||
ruleId: "discount_after_price_objection",
|
||||
},
|
||||
}
|
||||
: message.includes("private album offer test")
|
||||
? {
|
||||
...chatSendResponse,
|
||||
reply: "You always know how to make me smile.",
|
||||
|
||||
Reference in New Issue
Block a user