Skip to content

Commit

Permalink
feat(POM-245): deprecate gateway configuration's native APM config (#154
Browse files Browse the repository at this point in the history
)

Deprecate use of `nativeApmConfig` in POGatewayConfiguration
  • Loading branch information
andrii-vysotskyi-cko authored Aug 16, 2023
1 parent 1ceb622 commit a842743
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ final class AlternativePaymentMethodsViewModel:
.contains(gatewayConfiguration.gatewayName ?? "") ?? false
if !isSubaccount {
return
} else if prefersNative, gatewayConfiguration.gateway?.nativeApmConfig != nil {
} else if prefersNative {
let paymentRoute = AlternativePaymentMethodsRoute.NativeAlternativePayment(
gatewayConfigurationId: gatewayConfiguration.id,
invoiceId: invoice.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public struct POGatewayConfiguration: Decodable {
public let canRefund: Bool

/// Native alternative payment method configuration.
@available(*, deprecated, message: "Use POInvoicesService/nativeAlternativePaymentMethodTransactionDetails(request:) instead.") // swiftlint:disable:this line_length
public let nativeApmConfig: NativeAlternativePaymentMethodConfig?
}

Expand Down

0 comments on commit a842743

Please sign in to comment.