Please enable JavaScript.
Coggle requires JavaScript to display documents.
Commercial Gesture Creation, Salesforce Partner Commercial Gesture,…
Commercial Gesture
Creation
Is this CG:
OVV / giftbox / monetary value ?
There are no vouchers suspended
from this CG? (Check CSActions)
Yes
Show
Suspend Voucher
button
Prompt to add voucher to suspend from case
(automatically link with Case voucher number)
SUBMIT
Is this voucher in 'activate' status
with no flags?
Yes
EAI
Send voucher info
1 more item...
EXISTING FLOW:
/api/rest/eai/v0/voucher_suspension
1 more item...
Check if response received
from VMS
2 more items...
{
"voucher": {
"id": "145371169"
},
"reasonCode": "customerCG", >
new value to be added in EAI
"action": "suspend"
}
No
Error Message
Allow agent
to restart the process
CG contains voucher status
Flags need to be checked using
VoucherUtils.queryVoucherDetails(voucher)
Approval Process
Refused
Approved
Salesforce
Partner
Commercial Gesture
Voucher Suspension
Check for flags IS_BOOKED /
IS_INVOICED / IS_REDEEMED / IS_PREAUTHORIZED
No flags
collect case number
format "CASE-123456"
EAI flow
/api/rest/eai/v0/
voucher_suspension
payload with the proposed change
{
"voucher": {
"id": "145371169"
},
"reasonCode":
"customerCG" or
"partnerCG", > new value to be added
"action": "suspend"
"caseNumber": "CASE-06176693"
> new string field to be added, optional
current payload example
{
"voucher": {
"id": "145371169"
},
"reasonCode": "suspendedVoucher",
"action": "suspend"
}
VMS
Add a validation to IS_BOOKED / IS_INVOICED / IS_REDEEMED / IS_PREAUTHORIZED in
PartnerCaseTriggerHandler.shouldSuspendVoucher
Collect the case number in
PartnerCaseTriggerHandler.suspendVoucherForApprovedGestures
Send case number in suspendVoucherForAccount
Update reason to partnerCG in suspendVoucherForAccount
Salesforce
Customer
Commercial Gesture
Collect the case id on
CG_suspendVoucher.cls
send as argument in
VoucherUtils.suspendVoucherForAccount
Prepare VoucherUtils.suspendVoucherForAccount
to receive case number as argument
Add 'CASE-' prefix to case numbers
Add case number string in EaiCommandSuspendVoucher.cls
Modify Mock structure EaiCommandSuspendVoucherMocks ?
Voucher Suspension
Check for flags IS_BOOKED /
IS_INVOICED / IS_REDEEMED / IS_PREAUTHORIZED
No flags
Salesforce Customer Case :star:
Existing
Process
New
Process
Technical
Notes
Existing
Process
New
Process