Skip to content

Commit

Permalink
Merge pull request #30 from checkout/no-jira-remove-correlation-id-fr…
Browse files Browse the repository at this point in the history
…om-frames-options

no-jira - Remove correlationID from frames options
  • Loading branch information
precious-ossai-cko authored May 22, 2024
2 parents d9d8bcb + 2b281e3 commit b696c38
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Risk.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Risk"
s.version = "3.0.0"
s.version = "3.0.1"
s.summary = "Checkout Risk package in Swift"
s.description = <<-DESC
Checkout Risk package in Swift.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Risk/Logging/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation

enum Constants {
static let productName = "risk-ios-sdk"
static let riskSdkVersion = "3.0.0"
static let riskSdkVersion = "3.0.1"
static let userAgent = "checkout-sdk-risk-ios/\(riskSdkVersion)"
static let loggerTypeIdentifier = "com.checkout.risk-mobile-sdk"
}
3 changes: 0 additions & 3 deletions Sources/Risk/Logging/LoggerService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ struct LoggerService: LoggerServiceProtocol {
environment: internalConfig.environment.rawValue
)
)

guard let correlationID = internalConfig.framesOptions?.correlationId else { return }
logger.add(metadata: CheckoutEventLogger.MetadataKey.correlationID.rawValue, value: correlationID)
}

func log(riskEvent: RiskEvent, blockTime: Double? = nil, deviceDataPersistTime: Double? = nil, fpLoadTime: Double? = nil, fpPublishTime: Double? = nil, deviceSessionId: String? = nil, requestId: String? = nil, error: RiskLogError? = nil) {
Expand Down
4 changes: 1 addition & 3 deletions Sources/Risk/RiskSDKConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ public struct RiskConfig {
}

public struct FramesOptions {
let correlationId: String
let version: String
let productIdentifier: String

public init(productIdentifier: String, version: String, correlationId: String) {
public init(productIdentifier: String, version: String) {
self.productIdentifier = productIdentifier
self.version = version
self.correlationId = correlationId
}
}

0 comments on commit b696c38

Please sign in to comment.