Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stripe/stripe-js

Package Overview
Dependencies
Maintainers
13
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stripe/stripe-js - npm Package Compare versions

Comparing version 1.38.1 to 1.39.0

types/stripe-js/elements/issuing/index.d.ts

2

dist/pure.esm.js

@@ -57,3 +57,3 @@ function _typeof(obj) {

name: 'stripe-js',
version: "1.38.1",
version: "1.39.0",
startTime: startTime

@@ -60,0 +60,0 @@ });

@@ -61,3 +61,3 @@ 'use strict';

name: 'stripe-js',
version: "1.38.1",
version: "1.39.0",
startTime: startTime

@@ -64,0 +64,0 @@ });

@@ -41,3 +41,3 @@ var V3_URL = 'https://js.stripe.com/v3';

name: 'stripe-js',
version: "1.38.1",
version: "1.39.0",
startTime: startTime

@@ -44,0 +44,0 @@ });

@@ -45,3 +45,3 @@ 'use strict';

name: 'stripe-js',
version: "1.38.1",
version: "1.39.0",
startTime: startTime

@@ -48,0 +48,0 @@ });

{
"name": "@stripe/stripe-js",
"version": "1.38.1",
"version": "1.39.0",
"description": "Stripe.js loading utility",

@@ -5,0 +5,0 @@ "main": "dist/stripe.js",

@@ -0,1 +1,91 @@

type SupportedPaymentMethodType = 'us_bank_account' | 'link';
interface CommonBalance {
/**
* The time that the external institution calculated this balance. Measured
* in seconds since the Unix epoch.
*/
as_of: number;
/**
* The balances owed to (or by) the account holder.
*
* Each key is a three-letter ISO currency code, in lowercase.
*
* Each value is a integer amount. A positive amount indicates money owed to
* the account holder. A negative amount indicates money owed by the account
* holder.
*/
current: {
[key: string]: number | undefined;
};
}
interface CashBalance {
/**
* Information on a `cash` balance. Only set if `balance.type` is `cash`.
*/
cash: {
/**
* The funds available to the account holder. Typically this is the
* current balance less any holds.
*
* Each key is a three-letter ISO currency code, in lowercase.
*
* Each value is a integer amount. A positive amount indicates money owed
* to the account holder. A negative amount indicates money owed by the
* account holder.
*/
available: {[key: string]: number | undefined};
};
type: 'cash';
}
interface CreditBalance {
/**
* Information on a `credit` balance. Only set if `balance.type` is `credit`.
*/
credit: {
/**
* The credit that has been used by the account holder.
*
* Each key is a three-letter ISO currency code, in lowercase
*
* Each value is a integer amount. A positive amount indicates money owed
* to the account holder. A negative amount indicates money owed by the
* account holder.
*/
used: {[key: string]: number | undefined};
};
type: 'credit';
}
type Balance = (CommonBalance & CashBalance) | (CommonBalance & CreditBalance);
interface BalanceRefresh {
/**
* The status of the Balance Refresh
*/
status: 'pending' | 'succeeded' | 'failed';
/**
* Time at which the Balance Refresh was attempted. Measured in seconds since the Unix epoch.
*/
last_attempted_at: number;
}
interface OwnershipRefresh {
/**
* The status of the Ownership Refresh
*/
status: 'pending' | 'succeeded' | 'failed';
/**
* Time at which the Ownersip Refresh was attempted. Measured in seconds since the Unix epoch.
*/
last_attempted_at: number;
}
/**

@@ -47,7 +137,22 @@ * The Financial Connections Session object

/**
* The balance for this Account
*/
balance: null | Balance;
/**
* The most recent Balance Refresh for this Account
*/
balance_refresh: null | BalanceRefresh;
/**
* The type of the account.
*/
category: string;
category: 'cash' | 'credit' | 'investment' | 'other';
/**
* Time at which the object was created. Measured in seconds since the Unix epoch.
*/
created: number;
/**
* A human-readable name that has been assigned to this account, either by the account holder or by the institution.

@@ -66,2 +171,43 @@ */

last4: string | null;
/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
*/
livemode: boolean;
/**
* The ID of this account's Ownership resource.
*/
ownership: string | null;
/**
* The most recent Ownership Refresh for this Account
*/
ownership_refresh: null | OwnershipRefresh;
/**
* Permissions granted on this Account
*/
permissions: Permission[];
/**
* The status of the Account
*/
status: 'active' | 'inactive' | 'disconnected';
/**
* The sub-category of the Account
*/
subcategory:
| 'checking'
| 'savings'
| 'mortgage'
| 'line_of_credit'
| 'credit_card'
| 'other';
/**
* The types of Payment Methods which can be set up by this Account
*/
supported_payment_method_types: SupportedPaymentMethodType[];
}

@@ -68,0 +214,0 @@

@@ -38,2 +38,12 @@ import {

StripeAuBankAccountElementOptions,
StripeIssuingCardNumberDisplayElement,
StripeIssuingCardNumberDisplayElementOptions,
StripeIssuingCardCvcDisplayElement,
StripeIssuingCardCvcDisplayElementOptions,
StripeIssuingCardExpiryDisplayElement,
StripeIssuingCardExpiryDisplayElementOptions,
StripeIssuingCardPinDisplayElement,
StripeIssuingCardPinDisplayElementOptions,
StripeIssuingCardCopyButtonElement,
StripeIssuingCardCopyButtonElementOptions,
} from './elements';

@@ -403,2 +413,56 @@

): StripeShippingAddressElement | null;
/////////////////////////////
/// issuing
/////////////////////////////
/**
* Creates an `issuingCardNumberDisplay` Element
*
* @docs https://stripe.com/docs/js/issuing_elements/create?type=issuingCardNumberDisplay
*/
create(
elementType: 'issuingCardNumberDisplay',
options: StripeIssuingCardNumberDisplayElementOptions
): StripeIssuingCardNumberDisplayElement;
/**
* Creates an `issuingCardCvcDisplay` Element
*
* @docs https://stripe.com/docs/js/issuing_elements/create?type=issuingCardCvcDisplay
*/
create(
elementType: 'issuingCardCvcDisplay',
options: StripeIssuingCardCvcDisplayElementOptions
): StripeIssuingCardCvcDisplayElement;
/**
* Creates an `issuingCardExpiryDisplay` Element
*
* @docs https://stripe.com/docs/js/issuing_elements/create?type=issuingCardExpiryDisplay
*/
create(
elementType: 'issuingCardExpiryDisplay',
options: StripeIssuingCardExpiryDisplayElementOptions
): StripeIssuingCardExpiryDisplayElement;
/**
* Creates an `issuingCardPinDisplay` Element
*
* @docs https://stripe.com/docs/js/issuing_elements/create?type=issuingCardPinDisplay
*/
create(
elementType: 'issuingCardPinDisplay',
options: StripeIssuingCardPinDisplayElementOptions
): StripeIssuingCardPinDisplayElement;
/**
* Creates an `issuingCardCopyButton` Element
*
* @docs https://stripe.com/docs/js/issuing_elements/create?type=issuingCardCopyButton
*/
create(
elementType: 'issuingCardCopyButton',
options: StripeIssuingCardCopyButtonElementOptions
): StripeIssuingCardCopyButtonElement;
}

@@ -424,3 +488,8 @@

| 'linkAuthentication'
| 'shippingAddress';
| 'shippingAddress'
| 'issuingCardNumberDisplay'
| 'issuingCardCvcDisplay'
| 'issuingCardExpiryDisplay'
| 'issuingCardPinDisplay'
| 'issuingCardCopyButton';

@@ -442,3 +511,8 @@ export type StripeElement =

| StripePaymentMethodMessagingElement
| StripePaymentRequestButtonElement;
| StripePaymentRequestButtonElement
| StripeIssuingCardNumberDisplayElement
| StripeIssuingCardCvcDisplayElement
| StripeIssuingCardExpiryDisplayElement
| StripeIssuingCardPinDisplayElement
| StripeIssuingCardCopyButtonElement;

@@ -445,0 +519,0 @@ export type StripeElementLocale =

@@ -20,1 +20,2 @@ export * from './address';

export * from './shipping-address';
export * from './issuing';

@@ -35,2 +35,3 @@ import {

| CreatePaymentMethodPayNowData
| CreatePaymentMethodPixData
| CreatePaymentMethodPromptPayData

@@ -293,2 +294,6 @@ | CreatePaymentMethodFpxData

export interface CreatePaymentMethodPixData extends PaymentMethodCreateParams {
type: 'pix';
}
export interface CreatePaymentMethodPromptPayData

@@ -1063,2 +1068,27 @@ extends PaymentMethodCreateParams {

/**
* Data to be sent with a `stripe.confirmPixPayment` request.
* Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters.
*/
export interface ConfirmPixPaymentData extends PaymentIntentConfirmParams {
/**
* The `id` of an existing [PaymentMethod](https://stripe.com/docs/api/payment_methods).
* This field is optional if a `PaymentMethod` has already been attached to this `PaymentIntent` or a new `PaymentMethod` will be created.
*
* @recommended
*/
payment_method?: string | Omit<CreatePaymentMethodPixData, 'type'>;
}
/**
* An options object to control the behavior of `stripe.confirmPayNowPayment`.
*/
export interface ConfirmPixPaymentOptions {
/**
* Set this to `false` if you want to [manually handle the authorization redirect](https://stripe.com/docs/payments/p24#handle-redirect).
* Default is `true`.
*/
handleActions?: boolean;
}
/**
* Data to be sent with a `stripe.confirmPayNowPayment` request.

@@ -1065,0 +1095,0 @@ * Refer to the [Payment Intents API](https://stripe.com/docs/api/payment_intents/confirm) for a full list of parameters.

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc