Skip to content

Commit

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

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


/// The redirect flow type used by the `RedirectAction` object.
public enum RedirectType: Decodable {
case redirect
case nativeRedirect
Expand All @@ -31,7 +32,7 @@ public struct RedirectAction: Decodable {
/// The server-generated payment data that should be submitted to the `/payments/details` endpoint.
public let paymentData: String?

/// Redirect type
/// Redirect type.
public let type: RedirectType

/// Native redirect data.
Expand All @@ -42,7 +43,8 @@ public struct RedirectAction: Decodable {
/// - Parameters:
/// - url: The URL to which to redirect the user.
/// - paymentData: The server-generated payment data that should be submitted to the `/payments/details` endpoint.
/// - nativeRedirectData: Native redirect data.
/// - type: The redirect flow used by the action. Defaults to `redirect`.
/// - nativeRedirectData: Native redirect data. Defaults to `nil`.
public init(
url: URL,
paymentData: String?,
Expand Down

0 comments on commit e6a8a46

Please sign in to comment.