Skip to content

Commit

Permalink
Update Identity API models (#829)
Browse files Browse the repository at this point in the history
Regenerated API models using swagger codegen.

* Removes welcome screen
* Adds timeEstimate and privacyPolicy to consent screen model
  • Loading branch information
mludowise-stripe authored Mar 4, 2022
1 parent 1ab6bc4 commit 41b3610
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ struct VerificationPage: StripeDecodable, Equatable {
let success: VerificationPageStaticContentTextPage
/** If true, the client cannot support the VerificationSession. */
let unsupportedClient: Bool
let welcome: VerificationPageStaticContentTextPage

var _allResponseFieldsStorage: NonEncodableParameters?
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ struct VerificationPageStaticContentConsentPage: StripeDecodable, Equatable {
let acceptButtonText: String
let body: String
let declineButtonText: String
let privacyPolicy: String
let timeEstimate: String
let title: String
var _allResponseFieldsStorage: NonEncodableParameters?
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
//
// VerificationPageData.swift
// StripeIdentity
// VerificationPageData.swift
//
// Created by Mel Ludowise on 11/2/21.
// Generated by swagger-codegen
// https://github.com/swagger-api/swagger-codegen
//

import Foundation
@_spi(STP) import StripeCore

/// VerificationPageData contains the state of a verification, including what information
/// needs to be collected to complete the verification flow.

/** VerificationPageData contains the state of a verification, including what information needs to be collected to complete the verification flow. */

struct VerificationPageData: StripeDecodable, Equatable {
typealias Status = VerificationPage.Status

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
//
// VerificationPageDataRequirementError.swift
// StripeIdentity
// VerificationPageDataRequirementError.swift
//
// Created by Mel Ludowise on 11/2/21.
// Generated by swagger-codegen
// https://github.com/swagger-api/swagger-codegen
//

import Foundation
@_spi(STP) import StripeCore



struct VerificationPageDataRequirementError: StripeDecodable, Equatable {
typealias Requirement = VerificationPageRequirements.Missing

let body: String
let buttonText: String?
let requirement: Requirement
let title: String
let title: String?

var _allResponseFieldsStorage: NonEncodableParameters?
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
//
// VerificationPageDataRequirements.swift
// StripeIdentity
// VerificationPageDataRequirements.swift
//
// Created by Mel Ludowise on 11/2/21.
// Generated by swagger-codegen
// https://github.com/swagger-api/swagger-codegen
//

import Foundation
@_spi(STP) import StripeCore



struct VerificationPageDataRequirements: StripeDecodable, Equatable {

typealias Missing = VerificationPageRequirements.Missing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ enum VerificationPageMock: String, MockData {
submitted: originalResponse.submitted,
success: originalResponse.success,
unsupportedClient: originalResponse.unsupportedClient,
welcome: originalResponse.welcome,
_allResponseFieldsStorage: nil
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"accept_button_text": "Accept and continue",
"body": "<p><b>How Stripe will verify your data</b></p><p>Stripe will use biometric technology (on images of you and your IDs) and other data sources to confirm your identity and for fraud and security purposes.</p><p><b><a href=\"https://stripe.com\">Learn about Stripe</a></b></p><p><b><a href=\"https://stripe.com\">Learn how Stripe Identity works</a></b></p>",
"decline_button_text": "No, don't verify",
"privacy_policy": "Data will be stored and may be used according to the Stripe <a href='https://stripe.com'>Privacy Policy</a> and <a href='https://stripe.com'>Rocket Rides</a> Privacy Policy.",
"time_estimate": "Takes about 1–2 minutes",
"title": "How Stripe will verify your identity"
},
"document_capture": {
Expand Down Expand Up @@ -45,10 +47,5 @@
"button_text": "Complete",
"title": "Verification pending"
},
"unsupported_client": false,
"welcome": {
"body": "Data will be stored and may be used according to Stripe [Privacy Policy](https://verify.stripe.com) and the Rocket Rides Privacy Policy. [Learn more](https://verify.stripe.com).\n\nPlease have a form of identification ready, and be prepared to take a selfie.",
"button_text": "Get started",
"title": "Rocket Rides partners with Stripe for secure identity verification"
}
"unsupported_client": false
}

0 comments on commit 41b3610

Please sign in to comment.