Skip to content

Commit

Permalink
Made Card and Token conform to Hashable
Browse files Browse the repository at this point in the history
  • Loading branch information
mylifeasdog committed Feb 10, 2025
1 parent dbd2247 commit 22592fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Foundation

extension Token {
/// Represents Token.Card JSON object for communication with Omise API
public struct Card {
public struct Card: Hashable {
/// Card's ID.
public let id: String
/// Boolean flag indicating wether this card is a live card or a test card.
Expand Down
2 changes: 1 addition & 1 deletion OmiseSDK/Sources/OmiseAPI/JSON Models/Token/Token.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

/// Represents Token JSON object for communication with Omise API
public struct Token {
public struct Token: Hashable {
/// Omise ID of the token
public let id: String
/// Boolean indicates that if this Token is in the live mode
Expand Down

0 comments on commit 22592fc

Please sign in to comment.