judokit-react-native 3.4.7 → 3.5.0

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.
@@ -15,33 +15,34 @@ export interface JudoConfiguration {
15
15
  googlePayConfiguration?: JudoGooglePayConfiguration
16
16
  pbbaConfiguration?: JudoPBBAConfiguration
17
17
  isInitialRecurringPayment?: boolean
18
- networkTimeout?: NetworkTimeout,
19
- challengeRequestIndicator?: ChallengeRequestIndicator,
20
- scaExemption?: ScaExemption,
21
- mobileNumber?: string,
22
- phoneCountryCode?: string,
23
- emailAddress?: string,
24
- threeDSTwoMaxTimeout?: string,
18
+ networkTimeout?: NetworkTimeout
19
+ challengeRequestIndicator?: ChallengeRequestIndicator
20
+ scaExemption?: ScaExemption
21
+ mobileNumber?: string
22
+ phoneCountryCode?: string
23
+ emailAddress?: string
24
+ threeDSTwoMaxTimeout?: number
25
25
  threeDSTwoMessageVersion?: string
26
+ isDelayedAuthorisation?: boolean
26
27
  }
27
28
 
28
29
  export enum ChallengeRequestIndicator {
29
- NoPreference = "noPreference",
30
- NoChallenge = "noChallenge",
31
- ChallengePreferred = "challengePreferred",
32
- ChallengeAsMandate = "challengeAsMandate"
30
+ NoPreference = 'noPreference',
31
+ NoChallenge = 'noChallenge',
32
+ ChallengePreferred = 'challengePreferred',
33
+ ChallengeAsMandate = 'challengeAsMandate'
33
34
  }
34
35
 
35
36
  export enum ScaExemption {
36
- LowValue = "lowValue",
37
- SecureCorporate = "secureCorporate",
38
- TrustedBeneficiary = "trustedBeneficiary",
39
- TransactionRiskAnalysis = "transactionRiskAnalysis"
37
+ LowValue = 'lowValue',
38
+ SecureCorporate = 'secureCorporate',
39
+ TrustedBeneficiary = 'trustedBeneficiary',
40
+ TransactionRiskAnalysis = 'transactionRiskAnalysis'
40
41
  }
41
42
 
42
43
  export interface NetworkTimeout {
43
- connectTimeout?: number,
44
- readTimeout?: number,
44
+ connectTimeout?: number
45
+ readTimeout?: number
45
46
  writeTimeout?: number
46
47
  }
47
48
 
@@ -82,6 +83,59 @@ export interface JudoAddress {
82
83
  postCode?: string
83
84
  town?: string
84
85
  countryCode?: number
86
+ state?: string
87
+ }
88
+
89
+ export interface JudoThreeDSToolbarCustomization {
90
+ backgroundColor?: string
91
+ headerText?: string
92
+ buttonText?: string
93
+ textFontName?: string
94
+ textColor?: string
95
+ textFontSize?: number
96
+ }
97
+
98
+ export interface JudoThreeDSLabelCustomization {
99
+ headingTextFontName?: string
100
+ headingTextColor?: string
101
+ headingTextFontSize?: number
102
+ textFontName?: string
103
+ textColor?: string
104
+ textFontSize?: number
105
+ }
106
+
107
+ export interface JudoThreeDSTextBoxCustomization {
108
+ borderWidth?: number
109
+ borderColor?: string
110
+ cornerRadius?: number
111
+ textFontName?: string
112
+ textColor?: string
113
+ textFontSize?: number
114
+ }
115
+
116
+ export enum JudoThreeDSButtonType {
117
+ SUBMIT = 'SUBMIT',
118
+ CONTINUE = 'CONTINUE',
119
+ NEXT = 'NEXT',
120
+ CANCEL = 'CANCEL',
121
+ RESEND = 'RESEND'
122
+ }
123
+
124
+ export interface JudoThreeDSButtonCustomization {
125
+ backgroundColor?: string
126
+ cornerRadius?: number
127
+ textFontName?: string
128
+ textColor?: string
129
+ textFontSize?: number
130
+ }
131
+
132
+ export interface JudoThreeDSUIConfiguration {
133
+ buttonCustomizations?: Partial<
134
+ Record<JudoThreeDSButtonType, JudoThreeDSButtonCustomization>
135
+ >
136
+ toolbarCustomization?: JudoThreeDSToolbarCustomization
137
+ labelCustomization?: JudoThreeDSLabelCustomization
138
+ textBoxCustomization?: JudoThreeDSTextBoxCustomization
85
139
  }
86
140
 
87
141
  export interface JudoUIConfiguration {
@@ -91,6 +145,7 @@ export interface JudoUIConfiguration {
91
145
  shouldPaymentMethodsVerifySecurityCode: boolean
92
146
  shouldAskForBillingInformation?: boolean
93
147
  theme?: JudoTheme
148
+ threeDSUIConfiguration?: JudoThreeDSUIConfiguration
94
149
  }
95
150
 
96
151
  export interface JudoTheme {