Add sponsorship pre validate endpoint (#564)
This commit is contained in:
parent
340a79bfe6
commit
d02fcd082e
|
@ -458,6 +458,7 @@ export abstract class ApiService {
|
|||
postCreateSponsorship: (sponsorshipOrgId: string, request: OrganizationSponsorshipCreateRequest) => Promise<void>;
|
||||
deleteRevokeSponsorship: (sponsoringOrganizationId: string) => Promise<void>;
|
||||
deleteRemoveSponsorship: (sponsoringOrgId: string) => Promise<void>;
|
||||
postPreValidateSponsorshipToken: (sponsorshipToken: string) => Promise<boolean>;
|
||||
postRedeemSponsorship: (sponsorshipToken: string, request: OrganizationSponsorshipRedeemRequest) => Promise<void>;
|
||||
postResendSponsorshipOffer: (sponsoringOrgId: string) => Promise<void>;
|
||||
|
||||
|
|
|
@ -1579,6 +1579,13 @@ export class ApiService implements ApiServiceAbstraction {
|
|||
'/organization/sponsorship/sponsored/' + sponsoringOrgId,
|
||||
null, true, false);
|
||||
}
|
||||
|
||||
async postPreValidateSponsorshipToken(sponsorshipToken: string): Promise<boolean> {
|
||||
const r = await this.send('POST', '/organization/sponsorship/validate-token?sponsorshipToken=' + encodeURIComponent(sponsorshipToken),
|
||||
null, true, true);
|
||||
return r as boolean;
|
||||
}
|
||||
|
||||
async postRedeemSponsorship(sponsorshipToken: string, request: OrganizationSponsorshipRedeemRequest): Promise<void> {
|
||||
return await this.send('POST', '/organization/sponsorship/redeem?sponsorshipToken=' + encodeURIComponent(sponsorshipToken),
|
||||
request, true, false);
|
||||
|
|
Loading…
Reference in New Issue