Initial project import
This commit is contained in:
611
node_modules/stripe/esm/resources/Issuing/Authorizations.d.ts
generated
vendored
Normal file
611
node_modules/stripe/esm/resources/Issuing/Authorizations.d.ts
generated
vendored
Normal file
@@ -0,0 +1,611 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { BalanceTransaction } from './../BalanceTransactions.js';
|
||||
import { Card } from './Cards.js';
|
||||
import { Cardholder } from './Cardholders.js';
|
||||
import { Token } from './Tokens.js';
|
||||
import { Transaction } from './Transactions.js';
|
||||
import { Emptyable, MetadataParam, PaginationParams, RangeQueryParam, Metadata, Decimal } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class AuthorizationResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
||||
*/
|
||||
list(params?: Issuing.AuthorizationListParams, options?: RequestOptions): ApiListPromise<Authorization>;
|
||||
/**
|
||||
* Retrieves an Issuing Authorization object.
|
||||
*/
|
||||
retrieve(id: string, params?: Issuing.AuthorizationRetrieveParams, options?: RequestOptions): Promise<Response<Authorization>>;
|
||||
/**
|
||||
* Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
||||
*/
|
||||
update(id: string, params?: Issuing.AuthorizationUpdateParams, options?: RequestOptions): Promise<Response<Authorization>>;
|
||||
/**
|
||||
* [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow.
|
||||
* This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
|
||||
* @deprecated
|
||||
*/
|
||||
approve(id: string, params?: Issuing.AuthorizationApproveParams, options?: RequestOptions): Promise<Response<Authorization>>;
|
||||
/**
|
||||
* [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow.
|
||||
* This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
|
||||
* @deprecated
|
||||
*/
|
||||
decline(id: string, params?: Issuing.AuthorizationDeclineParams, options?: RequestOptions): Promise<Response<Authorization>>;
|
||||
}
|
||||
export interface Authorization {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'issuing.authorization';
|
||||
/**
|
||||
* The total amount that was authorized or rejected. This amount is in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). `amount` should be the same as `merchant_amount`, unless `currency` and `merchant_currency` are different.
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
||||
*/
|
||||
amount_details: Issuing.Authorization.AmountDetails | null;
|
||||
/**
|
||||
* Whether the authorization has been approved.
|
||||
*/
|
||||
approved: boolean;
|
||||
/**
|
||||
* How the card details were provided.
|
||||
*/
|
||||
authorization_method: Issuing.Authorization.AuthorizationMethod;
|
||||
/**
|
||||
* List of balance transactions associated with this authorization.
|
||||
*/
|
||||
balance_transactions: Array<BalanceTransaction>;
|
||||
/**
|
||||
* You can [create physical or virtual cards](https://docs.stripe.com/issuing) that are issued to cardholders.
|
||||
*/
|
||||
card: Card;
|
||||
/**
|
||||
* Whether the card was present at the point of sale for the authorization.
|
||||
*/
|
||||
card_presence: Issuing.Authorization.CardPresence | null;
|
||||
/**
|
||||
* The cardholder to whom this authorization belongs.
|
||||
*/
|
||||
cardholder: string | Cardholder | null;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* The currency of the cardholder. This currency can be different from the currency presented at authorization and the `merchant_currency` field on this authorization. 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;
|
||||
/**
|
||||
* Fleet-specific information for authorizations using Fleet cards.
|
||||
*/
|
||||
fleet: Issuing.Authorization.Fleet | null;
|
||||
/**
|
||||
* Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk reasons.
|
||||
*/
|
||||
fraud_challenges?: Array<Issuing.Authorization.FraudChallenge> | null;
|
||||
/**
|
||||
* Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed.
|
||||
*/
|
||||
fuel: Issuing.Authorization.Fuel | null;
|
||||
/**
|
||||
* 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 total amount that was authorized or rejected. This amount is in the `merchant_currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). `merchant_amount` should be the same as `amount`, unless `merchant_currency` and `currency` are different.
|
||||
*/
|
||||
merchant_amount: number;
|
||||
/**
|
||||
* The local currency that was presented to the cardholder for the authorization. This currency can be different from the cardholder currency and the `currency` field on this authorization. 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).
|
||||
*/
|
||||
merchant_currency: string;
|
||||
merchant_data: Issuing.Authorization.MerchantData;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* Details about the authorization, such as identifiers, set by the card network.
|
||||
*/
|
||||
network_data: Issuing.Authorization.NetworkData | null;
|
||||
/**
|
||||
* The pending authorization request. This field will only be non-null during an `issuing_authorization.request` webhook.
|
||||
*/
|
||||
pending_request: Issuing.Authorization.PendingRequest | null;
|
||||
/**
|
||||
* History of every time a `pending_request` authorization was approved/declined, either by you directly or by Stripe (e.g. based on your spending_controls). If the merchant changes the authorization by performing an incremental authorization, you can look at this field to see the previous requests for the authorization. This field can be helpful in determining why a given authorization was approved/declined.
|
||||
*/
|
||||
request_history: Array<Issuing.Authorization.RequestHistory>;
|
||||
/**
|
||||
* The current status of the authorization in its lifecycle.
|
||||
*/
|
||||
status: Issuing.Authorization.Status;
|
||||
/**
|
||||
* [Token](https://docs.stripe.com/api/issuing/tokens/object) object used for this authorization. If a network token was not used for this authorization, this field will be null.
|
||||
*/
|
||||
token?: string | Token | null;
|
||||
/**
|
||||
* List of [transactions](https://docs.stripe.com/api/issuing/transactions) associated with this authorization.
|
||||
*/
|
||||
transactions: Array<Transaction>;
|
||||
/**
|
||||
* [Treasury](https://docs.stripe.com/api/treasury) details related to this authorization if it was created on a [FinancialAccount](https://docs.stripe.com/api/treasury/financial_accounts).
|
||||
*/
|
||||
treasury?: Issuing.Authorization.Treasury | null;
|
||||
verification_data: Issuing.Authorization.VerificationData;
|
||||
/**
|
||||
* Whether the authorization bypassed fraud risk checks because the cardholder has previously completed a fraud challenge on a similar high-risk authorization from the same merchant.
|
||||
*/
|
||||
verified_by_fraud_challenge: boolean | null;
|
||||
/**
|
||||
* The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized.
|
||||
*/
|
||||
wallet: string | null;
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
namespace Authorization {
|
||||
interface AmountDetails {
|
||||
/**
|
||||
* The fee charged by the ATM for the cash withdrawal.
|
||||
*/
|
||||
atm_fee: number | null;
|
||||
/**
|
||||
* The amount of cash requested by the cardholder.
|
||||
*/
|
||||
cashback_amount: number | null;
|
||||
}
|
||||
type AuthorizationMethod = 'chip' | 'contactless' | 'keyed_in' | 'online' | 'swipe';
|
||||
type CardPresence = 'not_present' | 'present';
|
||||
interface Fleet {
|
||||
/**
|
||||
* Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
|
||||
*/
|
||||
cardholder_prompt_data: Fleet.CardholderPromptData | null;
|
||||
/**
|
||||
* The type of purchase.
|
||||
*/
|
||||
purchase_type: Fleet.PurchaseType | null;
|
||||
/**
|
||||
* More information about the total amount. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
||||
*/
|
||||
reported_breakdown: Fleet.ReportedBreakdown | null;
|
||||
/**
|
||||
* The type of fuel service.
|
||||
*/
|
||||
service_type: Fleet.ServiceType | null;
|
||||
}
|
||||
interface FraudChallenge {
|
||||
/**
|
||||
* The method by which the fraud challenge was delivered to the cardholder.
|
||||
*/
|
||||
channel: 'sms';
|
||||
/**
|
||||
* The status of the fraud challenge.
|
||||
*/
|
||||
status: FraudChallenge.Status;
|
||||
/**
|
||||
* If the challenge is not deliverable, the reason why.
|
||||
*/
|
||||
undeliverable_reason: FraudChallenge.UndeliverableReason | null;
|
||||
}
|
||||
interface Fuel {
|
||||
/**
|
||||
* [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
||||
*/
|
||||
industry_product_code: string | null;
|
||||
/**
|
||||
* The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
||||
*/
|
||||
quantity_decimal: Decimal | null;
|
||||
/**
|
||||
* The type of fuel that was purchased.
|
||||
*/
|
||||
type: Fuel.Type | null;
|
||||
/**
|
||||
* The units for `quantity_decimal`.
|
||||
*/
|
||||
unit: Fuel.Unit | null;
|
||||
/**
|
||||
* The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
||||
*/
|
||||
unit_cost_decimal: Decimal | null;
|
||||
}
|
||||
interface MerchantData {
|
||||
/**
|
||||
* A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
|
||||
*/
|
||||
category: string;
|
||||
/**
|
||||
* The merchant category code for the seller's business
|
||||
*/
|
||||
category_code: string;
|
||||
/**
|
||||
* City where the seller is located
|
||||
*/
|
||||
city: string | null;
|
||||
/**
|
||||
* Country where the seller is located
|
||||
*/
|
||||
country: string | null;
|
||||
/**
|
||||
* Name of the seller
|
||||
*/
|
||||
name: string | null;
|
||||
/**
|
||||
* Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant.
|
||||
*/
|
||||
network_id: string;
|
||||
/**
|
||||
* Postal code where the seller is located
|
||||
*/
|
||||
postal_code: string | null;
|
||||
/**
|
||||
* State where the seller is located
|
||||
*/
|
||||
state: string | null;
|
||||
/**
|
||||
* The seller's tax identification number. Currently populated for French merchants only.
|
||||
*/
|
||||
tax_id: string | null;
|
||||
/**
|
||||
* An ID assigned by the seller to the location of the sale.
|
||||
*/
|
||||
terminal_id: string | null;
|
||||
/**
|
||||
* URL provided by the merchant on a 3DS request
|
||||
*/
|
||||
url: string | null;
|
||||
}
|
||||
interface NetworkData {
|
||||
/**
|
||||
* Identifier assigned to the acquirer by the card network. Sometimes this value is not provided by the network; in this case, the value will be `null`.
|
||||
*/
|
||||
acquiring_institution_id: string | null;
|
||||
/**
|
||||
* The System Trace Audit Number (STAN) is a 6-digit identifier assigned by the acquirer. Prefer `network_data.transaction_id` if present, unless you have special requirements.
|
||||
*/
|
||||
system_trace_audit_number: string | null;
|
||||
/**
|
||||
* Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions.
|
||||
*/
|
||||
transaction_id: string | null;
|
||||
}
|
||||
interface PendingRequest {
|
||||
/**
|
||||
* The additional amount Stripe will hold if the authorization is approved, in the card's [currency](https://docs.stripe.com/api#issuing_authorization_object-pending-request-currency) and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
||||
*/
|
||||
amount_details: PendingRequest.AmountDetails | null;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
|
||||
*/
|
||||
is_amount_controllable: boolean;
|
||||
/**
|
||||
* The amount the merchant is requesting to be authorized in the `merchant_currency`. The amount is in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
||||
*/
|
||||
merchant_amount: number;
|
||||
/**
|
||||
* The local currency the merchant is requesting to authorize.
|
||||
*/
|
||||
merchant_currency: string;
|
||||
/**
|
||||
* The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99.
|
||||
*/
|
||||
network_risk_score: number | null;
|
||||
}
|
||||
interface RequestHistory {
|
||||
/**
|
||||
* The `pending_request.amount` at the time of the request, presented in your card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Stripe held this amount from your account to fund the authorization if the request was approved.
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
||||
*/
|
||||
amount_details: RequestHistory.AmountDetails | null;
|
||||
/**
|
||||
* Whether this request was approved.
|
||||
*/
|
||||
approved: boolean;
|
||||
/**
|
||||
* A code created by Stripe which is shared with the merchant to validate the authorization. This field will be populated if the authorization message was approved. The code typically starts with the letter "S", followed by a six-digit number. For example, "S498162". Please note that the code is not guaranteed to be unique across authorizations.
|
||||
*/
|
||||
authorization_code: string | null;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: 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;
|
||||
/**
|
||||
* The `pending_request.merchant_amount` at the time of the request, presented in the `merchant_currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
||||
*/
|
||||
merchant_amount: number;
|
||||
/**
|
||||
* The currency that was collected by the merchant and presented to the cardholder for the authorization. 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).
|
||||
*/
|
||||
merchant_currency: string;
|
||||
/**
|
||||
* The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99.
|
||||
*/
|
||||
network_risk_score: number | null;
|
||||
/**
|
||||
* When an authorization is approved or declined by you or by Stripe, this field provides additional detail on the reason for the outcome.
|
||||
*/
|
||||
reason: RequestHistory.Reason;
|
||||
/**
|
||||
* If the `request_history.reason` is `webhook_error` because the direct webhook response is invalid (for example, parsing errors or missing parameters), we surface a more detailed error message via this field.
|
||||
*/
|
||||
reason_message: string | null;
|
||||
/**
|
||||
* Time when the card network received an authorization request from the acquirer in UTC. Referred to by networks as transmission time.
|
||||
*/
|
||||
requested_at: number | null;
|
||||
}
|
||||
type Status = 'closed' | 'expired' | 'pending' | 'reversed';
|
||||
interface Treasury {
|
||||
/**
|
||||
* The array of [ReceivedCredits](https://docs.stripe.com/api/treasury/received_credits) associated with this authorization
|
||||
*/
|
||||
received_credits: Array<string>;
|
||||
/**
|
||||
* The array of [ReceivedDebits](https://docs.stripe.com/api/treasury/received_debits) associated with this authorization
|
||||
*/
|
||||
received_debits: Array<string>;
|
||||
/**
|
||||
* The Treasury [Transaction](https://docs.stripe.com/api/treasury/transactions) associated with this authorization
|
||||
*/
|
||||
transaction: string | null;
|
||||
}
|
||||
interface VerificationData {
|
||||
/**
|
||||
* Whether the cardholder provided an address first line and if it matched the cardholder's `billing.address.line1`.
|
||||
*/
|
||||
address_line1_check: VerificationData.AddressLine1Check;
|
||||
/**
|
||||
* Whether the cardholder provided a postal code and if it matched the cardholder's `billing.address.postal_code`.
|
||||
*/
|
||||
address_postal_code_check: VerificationData.AddressPostalCodeCheck;
|
||||
/**
|
||||
* The exemption applied to this authorization.
|
||||
*/
|
||||
authentication_exemption: VerificationData.AuthenticationExemption | null;
|
||||
/**
|
||||
* Whether the cardholder provided a CVC and if it matched Stripe's record.
|
||||
*/
|
||||
cvc_check: VerificationData.CvcCheck;
|
||||
/**
|
||||
* Whether the cardholder provided an expiry date and if it matched Stripe's record.
|
||||
*/
|
||||
expiry_check: VerificationData.ExpiryCheck;
|
||||
/**
|
||||
* The postal code submitted as part of the authorization used for postal code verification.
|
||||
*/
|
||||
postal_code: string | null;
|
||||
/**
|
||||
* 3D Secure details.
|
||||
*/
|
||||
three_d_secure: VerificationData.ThreeDSecure | null;
|
||||
}
|
||||
namespace Fleet {
|
||||
interface CardholderPromptData {
|
||||
/**
|
||||
* [Deprecated] An alphanumeric ID, though typical point of sales only support numeric entry. The card program can be configured to prompt for a vehicle ID, driver ID, or generic ID.
|
||||
* @deprecated
|
||||
*/
|
||||
alphanumeric_id: string | null;
|
||||
/**
|
||||
* Driver ID.
|
||||
*/
|
||||
driver_id: string | null;
|
||||
/**
|
||||
* Odometer reading.
|
||||
*/
|
||||
odometer: number | null;
|
||||
/**
|
||||
* An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
|
||||
*/
|
||||
unspecified_id: string | null;
|
||||
/**
|
||||
* User ID.
|
||||
*/
|
||||
user_id: string | null;
|
||||
/**
|
||||
* Vehicle number.
|
||||
*/
|
||||
vehicle_number: string | null;
|
||||
}
|
||||
type PurchaseType = 'fuel_and_non_fuel_purchase' | 'fuel_purchase' | 'non_fuel_purchase';
|
||||
interface ReportedBreakdown {
|
||||
/**
|
||||
* Breakdown of fuel portion of the purchase.
|
||||
*/
|
||||
fuel: ReportedBreakdown.Fuel | null;
|
||||
/**
|
||||
* Breakdown of non-fuel portion of the purchase.
|
||||
*/
|
||||
non_fuel: ReportedBreakdown.NonFuel | null;
|
||||
/**
|
||||
* Information about tax included in this transaction.
|
||||
*/
|
||||
tax: ReportedBreakdown.Tax | null;
|
||||
}
|
||||
type ServiceType = 'full_service' | 'non_fuel_transaction' | 'self_service';
|
||||
namespace ReportedBreakdown {
|
||||
interface Fuel {
|
||||
/**
|
||||
* Gross fuel amount that should equal Fuel Quantity multiplied by Fuel Unit Cost, inclusive of taxes.
|
||||
*/
|
||||
gross_amount_decimal: Decimal | null;
|
||||
}
|
||||
interface NonFuel {
|
||||
/**
|
||||
* Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
||||
*/
|
||||
gross_amount_decimal: Decimal | null;
|
||||
}
|
||||
interface Tax {
|
||||
/**
|
||||
* Amount of state or provincial Sales Tax included in the transaction amount. `null` if not reported by merchant or not subject to tax.
|
||||
*/
|
||||
local_amount_decimal: Decimal | null;
|
||||
/**
|
||||
* Amount of national Sales Tax or VAT included in the transaction amount. `null` if not reported by merchant or not subject to tax.
|
||||
*/
|
||||
national_amount_decimal: Decimal | null;
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace FraudChallenge {
|
||||
type Status = 'expired' | 'pending' | 'rejected' | 'undeliverable' | 'verified';
|
||||
type UndeliverableReason = 'no_phone_number' | 'unsupported_phone_number';
|
||||
}
|
||||
namespace Fuel {
|
||||
type Type = 'diesel' | 'other' | 'unleaded_plus' | 'unleaded_regular' | 'unleaded_super';
|
||||
type Unit = 'charging_minute' | 'imperial_gallon' | 'kilogram' | 'kilowatt_hour' | 'liter' | 'other' | 'pound' | 'us_gallon';
|
||||
}
|
||||
namespace PendingRequest {
|
||||
interface AmountDetails {
|
||||
/**
|
||||
* The fee charged by the ATM for the cash withdrawal.
|
||||
*/
|
||||
atm_fee: number | null;
|
||||
/**
|
||||
* The amount of cash requested by the cardholder.
|
||||
*/
|
||||
cashback_amount: number | null;
|
||||
}
|
||||
}
|
||||
namespace RequestHistory {
|
||||
interface AmountDetails {
|
||||
/**
|
||||
* The fee charged by the ATM for the cash withdrawal.
|
||||
*/
|
||||
atm_fee: number | null;
|
||||
/**
|
||||
* The amount of cash requested by the cardholder.
|
||||
*/
|
||||
cashback_amount: number | null;
|
||||
}
|
||||
type Reason = 'account_disabled' | 'card_active' | 'card_canceled' | 'card_expired' | 'card_inactive' | 'cardholder_blocked' | 'cardholder_inactive' | 'cardholder_verification_required' | 'insecure_authorization_method' | 'insufficient_funds' | 'network_fallback' | 'not_allowed' | 'pin_blocked' | 'spending_controls' | 'suspected_fraud' | 'verification_failed' | 'webhook_approved' | 'webhook_declined' | 'webhook_error' | 'webhook_timeout';
|
||||
}
|
||||
namespace VerificationData {
|
||||
type AddressLine1Check = 'match' | 'mismatch' | 'not_provided';
|
||||
type AddressPostalCodeCheck = 'match' | 'mismatch' | 'not_provided';
|
||||
interface AuthenticationExemption {
|
||||
/**
|
||||
* The entity that requested the exemption, either the acquiring merchant or the Issuing user.
|
||||
*/
|
||||
claimed_by: AuthenticationExemption.ClaimedBy;
|
||||
/**
|
||||
* The specific exemption claimed for this authorization.
|
||||
*/
|
||||
type: AuthenticationExemption.Type;
|
||||
}
|
||||
type CvcCheck = 'match' | 'mismatch' | 'not_provided';
|
||||
type ExpiryCheck = 'match' | 'mismatch' | 'not_provided';
|
||||
interface ThreeDSecure {
|
||||
/**
|
||||
* The outcome of the 3D Secure authentication request.
|
||||
*/
|
||||
result: ThreeDSecure.Result;
|
||||
}
|
||||
namespace AuthenticationExemption {
|
||||
type ClaimedBy = 'acquirer' | 'issuer';
|
||||
type Type = 'low_value_transaction' | 'transaction_risk_analysis' | 'unknown';
|
||||
}
|
||||
namespace ThreeDSecure {
|
||||
type Result = 'attempt_acknowledged' | 'authenticated' | 'failed' | 'required';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface AuthorizationRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface AuthorizationUpdateParams {
|
||||
/**
|
||||
* 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?: Emptyable<MetadataParam>;
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface AuthorizationListParams extends PaginationParams {
|
||||
/**
|
||||
* Only return authorizations that belong to the given card.
|
||||
*/
|
||||
card?: string;
|
||||
/**
|
||||
* Only return authorizations that belong to the given cardholder.
|
||||
*/
|
||||
cardholder?: string;
|
||||
/**
|
||||
* Only return authorizations 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 authorizations with the given status. One of `pending`, `closed`, or `reversed`.
|
||||
*/
|
||||
status?: AuthorizationListParams.Status;
|
||||
}
|
||||
namespace AuthorizationListParams {
|
||||
type Status = 'closed' | 'expired' | 'pending' | 'reversed';
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface AuthorizationApproveParams {
|
||||
/**
|
||||
* If the authorization's `pending_request.is_amount_controllable` property is `true`, you may provide this value to control how much to hold for the authorization. Must be positive (use [`decline`](https://docs.stripe.com/api/issuing/authorizations/decline) to decline an authorization request).
|
||||
*/
|
||||
amount?: number;
|
||||
/**
|
||||
* 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?: Emptyable<MetadataParam>;
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface AuthorizationDeclineParams {
|
||||
/**
|
||||
* 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?: Emptyable<MetadataParam>;
|
||||
}
|
||||
}
|
||||
871
node_modules/stripe/esm/resources/Issuing/Authorizations.js
generated
vendored
Normal file
871
node_modules/stripe/esm/resources/Issuing/Authorizations.js
generated
vendored
Normal file
@@ -0,0 +1,871 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class AuthorizationResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of Issuing Authorization 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/issuing/authorizations', params, options, {
|
||||
methodType: 'list',
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
data: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
transactions: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
purchase_details: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'decimal_string',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'decimal_string',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'decimal_string',
|
||||
},
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'decimal_string',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Retrieves an Issuing Authorization object.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/issuing/authorizations/${encodeURIComponent(id)}`, params, options, {
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
transactions: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
purchase_details: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/issuing/authorizations/${encodeURIComponent(id)}`, params, options, {
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
transactions: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
purchase_details: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow.
|
||||
* This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
|
||||
* @deprecated
|
||||
*/
|
||||
approve(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/issuing/authorizations/${encodeURIComponent(id)}/approve`, params, options, {
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
transactions: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
purchase_details: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow.
|
||||
* This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
|
||||
* @deprecated
|
||||
*/
|
||||
decline(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/issuing/authorizations/${encodeURIComponent(id)}/decline`, params, options, {
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
transactions: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
purchase_details: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Authorizations.js.map
|
||||
1
node_modules/stripe/esm/resources/Issuing/Authorizations.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Issuing/Authorizations.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
748
node_modules/stripe/esm/resources/Issuing/Cardholders.d.ts
generated
vendored
Normal file
748
node_modules/stripe/esm/resources/Issuing/Cardholders.d.ts
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
31
node_modules/stripe/esm/resources/Issuing/Cardholders.js
generated
vendored
Normal file
31
node_modules/stripe/esm/resources/Issuing/Cardholders.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class CardholderResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of Issuing Cardholder 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/issuing/cardholders', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a new Issuing Cardholder object that can be issued cards.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/issuing/cardholders', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves an Issuing Cardholder object.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/issuing/cardholders/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/issuing/cardholders/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Cardholders.js.map
|
||||
1
node_modules/stripe/esm/resources/Issuing/Cardholders.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Issuing/Cardholders.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Cardholders.js","sourceRoot":"","sources":["../../../src/resources/Issuing/Cardholders.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAYvD,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD;;OAEG;IACH,IAAI,CACF,MAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,yBAAyB,EACzB,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,yBAAyB,EACzB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,2BAA2B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACnD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,2BAA2B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACnD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
794
node_modules/stripe/esm/resources/Issuing/Cards.d.ts
generated
vendored
Normal file
794
node_modules/stripe/esm/resources/Issuing/Cards.d.ts
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
31
node_modules/stripe/esm/resources/Issuing/Cards.js
generated
vendored
Normal file
31
node_modules/stripe/esm/resources/Issuing/Cards.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class CardResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of Issuing Card 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/issuing/cards', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates an Issuing Card object.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/issuing/cards', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves an Issuing Card object.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/issuing/cards/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/issuing/cards/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Cards.js.map
|
||||
1
node_modules/stripe/esm/resources/Issuing/Cards.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Issuing/Cards.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Cards.js","sourceRoot":"","sources":["../../../src/resources/Issuing/Cards.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAavD,MAAM,OAAO,YAAa,SAAQ,cAAc;IAC9C;;OAEG;IACH,IAAI,CACF,MAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,OAAO,EAAE;YACpE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,mBAAmB,EACnB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,qBAAqB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC7C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,qBAAqB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC7C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
862
node_modules/stripe/esm/resources/Issuing/Disputes.d.ts
generated
vendored
Normal file
862
node_modules/stripe/esm/resources/Issuing/Disputes.d.ts
generated
vendored
Normal file
@@ -0,0 +1,862 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { BalanceTransaction } from './../BalanceTransactions.js';
|
||||
import { Transaction } from './Transactions.js';
|
||||
import { File } from './../Files.js';
|
||||
import { MetadataParam, Emptyable, PaginationParams, RangeQueryParam, Metadata } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class DisputeResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
||||
*/
|
||||
list(params?: Issuing.DisputeListParams, options?: RequestOptions): ApiListPromise<Dispute>;
|
||||
/**
|
||||
* Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements.
|
||||
*/
|
||||
create(params?: Issuing.DisputeCreateParams, options?: RequestOptions): Promise<Response<Dispute>>;
|
||||
/**
|
||||
* Retrieves an Issuing Dispute object.
|
||||
*/
|
||||
retrieve(id: string, params?: Issuing.DisputeRetrieveParams, options?: RequestOptions): Promise<Response<Dispute>>;
|
||||
/**
|
||||
* Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string.
|
||||
*/
|
||||
update(id: string, params?: Issuing.DisputeUpdateParams, options?: RequestOptions): Promise<Response<Dispute>>;
|
||||
/**
|
||||
* Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence).
|
||||
*/
|
||||
submit(id: string, params?: Issuing.DisputeSubmitParams, options?: RequestOptions): Promise<Response<Dispute>>;
|
||||
}
|
||||
export interface Dispute {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'issuing.dispute';
|
||||
/**
|
||||
* Disputed amount in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Usually the amount of the `transaction`, but can differ (usually because of currency fluctuation).
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* List of balance transactions associated with the dispute.
|
||||
*/
|
||||
balance_transactions?: Array<BalanceTransaction> | null;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* The currency the `transaction` was made in.
|
||||
*/
|
||||
currency: string;
|
||||
evidence: Issuing.Dispute.Evidence;
|
||||
/**
|
||||
* 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 enum that describes the dispute loss outcome. If the dispute is not lost, this field will be absent. New enum values may be added in the future, so be sure to handle unknown values.
|
||||
*/
|
||||
loss_reason?: Issuing.Dispute.LossReason;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* Current status of the dispute.
|
||||
*/
|
||||
status: Issuing.Dispute.Status;
|
||||
/**
|
||||
* The transaction being disputed.
|
||||
*/
|
||||
transaction: string | Transaction;
|
||||
/**
|
||||
* [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](https://docs.stripe.com/api/treasury/financial_accounts)
|
||||
*/
|
||||
treasury?: Issuing.Dispute.Treasury | null;
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
namespace Dispute {
|
||||
interface Evidence {
|
||||
canceled?: Evidence.Canceled;
|
||||
duplicate?: Evidence.Duplicate;
|
||||
fraudulent?: Evidence.Fraudulent;
|
||||
merchandise_not_as_described?: Evidence.MerchandiseNotAsDescribed;
|
||||
no_valid_authorization?: Evidence.NoValidAuthorization;
|
||||
not_received?: Evidence.NotReceived;
|
||||
other?: Evidence.Other;
|
||||
/**
|
||||
* The reason for filing the dispute. Its value will match the field containing the evidence.
|
||||
*/
|
||||
reason: Evidence.Reason;
|
||||
service_not_as_described?: Evidence.ServiceNotAsDescribed;
|
||||
}
|
||||
type LossReason = 'cardholder_authentication_issuer_liability' | 'eci5_token_transaction_with_tavv' | 'excess_disputes_in_timeframe' | 'has_not_met_the_minimum_dispute_amount_requirements' | 'invalid_duplicate_dispute' | 'invalid_incorrect_amount_dispute' | 'invalid_no_authorization' | 'invalid_use_of_disputes' | 'merchandise_delivered_or_shipped' | 'merchandise_or_service_as_described' | 'not_cancelled' | 'other' | 'refund_issued' | 'submitted_beyond_allowable_time_limit' | 'transaction_3ds_required' | 'transaction_approved_after_prior_fraud_dispute' | 'transaction_authorized' | 'transaction_electronically_read' | 'transaction_qualifies_for_visa_easy_payment_service' | 'transaction_unattended';
|
||||
type Status = 'expired' | 'lost' | 'submitted' | 'unsubmitted' | 'won';
|
||||
interface Treasury {
|
||||
/**
|
||||
* The Treasury [DebitReversal](https://docs.stripe.com/api/treasury/debit_reversals) representing this Issuing dispute
|
||||
*/
|
||||
debit_reversal: string | null;
|
||||
/**
|
||||
* The Treasury [ReceivedDebit](https://docs.stripe.com/api/treasury/received_debits) that is being disputed.
|
||||
*/
|
||||
received_debit: string;
|
||||
}
|
||||
namespace Evidence {
|
||||
interface Canceled {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation: string | File | null;
|
||||
/**
|
||||
* Date when order was canceled.
|
||||
*/
|
||||
canceled_at: number | null;
|
||||
/**
|
||||
* Whether the cardholder was provided with a cancellation policy.
|
||||
*/
|
||||
cancellation_policy_provided: boolean | null;
|
||||
/**
|
||||
* Reason for canceling the order.
|
||||
*/
|
||||
cancellation_reason: string | null;
|
||||
/**
|
||||
* Date when the cardholder expected to receive the product.
|
||||
*/
|
||||
expected_at: number | null;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation: string | null;
|
||||
/**
|
||||
* Description of the merchandise or service that was purchased.
|
||||
*/
|
||||
product_description: string | null;
|
||||
/**
|
||||
* Whether the product was a merchandise or service.
|
||||
*/
|
||||
product_type: Canceled.ProductType | null;
|
||||
/**
|
||||
* Result of cardholder's attempt to return the product.
|
||||
*/
|
||||
return_status: Canceled.ReturnStatus | null;
|
||||
/**
|
||||
* Date when the product was returned or attempted to be returned.
|
||||
*/
|
||||
returned_at: number | null;
|
||||
}
|
||||
interface Duplicate {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation: string | File | null;
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for.
|
||||
*/
|
||||
card_statement: string | File | null;
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash.
|
||||
*/
|
||||
cash_receipt: string | File | null;
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product.
|
||||
*/
|
||||
check_image: string | File | null;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation: string | null;
|
||||
/**
|
||||
* Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one.
|
||||
*/
|
||||
original_transaction: string | null;
|
||||
}
|
||||
interface Fraudulent {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation: string | File | null;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation: string | null;
|
||||
}
|
||||
interface MerchandiseNotAsDescribed {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation: string | File | null;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation: string | null;
|
||||
/**
|
||||
* Date when the product was received.
|
||||
*/
|
||||
received_at: number | null;
|
||||
/**
|
||||
* Description of the cardholder's attempt to return the product.
|
||||
*/
|
||||
return_description: string | null;
|
||||
/**
|
||||
* Result of cardholder's attempt to return the product.
|
||||
*/
|
||||
return_status: MerchandiseNotAsDescribed.ReturnStatus | null;
|
||||
/**
|
||||
* Date when the product was returned or attempted to be returned.
|
||||
*/
|
||||
returned_at: number | null;
|
||||
}
|
||||
interface NoValidAuthorization {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation: string | File | null;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation: string | null;
|
||||
}
|
||||
interface NotReceived {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation: string | File | null;
|
||||
/**
|
||||
* Date when the cardholder expected to receive the product.
|
||||
*/
|
||||
expected_at: number | null;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation: string | null;
|
||||
/**
|
||||
* Description of the merchandise or service that was purchased.
|
||||
*/
|
||||
product_description: string | null;
|
||||
/**
|
||||
* Whether the product was a merchandise or service.
|
||||
*/
|
||||
product_type: NotReceived.ProductType | null;
|
||||
}
|
||||
interface Other {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation: string | File | null;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation: string | null;
|
||||
/**
|
||||
* Description of the merchandise or service that was purchased.
|
||||
*/
|
||||
product_description: string | null;
|
||||
/**
|
||||
* Whether the product was a merchandise or service.
|
||||
*/
|
||||
product_type: Other.ProductType | null;
|
||||
}
|
||||
type Reason = 'canceled' | 'duplicate' | 'fraudulent' | 'merchandise_not_as_described' | 'no_valid_authorization' | 'not_received' | 'other' | 'service_not_as_described';
|
||||
interface ServiceNotAsDescribed {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation: string | File | null;
|
||||
/**
|
||||
* Date when order was canceled.
|
||||
*/
|
||||
canceled_at: number | null;
|
||||
/**
|
||||
* Reason for canceling the order.
|
||||
*/
|
||||
cancellation_reason: string | null;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation: string | null;
|
||||
/**
|
||||
* Date when the product was received.
|
||||
*/
|
||||
received_at: number | null;
|
||||
}
|
||||
namespace Canceled {
|
||||
type ProductType = 'merchandise' | 'service';
|
||||
type ReturnStatus = 'merchant_rejected' | 'successful';
|
||||
}
|
||||
namespace MerchandiseNotAsDescribed {
|
||||
type ReturnStatus = 'merchant_rejected' | 'successful';
|
||||
}
|
||||
namespace NotReceived {
|
||||
type ProductType = 'merchandise' | 'service';
|
||||
}
|
||||
namespace Other {
|
||||
type ProductType = 'merchandise' | 'service';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface DisputeCreateParams {
|
||||
/**
|
||||
* The dispute amount in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). If not set, defaults to the full transaction amount.
|
||||
*/
|
||||
amount?: number;
|
||||
/**
|
||||
* Evidence provided for the dispute.
|
||||
*/
|
||||
evidence?: DisputeCreateParams.Evidence;
|
||||
/**
|
||||
* 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 ID of the issuing transaction to create a dispute for. For transaction on Treasury FinancialAccounts, use `treasury.received_debit`.
|
||||
*/
|
||||
transaction?: string;
|
||||
/**
|
||||
* Params for disputes related to Treasury FinancialAccounts
|
||||
*/
|
||||
treasury?: DisputeCreateParams.Treasury;
|
||||
}
|
||||
namespace DisputeCreateParams {
|
||||
interface Evidence {
|
||||
/**
|
||||
* Evidence provided when `reason` is 'canceled'.
|
||||
*/
|
||||
canceled?: Emptyable<Evidence.Canceled>;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'duplicate'.
|
||||
*/
|
||||
duplicate?: Emptyable<Evidence.Duplicate>;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'fraudulent'.
|
||||
*/
|
||||
fraudulent?: Emptyable<Evidence.Fraudulent>;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'merchandise_not_as_described'.
|
||||
*/
|
||||
merchandise_not_as_described?: Emptyable<Evidence.MerchandiseNotAsDescribed>;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'no_valid_authorization'.
|
||||
*/
|
||||
no_valid_authorization?: Emptyable<Evidence.NoValidAuthorization>;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'not_received'.
|
||||
*/
|
||||
not_received?: Emptyable<Evidence.NotReceived>;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'other'.
|
||||
*/
|
||||
other?: Emptyable<Evidence.Other>;
|
||||
/**
|
||||
* The reason for filing the dispute. The evidence should be submitted in the field of the same name.
|
||||
*/
|
||||
reason?: Evidence.Reason;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'service_not_as_described'.
|
||||
*/
|
||||
service_not_as_described?: Emptyable<Evidence.ServiceNotAsDescribed>;
|
||||
}
|
||||
interface Treasury {
|
||||
/**
|
||||
* The ID of the ReceivedDebit to initiate an Issuings dispute for.
|
||||
*/
|
||||
received_debit: string;
|
||||
}
|
||||
namespace Evidence {
|
||||
interface Canceled {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Date when order was canceled.
|
||||
*/
|
||||
canceled_at?: Emptyable<number>;
|
||||
/**
|
||||
* Whether the cardholder was provided with a cancellation policy.
|
||||
*/
|
||||
cancellation_policy_provided?: Emptyable<boolean>;
|
||||
/**
|
||||
* Reason for canceling the order.
|
||||
*/
|
||||
cancellation_reason?: Emptyable<string>;
|
||||
/**
|
||||
* Date when the cardholder expected to receive the product.
|
||||
*/
|
||||
expected_at?: Emptyable<number>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
/**
|
||||
* Description of the merchandise or service that was purchased.
|
||||
*/
|
||||
product_description?: Emptyable<string>;
|
||||
/**
|
||||
* Whether the product was a merchandise or service.
|
||||
*/
|
||||
product_type?: Emptyable<Canceled.ProductType>;
|
||||
/**
|
||||
* Result of cardholder's attempt to return the product.
|
||||
*/
|
||||
return_status?: Emptyable<Canceled.ReturnStatus>;
|
||||
/**
|
||||
* Date when the product was returned or attempted to be returned.
|
||||
*/
|
||||
returned_at?: Emptyable<number>;
|
||||
}
|
||||
interface Duplicate {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for.
|
||||
*/
|
||||
card_statement?: Emptyable<string>;
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash.
|
||||
*/
|
||||
cash_receipt?: Emptyable<string>;
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product.
|
||||
*/
|
||||
check_image?: Emptyable<string>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
/**
|
||||
* Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one.
|
||||
*/
|
||||
original_transaction?: string;
|
||||
}
|
||||
interface Fraudulent {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
}
|
||||
interface MerchandiseNotAsDescribed {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
/**
|
||||
* Date when the product was received.
|
||||
*/
|
||||
received_at?: Emptyable<number>;
|
||||
/**
|
||||
* Description of the cardholder's attempt to return the product.
|
||||
*/
|
||||
return_description?: Emptyable<string>;
|
||||
/**
|
||||
* Result of cardholder's attempt to return the product.
|
||||
*/
|
||||
return_status?: Emptyable<MerchandiseNotAsDescribed.ReturnStatus>;
|
||||
/**
|
||||
* Date when the product was returned or attempted to be returned.
|
||||
*/
|
||||
returned_at?: Emptyable<number>;
|
||||
}
|
||||
interface NoValidAuthorization {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
}
|
||||
interface NotReceived {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Date when the cardholder expected to receive the product.
|
||||
*/
|
||||
expected_at?: Emptyable<number>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
/**
|
||||
* Description of the merchandise or service that was purchased.
|
||||
*/
|
||||
product_description?: Emptyable<string>;
|
||||
/**
|
||||
* Whether the product was a merchandise or service.
|
||||
*/
|
||||
product_type?: Emptyable<NotReceived.ProductType>;
|
||||
}
|
||||
interface Other {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
/**
|
||||
* Description of the merchandise or service that was purchased.
|
||||
*/
|
||||
product_description?: Emptyable<string>;
|
||||
/**
|
||||
* Whether the product was a merchandise or service.
|
||||
*/
|
||||
product_type?: Emptyable<Other.ProductType>;
|
||||
}
|
||||
type Reason = 'canceled' | 'duplicate' | 'fraudulent' | 'merchandise_not_as_described' | 'no_valid_authorization' | 'not_received' | 'other' | 'service_not_as_described';
|
||||
interface ServiceNotAsDescribed {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Date when order was canceled.
|
||||
*/
|
||||
canceled_at?: Emptyable<number>;
|
||||
/**
|
||||
* Reason for canceling the order.
|
||||
*/
|
||||
cancellation_reason?: Emptyable<string>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
/**
|
||||
* Date when the product was received.
|
||||
*/
|
||||
received_at?: Emptyable<number>;
|
||||
}
|
||||
namespace Canceled {
|
||||
type ProductType = 'merchandise' | 'service';
|
||||
type ReturnStatus = 'merchant_rejected' | 'successful';
|
||||
}
|
||||
namespace MerchandiseNotAsDescribed {
|
||||
type ReturnStatus = 'merchant_rejected' | 'successful';
|
||||
}
|
||||
namespace NotReceived {
|
||||
type ProductType = 'merchandise' | 'service';
|
||||
}
|
||||
namespace Other {
|
||||
type ProductType = 'merchandise' | 'service';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface DisputeRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface DisputeUpdateParams {
|
||||
/**
|
||||
* The dispute amount in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
||||
*/
|
||||
amount?: number;
|
||||
/**
|
||||
* Evidence provided for the dispute.
|
||||
*/
|
||||
evidence?: DisputeUpdateParams.Evidence;
|
||||
/**
|
||||
* 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?: Emptyable<MetadataParam>;
|
||||
}
|
||||
namespace DisputeUpdateParams {
|
||||
interface Evidence {
|
||||
/**
|
||||
* Evidence provided when `reason` is 'canceled'.
|
||||
*/
|
||||
canceled?: Emptyable<Evidence.Canceled>;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'duplicate'.
|
||||
*/
|
||||
duplicate?: Emptyable<Evidence.Duplicate>;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'fraudulent'.
|
||||
*/
|
||||
fraudulent?: Emptyable<Evidence.Fraudulent>;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'merchandise_not_as_described'.
|
||||
*/
|
||||
merchandise_not_as_described?: Emptyable<Evidence.MerchandiseNotAsDescribed>;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'no_valid_authorization'.
|
||||
*/
|
||||
no_valid_authorization?: Emptyable<Evidence.NoValidAuthorization>;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'not_received'.
|
||||
*/
|
||||
not_received?: Emptyable<Evidence.NotReceived>;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'other'.
|
||||
*/
|
||||
other?: Emptyable<Evidence.Other>;
|
||||
/**
|
||||
* The reason for filing the dispute. The evidence should be submitted in the field of the same name.
|
||||
*/
|
||||
reason?: Evidence.Reason;
|
||||
/**
|
||||
* Evidence provided when `reason` is 'service_not_as_described'.
|
||||
*/
|
||||
service_not_as_described?: Emptyable<Evidence.ServiceNotAsDescribed>;
|
||||
}
|
||||
namespace Evidence {
|
||||
interface Canceled {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Date when order was canceled.
|
||||
*/
|
||||
canceled_at?: Emptyable<number>;
|
||||
/**
|
||||
* Whether the cardholder was provided with a cancellation policy.
|
||||
*/
|
||||
cancellation_policy_provided?: Emptyable<boolean>;
|
||||
/**
|
||||
* Reason for canceling the order.
|
||||
*/
|
||||
cancellation_reason?: Emptyable<string>;
|
||||
/**
|
||||
* Date when the cardholder expected to receive the product.
|
||||
*/
|
||||
expected_at?: Emptyable<number>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
/**
|
||||
* Description of the merchandise or service that was purchased.
|
||||
*/
|
||||
product_description?: Emptyable<string>;
|
||||
/**
|
||||
* Whether the product was a merchandise or service.
|
||||
*/
|
||||
product_type?: Emptyable<Canceled.ProductType>;
|
||||
/**
|
||||
* Result of cardholder's attempt to return the product.
|
||||
*/
|
||||
return_status?: Emptyable<Canceled.ReturnStatus>;
|
||||
/**
|
||||
* Date when the product was returned or attempted to be returned.
|
||||
*/
|
||||
returned_at?: Emptyable<number>;
|
||||
}
|
||||
interface Duplicate {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for.
|
||||
*/
|
||||
card_statement?: Emptyable<string>;
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash.
|
||||
*/
|
||||
cash_receipt?: Emptyable<string>;
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product.
|
||||
*/
|
||||
check_image?: Emptyable<string>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
/**
|
||||
* Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one.
|
||||
*/
|
||||
original_transaction?: string;
|
||||
}
|
||||
interface Fraudulent {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
}
|
||||
interface MerchandiseNotAsDescribed {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
/**
|
||||
* Date when the product was received.
|
||||
*/
|
||||
received_at?: Emptyable<number>;
|
||||
/**
|
||||
* Description of the cardholder's attempt to return the product.
|
||||
*/
|
||||
return_description?: Emptyable<string>;
|
||||
/**
|
||||
* Result of cardholder's attempt to return the product.
|
||||
*/
|
||||
return_status?: Emptyable<MerchandiseNotAsDescribed.ReturnStatus>;
|
||||
/**
|
||||
* Date when the product was returned or attempted to be returned.
|
||||
*/
|
||||
returned_at?: Emptyable<number>;
|
||||
}
|
||||
interface NoValidAuthorization {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
}
|
||||
interface NotReceived {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Date when the cardholder expected to receive the product.
|
||||
*/
|
||||
expected_at?: Emptyable<number>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
/**
|
||||
* Description of the merchandise or service that was purchased.
|
||||
*/
|
||||
product_description?: Emptyable<string>;
|
||||
/**
|
||||
* Whether the product was a merchandise or service.
|
||||
*/
|
||||
product_type?: Emptyable<NotReceived.ProductType>;
|
||||
}
|
||||
interface Other {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
/**
|
||||
* Description of the merchandise or service that was purchased.
|
||||
*/
|
||||
product_description?: Emptyable<string>;
|
||||
/**
|
||||
* Whether the product was a merchandise or service.
|
||||
*/
|
||||
product_type?: Emptyable<Other.ProductType>;
|
||||
}
|
||||
type Reason = 'canceled' | 'duplicate' | 'fraudulent' | 'merchandise_not_as_described' | 'no_valid_authorization' | 'not_received' | 'other' | 'service_not_as_described';
|
||||
interface ServiceNotAsDescribed {
|
||||
/**
|
||||
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
|
||||
*/
|
||||
additional_documentation?: Emptyable<string>;
|
||||
/**
|
||||
* Date when order was canceled.
|
||||
*/
|
||||
canceled_at?: Emptyable<number>;
|
||||
/**
|
||||
* Reason for canceling the order.
|
||||
*/
|
||||
cancellation_reason?: Emptyable<string>;
|
||||
/**
|
||||
* Explanation of why the cardholder is disputing this transaction.
|
||||
*/
|
||||
explanation?: Emptyable<string>;
|
||||
/**
|
||||
* Date when the product was received.
|
||||
*/
|
||||
received_at?: Emptyable<number>;
|
||||
}
|
||||
namespace Canceled {
|
||||
type ProductType = 'merchandise' | 'service';
|
||||
type ReturnStatus = 'merchant_rejected' | 'successful';
|
||||
}
|
||||
namespace MerchandiseNotAsDescribed {
|
||||
type ReturnStatus = 'merchant_rejected' | 'successful';
|
||||
}
|
||||
namespace NotReceived {
|
||||
type ProductType = 'merchandise' | 'service';
|
||||
}
|
||||
namespace Other {
|
||||
type ProductType = 'merchandise' | 'service';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface DisputeListParams extends PaginationParams {
|
||||
/**
|
||||
* Only return Issuing disputes that were created during the given date interval.
|
||||
*/
|
||||
created?: RangeQueryParam | number;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Select Issuing disputes with the given status.
|
||||
*/
|
||||
status?: DisputeListParams.Status;
|
||||
/**
|
||||
* Select the Issuing dispute for the given transaction.
|
||||
*/
|
||||
transaction?: string;
|
||||
}
|
||||
namespace DisputeListParams {
|
||||
type Status = 'expired' | 'lost' | 'submitted' | 'unsubmitted' | 'won';
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface DisputeSubmitParams {
|
||||
/**
|
||||
* 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?: Emptyable<MetadataParam>;
|
||||
}
|
||||
}
|
||||
37
node_modules/stripe/esm/resources/Issuing/Disputes.js
generated
vendored
Normal file
37
node_modules/stripe/esm/resources/Issuing/Disputes.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class DisputeResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of Issuing Dispute 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/issuing/disputes', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/issuing/disputes', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves an Issuing Dispute object.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/issuing/disputes/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/issuing/disputes/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence).
|
||||
*/
|
||||
submit(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/issuing/disputes/${encodeURIComponent(id)}/submit`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Disputes.js.map
|
||||
1
node_modules/stripe/esm/resources/Issuing/Disputes.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Issuing/Disputes.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Disputes.js","sourceRoot":"","sources":["../../../src/resources/Issuing/Disputes.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAavD,MAAM,OAAO,eAAgB,SAAQ,cAAc;IACjD;;OAEG;IACH,IAAI,CACF,MAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,OAAO,EAAE;YACvE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,EACtB,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,wBAAwB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAChD,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,wBAAwB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAChD,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,wBAAwB,kBAAkB,CAAC,EAAE,CAAC,SAAS,EACvD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
291
node_modules/stripe/esm/resources/Issuing/PersonalizationDesigns.d.ts
generated
vendored
Normal file
291
node_modules/stripe/esm/resources/Issuing/PersonalizationDesigns.d.ts
generated
vendored
Normal file
@@ -0,0 +1,291 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { File } from './../Files.js';
|
||||
import { PhysicalBundle } from './PhysicalBundles.js';
|
||||
import { MetadataParam, Emptyable, PaginationParams, Metadata } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class PersonalizationDesignResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
||||
*/
|
||||
list(params?: Issuing.PersonalizationDesignListParams, options?: RequestOptions): ApiListPromise<PersonalizationDesign>;
|
||||
/**
|
||||
* Creates a personalization design object.
|
||||
*/
|
||||
create(params: Issuing.PersonalizationDesignCreateParams, options?: RequestOptions): Promise<Response<PersonalizationDesign>>;
|
||||
/**
|
||||
* Retrieves a personalization design object.
|
||||
*/
|
||||
retrieve(id: string, params?: Issuing.PersonalizationDesignRetrieveParams, options?: RequestOptions): Promise<Response<PersonalizationDesign>>;
|
||||
/**
|
||||
* Updates a card personalization object.
|
||||
*/
|
||||
update(id: string, params?: Issuing.PersonalizationDesignUpdateParams, options?: RequestOptions): Promise<Response<PersonalizationDesign>>;
|
||||
}
|
||||
export interface PersonalizationDesign {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'issuing.personalization_design';
|
||||
/**
|
||||
* The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. Image must be in PNG format with dimensions of 1000px by 200px. It must be a binary (black and white) image containing a black logo on a white background. We don't accept grayscale.
|
||||
*/
|
||||
card_logo: string | File | null;
|
||||
/**
|
||||
* Hash containing carrier text, for use with physical bundles that support carrier text.
|
||||
*/
|
||||
carrier_text: Issuing.PersonalizationDesign.CarrierText | null;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.
|
||||
*/
|
||||
lookup_key: string | null;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* Friendly display name.
|
||||
*/
|
||||
name: string | null;
|
||||
/**
|
||||
* The physical bundle object belonging to this personalization design.
|
||||
*/
|
||||
physical_bundle: string | PhysicalBundle;
|
||||
preferences: Issuing.PersonalizationDesign.Preferences;
|
||||
rejection_reasons: Issuing.PersonalizationDesign.RejectionReasons;
|
||||
/**
|
||||
* Whether this personalization design can be used to create cards.
|
||||
*/
|
||||
status: Issuing.PersonalizationDesign.Status;
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
namespace PersonalizationDesign {
|
||||
interface CarrierText {
|
||||
/**
|
||||
* The footer body text of the carrier letter.
|
||||
*/
|
||||
footer_body: string | null;
|
||||
/**
|
||||
* The footer title text of the carrier letter.
|
||||
*/
|
||||
footer_title: string | null;
|
||||
/**
|
||||
* The header body text of the carrier letter.
|
||||
*/
|
||||
header_body: string | null;
|
||||
/**
|
||||
* The header title text of the carrier letter.
|
||||
*/
|
||||
header_title: string | null;
|
||||
}
|
||||
interface Preferences {
|
||||
/**
|
||||
* Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design.
|
||||
*/
|
||||
is_default: boolean;
|
||||
/**
|
||||
* Whether this personalization design is used to create cards when one is not specified and a default for this connected account does not exist.
|
||||
*/
|
||||
is_platform_default: boolean | null;
|
||||
}
|
||||
interface RejectionReasons {
|
||||
/**
|
||||
* The reason(s) the card logo was rejected.
|
||||
*/
|
||||
card_logo: Array<RejectionReasons.CardLogo> | null;
|
||||
/**
|
||||
* The reason(s) the carrier text was rejected.
|
||||
*/
|
||||
carrier_text: Array<RejectionReasons.CarrierText> | null;
|
||||
}
|
||||
type Status = 'active' | 'inactive' | 'rejected' | 'review';
|
||||
namespace RejectionReasons {
|
||||
type CardLogo = 'geographic_location' | 'inappropriate' | 'network_name' | 'non_binary_image' | 'non_fiat_currency' | 'other' | 'other_entity' | 'promotional_material';
|
||||
type CarrierText = 'geographic_location' | 'inappropriate' | 'network_name' | 'non_fiat_currency' | 'other' | 'other_entity' | 'promotional_material';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface PersonalizationDesignCreateParams {
|
||||
/**
|
||||
* The physical bundle object belonging to this personalization design.
|
||||
*/
|
||||
physical_bundle: string;
|
||||
/**
|
||||
* The file for the card logo, for use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`.
|
||||
*/
|
||||
card_logo?: string;
|
||||
/**
|
||||
* Hash containing carrier text, for use with physical bundles that support carrier text.
|
||||
*/
|
||||
carrier_text?: PersonalizationDesignCreateParams.CarrierText;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.
|
||||
*/
|
||||
lookup_key?: 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;
|
||||
/**
|
||||
* Friendly display name.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Information on whether this personalization design is used to create cards when one is not specified.
|
||||
*/
|
||||
preferences?: PersonalizationDesignCreateParams.Preferences;
|
||||
/**
|
||||
* If set to true, will atomically remove the lookup key from the existing personalization design, and assign it to this personalization design.
|
||||
*/
|
||||
transfer_lookup_key?: boolean;
|
||||
}
|
||||
namespace PersonalizationDesignCreateParams {
|
||||
interface CarrierText {
|
||||
/**
|
||||
* The footer body text of the carrier letter.
|
||||
*/
|
||||
footer_body?: Emptyable<string>;
|
||||
/**
|
||||
* The footer title text of the carrier letter.
|
||||
*/
|
||||
footer_title?: Emptyable<string>;
|
||||
/**
|
||||
* The header body text of the carrier letter.
|
||||
*/
|
||||
header_body?: Emptyable<string>;
|
||||
/**
|
||||
* The header title text of the carrier letter.
|
||||
*/
|
||||
header_title?: Emptyable<string>;
|
||||
}
|
||||
interface Preferences {
|
||||
/**
|
||||
* Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design.
|
||||
*/
|
||||
is_default: boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface PersonalizationDesignRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface PersonalizationDesignUpdateParams {
|
||||
/**
|
||||
* The file for the card logo, for use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`.
|
||||
*/
|
||||
card_logo?: Emptyable<string>;
|
||||
/**
|
||||
* Hash containing carrier text, for use with physical bundles that support carrier text.
|
||||
*/
|
||||
carrier_text?: Emptyable<PersonalizationDesignUpdateParams.CarrierText>;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.
|
||||
*/
|
||||
lookup_key?: Emptyable<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;
|
||||
/**
|
||||
* Friendly display name. Providing an empty string will set the field to null.
|
||||
*/
|
||||
name?: Emptyable<string>;
|
||||
/**
|
||||
* The physical bundle object belonging to this personalization design.
|
||||
*/
|
||||
physical_bundle?: string;
|
||||
/**
|
||||
* Information on whether this personalization design is used to create cards when one is not specified.
|
||||
*/
|
||||
preferences?: PersonalizationDesignUpdateParams.Preferences;
|
||||
/**
|
||||
* If set to true, will atomically remove the lookup key from the existing personalization design, and assign it to this personalization design.
|
||||
*/
|
||||
transfer_lookup_key?: boolean;
|
||||
}
|
||||
namespace PersonalizationDesignUpdateParams {
|
||||
interface CarrierText {
|
||||
/**
|
||||
* The footer body text of the carrier letter.
|
||||
*/
|
||||
footer_body?: Emptyable<string>;
|
||||
/**
|
||||
* The footer title text of the carrier letter.
|
||||
*/
|
||||
footer_title?: Emptyable<string>;
|
||||
/**
|
||||
* The header body text of the carrier letter.
|
||||
*/
|
||||
header_body?: Emptyable<string>;
|
||||
/**
|
||||
* The header title text of the carrier letter.
|
||||
*/
|
||||
header_title?: Emptyable<string>;
|
||||
}
|
||||
interface Preferences {
|
||||
/**
|
||||
* Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design.
|
||||
*/
|
||||
is_default: boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface PersonalizationDesignListParams extends PaginationParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Only return personalization designs with the given lookup keys.
|
||||
*/
|
||||
lookup_keys?: Array<string>;
|
||||
/**
|
||||
* Only return personalization designs with the given preferences.
|
||||
*/
|
||||
preferences?: PersonalizationDesignListParams.Preferences;
|
||||
/**
|
||||
* Only return personalization designs with the given status.
|
||||
*/
|
||||
status?: PersonalizationDesignListParams.Status;
|
||||
}
|
||||
namespace PersonalizationDesignListParams {
|
||||
interface Preferences {
|
||||
/**
|
||||
* Only return the personalization design that's set as the default. A connected account uses the Connect platform's default design if no personalization design is set as the default.
|
||||
*/
|
||||
is_default?: boolean;
|
||||
/**
|
||||
* Only return the personalization design that is set as the Connect platform's default. This parameter is only applicable to connected accounts.
|
||||
*/
|
||||
is_platform_default?: boolean;
|
||||
}
|
||||
type Status = 'active' | 'inactive' | 'rejected' | 'review';
|
||||
}
|
||||
}
|
||||
31
node_modules/stripe/esm/resources/Issuing/PersonalizationDesigns.js
generated
vendored
Normal file
31
node_modules/stripe/esm/resources/Issuing/PersonalizationDesigns.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class PersonalizationDesignResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of personalization design 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/issuing/personalization_designs', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a personalization design object.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/issuing/personalization_designs', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves a personalization design object.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/issuing/personalization_designs/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates a card personalization object.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/issuing/personalization_designs/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=PersonalizationDesigns.js.map
|
||||
1
node_modules/stripe/esm/resources/Issuing/PersonalizationDesigns.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Issuing/PersonalizationDesigns.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"PersonalizationDesigns.js","sourceRoot":"","sources":["../../../src/resources/Issuing/PersonalizationDesigns.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAWvD,MAAM,OAAO,6BAA8B,SAAQ,cAAc;IAC/D;;OAEG;IACH,IAAI,CACF,MAAgD,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,qCAAqC,EACrC,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAiD,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,qCAAqC,EACrC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAoD,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,uCAAuC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC/D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAkD,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,uCAAuC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC/D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
93
node_modules/stripe/esm/resources/Issuing/PhysicalBundles.d.ts
generated
vendored
Normal file
93
node_modules/stripe/esm/resources/Issuing/PhysicalBundles.d.ts
generated
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { PaginationParams } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class PhysicalBundleResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
||||
*/
|
||||
list(params?: Issuing.PhysicalBundleListParams, options?: RequestOptions): ApiListPromise<PhysicalBundle>;
|
||||
/**
|
||||
* Retrieves a physical bundle object.
|
||||
*/
|
||||
retrieve(id: string, params?: Issuing.PhysicalBundleRetrieveParams, options?: RequestOptions): Promise<Response<PhysicalBundle>>;
|
||||
}
|
||||
export interface PhysicalBundle {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'issuing.physical_bundle';
|
||||
features: Issuing.PhysicalBundle.Features;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* Friendly display name.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Whether this physical bundle can be used to create cards.
|
||||
*/
|
||||
status: Issuing.PhysicalBundle.Status;
|
||||
/**
|
||||
* Whether this physical bundle is a standard Stripe offering or custom-made for you.
|
||||
*/
|
||||
type: Issuing.PhysicalBundle.Type;
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
namespace PhysicalBundle {
|
||||
interface Features {
|
||||
/**
|
||||
* The policy for how to use card logo images in a card design with this physical bundle.
|
||||
*/
|
||||
card_logo: Features.CardLogo;
|
||||
/**
|
||||
* The policy for how to use carrier letter text in a card design with this physical bundle.
|
||||
*/
|
||||
carrier_text: Features.CarrierText;
|
||||
/**
|
||||
* The policy for how to use a second line on a card with this physical bundle.
|
||||
*/
|
||||
second_line: Features.SecondLine;
|
||||
}
|
||||
type Status = 'active' | 'inactive' | 'review';
|
||||
type Type = 'custom' | 'standard';
|
||||
namespace Features {
|
||||
type CardLogo = 'optional' | 'required' | 'unsupported';
|
||||
type CarrierText = 'optional' | 'required' | 'unsupported';
|
||||
type SecondLine = 'optional' | 'required' | 'unsupported';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface PhysicalBundleRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface PhysicalBundleListParams extends PaginationParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Only return physical bundles with the given status.
|
||||
*/
|
||||
status?: PhysicalBundleListParams.Status;
|
||||
/**
|
||||
* Only return physical bundles with the given type.
|
||||
*/
|
||||
type?: PhysicalBundleListParams.Type;
|
||||
}
|
||||
namespace PhysicalBundleListParams {
|
||||
type Status = 'active' | 'inactive' | 'review';
|
||||
type Type = 'custom' | 'standard';
|
||||
}
|
||||
}
|
||||
19
node_modules/stripe/esm/resources/Issuing/PhysicalBundles.js
generated
vendored
Normal file
19
node_modules/stripe/esm/resources/Issuing/PhysicalBundles.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class PhysicalBundleResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of physical bundle 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/issuing/physical_bundles', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Retrieves a physical bundle object.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/issuing/physical_bundles/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=PhysicalBundles.js.map
|
||||
1
node_modules/stripe/esm/resources/Issuing/PhysicalBundles.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Issuing/PhysicalBundles.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"PhysicalBundles.js","sourceRoot":"","sources":["../../../src/resources/Issuing/PhysicalBundles.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAIvD,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IACxD;;OAEG;IACH,IAAI,CACF,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,8BAA8B,EAC9B,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,gCAAgC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACxD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
250
node_modules/stripe/esm/resources/Issuing/Tokens.d.ts
generated
vendored
Normal file
250
node_modules/stripe/esm/resources/Issuing/Tokens.d.ts
generated
vendored
Normal file
@@ -0,0 +1,250 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { Card } from './Cards.js';
|
||||
import { PaginationParams, RangeQueryParam } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class TokenResource extends StripeResource {
|
||||
/**
|
||||
* Lists all Issuing Token objects for a given card.
|
||||
*/
|
||||
list(params: Issuing.TokenListParams, options?: RequestOptions): ApiListPromise<Token>;
|
||||
/**
|
||||
* Retrieves an Issuing Token object.
|
||||
*/
|
||||
retrieve(id: string, params?: Issuing.TokenRetrieveParams, options?: RequestOptions): Promise<Response<Token>>;
|
||||
/**
|
||||
* Attempts to update the specified Issuing Token object to the status specified.
|
||||
*/
|
||||
update(id: string, params: Issuing.TokenUpdateParams, options?: RequestOptions): Promise<Response<Token>>;
|
||||
}
|
||||
export interface Token {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'issuing.token';
|
||||
/**
|
||||
* Card associated with this token.
|
||||
*/
|
||||
card: string | Card;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* The hashed ID derived from the device ID from the card network associated with the token.
|
||||
*/
|
||||
device_fingerprint: string | null;
|
||||
/**
|
||||
* The last four digits of the token.
|
||||
*/
|
||||
last4?: 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;
|
||||
/**
|
||||
* The token service provider / card network associated with the token.
|
||||
*/
|
||||
network: Issuing.Token.Network;
|
||||
network_data?: Issuing.Token.NetworkData;
|
||||
/**
|
||||
* Time at which the token was last updated by the card network. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
network_updated_at: number;
|
||||
/**
|
||||
* The usage state of the token.
|
||||
*/
|
||||
status: Issuing.Token.Status;
|
||||
/**
|
||||
* The digital wallet for this token, if one was used.
|
||||
*/
|
||||
wallet_provider?: Issuing.Token.WalletProvider;
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
namespace Token {
|
||||
type Network = 'mastercard' | 'visa';
|
||||
interface NetworkData {
|
||||
device?: NetworkData.Device;
|
||||
mastercard?: NetworkData.Mastercard;
|
||||
/**
|
||||
* The network that the token is associated with. An additional hash is included with a name matching this value, containing tokenization data specific to the card network.
|
||||
*/
|
||||
type: NetworkData.Type;
|
||||
visa?: NetworkData.Visa;
|
||||
wallet_provider?: NetworkData.WalletProvider;
|
||||
}
|
||||
type Status = 'active' | 'deleted' | 'requested' | 'suspended';
|
||||
type WalletProvider = 'apple_pay' | 'google_pay' | 'samsung_pay';
|
||||
namespace NetworkData {
|
||||
interface Device {
|
||||
/**
|
||||
* An obfuscated ID derived from the device ID.
|
||||
*/
|
||||
device_fingerprint?: string;
|
||||
/**
|
||||
* The IP address of the device at provisioning time.
|
||||
*/
|
||||
ip_address?: string;
|
||||
/**
|
||||
* The geographic latitude/longitude coordinates of the device at provisioning time. The format is [+-]decimal/[+-]decimal.
|
||||
*/
|
||||
location?: string;
|
||||
/**
|
||||
* The name of the device used for tokenization.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* The phone number of the device used for tokenization.
|
||||
*/
|
||||
phone_number?: string;
|
||||
/**
|
||||
* The type of device used for tokenization.
|
||||
*/
|
||||
type?: Device.Type;
|
||||
}
|
||||
interface Mastercard {
|
||||
/**
|
||||
* A unique reference ID from MasterCard to represent the card account number.
|
||||
*/
|
||||
card_reference_id?: string;
|
||||
/**
|
||||
* The network-unique identifier for the token.
|
||||
*/
|
||||
token_reference_id: string;
|
||||
/**
|
||||
* The ID of the entity requesting tokenization, specific to MasterCard.
|
||||
*/
|
||||
token_requestor_id: string;
|
||||
/**
|
||||
* The name of the entity requesting tokenization, if known. This is directly provided from MasterCard.
|
||||
*/
|
||||
token_requestor_name?: string;
|
||||
}
|
||||
type Type = 'mastercard' | 'visa';
|
||||
interface Visa {
|
||||
/**
|
||||
* A unique reference ID from Visa to represent the card account number.
|
||||
*/
|
||||
card_reference_id: string | null;
|
||||
/**
|
||||
* The network-unique identifier for the token.
|
||||
*/
|
||||
token_reference_id: string;
|
||||
/**
|
||||
* The ID of the entity requesting tokenization, specific to Visa.
|
||||
*/
|
||||
token_requestor_id: string;
|
||||
/**
|
||||
* Degree of risk associated with the token between `01` and `99`, with higher number indicating higher risk. A `00` value indicates the token was not scored by Visa.
|
||||
*/
|
||||
token_risk_score?: string;
|
||||
}
|
||||
interface WalletProvider {
|
||||
/**
|
||||
* The wallet provider-given account ID of the digital wallet the token belongs to.
|
||||
*/
|
||||
account_id?: string;
|
||||
/**
|
||||
* An evaluation on the trustworthiness of the wallet account between 1 and 5. A higher score indicates more trustworthy.
|
||||
*/
|
||||
account_trust_score?: number;
|
||||
/**
|
||||
* The method used for tokenizing a card.
|
||||
*/
|
||||
card_number_source?: WalletProvider.CardNumberSource;
|
||||
cardholder_address?: WalletProvider.CardholderAddress;
|
||||
/**
|
||||
* The name of the cardholder tokenizing the card.
|
||||
*/
|
||||
cardholder_name?: string;
|
||||
/**
|
||||
* An evaluation on the trustworthiness of the device. A higher score indicates more trustworthy.
|
||||
*/
|
||||
device_trust_score?: number;
|
||||
/**
|
||||
* The hashed email address of the cardholder's account with the wallet provider.
|
||||
*/
|
||||
hashed_account_email_address?: string;
|
||||
/**
|
||||
* The reasons for suggested tokenization given by the card network.
|
||||
*/
|
||||
reason_codes?: Array<WalletProvider.ReasonCode>;
|
||||
/**
|
||||
* The recommendation on responding to the tokenization request.
|
||||
*/
|
||||
suggested_decision?: WalletProvider.SuggestedDecision;
|
||||
/**
|
||||
* The version of the standard for mapping reason codes followed by the wallet provider.
|
||||
*/
|
||||
suggested_decision_version?: string;
|
||||
}
|
||||
namespace Device {
|
||||
type Type = 'other' | 'phone' | 'watch';
|
||||
}
|
||||
namespace WalletProvider {
|
||||
type CardNumberSource = 'app' | 'manual' | 'on_file' | 'other';
|
||||
interface CardholderAddress {
|
||||
/**
|
||||
* The street address of the cardholder tokenizing the card.
|
||||
*/
|
||||
line1: string;
|
||||
/**
|
||||
* The postal code of the cardholder tokenizing the card.
|
||||
*/
|
||||
postal_code: string;
|
||||
}
|
||||
type ReasonCode = 'account_card_too_new' | 'account_recently_changed' | 'account_too_new' | 'account_too_new_since_launch' | 'additional_device' | 'data_expired' | 'defer_id_v_decision' | 'device_recently_lost' | 'good_activity_history' | 'has_suspended_tokens' | 'high_risk' | 'inactive_account' | 'long_account_tenure' | 'low_account_score' | 'low_device_score' | 'low_phone_number_score' | 'network_service_error' | 'outside_home_territory' | 'provisioning_cardholder_mismatch' | 'provisioning_device_and_cardholder_mismatch' | 'provisioning_device_mismatch' | 'same_device_no_prior_authentication' | 'same_device_successful_prior_authentication' | 'software_update' | 'suspicious_activity' | 'too_many_different_cardholders' | 'too_many_recent_attempts' | 'too_many_recent_tokens';
|
||||
type SuggestedDecision = 'approve' | 'decline' | 'require_auth';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface TokenRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface TokenUpdateParams {
|
||||
/**
|
||||
* Specifies which status the token should be updated to.
|
||||
*/
|
||||
status: TokenUpdateParams.Status;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
namespace TokenUpdateParams {
|
||||
type Status = 'active' | 'deleted' | 'suspended';
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface TokenListParams extends PaginationParams {
|
||||
/**
|
||||
* The Issuing card identifier to list tokens for.
|
||||
*/
|
||||
card: string;
|
||||
/**
|
||||
* Only return Issuing tokens that were created during the given date interval.
|
||||
*/
|
||||
created?: RangeQueryParam | number;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Select Issuing tokens with the given status.
|
||||
*/
|
||||
status?: TokenListParams.Status;
|
||||
}
|
||||
namespace TokenListParams {
|
||||
type Status = 'active' | 'deleted' | 'requested' | 'suspended';
|
||||
}
|
||||
}
|
||||
25
node_modules/stripe/esm/resources/Issuing/Tokens.js
generated
vendored
Normal file
25
node_modules/stripe/esm/resources/Issuing/Tokens.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class TokenResource extends StripeResource {
|
||||
/**
|
||||
* Lists all Issuing Token objects for a given card.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/issuing/tokens', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Retrieves an Issuing Token object.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/issuing/tokens/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Attempts to update the specified Issuing Token object to the status specified.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/issuing/tokens/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Tokens.js.map
|
||||
1
node_modules/stripe/esm/resources/Issuing/Tokens.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Issuing/Tokens.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Tokens.js","sourceRoot":"","sources":["../../../src/resources/Issuing/Tokens.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAKvD,MAAM,OAAO,aAAc,SAAQ,cAAc;IAC/C;;OAEG;IACH,IAAI,CACF,MAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE;YACrE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
451
node_modules/stripe/esm/resources/Issuing/Transactions.d.ts
generated
vendored
Normal file
451
node_modules/stripe/esm/resources/Issuing/Transactions.d.ts
generated
vendored
Normal file
@@ -0,0 +1,451 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { Authorization } from './Authorizations.js';
|
||||
import { BalanceTransaction } from './../BalanceTransactions.js';
|
||||
import { Card } from './Cards.js';
|
||||
import { Cardholder } from './Cardholders.js';
|
||||
import { Dispute } from './Disputes.js';
|
||||
import { Token } from './Tokens.js';
|
||||
import { Emptyable, MetadataParam, PaginationParams, RangeQueryParam, Metadata, Decimal } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class TransactionResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of Issuing Transaction objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
||||
*/
|
||||
list(params?: Issuing.TransactionListParams, options?: RequestOptions): ApiListPromise<Transaction>;
|
||||
/**
|
||||
* Retrieves an Issuing Transaction object.
|
||||
*/
|
||||
retrieve(id: string, params?: Issuing.TransactionRetrieveParams, options?: RequestOptions): Promise<Response<Transaction>>;
|
||||
/**
|
||||
* Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
||||
*/
|
||||
update(id: string, params?: Issuing.TransactionUpdateParams, options?: RequestOptions): Promise<Response<Transaction>>;
|
||||
}
|
||||
export interface Transaction {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'issuing.transaction';
|
||||
/**
|
||||
* The transaction amount, which will be reflected in your balance. This amount is in your currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
||||
*/
|
||||
amount_details: Issuing.Transaction.AmountDetails | null;
|
||||
/**
|
||||
* The `Authorization` object that led to this transaction.
|
||||
*/
|
||||
authorization: string | Authorization | null;
|
||||
/**
|
||||
* ID of the [balance transaction](https://docs.stripe.com/api/balance_transactions) associated with this transaction.
|
||||
*/
|
||||
balance_transaction: string | BalanceTransaction | null;
|
||||
/**
|
||||
* The card used to make this transaction.
|
||||
*/
|
||||
card: string | Card;
|
||||
/**
|
||||
* The cardholder to whom this transaction belongs.
|
||||
*/
|
||||
cardholder: string | Cardholder | null;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: 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;
|
||||
/**
|
||||
* If you've disputed the transaction, the ID of the dispute.
|
||||
*/
|
||||
dispute: string | Dispute | null;
|
||||
/**
|
||||
* 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 amount that the merchant will receive, denominated in `merchant_currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). It will be different from `amount` if the merchant is taking payment in a different currency.
|
||||
*/
|
||||
merchant_amount: number;
|
||||
/**
|
||||
* The currency with which the merchant is taking payment.
|
||||
*/
|
||||
merchant_currency: string;
|
||||
merchant_data: Issuing.Transaction.MerchantData;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* Details about the transaction, such as processing dates, set by the card network.
|
||||
*/
|
||||
network_data: Issuing.Transaction.NetworkData | null;
|
||||
/**
|
||||
* Additional purchase information that is optionally provided by the merchant.
|
||||
*/
|
||||
purchase_details?: Issuing.Transaction.PurchaseDetails | null;
|
||||
/**
|
||||
* [Token](https://docs.stripe.com/api/issuing/tokens/object) object used for this transaction. If a network token was not used for this transaction, this field will be null.
|
||||
*/
|
||||
token?: string | Token | null;
|
||||
/**
|
||||
* [Treasury](https://docs.stripe.com/api/treasury) details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts
|
||||
*/
|
||||
treasury?: Issuing.Transaction.Treasury | null;
|
||||
/**
|
||||
* The nature of the transaction.
|
||||
*/
|
||||
type: Issuing.Transaction.Type;
|
||||
/**
|
||||
* The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`.
|
||||
*/
|
||||
wallet: Issuing.Transaction.Wallet | null;
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
namespace Transaction {
|
||||
interface AmountDetails {
|
||||
/**
|
||||
* The fee charged by the ATM for the cash withdrawal.
|
||||
*/
|
||||
atm_fee: number | null;
|
||||
/**
|
||||
* The amount of cash requested by the cardholder.
|
||||
*/
|
||||
cashback_amount: number | null;
|
||||
}
|
||||
interface MerchantData {
|
||||
/**
|
||||
* A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
|
||||
*/
|
||||
category: string;
|
||||
/**
|
||||
* The merchant category code for the seller's business
|
||||
*/
|
||||
category_code: string;
|
||||
/**
|
||||
* City where the seller is located
|
||||
*/
|
||||
city: string | null;
|
||||
/**
|
||||
* Country where the seller is located
|
||||
*/
|
||||
country: string | null;
|
||||
/**
|
||||
* Name of the seller
|
||||
*/
|
||||
name: string | null;
|
||||
/**
|
||||
* Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant.
|
||||
*/
|
||||
network_id: string;
|
||||
/**
|
||||
* Postal code where the seller is located
|
||||
*/
|
||||
postal_code: string | null;
|
||||
/**
|
||||
* State where the seller is located
|
||||
*/
|
||||
state: string | null;
|
||||
/**
|
||||
* The seller's tax identification number. Currently populated for French merchants only.
|
||||
*/
|
||||
tax_id: string | null;
|
||||
/**
|
||||
* An ID assigned by the seller to the location of the sale.
|
||||
*/
|
||||
terminal_id: string | null;
|
||||
/**
|
||||
* URL provided by the merchant on a 3DS request
|
||||
*/
|
||||
url: string | null;
|
||||
}
|
||||
interface NetworkData {
|
||||
/**
|
||||
* A code created by Stripe which is shared with the merchant to validate the authorization. This field will be populated if the authorization message was approved. The code typically starts with the letter "S", followed by a six-digit number. For example, "S498162". Please note that the code is not guaranteed to be unique across authorizations.
|
||||
*/
|
||||
authorization_code: string | null;
|
||||
/**
|
||||
* The date the transaction was processed by the card network. This can be different from the date the seller recorded the transaction depending on when the acquirer submits the transaction to the network.
|
||||
*/
|
||||
processing_date: string | null;
|
||||
/**
|
||||
* Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions.
|
||||
*/
|
||||
transaction_id: string | null;
|
||||
}
|
||||
interface PurchaseDetails {
|
||||
/**
|
||||
* Fleet-specific information for transactions using Fleet cards.
|
||||
*/
|
||||
fleet: PurchaseDetails.Fleet | null;
|
||||
/**
|
||||
* Information about the flight that was purchased with this transaction.
|
||||
*/
|
||||
flight: PurchaseDetails.Flight | null;
|
||||
/**
|
||||
* Information about fuel that was purchased with this transaction.
|
||||
*/
|
||||
fuel: PurchaseDetails.Fuel | null;
|
||||
/**
|
||||
* Information about lodging that was purchased with this transaction.
|
||||
*/
|
||||
lodging: PurchaseDetails.Lodging | null;
|
||||
/**
|
||||
* The line items in the purchase.
|
||||
*/
|
||||
receipt: Array<PurchaseDetails.Receipt> | null;
|
||||
/**
|
||||
* A merchant-specific order number.
|
||||
*/
|
||||
reference: string | null;
|
||||
}
|
||||
interface Treasury {
|
||||
/**
|
||||
* The Treasury [ReceivedCredit](https://docs.stripe.com/api/treasury/received_credits) representing this Issuing transaction if it is a refund
|
||||
*/
|
||||
received_credit: string | null;
|
||||
/**
|
||||
* The Treasury [ReceivedDebit](https://docs.stripe.com/api/treasury/received_debits) representing this Issuing transaction if it is a capture
|
||||
*/
|
||||
received_debit: string | null;
|
||||
}
|
||||
type Type = 'capture' | 'refund';
|
||||
type Wallet = 'apple_pay' | 'google_pay' | 'samsung_pay';
|
||||
namespace PurchaseDetails {
|
||||
interface Fleet {
|
||||
/**
|
||||
* Answers to prompts presented to cardholder at point of sale.
|
||||
*/
|
||||
cardholder_prompt_data: Fleet.CardholderPromptData | null;
|
||||
/**
|
||||
* The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
||||
*/
|
||||
purchase_type: string | null;
|
||||
/**
|
||||
* More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
||||
*/
|
||||
reported_breakdown: Fleet.ReportedBreakdown | null;
|
||||
/**
|
||||
* The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
||||
*/
|
||||
service_type: string | null;
|
||||
}
|
||||
interface Flight {
|
||||
/**
|
||||
* The time that the flight departed.
|
||||
*/
|
||||
departure_at: number | null;
|
||||
/**
|
||||
* The name of the passenger.
|
||||
*/
|
||||
passenger_name: string | null;
|
||||
/**
|
||||
* Whether the ticket is refundable.
|
||||
*/
|
||||
refundable: boolean | null;
|
||||
/**
|
||||
* The legs of the trip.
|
||||
*/
|
||||
segments: Array<Flight.Segment> | null;
|
||||
/**
|
||||
* The travel agency that issued the ticket.
|
||||
*/
|
||||
travel_agency: string | null;
|
||||
}
|
||||
interface Fuel {
|
||||
/**
|
||||
* [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
||||
*/
|
||||
industry_product_code: string | null;
|
||||
/**
|
||||
* The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
||||
*/
|
||||
quantity_decimal: Decimal | null;
|
||||
/**
|
||||
* The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
* The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
||||
*/
|
||||
unit: string;
|
||||
/**
|
||||
* The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
||||
*/
|
||||
unit_cost_decimal: Decimal;
|
||||
}
|
||||
interface Lodging {
|
||||
/**
|
||||
* The time of checking into the lodging.
|
||||
*/
|
||||
check_in_at: number | null;
|
||||
/**
|
||||
* The number of nights stayed at the lodging.
|
||||
*/
|
||||
nights: number | null;
|
||||
}
|
||||
interface Receipt {
|
||||
/**
|
||||
* The description of the item. The maximum length of this field is 26 characters.
|
||||
*/
|
||||
description: string | null;
|
||||
/**
|
||||
* The quantity of the item.
|
||||
*/
|
||||
quantity: number | null;
|
||||
/**
|
||||
* The total for this line item in cents.
|
||||
*/
|
||||
total: number | null;
|
||||
/**
|
||||
* The unit cost of the item in cents.
|
||||
*/
|
||||
unit_cost: number | null;
|
||||
}
|
||||
namespace Fleet {
|
||||
interface CardholderPromptData {
|
||||
/**
|
||||
* Driver ID.
|
||||
*/
|
||||
driver_id: string | null;
|
||||
/**
|
||||
* Odometer reading.
|
||||
*/
|
||||
odometer: number | null;
|
||||
/**
|
||||
* An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
|
||||
*/
|
||||
unspecified_id: string | null;
|
||||
/**
|
||||
* User ID.
|
||||
*/
|
||||
user_id: string | null;
|
||||
/**
|
||||
* Vehicle number.
|
||||
*/
|
||||
vehicle_number: string | null;
|
||||
}
|
||||
interface ReportedBreakdown {
|
||||
/**
|
||||
* Breakdown of fuel portion of the purchase.
|
||||
*/
|
||||
fuel: ReportedBreakdown.Fuel | null;
|
||||
/**
|
||||
* Breakdown of non-fuel portion of the purchase.
|
||||
*/
|
||||
non_fuel: ReportedBreakdown.NonFuel | null;
|
||||
/**
|
||||
* Information about tax included in this transaction.
|
||||
*/
|
||||
tax: ReportedBreakdown.Tax | null;
|
||||
}
|
||||
namespace ReportedBreakdown {
|
||||
interface Fuel {
|
||||
/**
|
||||
* Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
||||
*/
|
||||
gross_amount_decimal: Decimal | null;
|
||||
}
|
||||
interface NonFuel {
|
||||
/**
|
||||
* Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
||||
*/
|
||||
gross_amount_decimal: Decimal | null;
|
||||
}
|
||||
interface Tax {
|
||||
/**
|
||||
* Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
||||
*/
|
||||
local_amount_decimal: Decimal | null;
|
||||
/**
|
||||
* Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
||||
*/
|
||||
national_amount_decimal: Decimal | null;
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace Flight {
|
||||
interface Segment {
|
||||
/**
|
||||
* The three-letter IATA airport code of the flight's destination.
|
||||
*/
|
||||
arrival_airport_code: string | null;
|
||||
/**
|
||||
* The airline carrier code.
|
||||
*/
|
||||
carrier: string | null;
|
||||
/**
|
||||
* The three-letter IATA airport code that the flight departed from.
|
||||
*/
|
||||
departure_airport_code: string | null;
|
||||
/**
|
||||
* The flight number.
|
||||
*/
|
||||
flight_number: string | null;
|
||||
/**
|
||||
* The flight's service class.
|
||||
*/
|
||||
service_class: string | null;
|
||||
/**
|
||||
* Whether a stopover is allowed on this flight.
|
||||
*/
|
||||
stopover_allowed: boolean | null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface TransactionRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface TransactionUpdateParams {
|
||||
/**
|
||||
* 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?: Emptyable<MetadataParam>;
|
||||
}
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
interface TransactionListParams extends PaginationParams {
|
||||
/**
|
||||
* Only return transactions that belong to the given card.
|
||||
*/
|
||||
card?: string;
|
||||
/**
|
||||
* Only return transactions that belong to the given cardholder.
|
||||
*/
|
||||
cardholder?: string;
|
||||
/**
|
||||
* Only return transactions 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 transactions that have the given type. One of `capture` or `refund`.
|
||||
*/
|
||||
type?: TransactionListParams.Type;
|
||||
}
|
||||
namespace TransactionListParams {
|
||||
type Type = 'capture' | 'refund';
|
||||
}
|
||||
}
|
||||
281
node_modules/stripe/esm/resources/Issuing/Transactions.js
generated
vendored
Normal file
281
node_modules/stripe/esm/resources/Issuing/Transactions.js
generated
vendored
Normal file
@@ -0,0 +1,281 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class TransactionResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of Issuing Transaction 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/issuing/transactions', params, options, {
|
||||
methodType: 'list',
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
data: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
purchase_details: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Retrieves an Issuing Transaction object.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/issuing/transactions/${encodeURIComponent(id)}`, params, options, {
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
purchase_details: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/issuing/transactions/${encodeURIComponent(id)}`, params, options, {
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
purchase_details: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fleet: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
reported_breakdown: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
non_fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
gross_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tax: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
local_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
national_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
fuel: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
quantity_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_cost_decimal: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Transactions.js.map
|
||||
1
node_modules/stripe/esm/resources/Issuing/Transactions.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Issuing/Transactions.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Transactions.js","sourceRoot":"","sources":["../../../src/resources/Issuing/Transactions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAiBvD,MAAM,OAAO,mBAAoB,SAAQ,cAAc;IACrD;;OAEG;IACH,IAAI,CACF,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,0BAA0B,EAC1B,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;YAClB,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN,IAAI,EAAE;wBACJ,IAAI,EAAE,OAAO;wBACb,OAAO,EAAE;4BACP,IAAI,EAAE,QAAQ;4BACd,MAAM,EAAE;gCACN,gBAAgB,EAAE;oCAChB,IAAI,EAAE,UAAU;oCAChB,KAAK,EAAE;wCACL,IAAI,EAAE,QAAQ;wCACd,MAAM,EAAE;4CACN,KAAK,EAAE;gDACL,IAAI,EAAE,UAAU;gDAChB,KAAK,EAAE;oDACL,IAAI,EAAE,QAAQ;oDACd,MAAM,EAAE;wDACN,kBAAkB,EAAE;4DAClB,IAAI,EAAE,UAAU;4DAChB,KAAK,EAAE;gEACL,IAAI,EAAE,QAAQ;gEACd,MAAM,EAAE;oEACN,IAAI,EAAE;wEACJ,IAAI,EAAE,UAAU;wEAChB,KAAK,EAAE;4EACL,IAAI,EAAE,QAAQ;4EACd,MAAM,EAAE;gFACN,oBAAoB,EAAE;oFACpB,IAAI,EAAE,UAAU;oFAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;iFAChC;6EACF;yEACF;qEACF;oEACD,QAAQ,EAAE;wEACR,IAAI,EAAE,UAAU;wEAChB,KAAK,EAAE;4EACL,IAAI,EAAE,QAAQ;4EACd,MAAM,EAAE;gFACN,oBAAoB,EAAE;oFACpB,IAAI,EAAE,UAAU;oFAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;iFAChC;6EACF;yEACF;qEACF;oEACD,GAAG,EAAE;wEACH,IAAI,EAAE,UAAU;wEAChB,KAAK,EAAE;4EACL,IAAI,EAAE,QAAQ;4EACd,MAAM,EAAE;gFACN,oBAAoB,EAAE;oFACpB,IAAI,EAAE,UAAU;oFAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;iFAChC;gFACD,uBAAuB,EAAE;oFACvB,IAAI,EAAE,UAAU;oFAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;iFAChC;6EACF;yEACF;qEACF;iEACF;6DACF;yDACF;qDACF;iDACF;6CACF;4CACD,IAAI,EAAE;gDACJ,IAAI,EAAE,UAAU;gDAChB,KAAK,EAAE;oDACL,IAAI,EAAE,QAAQ;oDACd,MAAM,EAAE;wDACN,gBAAgB,EAAE;4DAChB,IAAI,EAAE,UAAU;4DAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;yDAChC;wDACD,iBAAiB,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;qDAC5C;iDACF;6CACF;yCACF;qCACF;iCACF;6BACF;yBACF;qBACF;iBACF;aACF;SACF,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,4BAA4B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACpD,MAAM,EACN,OAAO,EACP;YACE,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN,gBAAgB,EAAE;wBAChB,IAAI,EAAE,UAAU;wBAChB,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,MAAM,EAAE;gCACN,KAAK,EAAE;oCACL,IAAI,EAAE,UAAU;oCAChB,KAAK,EAAE;wCACL,IAAI,EAAE,QAAQ;wCACd,MAAM,EAAE;4CACN,kBAAkB,EAAE;gDAClB,IAAI,EAAE,UAAU;gDAChB,KAAK,EAAE;oDACL,IAAI,EAAE,QAAQ;oDACd,MAAM,EAAE;wDACN,IAAI,EAAE;4DACJ,IAAI,EAAE,UAAU;4DAChB,KAAK,EAAE;gEACL,IAAI,EAAE,QAAQ;gEACd,MAAM,EAAE;oEACN,oBAAoB,EAAE;wEACpB,IAAI,EAAE,UAAU;wEAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;qEAChC;iEACF;6DACF;yDACF;wDACD,QAAQ,EAAE;4DACR,IAAI,EAAE,UAAU;4DAChB,KAAK,EAAE;gEACL,IAAI,EAAE,QAAQ;gEACd,MAAM,EAAE;oEACN,oBAAoB,EAAE;wEACpB,IAAI,EAAE,UAAU;wEAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;qEAChC;iEACF;6DACF;yDACF;wDACD,GAAG,EAAE;4DACH,IAAI,EAAE,UAAU;4DAChB,KAAK,EAAE;gEACL,IAAI,EAAE,QAAQ;gEACd,MAAM,EAAE;oEACN,oBAAoB,EAAE;wEACpB,IAAI,EAAE,UAAU;wEAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;qEAChC;oEACD,uBAAuB,EAAE;wEACvB,IAAI,EAAE,UAAU;wEAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;qEAChC;iEACF;6DACF;yDACF;qDACF;iDACF;6CACF;yCACF;qCACF;iCACF;gCACD,IAAI,EAAE;oCACJ,IAAI,EAAE,UAAU;oCAChB,KAAK,EAAE;wCACL,IAAI,EAAE,QAAQ;wCACd,MAAM,EAAE;4CACN,gBAAgB,EAAE;gDAChB,IAAI,EAAE,UAAU;gDAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;6CAChC;4CACD,iBAAiB,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;yCAC5C;qCACF;iCACF;6BACF;yBACF;qBACF;iBACF;aACF;SACF,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,4BAA4B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACpD,MAAM,EACN,OAAO,EACP;YACE,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN,gBAAgB,EAAE;wBAChB,IAAI,EAAE,UAAU;wBAChB,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,MAAM,EAAE;gCACN,KAAK,EAAE;oCACL,IAAI,EAAE,UAAU;oCAChB,KAAK,EAAE;wCACL,IAAI,EAAE,QAAQ;wCACd,MAAM,EAAE;4CACN,kBAAkB,EAAE;gDAClB,IAAI,EAAE,UAAU;gDAChB,KAAK,EAAE;oDACL,IAAI,EAAE,QAAQ;oDACd,MAAM,EAAE;wDACN,IAAI,EAAE;4DACJ,IAAI,EAAE,UAAU;4DAChB,KAAK,EAAE;gEACL,IAAI,EAAE,QAAQ;gEACd,MAAM,EAAE;oEACN,oBAAoB,EAAE;wEACpB,IAAI,EAAE,UAAU;wEAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;qEAChC;iEACF;6DACF;yDACF;wDACD,QAAQ,EAAE;4DACR,IAAI,EAAE,UAAU;4DAChB,KAAK,EAAE;gEACL,IAAI,EAAE,QAAQ;gEACd,MAAM,EAAE;oEACN,oBAAoB,EAAE;wEACpB,IAAI,EAAE,UAAU;wEAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;qEAChC;iEACF;6DACF;yDACF;wDACD,GAAG,EAAE;4DACH,IAAI,EAAE,UAAU;4DAChB,KAAK,EAAE;gEACL,IAAI,EAAE,QAAQ;gEACd,MAAM,EAAE;oEACN,oBAAoB,EAAE;wEACpB,IAAI,EAAE,UAAU;wEAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;qEAChC;oEACD,uBAAuB,EAAE;wEACvB,IAAI,EAAE,UAAU;wEAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;qEAChC;iEACF;6DACF;yDACF;qDACF;iDACF;6CACF;yCACF;qCACF;iCACF;gCACD,IAAI,EAAE;oCACJ,IAAI,EAAE,UAAU;oCAChB,KAAK,EAAE;wCACL,IAAI,EAAE,QAAQ;wCACd,MAAM,EAAE;4CACN,gBAAgB,EAAE;gDAChB,IAAI,EAAE,UAAU;gDAChB,KAAK,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;6CAChC;4CACD,iBAAiB,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;yCAC5C;qCACF;iCACF;6BACF;yBACF;qBACF;iBACF;aACF;SACF,CACK,CAAC;IACX,CAAC;CACF"}
|
||||
69
node_modules/stripe/esm/resources/Issuing/index.d.ts
generated
vendored
Normal file
69
node_modules/stripe/esm/resources/Issuing/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
import { Stripe } from '../../stripe.core.js';
|
||||
import { Issuing as IssuingNamespace0, Authorization, AuthorizationResource } from './Authorizations.js';
|
||||
import { Issuing as IssuingNamespace1, Card, CardResource } from './Cards.js';
|
||||
import { Issuing as IssuingNamespace2, Cardholder, CardholderResource } from './Cardholders.js';
|
||||
import { Issuing as IssuingNamespace3, Dispute, DisputeResource } from './Disputes.js';
|
||||
import { Issuing as IssuingNamespace4, PersonalizationDesign, PersonalizationDesignResource } from './PersonalizationDesigns.js';
|
||||
import { Issuing as IssuingNamespace5, PhysicalBundle, PhysicalBundleResource } from './PhysicalBundles.js';
|
||||
import { Issuing as IssuingNamespace6, Token, TokenResource } from './Tokens.js';
|
||||
import { Issuing as IssuingNamespace7, Transaction, TransactionResource } from './Transactions.js';
|
||||
export { Authorization } from './Authorizations.js';
|
||||
export { Card } from './Cards.js';
|
||||
export { Cardholder } from './Cardholders.js';
|
||||
export { Dispute } from './Disputes.js';
|
||||
export { PersonalizationDesign } from './PersonalizationDesigns.js';
|
||||
export { PhysicalBundle } from './PhysicalBundles.js';
|
||||
export { Token } from './Tokens.js';
|
||||
export { Transaction } from './Transactions.js';
|
||||
export declare class Issuing {
|
||||
private readonly stripe;
|
||||
authorizations: AuthorizationResource;
|
||||
cards: CardResource;
|
||||
cardholders: CardholderResource;
|
||||
disputes: DisputeResource;
|
||||
personalizationDesigns: PersonalizationDesignResource;
|
||||
physicalBundles: PhysicalBundleResource;
|
||||
tokens: TokenResource;
|
||||
transactions: TransactionResource;
|
||||
constructor(stripe: Stripe);
|
||||
}
|
||||
export declare namespace Issuing {
|
||||
export import AuthorizationListParams = IssuingNamespace0.AuthorizationListParams;
|
||||
export import AuthorizationRetrieveParams = IssuingNamespace0.AuthorizationRetrieveParams;
|
||||
export import AuthorizationUpdateParams = IssuingNamespace0.AuthorizationUpdateParams;
|
||||
export import AuthorizationApproveParams = IssuingNamespace0.AuthorizationApproveParams;
|
||||
export import AuthorizationDeclineParams = IssuingNamespace0.AuthorizationDeclineParams;
|
||||
export { Authorization };
|
||||
export import CardListParams = IssuingNamespace1.CardListParams;
|
||||
export import CardCreateParams = IssuingNamespace1.CardCreateParams;
|
||||
export import CardRetrieveParams = IssuingNamespace1.CardRetrieveParams;
|
||||
export import CardUpdateParams = IssuingNamespace1.CardUpdateParams;
|
||||
export { Card };
|
||||
export import CardholderListParams = IssuingNamespace2.CardholderListParams;
|
||||
export import CardholderCreateParams = IssuingNamespace2.CardholderCreateParams;
|
||||
export import CardholderRetrieveParams = IssuingNamespace2.CardholderRetrieveParams;
|
||||
export import CardholderUpdateParams = IssuingNamespace2.CardholderUpdateParams;
|
||||
export { Cardholder };
|
||||
export import DisputeListParams = IssuingNamespace3.DisputeListParams;
|
||||
export import DisputeCreateParams = IssuingNamespace3.DisputeCreateParams;
|
||||
export import DisputeRetrieveParams = IssuingNamespace3.DisputeRetrieveParams;
|
||||
export import DisputeUpdateParams = IssuingNamespace3.DisputeUpdateParams;
|
||||
export import DisputeSubmitParams = IssuingNamespace3.DisputeSubmitParams;
|
||||
export { Dispute };
|
||||
export import PersonalizationDesignListParams = IssuingNamespace4.PersonalizationDesignListParams;
|
||||
export import PersonalizationDesignCreateParams = IssuingNamespace4.PersonalizationDesignCreateParams;
|
||||
export import PersonalizationDesignRetrieveParams = IssuingNamespace4.PersonalizationDesignRetrieveParams;
|
||||
export import PersonalizationDesignUpdateParams = IssuingNamespace4.PersonalizationDesignUpdateParams;
|
||||
export { PersonalizationDesign };
|
||||
export import PhysicalBundleListParams = IssuingNamespace5.PhysicalBundleListParams;
|
||||
export import PhysicalBundleRetrieveParams = IssuingNamespace5.PhysicalBundleRetrieveParams;
|
||||
export { PhysicalBundle };
|
||||
export import TokenListParams = IssuingNamespace6.TokenListParams;
|
||||
export import TokenRetrieveParams = IssuingNamespace6.TokenRetrieveParams;
|
||||
export import TokenUpdateParams = IssuingNamespace6.TokenUpdateParams;
|
||||
export { Token };
|
||||
export import TransactionListParams = IssuingNamespace7.TransactionListParams;
|
||||
export import TransactionRetrieveParams = IssuingNamespace7.TransactionRetrieveParams;
|
||||
export import TransactionUpdateParams = IssuingNamespace7.TransactionUpdateParams;
|
||||
export { Transaction };
|
||||
}
|
||||
23
node_modules/stripe/esm/resources/Issuing/index.js
generated
vendored
Normal file
23
node_modules/stripe/esm/resources/Issuing/index.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { AuthorizationResource, } from './Authorizations.js';
|
||||
import { CardResource } from './Cards.js';
|
||||
import { CardholderResource, } from './Cardholders.js';
|
||||
import { DisputeResource, } from './Disputes.js';
|
||||
import { PersonalizationDesignResource, } from './PersonalizationDesigns.js';
|
||||
import { PhysicalBundleResource, } from './PhysicalBundles.js';
|
||||
import { TokenResource } from './Tokens.js';
|
||||
import { TransactionResource, } from './Transactions.js';
|
||||
export class Issuing {
|
||||
constructor(stripe) {
|
||||
this.stripe = stripe;
|
||||
this.authorizations = new AuthorizationResource(stripe);
|
||||
this.cards = new CardResource(stripe);
|
||||
this.cardholders = new CardholderResource(stripe);
|
||||
this.disputes = new DisputeResource(stripe);
|
||||
this.personalizationDesigns = new PersonalizationDesignResource(stripe);
|
||||
this.physicalBundles = new PhysicalBundleResource(stripe);
|
||||
this.tokens = new TokenResource(stripe);
|
||||
this.transactions = new TransactionResource(stripe);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/stripe/esm/resources/Issuing/index.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Issuing/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Issuing/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAGL,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAqC,YAAY,EAAC,MAAM,YAAY,CAAC;AAC5E,OAAO,EAGL,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAGL,eAAe,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAGL,6BAA6B,GAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAGL,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAsC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC/E,OAAO,EAGL,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAW3B,MAAM,OAAO,OAAO;IAUlB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,cAAc,GAAG,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC;QACxD,IAAI,CAAC,KAAK,GAAG,IAAI,YAAY,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,WAAW,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,sBAAsB,GAAG,IAAI,6BAA6B,CAAC,MAAM,CAAC,CAAC;QACxE,IAAI,CAAC,eAAe,GAAG,IAAI,sBAAsB,CAAC,MAAM,CAAC,CAAC;QAC1D,IAAI,CAAC,MAAM,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,YAAY,GAAG,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;CACF"}
|
||||
Reference in New Issue
Block a user