Skip to content

Instantly share code, notes, and snippets.

@devraj
Last active January 6, 2017 01:36
Show Gist options
  • Save devraj/d77fa39024da38729efe to your computer and use it in GitHub Desktop.
Save devraj/d77fa39024da38729efe to your computer and use it in GitHub Desktop.
Stripe.js v2 externals file for Google Closure Compiler
/*
* Copyright 2014 Anomaly Software Pty Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @fileoverview Externs for Stripe.js
*
* @see https://stripe.com/docs/stripe.js
* @externs
*/
/** @const */
var Stripe = {};
/**
* @param {string} t
*/
Stripe.setPublishableKey = function(t) { };
/**
* @param {Object} t
* @param {function()} r
* @param {function()} i
*/
Stripe.card.createToken = function(t,r,i) {};
/**
* @param {string} t
*/
Stripe.card.validateCardNumber = function(t) { };
/**
* @param {string} t
* @param {string} n
*/
Stripe.card.validateExpiry = function(t, n) { };
/**
* @param {string} t
*/
Stripe.card.validateCVC = function(t) { };
/**
* @param {string} t
*/
Stripe.card.cardType = function(t) { };
/**
* @param {Object} t
* @param {function()} r
* @param {function()} i
*/
Stripe.bankAccount.createToken = function(t,r,i) {};
/**
* @param {string} t
* @param {string} r
*/
Stripe.bankAccount.validateRoutingNumber = function(t, r) { };
/**
* @param {string} t
* @param {string} r
*/
Stripe.bankAccount.validateAccountNumber = function(t, r) { };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment