@@ -48,6 +48,7 @@ export default class FinanceServices {
4848 * @param sponsorTierId The ID of the sponsor's tier.
4949 * @param taxExempt Boolean indicating if the sponsor is tax-exempt.
5050 * @param discountCode The discount code associated with the sponsor.
51+ * @param sponsorNotes Additional notes about the sponsor.
5152 * @param sponsorContact The contact information for the sponsor.
5253 * @param sponsorTasks An array of sponsor tasks associated with the sponsor.
5354 * @param organization The organization for which the sponsor is being created.
@@ -68,7 +69,8 @@ export default class FinanceServices {
6869 sponsorContact : string ,
6970 sponsorTasks : CreateSponsorTask [ ] ,
7071 organization : Organization ,
71- discountCode ?: string
72+ discountCode ?: string ,
73+ sponsorNotes ?: string
7274 ) {
7375 if ( ! ( await userHasPermission ( submitter . userId , organization . organizationId , isHead ) ) )
7476 throw new AccessDeniedException ( 'Only heads can create a sponsor' ) ;
@@ -94,6 +96,7 @@ export default class FinanceServices {
9496 sponsorTierId,
9597 taxExempt,
9698 discountCode,
99+ sponsorNotes,
97100 vendorContact : sponsorContact ,
98101 sponsorTasks : {
99102 create : sponsorTasks . map ( ( task ) => ( {
@@ -1102,6 +1105,7 @@ export default class FinanceServices {
11021105 * @param sponsorTierId The ID of the sponsor's tier.
11031106 * @param taxExempt Boolean indicating if the sponsor is tax-exempt.
11041107 * @param discountCode The discount code associated with the sponsor.
1108+ * @param sponsorNotes Additional notes about the sponsor.
11051109 * @param sponsorContact The contact information for the sponsor.
11061110 * @param sponsorTasks An array of sponsor tasks associated with the sponsor.
11071111 * @param organization The organization for which the sponsor is being edited.
@@ -1121,7 +1125,8 @@ export default class FinanceServices {
11211125 sponsorContact : string ,
11221126 taxExempt : boolean ,
11231127 sponsorTasks : CreateSponsorTask [ ] ,
1124- discountCode ?: string
1128+ discountCode ?: string ,
1129+ sponsorNotes ?: string
11251130 ) : Promise < Sponsor > {
11261131 if ( ! ( await userHasPermission ( submitter . userId , organization . organizationId , isHead ) ) )
11271132 throw new AccessDeniedException ( 'Only heads can edit sponsors.' ) ;
@@ -1202,7 +1207,8 @@ export default class FinanceServices {
12021207 } ,
12031208 vendorContact : sponsorContact ,
12041209 taxExempt,
1205- discountCode
1210+ discountCode,
1211+ sponsorNotes
12061212 } ,
12071213 ...getSponsorQueryArgs ( organization . organizationId )
12081214 } ) ;
0 commit comments