This commit:
1. Adds a new donation receipt type: gifts.
2. Saves receipts when sending someone a gift.
The first part was the main challenge. Previously, donation receipts had
logic like this (pseudocode):
def getReceiptType(self):
if self.subscriptionLevel:
return "subscription"
else:
return "one-time"
Now, we explicitly encode the type and have logic to handle "legacy"
receipts that don't have a type encoded.
|
||
|---|---|---|
| .. | ||
| DonationUtilities.swift | ||
| Stripe.swift | ||
| SubscriptionManager.swift | ||
| SubscriptionReceiptCredentialRedemptionJob.swift | ||