-
Notifications
You must be signed in to change notification settings - Fork 160
/
index.d.ts
80 lines (74 loc) · 2.21 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
declare module "react-stripe-checkout" {
export interface Card {
id: string
object: string
address_city: string | null
address_country: string | null
address_line1: string | null
address_line1_check: string | null
address_line2: string | null
address_state: string | null
address_zip: string | null
address_zip_check: string | null
brand: string
country: string
cvc_check: string
dynamic_last4: string | null
exp_month: number
exp_year: number
funding: string
last4: string
metadata: {}
name: string
tokenization_method: string | null
}
export interface Token {
id: string
object: string
card: Card
client_ip: string
created: number
email: string
livemode: boolean
type: string
used: boolean
}
export interface Address {
billing_address_city: string;
billing_address_country: string;
billing_address_country_code: string;
billing_address_line1: string;
billing_address_zip: string;
billing_name: string;
shipping_address_city?: string;
shipping_address_country?: string;
shipping_address_country_code?: string;
shipping_address_line1?: string;
shipping_address_zip?: string;
shipping_name?: string;
}
export interface StripeCheckoutProps {
token(token: Token, address?: Address)
stripeKey: string
label?: string
name?: string
ComponentClass?: string
description?: string
image?: string
panelLabel?: string
amount?: number
currency?: string
locale?: string
email?: string
shippingAddress?: boolean
billingAddress?: boolean
zipCode?: boolean
alipay?: boolean
bitcoin?: boolean
allowRememberMe?: boolean
reconfigureOnUpdate?: boolean
triggerEvent?: "onTouchTap" | "onClick" | "onTouchStart"
}
import React = require("react")
export default class StripeCheckout extends React.Component<StripeCheckoutProps, Object> {}
}