diff --git a/src/app/donation.model.ts b/src/app/donation.model.ts index 4f7beb6c2..1952aff53 100644 --- a/src/app/donation.model.ts +++ b/src/app/donation.model.ts @@ -22,6 +22,16 @@ export const maximumDonationAmountForFundedDonation = 200_000; * * after the donation is fully processed and webhook returned (e.g. `matchedAmount`). */ export interface Donation { + /** + * The regular giving agreement relating to this donation, if any. Optional property because production + * matchbot doesn't yet send it. Not a full representation of the mandate, just enough to be able to render + * a link to it etc. + */ + mandate?: { + 'uuid': string, + 'activeFrom': string, + }, + autoConfirmFromCashBalance?: boolean; /** diff --git a/src/app/my-donations/my-donations.component.html b/src/app/my-donations/my-donations.component.html index 42516f595..063e926b4 100644 --- a/src/app/my-donations/my-donations.component.html +++ b/src/app/my-donations/my-donations.component.html @@ -46,8 +46,13 @@ >
-

{{this.displayMethodType(donation)}}

-

{{ donation.charityName }}

+

{{this.displayMethodType(donation)}} + @if (donation.mandate) { +
+ Regular giving since {{donation.mandate.activeFrom | date: 'mediumDate'}} + } +

+

{{ donation.charityName }}