diff --git a/Projects/Features/SignUp/Sources/ProfileInput/AuthCompany/AuthCompanyIntent.swift b/Projects/Features/SignUp/Sources/ProfileInput/AuthCompany/AuthCompanyIntent.swift index 26ab10a..f1fb2c0 100644 --- a/Projects/Features/SignUp/Sources/ProfileInput/AuthCompany/AuthCompanyIntent.swift +++ b/Projects/Features/SignUp/Sources/ProfileInput/AuthCompany/AuthCompanyIntent.swift @@ -146,6 +146,7 @@ extension AuthCompanyIntent: AuthCompanyIntent.Intentable { Task { var payload = input.input payload.profile?.companyId = state.selectedCompany?.id + payload.dreamPartner?.allowSameCompany = state.sameCompanyMatchingAvailable await pushNextView(payload: payload) } } diff --git a/Projects/Model/Model/Sources/SignUp/Domain/SignUpFormDomain.swift b/Projects/Model/Model/Sources/SignUp/Domain/SignUpFormDomain.swift index 18d1d5f..3898ce0 100644 --- a/Projects/Model/Model/Sources/SignUp/Domain/SignUpFormDomain.swift +++ b/Projects/Model/Model/Sources/SignUp/Domain/SignUpFormDomain.swift @@ -94,6 +94,7 @@ public struct SignUpDreamPartnerDomain { public var lowerBirthYearGap: Int? public var upperBirthYearGap: Int? public var jobOccupations: [String] + public var allowSameCompany: Bool? public var distanceType: DreamPartnerDistanceType? var toDto: Components.Schemas.UserDesiredPartner? { @@ -110,7 +111,8 @@ public struct SignUpDreamPartnerDomain { end: upperBirthYearGap ), jobOccupations: jobOccupations, - preferDistance: distanceType.toDto + preferDistance: distanceType.toDto, + allowSameCompany: allowSameCompany ) } @@ -118,12 +120,14 @@ public struct SignUpDreamPartnerDomain { lowerBirthYearGap: Int? = nil, upperBirthYearGap: Int? = nil, jobOccupations: [String], - distanceType: DreamPartnerDistanceType? = nil + distanceType: DreamPartnerDistanceType? = nil, + allowSameCompany: Bool? = nil ) { self.lowerBirthYearGap = lowerBirthYearGap self.upperBirthYearGap = upperBirthYearGap self.jobOccupations = jobOccupations self.distanceType = distanceType + self.allowSameCompany = allowSameCompany } }