SIT-13150: Apply Credits to Single Events

How to Use This Feature

Apply Credits Feature Summary

Overview

The Apply Credits feature allows admins to apply an account credit to a single event purchase. The feature is designed to ensure seamless integration with the {{customer search}} endpoint and update the {{purchase}} endpoint.

Behavior

  • On page load, ensure customer name comes before customer email.
  • On type customer name, ensure:
  • + Drop down list appears and results filter as you type

    + Name displayed on H1 and email in subtext is displayed in drop down option per customer selection

  • On select customer from list, ensure:
  • + All other customer info recorded is populated in remaining inputs surrounding customer info

    + If customer has account credits available (balance > 0), display Apply Account Credits section with account balance displayed

  • On select Apply Account Credits:
  • + Ensure you can select credits

    + Display deposit/refund options with event name, ticket type, and amount

    + Validate deposit/refund amounts and dates

  • On click Enter Amount:
  • + Ensure admin can enter a flat value

    + Ensure flat value cannot exceed available account credit balance

  • On selecting or entering a credit from available credit list:
  • + Ensure Apply Credits becomes active

    + Populate selected credits line item with amount of selected credits

    + Populate maximum applicable and amount to apply line items

  • On click Apply Credits button:
  • + Re-containerize button

    + Populate credits applied line item under order summary

    Transaction Flow

  • If successful, apply account credits to transaction and update customer's account credit balance.
  • If transaction after credit applied is <0, log transaction (no need to send through Adyen).
  • If transaction failed:
  • + Reset account credits to customer profile.

    Testing Results

    The feature has been tested in the test environment at [https://hn-dev.develop.happsnow.com/dashboard](https://hn-dev.develop.happsnow.com/dashboard) and [https://qa.sitickets.com/my-account/tickets](https://qa.sitickets.com/my-account/tickets).

    Images and Designs

    🔗 figma-1767109399253-0.png - View Design
    https://www.figma.com/board/cUCAQQQgCx9uAvVxaXTYPk/Group-Deposits?node-id=0-1&p=f&t=VfJ91wW72Thwd8n9-0|https://www.figma.com/board/cUCAQQQgCx9uAvVxaXTYPk/Group-Deposits?node-id=0-1&p=f&t=VfJ91wW72Thwd8n9-0|smart-link]
    🔗 figma-1767109399253-1.png - View Design
    https://www.figma.com/make/Du82KC7OGBk2JhkOvSMcq7/Apply-Credits-Flow?fullscreen=1]

    Additional Information

    Status: Deployed
    🏠 Home View in Jira