@@ -42,6 +42,9 @@ public class SdkConfig {
42
42
@ JsonProperty (Property .ATTEMPTS_CONFIGURATION )
43
43
private final AttemptsConfiguration attemptsConfiguration ;
44
44
45
+ @ JsonProperty (Property .BRAND_ID )
46
+ private final String brandId ;
47
+
45
48
SdkConfig (String allowedCaptureMethods ,
46
49
String primaryColour ,
47
50
String secondaryColour ,
@@ -52,7 +55,7 @@ public class SdkConfig {
52
55
String errorUrl ,
53
56
String privacyPolicyUrl ,
54
57
Boolean allowHandoff ,
55
- AttemptsConfiguration attemptsConfiguration ) {
58
+ AttemptsConfiguration attemptsConfiguration , String brandId ) {
56
59
this .allowedCaptureMethods = allowedCaptureMethods ;
57
60
this .primaryColour = primaryColour ;
58
61
this .secondaryColour = secondaryColour ;
@@ -64,6 +67,7 @@ public class SdkConfig {
64
67
this .privacyPolicyUrl = privacyPolicyUrl ;
65
68
this .allowHandoff = allowHandoff ;
66
69
this .attemptsConfiguration = attemptsConfiguration ;
70
+ this .brandId = brandId ;
67
71
}
68
72
69
73
public static SdkConfig .Builder builder () {
@@ -169,6 +173,15 @@ public AttemptsConfiguration getAttemptsConfiguration() {
169
173
return attemptsConfiguration ;
170
174
}
171
175
176
+ /**
177
+ * The Brand ID to use for the session
178
+ *
179
+ * @return the configured brand ID
180
+ */
181
+ public String getBrandId () {
182
+ return brandId ;
183
+ }
184
+
172
185
/**
173
186
* Builder to assist in the creation of {@link SdkConfig}.
174
187
*/
@@ -185,6 +198,7 @@ public static class Builder {
185
198
private String privacyPolicyUrl ;
186
199
private Boolean allowHandoff ;
187
200
private AttemptsConfiguration attemptsConfiguration ;
201
+ private String brandId ;
188
202
189
203
private Builder () {}
190
204
@@ -327,6 +341,17 @@ public Builder withAttemptsConfiguration(AttemptsConfiguration attemptsConfigura
327
341
return this ;
328
342
}
329
343
344
+ /**
345
+ * Sets the brand ID to be used for the session
346
+ *
347
+ * @param brandId the brand ID
348
+ * @return the builder
349
+ */
350
+ public Builder withBrandId (String brandId ) {
351
+ this .brandId = brandId ;
352
+ return this ;
353
+ }
354
+
330
355
/**
331
356
* Builds the {@link SdkConfig} using the values supplied to the builder
332
357
*
@@ -344,7 +369,8 @@ public SdkConfig build() {
344
369
errorUrl ,
345
370
privacyPolicyUrl ,
346
371
allowHandoff ,
347
- attemptsConfiguration
372
+ attemptsConfiguration ,
373
+ brandId
348
374
);
349
375
}
350
376
}
@@ -362,6 +388,7 @@ private static final class Property {
362
388
private static final String PRIVACY_POLICY_URL = "privacy_policy_url" ;
363
389
private static final String ALLOW_HANDOFF = "allow_handoff" ;
364
390
private static final String ATTEMPTS_CONFIGURATION = "attempts_configuration" ;
391
+ private static final String BRAND_ID = "brand_id" ;
365
392
366
393
private Property () {}
367
394
0 commit comments