@stripe/stripe-js 3.0.7 → 3.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/dist/api/bank-accounts.d.mts +61 -0
  2. package/dist/api/bank-accounts.d.ts +61 -0
  3. package/dist/api/cards.d.mts +130 -0
  4. package/dist/api/cards.d.ts +130 -0
  5. package/dist/api/financial-connections.d.mts +232 -0
  6. package/dist/api/financial-connections.d.ts +232 -0
  7. package/dist/api/index.d.mts +11 -0
  8. package/dist/api/index.d.ts +11 -0
  9. package/dist/api/orders.d.mts +122 -0
  10. package/dist/api/orders.d.ts +122 -0
  11. package/dist/api/payment-intents.d.mts +330 -0
  12. package/dist/api/payment-intents.d.ts +330 -0
  13. package/dist/api/payment-methods.d.mts +452 -0
  14. package/dist/api/payment-methods.d.ts +452 -0
  15. package/dist/api/setup-intents.d.mts +184 -0
  16. package/dist/api/setup-intents.d.ts +184 -0
  17. package/dist/api/shared.d.mts +125 -0
  18. package/dist/api/shared.d.ts +125 -0
  19. package/dist/api/sources.d.mts +1045 -0
  20. package/dist/api/sources.d.ts +1045 -0
  21. package/dist/api/tokens.d.mts +639 -0
  22. package/dist/api/tokens.d.ts +639 -0
  23. package/dist/api/verification-sessions.d.mts +9 -0
  24. package/dist/api/verification-sessions.d.ts +9 -0
  25. package/dist/index.d.mts +4 -12782
  26. package/dist/index.d.ts +4 -12782
  27. package/dist/{stripe.js → index.js} +1 -1
  28. package/dist/{stripe.mjs → index.mjs} +1 -1
  29. package/dist/pure.d.mts +5 -0
  30. package/dist/pure.d.ts +5 -0
  31. package/dist/pure.js +204 -0
  32. package/dist/pure.mjs +200 -0
  33. package/dist/shared.d.mts +6 -0
  34. package/dist/shared.d.ts +6 -0
  35. package/dist/stripe-js/checkout.d.mts +153 -0
  36. package/dist/stripe-js/checkout.d.ts +153 -0
  37. package/dist/stripe-js/custom-checkout.d.mts +402 -0
  38. package/dist/stripe-js/custom-checkout.d.ts +402 -0
  39. package/dist/stripe-js/elements/address.d.mts +261 -0
  40. package/dist/stripe-js/elements/address.d.ts +261 -0
  41. package/dist/stripe-js/elements/affirm-message.d.mts +65 -0
  42. package/dist/stripe-js/elements/affirm-message.d.ts +65 -0
  43. package/dist/stripe-js/elements/afterpay-clearpay-message.d.mts +119 -0
  44. package/dist/stripe-js/elements/afterpay-clearpay-message.d.ts +119 -0
  45. package/dist/stripe-js/elements/apple-pay.d.mts +156 -0
  46. package/dist/stripe-js/elements/apple-pay.d.ts +156 -0
  47. package/dist/stripe-js/elements/au-bank-account.d.mts +138 -0
  48. package/dist/stripe-js/elements/au-bank-account.d.ts +138 -0
  49. package/dist/stripe-js/elements/base.d.mts +264 -0
  50. package/dist/stripe-js/elements/base.d.ts +264 -0
  51. package/dist/stripe-js/elements/card-cvc.d.mts +119 -0
  52. package/dist/stripe-js/elements/card-cvc.d.ts +119 -0
  53. package/dist/stripe-js/elements/card-expiry.d.mts +119 -0
  54. package/dist/stripe-js/elements/card-expiry.d.ts +119 -0
  55. package/dist/stripe-js/elements/card-number.d.mts +200 -0
  56. package/dist/stripe-js/elements/card-number.d.ts +200 -0
  57. package/dist/stripe-js/elements/card.d.mts +226 -0
  58. package/dist/stripe-js/elements/card.d.ts +226 -0
  59. package/dist/stripe-js/elements/cart.d.mts +224 -0
  60. package/dist/stripe-js/elements/cart.d.ts +224 -0
  61. package/dist/stripe-js/elements/eps-bank.d.mts +140 -0
  62. package/dist/stripe-js/elements/eps-bank.d.ts +140 -0
  63. package/dist/stripe-js/elements/express-checkout.d.mts +446 -0
  64. package/dist/stripe-js/elements/express-checkout.d.ts +446 -0
  65. package/dist/stripe-js/elements/fpx-bank.d.mts +134 -0
  66. package/dist/stripe-js/elements/fpx-bank.d.ts +134 -0
  67. package/dist/stripe-js/elements/iban.d.mts +135 -0
  68. package/dist/stripe-js/elements/iban.d.ts +135 -0
  69. package/dist/stripe-js/elements/ideal-bank.d.mts +140 -0
  70. package/dist/stripe-js/elements/ideal-bank.d.ts +140 -0
  71. package/dist/stripe-js/elements/index.d.mts +22 -0
  72. package/dist/stripe-js/elements/index.d.ts +22 -0
  73. package/dist/stripe-js/elements/issuing/index.d.mts +5 -0
  74. package/dist/stripe-js/elements/issuing/index.d.ts +5 -0
  75. package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.mts +37 -0
  76. package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.ts +37 -0
  77. package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.mts +32 -0
  78. package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.ts +32 -0
  79. package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.mts +32 -0
  80. package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.ts +32 -0
  81. package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.mts +40 -0
  82. package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.ts +40 -0
  83. package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.mts +32 -0
  84. package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.ts +32 -0
  85. package/dist/stripe-js/elements/link-authentication.d.mts +158 -0
  86. package/dist/stripe-js/elements/link-authentication.d.ts +158 -0
  87. package/dist/stripe-js/elements/p24-bank.d.mts +140 -0
  88. package/dist/stripe-js/elements/p24-bank.d.ts +140 -0
  89. package/dist/stripe-js/elements/payment-method-messaging.d.mts +98 -0
  90. package/dist/stripe-js/elements/payment-method-messaging.d.ts +98 -0
  91. package/dist/stripe-js/elements/payment-request-button.d.mts +151 -0
  92. package/dist/stripe-js/elements/payment-request-button.d.ts +151 -0
  93. package/dist/stripe-js/elements/payment.d.mts +275 -0
  94. package/dist/stripe-js/elements/payment.d.ts +275 -0
  95. package/dist/stripe-js/elements/shipping-address.d.mts +215 -0
  96. package/dist/stripe-js/elements/shipping-address.d.ts +215 -0
  97. package/dist/stripe-js/elements-group.d.mts +1129 -0
  98. package/dist/stripe-js/elements-group.d.ts +1129 -0
  99. package/dist/stripe-js/embedded-checkout.d.mts +35 -0
  100. package/dist/stripe-js/embedded-checkout.d.ts +35 -0
  101. package/dist/stripe-js/ephemeral-keys.d.mts +3 -0
  102. package/dist/stripe-js/ephemeral-keys.d.ts +3 -0
  103. package/dist/stripe-js/financial-connections.d.mts +19 -0
  104. package/dist/stripe-js/financial-connections.d.ts +19 -0
  105. package/dist/stripe-js/index.d.mts +13 -0
  106. package/dist/stripe-js/index.d.ts +13 -0
  107. package/dist/stripe-js/orders.d.mts +9 -0
  108. package/dist/stripe-js/orders.d.ts +9 -0
  109. package/dist/stripe-js/payment-intents.d.mts +1470 -0
  110. package/dist/stripe-js/payment-intents.d.ts +1470 -0
  111. package/dist/stripe-js/payment-request.d.mts +529 -0
  112. package/dist/stripe-js/payment-request.d.ts +529 -0
  113. package/dist/stripe-js/setup-intents.d.mts +250 -0
  114. package/dist/stripe-js/setup-intents.d.ts +250 -0
  115. package/dist/stripe-js/stripe.d.mts +1472 -0
  116. package/dist/stripe-js/stripe.d.ts +1472 -0
  117. package/dist/stripe-js/token-and-sources.d.mts +110 -0
  118. package/dist/stripe-js/token-and-sources.d.ts +110 -0
  119. package/dist/utils.d.mts +2 -0
  120. package/dist/utils.d.ts +2 -0
  121. package/lib/index.d.mts +1 -0
  122. package/lib/index.d.ts +1 -0
  123. package/lib/index.js +2 -0
  124. package/lib/index.mjs +1 -0
  125. package/package.json +11 -10
  126. package/pure/index.d.mts +1 -12761
  127. package/pure/index.d.ts +1 -12761
  128. package/pure/index.js +1 -204
  129. package/pure/index.mjs +1 -200
@@ -0,0 +1,156 @@
1
+ export type ApplePayRecurringPaymentRequestIntervalUnit =
2
+ | 'year'
3
+ | 'month'
4
+ | 'day'
5
+ | 'hour'
6
+ | 'minute';
7
+
8
+ export interface ApplePayLineItem {
9
+ /**
10
+ * A short, localized description of the line item.
11
+ */
12
+ label: string;
13
+
14
+ /**
15
+ * The amount in the currency's subunit (e.g. cents, yen, etc.)
16
+ */
17
+ amount: number;
18
+ }
19
+
20
+ export type ApplePayRegularBilling = ApplePayLineItem & {
21
+ /**
22
+ * The date of the first payment.
23
+ */
24
+ recurringPaymentStartDate?: Date;
25
+
26
+ /**
27
+ * The date of the final payment.
28
+ */
29
+ recurringPaymentEndDate?: Date;
30
+
31
+ /**
32
+ * The amount of time — in calendar units, such as day, month, or year — that represents a fraction of the total payment interval.
33
+ */
34
+ recurringPaymentIntervalUnit?: ApplePayRecurringPaymentRequestIntervalUnit;
35
+
36
+ /**
37
+ * The number of interval units that make up the total payment interval.
38
+ */
39
+ recurringPaymentIntervalCount?: number;
40
+ };
41
+
42
+ export interface ApplePayRecurringPaymentRequest {
43
+ /**
44
+ * The description of the payment that the customer will see in their Apple Pay wallet.
45
+ */
46
+ paymentDescription: string;
47
+
48
+ /**
49
+ * The URL to manage items related to the recurring payment on your website.
50
+ */
51
+ managementURL: string;
52
+ regularBilling: ApplePayRegularBilling;
53
+
54
+ /**
55
+ * The billing agreement label that is displayed to the customer in the Apple Pay payment interface.
56
+ */
57
+ billingAgreement?: string;
58
+ }
59
+
60
+ export type ApplePayAutomaticReloadBilling = ApplePayLineItem & {
61
+ /**
62
+ * The balance an account reaches before the merchant applies the automatic reload amount.
63
+ */
64
+ automaticReloadPaymentThresholdAmount: number;
65
+ };
66
+
67
+ export interface ApplePayAutomaticReloadPaymentRequest {
68
+ /**
69
+ * The description of the payment that the customer will see in their Apple Pay wallet.
70
+ */
71
+ paymentDescription: string;
72
+
73
+ /**
74
+ * The URL to manage items related to the automatic reload payment on your website.
75
+ */
76
+ managementURL: string;
77
+ automaticReloadBilling: ApplePayAutomaticReloadBilling;
78
+
79
+ /**
80
+ * The billing agreement label that is displayed to the customer in the Apple Pay payment interface.
81
+ */
82
+ billingAgreement?: string;
83
+ }
84
+
85
+ export type ApplePayDeferredBilling = ApplePayLineItem & {
86
+ /**
87
+ * The date, in the future, of the payment.
88
+ */
89
+ deferredPaymentDate: Date;
90
+ };
91
+
92
+ export interface ApplePayDeferredPaymentRequest {
93
+ /**
94
+ * The description of the payment that the customer will see in their Apple Pay wallet.
95
+ */
96
+ paymentDescription: string;
97
+
98
+ /**
99
+ * The URL to manage items related to the deferred payment on your website.
100
+ */
101
+ managementURL: string;
102
+ deferredBilling: ApplePayDeferredBilling;
103
+
104
+ /**
105
+ * The billing agreement label that is displayed to the customer in the Apple Pay payment interface.
106
+ */
107
+ billingAgreement?: string;
108
+
109
+ /**
110
+ * The future date before which the customer can cancel the deferred payment for free.
111
+ */
112
+ freeCancellationDate?: Date;
113
+
114
+ /**
115
+ * The time zone of the free cancellation date.
116
+ *
117
+ * These are [tz](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) timezones such as `America/Los_Angeles`, `Europe/Dublin`, and `Asia/Singapore`.
118
+ */
119
+ freeCancellationDateTimeZone?: string;
120
+ }
121
+
122
+ export type ApplePayOption =
123
+ | {
124
+ recurringPaymentRequest: ApplePayRecurringPaymentRequest;
125
+ deferredPaymentRequest?: null;
126
+ automaticReloadPaymentRequest?: null;
127
+ }
128
+ | {
129
+ recurringPaymentRequest?: null;
130
+ deferredPaymentRequest: ApplePayDeferredPaymentRequest;
131
+ automaticReloadPaymentRequest?: null;
132
+ }
133
+ | {
134
+ recurringPaymentRequest?: null;
135
+ deferredPaymentRequest?: null;
136
+ automaticReloadPaymentRequest: ApplePayAutomaticReloadPaymentRequest;
137
+ }
138
+ | {
139
+ recurringPaymentRequest?: null;
140
+ deferredPaymentRequest?: null;
141
+ automaticReloadPaymentRequest?: null;
142
+ };
143
+
144
+ export type ApplePayUpdateOption =
145
+ | {
146
+ recurringPaymentRequest: ApplePayRecurringPaymentRequest;
147
+ automaticReloadPaymentRequest?: null;
148
+ }
149
+ | {
150
+ recurringPaymentRequest?: null;
151
+ automaticReloadPaymentRequest: ApplePayAutomaticReloadPaymentRequest;
152
+ }
153
+ | {
154
+ recurringPaymentRequest?: null;
155
+ automaticReloadPaymentRequest?: null;
156
+ };
@@ -0,0 +1,156 @@
1
+ export type ApplePayRecurringPaymentRequestIntervalUnit =
2
+ | 'year'
3
+ | 'month'
4
+ | 'day'
5
+ | 'hour'
6
+ | 'minute';
7
+
8
+ export interface ApplePayLineItem {
9
+ /**
10
+ * A short, localized description of the line item.
11
+ */
12
+ label: string;
13
+
14
+ /**
15
+ * The amount in the currency's subunit (e.g. cents, yen, etc.)
16
+ */
17
+ amount: number;
18
+ }
19
+
20
+ export type ApplePayRegularBilling = ApplePayLineItem & {
21
+ /**
22
+ * The date of the first payment.
23
+ */
24
+ recurringPaymentStartDate?: Date;
25
+
26
+ /**
27
+ * The date of the final payment.
28
+ */
29
+ recurringPaymentEndDate?: Date;
30
+
31
+ /**
32
+ * The amount of time — in calendar units, such as day, month, or year — that represents a fraction of the total payment interval.
33
+ */
34
+ recurringPaymentIntervalUnit?: ApplePayRecurringPaymentRequestIntervalUnit;
35
+
36
+ /**
37
+ * The number of interval units that make up the total payment interval.
38
+ */
39
+ recurringPaymentIntervalCount?: number;
40
+ };
41
+
42
+ export interface ApplePayRecurringPaymentRequest {
43
+ /**
44
+ * The description of the payment that the customer will see in their Apple Pay wallet.
45
+ */
46
+ paymentDescription: string;
47
+
48
+ /**
49
+ * The URL to manage items related to the recurring payment on your website.
50
+ */
51
+ managementURL: string;
52
+ regularBilling: ApplePayRegularBilling;
53
+
54
+ /**
55
+ * The billing agreement label that is displayed to the customer in the Apple Pay payment interface.
56
+ */
57
+ billingAgreement?: string;
58
+ }
59
+
60
+ export type ApplePayAutomaticReloadBilling = ApplePayLineItem & {
61
+ /**
62
+ * The balance an account reaches before the merchant applies the automatic reload amount.
63
+ */
64
+ automaticReloadPaymentThresholdAmount: number;
65
+ };
66
+
67
+ export interface ApplePayAutomaticReloadPaymentRequest {
68
+ /**
69
+ * The description of the payment that the customer will see in their Apple Pay wallet.
70
+ */
71
+ paymentDescription: string;
72
+
73
+ /**
74
+ * The URL to manage items related to the automatic reload payment on your website.
75
+ */
76
+ managementURL: string;
77
+ automaticReloadBilling: ApplePayAutomaticReloadBilling;
78
+
79
+ /**
80
+ * The billing agreement label that is displayed to the customer in the Apple Pay payment interface.
81
+ */
82
+ billingAgreement?: string;
83
+ }
84
+
85
+ export type ApplePayDeferredBilling = ApplePayLineItem & {
86
+ /**
87
+ * The date, in the future, of the payment.
88
+ */
89
+ deferredPaymentDate: Date;
90
+ };
91
+
92
+ export interface ApplePayDeferredPaymentRequest {
93
+ /**
94
+ * The description of the payment that the customer will see in their Apple Pay wallet.
95
+ */
96
+ paymentDescription: string;
97
+
98
+ /**
99
+ * The URL to manage items related to the deferred payment on your website.
100
+ */
101
+ managementURL: string;
102
+ deferredBilling: ApplePayDeferredBilling;
103
+
104
+ /**
105
+ * The billing agreement label that is displayed to the customer in the Apple Pay payment interface.
106
+ */
107
+ billingAgreement?: string;
108
+
109
+ /**
110
+ * The future date before which the customer can cancel the deferred payment for free.
111
+ */
112
+ freeCancellationDate?: Date;
113
+
114
+ /**
115
+ * The time zone of the free cancellation date.
116
+ *
117
+ * These are [tz](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) timezones such as `America/Los_Angeles`, `Europe/Dublin`, and `Asia/Singapore`.
118
+ */
119
+ freeCancellationDateTimeZone?: string;
120
+ }
121
+
122
+ export type ApplePayOption =
123
+ | {
124
+ recurringPaymentRequest: ApplePayRecurringPaymentRequest;
125
+ deferredPaymentRequest?: null;
126
+ automaticReloadPaymentRequest?: null;
127
+ }
128
+ | {
129
+ recurringPaymentRequest?: null;
130
+ deferredPaymentRequest: ApplePayDeferredPaymentRequest;
131
+ automaticReloadPaymentRequest?: null;
132
+ }
133
+ | {
134
+ recurringPaymentRequest?: null;
135
+ deferredPaymentRequest?: null;
136
+ automaticReloadPaymentRequest: ApplePayAutomaticReloadPaymentRequest;
137
+ }
138
+ | {
139
+ recurringPaymentRequest?: null;
140
+ deferredPaymentRequest?: null;
141
+ automaticReloadPaymentRequest?: null;
142
+ };
143
+
144
+ export type ApplePayUpdateOption =
145
+ | {
146
+ recurringPaymentRequest: ApplePayRecurringPaymentRequest;
147
+ automaticReloadPaymentRequest?: null;
148
+ }
149
+ | {
150
+ recurringPaymentRequest?: null;
151
+ automaticReloadPaymentRequest: ApplePayAutomaticReloadPaymentRequest;
152
+ }
153
+ | {
154
+ recurringPaymentRequest?: null;
155
+ automaticReloadPaymentRequest?: null;
156
+ };
@@ -0,0 +1,138 @@
1
+ import {
2
+ StripeElementBase,
3
+ StripeElementStyle,
4
+ StripeElementClasses,
5
+ StripeElementChangeEvent,
6
+ } from './base';
7
+
8
+ export type StripeAuBankAccountElement = StripeElementBase & {
9
+ /**
10
+ * The change event is triggered when the `Element`'s value changes.
11
+ */
12
+ on(
13
+ eventType: 'change',
14
+ handler: (event: StripeAuBankAccountElementChangeEvent) => any
15
+ ): StripeAuBankAccountElement;
16
+ once(
17
+ eventType: 'change',
18
+ handler: (event: StripeAuBankAccountElementChangeEvent) => any
19
+ ): StripeAuBankAccountElement;
20
+ off(
21
+ eventType: 'change',
22
+ handler?: (event: StripeAuBankAccountElementChangeEvent) => any
23
+ ): StripeAuBankAccountElement;
24
+
25
+ /**
26
+ * Triggered when the element is fully rendered and can accept `element.focus` calls.
27
+ */
28
+ on(
29
+ eventType: 'ready',
30
+ handler: (event: {elementType: 'auBankAccount'}) => any
31
+ ): StripeAuBankAccountElement;
32
+ once(
33
+ eventType: 'ready',
34
+ handler: (event: {elementType: 'auBankAccount'}) => any
35
+ ): StripeAuBankAccountElement;
36
+ off(
37
+ eventType: 'ready',
38
+ handler?: (event: {elementType: 'auBankAccount'}) => any
39
+ ): StripeAuBankAccountElement;
40
+
41
+ /**
42
+ * Triggered when the element gains focus.
43
+ */
44
+ on(
45
+ eventType: 'focus',
46
+ handler: (event: {elementType: 'auBankAccount'}) => any
47
+ ): StripeAuBankAccountElement;
48
+ once(
49
+ eventType: 'focus',
50
+ handler: (event: {elementType: 'auBankAccount'}) => any
51
+ ): StripeAuBankAccountElement;
52
+ off(
53
+ eventType: 'focus',
54
+ handler?: (event: {elementType: 'auBankAccount'}) => any
55
+ ): StripeAuBankAccountElement;
56
+
57
+ /**
58
+ * Triggered when the element loses focus.
59
+ */
60
+ on(
61
+ eventType: 'blur',
62
+ handler: (event: {elementType: 'auBankAccount'}) => any
63
+ ): StripeAuBankAccountElement;
64
+ once(
65
+ eventType: 'blur',
66
+ handler: (event: {elementType: 'auBankAccount'}) => any
67
+ ): StripeAuBankAccountElement;
68
+ off(
69
+ eventType: 'blur',
70
+ handler?: (event: {elementType: 'auBankAccount'}) => any
71
+ ): StripeAuBankAccountElement;
72
+
73
+ /**
74
+ * Triggered when the escape key is pressed within the element.
75
+ */
76
+ on(
77
+ eventType: 'escape',
78
+ handler: (event: {elementType: 'auBankAccount'}) => any
79
+ ): StripeAuBankAccountElement;
80
+ once(
81
+ eventType: 'escape',
82
+ handler: (event: {elementType: 'auBankAccount'}) => any
83
+ ): StripeAuBankAccountElement;
84
+ off(
85
+ eventType: 'escape',
86
+ handler?: (event: {elementType: 'auBankAccount'}) => any
87
+ ): StripeAuBankAccountElement;
88
+
89
+ /**
90
+ * Updates the options the `AuBankAccountElement` was initialized with.
91
+ * Updates are merged into the existing configuration.
92
+ *
93
+ * The styles of an `AuBankAccountElement` can be dynamically changed using `element.update`.
94
+ * This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
95
+ */
96
+ update(options: Partial<StripeAuBankAccountElementOptions>): void;
97
+ };
98
+
99
+ export interface StripeAuBankAccountElementOptions {
100
+ classes?: StripeElementClasses;
101
+
102
+ style?: StripeElementStyle;
103
+
104
+ /**
105
+ * Appearance of the icon in the Element.
106
+ */
107
+ iconStyle?: 'default' | 'solid';
108
+
109
+ /**
110
+ * Hides the icon in the Element.
111
+ * Default is `false`.
112
+ */
113
+ hideIcon?: boolean;
114
+
115
+ /**
116
+ * Applies a disabled state to the Element such that user input is not accepted.
117
+ * Default is false.
118
+ */
119
+ disabled?: boolean;
120
+ }
121
+
122
+ export interface StripeAuBankAccountElementChangeEvent
123
+ extends StripeElementChangeEvent {
124
+ /**
125
+ * The type of element that emitted this event.
126
+ */
127
+ elementType: 'auBankAccount';
128
+
129
+ /**
130
+ * The bank name corresponding to the entered BSB.
131
+ */
132
+ bankName?: string;
133
+
134
+ /**
135
+ * The branch name corresponding to the entered BSB.
136
+ */
137
+ branchName?: string;
138
+ }
@@ -0,0 +1,138 @@
1
+ import {
2
+ StripeElementBase,
3
+ StripeElementStyle,
4
+ StripeElementClasses,
5
+ StripeElementChangeEvent,
6
+ } from './base';
7
+
8
+ export type StripeAuBankAccountElement = StripeElementBase & {
9
+ /**
10
+ * The change event is triggered when the `Element`'s value changes.
11
+ */
12
+ on(
13
+ eventType: 'change',
14
+ handler: (event: StripeAuBankAccountElementChangeEvent) => any
15
+ ): StripeAuBankAccountElement;
16
+ once(
17
+ eventType: 'change',
18
+ handler: (event: StripeAuBankAccountElementChangeEvent) => any
19
+ ): StripeAuBankAccountElement;
20
+ off(
21
+ eventType: 'change',
22
+ handler?: (event: StripeAuBankAccountElementChangeEvent) => any
23
+ ): StripeAuBankAccountElement;
24
+
25
+ /**
26
+ * Triggered when the element is fully rendered and can accept `element.focus` calls.
27
+ */
28
+ on(
29
+ eventType: 'ready',
30
+ handler: (event: {elementType: 'auBankAccount'}) => any
31
+ ): StripeAuBankAccountElement;
32
+ once(
33
+ eventType: 'ready',
34
+ handler: (event: {elementType: 'auBankAccount'}) => any
35
+ ): StripeAuBankAccountElement;
36
+ off(
37
+ eventType: 'ready',
38
+ handler?: (event: {elementType: 'auBankAccount'}) => any
39
+ ): StripeAuBankAccountElement;
40
+
41
+ /**
42
+ * Triggered when the element gains focus.
43
+ */
44
+ on(
45
+ eventType: 'focus',
46
+ handler: (event: {elementType: 'auBankAccount'}) => any
47
+ ): StripeAuBankAccountElement;
48
+ once(
49
+ eventType: 'focus',
50
+ handler: (event: {elementType: 'auBankAccount'}) => any
51
+ ): StripeAuBankAccountElement;
52
+ off(
53
+ eventType: 'focus',
54
+ handler?: (event: {elementType: 'auBankAccount'}) => any
55
+ ): StripeAuBankAccountElement;
56
+
57
+ /**
58
+ * Triggered when the element loses focus.
59
+ */
60
+ on(
61
+ eventType: 'blur',
62
+ handler: (event: {elementType: 'auBankAccount'}) => any
63
+ ): StripeAuBankAccountElement;
64
+ once(
65
+ eventType: 'blur',
66
+ handler: (event: {elementType: 'auBankAccount'}) => any
67
+ ): StripeAuBankAccountElement;
68
+ off(
69
+ eventType: 'blur',
70
+ handler?: (event: {elementType: 'auBankAccount'}) => any
71
+ ): StripeAuBankAccountElement;
72
+
73
+ /**
74
+ * Triggered when the escape key is pressed within the element.
75
+ */
76
+ on(
77
+ eventType: 'escape',
78
+ handler: (event: {elementType: 'auBankAccount'}) => any
79
+ ): StripeAuBankAccountElement;
80
+ once(
81
+ eventType: 'escape',
82
+ handler: (event: {elementType: 'auBankAccount'}) => any
83
+ ): StripeAuBankAccountElement;
84
+ off(
85
+ eventType: 'escape',
86
+ handler?: (event: {elementType: 'auBankAccount'}) => any
87
+ ): StripeAuBankAccountElement;
88
+
89
+ /**
90
+ * Updates the options the `AuBankAccountElement` was initialized with.
91
+ * Updates are merged into the existing configuration.
92
+ *
93
+ * The styles of an `AuBankAccountElement` can be dynamically changed using `element.update`.
94
+ * This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
95
+ */
96
+ update(options: Partial<StripeAuBankAccountElementOptions>): void;
97
+ };
98
+
99
+ export interface StripeAuBankAccountElementOptions {
100
+ classes?: StripeElementClasses;
101
+
102
+ style?: StripeElementStyle;
103
+
104
+ /**
105
+ * Appearance of the icon in the Element.
106
+ */
107
+ iconStyle?: 'default' | 'solid';
108
+
109
+ /**
110
+ * Hides the icon in the Element.
111
+ * Default is `false`.
112
+ */
113
+ hideIcon?: boolean;
114
+
115
+ /**
116
+ * Applies a disabled state to the Element such that user input is not accepted.
117
+ * Default is false.
118
+ */
119
+ disabled?: boolean;
120
+ }
121
+
122
+ export interface StripeAuBankAccountElementChangeEvent
123
+ extends StripeElementChangeEvent {
124
+ /**
125
+ * The type of element that emitted this event.
126
+ */
127
+ elementType: 'auBankAccount';
128
+
129
+ /**
130
+ * The bank name corresponding to the entered BSB.
131
+ */
132
+ bankName?: string;
133
+
134
+ /**
135
+ * The branch name corresponding to the entered BSB.
136
+ */
137
+ branchName?: string;
138
+ }