Commit Graph
53 Commits
Author SHA1 Message Date
AndyandGitHub 555ea54770 Lint test files too (#14791) 2017-02-23 07:15:16 -08:00
André WerlangandGitHub 77bbac8da6 Merge branch 'master' into patch-1 2017-02-07 23:47:00 -02:00
André WerlangandGitHub 0bf5b987e4 add client_ip to StripeTokenResponse
See https://stripe.com/docs/api#token_object
2017-01-26 12:48:39 -02:00
Justin Leider da9dee3335 Fix package and version 2017-01-25 13:56:06 -05:00
Justin Leider 842692a5bd Update attribution and version 2017-01-25 13:51:39 -05:00
Justin Leider 256eff0c62 Update card and bank account interfaces, rename for consistency. 2017-01-25 13:35:41 -05:00
AndyandGitHub ae4fe7b6de Use "lib" in tsconfigs instead of "target". (#13968)
* Use "lib" in tsconfigs instead of "target".

Only add "dom" to libraries that need it. This is determined by a script, so many libraries that have "dom" maybe should not.

* Update new-package and readme

* Add back "target" where necessary
2017-01-18 07:51:51 -08:00
Aluan HaddadandGitHub cb354dc657 Fix "Discover JCB" -> "Discover" | "JCB", refine StripeStatic.cardType
Fixed bug previously introduced due to misread documentation.
Refined the return type of `StripeStatic.cardType`, `string` => `StripeCardDataBrand`.
2017-01-13 12:02:57 -05:00
AndyandGitHub 5bce8fab2e Merge more from types-2.0 to `master (#13770)
* Add memoizee definitions

* Fix common issues, added doc

* Removed blank line

* fix test

* Fix test methods

* Fix check style

* Fix check style

* Fixing semver header

* Fixing semver header

* `memoizee`: Clean up types

* Types 2.0 - Fix JS-quantities (#12739)

* Enable strict null checking per readme FAQ.

* Add tslint.json.

* Improve test file with project spec.

* Fix js-quantities d.ts, with adjustment of test.

* Add trailing newline to tslint.

* Simplify functional interface per linter.

* js-quantities: add readme examples to tests

* js-quantities: fix & clean declaration

* d3-selection: Mark before param of insert() as optional (#13090)

Selection<etc>.insert functions perfectly well without a `before` selector -- it does so in many d3 official examples.

This corrects the type signature to mark it as optional.

* [react-intl] bugfix for #12716 (#12906)

* fix for issue introduced in https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12716

* injectIntl is now usable as class decorator

* fixed test

* use inferface instead of type

* format document

* fix chai-json-schema styling (#13537)

* googlemaps: Allow Marker.setAnimation(null) and Marker.setMap(null) (#13240)

* googlemaps: Allow Marker.setAnimation(null)

 * Also, turn on strictNullChecks
 * Allow new google.maps.Map(null) since it's technically possible with Google's example code from the docs

Signed-off-by: Iqbal Yusuf <iyusuf@corelogic.com>

* googlemaps: Allow Marker.setMap(null)

 * Also, add more test code from the Google Maps API documentation

Signed-off-by: Grant Hutchins <ghutchins@pivotal.io>

* Added the brand property to the StripeCardData and fix style issues, lint (#13084)

* Add the "brand" field to StipeCardData
Added the StipeCardDataBrand type.
Added the `brand` property to the `StripeCardData` declaration with the type
`'Visa' | 'American Express' | 'MasterCard' | 'Discover JCB' | 'Diners Club' | 'Unknown'`
Reference: https://stripe.com/docs/api#card_object

* Run linter, fix issues. set --strictNullChecks.
Unsure about ambient declaration:
Removed as it seemed to be in error:
  1. case was not correct
  2. the export was the type of the global which is unconditionally defined.
  3. this module does not seem a suitable candidate for a UMD declaration.

* Use header version of 0.0; explain Stripe versioning in comments

* Restore global

* Added tests
2017-01-05 12:05:44 -08:00
AndyandGitHub a4bd9fa3c1 Add "noImplicitThis" to all tsconfig.json (#13446)
* Add "noImplicitThis" to all tsconfig.json

* Use `"noImplicitThis": false` on packages with broken tests.
2016-12-19 14:11:46 -08:00
Adam CmielandMasahiro Wakame 2f38649769 Types 2.0 (#12429)
* add missing members for token creation

add `createToken: (StripeTokenData) => Promise<StripeTokenResponse>` overload to StripeStatic
add `type: string` in StripeTokenResponse

* [FIX] response interfaces

* add apple pay

* [FIX] tests
2016-11-08 23:15:49 +09:00
Nathan Shively-Sanders 14fb8ef536 Merge branch 'master' into types-2.0-2016-08-12 2016-08-12 14:53:54 -07:00
Ahmet KiyakandGitHub da354071c0 Update stripe.d.ts
Pass expiration date as single string https://stripe.com/docs/stripe.js#passing-exp-dates
2016-08-11 23:30:59 +02:00
Ryan Cavanaugh b75a58024e Get tests passing again 2016-07-27 14:45:58 -07:00
Ryan Cavanaugh b9245fba39 Merge commit 'upstream/master~350' into merge_7_25 2016-07-26 17:24:39 -07:00
Ryan Cavanaugh 5e9440c8ad Merge commit 'upstream/master~700' into merge_7_25
# Conflicts:
#	angular-ui-router/angular-ui-router.d.ts
#	bookshelf/bookshelf-tests.ts
#	bookshelf/bookshelf.d.ts
#	enzyme/enzyme-tests.tsx
#	enzyme/enzyme.d.ts
#	escodegen/escodegen-tests.ts
#	helmet/helmet.d.ts
#	joi/joi.d.ts
#	knex/knex-tests.ts
#	moment/index.d.ts
#	mongoose/index.d.ts
#	pg/pg.d.ts
#	react-select/react-select-tests.tsx
#	soap/index.d.ts
#	ssh2/ssh2.d.ts
#	turf/turf-tests.ts
#	underscore.string/underscore.string.d.ts
2016-07-25 16:10:34 -07:00
Ryan Cavanaugh a5f4d50ccc Fix tsconfig files for new option name / behavior.
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -07:00
Raghav Katyal 395c4e1639 Turning on consistent casing flag and fixing failures 2016-06-30 15:14:49 -07:00
Ben Dixon 25c96a1f24 Fixes #4467 - Separate out Stripe.js and stripe-node definitions 2016-05-31 11:29:15 +01:00
CodeAnimalandMasahiro Wakame b4bbee8f60 Stripe node 4.6.0 (#9350)
* Add stripe subscription methods

Add root subscription methods, in addition to subscription methods that
are defined on customer objects.

https://stripe.com/docs/api/node#subscriptions

* Bump version to stripe-node 4.6.0

* Update customers.retrieve signature

* Fix wrong signature for stripe.customers.update

The return type was Promise<IList<customers.ICustomer>> when in fact it
should be Promise<customers.ICustomer> (it is a resource object, not a
list)

* Add created attribute to ISubscription interface
2016-05-16 23:56:40 -07:00
CodeAnimalandHoriuchi_H 6191520997 Stripe node 4.6.0 - add subscription methods (#9303)
* Add stripe subscription methods

Add root subscription methods, in addition to subscription methods that
are defined on customer objects.

https://stripe.com/docs/api/node#subscriptions

* Bump version to stripe-node 4.6.0
2016-05-12 14:34:45 +09:00
Ryan Cavanaugh e105eabd48 Remove invalid references 2016-05-10 16:27:59 -07:00
Ryan Cavanaugh bfd400a8f8 Add noEmit to all config files 2016-05-10 12:24:49 -07:00
Ryan Cavanaugh e808e8e062 Remove unneeded references 2016-05-10 12:22:25 -07:00
Ryan Cavanaugh 50387d4046 Change relative reference paths to types references. Errors incoming... 2016-05-09 18:06:27 -07:00
Ryan Cavanaugh 49b1ac6a38 Rename all entry points to index.d.ts and explicitify all file lists 2016-05-09 17:29:10 -07:00
Ryan Cavanaugh ab2b4191c5 Add typesRoot to all config files 2016-05-09 13:52:25 -07:00
Ryan Cavanaugh ded70421be Turn off strict null checks 2016-05-04 15:08:38 -07:00
Ryan Cavanaugh 69d1929d8a Add tsconfig.json files 2016-05-04 14:14:39 -07:00
Ryan Cavanaugh e7c111c4b7 Merge remote-tracking branch 'upstream/master' into types2.0
Add tsconfig files everywhere

# Conflicts:
#	azure-mobile-services-client/AzureMobileServicesClient.d.ts
#	bookshelf/bookshelf.d.ts
#	hapi/hapi.d.ts
#	helmet/helmet.d.ts
#	mongodb/mongodb.d.ts
#	nock/nock.d.ts
#	react-bootstrap/react-bootstrap.d.ts
#	react-helmet/react-helmet.d.ts
#	restify/restify.d.ts
#	sequelize/sequelize.d.ts
2016-04-27 20:40:21 -07:00
amritkandMasahiro Wakame 4de16e34f2 Update stripe.d.ts bank params (#8994)
Added additional params for creating a bank token as per: https://stripe.com/docs/stripe.js#collecting-bank-account-details
2016-04-17 23:54:14 +09:00
CodeAnimalandMasahiro Wakame 19e22df5dd Stripe node 4.5.0 (#8907)
* Update Stripe library definitions to version 4.5.0.

And update to API version 2016-03-07.

Ideally more tests need to be added, but I've ran out of time to
implement all that is needed. The tests cover just enough for now,
although they are by no means thorough.

* Fix CI test errors

* Add correct header options

Add correct header options to method definitions.

As I understand it, all methods have the ability to have header options,
and they should always appear after any data options, see:

https://github.com/stripe/stripe-node/blob/master/lib/StripeMethod.js#L61
https://stripe.com/docs/connect/authentication

Tests still need to be added.

* Rename account to accounts

And fix other small bugs:
- L4626: Fix duplicate arg name
- L4999: Add missing method definition

* Rename CustomerSubscription Methods

Rename some CustomerSubscription methods that were named incorrectly.

* Define chargeObj.refunds methods

Add ChargeRefunds methods to ICharge interface and add resource class.

https://github.com/stripe/stripe-node/blob/master/lib/resources/ChargeRefunds.js

* Add verifySource placeholder methods

Add verifySource placeholder method to the Customer resource class. This
needs to be properly implemented later.

Also update InvoiceLineItem.type property to be a string literal type.

* Test clean up

Clean up the tests and add a few missing tests. All current tests now
also test for Promise method returns.

Still a lot of missing tests, but it's better than before.
2016-04-13 00:50:15 +09:00
vvakame 7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame 14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame 56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
Long Zheng 2ea30ab68d Updated stripe.d.ts
Stripe allows ```createToken``` at the card object
2016-02-03 12:04:06 +11:00
amritk a30d1017ee Update stripe.d.ts 2015-12-16 18:32:12 -08:00
amritk 8907ae9ff9 update stripe.d.ts
All those extra bank fields are passed as routing number.
2015-12-16 16:26:17 -08:00
amritk b6f9544291 update stripe.d.ts
Added status to bank token creation response
2015-12-16 15:33:27 -08:00
amritk ea67870062 Updated stripe.d.ts
Added bank account methods for managed accounts.
2015-12-16 15:25:21 -08:00
Andy Hawkins — (̖̣͕̠̬̭̞̪̐̅ỉ̭̣͈̪̠ͮs̳̳̦̞̰̜̞̳͑͌͋ͪ̃̍ ̩̘́͑ͨ̈́̎̋ͮ͊̀ñ͔̣͓̬̈ͮͦ́ͫ͐͛ͅͅo̩̦̳̠̙̗̯̺̐͆̽t̜̥̻̙̟̼̜͂ͩ͋̅̈́ ̠̦̹̟͕͕̱͉͒͋̅́͐ā̟̻̱ͦ̒̍͋ ̗̞͚ͨͩ͊͂̉ͅh͔̼͚̩͚̪̝̝ͣa̫̫̒̓ͬc̦̲̳͍̹̃ͥͯk̲͕̗̖̤̙̜͍̊e̫͎̟̼̺̫̿r͙̰̊̑̿̅ͯͅ)̪̖͇̝̮̪͖̦͆̇ͧ͑̚ c4a713cfee fix header 2015-08-26 16:41:20 -04:00
Andy Hawkins — (̖̣͕̠̬̭̞̪̐̅ỉ̭̣͈̪̠ͮs̳̳̦̞̰̜̞̳͑͌͋ͪ̃̍ ̩̘́͑ͨ̈́̎̋ͮ͊̀ñ͔̣͓̬̈ͮͦ́ͫ͐͛ͅͅo̩̦̳̠̙̗̯̺̐͆̽t̜̥̻̙̟̼̜͂ͩ͋̅̈́ ̠̦̹̟͕͕̱͉͒͋̅́͐ā̟̻̱ͦ̒̍͋ ̗̞͚ͨͩ͊͂̉ͅh͔̼͚̩͚̪̝̝ͣa̫̫̒̓ͬc̦̲̳͍̹̃ͥͯk̲͕̗̖̤̙̜͍̊e̫͎̟̼̺̫̿r͙̰̊̑̿̅ͯͅ)̪̖͇̝̮̪͖̦͆̇ͧ͑̚ ab7877b662 Update to fix AMD/UMD module imports 2015-08-26 16:38:26 -04:00
Daniel Rosenwasser 58345fc448 Merge branch 'master' into handleExtraObjectLiteralProperties
Conflicts:
	angular-ui-bootstrap/angular-ui-bootstrap-tests.ts
2015-08-17 12:28:46 -07:00
Daniel Rosenwasser e8c0ad7b0b IMetadata shouldn't extend Object in 'stripe'. 2015-08-10 16:51:53 -07:00
vvakame eba9f1e2ff remove unrequired .tscparams 2015-08-08 15:41:13 +09:00
Will Johnston 1711941290 fixing implicit any in stripe.d.ts, elminating duplicate variables between stripe and stripe-node 2015-04-13 11:19:08 -05:00
Will Johnston 4f63dbf41c renamed stripe-node/stripe-node -> stripe/stripe-node 2015-04-13 11:13:38 -05:00
ianschmitz 866c253cbd Update stripe.d.ts
Forgot to add "card" to the StripeStatic interface.
2014-12-11 11:11:03 -08:00
ianschmitz 7f3c985d43 Update stripe.d.ts
Edited definition file to align with: https://stripe.com/docs/stripe.js#createToken
2014-12-10 16:57:40 -08:00
Mohamed Hegazy 2aaa293cb1 Remove quotes from response files 2014-09-02 14:53:39 -07:00