Package com.stripe.model.v2.core
Class EventNotification
java.lang.Object
com.stripe.model.v2.core.EventNotification
- Direct Known Subclasses:
UnknownEventNotification,V1BillingMeterErrorReportTriggeredEventNotification,V1BillingMeterNoMeterFoundEventNotification,V2BillingCadenceBilledEventNotification,V2BillingCadenceCanceledEventNotification,V2BillingCadenceCreatedEventNotification,V2BillingLicensedItemCreatedEventNotification,V2BillingLicensedItemUpdatedEventNotification,V2BillingLicenseFeeCreatedEventNotification,V2BillingLicenseFeeUpdatedEventNotification,V2BillingLicenseFeeVersionCreatedEventNotification,V2BillingMeteredItemCreatedEventNotification,V2BillingMeteredItemUpdatedEventNotification,V2BillingPricingPlanComponentCreatedEventNotification,V2BillingPricingPlanComponentUpdatedEventNotification,V2BillingPricingPlanCreatedEventNotification,V2BillingPricingPlanSubscriptionCollectionAwaitingCustomerActionEventNotification,V2BillingPricingPlanSubscriptionCollectionCurrentEventNotification,V2BillingPricingPlanSubscriptionCollectionPastDueEventNotification,V2BillingPricingPlanSubscriptionCollectionPausedEventNotification,V2BillingPricingPlanSubscriptionCollectionUnpaidEventNotification,V2BillingPricingPlanSubscriptionServicingActivatedEventNotification,V2BillingPricingPlanSubscriptionServicingCanceledEventNotification,V2BillingPricingPlanSubscriptionServicingPausedEventNotification,V2BillingPricingPlanUpdatedEventNotification,V2BillingPricingPlanVersionCreatedEventNotification,V2BillingRateCardCreatedEventNotification,V2BillingRateCardRateCreatedEventNotification,V2BillingRateCardSubscriptionActivatedEventNotification,V2BillingRateCardSubscriptionCanceledEventNotification,V2BillingRateCardSubscriptionCollectionAwaitingCustomerActionEventNotification,V2BillingRateCardSubscriptionCollectionCurrentEventNotification,V2BillingRateCardSubscriptionCollectionPastDueEventNotification,V2BillingRateCardSubscriptionCollectionPausedEventNotification,V2BillingRateCardSubscriptionCollectionUnpaidEventNotification,V2BillingRateCardSubscriptionServicingActivatedEventNotification,V2BillingRateCardSubscriptionServicingCanceledEventNotification,V2BillingRateCardSubscriptionServicingPausedEventNotification,V2BillingRateCardUpdatedEventNotification,V2BillingRateCardVersionCreatedEventNotification,V2CoreAccountClosedEventNotification,V2CoreAccountCreatedEventNotification,V2CoreAccountIncludingConfigurationCardCreatorCapabilityStatusUpdatedEventNotification,V2CoreAccountIncludingConfigurationCardCreatorUpdatedEventNotification,V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification,V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification,V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification,V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification,V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification,V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification,V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification,V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification,V2CoreAccountIncludingDefaultsUpdatedEventNotification,V2CoreAccountIncludingIdentityUpdatedEventNotification,V2CoreAccountIncludingRequirementsUpdatedEventNotification,V2CoreAccountLinkReturnedEventNotification,V2CoreAccountPersonCreatedEventNotification,V2CoreAccountPersonDeletedEventNotification,V2CoreAccountPersonUpdatedEventNotification,V2CoreAccountUpdatedEventNotification,V2CoreClaimableSandboxClaimedEventNotification,V2CoreClaimableSandboxCreatedEventNotification,V2CoreClaimableSandboxExpiredEventNotification,V2CoreClaimableSandboxExpiringEventNotification,V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEventNotification,V2CoreEventDestinationPingEventNotification,V2CoreHealthApiErrorFiringEventNotification,V2CoreHealthApiErrorResolvedEventNotification,V2CoreHealthApiLatencyFiringEventNotification,V2CoreHealthApiLatencyResolvedEventNotification,V2CoreHealthAuthorizationRateDropFiringEventNotification,V2CoreHealthAuthorizationRateDropResolvedEventNotification,V2CoreHealthEventGenerationFailureResolvedEventNotification,V2CoreHealthFraudRateIncreasedEventNotification,V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventNotification,V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventNotification,V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventNotification,V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventNotification,V2CoreHealthPaymentMethodErrorFiringEventNotification,V2CoreHealthPaymentMethodErrorResolvedEventNotification,V2CoreHealthTrafficVolumeDropFiringEventNotification,V2CoreHealthTrafficVolumeDropResolvedEventNotification,V2CoreHealthWebhookLatencyFiringEventNotification,V2CoreHealthWebhookLatencyResolvedEventNotification,V2MoneyManagementAdjustmentCreatedEventNotification,V2MoneyManagementFinancialAccountCreatedEventNotification,V2MoneyManagementFinancialAccountUpdatedEventNotification,V2MoneyManagementFinancialAddressActivatedEventNotification,V2MoneyManagementFinancialAddressFailedEventNotification,V2MoneyManagementInboundTransferAvailableEventNotification,V2MoneyManagementInboundTransferBankDebitFailedEventNotification,V2MoneyManagementInboundTransferBankDebitProcessingEventNotification,V2MoneyManagementInboundTransferBankDebitQueuedEventNotification,V2MoneyManagementInboundTransferBankDebitReturnedEventNotification,V2MoneyManagementInboundTransferBankDebitSucceededEventNotification,V2MoneyManagementOutboundPaymentCanceledEventNotification,V2MoneyManagementOutboundPaymentCreatedEventNotification,V2MoneyManagementOutboundPaymentFailedEventNotification,V2MoneyManagementOutboundPaymentPostedEventNotification,V2MoneyManagementOutboundPaymentReturnedEventNotification,V2MoneyManagementOutboundPaymentUpdatedEventNotification,V2MoneyManagementOutboundTransferCanceledEventNotification,V2MoneyManagementOutboundTransferCreatedEventNotification,V2MoneyManagementOutboundTransferFailedEventNotification,V2MoneyManagementOutboundTransferPostedEventNotification,V2MoneyManagementOutboundTransferReturnedEventNotification,V2MoneyManagementOutboundTransferUpdatedEventNotification,V2MoneyManagementPayoutMethodUpdatedEventNotification,V2MoneyManagementReceivedCreditAvailableEventNotification,V2MoneyManagementReceivedCreditFailedEventNotification,V2MoneyManagementReceivedCreditReturnedEventNotification,V2MoneyManagementReceivedCreditSucceededEventNotification,V2MoneyManagementReceivedDebitCanceledEventNotification,V2MoneyManagementReceivedDebitFailedEventNotification,V2MoneyManagementReceivedDebitPendingEventNotification,V2MoneyManagementReceivedDebitSucceededEventNotification,V2MoneyManagementReceivedDebitUpdatedEventNotification,V2MoneyManagementRecipientVerificationCreatedEventNotification,V2MoneyManagementRecipientVerificationUpdatedEventNotification,V2MoneyManagementTransactionCreatedEventNotification,V2MoneyManagementTransactionUpdatedEventNotification,V2PaymentsOffSessionPaymentAttemptFailedEventNotification,V2PaymentsOffSessionPaymentAttemptStartedEventNotification,V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEventNotification,V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEventNotification,V2PaymentsOffSessionPaymentCanceledEventNotification,V2PaymentsOffSessionPaymentCreatedEventNotification,V2PaymentsOffSessionPaymentFailedEventNotification,V2PaymentsOffSessionPaymentRequiresCaptureEventNotification,V2PaymentsOffSessionPaymentSucceededEventNotification,V2ReportingReportRunCreatedEventNotification,V2ReportingReportRunFailedEventNotification,V2ReportingReportRunSucceededEventNotification,V2ReportingReportRunUpdatedEventNotification
`EventNotification` represents the common properties for json that's delivered from an Event
Destination. A concrete child of `EventNotification` will be returned from
`StripeClient.parseEventNotificaion()`. You will likely want to cast that object to a more
specific child of `EventNotification`, like `PushedV1BillingMeterErrorReportTriggeredEvent`
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classFor more details about Request, please refer to the API Reference. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StripeClient[Optional] Authentication context needed to fetch the event or related object.Time at which the object was created.Unique identifier for the event.Livemode indicates if the event is from a production(true) or test(false) account.[Optional] Reason for the event.The type of the event. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Eventprotected StripeObjectfetchRelatedObject(Event.RelatedObject relatedObject) Retrieves the object associated with the event.static EventNotificationfromJson(String payload, StripeClient client) Helper for constructing an Event Notification.[Optional] Authentication context needed to fetch the event or related object.Time at which the object was created.getId()Unique identifier for the event.Livemode indicates if the event is from a production(true) or test(false) account.[Optional] Reason for the event.getType()The type of the event.
-
Field Details
-
id
Unique identifier for the event. -
type
The type of the event. -
created
Time at which the object was created. -
livemode
Livemode indicates if the event is from a production(true) or test(false) account. -
context
[Optional] Authentication context needed to fetch the event or related object. -
reason
[Optional] Reason for the event. -
client
-
-
Constructor Details
-
EventNotification
public EventNotification()
-
-
Method Details
-
fromJson
Helper for constructing an Event Notification. Doesn't perform signature validation, so you should useStripeClient.parseEventNotification(java.lang.String, java.lang.String, java.lang.String)instead for initial handling. This is useful in unit tests and working with EventNotifications that you've already validated the authenticity of. -
fetchEvent
- Throws:
StripeException
-
fetchRelatedObject
Retrieves the object associated with the event.- Throws:
StripeException
-
getId
Unique identifier for the event. -
getType
The type of the event. -
getCreated
Time at which the object was created. -
getLivemode
Livemode indicates if the event is from a production(true) or test(false) account. -
getContext
[Optional] Authentication context needed to fetch the event or related object. -
getReason
[Optional] Reason for the event.
-