Class Event

  • All Implemented Interfaces:

    
    public final class Event
    
                        

    A single event that affects the transaction state and lifecycle.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class Event.Builder

      A builder for Event.

      public final class Event.EventType

      Event types:

      • account_holder.created - Notification that a new account holder has been created and was not rejected.

      • account_holder.updated - Notification that an account holder was updated.

      • account_holder.verification - Notification than an account holder's identity verification is complete.

      • card.created - Notification that a card has been created.

      • card.renewed - Notification that a card has been renewed.

      • card.reissued - Notification that a card has been reissued.

      • card.shipped - Physical card shipment notification. See https://docs.lithic.com/docs/cards#physical-card-shipped-webhook.

      • card.converted - Notification that a virtual card has been converted to a physical card.

      • card_transaction.updated - Transaction Lifecycle webhook. See https://docs.lithic.com/docs/transaction-webhooks.

      • dispute.updated - A dispute has been updated.

      • dispute_transaction.created - A new dispute transaction has been created.

      • dispute_transaction.updated - A dispute transaction has been updated.

      • digital_wallet.tokenization_approval_request - Card network's request to Lithic to activate a digital wallet token.

      • digital_wallet.tokenization_result - Notification of the end result of a tokenization, whether successful or failed.

      • digital_wallet.tokenization_two_factor_authentication_code - A code to be passed to an end user to complete digital wallet authentication. See https://docs.lithic.com/docs/tokenization-control#digital-wallet-tokenization-auth-code.

      • digital_wallet.tokenization_two_factor_authentication_code_sent - Notification that a two factor authentication code for activating a digital wallet has been sent to the end user.

      • digital_wallet.tokenization_updated - Notification that a digital wallet tokenization's status has changed.

      public final class Event.Payload
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String token() Globally unique identifier.
      final OffsetDateTime created() An RFC 3339 timestamp for when the event was created.
      final Event.EventType eventType() Event types:
      • account_holder.created - Notification that a new account holder has been created and was not rejected.

      • account_holder.updated - Notification that an account holder was updated.

      • account_holder.verification - Notification than an account holder's identity verification is complete.

      • card.created - Notification that a card has been created.

      • card.renewed - Notification that a card has been renewed.

      • card.reissued - Notification that a card has been reissued.

      • card.shipped - Physical card shipment notification. See https://docs.lithic.com/docs/cards#physical-card-shipped-webhook.

      • card.converted - Notification that a virtual card has been converted to a physical card.

      • card_transaction.updated - Transaction Lifecycle webhook. See https://docs.lithic.com/docs/transaction-webhooks.

      • dispute.updated - A dispute has been updated.

      • dispute_transaction.created - A new dispute transaction has been created.

      • dispute_transaction.updated - A dispute transaction has been updated.

      • digital_wallet.tokenization_approval_request - Card network's request to Lithic to activate a digital wallet token.

      • digital_wallet.tokenization_result - Notification of the end result of a tokenization, whether successful or failed.

      • digital_wallet.tokenization_two_factor_authentication_code - A code to be passed to an end user to complete digital wallet authentication. See https://docs.lithic.com/docs/tokenization-control#digital-wallet-tokenization-auth-code.

      • digital_wallet.tokenization_two_factor_authentication_code_sent - Notification that a two factor authentication code for activating a digital wallet has been sent to the end user.

      • digital_wallet.tokenization_updated - Notification that a digital wallet tokenization's status has changed.

      final Event.Payload payload()
      final JsonField<String> _token() Returns the raw JSON value of token.
      final JsonField<OffsetDateTime> _created() Returns the raw JSON value of created.
      final JsonField<Event.EventType> _eventType() Returns the raw JSON value of eventType.
      final JsonField<Event.Payload> _payload() Returns the raw JSON value of payload.
      final Map<String, JsonValue> _additionalProperties()
      final Event.Builder toBuilder()
      final Event validate()
      final Boolean isValid()
      Boolean equals(Object other)
      Integer hashCode()
      String toString()
      final static Event.Builder builder() Returns a mutable builder for constructing an instance of Event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • token

         final String token()

        Globally unique identifier.

      • created

         final OffsetDateTime created()

        An RFC 3339 timestamp for when the event was created. UTC time zone.

        If no timezone is specified, UTC will be used.

      • eventType

         final Event.EventType eventType()

        Event types:

        • account_holder.created - Notification that a new account holder has been created and was not rejected.

        • account_holder.updated - Notification that an account holder was updated.

        • account_holder.verification - Notification than an account holder's identity verification is complete.

        • card.created - Notification that a card has been created.

        • card.renewed - Notification that a card has been renewed.

        • card.reissued - Notification that a card has been reissued.

        • card.shipped - Physical card shipment notification. See https://docs.lithic.com/docs/cards#physical-card-shipped-webhook.

        • card.converted - Notification that a virtual card has been converted to a physical card.

        • card_transaction.updated - Transaction Lifecycle webhook. See https://docs.lithic.com/docs/transaction-webhooks.

        • dispute.updated - A dispute has been updated.

        • dispute_transaction.created - A new dispute transaction has been created.

        • dispute_transaction.updated - A dispute transaction has been updated.

        • digital_wallet.tokenization_approval_request - Card network's request to Lithic to activate a digital wallet token.

        • digital_wallet.tokenization_result - Notification of the end result of a tokenization, whether successful or failed.

        • digital_wallet.tokenization_two_factor_authentication_code - A code to be passed to an end user to complete digital wallet authentication. See https://docs.lithic.com/docs/tokenization-control#digital-wallet-tokenization-auth-code.

        • digital_wallet.tokenization_two_factor_authentication_code_sent - Notification that a two factor authentication code for activating a digital wallet has been sent to the end user.

        • digital_wallet.tokenization_updated - Notification that a digital wallet tokenization's status has changed.

      • _token

         final JsonField<String> _token()

        Returns the raw JSON value of token.

        Unlike token, this method doesn't throw if the JSON field has an unexpected type.

      • builder

         final static Event.Builder builder()

        Returns a mutable builder for constructing an instance of Event.

        The following fields are required:

        .token()
        .created()
        .eventType()
        .payload()