stripe
Version:
Stripe API wrapper
25 lines • 939 B
JavaScript
// File generated from our OpenAPI spec
import { StripeResource } from '../StripeResource.js';
export class ReviewResource extends StripeResource {
/**
* Returns a list of Review objects that have open set to true. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
*/
list(params, options) {
return this._makeRequest('GET', '/v1/reviews', params, options, {
methodType: 'list',
});
}
/**
* Retrieves a Review object.
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/reviews/${id}`, params, options);
}
/**
* Approves a Review object, closing it and removing it from the list of reviews.
*/
approve(id, params, options) {
return this._makeRequest('POST', `/v1/reviews/${id}/approve`, params, options);
}
}
//# sourceMappingURL=Reviews.js.map