Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionEvent

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

Describes an event in the lifecycle of a payment transaction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionEvent

Returns a new instance of GoogleCloudRecaptchaenterpriseV1TransactionEvent.



976
977
978
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 976

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

Instance Attribute Details

#event_timeString

Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call. Corresponds to the JSON property eventTime

Returns:

  • (String)


956
957
958
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 956

def event_time
  @event_time
end

#event_typeString

Optional. The type of this transaction event. Corresponds to the JSON property eventType

Returns:

  • (String)


961
962
963
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 961

def event_type
  @event_type
end

#reasonString

Optional. The reason or standardized code which corresponds with this transaction event, if one exists. E.g. a CHARGEBACK Event with code 4553. Corresponds to the JSON property reason

Returns:

  • (String)


967
968
969
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 967

def reason
  @reason
end

#valueFloat

Optional. The value that corresponds with this transaction event, if one exists. E.g. A refund event where $5.00 was refunded. Currency is obtained from the original transaction data. Corresponds to the JSON property value

Returns:

  • (Float)


974
975
976
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 974

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



981
982
983
984
985
986
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 981

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