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

@types/stripe

Package Overview
Dependencies
Maintainers
1
Versions
612
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/stripe - npm Package Compare versions

Comparing version 0.0.32 to 0.0.33

45

stripe/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for stripe
// Type definitions for stripe 0.0
// Project: https://stripe.com/

@@ -6,2 +6,4 @@ // Definitions by: Andy Hawkins <https://github.com/a904guy/,http://a904guy.com>, Eric J. Smith <https://github.com/ejsmith/>, Amrit Kahlon <https://github.com/amritk/>, Adam Cmiel <https://github.com/adamcmiel>

declare const Stripe: StripeStatic;
interface StripeStatic {

@@ -53,2 +55,4 @@ applePay: StripeApplePay;

type StripeCardDataBrand = 'Visa' | 'American Express' | 'MasterCard' | 'Discover JCB' | 'Diners Club' | 'Unknown';
interface StripeCardData {

@@ -67,8 +71,8 @@ object: string;

address_country?: string;
brand?: StripeCardDataBrand;
createToken(data: StripeTokenData, responseHandler: (status: number, response: StripeTokenResponse) => void): void;
}
interface StripeBankAccount
{
createToken(params: StripeBankTokenParams, stripeResponseHandler: (status:number, response: StripeBankTokenResponse) => void): void;
interface StripeBankAccount {
createToken(params: StripeBankTokenParams, stripeResponseHandler: (status: number, response: StripeBankTokenResponse) => void): void;
validateRoutingNumber(routingNumber: number | string, countryCode: string): boolean;

@@ -78,4 +82,3 @@ validateAccountNumber(accountNumber: number | string, countryCode: string): boolean;

interface StripeBankTokenParams
{
interface StripeBankTokenParams {
country: string;

@@ -89,4 +92,3 @@ currency: string;

interface StripeBankTokenResponse
{
interface StripeBankTokenResponse {
id: string;

@@ -108,9 +110,3 @@ bank_account: {

declare var Stripe: StripeStatic;
declare module "Stripe" {
export = StripeStatic;
}
interface StripeApplePay
{
interface StripeApplePay {
checkAvailability(resopnseHandler: (result: boolean) => void): void;

@@ -126,4 +122,3 @@ buildSession(data: StripeApplePayPaymentRequest,

interface StripeApplePayPaymentRequest
{
interface StripeApplePayPaymentRequest {
billingContact: StripeApplePayPaymentContact;

@@ -142,4 +137,3 @@ countryCode: string;

// https://developer.apple.com/reference/applepayjs/1916082-applepay_js_data_types
interface StripeApplePayLineItem
{
interface StripeApplePayLineItem {
type: 'pending' | 'final';

@@ -150,4 +144,3 @@ label: string;

interface StripeApplePaySessionResult
{
interface StripeApplePaySessionResult {
token: StripeTokenResponse;

@@ -158,4 +151,3 @@ shippingContact?: StripeApplePayPaymentContact;

interface StripeApplePayShippingMethod
{
interface StripeApplePayShippingMethod {
label: string;

@@ -167,4 +159,3 @@ detail: string;

interface StripeApplePayPaymentContact
{
interface StripeApplePayPaymentContact {
emailAddress: string;

@@ -180,1 +171,5 @@ phoneNumber: string;

}
// The Stripe client side APIs are not made available to package managers for direct installation.
// As explained compliance reasons. Source: https://github.com/stripe/stripe-node/blob/master/README.md#these-are-serverside-bindings-only
// A release date versioning schema is used to version these APIs.
{
"name": "@types/stripe",
"version": "0.0.32",
"version": "0.0.33",
"description": "TypeScript definitions for stripe",

@@ -15,4 +15,4 @@ "license": "MIT",

"peerDependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "519bbf101c4104eebab413b2e96a6b8edf8aec3ae512391e1291d475b7ff5a4a"
"typesPublisherContentHash": "07926afac36f0bc0139fedf14286aae1e787930b9b2d9efd389109ce41cc2ccb",
"typeScriptVersion": "2.0"
}

@@ -8,7 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/stripe
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/stripe
Additional Details
* Last updated: Tue, 08 Nov 2016 14:41:16 GMT
* File structure: Mixed
* Last updated: Thu, 05 Jan 2017 20:40:29 GMT
* Library Dependencies: none

@@ -15,0 +14,0 @@ * Module Dependencies: none

{
"authors": "Andy Hawkins <https://github.com/a904guy/,http://a904guy.com>, Eric J. Smith <https://github.com/ejsmith/>, Amrit Kahlon <https://github.com/amritk/>, Adam Cmiel <https://github.com/adamcmiel>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [],

@@ -8,2 +7,3 @@ "moduleDependencies": [],

"libraryMinorVersion": 0,
"typeScriptVersion": "2.0",
"libraryName": "stripe",

@@ -13,10 +13,7 @@ "typingsPackageName": "stripe",

"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "Mixed",
"sourceBranch": "master",
"globals": [
"Stripe"
],
"declaredModules": [
"Stripe"
],
"declaredModules": [],
"files": [

@@ -26,3 +23,3 @@ "index.d.ts"

"hasPackageJson": false,
"contentHash": "519bbf101c4104eebab413b2e96a6b8edf8aec3ae512391e1291d475b7ff5a4a"
"contentHash": "07926afac36f0bc0139fedf14286aae1e787930b9b2d9efd389109ce41cc2ccb"
}
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