Skip to content

Commit

Permalink
Add paymentMethodType to decoder initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
nauaros committed Jan 14, 2025
1 parent 7f206e2 commit 3f5babf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions AdyenActions/Actions/RedirectAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public struct RedirectAction: Decodable {
self.paymentData = try container.decodeIfPresent(String.self, forKey: .paymentData)
self.type = try container.decode(RedirectType.self, forKey: .type)
self.nativeRedirectData = try container.decodeIfPresent(String.self, forKey: .nativeRedirectData)
self.paymentMethodType = try container.decodeIfPresent(String.self, forKey: .paymentMethodType)
}

// MARK: - Private
Expand All @@ -72,5 +73,6 @@ public struct RedirectAction: Decodable {
case paymentData
case type
case nativeRedirectData
case paymentMethodType
}
}

0 comments on commit 3f5babf

Please sign in to comment.