Initial project import
This commit is contained in:
25
node_modules/stripe/esm/resources/Reviews.js
generated
vendored
Normal file
25
node_modules/stripe/esm/resources/Reviews.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
// 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/${encodeURIComponent(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/${encodeURIComponent(id)}/approve`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Reviews.js.map
|
||||
Reference in New Issue
Block a user