🚀New lib version v0.0.12 [CI SKIP]
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
68
dist/services/DonationService.d.ts
vendored
Normal file
68
dist/services/DonationService.d.ts
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
import type { CreateDistanceDonation } from '../models/CreateDistanceDonation';
|
||||
import type { CreateFixedDonation } from '../models/CreateFixedDonation';
|
||||
import type { ResponseDistanceDonation } from '../models/ResponseDistanceDonation';
|
||||
import type { ResponseDonation } from '../models/ResponseDonation';
|
||||
import type { ResponseEmpty } from '../models/ResponseEmpty';
|
||||
import type { UpdateDistanceDonation } from '../models/UpdateDistanceDonation';
|
||||
import type { UpdateFixedDonation } from '../models/UpdateFixedDonation';
|
||||
export declare class DonationService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all donations (fixed or distance based) from all donors. <br> This includes the donations's runner's distance ran(if distance donation).
|
||||
* @returns any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static donationControllerGetAll(): Promise<(Array<ResponseDonation> | Array<ResponseDistanceDonation>)>;
|
||||
/**
|
||||
* Get one
|
||||
* Lists all information about the donation whose id got provided. This includes the donation's runner's distance ran (if distance donation).
|
||||
* @param id
|
||||
* @returns any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static donationControllerGetOne(id: number): Promise<(ResponseDonation | ResponseDistanceDonation)>;
|
||||
/**
|
||||
* Remove
|
||||
* Delete the donation whose id you provided. <br> If no donation with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @param force
|
||||
* @returns any
|
||||
* @returns ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static donationControllerRemove(id: number, force?: boolean): Promise<(ResponseDonation | ResponseDistanceDonation) | ResponseEmpty>;
|
||||
/**
|
||||
* Post fixed
|
||||
* Create a fixed donation (not distance donation - use /donations/distance instead). <br> Please rmemember to provide the donation's donors's id and amount.
|
||||
* @param requestBody CreateFixedDonation
|
||||
* @returns ResponseDonation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static donationControllerPostFixed(requestBody?: CreateFixedDonation): Promise<ResponseDonation>;
|
||||
/**
|
||||
* Post distance
|
||||
* Create a distance donation (not fixed donation - use /donations/fixed instead). <br> Please rmemember to provide the donation's donors's and runners ids and amount per distance (kilometer).
|
||||
* @param requestBody CreateDistanceDonation
|
||||
* @returns ResponseDistanceDonation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static donationControllerPostDistance(requestBody?: CreateDistanceDonation): Promise<ResponseDistanceDonation>;
|
||||
/**
|
||||
* Put fixed
|
||||
* Update the fixed donation (not distance donation - use /donations/distance instead) whose id you provided. <br> Please remember that ids can't be changed and amounts must be positive.
|
||||
* @param id
|
||||
* @param requestBody UpdateFixedDonation
|
||||
* @returns ResponseDonation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static donationControllerPutFixed(id: number, requestBody?: UpdateFixedDonation): Promise<ResponseDonation>;
|
||||
/**
|
||||
* Put distance
|
||||
* Update the distance donation (not fixed donation - use /donations/fixed instead) whose id you provided. <br> Please remember that ids can't be changed and amountPerDistance must be positive.
|
||||
* @param id
|
||||
* @param requestBody UpdateDistanceDonation
|
||||
* @returns ResponseDonation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static donationControllerPutDistance(id: number, requestBody?: UpdateDistanceDonation): Promise<ResponseDonation>;
|
||||
}
|
||||
Reference in New Issue
Block a user