Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb

Overview

Details about the transaction from the gateway.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo

Returns a new instance of GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo.



1211
1212
1213
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1211

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#avs_response_code ⇒ String

AVS response code from the gateway (available only when reCAPTCHA Enterprise is called after authorization). Corresponds to the JSON property avsResponseCode

Returns:

  • (String)


1193
1194
1195
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1193

def avs_response_code
  @avs_response_code
end

#cvv_response_code ⇒ String

CVV response code from the gateway (available only when reCAPTCHA Enterprise is called after authorization). Corresponds to the JSON property cvvResponseCode

Returns:

  • (String)


1199
1200
1201
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1199

def cvv_response_code
  @cvv_response_code
end

#gateway_response_code ⇒ String

Gateway response code describing the state of the transaction. Corresponds to the JSON property gatewayResponseCode

Returns:

  • (String)


1204
1205
1206
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1204

def gateway_response_code
  @gateway_response_code
end

#name ⇒ String

Name of the gateway service (for example, stripe, square, paypal). Corresponds to the JSON property name

Returns:

  • (String)


1209
1210
1211
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1209

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1216
1217
1218
1219
1220
1221
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1216

def update!(**args)
  @avs_response_code = args[:avs_response_code] if args.key?(:avs_response_code)
  @cvv_response_code = args[:cvv_response_code] if args.key?(:cvv_response_code)
  @gateway_response_code = args[:gateway_response_code] if args.key?(:gateway_response_code)
  @name = args[:name] if args.key?(:name)
end