increase 1.221.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: 470d9979afdf7a5b130e7a868bd8586c48e99b42ddbca8bf136ef597019494c2
4
- data.tar.gz: 182f6d8497882c85ef0e199960429ef82917fbc6ca4e8427528d2e5fb1224fe5
3
+ metadata.gz: 361306f81510de5ea1d7b73b14418f1c1bb41759247b895b5aff22e5699ffbe8
4
+ data.tar.gz: acdf704eeb76ffd9833fe88c8567af6557ed2a1a94d2c048709f78123a454569
5
5
  SHA512:
6
- metadata.gz: ac23ef41e6b5aad664b611b80904eac3619dd1c4b98f97bae484f7d8652a52bc1bb858383e35f4079498be8573afab4d70f351523d24b7bb0eda45d6cecea504
7
- data.tar.gz: c3bc3836ad314da413a5f2a6051aeb5bf1c0b2aa0c0e4781cbc6aea0905f98b05ab61e07d29e53df548c3f41ec7a82b72d679f777cd9fadf8557b17900d3c1cb
6
+ metadata.gz: 897265fa2604712dfb35485ed694695c1b10d71a6f784a18e571e4406989b72dab6d1fb354f674a436ab89a198bfcfd595fe33fe4334351ee38e13ab74556e7e
7
+ data.tar.gz: 97ca61ba3352fec9b16c24e6e8eb62f66ee591ecacedc96feab38e4a2e705ffe094fd131648a36ccc95451172f5e1126ed9865b4b7ea1be21f048f0309fe9ce3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
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
+
11
+ ## 1.222.0 (2026-03-03)
12
+
13
+ Full Changelog: [v1.221.0...v1.222.0](https://github.com/Increase/increase-ruby/compare/v1.221.0...v1.222.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([a773d1a](https://github.com/Increase/increase-ruby/commit/a773d1a55c6fa68f2600f317a967509cd2a91e7a))
18
+
3
19
  ## 1.221.0 (2026-03-03)
4
20
 
5
21
  Full Changelog: [v1.220.0...v1.221.0](https://github.com/Increase/increase-ruby/compare/v1.220.0...v1.221.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.221.0"
18
+ gem "increase", "~> 1.223.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -318,6 +318,55 @@ module Increase
318
318
  # @return [String]
319
319
  required :id, String
320
320
 
321
+ # @!attribute billing_address_city
322
+ # The city of the cardholder billing address associated with the card used for
323
+ # this purchase.
324
+ #
325
+ # @return [String, nil]
326
+ required :billing_address_city, String, nil?: true
327
+
328
+ # @!attribute billing_address_country
329
+ # The country of the cardholder billing address associated with the card used for
330
+ # this purchase.
331
+ #
332
+ # @return [String, nil]
333
+ required :billing_address_country, String, nil?: true
334
+
335
+ # @!attribute billing_address_line1
336
+ # The first line of the cardholder billing address associated with the card used
337
+ # for this purchase.
338
+ #
339
+ # @return [String, nil]
340
+ required :billing_address_line1, String, nil?: true
341
+
342
+ # @!attribute billing_address_line2
343
+ # The second line of the cardholder billing address associated with the card used
344
+ # for this purchase.
345
+ #
346
+ # @return [String, nil]
347
+ required :billing_address_line2, String, nil?: true
348
+
349
+ # @!attribute billing_address_line3
350
+ # The third line of the cardholder billing address associated with the card used
351
+ # for this purchase.
352
+ #
353
+ # @return [String, nil]
354
+ required :billing_address_line3, String, nil?: true
355
+
356
+ # @!attribute billing_address_postal_code
357
+ # The postal code of the cardholder billing address associated with the card used
358
+ # for this purchase.
359
+ #
360
+ # @return [String, nil]
361
+ required :billing_address_postal_code, String, nil?: true
362
+
363
+ # @!attribute billing_address_state
364
+ # The US state of the cardholder billing address associated with the card used for
365
+ # this purchase.
366
+ #
367
+ # @return [String, nil]
368
+ required :billing_address_state, String, nil?: true
369
+
321
370
  # @!attribute card_id
322
371
  # The identifier of the Card.
323
372
  #
@@ -380,10 +429,8 @@ module Increase
380
429
  # @!attribute device_channel
381
430
  # The device channel of the card authentication attempt.
382
431
  #
383
- # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel, nil]
384
- required :device_channel,
385
- enum: -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel },
386
- nil?: true
432
+ # @return [Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel]
433
+ required :device_channel, -> { Increase::CardPayment::Element::CardAuthentication::DeviceChannel }
387
434
 
388
435
  # @!attribute merchant_acceptor_id
389
436
  # The merchant identifier (commonly abbreviated as MID) of the merchant the card
@@ -444,7 +491,7 @@ module Increase
444
491
  # @return [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::Type]
445
492
  required :type, enum: -> { Increase::CardPayment::Element::CardAuthentication::Type }
446
493
 
447
- # @!method initialize(id:, card_id:, card_payment_id:, cardholder_email:, cardholder_name:, category:, challenge:, created_at:, deny_reason:, device_channel:, merchant_acceptor_id:, merchant_category_code:, merchant_country:, merchant_name:, purchase_amount:, purchase_currency:, real_time_decision_id:, status:, type:)
494
+ # @!method initialize(id:, billing_address_city:, billing_address_country:, billing_address_line1:, billing_address_line2:, billing_address_line3:, billing_address_postal_code:, billing_address_state:, card_id:, card_payment_id:, cardholder_email:, cardholder_name:, category:, challenge:, created_at:, deny_reason:, device_channel:, merchant_acceptor_id:, merchant_category_code:, merchant_country:, merchant_name:, purchase_amount:, purchase_currency:, real_time_decision_id:, status:, type:)
448
495
  # Some parameter documentations has been truncated, see
449
496
  # {Increase::Models::CardPayment::Element::CardAuthentication} for more details.
450
497
  #
@@ -454,6 +501,20 @@ module Increase
454
501
  #
455
502
  # @param id [String] The Card Authentication identifier.
456
503
  #
504
+ # @param billing_address_city [String, nil] The city of the cardholder billing address associated with the card used for thi
505
+ #
506
+ # @param billing_address_country [String, nil] The country of the cardholder billing address associated with the card used for
507
+ #
508
+ # @param billing_address_line1 [String, nil] The first line of the cardholder billing address associated with the card used f
509
+ #
510
+ # @param billing_address_line2 [String, nil] The second line of the cardholder billing address associated with the card used
511
+ #
512
+ # @param billing_address_line3 [String, nil] The third line of the cardholder billing address associated with the card used f
513
+ #
514
+ # @param billing_address_postal_code [String, nil] The postal code of the cardholder billing address associated with the card used
515
+ #
516
+ # @param billing_address_state [String, nil] The US state of the cardholder billing address associated with the card used for
517
+ #
457
518
  # @param card_id [String] The identifier of the Card.
458
519
  #
459
520
  # @param card_payment_id [String] The ID of the Card Payment this transaction belongs to.
@@ -470,7 +531,7 @@ module Increase
470
531
  #
471
532
  # @param deny_reason [Symbol, Increase::Models::CardPayment::Element::CardAuthentication::DenyReason, nil] The reason why this authentication attempt was denied, if it was.
472
533
  #
473
- # @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.
474
535
  #
475
536
  # @param merchant_acceptor_id [String] The merchant identifier (commonly abbreviated as MID) of the merchant the card i
476
537
  #
@@ -648,23 +709,114 @@ module Increase
648
709
  # @return [Array<Symbol>]
649
710
  end
650
711
 
651
- # The device channel of the card authentication attempt.
652
- #
653
712
  # @see Increase::Models::CardPayment::Element::CardAuthentication#device_channel
654
- module DeviceChannel
655
- 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
656
721
 
657
- # The authentication attempt was made from an app.
658
- 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 }
659
728
 
660
- # The authentication attempt was made from a browser.
661
- 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.
662
735
 
663
- # The authentication attempt was initiated by the 3DS Requestor.
664
- 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
665
743
 
666
- # @!method self.values
667
- # @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
668
820
  end
669
821
 
670
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.221.0"
4
+ VERSION = "1.223.0"
5
5
  end
@@ -626,6 +626,41 @@ module Increase
626
626
  sig { returns(String) }
627
627
  attr_accessor :id
628
628
 
629
+ # The city of the cardholder billing address associated with the card used for
630
+ # this purchase.
631
+ sig { returns(T.nilable(String)) }
632
+ attr_accessor :billing_address_city
633
+
634
+ # The country of the cardholder billing address associated with the card used for
635
+ # this purchase.
636
+ sig { returns(T.nilable(String)) }
637
+ attr_accessor :billing_address_country
638
+
639
+ # The first line of the cardholder billing address associated with the card used
640
+ # for this purchase.
641
+ sig { returns(T.nilable(String)) }
642
+ attr_accessor :billing_address_line1
643
+
644
+ # The second line of the cardholder billing address associated with the card used
645
+ # for this purchase.
646
+ sig { returns(T.nilable(String)) }
647
+ attr_accessor :billing_address_line2
648
+
649
+ # The third line of the cardholder billing address associated with the card used
650
+ # for this purchase.
651
+ sig { returns(T.nilable(String)) }
652
+ attr_accessor :billing_address_line3
653
+
654
+ # The postal code of the cardholder billing address associated with the card used
655
+ # for this purchase.
656
+ sig { returns(T.nilable(String)) }
657
+ attr_accessor :billing_address_postal_code
658
+
659
+ # The US state of the cardholder billing address associated with the card used for
660
+ # this purchase.
661
+ sig { returns(T.nilable(String)) }
662
+ attr_accessor :billing_address_state
663
+
629
664
  # The identifier of the Card.
630
665
  sig { returns(String) }
631
666
  attr_accessor :card_id
@@ -690,12 +725,18 @@ module Increase
690
725
  # The device channel of the card authentication attempt.
691
726
  sig do
692
727
  returns(
693
- T.nilable(
694
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel::TaggedSymbol
695
- )
728
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel
696
729
  )
697
730
  end
698
- 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
699
740
 
700
741
  # The merchant identifier (commonly abbreviated as MID) of the merchant the card
701
742
  # is transacting with.
@@ -752,6 +793,13 @@ module Increase
752
793
  sig do
753
794
  params(
754
795
  id: String,
796
+ billing_address_city: T.nilable(String),
797
+ billing_address_country: T.nilable(String),
798
+ billing_address_line1: T.nilable(String),
799
+ billing_address_line2: T.nilable(String),
800
+ billing_address_line3: T.nilable(String),
801
+ billing_address_postal_code: T.nilable(String),
802
+ billing_address_state: T.nilable(String),
755
803
  card_id: String,
756
804
  card_payment_id: String,
757
805
  cardholder_email: T.nilable(String),
@@ -770,9 +818,7 @@ module Increase
770
818
  Increase::CardPayment::Element::CardAuthentication::DenyReason::OrSymbol
771
819
  ),
772
820
  device_channel:
773
- T.nilable(
774
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel::OrSymbol
775
- ),
821
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel::OrHash,
776
822
  merchant_acceptor_id: String,
777
823
  merchant_category_code: String,
778
824
  merchant_country: String,
@@ -789,6 +835,27 @@ module Increase
789
835
  def self.new(
790
836
  # The Card Authentication identifier.
791
837
  id:,
838
+ # The city of the cardholder billing address associated with the card used for
839
+ # this purchase.
840
+ billing_address_city:,
841
+ # The country of the cardholder billing address associated with the card used for
842
+ # this purchase.
843
+ billing_address_country:,
844
+ # The first line of the cardholder billing address associated with the card used
845
+ # for this purchase.
846
+ billing_address_line1:,
847
+ # The second line of the cardholder billing address associated with the card used
848
+ # for this purchase.
849
+ billing_address_line2:,
850
+ # The third line of the cardholder billing address associated with the card used
851
+ # for this purchase.
852
+ billing_address_line3:,
853
+ # The postal code of the cardholder billing address associated with the card used
854
+ # for this purchase.
855
+ billing_address_postal_code:,
856
+ # The US state of the cardholder billing address associated with the card used for
857
+ # this purchase.
858
+ billing_address_state:,
792
859
  # The identifier of the Card.
793
860
  card_id:,
794
861
  # The ID of the Card Payment this transaction belongs to.
@@ -838,6 +905,13 @@ module Increase
838
905
  override.returns(
839
906
  {
840
907
  id: String,
908
+ billing_address_city: T.nilable(String),
909
+ billing_address_country: T.nilable(String),
910
+ billing_address_line1: T.nilable(String),
911
+ billing_address_line2: T.nilable(String),
912
+ billing_address_line3: T.nilable(String),
913
+ billing_address_postal_code: T.nilable(String),
914
+ billing_address_state: T.nilable(String),
841
915
  card_id: String,
842
916
  card_payment_id: String,
843
917
  cardholder_email: T.nilable(String),
@@ -856,9 +930,7 @@ module Increase
856
930
  Increase::CardPayment::Element::CardAuthentication::DenyReason::TaggedSymbol
857
931
  ),
858
932
  device_channel:
859
- T.nilable(
860
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel::TaggedSymbol
861
- ),
933
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel,
862
934
  merchant_acceptor_id: String,
863
935
  merchant_category_code: String,
864
936
  merchant_country: String,
@@ -1204,48 +1276,238 @@ module Increase
1204
1276
  end
1205
1277
  end
1206
1278
 
1207
- # The device channel of the card authentication attempt.
1208
- module DeviceChannel
1209
- extend Increase::Internal::Type::Enum
1210
-
1211
- TaggedSymbol =
1279
+ class DeviceChannel < Increase::Internal::Type::BaseModel
1280
+ OrHash =
1212
1281
  T.type_alias do
1213
- T.all(
1214
- Symbol,
1215
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel
1282
+ T.any(
1283
+ Increase::CardPayment::Element::CardAuthentication::DeviceChannel,
1284
+ Increase::Internal::AnyHash
1216
1285
  )
1217
1286
  end
1218
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1219
1287
 
1220
- # The authentication attempt was made from an app.
1221
- APP =
1222
- T.let(
1223
- :app,
1224
- 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
+ )
1225
1294
  )
1295
+ end
1296
+ attr_reader :browser
1226
1297
 
1227
- # The authentication attempt was made from a browser.
1228
- BROWSER =
1229
- T.let(
1230
- :browser,
1231
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel::TaggedSymbol
1232
- )
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
1233
1307
 
1234
- # The authentication attempt was initiated by the 3DS Requestor.
1235
- THREE_DS_REQUESTOR_INITIATED =
1236
- T.let(
1237
- :three_ds_requestor_initiated,
1238
- 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
1239
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
1240
1334
 
1241
1335
  sig do
1242
1336
  override.returns(
1243
- T::Array[
1244
- Increase::CardPayment::Element::CardAuthentication::DeviceChannel::TaggedSymbol
1245
- ]
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
+ }
1246
1345
  )
1247
1346
  end
1248
- 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
1249
1511
  end
1250
1512
  end
1251
1513
 
@@ -210,6 +210,13 @@ module Increase
210
210
  type card_authentication =
211
211
  {
212
212
  id: String,
213
+ billing_address_city: String?,
214
+ billing_address_country: String?,
215
+ :billing_address_line1 => String?,
216
+ :billing_address_line2 => String?,
217
+ :billing_address_line3 => String?,
218
+ billing_address_postal_code: String?,
219
+ billing_address_state: String?,
213
220
  card_id: String,
214
221
  card_payment_id: String,
215
222
  cardholder_email: String?,
@@ -218,7 +225,7 @@ module Increase
218
225
  challenge: Increase::CardPayment::Element::CardAuthentication::Challenge?,
219
226
  created_at: Time,
220
227
  deny_reason: Increase::Models::CardPayment::Element::CardAuthentication::deny_reason?,
221
- device_channel: Increase::Models::CardPayment::Element::CardAuthentication::device_channel?,
228
+ device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel,
222
229
  merchant_acceptor_id: String,
223
230
  merchant_category_code: String,
224
231
  merchant_country: String,
@@ -233,6 +240,20 @@ module Increase
233
240
  class CardAuthentication < Increase::Internal::Type::BaseModel
234
241
  attr_accessor id: String
235
242
 
243
+ attr_accessor billing_address_city: String?
244
+
245
+ attr_accessor billing_address_country: String?
246
+
247
+ attr_accessor billing_address_line1: String?
248
+
249
+ attr_accessor billing_address_line2: String?
250
+
251
+ attr_accessor billing_address_line3: String?
252
+
253
+ attr_accessor billing_address_postal_code: String?
254
+
255
+ attr_accessor billing_address_state: String?
256
+
236
257
  attr_accessor card_id: String
237
258
 
238
259
  attr_accessor card_payment_id: String
@@ -249,7 +270,7 @@ module Increase
249
270
 
250
271
  attr_accessor deny_reason: Increase::Models::CardPayment::Element::CardAuthentication::deny_reason?
251
272
 
252
- attr_accessor device_channel: Increase::Models::CardPayment::Element::CardAuthentication::device_channel?
273
+ attr_accessor device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel
253
274
 
254
275
  attr_accessor merchant_acceptor_id: String
255
276
 
@@ -271,6 +292,13 @@ module Increase
271
292
 
272
293
  def initialize: (
273
294
  id: String,
295
+ billing_address_city: String?,
296
+ billing_address_country: String?,
297
+ billing_address_line1: String?,
298
+ billing_address_line2: String?,
299
+ billing_address_line3: String?,
300
+ billing_address_postal_code: String?,
301
+ billing_address_state: String?,
274
302
  card_id: String,
275
303
  card_payment_id: String,
276
304
  cardholder_email: String?,
@@ -279,7 +307,7 @@ module Increase
279
307
  challenge: Increase::CardPayment::Element::CardAuthentication::Challenge?,
280
308
  created_at: Time,
281
309
  deny_reason: Increase::Models::CardPayment::Element::CardAuthentication::deny_reason?,
282
- device_channel: Increase::Models::CardPayment::Element::CardAuthentication::device_channel?,
310
+ device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel,
283
311
  merchant_acceptor_id: String,
284
312
  merchant_category_code: String,
285
313
  merchant_country: String,
@@ -293,6 +321,13 @@ module Increase
293
321
 
294
322
  def to_hash: -> {
295
323
  id: String,
324
+ billing_address_city: String?,
325
+ billing_address_country: String?,
326
+ :billing_address_line1 => String?,
327
+ :billing_address_line2 => String?,
328
+ :billing_address_line3 => String?,
329
+ billing_address_postal_code: String?,
330
+ billing_address_state: String?,
296
331
  card_id: String,
297
332
  card_payment_id: String,
298
333
  cardholder_email: String?,
@@ -301,7 +336,7 @@ module Increase
301
336
  challenge: Increase::CardPayment::Element::CardAuthentication::Challenge?,
302
337
  created_at: Time,
303
338
  deny_reason: Increase::Models::CardPayment::Element::CardAuthentication::deny_reason?,
304
- device_channel: Increase::Models::CardPayment::Element::CardAuthentication::device_channel?,
339
+ device_channel: Increase::CardPayment::Element::CardAuthentication::DeviceChannel,
305
340
  merchant_acceptor_id: String,
306
341
  merchant_category_code: String,
307
342
  merchant_country: String,
@@ -449,21 +484,94 @@ module Increase
449
484
  def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardAuthentication::deny_reason]
450
485
  end
451
486
 
452
- 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
+ }
453
492
 
454
- module DeviceChannel
455
- extend Increase::Internal::Type::Enum
493
+ class DeviceChannel < Increase::Internal::Type::BaseModel
494
+ attr_accessor browser: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser?
495
+
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
502
+
503
+ def to_hash: -> {
504
+ browser: Increase::CardPayment::Element::CardAuthentication::DeviceChannel::Browser?,
505
+ category: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::category
506
+ }
507
+
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
+ }
516
+
517
+ class Browser < Increase::Internal::Type::BaseModel
518
+ attr_accessor accept_header: String?
519
+
520
+ attr_accessor ip_address: String?
456
521
 
457
- # The authentication attempt was made from an app.
458
- APP: :app
522
+ attr_accessor javascript_enabled: Increase::Models::CardPayment::Element::CardAuthentication::DeviceChannel::Browser::javascript_enabled?
459
523
 
460
- # The authentication attempt was made from a browser.
461
- BROWSER: :browser
524
+ attr_accessor language: String?
462
525
 
463
- # The authentication attempt was initiated by the 3DS Requestor.
464
- THREE_DS_REQUESTOR_INITIATED: :three_ds_requestor_initiated
526
+ attr_accessor user_agent: String?
465
527
 
466
- def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardAuthentication::device_channel]
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
467
575
  end
468
576
 
469
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.221.0
4
+ version: 1.223.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase