# Gifts

# Legend

  • LO - Luminate Online
  • TR - TeamRaiser
  • proxy - BBCRM Proxy
  • ODS - Online Data Store sponsorship API in Azure

# Data Flow

1. When member center loads the following happens:

  • Logged in session is registered with the proxy
  • User profile is fetched from LO API
  • Sponsored children for the logged in user is fetched from the ODS
  • Sponsorship opportunity groups are fetched from ODS
  • All registered TR events are fetched from LO Api
  • The following is fetched for the logged in user form BBCRM via proxy:
    • giving history
    • recurring gifts
    • smart fields
    • user attributes
    • sponsorship gifts
  • Interaction history for gifts, to know which gifts were requested to be cancelled or changed if fechted from LO API
  • LO giving history is fetched from LO API
  • Sponsorship support data (country images, quotes etc) are retrieved from PageBuilder via API

2. Once the data is fetched the gift processing kicks off:

  • Review all BBCRM gifts that have LOPledgeID on them, merge with LO gifts on that value
    • LO gift data is kept primarily
    • Child detail present on BBCRM gift is merged on the same level of JSON object as a LO gift details
    • BBCRM gift details are added as an array a property within the main gift
  • Once the gifts are merged, assign a gift type to gifts from teh BBCRM gift value; if multiple gifts are matching, the type of the first gift in the merge array will be used

# Gift Types

  • Sponsorship - sponsorship
  • Partner - recurring donation

# Data Display

# Dashboard

The Recent giving history section will display giving history retrieved from proxy.

# Manage My Giving

# Recent giving history

The Recent giving history section will display giving history retrieved from proxy, in the same way as on the dashboard.

# Sponsorship gifts

This Sponsorship Gifts section will display if the user is:

  • A sponsor and has active sponsorship gifts on record
  • Either a donor or a sponsor and in TT transition

A list of gifts will display if present. If user is a TT transition, then the sponsorship transition message will display.

# Recurring gifts

The heading will render as:

  • Recurring Giving Opportunities if the user is not a donor
  • Manage My Recurring Gifts if the user is a donor

The content will display:

  • A list of combined/merged recurring gifts, if any are present
  • A message encouraging users to donate, if no recurring gift is present
# Gift Format

The same Vue component is used sponsorship and donation gifts. For sponsorships, the child's name is displayed, the values are retrieved from the BBCRM gift details.

The logic for managing gifts is documented on Gift Management page.

# Child pages

The data retrieved from ODS and PageBuilder "API" are used to render child profile pages.