-
Notifications
You must be signed in to change notification settings - Fork 997
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Saves the selfie uploaded file IDs and metadata
- Loading branch information
1 parent
eb524bc
commit 12af6ba
Showing
18 changed files
with
251 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...tity/Source/API Bindings/Models/VerificationPageDataUpdate/VerificationPageDataFace.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// | ||
// VerificationPageDataFace.swift | ||
// StripeIdentity | ||
// | ||
// Created by Mel Ludowise on 6/10/22. | ||
// | ||
|
||
import Foundation | ||
@_spi(STP) import StripeCore | ||
|
||
extension StripeAPI { | ||
struct VerificationPageDataFace: Encodable, Equatable { | ||
|
||
/// File ID of uploaded image for best selfie frame. This will be cropped to the bounds of the face in the image. | ||
let bestHighResImage: String | ||
/// File ID of uploaded image for best selfie frame. This will be un-cropped. | ||
let bestLowResImage: String | ||
/// File ID of uploaded image for first selfie frame. This will be cropped to the bounds of the face in the image. | ||
let firstHighResImage: String | ||
/// File ID of uploaded image for first selfie frame. This will be un-cropped. | ||
let firstLowResImage: String | ||
/// File ID of uploaded image for last selfie frame. This will be cropped to the bounds of the face in the image. | ||
let lastHighResImage: String | ||
/// File ID of uploaded image for last selfie frame. This will be un-cropped. | ||
let lastLowResImage: String | ||
/// FaceDetector score for the best selfie frame. | ||
let bestFaceScore: TwoDecimalFloat | ||
/// Variance of the FaceDetector scores over all selfie frames. | ||
let faceScoreVariance: TwoDecimalFloat | ||
/// The total number of selfie frames taken. | ||
let numFrames: Int | ||
/// Camera brightness value for the best selfie frame. | ||
let bestBrightnessValue: TwoDecimalFloat? | ||
/// Camera lens model for the best selfie frame. | ||
let bestCameraLensModel: String? | ||
/// Camera exposure duration for the best selfie frame. | ||
let bestExposureDuration: Int? | ||
/// Camera exposure ISO for the best selfie frame | ||
let bestExposureIso: TwoDecimalFloat? | ||
/// Camera focal length for the best selfie frame. | ||
let bestFocalLength: TwoDecimalFloat? | ||
/// If the best selfie frame was taken by a virtual camera. | ||
let bestIsVirtualCamera: Bool? | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.