|
1 | 1 | import { ComponentFocusObject, AddressData, BrowserInfo } from '../../types/global-types';
|
2 | 2 | import {
|
3 |
| - CbObjOnBinValue, |
4 |
| - CbObjOnBrand, |
5 |
| - CbObjOnConfigSuccess, |
6 |
| - CbObjOnFieldValid, |
7 |
| - CbObjOnFocus, |
8 |
| - CbObjOnLoad, |
9 |
| - CbObjOnBinLookup, |
| 3 | + CardBinValueData, |
| 4 | + CardBrandData, |
| 5 | + CardConfigSuccessData, |
| 6 | + CardFieldValidData, |
| 7 | + CardFocusData, |
| 8 | + CardLoadData, |
| 9 | + CardBinLookupData, |
10 | 10 | StylesObject
|
11 | 11 | } from '../internal/SecuredFields/lib/types';
|
12 |
| -import { CVCPolicyType, DatePolicyType, CbObjOnAllValid } from '../internal/SecuredFields/lib/types'; |
| 12 | +import { CVCPolicyType, DatePolicyType, CardAllValidData } from '../internal/SecuredFields/lib/types'; |
13 | 13 | import { ClickToPayProps } from '../internal/ClickToPay/types';
|
14 | 14 | import { InstallmentOptions } from './components/CardInput/components/types';
|
15 | 15 | import { DisclaimerMsgObject } from '../internal/DisclaimerMessage/DisclaimerMessage';
|
@@ -274,56 +274,56 @@ export interface CardConfiguration extends UIElementProps {
|
274 | 274 | * After binLookup call - provides the brand(s) we detect the user is entering, and if we support the brand(s)
|
275 | 275 | * - merchant set config option
|
276 | 276 | */
|
277 |
| - onBinLookup?: (event: CbObjOnBinLookup) => void; |
| 277 | + onBinLookup?: (event: CardBinLookupData) => void; |
278 | 278 |
|
279 | 279 | /**
|
280 | 280 | * Provides the BIN Number of the card (up to 6 digits), called as the user types in the PAN.
|
281 | 281 | * - merchant set config option
|
282 | 282 | */
|
283 |
| - onBinValue?: (event: CbObjOnBinValue) => void; |
| 283 | + onBinValue?: (event: CardBinValueData) => void; |
284 | 284 |
|
285 | 285 | /**
|
286 | 286 | * Called when a field loses focus.
|
287 | 287 | * - merchant set config option
|
288 | 288 | */
|
289 |
| - onBlur?: (event: CbObjOnFocus | ComponentFocusObject) => void; |
| 289 | + onBlur?: (event: CardFocusData | ComponentFocusObject) => void; |
290 | 290 |
|
291 | 291 | /**
|
292 | 292 | * Called once we detect the card brand.
|
293 | 293 | * - merchant set config option
|
294 | 294 | */
|
295 |
| - onBrand?: (event: CbObjOnBrand) => void; |
| 295 | + onBrand?: (event: CardBrandData) => void; |
296 | 296 |
|
297 | 297 | /**
|
298 | 298 | * Called once the card input fields are ready to use.
|
299 | 299 | * - merchant set config option
|
300 | 300 | */
|
301 |
| - onConfigSuccess?: (event: CbObjOnConfigSuccess) => void; |
| 301 | + onConfigSuccess?: (event: CardConfigSuccessData) => void; |
302 | 302 |
|
303 | 303 | /**
|
304 | 304 | * Called when *all* the securedFields becomes valid
|
305 | 305 | * Also called again if one of the fields moves out of validity.
|
306 | 306 | */
|
307 |
| - onAllValid?: (event: CbObjOnAllValid) => void; |
| 307 | + onAllValid?: (event: CardAllValidData) => void; |
308 | 308 |
|
309 | 309 | /**
|
310 | 310 | * Called when a field becomes valid and also if a valid field changes and becomes invalid.
|
311 | 311 | * For the card number field, it returns the last 4 digits of the card number.
|
312 | 312 | * - merchant set config option
|
313 | 313 | */
|
314 |
| - onFieldValid?: (event: CbObjOnFieldValid) => void; |
| 314 | + onFieldValid?: (event: CardFieldValidData) => void; |
315 | 315 |
|
316 | 316 | /**
|
317 | 317 | * Called when a field gains focus.
|
318 | 318 | * - merchant set config option
|
319 | 319 | */
|
320 |
| - onFocus?: (event: CbObjOnFocus | ComponentFocusObject) => void; |
| 320 | + onFocus?: (event: CardFocusData | ComponentFocusObject) => void; |
321 | 321 |
|
322 | 322 | /**
|
323 | 323 | * Called once all the card input fields have been created but are not yet ready to use.
|
324 | 324 | * - merchant set config option
|
325 | 325 | */
|
326 |
| - onLoad?: (event: CbObjOnLoad) => void; |
| 326 | + onLoad?: (event: CardLoadData) => void; |
327 | 327 |
|
328 | 328 | /**
|
329 | 329 | * Configure placeholder text for holderName, cardNumber, expirationDate, securityCode and password.
|
|
0 commit comments