Skip to content

Commit

Permalink
Make RedirectAction value type
Browse files Browse the repository at this point in the history
  • Loading branch information
nauaros committed Oct 29, 2024
1 parent 1a3c809 commit 5c64d5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AdyenActions/Actions/RedirectAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import Foundation

/// Describes an action in which the user is redirected to a URL.
public class RedirectAction: Decodable {
public struct RedirectAction: Decodable {

public enum RedirectType: Decodable {
case redirect
Expand Down Expand Up @@ -55,7 +55,7 @@ public class RedirectAction: Decodable {
self.nativeRedirectData = nativeRedirectData
}

public required init(from decoder: any Decoder) throws {
public init(from decoder: any Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)
self.url = try container.decode(URL.self, forKey: .url)
self.paymentData = try container.decodeIfPresent(String.self, forKey: .paymentData)
Expand Down

0 comments on commit 5c64d5c

Please sign in to comment.