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:
Matt Ferderer
2018-11-21 23:50:31 -06:00
committed by GitHub
parent ea53c3b13d
commit 3f00b0355d
+7 -2
View File
@@ -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