stripe
Version:
Stripe API wrapper
21 lines • 856 B
JavaScript
// File generated from our OpenAPI spec
import { StripeResource } from '../../StripeResource.js';
export class EarlyFraudWarningResource extends StripeResource {
/**
* Returns a list of early fraud warnings.
*/
list(params, options) {
return this._makeRequest('GET', '/v1/radar/early_fraud_warnings', params, options, {
methodType: 'list',
});
}
/**
* Retrieves the details of an early fraud warning that has previously been created.
*
* Please refer to the [early fraud warning](https://docs.stripe.com/api#early_fraud_warning_object) object reference for more details.
*/
retrieve(id, params, options) {
return this._makeRequest('GET', `/v1/radar/early_fraud_warnings/${encodeURIComponent(id)}`, params, options);
}
}
//# sourceMappingURL=EarlyFraudWarnings.js.map