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
+ 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
+ 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
+ Ensure you can select credits
+ Display deposit/refund options with event name, ticket type, and amount
+ Validate deposit/refund amounts and dates
+ Ensure admin can enter a flat value
+ Ensure flat value cannot exceed available account credit balance
+ Ensure Apply Credits becomes active
+ Populate selected credits line item with amount of selected credits
+ Populate maximum applicable and amount to apply line items
+ Re-containerize button
+ Populate credits applied line item under order summary
Transaction Flow
+ 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).