chore: Update to API version 2.4 #825
Annotations
10 errors and 10 warnings
Run SDK tests:
Tests/Primer/Network/Endpoints/ListCardNetworksEndpointTests.swift#L71
testValidRequestWithErrorResponse, XCTAssertEqual failed: ("Optional("2.4")") is not equal to ("Optional("2.2")")
|
Run SDK tests:
Tests/Primer/Network/Endpoints/ListCardNetworksEndpointTests.swift#L41
testValidRequestWithSuccessResponse, XCTAssertEqual failed: ("Optional("2.4")") is not equal to ("Optional("2.2")")
|
Run SDK tests:
Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L63
testRequestCreation_configuration, XCTAssertEqual failed: ("Optional(["Primer-SDK-Version": "2.33.1", "Primer-SDK-Client": "IOS_NATIVE", "Primer-Client-Token": "bla", "X-Api-Version": "2.4"])") is not equal to ("Optional(["Primer-SDK-Client": "IOS_NATIVE", "Primer-SDK-Version": "2.33.1", "Primer-Client-Token": "bla", "X-Api-Version": "2.3"])")
|
Run SDK tests:
Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L53
testRequestCreation_createPayment, XCTAssertEqual failed: ("Optional(["X-Api-Version": "2.4", "Primer-SDK-Client": "IOS_NATIVE", "Primer-SDK-Version": "2.33.1", "Content-Type": "application/json", "Primer-Client-Token": "bla"])") is not equal to ("Optional(["Primer-SDK-Version": "2.33.1", "Primer-Client-Token": "bla", "Primer-SDK-Client": "IOS_NATIVE", "Content-Type": "application/json", "X-Api-Version": "2.2"])")
|
Run SDK tests:
Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L81
testRequestCreation_listCardNetworks, XCTAssertEqual failed: ("Optional(["Primer-SDK-Version": "2.33.1", "X-Api-Version": "2.4", "Primer-Client-Token": "bla", "Primer-SDK-Client": "IOS_NATIVE"])") is not equal to ("Optional(["Primer-Client-Token": "bla", "Primer-SDK-Client": "IOS_NATIVE", "Primer-SDK-Version": "2.33.1", "X-Api-Version": "2.2"])")
|
Run SDK tests:
Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L72
testRequestCreation_paymentInstruments, XCTAssertEqual failed: ("Optional(["Primer-SDK-Version": "2.33.1", "X-Api-Version": "2.4", "Primer-Client-Token": "bla", "Primer-SDK-Client": "IOS_NATIVE"])") is not equal to ("Optional(["Primer-SDK-Version": "2.33.1", "Primer-SDK-Client": "IOS_NATIVE", "Primer-Client-Token": "bla", "X-Api-Version": "2.2"])")
|
Run SDK tests:
Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L92
testRequestCreation_resumePayment, XCTAssertEqual failed: ("Optional(["Primer-SDK-Version": "2.33.1", "Primer-SDK-Client": "IOS_NATIVE", "X-Api-Version": "2.4", "Content-Type": "application/json", "Primer-Client-Token": "bla"])") is not equal to ("Optional(["X-Api-Version": "2.2", "Primer-SDK-Version": "2.33.1", "Primer-Client-Token": "bla", "Primer-SDK-Client": "IOS_NATIVE", "Content-Type": "application/json"])")
|
Run SDK tests:
Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L126
testRequestCreation_withIdentifier_shouldAddRequestIDHeader, XCTAssertEqual failed: ("Optional(["Primer-SDK-Version": "2.33.1", "X-Api-Version": "2.4", "Primer-Client-Token": "bla", "Content-Type": "application/json", "Primer-SDK-Client": "IOS_NATIVE", "X-Request-ID": "12345-request-id"])") is not equal to ("Optional(["Primer-Client-Token": "bla", "Content-Type": "application/json", "X-Request-ID": "12345-request-id", "Primer-SDK-Client": "IOS_NATIVE", "Primer-SDK-Version": "2.33.1", "X-Api-Version": "2.2"])")
|
Run SDK tests:
Tests/Primer/Network/Factories/NetworkRequestFactoryTests.swift#L138
testRequestCreation_withoutIdentifier_shouldNotAddRequestIDHeader, XCTAssertEqual failed: ("Optional(["Primer-Client-Token": "bla", "Content-Type": "application/json", "Primer-SDK-Client": "IOS_NATIVE", "X-Api-Version": "2.4", "Primer-SDK-Version": "2.33.1"])") is not equal to ("Optional(["Primer-SDK-Client": "IOS_NATIVE", "Primer-SDK-Version": "2.33.1", "Content-Type": "application/json", "X-Api-Version": "2.2", "Primer-Client-Token": "bla"])")
|
Run SDK tests
Process completed with exit code 1.
|
Run SDK tests:
Sources/PrimerSDK/Classes/Error Handler/ErrorHandler.swift#L19
@discardableResult declared on a function returning Void is unnecessary
|
Run SDK tests:
Sources/PrimerSDK/Classes/PCI/Checkout Components/PrimerRawCardDataRedirectTokenizationBuilder.swift#L85
'primerRawDataManager(_:metadataDidChange:)' is deprecated: Use _:didReceiveCardMetadata:forState: instead
|
Run SDK tests:
Sources/PrimerSDK/Classes/PCI/Checkout Components/PrimerRawCardDataTokenizationBuilder.swift#L60
'primerRawDataManager(_:metadataDidChange:)' is deprecated: Use _:didReceiveCardMetadata:forState: instead
|
Run SDK tests:
Sources/PrimerSDK/Classes/Third Party/PromiseKit/Guarantee.swift#L64
generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
|
Run SDK tests:
Sources/PrimerSDK/Classes/Core/Payment Services/PrimerAPIConfigurationModule.swift#L332
result of call to 'ensure(on:_:)' is unused
|
Run SDK tests:
Sources/PrimerSDK/Classes/Core/Primer/PrimerDelegate.swift#L98
'primerHeadlessUniveraslCheckoutUIDidDismissPaymentMethod()' is deprecated: use `primerHeadlessUniversalCheckoutUIDidDismissPaymentMethod` instead
|
Run SDK tests:
Sources/PrimerSDK/Classes/User Interface/TokenizationViewModels/ApplePayTokenizationViewModel.swift#L435
'merchantName' is deprecated: Use Client Session API to provide merchant name value: https://primer.io/docs/payment-methods/apple-pay/direct-integration#prepare-the-client-session
|
Run SDK tests:
Sources/PrimerSDK/Classes/Core/PrimerHeadlessUniversalCheckout/Managers/VaultManager.swift#L715
value 'resumeDecisionType' was defined but never used; consider replacing with boolean test
|
Run SDK tests:
Sources/PrimerSDK/Classes/Data Models/ClientSession.swift#L289
'merchantName' is deprecated: Use Client Session API to provide merchant name value: https://primer.io/docs/payment-methods/apple-pay/direct-integration#prepare-the-client-session
|
Run SDK tests:
Sources/PrimerSDK/Classes/Error Handler/ErrorHandler.swift#L19
@discardableResult declared on a function returning Void is unnecessary
|
Loading