Event Ticketing: dynamic pricing and cancelled-event batch refunds#287
Merged
codebestia merged 1 commit intoApr 29, 2026
Conversation
|
@josephchimebuka Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
codebestia
approved these changes
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements two ticketing enhancements in the Shade event module:
Issues Closed
Closes #264
Closes #261
What Changed
1) Dynamic Pricing Models (#264)
early_bird_endtimestampearly_bird_discount_bpslate_markup_bpsconfigure_dynamic_pricing(merchant, event_id, early_bird_end, early_bird_discount_bps, late_markup_bps)get_current_ticket_price(event_id)2) Batch Refund Logic for Cancelled Events (#261)
cancel_event_and_batch_refund(merchant, event_id)EventTickets(event_id)ticket.purchase_price)Data Model Updates
Eventnow tracks:early_bird_end,early_bird_discount_bps,late_markup_bpscancelled,refunds_processedTicketnow stores:purchase_price(captured at purchase time and used for cancellation refunds)Interface / Contract Surface
configure_dynamic_pricingget_current_ticket_pricecancel_event_and_batch_refundTests
Added/updated event ticket tests to cover:
Executed:
cargo test -q test_event_ticketsincontracts/shadeAcceptance Criteria Mapping
#264 Create Dynamic Pricing Models
#261 Integrate Shade Batch Refund Logic for Cancelled Events