Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionEvent
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionEvent
- 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
Describes an event in the lifecycle of a payment transaction.
Instance Attribute Summary collapse
-
#event_time ⇒ String
Optional.
-
#event_type ⇒ String
Optional.
-
#reason ⇒ String
Optional.
-
#value ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionEvent
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1TransactionEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionEvent
Returns a new instance of GoogleCloudRecaptchaenterpriseV1TransactionEvent.
2138 2139 2140 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2138 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_time ⇒ String
Optional. Timestamp when this transaction event occurred; otherwise assumed to
be the time of the API call.
Corresponds to the JSON property eventTime
2117 2118 2119 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2117 def event_time @event_time end |
#event_type ⇒ String
Optional. The type of this transaction event.
Corresponds to the JSON property eventType
2122 2123 2124 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2122 def event_type @event_type end |
#reason ⇒ String
Optional. The reason or standardized code that corresponds with this
transaction event, if one exists. For example, a CHARGEBACK event with code
6005.
Corresponds to the JSON property reason
2129 2130 2131 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2129 def reason @reason end |
#value ⇒ Float
Optional. The value that corresponds with this transaction event, if one
exists. For example, a refund event where $5.00 was refunded. Currency is
obtained from the original transaction data.
Corresponds to the JSON property value
2136 2137 2138 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2136 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2143 2144 2145 2146 2147 2148 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 2143 def update!(**args) @event_time = args[:event_time] if args.key?(:event_time) @event_type = args[:event_type] if args.key?(:event_type) @reason = args[:reason] if args.key?(:reason) @value = args[:value] if args.key?(:value) end |