google-apis-recaptchaenterprise_v1 0.26.0 → 0.28.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: 14751de388b783f011c29fcf2d9a620c5321e7657c2195e3fc97502332cd645d
4
- data.tar.gz: 5e8db14d89771fc65b2cfb9246322866639723718eaed419a34eeb97594c191e
3
+ metadata.gz: 6d138305f46d889d69d195282e06cb265fdb31e0c7c6e8cedff2e801b3660a5e
4
+ data.tar.gz: 55e0a09d48c3787fc2ab55f361cbc661deaaed80cd74be7840faa4369d9a277e
5
5
  SHA512:
6
- metadata.gz: cb4a9a0f30ef5c71ce858f60c17ee298b1f10ab160ae77a98037a3228779b37822fc976135d7c66061ec5d96e9c9f809f573d8ddc8f51367f964d13bdc4c531c
7
- data.tar.gz: d44abf55de377a2a9bd6765a75a2c5dd32a6db847987dbd0300b5adf821a3e81fdc5fcef9854f35442b1f3b1f09709bd4aeaf0df2ebfe9f8a1e41490b2eb214a
6
+ metadata.gz: 88a12bc53f532e2e41e558c69e2ae6c5ca07373c473875bef68c2f40f771531dc2a2e76b2174624fa2c001b2e4f1239528ff5c4c99c8c8c7a5714731df3e0c1f
7
+ data.tar.gz: 0daba0d3d1381e6a862c6af1cc1a8ae991a5a7bb4980a60b1c4ab430bba09f28aab5109ff19a6ade6a469ed50394fa4cc9ae848a9632a83aed0723c10d919a6c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-recaptchaenterprise_v1
2
2
 
3
+ ### v0.28.0 (2023-02-26)
4
+
5
+ * Regenerated from discovery document revision 20230219
6
+ * Regenerated using generator version 0.12.0
7
+
8
+ ### v0.27.0 (2023-02-12)
9
+
10
+ * Regenerated from discovery document revision 20230129
11
+ * Regenerated using generator version 0.11.1
12
+
3
13
  ### v0.26.0 (2022-12-14)
4
14
 
5
15
  * Regenerated from discovery document revision 20221212
@@ -134,6 +134,11 @@ module Google
134
134
  # @return [Array<String>]
135
135
  attr_accessor :reasons
136
136
 
137
+ # Describes an event in the lifecycle of a payment transaction.
138
+ # Corresponds to the JSON property `transactionEvent`
139
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionEvent]
140
+ attr_accessor :transaction_event
141
+
137
142
  def initialize(**args)
138
143
  update!(**args)
139
144
  end
@@ -143,6 +148,7 @@ module Google
143
148
  @annotation = args[:annotation] if args.key?(:annotation)
144
149
  @hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
145
150
  @reasons = args[:reasons] if args.key?(:reasons)
151
+ @transaction_event = args[:transaction_event] if args.key?(:transaction_event)
146
152
  end
147
153
  end
148
154
 
@@ -159,7 +165,7 @@ module Google
159
165
  end
160
166
  end
161
167
 
162
- # A recaptcha assessment resource.
168
+ # A reCAPTCHA Enterprise assessment resource.
163
169
  class GoogleCloudRecaptchaenterpriseV1Assessment
164
170
  include Google::Apis::Core::Hashable
165
171
 
@@ -178,6 +184,11 @@ module Google
178
184
  # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event]
179
185
  attr_accessor :event
180
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
+
181
192
  # Output only. The resource name for the Assessment in the format "projects/`
182
193
  # project`/assessments/`assessment`".
183
194
  # Corresponds to the JSON property `name`
@@ -208,6 +219,7 @@ module Google
208
219
  @account_defender_assessment = args[:account_defender_assessment] if args.key?(:account_defender_assessment)
209
220
  @account_verification = args[:account_verification] if args.key?(:account_verification)
210
221
  @event = args[:event] if args.key?(:event)
222
+ @fraud_prevention_assessment = args[:fraud_prevention_assessment] if args.key?(:fraud_prevention_assessment)
211
223
  @name = args[:name] if args.key?(:name)
212
224
  @private_password_leak_verification = args[:private_password_leak_verification] if args.key?(:private_password_leak_verification)
213
225
  @risk_analysis = args[:risk_analysis] if args.key?(:risk_analysis)
@@ -313,18 +325,24 @@ module Google
313
325
  # @return [String]
314
326
  attr_accessor :hashed_account_id
315
327
 
316
- # Optional. The site key that was used to invoke reCAPTCHA on your site and
317
- # generate the token.
328
+ # Optional. The site key that was used to invoke reCAPTCHA Enterprise on your
329
+ # site and generate the token.
318
330
  # Corresponds to the JSON property `siteKey`
319
331
  # @return [String]
320
332
  attr_accessor :site_key
321
333
 
322
- # Optional. The user response token provided by the reCAPTCHA client-side
323
- # integration on your site.
334
+ # Optional. The user response token provided by the reCAPTCHA Enterprise client-
335
+ # side integration on your site.
324
336
  # Corresponds to the JSON property `token`
325
337
  # @return [String]
326
338
  attr_accessor :token
327
339
 
340
+ # Transaction data associated with a payment protected by reCAPTCHA Enterprise.
341
+ # All fields are optional.
342
+ # Corresponds to the JSON property `transactionData`
343
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData]
344
+ attr_accessor :transaction_data
345
+
328
346
  # Optional. The user agent present in the request from the user's device related
329
347
  # to this event.
330
348
  # Corresponds to the JSON property `userAgent`
@@ -347,11 +365,87 @@ module Google
347
365
  @hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
348
366
  @site_key = args[:site_key] if args.key?(:site_key)
349
367
  @token = args[:token] if args.key?(:token)
368
+ @transaction_data = args[:transaction_data] if args.key?(:transaction_data)
350
369
  @user_agent = args[:user_agent] if args.key?(:user_agent)
351
370
  @user_ip_address = args[:user_ip_address] if args.key?(:user_ip_address)
352
371
  end
353
372
  end
354
373
 
374
+ # Assessment for Fraud Prevention.
375
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment
376
+ include Google::Apis::Core::Hashable
377
+
378
+ # Information about card testing fraud, where an adversary is testing
379
+ # fraudulently obtained cards or brute forcing their details.
380
+ # Corresponds to the JSON property `cardTestingVerdict`
381
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict]
382
+ attr_accessor :card_testing_verdict
383
+
384
+ # Information about stolen instrument fraud, where the user is not the
385
+ # legitimate owner of the instrument being used for the purchase.
386
+ # Corresponds to the JSON property `stolenInstrumentVerdict`
387
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict]
388
+ attr_accessor :stolen_instrument_verdict
389
+
390
+ # Probability (0-1) of this transaction being fraudulent. Summarizes the
391
+ # combined risk of attack vectors below.
392
+ # Corresponds to the JSON property `transactionRisk`
393
+ # @return [Float]
394
+ attr_accessor :transaction_risk
395
+
396
+ def initialize(**args)
397
+ update!(**args)
398
+ end
399
+
400
+ # Update properties of this object
401
+ def update!(**args)
402
+ @card_testing_verdict = args[:card_testing_verdict] if args.key?(:card_testing_verdict)
403
+ @stolen_instrument_verdict = args[:stolen_instrument_verdict] if args.key?(:stolen_instrument_verdict)
404
+ @transaction_risk = args[:transaction_risk] if args.key?(:transaction_risk)
405
+ end
406
+ end
407
+
408
+ # Information about card testing fraud, where an adversary is testing
409
+ # fraudulently obtained cards or brute forcing their details.
410
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict
411
+ include Google::Apis::Core::Hashable
412
+
413
+ # Probability (0-1) of this transaction attempt being part of a card testing
414
+ # attack.
415
+ # Corresponds to the JSON property `risk`
416
+ # @return [Float]
417
+ attr_accessor :risk
418
+
419
+ def initialize(**args)
420
+ update!(**args)
421
+ end
422
+
423
+ # Update properties of this object
424
+ def update!(**args)
425
+ @risk = args[:risk] if args.key?(:risk)
426
+ end
427
+ end
428
+
429
+ # Information about stolen instrument fraud, where the user is not the
430
+ # legitimate owner of the instrument being used for the purchase.
431
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict
432
+ include Google::Apis::Core::Hashable
433
+
434
+ # Probability (0-1) of this transaction being executed with a stolen instrument.
435
+ # Corresponds to the JSON property `risk`
436
+ # @return [Float]
437
+ attr_accessor :risk
438
+
439
+ def initialize(**args)
440
+ update!(**args)
441
+ end
442
+
443
+ # Update properties of this object
444
+ def update!(**args)
445
+ @risk = args[:risk] if args.key?(:risk)
446
+ end
447
+ end
448
+
355
449
  # Settings specific to keys that can be used by iOS apps.
356
450
  class GoogleCloudRecaptchaenterpriseV1IosKeySettings
357
451
  include Google::Apis::Core::Hashable
@@ -939,6 +1033,330 @@ module Google
939
1033
  end
940
1034
  end
941
1035
 
1036
+ # Transaction data associated with a payment protected by reCAPTCHA Enterprise.
1037
+ # All fields are optional.
1038
+ class GoogleCloudRecaptchaenterpriseV1TransactionData
1039
+ include Google::Apis::Core::Hashable
1040
+
1041
+ # Structured address format for billing and shipping addresses.
1042
+ # Corresponds to the JSON property `billingAddress`
1043
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress]
1044
+ attr_accessor :billing_address
1045
+
1046
+ # The Bank Identification Number - generally the first 6 or 8 digits of the card.
1047
+ # Corresponds to the JSON property `cardBin`
1048
+ # @return [String]
1049
+ attr_accessor :card_bin
1050
+
1051
+ # The last four digits of the card.
1052
+ # Corresponds to the JSON property `cardLastFour`
1053
+ # @return [String]
1054
+ attr_accessor :card_last_four
1055
+
1056
+ # The currency code in ISO-4217 format.
1057
+ # Corresponds to the JSON property `currencyCode`
1058
+ # @return [String]
1059
+ attr_accessor :currency_code
1060
+
1061
+ # Details about the transaction from the gateway.
1062
+ # Corresponds to the JSON property `gatewayInfo`
1063
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo]
1064
+ attr_accessor :gateway_info
1065
+
1066
+ # Items purchased in this transaction.
1067
+ # Corresponds to the JSON property `items`
1068
+ # @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataItem>]
1069
+ attr_accessor :items
1070
+
1071
+ # Information about the user or users fulfilling the transaction.
1072
+ # Corresponds to the JSON property `merchants`
1073
+ # @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser>]
1074
+ attr_accessor :merchants
1075
+
1076
+ # The payment method for the transaction. The allowed values are: * credit-card *
1077
+ # debit-card * gift-card * processor-`name` (If a third-party is used, for
1078
+ # example, processor-paypal) * custom-`name` (If an alternative method is used,
1079
+ # for example, custom-crypto)
1080
+ # Corresponds to the JSON property `paymentMethod`
1081
+ # @return [String]
1082
+ attr_accessor :payment_method
1083
+
1084
+ # Structured address format for billing and shipping addresses.
1085
+ # Corresponds to the JSON property `shippingAddress`
1086
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress]
1087
+ attr_accessor :shipping_address
1088
+
1089
+ # The value of shipping in the specified currency. 0 for free or no shipping.
1090
+ # Corresponds to the JSON property `shippingValue`
1091
+ # @return [Float]
1092
+ attr_accessor :shipping_value
1093
+
1094
+ # Unique identifier for the transaction. This custom identifier can be used to
1095
+ # reference this transaction in the future, for example, labeling a refund or
1096
+ # chargeback event. Two attempts at the same transaction should use the same
1097
+ # transaction id.
1098
+ # Corresponds to the JSON property `transactionId`
1099
+ # @return [String]
1100
+ attr_accessor :transaction_id
1101
+
1102
+ # Details about a user's account involved in the transaction.
1103
+ # Corresponds to the JSON property `user`
1104
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser]
1105
+ attr_accessor :user
1106
+
1107
+ # The decimal value of the transaction in the specified currency.
1108
+ # Corresponds to the JSON property `value`
1109
+ # @return [Float]
1110
+ attr_accessor :value
1111
+
1112
+ def initialize(**args)
1113
+ update!(**args)
1114
+ end
1115
+
1116
+ # Update properties of this object
1117
+ def update!(**args)
1118
+ @billing_address = args[:billing_address] if args.key?(:billing_address)
1119
+ @card_bin = args[:card_bin] if args.key?(:card_bin)
1120
+ @card_last_four = args[:card_last_four] if args.key?(:card_last_four)
1121
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1122
+ @gateway_info = args[:gateway_info] if args.key?(:gateway_info)
1123
+ @items = args[:items] if args.key?(:items)
1124
+ @merchants = args[:merchants] if args.key?(:merchants)
1125
+ @payment_method = args[:payment_method] if args.key?(:payment_method)
1126
+ @shipping_address = args[:shipping_address] if args.key?(:shipping_address)
1127
+ @shipping_value = args[:shipping_value] if args.key?(:shipping_value)
1128
+ @transaction_id = args[:transaction_id] if args.key?(:transaction_id)
1129
+ @user = args[:user] if args.key?(:user)
1130
+ @value = args[:value] if args.key?(:value)
1131
+ end
1132
+ end
1133
+
1134
+ # Structured address format for billing and shipping addresses.
1135
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
1136
+ include Google::Apis::Core::Hashable
1137
+
1138
+ # The first lines of the address. The first line generally contains the street
1139
+ # name and number, and further lines may include information such as an
1140
+ # apartment number.
1141
+ # Corresponds to the JSON property `address`
1142
+ # @return [Array<String>]
1143
+ attr_accessor :address
1144
+
1145
+ # The state, province, or otherwise administrative area of the address.
1146
+ # Corresponds to the JSON property `administrativeArea`
1147
+ # @return [String]
1148
+ attr_accessor :administrative_area
1149
+
1150
+ # The town/city of the address.
1151
+ # Corresponds to the JSON property `locality`
1152
+ # @return [String]
1153
+ attr_accessor :locality
1154
+
1155
+ # The postal or ZIP code of the address.
1156
+ # Corresponds to the JSON property `postalCode`
1157
+ # @return [String]
1158
+ attr_accessor :postal_code
1159
+
1160
+ # The recipient name, potentially including information such as "care of".
1161
+ # Corresponds to the JSON property `recipient`
1162
+ # @return [String]
1163
+ attr_accessor :recipient
1164
+
1165
+ # The CLDR country/region of the address.
1166
+ # Corresponds to the JSON property `regionCode`
1167
+ # @return [String]
1168
+ attr_accessor :region_code
1169
+
1170
+ def initialize(**args)
1171
+ update!(**args)
1172
+ end
1173
+
1174
+ # Update properties of this object
1175
+ def update!(**args)
1176
+ @address = args[:address] if args.key?(:address)
1177
+ @administrative_area = args[:administrative_area] if args.key?(:administrative_area)
1178
+ @locality = args[:locality] if args.key?(:locality)
1179
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
1180
+ @recipient = args[:recipient] if args.key?(:recipient)
1181
+ @region_code = args[:region_code] if args.key?(:region_code)
1182
+ end
1183
+ end
1184
+
1185
+ # Details about the transaction from the gateway.
1186
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo
1187
+ include Google::Apis::Core::Hashable
1188
+
1189
+ # AVS response code from the gateway (available only when reCAPTCHA Enterprise
1190
+ # is called after authorization).
1191
+ # Corresponds to the JSON property `avsResponseCode`
1192
+ # @return [String]
1193
+ attr_accessor :avs_response_code
1194
+
1195
+ # CVV response code from the gateway (available only when reCAPTCHA Enterprise
1196
+ # is called after authorization).
1197
+ # Corresponds to the JSON property `cvvResponseCode`
1198
+ # @return [String]
1199
+ attr_accessor :cvv_response_code
1200
+
1201
+ # Gateway response code describing the state of the transaction.
1202
+ # Corresponds to the JSON property `gatewayResponseCode`
1203
+ # @return [String]
1204
+ attr_accessor :gateway_response_code
1205
+
1206
+ # Name of the gateway service (for example, stripe, square, paypal).
1207
+ # Corresponds to the JSON property `name`
1208
+ # @return [String]
1209
+ attr_accessor :name
1210
+
1211
+ def initialize(**args)
1212
+ update!(**args)
1213
+ end
1214
+
1215
+ # Update properties of this object
1216
+ def update!(**args)
1217
+ @avs_response_code = args[:avs_response_code] if args.key?(:avs_response_code)
1218
+ @cvv_response_code = args[:cvv_response_code] if args.key?(:cvv_response_code)
1219
+ @gateway_response_code = args[:gateway_response_code] if args.key?(:gateway_response_code)
1220
+ @name = args[:name] if args.key?(:name)
1221
+ end
1222
+ end
1223
+
1224
+ # Line items being purchased in this transaction.
1225
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataItem
1226
+ include Google::Apis::Core::Hashable
1227
+
1228
+ # When a merchant is specified, its corresponding account_id. Necessary to
1229
+ # populate marketplace-style transactions.
1230
+ # Corresponds to the JSON property `merchantAccountId`
1231
+ # @return [String]
1232
+ attr_accessor :merchant_account_id
1233
+
1234
+ # The full name of the item.
1235
+ # Corresponds to the JSON property `name`
1236
+ # @return [String]
1237
+ attr_accessor :name
1238
+
1239
+ # The quantity of this item that is being purchased.
1240
+ # Corresponds to the JSON property `quantity`
1241
+ # @return [Fixnum]
1242
+ attr_accessor :quantity
1243
+
1244
+ # The value per item that the user is paying, in the transaction currency, after
1245
+ # discounts.
1246
+ # Corresponds to the JSON property `value`
1247
+ # @return [Float]
1248
+ attr_accessor :value
1249
+
1250
+ def initialize(**args)
1251
+ update!(**args)
1252
+ end
1253
+
1254
+ # Update properties of this object
1255
+ def update!(**args)
1256
+ @merchant_account_id = args[:merchant_account_id] if args.key?(:merchant_account_id)
1257
+ @name = args[:name] if args.key?(:name)
1258
+ @quantity = args[:quantity] if args.key?(:quantity)
1259
+ @value = args[:value] if args.key?(:value)
1260
+ end
1261
+ end
1262
+
1263
+ # Details about a user's account involved in the transaction.
1264
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataUser
1265
+ include Google::Apis::Core::Hashable
1266
+
1267
+ # Unique account identifier for this user. If using account defender, this
1268
+ # should match the hashed_account_id field. Otherwise, a unique and persistent
1269
+ # identifier for this account.
1270
+ # Corresponds to the JSON property `accountId`
1271
+ # @return [String]
1272
+ attr_accessor :account_id
1273
+
1274
+ # The epoch milliseconds of the user's account creation.
1275
+ # Corresponds to the JSON property `creationMs`
1276
+ # @return [Fixnum]
1277
+ attr_accessor :creation_ms
1278
+
1279
+ # The email address of the user.
1280
+ # Corresponds to the JSON property `email`
1281
+ # @return [String]
1282
+ attr_accessor :email
1283
+
1284
+ # Whether the email has been verified to be accessible by the user (OTP or
1285
+ # similar).
1286
+ # Corresponds to the JSON property `emailVerified`
1287
+ # @return [Boolean]
1288
+ attr_accessor :email_verified
1289
+ alias_method :email_verified?, :email_verified
1290
+
1291
+ # The phone number of the user, with country code.
1292
+ # Corresponds to the JSON property `phoneNumber`
1293
+ # @return [String]
1294
+ attr_accessor :phone_number
1295
+
1296
+ # Whether the phone number has been verified to be accessible by the user (OTP
1297
+ # or similar).
1298
+ # Corresponds to the JSON property `phoneVerified`
1299
+ # @return [Boolean]
1300
+ attr_accessor :phone_verified
1301
+ alias_method :phone_verified?, :phone_verified
1302
+
1303
+ def initialize(**args)
1304
+ update!(**args)
1305
+ end
1306
+
1307
+ # Update properties of this object
1308
+ def update!(**args)
1309
+ @account_id = args[:account_id] if args.key?(:account_id)
1310
+ @creation_ms = args[:creation_ms] if args.key?(:creation_ms)
1311
+ @email = args[:email] if args.key?(:email)
1312
+ @email_verified = args[:email_verified] if args.key?(:email_verified)
1313
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
1314
+ @phone_verified = args[:phone_verified] if args.key?(:phone_verified)
1315
+ end
1316
+ end
1317
+
1318
+ # Describes an event in the lifecycle of a payment transaction.
1319
+ class GoogleCloudRecaptchaenterpriseV1TransactionEvent
1320
+ include Google::Apis::Core::Hashable
1321
+
1322
+ # Optional. Timestamp when this transaction event occurred; otherwise assumed to
1323
+ # be the time of the API call.
1324
+ # Corresponds to the JSON property `eventTime`
1325
+ # @return [String]
1326
+ attr_accessor :event_time
1327
+
1328
+ # Optional. The type of this transaction event.
1329
+ # Corresponds to the JSON property `eventType`
1330
+ # @return [String]
1331
+ attr_accessor :event_type
1332
+
1333
+ # Optional. The reason or standardized code that corresponds with this
1334
+ # transaction event, if one exists. For example, a CHARGEBACK event with code
1335
+ # 6005.
1336
+ # Corresponds to the JSON property `reason`
1337
+ # @return [String]
1338
+ attr_accessor :reason
1339
+
1340
+ # Optional. The value that corresponds with this transaction event, if one
1341
+ # exists. For example, a refund event where $5.00 was refunded. Currency is
1342
+ # obtained from the original transaction data.
1343
+ # Corresponds to the JSON property `value`
1344
+ # @return [Float]
1345
+ attr_accessor :value
1346
+
1347
+ def initialize(**args)
1348
+ update!(**args)
1349
+ end
1350
+
1351
+ # Update properties of this object
1352
+ def update!(**args)
1353
+ @event_time = args[:event_time] if args.key?(:event_time)
1354
+ @event_type = args[:event_type] if args.key?(:event_type)
1355
+ @reason = args[:reason] if args.key?(:reason)
1356
+ @value = args[:value] if args.key?(:value)
1357
+ end
1358
+ end
1359
+
942
1360
  # Settings specific to keys that can be used for WAF (Web Application Firewall).
943
1361
  class GoogleCloudRecaptchaenterpriseV1WafSettings
944
1362
  include Google::Apis::Core::Hashable
@@ -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.26.0"
19
+ GEM_VERSION = "0.28.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221212"
25
+ REVISION = "20230219"
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,42 @@ 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
+
235
+ class GoogleCloudRecaptchaenterpriseV1TransactionEvent
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
187
241
  class GoogleCloudRecaptchaenterpriseV1WafSettings
188
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
243
 
@@ -234,6 +288,8 @@ module Google
234
288
  property :annotation, as: 'annotation'
235
289
  property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
236
290
  collection :reasons, as: 'reasons'
291
+ property :transaction_event, as: 'transactionEvent', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionEvent, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionEvent::Representation
292
+
237
293
  end
238
294
  end
239
295
 
@@ -252,6 +308,8 @@ module Google
252
308
 
253
309
  property :event, as: 'event', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event::Representation
254
310
 
311
+ property :fraud_prevention_assessment, as: 'fraudPreventionAssessment', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment::Representation
312
+
255
313
  property :name, as: 'name'
256
314
  property :private_password_leak_verification, as: 'privatePasswordLeakVerification', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification::Representation
257
315
 
@@ -289,11 +347,38 @@ module Google
289
347
  property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
290
348
  property :site_key, as: 'siteKey'
291
349
  property :token, as: 'token'
350
+ property :transaction_data, as: 'transactionData', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData::Representation
351
+
292
352
  property :user_agent, as: 'userAgent'
293
353
  property :user_ip_address, as: 'userIpAddress'
294
354
  end
295
355
  end
296
356
 
357
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment
358
+ # @private
359
+ class Representation < Google::Apis::Core::JsonRepresentation
360
+ property :card_testing_verdict, as: 'cardTestingVerdict', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict::Representation
361
+
362
+ property :stolen_instrument_verdict, as: 'stolenInstrumentVerdict', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict::Representation
363
+
364
+ property :transaction_risk, as: 'transactionRisk'
365
+ end
366
+ end
367
+
368
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict
369
+ # @private
370
+ class Representation < Google::Apis::Core::JsonRepresentation
371
+ property :risk, as: 'risk'
372
+ end
373
+ end
374
+
375
+ class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict
376
+ # @private
377
+ class Representation < Google::Apis::Core::JsonRepresentation
378
+ property :risk, as: 'risk'
379
+ end
380
+ end
381
+
297
382
  class GoogleCloudRecaptchaenterpriseV1IosKeySettings
298
383
  # @private
299
384
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -464,6 +549,85 @@ module Google
464
549
  end
465
550
  end
466
551
 
552
+ class GoogleCloudRecaptchaenterpriseV1TransactionData
553
+ # @private
554
+ class Representation < Google::Apis::Core::JsonRepresentation
555
+ property :billing_address, as: 'billingAddress', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress::Representation
556
+
557
+ property :card_bin, as: 'cardBin'
558
+ property :card_last_four, as: 'cardLastFour'
559
+ property :currency_code, as: 'currencyCode'
560
+ property :gateway_info, as: 'gatewayInfo', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo::Representation
561
+
562
+ collection :items, as: 'items', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataItem, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataItem::Representation
563
+
564
+ collection :merchants, as: 'merchants', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser::Representation
565
+
566
+ property :payment_method, as: 'paymentMethod'
567
+ property :shipping_address, as: 'shippingAddress', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress::Representation
568
+
569
+ property :shipping_value, as: 'shippingValue'
570
+ property :transaction_id, as: 'transactionId'
571
+ property :user, as: 'user', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser::Representation
572
+
573
+ property :value, as: 'value'
574
+ end
575
+ end
576
+
577
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
578
+ # @private
579
+ class Representation < Google::Apis::Core::JsonRepresentation
580
+ collection :address, as: 'address'
581
+ property :administrative_area, as: 'administrativeArea'
582
+ property :locality, as: 'locality'
583
+ property :postal_code, as: 'postalCode'
584
+ property :recipient, as: 'recipient'
585
+ property :region_code, as: 'regionCode'
586
+ end
587
+ end
588
+
589
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo
590
+ # @private
591
+ class Representation < Google::Apis::Core::JsonRepresentation
592
+ property :avs_response_code, as: 'avsResponseCode'
593
+ property :cvv_response_code, as: 'cvvResponseCode'
594
+ property :gateway_response_code, as: 'gatewayResponseCode'
595
+ property :name, as: 'name'
596
+ end
597
+ end
598
+
599
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataItem
600
+ # @private
601
+ class Representation < Google::Apis::Core::JsonRepresentation
602
+ property :merchant_account_id, as: 'merchantAccountId'
603
+ property :name, as: 'name'
604
+ property :quantity, :numeric_string => true, as: 'quantity'
605
+ property :value, as: 'value'
606
+ end
607
+ end
608
+
609
+ class GoogleCloudRecaptchaenterpriseV1TransactionDataUser
610
+ # @private
611
+ class Representation < Google::Apis::Core::JsonRepresentation
612
+ property :account_id, as: 'accountId'
613
+ property :creation_ms, :numeric_string => true, as: 'creationMs'
614
+ property :email, as: 'email'
615
+ property :email_verified, as: 'emailVerified'
616
+ property :phone_number, as: 'phoneNumber'
617
+ property :phone_verified, as: 'phoneVerified'
618
+ end
619
+ end
620
+
621
+ class GoogleCloudRecaptchaenterpriseV1TransactionEvent
622
+ # @private
623
+ class Representation < Google::Apis::Core::JsonRepresentation
624
+ property :event_time, as: 'eventTime'
625
+ property :event_type, as: 'eventType'
626
+ property :reason, as: 'reason'
627
+ property :value, as: 'value'
628
+ end
629
+ end
630
+
467
631
  class GoogleCloudRecaptchaenterpriseV1WafSettings
468
632
  # @private
469
633
  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.26.0
4
+ version: 0.28.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-01-04 00:00:00.000000000 Z
11
+ date: 2023-02-26 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.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.28.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for reCAPTCHA Enterprise API V1