increase 1.368.0 → 1.369.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.
@@ -7179,6 +7179,20 @@ module Increase
7179
7179
  sig { returns(String) }
7180
7180
  attr_accessor :card_id
7181
7181
 
7182
+ # The cardholder adding the card to the digital wallet.
7183
+ sig do
7184
+ returns(Increase::RealTimeDecision::DigitalWalletToken::Cardholder)
7185
+ end
7186
+ attr_reader :cardholder
7187
+
7188
+ sig do
7189
+ params(
7190
+ cardholder:
7191
+ Increase::RealTimeDecision::DigitalWalletToken::Cardholder::OrHash
7192
+ ).void
7193
+ end
7194
+ attr_writer :cardholder
7195
+
7182
7196
  # Whether or not the provisioning request was approved. This will be null until
7183
7197
  # the real time decision is responded to.
7184
7198
  sig do
@@ -7210,10 +7224,91 @@ module Increase
7210
7224
  end
7211
7225
  attr_accessor :digital_wallet
7212
7226
 
7227
+ # The card network the token is being provisioned on.
7228
+ sig do
7229
+ returns(
7230
+ Increase::RealTimeDecision::DigitalWalletToken::Network::TaggedSymbol
7231
+ )
7232
+ end
7233
+ attr_accessor :network
7234
+
7235
+ # How the card number was provided to the digital wallet.
7236
+ sig do
7237
+ returns(
7238
+ T.nilable(
7239
+ Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource::TaggedSymbol
7240
+ )
7241
+ )
7242
+ end
7243
+ attr_accessor :primary_account_number_source
7244
+
7245
+ # The digital wallet or merchant that requested the token.
7246
+ sig do
7247
+ returns(
7248
+ Increase::RealTimeDecision::DigitalWalletToken::TokenRequestorDetails
7249
+ )
7250
+ end
7251
+ attr_reader :token_requestor_details
7252
+
7253
+ sig do
7254
+ params(
7255
+ token_requestor_details:
7256
+ Increase::RealTimeDecision::DigitalWalletToken::TokenRequestorDetails::OrHash
7257
+ ).void
7258
+ end
7259
+ attr_writer :token_requestor_details
7260
+
7261
+ # Fields related to verification of cardholder-provided values.
7262
+ sig do
7263
+ returns(Increase::RealTimeDecision::DigitalWalletToken::Verification)
7264
+ end
7265
+ attr_reader :verification
7266
+
7267
+ sig do
7268
+ params(
7269
+ verification:
7270
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::OrHash
7271
+ ).void
7272
+ end
7273
+ attr_writer :verification
7274
+
7275
+ # Risk scores provided by Visa for the provisioning request. This field will be
7276
+ # present in the JSON response if and only if `network` is equal to `visa`.
7277
+ sig do
7278
+ returns(
7279
+ T.nilable(Increase::RealTimeDecision::DigitalWalletToken::Visa)
7280
+ )
7281
+ end
7282
+ attr_reader :visa
7283
+
7284
+ sig do
7285
+ params(
7286
+ visa:
7287
+ T.nilable(
7288
+ Increase::RealTimeDecision::DigitalWalletToken::Visa::OrHash
7289
+ )
7290
+ ).void
7291
+ end
7292
+ attr_writer :visa
7293
+
7294
+ # Details about the digital wallet.
7295
+ sig { returns(Increase::RealTimeDecision::DigitalWalletToken::Wallet) }
7296
+ attr_reader :wallet
7297
+
7298
+ sig do
7299
+ params(
7300
+ wallet:
7301
+ Increase::RealTimeDecision::DigitalWalletToken::Wallet::OrHash
7302
+ ).void
7303
+ end
7304
+ attr_writer :wallet
7305
+
7213
7306
  # Fields related to a digital wallet token provisioning attempt.
7214
7307
  sig do
7215
7308
  params(
7216
7309
  card_id: String,
7310
+ cardholder:
7311
+ Increase::RealTimeDecision::DigitalWalletToken::Cardholder::OrHash,
7217
7312
  decision:
7218
7313
  T.nilable(
7219
7314
  Increase::RealTimeDecision::DigitalWalletToken::Decision::OrSymbol
@@ -7221,19 +7316,50 @@ module Increase
7221
7316
  device:
7222
7317
  Increase::RealTimeDecision::DigitalWalletToken::Device::OrHash,
7223
7318
  digital_wallet:
7224
- Increase::RealTimeDecision::DigitalWalletToken::DigitalWallet::OrSymbol
7319
+ Increase::RealTimeDecision::DigitalWalletToken::DigitalWallet::OrSymbol,
7320
+ network:
7321
+ Increase::RealTimeDecision::DigitalWalletToken::Network::OrSymbol,
7322
+ primary_account_number_source:
7323
+ T.nilable(
7324
+ Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource::OrSymbol
7325
+ ),
7326
+ token_requestor_details:
7327
+ Increase::RealTimeDecision::DigitalWalletToken::TokenRequestorDetails::OrHash,
7328
+ verification:
7329
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::OrHash,
7330
+ visa:
7331
+ T.nilable(
7332
+ Increase::RealTimeDecision::DigitalWalletToken::Visa::OrHash
7333
+ ),
7334
+ wallet:
7335
+ Increase::RealTimeDecision::DigitalWalletToken::Wallet::OrHash
7225
7336
  ).returns(T.attached_class)
7226
7337
  end
7227
7338
  def self.new(
7228
7339
  # The identifier of the Card that is being tokenized.
7229
7340
  card_id:,
7341
+ # The cardholder adding the card to the digital wallet.
7342
+ cardholder:,
7230
7343
  # Whether or not the provisioning request was approved. This will be null until
7231
7344
  # the real time decision is responded to.
7232
7345
  decision:,
7233
7346
  # Device that is being used to provision the digital wallet token.
7234
7347
  device:,
7235
7348
  # The digital wallet app being used.
7236
- digital_wallet:
7349
+ digital_wallet:,
7350
+ # The card network the token is being provisioned on.
7351
+ network:,
7352
+ # How the card number was provided to the digital wallet.
7353
+ primary_account_number_source:,
7354
+ # The digital wallet or merchant that requested the token.
7355
+ token_requestor_details:,
7356
+ # Fields related to verification of cardholder-provided values.
7357
+ verification:,
7358
+ # Risk scores provided by Visa for the provisioning request. This field will be
7359
+ # present in the JSON response if and only if `network` is equal to `visa`.
7360
+ visa:,
7361
+ # Details about the digital wallet.
7362
+ wallet:
7237
7363
  )
7238
7364
  end
7239
7365
 
@@ -7241,19 +7367,60 @@ module Increase
7241
7367
  override.returns(
7242
7368
  {
7243
7369
  card_id: String,
7370
+ cardholder:
7371
+ Increase::RealTimeDecision::DigitalWalletToken::Cardholder,
7244
7372
  decision:
7245
7373
  T.nilable(
7246
7374
  Increase::RealTimeDecision::DigitalWalletToken::Decision::TaggedSymbol
7247
7375
  ),
7248
7376
  device: Increase::RealTimeDecision::DigitalWalletToken::Device,
7249
7377
  digital_wallet:
7250
- Increase::RealTimeDecision::DigitalWalletToken::DigitalWallet::TaggedSymbol
7378
+ Increase::RealTimeDecision::DigitalWalletToken::DigitalWallet::TaggedSymbol,
7379
+ network:
7380
+ Increase::RealTimeDecision::DigitalWalletToken::Network::TaggedSymbol,
7381
+ primary_account_number_source:
7382
+ T.nilable(
7383
+ Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource::TaggedSymbol
7384
+ ),
7385
+ token_requestor_details:
7386
+ Increase::RealTimeDecision::DigitalWalletToken::TokenRequestorDetails,
7387
+ verification:
7388
+ Increase::RealTimeDecision::DigitalWalletToken::Verification,
7389
+ visa:
7390
+ T.nilable(Increase::RealTimeDecision::DigitalWalletToken::Visa),
7391
+ wallet: Increase::RealTimeDecision::DigitalWalletToken::Wallet
7251
7392
  }
7252
7393
  )
7253
7394
  end
7254
7395
  def to_hash
7255
7396
  end
7256
7397
 
7398
+ class Cardholder < Increase::Internal::Type::BaseModel
7399
+ OrHash =
7400
+ T.type_alias do
7401
+ T.any(
7402
+ Increase::RealTimeDecision::DigitalWalletToken::Cardholder,
7403
+ Increase::Internal::AnyHash
7404
+ )
7405
+ end
7406
+
7407
+ # The cardholder's name, as entered in the digital wallet.
7408
+ sig { returns(T.nilable(String)) }
7409
+ attr_accessor :name
7410
+
7411
+ # The cardholder adding the card to the digital wallet.
7412
+ sig { params(name: T.nilable(String)).returns(T.attached_class) }
7413
+ def self.new(
7414
+ # The cardholder's name, as entered in the digital wallet.
7415
+ name:
7416
+ )
7417
+ end
7418
+
7419
+ sig { override.returns({ name: T.nilable(String) }) }
7420
+ def to_hash
7421
+ end
7422
+ end
7423
+
7257
7424
  # Whether or not the provisioning request was approved. This will be null until
7258
7425
  # the real time decision is responded to.
7259
7426
  module Decision
@@ -7510,6 +7677,459 @@ module Increase
7510
7677
  def self.values
7511
7678
  end
7512
7679
  end
7680
+
7681
+ # The card network the token is being provisioned on.
7682
+ module Network
7683
+ extend Increase::Internal::Type::Enum
7684
+
7685
+ TaggedSymbol =
7686
+ T.type_alias do
7687
+ T.all(
7688
+ Symbol,
7689
+ Increase::RealTimeDecision::DigitalWalletToken::Network
7690
+ )
7691
+ end
7692
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
7693
+
7694
+ # Visa
7695
+ VISA =
7696
+ T.let(
7697
+ :visa,
7698
+ Increase::RealTimeDecision::DigitalWalletToken::Network::TaggedSymbol
7699
+ )
7700
+
7701
+ sig do
7702
+ override.returns(
7703
+ T::Array[
7704
+ Increase::RealTimeDecision::DigitalWalletToken::Network::TaggedSymbol
7705
+ ]
7706
+ )
7707
+ end
7708
+ def self.values
7709
+ end
7710
+ end
7711
+
7712
+ # How the card number was provided to the digital wallet.
7713
+ module PrimaryAccountNumberSource
7714
+ extend Increase::Internal::Type::Enum
7715
+
7716
+ TaggedSymbol =
7717
+ T.type_alias do
7718
+ T.all(
7719
+ Symbol,
7720
+ Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource
7721
+ )
7722
+ end
7723
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
7724
+
7725
+ # The cardholder entered the card number manually.
7726
+ KEY_ENTERED =
7727
+ T.let(
7728
+ :key_entered,
7729
+ Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource::TaggedSymbol
7730
+ )
7731
+
7732
+ # The card number was already on file with the token requestor.
7733
+ ON_FILE =
7734
+ T.let(
7735
+ :on_file,
7736
+ Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource::TaggedSymbol
7737
+ )
7738
+
7739
+ # The card was added from your mobile app using push provisioning.
7740
+ MOBILE_APP =
7741
+ T.let(
7742
+ :mobile_app,
7743
+ Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource::TaggedSymbol
7744
+ )
7745
+
7746
+ # The card number was sourced from an existing token.
7747
+ TOKEN =
7748
+ T.let(
7749
+ :token,
7750
+ Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource::TaggedSymbol
7751
+ )
7752
+
7753
+ # The card number was read from the chip of the physical card.
7754
+ CHIP_DIP =
7755
+ T.let(
7756
+ :chip_dip,
7757
+ Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource::TaggedSymbol
7758
+ )
7759
+
7760
+ # The card number was read by tapping the physical card on the device.
7761
+ CONTACTLESS_TAP =
7762
+ T.let(
7763
+ :contactless_tap,
7764
+ Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource::TaggedSymbol
7765
+ )
7766
+
7767
+ sig do
7768
+ override.returns(
7769
+ T::Array[
7770
+ Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource::TaggedSymbol
7771
+ ]
7772
+ )
7773
+ end
7774
+ def self.values
7775
+ end
7776
+ end
7777
+
7778
+ class TokenRequestorDetails < Increase::Internal::Type::BaseModel
7779
+ OrHash =
7780
+ T.type_alias do
7781
+ T.any(
7782
+ Increase::RealTimeDecision::DigitalWalletToken::TokenRequestorDetails,
7783
+ Increase::Internal::AnyHash
7784
+ )
7785
+ end
7786
+
7787
+ # The identifier assigned to the token requestor by the card network.
7788
+ sig { returns(String) }
7789
+ attr_accessor :identifier
7790
+
7791
+ # The name of the token requestor, for example "Apple Inc.".
7792
+ sig { returns(T.nilable(String)) }
7793
+ attr_accessor :name
7794
+
7795
+ # The digital wallet or merchant that requested the token.
7796
+ sig do
7797
+ params(identifier: String, name: T.nilable(String)).returns(
7798
+ T.attached_class
7799
+ )
7800
+ end
7801
+ def self.new(
7802
+ # The identifier assigned to the token requestor by the card network.
7803
+ identifier:,
7804
+ # The name of the token requestor, for example "Apple Inc.".
7805
+ name:
7806
+ )
7807
+ end
7808
+
7809
+ sig do
7810
+ override.returns({ identifier: String, name: T.nilable(String) })
7811
+ end
7812
+ def to_hash
7813
+ end
7814
+ end
7815
+
7816
+ class Verification < Increase::Internal::Type::BaseModel
7817
+ OrHash =
7818
+ T.type_alias do
7819
+ T.any(
7820
+ Increase::RealTimeDecision::DigitalWalletToken::Verification,
7821
+ Increase::Internal::AnyHash
7822
+ )
7823
+ end
7824
+
7825
+ # Cardholder address provided in the provisioning request and the address on file
7826
+ # we verified it against.
7827
+ sig do
7828
+ returns(
7829
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress
7830
+ )
7831
+ end
7832
+ attr_reader :cardholder_address
7833
+
7834
+ sig do
7835
+ params(
7836
+ cardholder_address:
7837
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::OrHash
7838
+ ).void
7839
+ end
7840
+ attr_writer :cardholder_address
7841
+
7842
+ # Fields related to verification of cardholder-provided values.
7843
+ sig do
7844
+ params(
7845
+ cardholder_address:
7846
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::OrHash
7847
+ ).returns(T.attached_class)
7848
+ end
7849
+ def self.new(
7850
+ # Cardholder address provided in the provisioning request and the address on file
7851
+ # we verified it against.
7852
+ cardholder_address:
7853
+ )
7854
+ end
7855
+
7856
+ sig do
7857
+ override.returns(
7858
+ {
7859
+ cardholder_address:
7860
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress
7861
+ }
7862
+ )
7863
+ end
7864
+ def to_hash
7865
+ end
7866
+
7867
+ class CardholderAddress < Increase::Internal::Type::BaseModel
7868
+ OrHash =
7869
+ T.type_alias do
7870
+ T.any(
7871
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress,
7872
+ Increase::Internal::AnyHash
7873
+ )
7874
+ end
7875
+
7876
+ # Line 1 of the address on file for the cardholder.
7877
+ sig { returns(T.nilable(String)) }
7878
+ attr_accessor :actual_line1
7879
+
7880
+ # The postal code of the address on file for the cardholder.
7881
+ sig { returns(T.nilable(String)) }
7882
+ attr_accessor :actual_postal_code
7883
+
7884
+ # The cardholder address line 1 provided for verification in the provisioning
7885
+ # request.
7886
+ sig { returns(T.nilable(String)) }
7887
+ attr_accessor :provided_line1
7888
+
7889
+ # The postal code provided for verification in the provisioning request.
7890
+ sig { returns(T.nilable(String)) }
7891
+ attr_accessor :provided_postal_code
7892
+
7893
+ # The address verification result.
7894
+ sig do
7895
+ returns(
7896
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result::TaggedSymbol
7897
+ )
7898
+ end
7899
+ attr_accessor :result
7900
+
7901
+ # Cardholder address provided in the provisioning request and the address on file
7902
+ # we verified it against.
7903
+ sig do
7904
+ params(
7905
+ actual_line1: T.nilable(String),
7906
+ actual_postal_code: T.nilable(String),
7907
+ provided_line1: T.nilable(String),
7908
+ provided_postal_code: T.nilable(String),
7909
+ result:
7910
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result::OrSymbol
7911
+ ).returns(T.attached_class)
7912
+ end
7913
+ def self.new(
7914
+ # Line 1 of the address on file for the cardholder.
7915
+ actual_line1:,
7916
+ # The postal code of the address on file for the cardholder.
7917
+ actual_postal_code:,
7918
+ # The cardholder address line 1 provided for verification in the provisioning
7919
+ # request.
7920
+ provided_line1:,
7921
+ # The postal code provided for verification in the provisioning request.
7922
+ provided_postal_code:,
7923
+ # The address verification result.
7924
+ result:
7925
+ )
7926
+ end
7927
+
7928
+ sig do
7929
+ override.returns(
7930
+ {
7931
+ actual_line1: T.nilable(String),
7932
+ actual_postal_code: T.nilable(String),
7933
+ provided_line1: T.nilable(String),
7934
+ provided_postal_code: T.nilable(String),
7935
+ result:
7936
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result::TaggedSymbol
7937
+ }
7938
+ )
7939
+ end
7940
+ def to_hash
7941
+ end
7942
+
7943
+ # The address verification result.
7944
+ module Result
7945
+ extend Increase::Internal::Type::Enum
7946
+
7947
+ TaggedSymbol =
7948
+ T.type_alias do
7949
+ T.all(
7950
+ Symbol,
7951
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result
7952
+ )
7953
+ end
7954
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
7955
+
7956
+ # No address information was provided in the authorization request.
7957
+ NOT_CHECKED =
7958
+ T.let(
7959
+ :not_checked,
7960
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result::TaggedSymbol
7961
+ )
7962
+
7963
+ # Postal code matches, but the street address does not match or was not provided.
7964
+ POSTAL_CODE_MATCH_ADDRESS_NO_MATCH =
7965
+ T.let(
7966
+ :postal_code_match_address_no_match,
7967
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result::TaggedSymbol
7968
+ )
7969
+
7970
+ # Postal code does not match, but the street address matches or was not provided.
7971
+ POSTAL_CODE_NO_MATCH_ADDRESS_MATCH =
7972
+ T.let(
7973
+ :postal_code_no_match_address_match,
7974
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result::TaggedSymbol
7975
+ )
7976
+
7977
+ # Postal code and street address match.
7978
+ MATCH =
7979
+ T.let(
7980
+ :match,
7981
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result::TaggedSymbol
7982
+ )
7983
+
7984
+ # Postal code and street address do not match.
7985
+ NO_MATCH =
7986
+ T.let(
7987
+ :no_match,
7988
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result::TaggedSymbol
7989
+ )
7990
+
7991
+ # Postal code matches, but the street address was not verified. (deprecated)
7992
+ POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED =
7993
+ T.let(
7994
+ :postal_code_match_address_not_checked,
7995
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result::TaggedSymbol
7996
+ )
7997
+
7998
+ sig do
7999
+ override.returns(
8000
+ T::Array[
8001
+ Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result::TaggedSymbol
8002
+ ]
8003
+ )
8004
+ end
8005
+ def self.values
8006
+ end
8007
+ end
8008
+ end
8009
+ end
8010
+
8011
+ class Visa < Increase::Internal::Type::BaseModel
8012
+ OrHash =
8013
+ T.type_alias do
8014
+ T.any(
8015
+ Increase::RealTimeDecision::DigitalWalletToken::Visa,
8016
+ Increase::Internal::AnyHash
8017
+ )
8018
+ end
8019
+
8020
+ # Visa's risk score for the card, based on its transaction history, from 0 to 99.
8021
+ # A higher score indicates a higher risk.
8022
+ sig { returns(T.nilable(Integer)) }
8023
+ attr_accessor :network_risk_score
8024
+
8025
+ # Visa's risk score for the provisioning request, from 1 to 99. A higher score
8026
+ # indicates a higher risk.
8027
+ sig { returns(T.nilable(Integer)) }
8028
+ attr_accessor :provisioning_risk_score
8029
+
8030
+ # Risk scores provided by Visa for the provisioning request. This field will be
8031
+ # present in the JSON response if and only if `network` is equal to `visa`.
8032
+ sig do
8033
+ params(
8034
+ network_risk_score: T.nilable(Integer),
8035
+ provisioning_risk_score: T.nilable(Integer)
8036
+ ).returns(T.attached_class)
8037
+ end
8038
+ def self.new(
8039
+ # Visa's risk score for the card, based on its transaction history, from 0 to 99.
8040
+ # A higher score indicates a higher risk.
8041
+ network_risk_score:,
8042
+ # Visa's risk score for the provisioning request, from 1 to 99. A higher score
8043
+ # indicates a higher risk.
8044
+ provisioning_risk_score:
8045
+ )
8046
+ end
8047
+
8048
+ sig do
8049
+ override.returns(
8050
+ {
8051
+ network_risk_score: T.nilable(Integer),
8052
+ provisioning_risk_score: T.nilable(Integer)
8053
+ }
8054
+ )
8055
+ end
8056
+ def to_hash
8057
+ end
8058
+ end
8059
+
8060
+ class Wallet < Increase::Internal::Type::BaseModel
8061
+ OrHash =
8062
+ T.type_alias do
8063
+ T.any(
8064
+ Increase::RealTimeDecision::DigitalWalletToken::Wallet,
8065
+ Increase::Internal::AnyHash
8066
+ )
8067
+ end
8068
+
8069
+ # The number of days since the email address was added to the cardholder's digital
8070
+ # wallet account, up to 999.
8071
+ sig { returns(T.nilable(Integer)) }
8072
+ attr_accessor :account_email_age_days
8073
+
8074
+ # An identifier for the cardholder's account with the digital wallet.
8075
+ sig { returns(T.nilable(String)) }
8076
+ attr_accessor :account_identifier
8077
+
8078
+ # How much the digital wallet trusts the cardholder's account, from 1 to 5. A
8079
+ # higher score indicates more trust.
8080
+ sig { returns(T.nilable(Integer)) }
8081
+ attr_accessor :account_score
8082
+
8083
+ # How much the digital wallet trusts the device the card is being added to, from 1
8084
+ # to 5. A higher score indicates more trust.
8085
+ sig { returns(T.nilable(Integer)) }
8086
+ attr_accessor :device_score
8087
+
8088
+ # A hash of the email address on the cardholder's digital wallet account.
8089
+ sig { returns(T.nilable(String)) }
8090
+ attr_accessor :email_hash
8091
+
8092
+ # Details about the digital wallet.
8093
+ sig do
8094
+ params(
8095
+ account_email_age_days: T.nilable(Integer),
8096
+ account_identifier: T.nilable(String),
8097
+ account_score: T.nilable(Integer),
8098
+ device_score: T.nilable(Integer),
8099
+ email_hash: T.nilable(String)
8100
+ ).returns(T.attached_class)
8101
+ end
8102
+ def self.new(
8103
+ # The number of days since the email address was added to the cardholder's digital
8104
+ # wallet account, up to 999.
8105
+ account_email_age_days:,
8106
+ # An identifier for the cardholder's account with the digital wallet.
8107
+ account_identifier:,
8108
+ # How much the digital wallet trusts the cardholder's account, from 1 to 5. A
8109
+ # higher score indicates more trust.
8110
+ account_score:,
8111
+ # How much the digital wallet trusts the device the card is being added to, from 1
8112
+ # to 5. A higher score indicates more trust.
8113
+ device_score:,
8114
+ # A hash of the email address on the cardholder's digital wallet account.
8115
+ email_hash:
8116
+ )
8117
+ end
8118
+
8119
+ sig do
8120
+ override.returns(
8121
+ {
8122
+ account_email_age_days: T.nilable(Integer),
8123
+ account_identifier: T.nilable(String),
8124
+ account_score: T.nilable(Integer),
8125
+ device_score: T.nilable(Integer),
8126
+ email_hash: T.nilable(String)
8127
+ }
8128
+ )
8129
+ end
8130
+ def to_hash
8131
+ end
8132
+ end
7513
8133
  end
7514
8134
 
7515
8135
  # The status of the Real-Time Decision.