|
| 1 | +package ee.sk.smartid.integration; |
| 2 | + |
| 3 | +/*- |
| 4 | + * #%L |
| 5 | + * Smart ID sample Java client |
| 6 | + * %% |
| 7 | + * Copyright (C) 2018 - 2026 SK ID Solutions AS |
| 8 | + * %% |
| 9 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 10 | + * of this software and associated documentation files (the "Software"), to deal |
| 11 | + * in the Software without restriction, including without limitation the rights |
| 12 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 13 | + * copies of the Software, and to permit persons to whom the Software is |
| 14 | + * furnished to do so, subject to the following conditions: |
| 15 | + * |
| 16 | + * The above copyright notice and this permission notice shall be included in |
| 17 | + * all copies or substantial portions of the Software. |
| 18 | + * |
| 19 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 20 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 21 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 22 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 23 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 24 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 25 | + * THE SOFTWARE. |
| 26 | + * #L% |
| 27 | + */ |
| 28 | + |
| 29 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 30 | + |
| 31 | +/** |
| 32 | + * Object to send to Smart-ID Mock service to simulate user-action in the Device Link flow. |
| 33 | + * |
| 34 | + * @param documentNumber Required. The document number of the user. |
| 35 | + * @param deviceLink Required. The device link URL generated for device link flow |
| 36 | + * @param flowType Required. Supported values QR, Web2App and App2App |
| 37 | + * @param browserCookie Required for Web2App and App2App flows. The browser cookie value for the session. |
| 38 | + * @param initialCallbackUrl Required for Web2App and App2App flows. The initial callback URL to which the user will be redirected. |
| 39 | + */ |
| 40 | +public record DeviceLinkMockRequest(String documentNumber, |
| 41 | + String deviceLink, |
| 42 | + String flowType, |
| 43 | + @JsonInclude(JsonInclude.Include.NON_EMPTY) String browserCookie, |
| 44 | + @JsonInclude(JsonInclude.Include.NON_EMPTY) String initialCallbackUrl) { |
| 45 | +} |
0 commit comments