@@ -1381,13 +1381,26 @@ module Lithic
13811381 )
13821382 end
13831383
1384- # The phone number used for sending Authorization Challenge SMS.
1385- sig { returns ( String ) }
1384+ # The method used to deliver the challenge to the cardholder
1385+ #
1386+ # - `SMS` - Challenge was delivered via SMS
1387+ # - `OUT_OF_BAND` - Challenge was delivered via an out-of-band method
1388+ sig do
1389+ returns (
1390+ Lithic ::CardAuthorization ::LatestChallenge ::Method ::TaggedSymbol
1391+ )
1392+ end
1393+ attr_accessor :method_
1394+
1395+ # The phone number used for sending the Authorization Challenge. Present only when
1396+ # the challenge method is `SMS`.
1397+ sig { returns ( T . nilable ( String ) ) }
13861398 attr_accessor :phone_number
13871399
13881400 # The status of the Authorization Challenge
13891401 #
13901402 # - `COMPLETED` - Challenge was successfully completed by the cardholder
1403+ # - `DECLINED` - Challenge was declined by the cardholder
13911404 # - `PENDING` - Challenge is still open
13921405 # - `EXPIRED` - Challenge has expired without being completed
13931406 # - `ERROR` - There was an error processing the challenge
@@ -1410,18 +1423,27 @@ module Lithic
14101423 # merchant.
14111424 sig do
14121425 params (
1413- phone_number : String ,
1426+ method_ :
1427+ Lithic ::CardAuthorization ::LatestChallenge ::Method ::OrSymbol ,
1428+ phone_number : T . nilable ( String ) ,
14141429 status :
14151430 Lithic ::CardAuthorization ::LatestChallenge ::Status ::OrSymbol ,
14161431 completed_at : Time
14171432 ) . returns ( T . attached_class )
14181433 end
14191434 def self . new (
1420- # The phone number used for sending Authorization Challenge SMS.
1435+ # The method used to deliver the challenge to the cardholder
1436+ #
1437+ # - `SMS` - Challenge was delivered via SMS
1438+ # - `OUT_OF_BAND` - Challenge was delivered via an out-of-band method
1439+ method_ :,
1440+ # The phone number used for sending the Authorization Challenge. Present only when
1441+ # the challenge method is `SMS`.
14211442 phone_number :,
14221443 # The status of the Authorization Challenge
14231444 #
14241445 # - `COMPLETED` - Challenge was successfully completed by the cardholder
1446+ # - `DECLINED` - Challenge was declined by the cardholder
14251447 # - `PENDING` - Challenge is still open
14261448 # - `EXPIRED` - Challenge has expired without being completed
14271449 # - `ERROR` - There was an error processing the challenge
@@ -1435,7 +1457,9 @@ module Lithic
14351457 sig do
14361458 override . returns (
14371459 {
1438- phone_number : String ,
1460+ method_ :
1461+ Lithic ::CardAuthorization ::LatestChallenge ::Method ::TaggedSymbol ,
1462+ phone_number : T . nilable ( String ) ,
14391463 status :
14401464 Lithic ::CardAuthorization ::LatestChallenge ::Status ::TaggedSymbol ,
14411465 completed_at : Time
@@ -1445,9 +1469,45 @@ module Lithic
14451469 def to_hash
14461470 end
14471471
1472+ # The method used to deliver the challenge to the cardholder
1473+ #
1474+ # - `SMS` - Challenge was delivered via SMS
1475+ # - `OUT_OF_BAND` - Challenge was delivered via an out-of-band method
1476+ module Method
1477+ extend Lithic ::Internal ::Type ::Enum
1478+
1479+ TaggedSymbol =
1480+ T . type_alias do
1481+ T . all ( Symbol , Lithic ::CardAuthorization ::LatestChallenge ::Method )
1482+ end
1483+ OrSymbol = T . type_alias { T . any ( Symbol , String ) }
1484+
1485+ SMS =
1486+ T . let (
1487+ :SMS ,
1488+ Lithic ::CardAuthorization ::LatestChallenge ::Method ::TaggedSymbol
1489+ )
1490+ OUT_OF_BAND =
1491+ T . let (
1492+ :OUT_OF_BAND ,
1493+ Lithic ::CardAuthorization ::LatestChallenge ::Method ::TaggedSymbol
1494+ )
1495+
1496+ sig do
1497+ override . returns (
1498+ T ::Array [
1499+ Lithic ::CardAuthorization ::LatestChallenge ::Method ::TaggedSymbol
1500+ ]
1501+ )
1502+ end
1503+ def self . values
1504+ end
1505+ end
1506+
14481507 # The status of the Authorization Challenge
14491508 #
14501509 # - `COMPLETED` - Challenge was successfully completed by the cardholder
1510+ # - `DECLINED` - Challenge was declined by the cardholder
14511511 # - `PENDING` - Challenge is still open
14521512 # - `EXPIRED` - Challenge has expired without being completed
14531513 # - `ERROR` - There was an error processing the challenge
@@ -1465,6 +1525,11 @@ module Lithic
14651525 :COMPLETED ,
14661526 Lithic ::CardAuthorization ::LatestChallenge ::Status ::TaggedSymbol
14671527 )
1528+ DECLINED =
1529+ T . let (
1530+ :DECLINED ,
1531+ Lithic ::CardAuthorization ::LatestChallenge ::Status ::TaggedSymbol
1532+ )
14681533 PENDING =
14691534 T . let (
14701535 :PENDING ,
0 commit comments