TransactionEvent

google.cloud.recaptchaenterprise.v1beta1. TransactionEvent

Represents a TransactionEvent.

Constructor

new TransactionEvent(propertiesopt)

Constructs a new TransactionEvent.

Parameters:
Name Type Attributes Description
properties google.cloud.recaptchaenterprise.v1beta1.ITransactionEvent <optional>

Properties to set

Implements:
  • ITransactionEvent

Members

eventTime

TransactionEvent eventTime.

eventType

TransactionEvent eventType.

reason

TransactionEvent reason.

value

TransactionEvent value.

TransactionEventType

TransactionEventType enum.

Properties:
Name Type Description
TRANSACTION_EVENT_TYPE_UNSPECIFIED number

TRANSACTION_EVENT_TYPE_UNSPECIFIED value

MERCHANT_APPROVE number

MERCHANT_APPROVE value

MERCHANT_DENY number

MERCHANT_DENY value

MANUAL_REVIEW number

MANUAL_REVIEW value

AUTHORIZATION number

AUTHORIZATION value

AUTHORIZATION_DECLINE number

AUTHORIZATION_DECLINE value

PAYMENT_CAPTURE number

PAYMENT_CAPTURE value

PAYMENT_CAPTURE_DECLINE number

PAYMENT_CAPTURE_DECLINE value

CANCEL number

CANCEL value

CHARGEBACK_INQUIRY number

CHARGEBACK_INQUIRY value

CHARGEBACK_ALERT number

CHARGEBACK_ALERT value

FRAUD_NOTIFICATION number

FRAUD_NOTIFICATION value

CHARGEBACK number

CHARGEBACK value

CHARGEBACK_REPRESENTMENT number

CHARGEBACK_REPRESENTMENT value

CHARGEBACK_REVERSE number

CHARGEBACK_REVERSE value

REFUND_REQUEST number

REFUND_REQUEST value

REFUND_DECLINE number

REFUND_DECLINE value

REFUND number

REFUND value

REFUND_REVERSE number

REFUND_REVERSE value

Methods

toJSON() → {Object.<string, *>}

Converts this TransactionEvent to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(static) create(propertiesopt) → {google.cloud.recaptchaenterprise.v1beta1.TransactionEvent}

Creates a new TransactionEvent instance using the specified properties.

Parameters:
Name Type Attributes Description
properties google.cloud.recaptchaenterprise.v1beta1.ITransactionEvent <optional>

Properties to set

Returns:
Type Description
google.cloud.recaptchaenterprise.v1beta1.TransactionEvent

TransactionEvent instance

(static) decode(reader, lengthopt) → {google.cloud.recaptchaenterprise.v1beta1.TransactionEvent}

Decodes a TransactionEvent message from the specified reader or buffer.

Parameters:
Name Type Attributes Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

length number <optional>

Message length if known beforehand

Returns:
Type Description
google.cloud.recaptchaenterprise.v1beta1.TransactionEvent

TransactionEvent

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) decodeDelimited(reader) → {google.cloud.recaptchaenterprise.v1beta1.TransactionEvent}

Decodes a TransactionEvent message from the specified reader or buffer, length delimited.

Parameters:
Name Type Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

Returns:
Type Description
google.cloud.recaptchaenterprise.v1beta1.TransactionEvent

TransactionEvent

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) encode(message, writeropt) → {$protobuf.Writer}

Encodes the specified TransactionEvent message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.recaptchaenterprise.v1beta1.ITransactionEvent

TransactionEvent message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}

Encodes the specified TransactionEvent message, length delimited. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.recaptchaenterprise.v1beta1.ITransactionEvent

TransactionEvent message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) fromObject(object) → {google.cloud.recaptchaenterprise.v1beta1.TransactionEvent}

Creates a TransactionEvent message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

Returns:
Type Description
google.cloud.recaptchaenterprise.v1beta1.TransactionEvent

TransactionEvent

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for TransactionEvent

Parameters:
Name Type Attributes Description
typeUrlPrefix string <optional>

your custom typeUrlPrefix(default "type.googleapis.com")

Returns:
Type Description
string

The default type url

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a TransactionEvent message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.cloud.recaptchaenterprise.v1beta1.TransactionEvent

TransactionEvent

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

(static) verify(message) → {string|null}

Verifies a TransactionEvent message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

Returns:
Type Description
string | null

null if valid, otherwise the reason why it is not