Socket
Socket
Sign inDemoInstall

stripe

Package Overview
Dependencies
Maintainers
1
Versions
652
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stripe - npm Package Compare versions

Comparing version 15.8.0 to 15.9.0

2

cjs/stripe.core.js

@@ -37,3 +37,3 @@ "use strict";

function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
Stripe.PACKAGE_VERSION = '15.8.0';
Stripe.PACKAGE_VERSION = '15.9.0';
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());

@@ -40,0 +40,0 @@ Stripe.StripeResource = StripeResource_js_1.StripeResource;

@@ -34,3 +34,3 @@ import * as _Error from './Error.js';

export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
Stripe.PACKAGE_VERSION = '15.8.0';
Stripe.PACKAGE_VERSION = '15.9.0';
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());

@@ -37,0 +37,0 @@ Stripe.StripeResource = StripeResource;

{
"name": "stripe",
"version": "15.8.0",
"version": "15.9.0",
"description": "Stripe API wrapper",

@@ -5,0 +5,0 @@ "keywords": [

@@ -960,3 +960,4 @@ // File generated from our OpenAPI spec

| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}

@@ -1126,3 +1127,4 @@ }

| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}

@@ -1129,0 +1131,0 @@ }

@@ -253,3 +253,4 @@ // File generated from our OpenAPI spec

| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}

@@ -387,3 +388,4 @@ }

| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}

@@ -390,0 +392,0 @@ }

@@ -208,3 +208,4 @@ // File generated from our OpenAPI spec

| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}

@@ -378,3 +379,4 @@ }

| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}

@@ -381,0 +383,0 @@ }

@@ -361,2 +361,7 @@ // File generated from our OpenAPI spec

/**
* Details of the original PaymentMethod that created this object.
*/
generated_from: Card.GeneratedFrom | null;
/**
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)

@@ -410,2 +415,217 @@ */

interface GeneratedFrom {
/**
* The charge that created this object.
*/
charge: string | null;
/**
* Transaction-specific details of the payment method used in the payment.
*/
payment_method_details: GeneratedFrom.PaymentMethodDetails | null;
/**
* The ID of the SetupAttempt that generated this PaymentMethod, if any.
*/
setup_attempt: string | Stripe.SetupAttempt | null;
}
namespace GeneratedFrom {
interface PaymentMethodDetails {
card_present?: PaymentMethodDetails.CardPresent;
/**
* The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
*/
type: string;
}
namespace PaymentMethodDetails {
interface CardPresent {
/**
* The authorized amount
*/
amount_authorized: number | null;
/**
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
brand: string | null;
/**
* When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
*/
capture_before?: number;
/**
* The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
*/
cardholder_name: string | null;
/**
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
*/
country: string | null;
/**
* A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
*/
description?: string | null;
/**
* Authorization response cryptogram.
*/
emv_auth_data: string | null;
/**
* Two-digit number representing the card's expiration month.
*/
exp_month: number;
/**
* Four-digit number representing the card's expiration year.
*/
exp_year: number;
/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*
* *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
*/
fingerprint: string | null;
/**
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
*/
funding: string | null;
/**
* ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
*/
generated_card: string | null;
/**
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
*/
iin?: string | null;
/**
* Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
*/
incremental_authorization_supported: boolean;
/**
* The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
*/
issuer?: string | null;
/**
* The last four digits of the card.
*/
last4: string | null;
/**
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
network: string | null;
/**
* Details about payments collected offline.
*/
offline: CardPresent.Offline | null;
/**
* Defines whether the authorized amount can be over-captured or not
*/
overcapture_supported: boolean;
/**
* EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
*/
preferred_locales: Array<string> | null;
/**
* How card details were read in this transaction.
*/
read_method: CardPresent.ReadMethod | null;
/**
* A collection of fields required to be displayed on receipts. Only required for EMV transactions.
*/
receipt: CardPresent.Receipt | null;
}
namespace CardPresent {
interface Offline {
/**
* Time at which the payment was collected while offline
*/
stored_at: number | null;
}
type ReadMethod =
| 'contact_emv'
| 'contactless_emv'
| 'contactless_magstripe_mode'
| 'magnetic_stripe_fallback'
| 'magnetic_stripe_track2';
interface Receipt {
/**
* The type of account being debited or credited
*/
account_type?: Receipt.AccountType;
/**
* EMV tag 9F26, cryptogram generated by the integrated circuit chip.
*/
application_cryptogram: string | null;
/**
* Mnenomic of the Application Identifier.
*/
application_preferred_name: string | null;
/**
* Identifier for this transaction.
*/
authorization_code: string | null;
/**
* EMV tag 8A. A code returned by the card issuer.
*/
authorization_response_code: string | null;
/**
* Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
*/
cardholder_verification_method: string | null;
/**
* EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
*/
dedicated_file_name: string | null;
/**
* The outcome of a series of EMV functions performed by the card reader.
*/
terminal_verification_results: string | null;
/**
* An indication of various EMV functions performed during the transaction.
*/
transaction_status_information: string | null;
}
namespace Receipt {
type AccountType =
| 'checking'
| 'credit'
| 'prepaid'
| 'unknown';
}
}
}
}
interface Networks {

@@ -412,0 +632,0 @@ /**

@@ -146,2 +146,6 @@ // File generated from our OpenAPI spec

| 'issuing_dispute.updated'
| 'issuing_personalization_design.activated'
| 'issuing_personalization_design.deactivated'
| 'issuing_personalization_design.rejected'
| 'issuing_personalization_design.updated'
| 'issuing_token.created'

@@ -148,0 +152,0 @@ | 'issuing_token.updated'

@@ -90,3 +90,3 @@ // File generated from our OpenAPI spec

*/
personalization_design?:
personalization_design:
| string

@@ -93,0 +93,0 @@ | Stripe.Issuing.PersonalizationDesign

@@ -20,3 +20,3 @@ // File generated from our OpenAPI spec

features?: PhysicalBundle.Features;
features: PhysicalBundle.Features;

@@ -23,0 +23,0 @@ /**

@@ -289,2 +289,7 @@ // File generated from our OpenAPI spec

/**
* Details of the original PaymentMethod that created this object.
*/
generated_from: Card.GeneratedFrom | null;
/**
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)

@@ -338,2 +343,217 @@ */

interface GeneratedFrom {
/**
* The charge that created this object.
*/
charge: string | null;
/**
* Transaction-specific details of the payment method used in the payment.
*/
payment_method_details: GeneratedFrom.PaymentMethodDetails | null;
/**
* The ID of the SetupAttempt that generated this PaymentMethod, if any.
*/
setup_attempt: string | Stripe.SetupAttempt | null;
}
namespace GeneratedFrom {
interface PaymentMethodDetails {
card_present?: PaymentMethodDetails.CardPresent;
/**
* The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
*/
type: string;
}
namespace PaymentMethodDetails {
interface CardPresent {
/**
* The authorized amount
*/
amount_authorized: number | null;
/**
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
brand: string | null;
/**
* When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
*/
capture_before?: number;
/**
* The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
*/
cardholder_name: string | null;
/**
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
*/
country: string | null;
/**
* A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
*/
description?: string | null;
/**
* Authorization response cryptogram.
*/
emv_auth_data: string | null;
/**
* Two-digit number representing the card's expiration month.
*/
exp_month: number;
/**
* Four-digit number representing the card's expiration year.
*/
exp_year: number;
/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*
* *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
*/
fingerprint: string | null;
/**
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
*/
funding: string | null;
/**
* ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
*/
generated_card: string | null;
/**
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
*/
iin?: string | null;
/**
* Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
*/
incremental_authorization_supported: boolean;
/**
* The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
*/
issuer?: string | null;
/**
* The last four digits of the card.
*/
last4: string | null;
/**
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
*/
network: string | null;
/**
* Details about payments collected offline.
*/
offline: CardPresent.Offline | null;
/**
* Defines whether the authorized amount can be over-captured or not
*/
overcapture_supported: boolean;
/**
* EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
*/
preferred_locales: Array<string> | null;
/**
* How card details were read in this transaction.
*/
read_method: CardPresent.ReadMethod | null;
/**
* A collection of fields required to be displayed on receipts. Only required for EMV transactions.
*/
receipt: CardPresent.Receipt | null;
}
namespace CardPresent {
interface Offline {
/**
* Time at which the payment was collected while offline
*/
stored_at: number | null;
}
type ReadMethod =
| 'contact_emv'
| 'contactless_emv'
| 'contactless_magstripe_mode'
| 'magnetic_stripe_fallback'
| 'magnetic_stripe_track2';
interface Receipt {
/**
* The type of account being debited or credited
*/
account_type?: Receipt.AccountType;
/**
* EMV tag 9F26, cryptogram generated by the integrated circuit chip.
*/
application_cryptogram: string | null;
/**
* Mnenomic of the Application Identifier.
*/
application_preferred_name: string | null;
/**
* Identifier for this transaction.
*/
authorization_code: string | null;
/**
* EMV tag 8A. A code returned by the card issuer.
*/
authorization_response_code: string | null;
/**
* Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
*/
cardholder_verification_method: string | null;
/**
* EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
*/
dedicated_file_name: string | null;
/**
* The outcome of a series of EMV functions performed by the card reader.
*/
terminal_verification_results: string | null;
/**
* An indication of various EMV functions performed during the transaction.
*/
transaction_status_information: string | null;
}
namespace Receipt {
type AccountType =
| 'checking'
| 'credit'
| 'prepaid'
| 'unknown';
}
}
}
}
interface Networks {

@@ -340,0 +560,0 @@ /**

@@ -442,3 +442,4 @@ // File generated from our OpenAPI spec

| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}

@@ -637,3 +638,4 @@ }

| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}

@@ -640,0 +642,0 @@ }

@@ -257,2 +257,6 @@ // File generated from our OpenAPI spec

| 'issuing_dispute.updated'
| 'issuing_personalization_design.activated'
| 'issuing_personalization_design.deactivated'
| 'issuing_personalization_design.rejected'
| 'issuing_personalization_design.updated'
| 'issuing_token.created'

@@ -531,2 +535,6 @@ | 'issuing_token.updated'

| 'issuing_dispute.updated'
| 'issuing_personalization_design.activated'
| 'issuing_personalization_design.deactivated'
| 'issuing_personalization_design.rejected'
| 'issuing_personalization_design.updated'
| 'issuing_token.created'

@@ -533,0 +541,0 @@ | 'issuing_token.updated'

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

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

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

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

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

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

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

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

Sorry, the diff of this file is not supported yet

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