increase 1.222.0 → 1.223.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d565587fc23ea9e2e6f15e343ea7b0f75eaa914b8d2f5c6f36c6ae2ec482c1f8
4
- data.tar.gz: 8a9ae9c3f82e31b4bdb373031e122f0d49ad2335e891a896ac9cd77e363c1dca
3
+ metadata.gz: 361306f81510de5ea1d7b73b14418f1c1bb41759247b895b5aff22e5699ffbe8
4
+ data.tar.gz: acdf704eeb76ffd9833fe88c8567af6557ed2a1a94d2c048709f78123a454569
5
5
  SHA512:
6
- metadata.gz: 867a5033d741635b36521baa18ae195e5bf966e83255f959ea12c7e70de749da6e10bbb60fdacb66a59fc916344b80e22247b3e2566f789659c0d4d99d126fec
7
- data.tar.gz: 1feb97d9cb74d7c6e060c9ca576db19bb207d3daa42221b53ac65fd2572d7c9de3e03d1995ce59059b03ffe045a74a9a363aa4dd965d2440873c5ae90d465812
6
+ metadata.gz: 897265fa2604712dfb35485ed694695c1b10d71a6f784a18e571e4406989b72dab6d1fb354f674a436ab89a198bfcfd595fe33fe4334351ee38e13ab74556e7e
7
+ data.tar.gz: 97ca61ba3352fec9b16c24e6e8eb62f66ee591ecacedc96feab38e4a2e705ffe094fd131648a36ccc95451172f5e1126ed9865b4b7ea1be21f048f0309fe9ce3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.223.0 (2026-03-03)
4
+
5
+ Full Changelog: [v1.222.0...v1.223.0](https://github.com/Increase/increase-ruby/compare/v1.222.0...v1.223.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([7c121a9](https://github.com/Increase/increase-ruby/commit/7c121a9ef6e556eb402d18dba06b6ebe44e07441))
10
+
3
11
  ## 1.222.0 (2026-03-03)
4
12
 
5
13
  Full Changelog: [v1.221.0...v1.222.0](https://github.com/Increase/increase-ruby/compare/v1.221.0...v1.222.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.222.0"
18
+ gem "increase", "~> 1.223.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -429,10 +429,8 @@ module Increase
429
429
  # @!attribute device_channel
430
430
  # The device channel of the card authentication attempt.
431
431
  #
432
- # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel, nil]
433
- required :device_channel,
434
- enum: -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel },
435
- nil?: true
432
+ # @return [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel]
433
+ required :device_channel, -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel }
436
434
 
437
435
  # @!attribute merchant_acceptor_id
438
436
  # The merchant identifier (commonly abbreviated as MID) of the merchant the card
@@ -533,7 +531,7 @@ module Increase
533
531
  #
534
532
  # @param deny_reason [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DenyReason, nil] The reason why this authentication attempt was denied, if it was.
535
533
  #
536
- # @param device_channel [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel, nil] The device channel of the card authentication attempt.
534
+ # @param device_channel [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel] The device channel of the card authentication attempt.
537
535
  #
538
536
  # @param merchant_acceptor_id [String] The merchant identifier (commonly abbreviated as MID) of the merchant the card i
539
537
  #
@@ -711,23 +709,114 @@ module Increase
711
709
  # @return [Array<Symbol>]
712
710
  end
713
711
 
714
- # The device channel of the card authentication attempt.
715
- #
716
712
  # @see Increase::Models::CardPayment::Element::CardAuthentication#device_channel
717
- module DeviceChannel
718
- extend Increase::Internal::Type::Enum
713
+ class DeviceChannel < Increase::Internal::Type::BaseModel
714
+ # @!attribute browser
715
+ # Fields specific to the browser device channel.
716
+ #
717
+ # @return [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser, nil]
718
+ required :browser,
719
+ -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser },
720
+ nil?: true
719
721
 
720
- # The authentication attempt was made from an app.
721
- APP = :app
722
+ # @!attribute category
723
+ # The category of the device channel.
724
+ #
725
+ # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Category]
726
+ required :category,
727
+ enum: -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category }
722
728
 
723
- # The authentication attempt was made from a browser.
724
- BROWSER = :browser
729
+ # @!method initialize(browser:, category:)
730
+ # The device channel of the card authentication attempt.
731
+ #
732
+ # @param browser [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser, nil] Fields specific to the browser device channel.
733
+ #
734
+ # @param category [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Category] The category of the device channel.
725
735
 
726
- # The authentication attempt was initiated by the 3DS Requestor.
727
- THREE_DS_REQUESTOR_INITIATED = :three_ds_requestor_initiated
736
+ # @see Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel#browser
737
+ class Browser < Increase::Internal::Type::BaseModel
738
+ # @!attribute accept_header
739
+ # The accept header from the cardholder's browser.
740
+ #
741
+ # @return [String, nil]
742
+ required :accept_header, String, nil?: true
728
743
 
729
- # @!method self.values
730
- # @return [Array<Symbol>]
744
+ # @!attribute ip_address
745
+ # The IP address of the cardholder's browser.
746
+ #
747
+ # @return [String, nil]
748
+ required :ip_address, String, nil?: true
749
+
750
+ # @!attribute javascript_enabled
751
+ # Whether JavaScript is enabled in the cardholder's browser.
752
+ #
753
+ # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::JavascriptEnabled, nil]
754
+ required :javascript_enabled,
755
+ enum: -> {
756
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::JavascriptEnabled
757
+ },
758
+ nil?: true
759
+
760
+ # @!attribute language
761
+ # The language of the cardholder's browser.
762
+ #
763
+ # @return [String, nil]
764
+ required :language, String, nil?: true
765
+
766
+ # @!attribute user_agent
767
+ # The user agent of the cardholder's browser.
768
+ #
769
+ # @return [String, nil]
770
+ required :user_agent, String, nil?: true
771
+
772
+ # @!method initialize(accept_header:, ip_address:, javascript_enabled:, language:, user_agent:)
773
+ # Fields specific to the browser device channel.
774
+ #
775
+ # @param accept_header [String, nil] The accept header from the cardholder's browser.
776
+ #
777
+ # @param ip_address [String, nil] The IP address of the cardholder's browser.
778
+ #
779
+ # @param javascript_enabled [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::JavascriptEnabled, nil] Whether JavaScript is enabled in the cardholder's browser.
780
+ #
781
+ # @param language [String, nil] The language of the cardholder's browser.
782
+ #
783
+ # @param user_agent [String, nil] The user agent of the cardholder's browser.
784
+
785
+ # Whether JavaScript is enabled in the cardholder's browser.
786
+ #
787
+ # @see Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser#javascript_enabled
788
+ module JavascriptEnabled
789
+ extend Increase::Internal::Type::Enum
790
+
791
+ # JavaScript is enabled in the cardholder's browser.
792
+ ENABLED = :enabled
793
+
794
+ # JavaScript is not enabled in the cardholder's browser.
795
+ DISABLED = :disabled
796
+
797
+ # @!method self.values
798
+ # @return [Array<Symbol>]
799
+ end
800
+ end
801
+
802
+ # The category of the device channel.
803
+ #
804
+ # @see Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel#category
805
+ module Category
806
+ extend Increase::Internal::Type::Enum
807
+
808
+ # The authentication attempt was made from an app.
809
+ APP = :app
810
+
811
+ # The authentication attempt was made from a browser.
812
+ BROWSER = :browser
813
+
814
+ # The authentication attempt was initiated by the 3DS Requestor.
815
+ THREE_DS_REQUESTOR_INITIATED = :three_ds_requestor_initiated
816
+
817
+ # @!method self.values
818
+ # @return [Array<Symbol>]
819
+ end
731
820
  end
732
821
 
733
822
  # The status of the card authentication.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.222.0"
4
+ VERSION = "1.223.0"
5
5
  end
@@ -725,12 +725,18 @@ module Increase
725
725
  # The device channel of the card authentication attempt.
726
726
  sig do
727
727
  returns(
728
- T.nilable(
729
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel::TaggedSymbol
730
- )
728
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel
731
729
  )
732
730
  end
733
- attr_accessor :device_channel
731
+ attr_reader :device_channel
732
+
733
+ sig do
734
+ params(
735
+ device_channel:
736
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::OrHash
737
+ ).void
738
+ end
739
+ attr_writer :device_channel
734
740
 
735
741
  # The merchant identifier (commonly abbreviated as MID) of the merchant the card
736
742
  # is transacting with.
@@ -812,9 +818,7 @@ module Increase
812
818
  Increase::CardPayment::Element::CardAuthentication::DenyReason::OrSymbol
813
819
  ),
814
820
  device_channel:
815
- T.nilable(
816
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel::OrSymbol
817
- ),
821
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::OrHash,
818
822
  merchant_acceptor_id: String,
819
823
  merchant_category_code: String,
820
824
  merchant_country: String,
@@ -926,9 +930,7 @@ module Increase
926
930
  Increase::CardPayment::Element::CardAuthentication::DenyReason::TaggedSymbol
927
931
  ),
928
932
  device_channel:
929
- T.nilable(
930
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel::TaggedSymbol
931
- ),
933
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel,
932
934
  merchant_acceptor_id: String,
933
935
  merchant_category_code: String,
934
936
  merchant_country: String,
@@ -1274,48 +1276,238 @@ module Increase
1274
1276
  end
1275
1277
  end
1276
1278
 
1277
- # The device channel of the card authentication attempt.
1278
- module DeviceChannel
1279
- extend Increase::Internal::Type::Enum
1280
-
1281
- TaggedSymbol =
1279
+ class DeviceChannel < Increase::Internal::Type::BaseModel
1280
+ OrHash =
1282
1281
  T.type_alias do
1283
- T.all(
1284
- Symbol,
1285
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel
1282
+ T.any(
1283
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel,
1284
+ Increase::Internal::AnyHash
1286
1285
  )
1287
1286
  end
1288
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1289
1287
 
1290
- # The authentication attempt was made from an app.
1291
- APP =
1292
- T.let(
1293
- :app,
1294
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel::TaggedSymbol
1288
+ # Fields specific to the browser device channel.
1289
+ sig do
1290
+ returns(
1291
+ T.nilable(
1292
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser
1293
+ )
1295
1294
  )
1295
+ end
1296
+ attr_reader :browser
1296
1297
 
1297
- # The authentication attempt was made from a browser.
1298
- BROWSER =
1299
- T.let(
1300
- :browser,
1301
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel::TaggedSymbol
1302
- )
1298
+ sig do
1299
+ params(
1300
+ browser:
1301
+ T.nilable(
1302
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::OrHash
1303
+ )
1304
+ ).void
1305
+ end
1306
+ attr_writer :browser
1303
1307
 
1304
- # The authentication attempt was initiated by the 3DS Requestor.
1305
- THREE_DS_REQUESTOR_INITIATED =
1306
- T.let(
1307
- :three_ds_requestor_initiated,
1308
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel::TaggedSymbol
1308
+ # The category of the device channel.
1309
+ sig do
1310
+ returns(
1311
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category::TaggedSymbol
1309
1312
  )
1313
+ end
1314
+ attr_accessor :category
1315
+
1316
+ # The device channel of the card authentication attempt.
1317
+ sig do
1318
+ params(
1319
+ browser:
1320
+ T.nilable(
1321
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::OrHash
1322
+ ),
1323
+ category:
1324
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category::OrSymbol
1325
+ ).returns(T.attached_class)
1326
+ end
1327
+ def self.new(
1328
+ # Fields specific to the browser device channel.
1329
+ browser:,
1330
+ # The category of the device channel.
1331
+ category:
1332
+ )
1333
+ end
1310
1334
 
1311
1335
  sig do
1312
1336
  override.returns(
1313
- T::Array[
1314
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel::TaggedSymbol
1315
- ]
1337
+ {
1338
+ browser:
1339
+ T.nilable(
1340
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser
1341
+ ),
1342
+ category:
1343
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category::TaggedSymbol
1344
+ }
1316
1345
  )
1317
1346
  end
1318
- def self.values
1347
+ def to_hash
1348
+ end
1349
+
1350
+ class Browser < Increase::Internal::Type::BaseModel
1351
+ OrHash =
1352
+ T.type_alias do
1353
+ T.any(
1354
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser,
1355
+ Increase::Internal::AnyHash
1356
+ )
1357
+ end
1358
+
1359
+ # The accept header from the cardholder's browser.
1360
+ sig { returns(T.nilable(String)) }
1361
+ attr_accessor :accept_header
1362
+
1363
+ # The IP address of the cardholder's browser.
1364
+ sig { returns(T.nilable(String)) }
1365
+ attr_accessor :ip_address
1366
+
1367
+ # Whether JavaScript is enabled in the cardholder's browser.
1368
+ sig do
1369
+ returns(
1370
+ T.nilable(
1371
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::JavascriptEnabled::TaggedSymbol
1372
+ )
1373
+ )
1374
+ end
1375
+ attr_accessor :javascript_enabled
1376
+
1377
+ # The language of the cardholder's browser.
1378
+ sig { returns(T.nilable(String)) }
1379
+ attr_accessor :language
1380
+
1381
+ # The user agent of the cardholder's browser.
1382
+ sig { returns(T.nilable(String)) }
1383
+ attr_accessor :user_agent
1384
+
1385
+ # Fields specific to the browser device channel.
1386
+ sig do
1387
+ params(
1388
+ accept_header: T.nilable(String),
1389
+ ip_address: T.nilable(String),
1390
+ javascript_enabled:
1391
+ T.nilable(
1392
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::JavascriptEnabled::OrSymbol
1393
+ ),
1394
+ language: T.nilable(String),
1395
+ user_agent: T.nilable(String)
1396
+ ).returns(T.attached_class)
1397
+ end
1398
+ def self.new(
1399
+ # The accept header from the cardholder's browser.
1400
+ accept_header:,
1401
+ # The IP address of the cardholder's browser.
1402
+ ip_address:,
1403
+ # Whether JavaScript is enabled in the cardholder's browser.
1404
+ javascript_enabled:,
1405
+ # The language of the cardholder's browser.
1406
+ language:,
1407
+ # The user agent of the cardholder's browser.
1408
+ user_agent:
1409
+ )
1410
+ end
1411
+
1412
+ sig do
1413
+ override.returns(
1414
+ {
1415
+ accept_header: T.nilable(String),
1416
+ ip_address: T.nilable(String),
1417
+ javascript_enabled:
1418
+ T.nilable(
1419
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::JavascriptEnabled::TaggedSymbol
1420
+ ),
1421
+ language: T.nilable(String),
1422
+ user_agent: T.nilable(String)
1423
+ }
1424
+ )
1425
+ end
1426
+ def to_hash
1427
+ end
1428
+
1429
+ # Whether JavaScript is enabled in the cardholder's browser.
1430
+ module JavascriptEnabled
1431
+ extend Increase::Internal::Type::Enum
1432
+
1433
+ TaggedSymbol =
1434
+ T.type_alias do
1435
+ T.all(
1436
+ Symbol,
1437
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::JavascriptEnabled
1438
+ )
1439
+ end
1440
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1441
+
1442
+ # JavaScript is enabled in the cardholder's browser.
1443
+ ENABLED =
1444
+ T.let(
1445
+ :enabled,
1446
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::JavascriptEnabled::TaggedSymbol
1447
+ )
1448
+
1449
+ # JavaScript is not enabled in the cardholder's browser.
1450
+ DISABLED =
1451
+ T.let(
1452
+ :disabled,
1453
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::JavascriptEnabled::TaggedSymbol
1454
+ )
1455
+
1456
+ sig do
1457
+ override.returns(
1458
+ T::Array[
1459
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::JavascriptEnabled::TaggedSymbol
1460
+ ]
1461
+ )
1462
+ end
1463
+ def self.values
1464
+ end
1465
+ end
1466
+ end
1467
+
1468
+ # The category of the device channel.
1469
+ module Category
1470
+ extend Increase::Internal::Type::Enum
1471
+
1472
+ TaggedSymbol =
1473
+ T.type_alias do
1474
+ T.all(
1475
+ Symbol,
1476
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category
1477
+ )
1478
+ end
1479
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1480
+
1481
+ # The authentication attempt was made from an app.
1482
+ APP =
1483
+ T.let(
1484
+ :app,
1485
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category::TaggedSymbol
1486
+ )
1487
+
1488
+ # The authentication attempt was made from a browser.
1489
+ BROWSER =
1490
+ T.let(
1491
+ :browser,
1492
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category::TaggedSymbol
1493
+ )
1494
+
1495
+ # The authentication attempt was initiated by the 3DS Requestor.
1496
+ THREE_DS_REQUESTOR_INITIATED =
1497
+ T.let(
1498
+ :three_ds_requestor_initiated,
1499
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category::TaggedSymbol
1500
+ )
1501
+
1502
+ sig do
1503
+ override.returns(
1504
+ T::Array[
1505
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Category::TaggedSymbol
1506
+ ]
1507
+ )
1508
+ end
1509
+ def self.values
1510
+ end
1319
1511
  end
1320
1512
  end
1321
1513
 
@@ -225,7 +225,7 @@ module Increase
225
225
  challenge: Increase::CardPayment::Element::CardAuthentication::Challenge?,
226
226
  created_at: Time,
227
227
  deny_reason: Increase::Models::CardPayment::Element::CardAuthentication::deny_reason?,
228
- device_channel: Increase::Models::CardPayment::Element::CardAuthentication::device_channel?,
228
+ device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel,
229
229
  merchant_acceptor_id: String,
230
230
  merchant_category_code: String,
231
231
  merchant_country: String,
@@ -270,7 +270,7 @@ module Increase
270
270
 
271
271
  attr_accessor deny_reason: Increase::Models::CardPayment::Element::CardAuthentication::deny_reason?
272
272
 
273
- attr_accessor device_channel: Increase::Models::CardPayment::Element::CardAuthentication::device_channel?
273
+ attr_accessor device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel
274
274
 
275
275
  attr_accessor merchant_acceptor_id: String
276
276
 
@@ -307,7 +307,7 @@ module Increase
307
307
  challenge: Increase::CardPayment::Element::CardAuthentication::Challenge?,
308
308
  created_at: Time,
309
309
  deny_reason: Increase::Models::CardPayment::Element::CardAuthentication::deny_reason?,
310
- device_channel: Increase::Models::CardPayment::Element::CardAuthentication::device_channel?,
310
+ device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel,
311
311
  merchant_acceptor_id: String,
312
312
  merchant_category_code: String,
313
313
  merchant_country: String,
@@ -336,7 +336,7 @@ module Increase
336
336
  challenge: Increase::CardPayment::Element::CardAuthentication::Challenge?,
337
337
  created_at: Time,
338
338
  deny_reason: Increase::Models::CardPayment::Element::CardAuthentication::deny_reason?,
339
- device_channel: Increase::Models::CardPayment::Element::CardAuthentication::device_channel?,
339
+ device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel,
340
340
  merchant_acceptor_id: String,
341
341
  merchant_category_code: String,
342
342
  merchant_country: String,
@@ -484,21 +484,94 @@ module Increase
484
484
  def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardAuthentication::deny_reason]
485
485
  end
486
486
 
487
- type device_channel = :app | :browser | :three_ds_requestor_initiated
487
+ type device_channel =
488
+ {
489
+ browser: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser?,
490
+ category: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category
491
+ }
488
492
 
489
- module DeviceChannel
490
- extend Increase::Internal::Type::Enum
493
+ class DeviceChannel < Increase::Internal::Type::BaseModel
494
+ attr_accessor browser: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser?
491
495
 
492
- # The authentication attempt was made from an app.
493
- APP: :app
496
+ attr_accessor category: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category
497
+
498
+ def initialize: (
499
+ browser: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser?,
500
+ category: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category
501
+ ) -> void
494
502
 
495
- # The authentication attempt was made from a browser.
496
- BROWSER: :browser
503
+ def to_hash: -> {
504
+ browser: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser?,
505
+ category: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category
506
+ }
497
507
 
498
- # The authentication attempt was initiated by the 3DS Requestor.
499
- THREE_DS_REQUESTOR_INITIATED: :three_ds_requestor_initiated
508
+ type browser =
509
+ {
510
+ accept_header: String?,
511
+ ip_address: String?,
512
+ javascript_enabled: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::javascript_enabled?,
513
+ language: String?,
514
+ user_agent: String?
515
+ }
500
516
 
501
- def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardAuthentication::device_channel]
517
+ class Browser < Increase::Internal::Type::BaseModel
518
+ attr_accessor accept_header: String?
519
+
520
+ attr_accessor ip_address: String?
521
+
522
+ attr_accessor javascript_enabled: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::javascript_enabled?
523
+
524
+ attr_accessor language: String?
525
+
526
+ attr_accessor user_agent: String?
527
+
528
+ def initialize: (
529
+ accept_header: String?,
530
+ ip_address: String?,
531
+ javascript_enabled: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::javascript_enabled?,
532
+ language: String?,
533
+ user_agent: String?
534
+ ) -> void
535
+
536
+ def to_hash: -> {
537
+ accept_header: String?,
538
+ ip_address: String?,
539
+ javascript_enabled: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::javascript_enabled?,
540
+ language: String?,
541
+ user_agent: String?
542
+ }
543
+
544
+ type javascript_enabled = :enabled | :disabled
545
+
546
+ module JavascriptEnabled
547
+ extend Increase::Internal::Type::Enum
548
+
549
+ # JavaScript is enabled in the cardholder's browser.
550
+ ENABLED: :enabled
551
+
552
+ # JavaScript is not enabled in the cardholder's browser.
553
+ DISABLED: :disabled
554
+
555
+ def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::javascript_enabled]
556
+ end
557
+ end
558
+
559
+ type category = :app | :browser | :three_ds_requestor_initiated
560
+
561
+ module Category
562
+ extend Increase::Internal::Type::Enum
563
+
564
+ # The authentication attempt was made from an app.
565
+ APP: :app
566
+
567
+ # The authentication attempt was made from a browser.
568
+ BROWSER: :browser
569
+
570
+ # The authentication attempt was initiated by the 3DS Requestor.
571
+ THREE_DS_REQUESTOR_INITIATED: :three_ds_requestor_initiated
572
+
573
+ def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category]
574
+ end
502
575
  end
503
576
 
504
577
  type status =
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.222.0
4
+ version: 1.223.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase