in src/libs/transforms.ts [137:157]
customerPostCode: stripQuotes(subscription.sold_to_postal_code),
deliveryQuantity: stripQuotes(subscription.quantity),
deliveryInformation: stripQuotes(
subscription.sold_to_special_delivery_instructions,
),
sentDate: sentDate,
deliveryDate: deliveryDate,
sourceCampaign: '',
additionalComms: '',
email: subscription.workEmail,
phoneNumber: phoneNumber,
};
}
export function identityIdLookUp(
phoneBook: PhoneBook,
subscriptionName: string,
): Option<string> {
// Look up the subscription name in the phoneBook and return the phone number if there was one,
// otherwise return null;
for (const record of phoneBook) {