JustGiving / JustGivingNETSDK

JustGiving C# SDK
1 stars 1 forks source link

Fundraising page response is missing fields #4

Open Blackbaud-ChristiSchneider opened 6 years ago

Blackbaud-ChristiSchneider commented 6 years ago

Contracts.Fundraising.GetFundraisingPageResponse is missing definitions for the fields grandTotalRaisedExcludingGiftAid, fundraisingTarget, and totalRaisedPercentageOfFundraisingTarget. There may be others missing, didn't check them all.

I believe those are also missing off of the other types with the same name in different namespaces, but did not check if they should be there.

Example response:

{
    "pageId": "12342106",
    "activityCharityCreated": false,
    "activityType": "OtherPersonalChallenge",
    "activityId": "1234280",
    "attribution": "",
    "eventName": "Fundraising!",
    "eventId": 1234280,
    "currencySymbol": "$",
    "currencyCode": "USD",
    "pageShortName": "testing",
    "image": {
        "caption": "",
        "url": "https://images.justgiving.com/image/2d4a52cd-baf4-43e7-bfab-5adca0fa9268.png?imagetype=frpphoto&trymigrate=true",
        "absoluteUrl": "https://images.justgiving.com/image/2d4a52cd-baf4-43e7-bfab-5adca0fa9268.png?imagetype=frpphoto&trymigrate=true"
    },
    "imageCount": "1",
    "status": "Active",
    "owner": "test .",
    "ownerProfileImageUrls": {
        "OriginalSize": "",
        "Size150x150Face": ""
    },
    "consumerId": 12348288,
    "title": "We're Fundraising!",
    "showEventDate": "True",
    "eventDate": "/Date(1517356800000+0000)/",
    "showExpiryDate": "False",
    "expiryDate": "/Date(1675123200000+0000)/",
    "fundraisingTarget": "340",
    "totalRaisedPercentageOfFundraisingTarget": "2",
    "totalRaisedOffline": "0",
    "totalRaisedOnline": "6",
    "totalRaisedSms": "0",
    "grandTotalRaisedExcludingGiftAid": "6",
    "totalEstimatedGiftAid": "0",
    "branding": {
        "buttonColour": "C5111D",
        "buttonTextColour": "FFFFFF",
        "headerTextColour": "248AC8",
        "thermometerBackgroundColour": "248AC8",
        "thermometerFillColour": "C5111D",
        "thermometerTextColour": "FFFFFF"
    },
    "charity": {
        "id": 2366112,
        "name": "US Demo Charity",
        "description": "This charity exists for demo purposes, please don't make a donation here - there are over 1.4 million US charities on JustGiving to choose from, please visit the homepage.",
        "logoUrl": "https://images.justgiving.com/image/7a81b287-c2c7-4524-b338-b90ffeca1080.jpg",
        "logoAbsoluteUrl": "https://images.justgiving.com/image/7a81b287-c2c7-4524-b338-b90ffeca1080.jpg",
        "profilePageUrl": "http://www.justgiving.com/USADemoCharity",
        "registrationNumber": "000001234"
    },
    "media": {
        "images": [
            {
                "caption": "",
                "url": "https://images.justgiving.com/image/2d4a52cd-baf4-43e7-bfab-5adca0fa9268.png?imagetype=frpphoto&trymigrate=true",
                "absoluteUrl": "https://images.justgiving.com/image/2d4a52cd-baf4-43e7-bfab-5adca0fa9268.png?imagetype=frpphoto&trymigrate=true"
            }
        ],
        "videos": []
    },
    "story": "DEMO ACCOUNT\r\n\r\nAll money raised through this IMF program will benefit The IRONMAN Foundation, and specifically - the Community Fund Program. This program benefits those in the communities where IRONMAN events are held, by providing charitable support to a variety of local non-profit organizations that recognize citizens in need and provide support to the local community.",
    "domain": "www.justgiving.com",
    "smsCode": null,
    "companyAppealId": 0,
    "rememberedPersonSummary": null,
    "pageSummaryWhat": null,
    "pageSummaryWhy": null,
    "teams": [],
    "pageSummary": ""
}