google-apis-recaptchaenterprise_v1 0.27.0 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f27006ebcdc53342fc6977280f6b65479f7835b029b1414b1c6ec175e2f35089
4
- data.tar.gz: 83622fa5994d1b78ccda2cdbccb8fcb79f0a348535c2909b853e4a2b5d41c798
3
+ metadata.gz: 9090f0f351eec8af258536b905a80b2689f80e594ec486cd89189ada932176f8
4
+ data.tar.gz: e58fa18416eb06d31a74e6ecec759808a0b88bc33e4f05af27eb6365a515d75b
5
5
  SHA512:
6
- metadata.gz: 4af881be23889da587c8a7305041d60b1eb58e9f1ecea5dd10dede73352db159a244187127f407ac08246628f953db61c730982fca01f1ac4f8dd3c2604678c7
7
- data.tar.gz: d27ba4a3e7bee12d6bcc00d4aad380e24f0ad91d4f4267abffa6c99055edfd3e3d365a0f0ee73901b02c474e37b0decd6cf853a943e808ed2c8d7a2f45d63e94
6
+ metadata.gz: dec93f14ce37e457ec190e7009f6d1b469e48e12f1763e5c45c8a512c211afb06dae0e4e50e99598ce63c268bbd6a82cc55a2ddc3c4a090ed60e31e131ff35d4
7
+ data.tar.gz: e79fd9a92dc52def043a1a23952648ba6a998c275cd2e48b21d3ba8cc5ddf42333c60ba604ef4e7506e9eb26e04c53a7aa23fddf07d75a55f8c4466154417265
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-recaptchaenterprise_v1
2
2
 
3
+ ### v0.29.0 (2023-03-19)
4
+
5
+ * Regenerated from discovery document revision 20230312
6
+
7
+ ### v0.28.0 (2023-02-26)
8
+
9
+ * Regenerated from discovery document revision 20230219
10
+ * Regenerated using generator version 0.12.0
11
+
3
12
  ### v0.27.0 (2023-02-12)
4
13
 
5
14
  * Regenerated from discovery document revision 20230129
@@ -184,6 +184,11 @@ module Google
184
184
  # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event]
185
185
  attr_accessor :event
186
186
 
187
+ # Assessment for Fraud Prevention.
188
+ # Corresponds to the JSON property `fraudPreventionAssessment`
189
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment]
190
+ attr_accessor :fraud_prevention_assessment
191
+
187
192
  # Output only. The resource name for the Assessment in the format "projects/`
188
193
  # project`/assessments/`assessment`".
189
194
  # Corresponds to the JSON property `name`
@@ -200,7 +205,7 @@ module Google
200
205
  # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RiskAnalysis]
201
206
  attr_accessor :risk_analysis
202
207
 
203
- # Output only. Properties of the provided event token.
208
+ # Properties of the provided event token.
204
209
  # Corresponds to the JSON property `tokenProperties`
205
210
  # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TokenProperties]
206
211
  attr_accessor :token_properties
@@ -214,6 +219,7 @@ module Google
214
219
  @account_defender_assessment = args[:account_defender_assessment] if args.key?(:account_defender_assessment)
215
220
  @account_verification = args[:account_verification] if args.key?(:account_verification)
216
221
  @event = args[:event] if args.key?(:event)
222
+ @fraud_prevention_assessment = args[:fraud_prevention_assessment] if args.key?(:fraud_prevention_assessment)
217
223
  @name = args[:name] if args.key?(:name)
218
224
  @private_password_leak_verification = args[:private_password_leak_verification] if args.key?(:private_password_leak_verification)
219
225
  @risk_analysis = args[:risk_analysis] if args.key?(:risk_analysis)
@@ -301,7 +307,7 @@ module Google
301
307
  end
302
308
  end
303
309
 
304
- #
310
+ # The event being assessed.
305
311
  class GoogleCloudRecaptchaenterpriseV1Event
306
312
  include Google::Apis::Core::Hashable
307
313
 
@@ -312,6 +318,14 @@ module Google
312
318
  # @return [String]
313
319
  attr_accessor :expected_action
314
320
 
321
+ # Optional. Optional flag for a reCAPTCHA express request for an assessment
322
+ # without a token. If enabled, `site_key` must reference a SCORE key with WAF
323
+ # feature set to EXPRESS.
324
+ # Corresponds to the JSON property `express`
325
+ # @return [Boolean]
326
+ attr_accessor :express
327
+ alias_method :express?, :express
328
+
315
329
  # Optional. Unique stable hashed user identifier for the request. The identifier
316
330
  # must be hashed using hmac-sha256 with stable secret.
317
331
  # Corresponds to the JSON property `hashedAccountId`
@@ -319,6 +333,21 @@ module Google
319
333
  # @return [String]
320
334
  attr_accessor :hashed_account_id
321
335
 
336
+ # Optional. Optional HTTP header information about the request.
337
+ # Corresponds to the JSON property `headers`
338
+ # @return [Array<String>]
339
+ attr_accessor :headers
340
+
341
+ # Optional. Optional JA3 fingerprint for SSL clients.
342
+ # Corresponds to the JSON property `ja3`
343
+ # @return [String]
344
+ attr_accessor :ja3
345
+
346
+ # Optional. The URI resource the user requested that triggered an assessment.
347
+ # Corresponds to the JSON property `requestedUri`
348
+ # @return [String]
349
+ attr_accessor :requested_uri
350
+
322
351
  # Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
323
352
  # site and generate the token.
324
353
  # Corresponds to the JSON property `siteKey`
@@ -331,6 +360,12 @@ module Google
331
360
  # @return [String]
332
361
  attr_accessor :token
333
362
 
363
+ # Transaction data associated with a payment protected by reCAPTCHA Enterprise.
364
+ # All fields are optional.
365
+ # Corresponds to the JSON property `transactionData`
366
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData]
367
+ attr_accessor :transaction_data
368
+
334
369
  # Optional. The user agent present in the request from the user's device related
335
370
  # to this event.
336
371
  # Corresponds to the JSON property `userAgent`
@@ -350,14 +385,94 @@ module Google
350
385
  # Update properties of this object
351
386
  def update!(**args)
352
387
  @expected_action = args[:expected_action] if args.key?(:expected_action)
388
+ @express = args[:express] if args.key?(:express)
353
389
  @hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
390
+ @headers = args[:headers] if args.key?(:headers)
391
+ @ja3 = args[:ja3] if args.key?(:ja3)
392
+ @requested_uri = args[:requested_uri] if args.key?(:requested_uri)
354
393
  @site_key = args[:site_key] if args.key?(:site_key)
355
394
  @token = args[:token] if args.key?(:token)
395
+ @transaction_data = args[:transaction_data] if args.key?(:transaction_data)
356
396
  @user_agent = args[:user_agent] if args.key?(:user_agent)
357
397
  @user_ip_address = args[:user_ip_address] if args.key?(:user_ip_address)
358
398
  end
359
399
  end
360
400
 
401
+ # Assessment for Fraud Prevention.
402
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment
403
+ include Google::Apis::Core::Hashable
404
+
405
+ # Information about card testing fraud, where an adversary is testing
406
+ # fraudulently obtained cards or brute forcing their details.
407
+ # Corresponds to the JSON property `cardTestingVerdict`
408
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict]
409
+ attr_accessor :card_testing_verdict
410
+
411
+ # Information about stolen instrument fraud, where the user is not the
412
+ # legitimate owner of the instrument being used for the purchase.
413
+ # Corresponds to the JSON property `stolenInstrumentVerdict`
414
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict]
415
+ attr_accessor :stolen_instrument_verdict
416
+
417
+ # Probability (0-1) of this transaction being fraudulent. Summarizes the
418
+ # combined risk of attack vectors below.
419
+ # Corresponds to the JSON property `transactionRisk`
420
+ # @return [Float]
421
+ attr_accessor :transaction_risk
422
+
423
+ def initialize(**args)
424
+ update!(**args)
425
+ end
426
+
427
+ # Update properties of this object
428
+ def update!(**args)
429
+ @card_testing_verdict = args[:card_testing_verdict] if args.key?(:card_testing_verdict)
430
+ @stolen_instrument_verdict = args[:stolen_instrument_verdict] if args.key?(:stolen_instrument_verdict)
431
+ @transaction_risk = args[:transaction_risk] if args.key?(:transaction_risk)
432
+ end
433
+ end
434
+
435
+ # Information about card testing fraud, where an adversary is testing
436
+ # fraudulently obtained cards or brute forcing their details.
437
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict
438
+ include Google::Apis::Core::Hashable
439
+
440
+ # Probability (0-1) of this transaction attempt being part of a card testing
441
+ # attack.
442
+ # Corresponds to the JSON property `risk`
443
+ # @return [Float]
444
+ attr_accessor :risk
445
+
446
+ def initialize(**args)
447
+ update!(**args)
448
+ end
449
+
450
+ # Update properties of this object
451
+ def update!(**args)
452
+ @risk = args[:risk] if args.key?(:risk)
453
+ end
454
+ end
455
+
456
+ # Information about stolen instrument fraud, where the user is not the
457
+ # legitimate owner of the instrument being used for the purchase.
458
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict
459
+ include Google::Apis::Core::Hashable
460
+
461
+ # Probability (0-1) of this transaction being executed with a stolen instrument.
462
+ # Corresponds to the JSON property `risk`
463
+ # @return [Float]
464
+ attr_accessor :risk
465
+
466
+ def initialize(**args)
467
+ update!(**args)
468
+ end
469
+
470
+ # Update properties of this object
471
+ def update!(**args)
472
+ @risk = args[:risk] if args.key?(:risk)
473
+ end
474
+ end
475
+
361
476
  # Settings specific to keys that can be used by iOS apps.
362
477
  class GoogleCloudRecaptchaenterpriseV1IosKeySettings
363
478
  include Google::Apis::Core::Hashable
@@ -395,7 +510,7 @@ module Google
395
510
  # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AndroidKeySettings]
396
511
  attr_accessor :android_settings
397
512
 
398
- # The timestamp corresponding to the creation of this Key.
513
+ # Output only. The timestamp corresponding to the creation of this Key.
399
514
  # Corresponds to the JSON property `createTime`
400
515
  # @return [String]
401
516
  attr_accessor :create_time
@@ -885,7 +1000,7 @@ module Google
885
1000
  end
886
1001
  end
887
1002
 
888
- #
1003
+ # Properties of the provided event token.
889
1004
  class GoogleCloudRecaptchaenterpriseV1TokenProperties
890
1005
  include Google::Apis::Core::Hashable
891
1006
 
@@ -945,6 +1060,288 @@ module Google
945
1060
  end
946
1061
  end
947
1062
 
1063
+ # Transaction data associated with a payment protected by reCAPTCHA Enterprise.
1064
+ # All fields are optional.
1065
+ class GoogleCloudRecaptchaenterpriseV1TransactionData
1066
+ include Google::Apis::Core::Hashable
1067
+
1068
+ # Structured address format for billing and shipping addresses.
1069
+ # Corresponds to the JSON property `billingAddress`
1070
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress]
1071
+ attr_accessor :billing_address
1072
+
1073
+ # The Bank Identification Number - generally the first 6 or 8 digits of the card.
1074
+ # Corresponds to the JSON property `cardBin`
1075
+ # @return [String]
1076
+ attr_accessor :card_bin
1077
+
1078
+ # The last four digits of the card.
1079
+ # Corresponds to the JSON property `cardLastFour`
1080
+ # @return [String]
1081
+ attr_accessor :card_last_four
1082
+
1083
+ # The currency code in ISO-4217 format.
1084
+ # Corresponds to the JSON property `currencyCode`
1085
+ # @return [String]
1086
+ attr_accessor :currency_code
1087
+
1088
+ # Details about the transaction from the gateway.
1089
+ # Corresponds to the JSON property `gatewayInfo`
1090
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo]
1091
+ attr_accessor :gateway_info
1092
+
1093
+ # Items purchased in this transaction.
1094
+ # Corresponds to the JSON property `items`
1095
+ # @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataItem>]
1096
+ attr_accessor :items
1097
+
1098
+ # Information about the user or users fulfilling the transaction.
1099
+ # Corresponds to the JSON property `merchants`
1100
+ # @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser>]
1101
+ attr_accessor :merchants
1102
+
1103
+ # The payment method for the transaction. The allowed values are: * credit-card *
1104
+ # debit-card * gift-card * processor-`name` (If a third-party is used, for
1105
+ # example, processor-paypal) * custom-`name` (If an alternative method is used,
1106
+ # for example, custom-crypto)
1107
+ # Corresponds to the JSON property `paymentMethod`
1108
+ # @return [String]
1109
+ attr_accessor :payment_method
1110
+
1111
+ # Structured address format for billing and shipping addresses.
1112
+ # Corresponds to the JSON property `shippingAddress`
1113
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress]
1114
+ attr_accessor :shipping_address
1115
+
1116
+ # The value of shipping in the specified currency. 0 for free or no shipping.
1117
+ # Corresponds to the JSON property `shippingValue`
1118
+ # @return [Float]
1119
+ attr_accessor :shipping_value
1120
+
1121
+ # Unique identifier for the transaction. This custom identifier can be used to
1122
+ # reference this transaction in the future, for example, labeling a refund or
1123
+ # chargeback event. Two attempts at the same transaction should use the same
1124
+ # transaction id.
1125
+ # Corresponds to the JSON property `transactionId`
1126
+ # @return [String]
1127
+ attr_accessor :transaction_id
1128
+
1129
+ # Details about a user's account involved in the transaction.
1130
+ # Corresponds to the JSON property `user`
1131
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser]
1132
+ attr_accessor :user
1133
+
1134
+ # The decimal value of the transaction in the specified currency.
1135
+ # Corresponds to the JSON property `value`
1136
+ # @return [Float]
1137
+ attr_accessor :value
1138
+
1139
+ def initialize(**args)
1140
+ update!(**args)
1141
+ end
1142
+
1143
+ # Update properties of this object
1144
+ def update!(**args)
1145
+ @billing_address = args[:billing_address] if args.key?(:billing_address)
1146
+ @card_bin = args[:card_bin] if args.key?(:card_bin)
1147
+ @card_last_four = args[:card_last_four] if args.key?(:card_last_four)
1148
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1149
+ @gateway_info = args[:gateway_info] if args.key?(:gateway_info)
1150
+ @items = args[:items] if args.key?(:items)
1151
+ @merchants = args[:merchants] if args.key?(:merchants)
1152
+ @payment_method = args[:payment_method] if args.key?(:payment_method)
1153
+ @shipping_address = args[:shipping_address] if args.key?(:shipping_address)
1154
+ @shipping_value = args[:shipping_value] if args.key?(:shipping_value)
1155
+ @transaction_id = args[:transaction_id] if args.key?(:transaction_id)
1156
+ @user = args[:user] if args.key?(:user)
1157
+ @value = args[:value] if args.key?(:value)
1158
+ end
1159
+ end
1160
+
1161
+ # Structured address format for billing and shipping addresses.
1162
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
1163
+ include Google::Apis::Core::Hashable
1164
+
1165
+ # The first lines of the address. The first line generally contains the street
1166
+ # name and number, and further lines may include information such as an
1167
+ # apartment number.
1168
+ # Corresponds to the JSON property `address`
1169
+ # @return [Array<String>]
1170
+ attr_accessor :address
1171
+
1172
+ # The state, province, or otherwise administrative area of the address.
1173
+ # Corresponds to the JSON property `administrativeArea`
1174
+ # @return [String]
1175
+ attr_accessor :administrative_area
1176
+
1177
+ # The town/city of the address.
1178
+ # Corresponds to the JSON property `locality`
1179
+ # @return [String]
1180
+ attr_accessor :locality
1181
+
1182
+ # The postal or ZIP code of the address.
1183
+ # Corresponds to the JSON property `postalCode`
1184
+ # @return [String]
1185
+ attr_accessor :postal_code
1186
+
1187
+ # The recipient name, potentially including information such as "care of".
1188
+ # Corresponds to the JSON property `recipient`
1189
+ # @return [String]
1190
+ attr_accessor :recipient
1191
+
1192
+ # The CLDR country/region of the address.
1193
+ # Corresponds to the JSON property `regionCode`
1194
+ # @return [String]
1195
+ attr_accessor :region_code
1196
+
1197
+ def initialize(**args)
1198
+ update!(**args)
1199
+ end
1200
+
1201
+ # Update properties of this object
1202
+ def update!(**args)
1203
+ @address = args[:address] if args.key?(:address)
1204
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
1205
+ @locality = args[:locality] if args.key?(:locality)
1206
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
1207
+ @recipient = args[:recipient] if args.key?(:recipient)
1208
+ @region_code = args[:region_code] if args.key?(:region_code)
1209
+ end
1210
+ end
1211
+
1212
+ # Details about the transaction from the gateway.
1213
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo
1214
+ include Google::Apis::Core::Hashable
1215
+
1216
+ # AVS response code from the gateway (available only when reCAPTCHA Enterprise
1217
+ # is called after authorization).
1218
+ # Corresponds to the JSON property `avsResponseCode`
1219
+ # @return [String]
1220
+ attr_accessor :avs_response_code
1221
+
1222
+ # CVV response code from the gateway (available only when reCAPTCHA Enterprise
1223
+ # is called after authorization).
1224
+ # Corresponds to the JSON property `cvvResponseCode`
1225
+ # @return [String]
1226
+ attr_accessor :cvv_response_code
1227
+
1228
+ # Gateway response code describing the state of the transaction.
1229
+ # Corresponds to the JSON property `gatewayResponseCode`
1230
+ # @return [String]
1231
+ attr_accessor :gateway_response_code
1232
+
1233
+ # Name of the gateway service (for example, stripe, square, paypal).
1234
+ # Corresponds to the JSON property `name`
1235
+ # @return [String]
1236
+ attr_accessor :name
1237
+
1238
+ def initialize(**args)
1239
+ update!(**args)
1240
+ end
1241
+
1242
+ # Update properties of this object
1243
+ def update!(**args)
1244
+ @avs_response_code = args[:avs_response_code] if args.key?(:avs_response_code)
1245
+ @cvv_response_code = args[:cvv_response_code] if args.key?(:cvv_response_code)
1246
+ @gateway_response_code = args[:gateway_response_code] if args.key?(:gateway_response_code)
1247
+ @name = args[:name] if args.key?(:name)
1248
+ end
1249
+ end
1250
+
1251
+ # Line items being purchased in this transaction.
1252
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataItem
1253
+ include Google::Apis::Core::Hashable
1254
+
1255
+ # When a merchant is specified, its corresponding account_id. Necessary to
1256
+ # populate marketplace-style transactions.
1257
+ # Corresponds to the JSON property `merchantAccountId`
1258
+ # @return [String]
1259
+ attr_accessor :merchant_account_id
1260
+
1261
+ # The full name of the item.
1262
+ # Corresponds to the JSON property `name`
1263
+ # @return [String]
1264
+ attr_accessor :name
1265
+
1266
+ # The quantity of this item that is being purchased.
1267
+ # Corresponds to the JSON property `quantity`
1268
+ # @return [Fixnum]
1269
+ attr_accessor :quantity
1270
+
1271
+ # The value per item that the user is paying, in the transaction currency, after
1272
+ # discounts.
1273
+ # Corresponds to the JSON property `value`
1274
+ # @return [Float]
1275
+ attr_accessor :value
1276
+
1277
+ def initialize(**args)
1278
+ update!(**args)
1279
+ end
1280
+
1281
+ # Update properties of this object
1282
+ def update!(**args)
1283
+ @merchant_account_id = args[:merchant_account_id] if args.key?(:merchant_account_id)
1284
+ @name = args[:name] if args.key?(:name)
1285
+ @quantity = args[:quantity] if args.key?(:quantity)
1286
+ @value = args[:value] if args.key?(:value)
1287
+ end
1288
+ end
1289
+
1290
+ # Details about a user's account involved in the transaction.
1291
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataUser
1292
+ include Google::Apis::Core::Hashable
1293
+
1294
+ # Unique account identifier for this user. If using account defender, this
1295
+ # should match the hashed_account_id field. Otherwise, a unique and persistent
1296
+ # identifier for this account.
1297
+ # Corresponds to the JSON property `accountId`
1298
+ # @return [String]
1299
+ attr_accessor :account_id
1300
+
1301
+ # The epoch milliseconds of the user's account creation.
1302
+ # Corresponds to the JSON property `creationMs`
1303
+ # @return [Fixnum]
1304
+ attr_accessor :creation_ms
1305
+
1306
+ # The email address of the user.
1307
+ # Corresponds to the JSON property `email`
1308
+ # @return [String]
1309
+ attr_accessor :email
1310
+
1311
+ # Whether the email has been verified to be accessible by the user (OTP or
1312
+ # similar).
1313
+ # Corresponds to the JSON property `emailVerified`
1314
+ # @return [Boolean]
1315
+ attr_accessor :email_verified
1316
+ alias_method :email_verified?, :email_verified
1317
+
1318
+ # The phone number of the user, with country code.
1319
+ # Corresponds to the JSON property `phoneNumber`
1320
+ # @return [String]
1321
+ attr_accessor :phone_number
1322
+
1323
+ # Whether the phone number has been verified to be accessible by the user (OTP
1324
+ # or similar).
1325
+ # Corresponds to the JSON property `phoneVerified`
1326
+ # @return [Boolean]
1327
+ attr_accessor :phone_verified
1328
+ alias_method :phone_verified?, :phone_verified
1329
+
1330
+ def initialize(**args)
1331
+ update!(**args)
1332
+ end
1333
+
1334
+ # Update properties of this object
1335
+ def update!(**args)
1336
+ @account_id = args[:account_id] if args.key?(:account_id)
1337
+ @creation_ms = args[:creation_ms] if args.key?(:creation_ms)
1338
+ @email = args[:email] if args.key?(:email)
1339
+ @email_verified = args[:email_verified] if args.key?(:email_verified)
1340
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
1341
+ @phone_verified = args[:phone_verified] if args.key?(:phone_verified)
1342
+ end
1343
+ end
1344
+
948
1345
  # Describes an event in the lifecycle of a payment transaction.
949
1346
  class GoogleCloudRecaptchaenterpriseV1TransactionEvent
950
1347
  include Google::Apis::Core::Hashable
@@ -960,15 +1357,16 @@ module Google
960
1357
  # @return [String]
961
1358
  attr_accessor :event_type
962
1359
 
963
- # Optional. The reason or standardized code which corresponds with this
964
- # transaction event, if one exists. E.g. a CHARGEBACK Event with code 4553.
1360
+ # Optional. The reason or standardized code that corresponds with this
1361
+ # transaction event, if one exists. For example, a CHARGEBACK event with code
1362
+ # 6005.
965
1363
  # Corresponds to the JSON property `reason`
966
1364
  # @return [String]
967
1365
  attr_accessor :reason
968
1366
 
969
1367
  # Optional. The value that corresponds with this transaction event, if one
970
- # exists. E.g. A refund event where $5.00 was refunded. Currency is obtained
971
- # from the original transaction data.
1368
+ # exists. For example, a refund event where $5.00 was refunded. Currency is
1369
+ # obtained from the original transaction data.
972
1370
  # Corresponds to the JSON property `value`
973
1371
  # @return [Float]
974
1372
  attr_accessor :value
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RecaptchaenterpriseV1
18
18
  # Version of the google-apis-recaptchaenterprise_v1 gem
19
- GEM_VERSION = "0.27.0"
19
+ GEM_VERSION = "0.29.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.1"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230129"
25
+ REVISION = "20230312"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,24 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
79
97
  class GoogleCloudRecaptchaenterpriseV1IosKeySettings
80
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
99
 
@@ -184,6 +202,36 @@ module Google
184
202
  include Google::Apis::Core::JsonObjectSupport
185
203
  end
186
204
 
205
+ class GoogleCloudRecaptchaenterpriseV1TransactionData
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
211
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
217
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
223
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataItem
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataUser
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
187
235
  class GoogleCloudRecaptchaenterpriseV1TransactionEvent
188
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
237
 
@@ -260,6 +308,8 @@ module Google
260
308
 
261
309
  property :event, as: 'event', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event::Representation
262
310
 
311
+ property :fraud_prevention_assessment, as: 'fraudPreventionAssessment', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment::Representation
312
+
263
313
  property :name, as: 'name'
264
314
  property :private_password_leak_verification, as: 'privatePasswordLeakVerification', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification::Representation
265
315
 
@@ -294,14 +344,45 @@ module Google
294
344
  # @private
295
345
  class Representation < Google::Apis::Core::JsonRepresentation
296
346
  property :expected_action, as: 'expectedAction'
347
+ property :express, as: 'express'
297
348
  property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
349
+ collection :headers, as: 'headers'
350
+ property :ja3, as: 'ja3'
351
+ property :requested_uri, as: 'requestedUri'
298
352
  property :site_key, as: 'siteKey'
299
353
  property :token, as: 'token'
354
+ property :transaction_data, as: 'transactionData', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData::Representation
355
+
300
356
  property :user_agent, as: 'userAgent'
301
357
  property :user_ip_address, as: 'userIpAddress'
302
358
  end
303
359
  end
304
360
 
361
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment
362
+ # @private
363
+ class Representation < Google::Apis::Core::JsonRepresentation
364
+ property :card_testing_verdict, as: 'cardTestingVerdict', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict::Representation
365
+
366
+ property :stolen_instrument_verdict, as: 'stolenInstrumentVerdict', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict::Representation
367
+
368
+ property :transaction_risk, as: 'transactionRisk'
369
+ end
370
+ end
371
+
372
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict
373
+ # @private
374
+ class Representation < Google::Apis::Core::JsonRepresentation
375
+ property :risk, as: 'risk'
376
+ end
377
+ end
378
+
379
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict
380
+ # @private
381
+ class Representation < Google::Apis::Core::JsonRepresentation
382
+ property :risk, as: 'risk'
383
+ end
384
+ end
385
+
305
386
  class GoogleCloudRecaptchaenterpriseV1IosKeySettings
306
387
  # @private
307
388
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -472,6 +553,75 @@ module Google
472
553
  end
473
554
  end
474
555
 
556
+ class GoogleCloudRecaptchaenterpriseV1TransactionData
557
+ # @private
558
+ class Representation < Google::Apis::Core::JsonRepresentation
559
+ property :billing_address, as: 'billingAddress', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress::Representation
560
+
561
+ property :card_bin, as: 'cardBin'
562
+ property :card_last_four, as: 'cardLastFour'
563
+ property :currency_code, as: 'currencyCode'
564
+ property :gateway_info, as: 'gatewayInfo', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo::Representation
565
+
566
+ collection :items, as: 'items', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataItem, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataItem::Representation
567
+
568
+ collection :merchants, as: 'merchants', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser::Representation
569
+
570
+ property :payment_method, as: 'paymentMethod'
571
+ property :shipping_address, as: 'shippingAddress', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress::Representation
572
+
573
+ property :shipping_value, as: 'shippingValue'
574
+ property :transaction_id, as: 'transactionId'
575
+ property :user, as: 'user', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser::Representation
576
+
577
+ property :value, as: 'value'
578
+ end
579
+ end
580
+
581
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
582
+ # @private
583
+ class Representation < Google::Apis::Core::JsonRepresentation
584
+ collection :address, as: 'address'
585
+ property :administrative_area, as: 'administrativeArea'
586
+ property :locality, as: 'locality'
587
+ property :postal_code, as: 'postalCode'
588
+ property :recipient, as: 'recipient'
589
+ property :region_code, as: 'regionCode'
590
+ end
591
+ end
592
+
593
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo
594
+ # @private
595
+ class Representation < Google::Apis::Core::JsonRepresentation
596
+ property :avs_response_code, as: 'avsResponseCode'
597
+ property :cvv_response_code, as: 'cvvResponseCode'
598
+ property :gateway_response_code, as: 'gatewayResponseCode'
599
+ property :name, as: 'name'
600
+ end
601
+ end
602
+
603
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataItem
604
+ # @private
605
+ class Representation < Google::Apis::Core::JsonRepresentation
606
+ property :merchant_account_id, as: 'merchantAccountId'
607
+ property :name, as: 'name'
608
+ property :quantity, :numeric_string => true, as: 'quantity'
609
+ property :value, as: 'value'
610
+ end
611
+ end
612
+
613
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataUser
614
+ # @private
615
+ class Representation < Google::Apis::Core::JsonRepresentation
616
+ property :account_id, as: 'accountId'
617
+ property :creation_ms, :numeric_string => true, as: 'creationMs'
618
+ property :email, as: 'email'
619
+ property :email_verified, as: 'emailVerified'
620
+ property :phone_number, as: 'phoneNumber'
621
+ property :phone_verified, as: 'phoneVerified'
622
+ end
623
+ end
624
+
475
625
  class GoogleCloudRecaptchaenterpriseV1TransactionEvent
476
626
  # @private
477
627
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-recaptchaenterprise_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-12 00:00:00.000000000 Z
11
+ date: 2023-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: 0.11.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.1
29
+ version: 0.11.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recaptchaenterprise_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.27.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.29.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recaptchaenterprise_v1
63
63
  post_install_message:
64
64
  rdoc_options: []