mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Added Amount and made some optional
Adjusted based off use on Stripe Element examples by Stripe on GitHub. It somewhat looks that TokenData could even be any object but not sure on this.
This commit is contained in:
Vendored
+7
-2
@@ -56,11 +56,16 @@ export interface TokenData {
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* The amount paid, not a decimal. In USD this is in cents.
|
||||
*/
|
||||
amount: number;
|
||||
|
||||
/**
|
||||
* Fields for billing address information.
|
||||
*/
|
||||
address_line1: string;
|
||||
address_line2: string;
|
||||
address_line2?: string;
|
||||
address_city: string;
|
||||
address_state: string;
|
||||
address_zip: string;
|
||||
@@ -69,7 +74,7 @@ export interface TokenData {
|
||||
* A two character country code identifying the country
|
||||
* @example 'US'
|
||||
*/
|
||||
address_country: string;
|
||||
address_country?: string;
|
||||
|
||||
/**
|
||||
* Used to add a card to an account
|
||||
|
||||
Reference in New Issue
Block a user