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.



2196
2197
2198
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2196

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

Instance Attribute Details

#avs_response_codeString

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

Returns:

  • (String)


2178
2179
2180
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2178

def avs_response_code
  @avs_response_code
end

#cvv_response_codeString

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

Returns:

  • (String)


2184
2185
2186
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2184

def cvv_response_code
  @cvv_response_code
end

#gateway_response_codeString

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

Returns:

  • (String)


2189
2190
2191
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2189

def gateway_response_code
  @gateway_response_code
end

#nameString

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

Returns:

  • (String)


2194
2195
2196
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2194

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2201
2202
2203
2204
2205
2206
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2201

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