Skip to content

Commit 3361006

Browse files
committed
updated list of valid fundraiser_type values
1 parent f7ac2bc commit 3361006

4 files changed

Lines changed: 20 additions & 9 deletions

File tree

schema/schemata/fundraiser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ definitions:
1919
example: birthday
2020
type:
2121
- string
22-
enum: ['birthday', 'anniversary', 'in_memory_of', 'sports_event', 'corporate', 'cultural_event', 'sponsorable', 'tribute_fund', 'other']
22+
enum: ['birthday', 'anniversary', 'in_memory_of', 'sports_event', 'corporate', 'cultural_event', 'sponsorable', 'tribute_fund', 'live_stream', 'crowdfunding', 'door_to_door', 'personal', 'other']
2323
donate_url:
2424
description: The current url to donate via the fundraising page on BetterNow. This can, and does, change. Requests to old urls will be redirect to the current url.
2525
example: 'https://www.betternow.org/dk/fundraisers/firstname-lastnames-fundraiser/donations/new'

source/includes/resources.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ Detailed information about a single Fundraising Page on BetterNow.org
968968
| **[event:id](#resource-common)** | *string* | unique identifier of event | `1234567` |
969969
| **[event:name](#resource-common)** | *string* | the name of the Event | `"Copenhagen Marathon 2013"` |
970970
| **[event:url](#resource-common)** | *uri* | | `"https://api.betternow.org/events/1234567"` |
971-
| **fundraiser_type** | *string* | The type of the fundraiser on BetterNow<br/> **one of:**`"birthday"` or `"anniversary"` or `"in_memory_of"` or `"sports_event"` or `"corporate"` or `"cultural_event"` or `"sponsorable"` or `"tribute_fund"` or `"other"` | `"birthday"` |
971+
| **fundraiser_type** | *string* | The type of the fundraiser on BetterNow<br/> **one of:**`"birthday"` or `"anniversary"` or `"in_memory_of"` or `"sports_event"` or `"corporate"` or `"cultural_event"` or `"sponsorable"` or `"tribute_fund"` or `"live_stream"` or `"crowdfunding"` or `"door_to_door"` or `"personal"` or `"other"` | `"birthday"` |
972972
| **funeral_date** | *date* | The date of the funeral for the person who a tribute_fund fundraiser is honoring. | `"2012-01-01"` |
973973
| **goal:cents** | *integer* | Numeric amount in cents | `1234500` |
974974
| **goal:currency** | *string* | 3 character currency code, as specified in ISO 4217<br/> **pattern:** `^([A-Z]{3})$` | `"EUR"` |
@@ -986,9 +986,9 @@ Detailed information about a single Fundraising Page on BetterNow.org
986986
| **[project:id](#resource-common)** | *string* | Unique identifier of project | `1234567` |
987987
| **[project:name](#resource-common)** | *string* | The name of the Project | `"HelpNows generelle arbejde"` |
988988
| **[project:url](#resource-common)** | *uri* | | `"https://api.betternow.org/projects/1234567"` |
989-
| **qr_urls:fundraiser_qr_url** | *string* | A QR code in PNG format for the fundraiser page. | `"https://example.org/qr.png"` |
990-
| **qr_urls:mobile_donation_qr_url** | *string* | A QR code in PNG format for the mobile donation form. For fundraisers with a Mobilepay Myshop number it is a Myshop url, for fundraisers using vipps epayment it is a Vipps url, otherwise it is our short mobile donation form. | `"https://example.org/qr.png"` |
991-
| **qr_urls:standard_donation_qr_url** | *string* | A QR code in PNG format for the standard donation form. | `"https://example.org/qr.png"` |
989+
| **qr_urls:fundraiser_qr_url** | *uri* | A QR code in PNG format for the fundraiser page. Only provided if the fundraiser can receive donations. | `"https://example.org/qr.png"` |
990+
| **qr_urls:mobile_donation_qr_url** | *uri* | A QR code in PNG format for the mobile donation form. For fundraisers with a Mobilepay Myshop number it is a Myshop url, for fundraisers using vipps epayment it is a Vipps url, otherwise it is our short mobile donation form. Only provided if the fundraiser can receive donations. | `"https://example.org/qr.png"` |
991+
| **qr_urls:standard_donation_qr_url** | *uri* | A QR code in PNG format for the standard donation form. Only provided if the fundraiser can receive donations. | `"https://example.org/qr.png"` |
992992
| **[recipient:html_url](#resource-common)** | *uri* | The current url to view the organisation page on BetterNow. This can, and does, change. Requests to old urls will be redirect to the current url. | `"https://dk.betternow.org/charities/helpnow"` |
993993
| **[recipient:id](#resource-common)** | *string* | Unique identifier of organisation | `1234567` |
994994
| **[recipient:name](#resource-common)** | *string* | The name of the Organisation | `"HelpNow"` |
@@ -1283,7 +1283,7 @@ POST /fundraisers
12831283
| **description** | *string* | The text written by the fundraiser owner. Contains HTML. | `"<p>This is really, <b>REALLY</b> great</p> <br><br>"` |
12841284
| **end_date** | *date* | The end date for a fundraiser. | `"2012-01-01"` |
12851285
| **event_id** | *string* | unique identifier of event | `1234567` |
1286-
| **fundraiser_type** | *string* | The type of the fundraiser on BetterNow<br/> **one of:**`"birthday"` or `"anniversary"` or `"in_memory_of"` or `"sports_event"` or `"corporate"` or `"cultural_event"` or `"sponsorable"` or `"tribute_fund"` or `"other"` | `"birthday"` |
1286+
| **fundraiser_type** | *string* | The type of the fundraiser on BetterNow<br/> **one of:**`"birthday"` or `"anniversary"` or `"in_memory_of"` or `"sports_event"` or `"corporate"` or `"cultural_event"` or `"sponsorable"` or `"tribute_fund"` or `"live_stream"` or `"crowdfunding"` or `"door_to_door"` or `"personal"` or `"other"` | `"birthday"` |
12871287
| **funeral_date** | *date* | The date of the funeral for the person who a tribute_fund fundraiser is honoring. | `"2012-01-01"` |
12881288
| **goal:cents** | *integer* | Numeric amount in cents | `1234500` |
12891289
| **goal:currency** | *string* | 3 character currency code, as specified in ISO 4217<br/> **pattern:** `^([A-Z]{3})$` | `"EUR"` |

source/index.html.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ target="_blank">Terms &amp; Conditions</a>
5151

5252
## Changelog
5353

54+
2025-06-11:
55+
56+
- updated the list of valid fundraiser_type values
57+
5458
2025-03-31:
5559

5660
- added qr_urls object to the Fundraiser Page

source/schema.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,10 @@
12591259
"cultural_event",
12601260
"sponsorable",
12611261
"tribute_fund",
1262+
"live_stream",
1263+
"crowdfunding",
1264+
"door_to_door",
1265+
"personal",
12621266
"other"
12631267
]
12641268
},
@@ -1533,22 +1537,25 @@
15331537
],
15341538
"properties": {
15351539
"fundraiser_qr_url": {
1536-
"description": "A QR code in PNG format for the fundraiser page.",
1540+
"description": "A QR code in PNG format for the fundraiser page. Only provided if the fundraiser can receive donations.",
15371541
"example": "https://example.org/qr.png",
1542+
"format": "uri",
15381543
"type": [
15391544
"string"
15401545
]
15411546
},
15421547
"mobile_donation_qr_url": {
1543-
"description": "A QR code in PNG format for the mobile donation form. For fundraisers with a Mobilepay Myshop number it is a Myshop url, for fundraisers using vipps epayment it is a Vipps url, otherwise it is our short mobile donation form.",
1548+
"description": "A QR code in PNG format for the mobile donation form. For fundraisers with a Mobilepay Myshop number it is a Myshop url, for fundraisers using vipps epayment it is a Vipps url, otherwise it is our short mobile donation form. Only provided if the fundraiser can receive donations.",
15441549
"example": "https://example.org/qr.png",
1550+
"format": "uri",
15451551
"type": [
15461552
"string"
15471553
]
15481554
},
15491555
"standard_donation_qr_url": {
1550-
"description": "A QR code in PNG format for the standard donation form.",
1556+
"description": "A QR code in PNG format for the standard donation form. Only provided if the fundraiser can receive donations.",
15511557
"example": "https://example.org/qr.png",
1558+
"format": "uri",
15521559
"type": [
15531560
"string"
15541561
]

0 commit comments

Comments
 (0)