Initial project import
This commit is contained in:
79
node_modules/stripe/esm/resources/Radar/EarlyFraudWarnings.d.ts
generated
vendored
Normal file
79
node_modules/stripe/esm/resources/Radar/EarlyFraudWarnings.d.ts
generated
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { Charge } from './../Charges.js';
|
||||
import { PaymentIntent } from './../PaymentIntents.js';
|
||||
import { PaginationParams, RangeQueryParam } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class EarlyFraudWarningResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of early fraud warnings.
|
||||
*/
|
||||
list(params?: Radar.EarlyFraudWarningListParams, options?: RequestOptions): ApiListPromise<EarlyFraudWarning>;
|
||||
/**
|
||||
* 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: string, params?: Radar.EarlyFraudWarningRetrieveParams, options?: RequestOptions): Promise<Response<EarlyFraudWarning>>;
|
||||
}
|
||||
export interface EarlyFraudWarning {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'radar.early_fraud_warning';
|
||||
/**
|
||||
* An EFW is actionable if it has not received a dispute and has not been fully refunded. You may wish to proactively refund a charge that receives an EFW, in order to avoid receiving a dispute later.
|
||||
*/
|
||||
actionable: boolean;
|
||||
/**
|
||||
* ID of the charge this early fraud warning is for, optionally expanded.
|
||||
*/
|
||||
charge: string | Charge;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* The type of fraud labelled by the issuer. One of `card_never_received`, `fraudulent_card_application`, `made_with_counterfeit_card`, `made_with_lost_card`, `made_with_stolen_card`, `misc`, `unauthorized_use_of_card`.
|
||||
*/
|
||||
fraud_type: string;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* ID of the Payment Intent this early fraud warning is for, optionally expanded.
|
||||
*/
|
||||
payment_intent?: string | PaymentIntent;
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface EarlyFraudWarningRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface EarlyFraudWarningListParams extends PaginationParams {
|
||||
/**
|
||||
* Only return early fraud warnings for the charge specified by this charge ID.
|
||||
*/
|
||||
charge?: string;
|
||||
/**
|
||||
* Only return early fraud warnings that were created during the given date interval.
|
||||
*/
|
||||
created?: RangeQueryParam | number;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Only return early fraud warnings for charges that were created by the PaymentIntent specified by this PaymentIntent ID.
|
||||
*/
|
||||
payment_intent?: string;
|
||||
}
|
||||
}
|
||||
21
node_modules/stripe/esm/resources/Radar/EarlyFraudWarnings.js
generated
vendored
Normal file
21
node_modules/stripe/esm/resources/Radar/EarlyFraudWarnings.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// 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
|
||||
1
node_modules/stripe/esm/resources/Radar/EarlyFraudWarnings.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Radar/EarlyFraudWarnings.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"EarlyFraudWarnings.js","sourceRoot":"","sources":["../../../src/resources/Radar/EarlyFraudWarnings.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAMvD,MAAM,OAAO,yBAA0B,SAAQ,cAAc;IAC3D;;OAEG;IACH,IAAI,CACF,MAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,gCAAgC,EAChC,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;;;OAIG;IACH,QAAQ,CACN,EAAU,EACV,MAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,kCAAkC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC1D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
581
node_modules/stripe/esm/resources/Radar/PaymentEvaluations.d.ts
generated
vendored
Normal file
581
node_modules/stripe/esm/resources/Radar/PaymentEvaluations.d.ts
generated
vendored
Normal file
@@ -0,0 +1,581 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { PaymentMethod } from './../PaymentMethods.js';
|
||||
import { MetadataParam, AddressParam, Metadata, Address } from '../../shared.js';
|
||||
import { RequestOptions, Response } from '../../lib.js';
|
||||
export declare class PaymentEvaluationResource extends StripeResource {
|
||||
/**
|
||||
* Request a Radar API fraud risk score from Stripe for a payment before sending it for external processor authorization.
|
||||
*/
|
||||
create(params: Radar.PaymentEvaluationCreateParams, options?: RequestOptions): Promise<Response<PaymentEvaluation>>;
|
||||
}
|
||||
export interface PaymentEvaluation {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'radar.payment_evaluation';
|
||||
/**
|
||||
* Client device metadata attached to this payment evaluation.
|
||||
*/
|
||||
client_device_metadata_details?: Radar.PaymentEvaluation.ClientDeviceMetadataDetails;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created_at: number;
|
||||
/**
|
||||
* Customer details attached to this payment evaluation.
|
||||
*/
|
||||
customer_details?: Radar.PaymentEvaluation.CustomerDetails;
|
||||
/**
|
||||
* Event information associated with the payment evaluation, such as refunds, dispute, early fraud warnings, or user interventions.
|
||||
*/
|
||||
events?: Array<Radar.PaymentEvaluation.Event>;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
*/
|
||||
metadata: Metadata | null;
|
||||
/**
|
||||
* Indicates the final outcome for the payment evaluation.
|
||||
*/
|
||||
outcome?: Radar.PaymentEvaluation.Outcome | null;
|
||||
/**
|
||||
* Payment details attached to this payment evaluation.
|
||||
*/
|
||||
payment_details?: Radar.PaymentEvaluation.PaymentDetails;
|
||||
/**
|
||||
* Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`.
|
||||
*/
|
||||
recommended_action: Radar.PaymentEvaluation.RecommendedAction;
|
||||
/**
|
||||
* Collection of signals for this payment evaluation.
|
||||
*/
|
||||
signals: Radar.PaymentEvaluation.Signals;
|
||||
}
|
||||
export declare namespace Radar {
|
||||
namespace PaymentEvaluation {
|
||||
interface ClientDeviceMetadataDetails {
|
||||
/**
|
||||
* ID for the Radar Session associated with the payment evaluation. A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
||||
*/
|
||||
radar_session: string;
|
||||
}
|
||||
interface CustomerDetails {
|
||||
/**
|
||||
* The ID of the customer associated with the payment evaluation.
|
||||
*/
|
||||
customer: string | null;
|
||||
/**
|
||||
* The ID of the Account representing the customer associated with the payment evaluation.
|
||||
*/
|
||||
customer_account: string | null;
|
||||
/**
|
||||
* The customer's email address.
|
||||
*/
|
||||
email: string | null;
|
||||
/**
|
||||
* The customer's full name or business name.
|
||||
*/
|
||||
name: string | null;
|
||||
/**
|
||||
* The customer's phone number.
|
||||
*/
|
||||
phone: string | null;
|
||||
}
|
||||
interface Event {
|
||||
/**
|
||||
* Dispute opened event details attached to this payment evaluation.
|
||||
*/
|
||||
dispute_opened?: Event.DisputeOpened;
|
||||
/**
|
||||
* Early Fraud Warning Received event details attached to this payment evaluation.
|
||||
*/
|
||||
early_fraud_warning_received?: Event.EarlyFraudWarningReceived;
|
||||
/**
|
||||
* Timestamp when the event occurred.
|
||||
*/
|
||||
occurred_at: number;
|
||||
/**
|
||||
* Refunded Event details attached to this payment evaluation.
|
||||
*/
|
||||
refunded?: Event.Refunded;
|
||||
/**
|
||||
* Indicates the type of event attached to the payment evaluation.
|
||||
*/
|
||||
type: Event.Type;
|
||||
/**
|
||||
* User intervention raised event details attached to this payment evaluation
|
||||
*/
|
||||
user_intervention_raised?: Event.UserInterventionRaised;
|
||||
/**
|
||||
* User Intervention Resolved Event details attached to this payment evaluation
|
||||
*/
|
||||
user_intervention_resolved?: Event.UserInterventionResolved;
|
||||
}
|
||||
interface Outcome {
|
||||
/**
|
||||
* Details of a merchant_blocked outcome attached to this payment evaluation.
|
||||
*/
|
||||
merchant_blocked?: Outcome.MerchantBlocked;
|
||||
/**
|
||||
* The PaymentIntent ID associated with the payment evaluation.
|
||||
*/
|
||||
payment_intent_id?: string;
|
||||
/**
|
||||
* Details of an rejected outcome attached to this payment evaluation.
|
||||
*/
|
||||
rejected?: Outcome.Rejected;
|
||||
/**
|
||||
* Details of a succeeded outcome attached to this payment evaluation.
|
||||
*/
|
||||
succeeded?: Outcome.Succeeded;
|
||||
/**
|
||||
* Indicates the outcome of the payment evaluation.
|
||||
*/
|
||||
type: Outcome.Type;
|
||||
}
|
||||
interface PaymentDetails {
|
||||
/**
|
||||
* Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
||||
*/
|
||||
currency: string;
|
||||
/**
|
||||
* An arbitrary string attached to the object. Often useful for displaying to users.
|
||||
*/
|
||||
description: string | null;
|
||||
/**
|
||||
* Details about the payment's customer presence and type.
|
||||
*/
|
||||
money_movement_details: PaymentDetails.MoneyMovementDetails | null;
|
||||
/**
|
||||
* Details about the payment method used for the payment.
|
||||
*/
|
||||
payment_method_details: PaymentDetails.PaymentMethodDetails | null;
|
||||
/**
|
||||
* Shipping details for the payment evaluation.
|
||||
*/
|
||||
shipping_details: PaymentDetails.ShippingDetails | null;
|
||||
/**
|
||||
* Payment statement descriptor.
|
||||
*/
|
||||
statement_descriptor: string | null;
|
||||
}
|
||||
type RecommendedAction = 'block' | 'continue';
|
||||
interface Signals {
|
||||
/**
|
||||
* A payment evaluation signal with evaluated_at, risk_level, and score fields.
|
||||
*/
|
||||
fraudulent_payment: Signals.FraudulentPayment;
|
||||
}
|
||||
namespace Event {
|
||||
interface DisputeOpened {
|
||||
/**
|
||||
* Amount to dispute for this payment. A positive integer representing how much to charge in [the smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (for example, 100 cents to charge 1.00 USD or 100 to charge 100 Yen, a zero-decimal currency).
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
||||
*/
|
||||
currency: string;
|
||||
/**
|
||||
* Reason given by cardholder for dispute.
|
||||
*/
|
||||
reason: DisputeOpened.Reason;
|
||||
}
|
||||
interface EarlyFraudWarningReceived {
|
||||
/**
|
||||
* The type of fraud labeled by the issuer.
|
||||
*/
|
||||
fraud_type: EarlyFraudWarningReceived.FraudType;
|
||||
}
|
||||
interface Refunded {
|
||||
/**
|
||||
* Amount refunded for this payment. A positive integer representing how much to charge in [the smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (for example, 100 cents to charge 1.00 USD or 100 to charge 100 Yen, a zero-decimal currency).
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
||||
*/
|
||||
currency: string;
|
||||
/**
|
||||
* Indicates the reason for the refund.
|
||||
*/
|
||||
reason: Refunded.Reason;
|
||||
}
|
||||
type Type = 'dispute_opened' | 'early_fraud_warning_received' | 'refunded' | 'user_intervention_raised' | 'user_intervention_resolved';
|
||||
interface UserInterventionRaised {
|
||||
/**
|
||||
* User intervention raised custom event details attached to this payment evaluation
|
||||
*/
|
||||
custom?: UserInterventionRaised.Custom;
|
||||
/**
|
||||
* Unique identifier for the user intervention event.
|
||||
*/
|
||||
key: string;
|
||||
/**
|
||||
* Type of user intervention raised.
|
||||
*/
|
||||
type: UserInterventionRaised.Type;
|
||||
}
|
||||
interface UserInterventionResolved {
|
||||
/**
|
||||
* Unique ID of this intervention. Use this to provide the result.
|
||||
*/
|
||||
key: string;
|
||||
/**
|
||||
* Result of the intervention if it has been completed.
|
||||
*/
|
||||
outcome: UserInterventionResolved.Outcome | null;
|
||||
}
|
||||
namespace DisputeOpened {
|
||||
type Reason = 'account_not_available' | 'credit_not_processed' | 'customer_initiated' | 'duplicate' | 'fraudulent' | 'general' | 'noncompliant' | 'product_not_received' | 'product_unacceptable' | 'subscription_canceled' | 'unrecognized';
|
||||
}
|
||||
namespace EarlyFraudWarningReceived {
|
||||
type FraudType = 'made_with_lost_card' | 'made_with_stolen_card' | 'other' | 'unauthorized_use_of_card';
|
||||
}
|
||||
namespace Refunded {
|
||||
type Reason = 'duplicate' | 'fraudulent' | 'other' | 'requested_by_customer';
|
||||
}
|
||||
namespace UserInterventionRaised {
|
||||
interface Custom {
|
||||
/**
|
||||
* Custom type of user intervention raised. The string must use a snake case description for the type of intervention performed.
|
||||
*/
|
||||
type: string;
|
||||
}
|
||||
type Type = '3ds' | 'captcha' | 'custom';
|
||||
}
|
||||
namespace UserInterventionResolved {
|
||||
type Outcome = 'abandoned' | 'failed' | 'passed';
|
||||
}
|
||||
}
|
||||
namespace Outcome {
|
||||
interface MerchantBlocked {
|
||||
/**
|
||||
* The reason the payment was blocked by the merchant.
|
||||
*/
|
||||
reason: MerchantBlocked.Reason;
|
||||
}
|
||||
interface Rejected {
|
||||
/**
|
||||
* Details of an rejected card outcome attached to this payment evaluation.
|
||||
*/
|
||||
card?: Rejected.Card;
|
||||
}
|
||||
interface Succeeded {
|
||||
/**
|
||||
* Details of an succeeded card outcome attached to this payment evaluation.
|
||||
*/
|
||||
card?: Succeeded.Card;
|
||||
}
|
||||
type Type = 'failed' | 'merchant_blocked' | 'rejected' | 'succeeded';
|
||||
namespace MerchantBlocked {
|
||||
type Reason = 'authentication_required' | 'blocked_for_fraud' | 'invalid_payment' | 'other';
|
||||
}
|
||||
namespace Rejected {
|
||||
interface Card {
|
||||
/**
|
||||
* Result of the address line 1 check.
|
||||
*/
|
||||
address_line1_check: Card.AddressLine1Check;
|
||||
/**
|
||||
* Indicates whether the cardholder provided a postal code and if it matched the cardholder's billing address.
|
||||
*/
|
||||
address_postal_code_check: Card.AddressPostalCodeCheck;
|
||||
/**
|
||||
* Result of the CVC check.
|
||||
*/
|
||||
cvc_check: Card.CvcCheck;
|
||||
/**
|
||||
* Card issuer's reason for the network decline.
|
||||
*/
|
||||
reason: Card.Reason;
|
||||
}
|
||||
namespace Card {
|
||||
type AddressLine1Check = 'fail' | 'pass' | 'unavailable' | 'unchecked';
|
||||
type AddressPostalCodeCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked';
|
||||
type CvcCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked';
|
||||
type Reason = 'authentication_failed' | 'do_not_honor' | 'expired' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_postal_code' | 'insufficient_funds' | 'invalid_account' | 'lost_card' | 'other' | 'processing_error' | 'reported_stolen' | 'try_again_later';
|
||||
}
|
||||
}
|
||||
namespace Succeeded {
|
||||
interface Card {
|
||||
/**
|
||||
* Result of the address line 1 check.
|
||||
*/
|
||||
address_line1_check: Card.AddressLine1Check;
|
||||
/**
|
||||
* Indicates whether the cardholder provided a postal code and if it matched the cardholder's billing address.
|
||||
*/
|
||||
address_postal_code_check: Card.AddressPostalCodeCheck;
|
||||
/**
|
||||
* Result of the CVC check.
|
||||
*/
|
||||
cvc_check: Card.CvcCheck;
|
||||
}
|
||||
namespace Card {
|
||||
type AddressLine1Check = 'fail' | 'pass' | 'unavailable' | 'unchecked';
|
||||
type AddressPostalCodeCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked';
|
||||
type CvcCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked';
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace PaymentDetails {
|
||||
interface MoneyMovementDetails {
|
||||
/**
|
||||
* Describes card money movement details for the payment evaluation.
|
||||
*/
|
||||
card: MoneyMovementDetails.Card | null;
|
||||
/**
|
||||
* Describes the type of money movement. Currently only `card` is supported.
|
||||
*/
|
||||
money_movement_type: 'card';
|
||||
}
|
||||
interface PaymentMethodDetails {
|
||||
/**
|
||||
* Billing information associated with the payment evaluation.
|
||||
*/
|
||||
billing_details: PaymentMethodDetails.BillingDetails | null;
|
||||
/**
|
||||
* The payment method used in this payment evaluation.
|
||||
*/
|
||||
payment_method: string | PaymentMethod;
|
||||
}
|
||||
interface ShippingDetails {
|
||||
/**
|
||||
* Address data.
|
||||
*/
|
||||
address: Address;
|
||||
/**
|
||||
* Shipping name.
|
||||
*/
|
||||
name: string | null;
|
||||
/**
|
||||
* Shipping phone number.
|
||||
*/
|
||||
phone: string | null;
|
||||
}
|
||||
namespace MoneyMovementDetails {
|
||||
interface Card {
|
||||
/**
|
||||
* Describes the presence of the customer during the payment.
|
||||
*/
|
||||
customer_presence: Card.CustomerPresence | null;
|
||||
/**
|
||||
* Describes the type of payment.
|
||||
*/
|
||||
payment_type: Card.PaymentType | null;
|
||||
}
|
||||
namespace Card {
|
||||
type CustomerPresence = 'off_session' | 'on_session';
|
||||
type PaymentType = 'one_off' | 'recurring' | 'setup_one_off' | 'setup_recurring';
|
||||
}
|
||||
}
|
||||
namespace PaymentMethodDetails {
|
||||
interface BillingDetails {
|
||||
/**
|
||||
* Address data.
|
||||
*/
|
||||
address: Address;
|
||||
/**
|
||||
* Email address.
|
||||
*/
|
||||
email: string | null;
|
||||
/**
|
||||
* Full name.
|
||||
*/
|
||||
name: string | null;
|
||||
/**
|
||||
* Billing phone number (including extension).
|
||||
*/
|
||||
phone: string | null;
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace Signals {
|
||||
interface FraudulentPayment {
|
||||
/**
|
||||
* The time when this signal was evaluated.
|
||||
*/
|
||||
evaluated_at: number;
|
||||
/**
|
||||
* Risk level of this signal, based on the score.
|
||||
*/
|
||||
risk_level: FraudulentPayment.RiskLevel;
|
||||
/**
|
||||
* Score for this signal. Possible values for evaluated payments are between 0 and 100. The value is returned with two decimal places and higher scores indicate a higher likelihood of the signal being true. A score of -1 is returned when a model evaluation was not performed, such as requests from incomplete integrations.
|
||||
*/
|
||||
score: number;
|
||||
}
|
||||
namespace FraudulentPayment {
|
||||
type RiskLevel = 'elevated' | 'highest' | 'low' | 'normal' | 'not_assessed' | 'unknown';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface PaymentEvaluationCreateParams {
|
||||
/**
|
||||
* Details about the customer associated with the payment evaluation.
|
||||
*/
|
||||
customer_details: PaymentEvaluationCreateParams.CustomerDetails;
|
||||
/**
|
||||
* Details about the payment.
|
||||
*/
|
||||
payment_details: PaymentEvaluationCreateParams.PaymentDetails;
|
||||
/**
|
||||
* Details about the Client Device Metadata to associate with the payment evaluation.
|
||||
*/
|
||||
client_device_metadata_details?: PaymentEvaluationCreateParams.ClientDeviceMetadataDetails;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
||||
*/
|
||||
metadata?: MetadataParam;
|
||||
}
|
||||
namespace PaymentEvaluationCreateParams {
|
||||
interface CustomerDetails {
|
||||
/**
|
||||
* The ID of the customer associated with the payment evaluation.
|
||||
*/
|
||||
customer?: string;
|
||||
/**
|
||||
* The ID of the Account representing the customer associated with the payment evaluation.
|
||||
*/
|
||||
customer_account?: string;
|
||||
/**
|
||||
* The customer's email address.
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
* The customer's full name or business name.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* The customer's phone number.
|
||||
*/
|
||||
phone?: string;
|
||||
}
|
||||
interface PaymentDetails {
|
||||
/**
|
||||
* The intended amount to collect with this payment. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (for example, 100 cents to charge 1.00 USD or 100 to charge 100 Yen, a zero-decimal currency).
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
||||
*/
|
||||
currency: string;
|
||||
/**
|
||||
* An arbitrary string attached to the object. Often useful for displaying to users.
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* Details about the payment's customer presence and type.
|
||||
*/
|
||||
money_movement_details?: PaymentDetails.MoneyMovementDetails;
|
||||
/**
|
||||
* Details about the payment method to use for the payment.
|
||||
*/
|
||||
payment_method_details: PaymentDetails.PaymentMethodDetails;
|
||||
/**
|
||||
* Shipping details for the payment evaluation.
|
||||
*/
|
||||
shipping_details?: PaymentDetails.ShippingDetails;
|
||||
/**
|
||||
* Payment statement descriptor.
|
||||
*/
|
||||
statement_descriptor?: string;
|
||||
}
|
||||
interface ClientDeviceMetadataDetails {
|
||||
/**
|
||||
* ID for the Radar Session to associate with the payment evaluation. A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
||||
*/
|
||||
radar_session: string;
|
||||
}
|
||||
namespace PaymentDetails {
|
||||
interface MoneyMovementDetails {
|
||||
/**
|
||||
* Describes card money movement details for the payment evaluation.
|
||||
*/
|
||||
card?: MoneyMovementDetails.Card;
|
||||
/**
|
||||
* Describes the type of money movement. Currently only `card` is supported.
|
||||
*/
|
||||
money_movement_type: 'card';
|
||||
}
|
||||
interface PaymentMethodDetails {
|
||||
/**
|
||||
* Billing information associated with the payment evaluation.
|
||||
*/
|
||||
billing_details?: PaymentMethodDetails.BillingDetails;
|
||||
/**
|
||||
* ID of the payment method used in this payment evaluation.
|
||||
*/
|
||||
payment_method: string;
|
||||
}
|
||||
interface ShippingDetails {
|
||||
/**
|
||||
* Shipping address.
|
||||
*/
|
||||
address?: AddressParam;
|
||||
/**
|
||||
* Shipping name.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Shipping phone number.
|
||||
*/
|
||||
phone?: string;
|
||||
}
|
||||
namespace MoneyMovementDetails {
|
||||
interface Card {
|
||||
/**
|
||||
* Describes the presence of the customer during the payment.
|
||||
*/
|
||||
customer_presence?: Card.CustomerPresence;
|
||||
/**
|
||||
* Describes the type of payment.
|
||||
*/
|
||||
payment_type?: Card.PaymentType;
|
||||
}
|
||||
namespace Card {
|
||||
type CustomerPresence = 'off_session' | 'on_session';
|
||||
type PaymentType = 'one_off' | 'recurring' | 'setup_one_off' | 'setup_recurring';
|
||||
}
|
||||
}
|
||||
namespace PaymentMethodDetails {
|
||||
interface BillingDetails {
|
||||
/**
|
||||
* Billing address.
|
||||
*/
|
||||
address?: AddressParam;
|
||||
/**
|
||||
* Email address.
|
||||
*/
|
||||
email?: string;
|
||||
/**
|
||||
* Full name.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Billing phone number (including extension).
|
||||
*/
|
||||
phone?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
node_modules/stripe/esm/resources/Radar/PaymentEvaluations.js
generated
vendored
Normal file
11
node_modules/stripe/esm/resources/Radar/PaymentEvaluations.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class PaymentEvaluationResource extends StripeResource {
|
||||
/**
|
||||
* Request a Radar API fraud risk score from Stripe for a payment before sending it for external processor authorization.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/radar/payment_evaluations', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=PaymentEvaluations.js.map
|
||||
1
node_modules/stripe/esm/resources/Radar/PaymentEvaluations.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Radar/PaymentEvaluations.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"PaymentEvaluations.js","sourceRoot":"","sources":["../../../src/resources/Radar/PaymentEvaluations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAKvD,MAAM,OAAO,yBAA0B,SAAQ,cAAc;IAC3D;;OAEG;IACH,MAAM,CACJ,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+BAA+B,EAC/B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
119
node_modules/stripe/esm/resources/Radar/ValueListItems.d.ts
generated
vendored
Normal file
119
node_modules/stripe/esm/resources/Radar/ValueListItems.d.ts
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { PaginationParams, RangeQueryParam } from '../../shared.js';
|
||||
import { RequestOptions, Response, ApiListPromise } from '../../lib.js';
|
||||
export declare class ValueListItemResource extends StripeResource {
|
||||
/**
|
||||
* Deletes a ValueListItem object, removing it from its parent value list.
|
||||
*/
|
||||
del(id: string, params?: Radar.ValueListItemDeleteParams, options?: RequestOptions): Promise<Response<Radar.DeletedValueListItem>>;
|
||||
/**
|
||||
* Retrieves a ValueListItem object.
|
||||
*/
|
||||
retrieve(id: string, params?: Radar.ValueListItemRetrieveParams, options?: RequestOptions): Promise<Response<ValueListItem>>;
|
||||
/**
|
||||
* Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
||||
*/
|
||||
list(params: Radar.ValueListItemListParams, options?: RequestOptions): ApiListPromise<ValueListItem>;
|
||||
/**
|
||||
* Creates a new ValueListItem object, which is added to the specified parent value list.
|
||||
*/
|
||||
create(params: Radar.ValueListItemCreateParams, options?: RequestOptions): Promise<Response<ValueListItem>>;
|
||||
}
|
||||
export interface ValueListItem {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'radar.value_list_item';
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* The name or email address of the user who added this item to the value list.
|
||||
*/
|
||||
created_by: string;
|
||||
/**
|
||||
* Always true for a deleted object
|
||||
*/
|
||||
deleted?: void;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* The value of the item.
|
||||
*/
|
||||
value: string;
|
||||
/**
|
||||
* The identifier of the value list this item belongs to.
|
||||
*/
|
||||
value_list: string;
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface DeletedValueListItem {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'radar.value_list_item';
|
||||
/**
|
||||
* Always true for a deleted object
|
||||
*/
|
||||
deleted: true;
|
||||
}
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface ValueListItemCreateParams {
|
||||
/**
|
||||
* The value of the item (whose type must match the type of the parent value list).
|
||||
*/
|
||||
value: string;
|
||||
/**
|
||||
* The identifier of the value list which the created item will be added to.
|
||||
*/
|
||||
value_list: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface ValueListItemRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface ValueListItemListParams extends PaginationParams {
|
||||
/**
|
||||
* Identifier for the parent value list this item belongs to.
|
||||
*/
|
||||
value_list: string;
|
||||
/**
|
||||
* Only return items that were created during the given date interval.
|
||||
*/
|
||||
created?: RangeQueryParam | number;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Return items belonging to the parent list whose value matches the specified value (using an "is like" match).
|
||||
*/
|
||||
value?: string;
|
||||
}
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface ValueListItemDeleteParams {
|
||||
}
|
||||
}
|
||||
31
node_modules/stripe/esm/resources/Radar/ValueListItems.js
generated
vendored
Normal file
31
node_modules/stripe/esm/resources/Radar/ValueListItems.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class ValueListItemResource extends StripeResource {
|
||||
/**
|
||||
* Deletes a ValueListItem object, removing it from its parent value list.
|
||||
*/
|
||||
del(id, params, options) {
|
||||
return this._makeRequest('DELETE', `/v1/radar/value_list_items/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves a ValueListItem object.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/radar/value_list_items/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Returns a list of ValueListItem objects. 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/radar/value_list_items', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a new ValueListItem object, which is added to the specified parent value list.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/radar/value_list_items', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=ValueListItems.js.map
|
||||
1
node_modules/stripe/esm/resources/Radar/ValueListItems.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Radar/ValueListItems.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ValueListItems.js","sourceRoot":"","sources":["../../../src/resources/Radar/ValueListItems.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAIvD,MAAM,OAAO,qBAAsB,SAAQ,cAAc;IACvD;;OAEG;IACH,GAAG,CACD,EAAU,EACV,MAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,QAAQ,EACR,8BAA8B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACtD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,8BAA8B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACtD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,IAAI,CACF,MAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,4BAA4B,EAC5B,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,4BAA4B,EAC5B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
170
node_modules/stripe/esm/resources/Radar/ValueLists.d.ts
generated
vendored
Normal file
170
node_modules/stripe/esm/resources/Radar/ValueLists.d.ts
generated
vendored
Normal file
@@ -0,0 +1,170 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { ValueListItem } from './ValueListItems.js';
|
||||
import { MetadataParam, PaginationParams, RangeQueryParam, Metadata } from '../../shared.js';
|
||||
import { RequestOptions, Response, ApiListPromise, ApiList } from '../../lib.js';
|
||||
export declare class ValueListResource extends StripeResource {
|
||||
/**
|
||||
* Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.
|
||||
*/
|
||||
del(id: string, params?: Radar.ValueListDeleteParams, options?: RequestOptions): Promise<Response<Radar.DeletedValueList>>;
|
||||
/**
|
||||
* Retrieves a ValueList object.
|
||||
*/
|
||||
retrieve(id: string, params?: Radar.ValueListRetrieveParams, options?: RequestOptions): Promise<Response<ValueList>>;
|
||||
/**
|
||||
* Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable.
|
||||
*/
|
||||
update(id: string, params?: Radar.ValueListUpdateParams, options?: RequestOptions): Promise<Response<ValueList>>;
|
||||
/**
|
||||
* Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
||||
*/
|
||||
list(params?: Radar.ValueListListParams, options?: RequestOptions): ApiListPromise<ValueList>;
|
||||
/**
|
||||
* Creates a new ValueList object, which can then be referenced in rules.
|
||||
*/
|
||||
create(params: Radar.ValueListCreateParams, options?: RequestOptions): Promise<Response<ValueList>>;
|
||||
}
|
||||
export interface ValueList {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'radar.value_list';
|
||||
/**
|
||||
* The name of the value list for use in rules.
|
||||
*/
|
||||
alias: string;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* The name or email address of the user who created this value list.
|
||||
*/
|
||||
created_by: string;
|
||||
/**
|
||||
* Always true for a deleted object
|
||||
*/
|
||||
deleted?: void;
|
||||
/**
|
||||
* The type of items in the value list. One of `card_fingerprint`, `card_bin`, `crypto_fingerprint`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `account`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`.
|
||||
*/
|
||||
item_type: Radar.ValueList.ItemType;
|
||||
/**
|
||||
* List of items contained within this value list.
|
||||
*/
|
||||
list_items: ApiList<ValueListItem>;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
||||
*/
|
||||
metadata: Metadata;
|
||||
/**
|
||||
* The name of the value list.
|
||||
*/
|
||||
name: string;
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface DeletedValueList {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'radar.value_list';
|
||||
/**
|
||||
* Always true for a deleted object
|
||||
*/
|
||||
deleted: true;
|
||||
}
|
||||
namespace ValueList {
|
||||
type ItemType = 'account' | 'card_bin' | 'card_fingerprint' | 'case_sensitive_string' | 'country' | 'crypto_fingerprint' | 'customer_id' | 'email' | 'ip_address' | 'sepa_debit_fingerprint' | 'string' | 'us_bank_account_fingerprint';
|
||||
}
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface ValueListCreateParams {
|
||||
/**
|
||||
* The name of the value list for use in rules.
|
||||
*/
|
||||
alias: string;
|
||||
/**
|
||||
* The human-readable name of the value list.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Type of the items in the value list. One of `card_fingerprint`, `card_bin`, `crypto_fingerprint`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `account`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. Use `string` if the item type is unknown or mixed.
|
||||
*/
|
||||
item_type?: ValueListCreateParams.ItemType;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
||||
*/
|
||||
metadata?: MetadataParam;
|
||||
}
|
||||
namespace ValueListCreateParams {
|
||||
type ItemType = 'account' | 'card_bin' | 'card_fingerprint' | 'case_sensitive_string' | 'country' | 'crypto_fingerprint' | 'customer_id' | 'email' | 'ip_address' | 'sepa_debit_fingerprint' | 'string' | 'us_bank_account_fingerprint';
|
||||
}
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface ValueListRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface ValueListUpdateParams {
|
||||
/**
|
||||
* The name of the value list for use in rules.
|
||||
*/
|
||||
alias?: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
||||
*/
|
||||
metadata?: MetadataParam;
|
||||
/**
|
||||
* The human-readable name of the value list.
|
||||
*/
|
||||
name?: string;
|
||||
}
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface ValueListListParams extends PaginationParams {
|
||||
/**
|
||||
* The alias used to reference the value list when writing rules.
|
||||
*/
|
||||
alias?: string;
|
||||
/**
|
||||
* A value contained within a value list - returns all value lists containing this value.
|
||||
*/
|
||||
contains?: string;
|
||||
/**
|
||||
* Only return value lists that were created during the given date interval.
|
||||
*/
|
||||
created?: RangeQueryParam | number;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Radar {
|
||||
interface ValueListDeleteParams {
|
||||
}
|
||||
}
|
||||
37
node_modules/stripe/esm/resources/Radar/ValueLists.js
generated
vendored
Normal file
37
node_modules/stripe/esm/resources/Radar/ValueLists.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class ValueListResource extends StripeResource {
|
||||
/**
|
||||
* Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.
|
||||
*/
|
||||
del(id, params, options) {
|
||||
return this._makeRequest('DELETE', `/v1/radar/value_lists/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves a ValueList object.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/radar/value_lists/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/radar/value_lists/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Returns a list of ValueList objects. 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/radar/value_lists', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a new ValueList object, which can then be referenced in rules.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/radar/value_lists', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=ValueLists.js.map
|
||||
1
node_modules/stripe/esm/resources/Radar/ValueLists.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Radar/ValueLists.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ValueLists.js","sourceRoot":"","sources":["../../../src/resources/Radar/ValueLists.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAUvD,MAAM,OAAO,iBAAkB,SAAQ,cAAc;IACnD;;OAEG;IACH,GAAG,CACD,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,QAAQ,EACR,yBAAyB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACjD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,yBAAyB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACjD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,yBAAyB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACjD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,IAAI,CACF,MAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,uBAAuB,EAAE,MAAM,EAAE,OAAO,EAAE;YACxE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,uBAAuB,EACvB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
35
node_modules/stripe/esm/resources/Radar/index.d.ts
generated
vendored
Normal file
35
node_modules/stripe/esm/resources/Radar/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import { Stripe } from '../../stripe.core.js';
|
||||
import { Radar as RadarNamespace0, EarlyFraudWarning, EarlyFraudWarningResource } from './EarlyFraudWarnings.js';
|
||||
import { Radar as RadarNamespace1, PaymentEvaluation, PaymentEvaluationResource } from './PaymentEvaluations.js';
|
||||
import { Radar as RadarNamespace2, ValueList, ValueListResource } from './ValueLists.js';
|
||||
import { Radar as RadarNamespace3, ValueListItem, ValueListItemResource } from './ValueListItems.js';
|
||||
export { EarlyFraudWarning } from './EarlyFraudWarnings.js';
|
||||
export { PaymentEvaluation } from './PaymentEvaluations.js';
|
||||
export { ValueList } from './ValueLists.js';
|
||||
export { ValueListItem } from './ValueListItems.js';
|
||||
export declare class Radar {
|
||||
private readonly stripe;
|
||||
earlyFraudWarnings: EarlyFraudWarningResource;
|
||||
paymentEvaluations: PaymentEvaluationResource;
|
||||
valueLists: ValueListResource;
|
||||
valueListItems: ValueListItemResource;
|
||||
constructor(stripe: Stripe);
|
||||
}
|
||||
export declare namespace Radar {
|
||||
export import EarlyFraudWarningListParams = RadarNamespace0.EarlyFraudWarningListParams;
|
||||
export import EarlyFraudWarningRetrieveParams = RadarNamespace0.EarlyFraudWarningRetrieveParams;
|
||||
export { EarlyFraudWarning };
|
||||
export import PaymentEvaluationCreateParams = RadarNamespace1.PaymentEvaluationCreateParams;
|
||||
export { PaymentEvaluation };
|
||||
export import ValueListDeleteParams = RadarNamespace2.ValueListDeleteParams;
|
||||
export import ValueListRetrieveParams = RadarNamespace2.ValueListRetrieveParams;
|
||||
export import ValueListUpdateParams = RadarNamespace2.ValueListUpdateParams;
|
||||
export import ValueListListParams = RadarNamespace2.ValueListListParams;
|
||||
export import ValueListCreateParams = RadarNamespace2.ValueListCreateParams;
|
||||
export { ValueList };
|
||||
export import ValueListItemDeleteParams = RadarNamespace3.ValueListItemDeleteParams;
|
||||
export import ValueListItemRetrieveParams = RadarNamespace3.ValueListItemRetrieveParams;
|
||||
export import ValueListItemListParams = RadarNamespace3.ValueListItemListParams;
|
||||
export import ValueListItemCreateParams = RadarNamespace3.ValueListItemCreateParams;
|
||||
export { ValueListItem };
|
||||
}
|
||||
15
node_modules/stripe/esm/resources/Radar/index.js
generated
vendored
Normal file
15
node_modules/stripe/esm/resources/Radar/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { EarlyFraudWarningResource, } from './EarlyFraudWarnings.js';
|
||||
import { PaymentEvaluationResource, } from './PaymentEvaluations.js';
|
||||
import { ValueListResource, } from './ValueLists.js';
|
||||
import { ValueListItemResource, } from './ValueListItems.js';
|
||||
export class Radar {
|
||||
constructor(stripe) {
|
||||
this.stripe = stripe;
|
||||
this.earlyFraudWarnings = new EarlyFraudWarningResource(stripe);
|
||||
this.paymentEvaluations = new PaymentEvaluationResource(stripe);
|
||||
this.valueLists = new ValueListResource(stripe);
|
||||
this.valueListItems = new ValueListItemResource(stripe);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/stripe/esm/resources/Radar/index.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Radar/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Radar/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAGL,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAGL,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAO7B,MAAM,OAAO,KAAK;IAMhB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,kBAAkB,GAAG,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;QAChE,IAAI,CAAC,kBAAkB,GAAG,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;QAChE,IAAI,CAAC,UAAU,GAAG,IAAI,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAChD,IAAI,CAAC,cAAc,GAAG,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC1D,CAAC;CACF"}
|
||||
Reference in New Issue
Block a user