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.
@@ -3892,6 +3892,12 @@ module Increase
3892
3892
  # @return [String]
3893
3893
  required :card_id, String
3894
3894
 
3895
+ # @!attribute cardholder
3896
+ # The cardholder adding the card to the digital wallet.
3897
+ #
3898
+ # @return [Increase::Models::RealTimeDecision::DigitalWalletToken::Cardholder]
3899
+ required :cardholder, -> { Increase::RealTimeDecision::DigitalWalletToken::Cardholder }
3900
+
3895
3901
  # @!attribute decision
3896
3902
  # Whether or not the provisioning request was approved. This will be null until
3897
3903
  # the real time decision is responded to.
@@ -3911,11 +3917,54 @@ module Increase
3911
3917
  # @return [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::DigitalWallet]
3912
3918
  required :digital_wallet, enum: -> { Increase::RealTimeDecision::DigitalWalletToken::DigitalWallet }
3913
3919
 
3914
- # @!method initialize(card_id:, decision:, device:, digital_wallet:)
3920
+ # @!attribute network
3921
+ # The card network the token is being provisioned on.
3922
+ #
3923
+ # @return [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::Network]
3924
+ required :network, enum: -> { Increase::RealTimeDecision::DigitalWalletToken::Network }
3925
+
3926
+ # @!attribute primary_account_number_source
3927
+ # How the card number was provided to the digital wallet.
3928
+ #
3929
+ # @return [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource, nil]
3930
+ required :primary_account_number_source,
3931
+ enum: -> { Increase::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource },
3932
+ nil?: true
3933
+
3934
+ # @!attribute token_requestor_details
3935
+ # The digital wallet or merchant that requested the token.
3936
+ #
3937
+ # @return [Increase::Models::RealTimeDecision::DigitalWalletToken::TokenRequestorDetails]
3938
+ required :token_requestor_details,
3939
+ -> { Increase::RealTimeDecision::DigitalWalletToken::TokenRequestorDetails }
3940
+
3941
+ # @!attribute verification
3942
+ # Fields related to verification of cardholder-provided values.
3943
+ #
3944
+ # @return [Increase::Models::RealTimeDecision::DigitalWalletToken::Verification]
3945
+ required :verification, -> { Increase::RealTimeDecision::DigitalWalletToken::Verification }
3946
+
3947
+ # @!attribute visa
3948
+ # Risk scores provided by Visa for the provisioning request. This field will be
3949
+ # present in the JSON response if and only if `network` is equal to `visa`.
3950
+ #
3951
+ # @return [Increase::Models::RealTimeDecision::DigitalWalletToken::Visa, nil]
3952
+ required :visa, -> { Increase::RealTimeDecision::DigitalWalletToken::Visa }, nil?: true
3953
+
3954
+ # @!attribute wallet
3955
+ # Details about the digital wallet.
3956
+ #
3957
+ # @return [Increase::Models::RealTimeDecision::DigitalWalletToken::Wallet]
3958
+ required :wallet, -> { Increase::RealTimeDecision::DigitalWalletToken::Wallet }
3959
+
3960
+ # @!method initialize(card_id:, cardholder:, decision:, device:, digital_wallet:, network:, primary_account_number_source:, token_requestor_details:, verification:, visa:, wallet:)
3915
3961
  # Fields related to a digital wallet token provisioning attempt.
3916
3962
  #
3917
3963
  # @param card_id [String] The identifier of the Card that is being tokenized.
3918
3964
  #
3965
+ # @param cardholder [Increase::Models::RealTimeDecision::DigitalWalletToken::Cardholder]
3966
+ # The cardholder adding the card to the digital wallet.
3967
+ #
3919
3968
  # @param decision [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::Decision, nil]
3920
3969
  # Whether or not the provisioning request was approved. This will be null until
3921
3970
  # the real time decision is responded to.
@@ -3925,6 +3974,39 @@ module Increase
3925
3974
  #
3926
3975
  # @param digital_wallet [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::DigitalWallet]
3927
3976
  # The digital wallet app being used.
3977
+ #
3978
+ # @param network [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::Network]
3979
+ # The card network the token is being provisioned on.
3980
+ #
3981
+ # @param primary_account_number_source [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::PrimaryAccountNumberSource, nil]
3982
+ # How the card number was provided to the digital wallet.
3983
+ #
3984
+ # @param token_requestor_details [Increase::Models::RealTimeDecision::DigitalWalletToken::TokenRequestorDetails]
3985
+ # The digital wallet or merchant that requested the token.
3986
+ #
3987
+ # @param verification [Increase::Models::RealTimeDecision::DigitalWalletToken::Verification]
3988
+ # Fields related to verification of cardholder-provided values.
3989
+ #
3990
+ # @param visa [Increase::Models::RealTimeDecision::DigitalWalletToken::Visa, nil]
3991
+ # Risk scores provided by Visa for the provisioning request. This field will be
3992
+ # present in the JSON response if and only if `network` is equal to `visa`.
3993
+ #
3994
+ # @param wallet [Increase::Models::RealTimeDecision::DigitalWalletToken::Wallet]
3995
+ # Details about the digital wallet.
3996
+
3997
+ # @see Increase::Models::RealTimeDecision::DigitalWalletToken#cardholder
3998
+ class Cardholder < Increase::Internal::Type::BaseModel
3999
+ # @!attribute name
4000
+ # The cardholder's name, as entered in the digital wallet.
4001
+ #
4002
+ # @return [String, nil]
4003
+ required :name, String, nil?: true
4004
+
4005
+ # @!method initialize(name:)
4006
+ # The cardholder adding the card to the digital wallet.
4007
+ #
4008
+ # @param name [String, nil] The cardholder's name, as entered in the digital wallet.
4009
+ end
3928
4010
 
3929
4011
  # Whether or not the provisioning request was approved. This will be null until
3930
4012
  # the real time decision is responded to.
@@ -4045,6 +4127,253 @@ module Increase
4045
4127
  # @!method self.values
4046
4128
  # @return [Array<Symbol>]
4047
4129
  end
4130
+
4131
+ # The card network the token is being provisioned on.
4132
+ #
4133
+ # @see Increase::Models::RealTimeDecision::DigitalWalletToken#network
4134
+ module Network
4135
+ extend Increase::Internal::Type::Enum
4136
+
4137
+ # Visa
4138
+ VISA = :visa
4139
+
4140
+ # @!method self.values
4141
+ # @return [Array<Symbol>]
4142
+ end
4143
+
4144
+ # How the card number was provided to the digital wallet.
4145
+ #
4146
+ # @see Increase::Models::RealTimeDecision::DigitalWalletToken#primary_account_number_source
4147
+ module PrimaryAccountNumberSource
4148
+ extend Increase::Internal::Type::Enum
4149
+
4150
+ # The cardholder entered the card number manually.
4151
+ KEY_ENTERED = :key_entered
4152
+
4153
+ # The card number was already on file with the token requestor.
4154
+ ON_FILE = :on_file
4155
+
4156
+ # The card was added from your mobile app using push provisioning.
4157
+ MOBILE_APP = :mobile_app
4158
+
4159
+ # The card number was sourced from an existing token.
4160
+ TOKEN = :token
4161
+
4162
+ # The card number was read from the chip of the physical card.
4163
+ CHIP_DIP = :chip_dip
4164
+
4165
+ # The card number was read by tapping the physical card on the device.
4166
+ CONTACTLESS_TAP = :contactless_tap
4167
+
4168
+ # @!method self.values
4169
+ # @return [Array<Symbol>]
4170
+ end
4171
+
4172
+ # @see Increase::Models::RealTimeDecision::DigitalWalletToken#token_requestor_details
4173
+ class TokenRequestorDetails < Increase::Internal::Type::BaseModel
4174
+ # @!attribute identifier
4175
+ # The identifier assigned to the token requestor by the card network.
4176
+ #
4177
+ # @return [String]
4178
+ required :identifier, String
4179
+
4180
+ # @!attribute name
4181
+ # The name of the token requestor, for example "Apple Inc.".
4182
+ #
4183
+ # @return [String, nil]
4184
+ required :name, String, nil?: true
4185
+
4186
+ # @!method initialize(identifier:, name:)
4187
+ # The digital wallet or merchant that requested the token.
4188
+ #
4189
+ # @param identifier [String] The identifier assigned to the token requestor by the card network.
4190
+ #
4191
+ # @param name [String, nil] The name of the token requestor, for example "Apple Inc.".
4192
+ end
4193
+
4194
+ # @see Increase::Models::RealTimeDecision::DigitalWalletToken#verification
4195
+ class Verification < Increase::Internal::Type::BaseModel
4196
+ # @!attribute cardholder_address
4197
+ # Cardholder address provided in the provisioning request and the address on file
4198
+ # we verified it against.
4199
+ #
4200
+ # @return [Increase::Models::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress]
4201
+ required :cardholder_address,
4202
+ -> { Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress }
4203
+
4204
+ # @!method initialize(cardholder_address:)
4205
+ # Fields related to verification of cardholder-provided values.
4206
+ #
4207
+ # @param cardholder_address [Increase::Models::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress]
4208
+ # Cardholder address provided in the provisioning request and the address on file
4209
+ # we verified it against.
4210
+
4211
+ # @see Increase::Models::RealTimeDecision::DigitalWalletToken::Verification#cardholder_address
4212
+ class CardholderAddress < Increase::Internal::Type::BaseModel
4213
+ # @!attribute actual_line1
4214
+ # Line 1 of the address on file for the cardholder.
4215
+ #
4216
+ # @return [String, nil]
4217
+ required :actual_line1, String, nil?: true
4218
+
4219
+ # @!attribute actual_postal_code
4220
+ # The postal code of the address on file for the cardholder.
4221
+ #
4222
+ # @return [String, nil]
4223
+ required :actual_postal_code, String, nil?: true
4224
+
4225
+ # @!attribute provided_line1
4226
+ # The cardholder address line 1 provided for verification in the provisioning
4227
+ # request.
4228
+ #
4229
+ # @return [String, nil]
4230
+ required :provided_line1, String, nil?: true
4231
+
4232
+ # @!attribute provided_postal_code
4233
+ # The postal code provided for verification in the provisioning request.
4234
+ #
4235
+ # @return [String, nil]
4236
+ required :provided_postal_code, String, nil?: true
4237
+
4238
+ # @!attribute result
4239
+ # The address verification result.
4240
+ #
4241
+ # @return [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result]
4242
+ required :result,
4243
+ enum: -> { Increase::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result }
4244
+
4245
+ # @!method initialize(actual_line1:, actual_postal_code:, provided_line1:, provided_postal_code:, result:)
4246
+ # Cardholder address provided in the provisioning request and the address on file
4247
+ # we verified it against.
4248
+ #
4249
+ # @param actual_line1 [String, nil] Line 1 of the address on file for the cardholder.
4250
+ #
4251
+ # @param actual_postal_code [String, nil] The postal code of the address on file for the cardholder.
4252
+ #
4253
+ # @param provided_line1 [String, nil]
4254
+ # The cardholder address line 1 provided for verification in the provisioning
4255
+ # request.
4256
+ #
4257
+ # @param provided_postal_code [String, nil]
4258
+ # The postal code provided for verification in the provisioning request.
4259
+ #
4260
+ # @param result [Symbol, Increase::Models::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress::Result]
4261
+ # The address verification result.
4262
+
4263
+ # The address verification result.
4264
+ #
4265
+ # @see Increase::Models::RealTimeDecision::DigitalWalletToken::Verification::CardholderAddress#result
4266
+ module Result
4267
+ extend Increase::Internal::Type::Enum
4268
+
4269
+ # No address information was provided in the authorization request.
4270
+ NOT_CHECKED = :not_checked
4271
+
4272
+ # Postal code matches, but the street address does not match or was not provided.
4273
+ POSTAL_CODE_MATCH_ADDRESS_NO_MATCH = :postal_code_match_address_no_match
4274
+
4275
+ # Postal code does not match, but the street address matches or was not provided.
4276
+ POSTAL_CODE_NO_MATCH_ADDRESS_MATCH = :postal_code_no_match_address_match
4277
+
4278
+ # Postal code and street address match.
4279
+ MATCH = :match
4280
+
4281
+ # Postal code and street address do not match.
4282
+ NO_MATCH = :no_match
4283
+
4284
+ # Postal code matches, but the street address was not verified. (deprecated)
4285
+ POSTAL_CODE_MATCH_ADDRESS_NOT_CHECKED = :postal_code_match_address_not_checked
4286
+
4287
+ # @!method self.values
4288
+ # @return [Array<Symbol>]
4289
+ end
4290
+ end
4291
+ end
4292
+
4293
+ # @see Increase::Models::RealTimeDecision::DigitalWalletToken#visa
4294
+ class Visa < Increase::Internal::Type::BaseModel
4295
+ # @!attribute network_risk_score
4296
+ # Visa's risk score for the card, based on its transaction history, from 0 to 99.
4297
+ # A higher score indicates a higher risk.
4298
+ #
4299
+ # @return [Integer, nil]
4300
+ required :network_risk_score, Integer, nil?: true
4301
+
4302
+ # @!attribute provisioning_risk_score
4303
+ # Visa's risk score for the provisioning request, from 1 to 99. A higher score
4304
+ # indicates a higher risk.
4305
+ #
4306
+ # @return [Integer, nil]
4307
+ required :provisioning_risk_score, Integer, nil?: true
4308
+
4309
+ # @!method initialize(network_risk_score:, provisioning_risk_score:)
4310
+ # Risk scores provided by Visa for the provisioning request. This field will be
4311
+ # present in the JSON response if and only if `network` is equal to `visa`.
4312
+ #
4313
+ # @param network_risk_score [Integer, nil]
4314
+ # Visa's risk score for the card, based on its transaction history, from 0 to 99.
4315
+ # A higher score indicates a higher risk.
4316
+ #
4317
+ # @param provisioning_risk_score [Integer, nil]
4318
+ # Visa's risk score for the provisioning request, from 1 to 99. A higher score
4319
+ # indicates a higher risk.
4320
+ end
4321
+
4322
+ # @see Increase::Models::RealTimeDecision::DigitalWalletToken#wallet
4323
+ class Wallet < Increase::Internal::Type::BaseModel
4324
+ # @!attribute account_email_age_days
4325
+ # The number of days since the email address was added to the cardholder's digital
4326
+ # wallet account, up to 999.
4327
+ #
4328
+ # @return [Integer, nil]
4329
+ required :account_email_age_days, Integer, nil?: true
4330
+
4331
+ # @!attribute account_identifier
4332
+ # An identifier for the cardholder's account with the digital wallet.
4333
+ #
4334
+ # @return [String, nil]
4335
+ required :account_identifier, String, nil?: true
4336
+
4337
+ # @!attribute account_score
4338
+ # How much the digital wallet trusts the cardholder's account, from 1 to 5. A
4339
+ # higher score indicates more trust.
4340
+ #
4341
+ # @return [Integer, nil]
4342
+ required :account_score, Integer, nil?: true
4343
+
4344
+ # @!attribute device_score
4345
+ # How much the digital wallet trusts the device the card is being added to, from 1
4346
+ # to 5. A higher score indicates more trust.
4347
+ #
4348
+ # @return [Integer, nil]
4349
+ required :device_score, Integer, nil?: true
4350
+
4351
+ # @!attribute email_hash
4352
+ # A hash of the email address on the cardholder's digital wallet account.
4353
+ #
4354
+ # @return [String, nil]
4355
+ required :email_hash, String, nil?: true
4356
+
4357
+ # @!method initialize(account_email_age_days:, account_identifier:, account_score:, device_score:, email_hash:)
4358
+ # Details about the digital wallet.
4359
+ #
4360
+ # @param account_email_age_days [Integer, nil]
4361
+ # The number of days since the email address was added to the cardholder's digital
4362
+ # wallet account, up to 999.
4363
+ #
4364
+ # @param account_identifier [String, nil]
4365
+ # An identifier for the cardholder's account with the digital wallet.
4366
+ #
4367
+ # @param account_score [Integer, nil]
4368
+ # How much the digital wallet trusts the cardholder's account, from 1 to 5. A
4369
+ # higher score indicates more trust.
4370
+ #
4371
+ # @param device_score [Integer, nil]
4372
+ # How much the digital wallet trusts the device the card is being added to, from 1
4373
+ # to 5. A higher score indicates more trust.
4374
+ #
4375
+ # @param email_hash [String, nil] A hash of the email address on the cardholder's digital wallet account.
4376
+ end
4048
4377
  end
4049
4378
 
4050
4379
  # The status of the Real-Time Decision.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.368.0"
4
+ VERSION = "1.369.0"
5
5
  end
@@ -79,6 +79,18 @@ module Increase
79
79
  end
80
80
  attr_accessor :token_requestor
81
81
 
82
+ # The digital wallet or merchant that requested the token.
83
+ sig { returns(Increase::DigitalWalletToken::TokenRequestorDetails) }
84
+ attr_reader :token_requestor_details
85
+
86
+ sig do
87
+ params(
88
+ token_requestor_details:
89
+ Increase::DigitalWalletToken::TokenRequestorDetails::OrHash
90
+ ).void
91
+ end
92
+ attr_writer :token_requestor_details
93
+
82
94
  # A constant representing the object's type. For this resource it will always be
83
95
  # `digital_wallet_token`.
84
96
  sig { returns(Increase::DigitalWalletToken::Type::TaggedSymbol) }
@@ -88,6 +100,13 @@ module Increase
88
100
  sig { returns(T::Array[Increase::DigitalWalletToken::Update]) }
89
101
  attr_accessor :updates
90
102
 
103
+ # Details about the digital wallet.
104
+ sig { returns(Increase::DigitalWalletToken::Wallet) }
105
+ attr_reader :wallet
106
+
107
+ sig { params(wallet: Increase::DigitalWalletToken::Wallet::OrHash).void }
108
+ attr_writer :wallet
109
+
91
110
  # A Digital Wallet Token is created when a user adds a Card to their Apple Pay or
92
111
  # Google Pay app. The Digital Wallet Token can be used for purchases just like a
93
112
  # Card.
@@ -108,8 +127,11 @@ module Increase
108
127
  token_reference_identifier: String,
109
128
  token_requestor:
110
129
  Increase::DigitalWalletToken::TokenRequestor::OrSymbol,
130
+ token_requestor_details:
131
+ Increase::DigitalWalletToken::TokenRequestorDetails::OrHash,
111
132
  type: Increase::DigitalWalletToken::Type::OrSymbol,
112
- updates: T::Array[Increase::DigitalWalletToken::Update::OrHash]
133
+ updates: T::Array[Increase::DigitalWalletToken::Update::OrHash],
134
+ wallet: Increase::DigitalWalletToken::Wallet::OrHash
113
135
  ).returns(T.attached_class)
114
136
  end
115
137
  def self.new(
@@ -136,11 +158,15 @@ module Increase
136
158
  token_reference_identifier:,
137
159
  # The digital wallet app being used.
138
160
  token_requestor:,
161
+ # The digital wallet or merchant that requested the token.
162
+ token_requestor_details:,
139
163
  # A constant representing the object's type. For this resource it will always be
140
164
  # `digital_wallet_token`.
141
165
  type:,
142
166
  # Updates to the Digital Wallet Token.
143
- updates:
167
+ updates:,
168
+ # Details about the digital wallet.
169
+ wallet:
144
170
  )
145
171
  end
146
172
 
@@ -162,8 +188,11 @@ module Increase
162
188
  token_reference_identifier: String,
163
189
  token_requestor:
164
190
  Increase::DigitalWalletToken::TokenRequestor::TaggedSymbol,
191
+ token_requestor_details:
192
+ Increase::DigitalWalletToken::TokenRequestorDetails,
165
193
  type: Increase::DigitalWalletToken::Type::TaggedSymbol,
166
- updates: T::Array[Increase::DigitalWalletToken::Update]
194
+ updates: T::Array[Increase::DigitalWalletToken::Update],
195
+ wallet: Increase::DigitalWalletToken::Wallet
167
196
  }
168
197
  )
169
198
  end
@@ -481,6 +510,44 @@ module Increase
481
510
  end
482
511
  end
483
512
 
513
+ class TokenRequestorDetails < Increase::Internal::Type::BaseModel
514
+ OrHash =
515
+ T.type_alias do
516
+ T.any(
517
+ Increase::DigitalWalletToken::TokenRequestorDetails,
518
+ Increase::Internal::AnyHash
519
+ )
520
+ end
521
+
522
+ # The identifier assigned to the token requestor by the card network.
523
+ sig { returns(String) }
524
+ attr_accessor :identifier
525
+
526
+ # The name of the token requestor, for example "Apple Inc.".
527
+ sig { returns(T.nilable(String)) }
528
+ attr_accessor :name
529
+
530
+ # The digital wallet or merchant that requested the token.
531
+ sig do
532
+ params(identifier: String, name: T.nilable(String)).returns(
533
+ T.attached_class
534
+ )
535
+ end
536
+ def self.new(
537
+ # The identifier assigned to the token requestor by the card network.
538
+ identifier:,
539
+ # The name of the token requestor, for example "Apple Inc.".
540
+ name:
541
+ )
542
+ end
543
+
544
+ sig do
545
+ override.returns({ identifier: String, name: T.nilable(String) })
546
+ end
547
+ def to_hash
548
+ end
549
+ end
550
+
484
551
  # A constant representing the object's type. For this resource it will always be
485
552
  # `digital_wallet_token`.
486
553
  module Type
@@ -608,6 +675,50 @@ module Increase
608
675
  end
609
676
  end
610
677
  end
678
+
679
+ class Wallet < Increase::Internal::Type::BaseModel
680
+ OrHash =
681
+ T.type_alias do
682
+ T.any(
683
+ Increase::DigitalWalletToken::Wallet,
684
+ Increase::Internal::AnyHash
685
+ )
686
+ end
687
+
688
+ # An identifier for the cardholder's account with the digital wallet.
689
+ sig { returns(T.nilable(String)) }
690
+ attr_accessor :account_identifier
691
+
692
+ # A hash of the email address on the cardholder's digital wallet account.
693
+ sig { returns(T.nilable(String)) }
694
+ attr_accessor :email_hash
695
+
696
+ # Details about the digital wallet.
697
+ sig do
698
+ params(
699
+ account_identifier: T.nilable(String),
700
+ email_hash: T.nilable(String)
701
+ ).returns(T.attached_class)
702
+ end
703
+ def self.new(
704
+ # An identifier for the cardholder's account with the digital wallet.
705
+ account_identifier:,
706
+ # A hash of the email address on the cardholder's digital wallet account.
707
+ email_hash:
708
+ )
709
+ end
710
+
711
+ sig do
712
+ override.returns(
713
+ {
714
+ account_identifier: T.nilable(String),
715
+ email_hash: T.nilable(String)
716
+ }
717
+ )
718
+ end
719
+ def to_hash
720
+ end
721
+ end
611
722
  end
612
723
  end
613
724
  end