| 1 |
# -*- coding: utf-8 -*- |
| 2 |
|
| 3 |
from typing_extensions import TYPE_CHECKING |
| 4 |
from stripe.v2.core._event import ( |
| 5 |
UnknownEventNotification as UnknownEventNotification, |
| 6 |
) |
| 7 |
|
| 8 |
|
| 9 |
# The beginning of the section generated from our OpenAPI spec |
| 10 |
from importlib import import_module |
| 11 |
|
| 12 |
if TYPE_CHECKING: |
| 13 |
from stripe.events._event_classes import ( |
| 14 |
ALL_EVENT_NOTIFICATIONS as ALL_EVENT_NOTIFICATIONS, |
| 15 |
) |
| 16 |
from stripe.events._v1_billing_meter_error_report_triggered_event import ( |
| 17 |
V1BillingMeterErrorReportTriggeredEvent as V1BillingMeterErrorReportTriggeredEvent, |
| 18 |
V1BillingMeterErrorReportTriggeredEventNotification as V1BillingMeterErrorReportTriggeredEventNotification, |
| 19 |
) |
| 20 |
from stripe.events._v1_billing_meter_no_meter_found_event import ( |
| 21 |
V1BillingMeterNoMeterFoundEvent as V1BillingMeterNoMeterFoundEvent, |
| 22 |
V1BillingMeterNoMeterFoundEventNotification as V1BillingMeterNoMeterFoundEventNotification, |
| 23 |
) |
| 24 |
from stripe.events._v2_core_account_closed_event import ( |
| 25 |
V2CoreAccountClosedEvent as V2CoreAccountClosedEvent, |
| 26 |
V2CoreAccountClosedEventNotification as V2CoreAccountClosedEventNotification, |
| 27 |
) |
| 28 |
from stripe.events._v2_core_account_created_event import ( |
| 29 |
V2CoreAccountCreatedEvent as V2CoreAccountCreatedEvent, |
| 30 |
V2CoreAccountCreatedEventNotification as V2CoreAccountCreatedEventNotification, |
| 31 |
) |
| 32 |
from stripe.events._v2_core_account_including_configuration_customer_capability_status_updated_event import ( |
| 33 |
V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent as V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent, |
| 34 |
V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification as V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification, |
| 35 |
) |
| 36 |
from stripe.events._v2_core_account_including_configuration_customer_updated_event import ( |
| 37 |
V2CoreAccountIncludingConfigurationCustomerUpdatedEvent as V2CoreAccountIncludingConfigurationCustomerUpdatedEvent, |
| 38 |
V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification as V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification, |
| 39 |
) |
| 40 |
from stripe.events._v2_core_account_including_configuration_merchant_capability_status_updated_event import ( |
| 41 |
V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent as V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent, |
| 42 |
V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification as V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification, |
| 43 |
) |
| 44 |
from stripe.events._v2_core_account_including_configuration_merchant_updated_event import ( |
| 45 |
V2CoreAccountIncludingConfigurationMerchantUpdatedEvent as V2CoreAccountIncludingConfigurationMerchantUpdatedEvent, |
| 46 |
V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification as V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification, |
| 47 |
) |
| 48 |
from stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event import ( |
| 49 |
V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent as V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent, |
| 50 |
V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification as V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification, |
| 51 |
) |
| 52 |
from stripe.events._v2_core_account_including_configuration_recipient_updated_event import ( |
| 53 |
V2CoreAccountIncludingConfigurationRecipientUpdatedEvent as V2CoreAccountIncludingConfigurationRecipientUpdatedEvent, |
| 54 |
V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification as V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification, |
| 55 |
) |
| 56 |
from stripe.events._v2_core_account_including_defaults_updated_event import ( |
| 57 |
V2CoreAccountIncludingDefaultsUpdatedEvent as V2CoreAccountIncludingDefaultsUpdatedEvent, |
| 58 |
V2CoreAccountIncludingDefaultsUpdatedEventNotification as V2CoreAccountIncludingDefaultsUpdatedEventNotification, |
| 59 |
) |
| 60 |
from stripe.events._v2_core_account_including_future_requirements_updated_event import ( |
| 61 |
V2CoreAccountIncludingFutureRequirementsUpdatedEvent as V2CoreAccountIncludingFutureRequirementsUpdatedEvent, |
| 62 |
V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification as V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification, |
| 63 |
) |
| 64 |
from stripe.events._v2_core_account_including_identity_updated_event import ( |
| 65 |
V2CoreAccountIncludingIdentityUpdatedEvent as V2CoreAccountIncludingIdentityUpdatedEvent, |
| 66 |
V2CoreAccountIncludingIdentityUpdatedEventNotification as V2CoreAccountIncludingIdentityUpdatedEventNotification, |
| 67 |
) |
| 68 |
from stripe.events._v2_core_account_including_requirements_updated_event import ( |
| 69 |
V2CoreAccountIncludingRequirementsUpdatedEvent as V2CoreAccountIncludingRequirementsUpdatedEvent, |
| 70 |
V2CoreAccountIncludingRequirementsUpdatedEventNotification as V2CoreAccountIncludingRequirementsUpdatedEventNotification, |
| 71 |
) |
| 72 |
from stripe.events._v2_core_account_link_returned_event import ( |
| 73 |
V2CoreAccountLinkReturnedEvent as V2CoreAccountLinkReturnedEvent, |
| 74 |
V2CoreAccountLinkReturnedEventNotification as V2CoreAccountLinkReturnedEventNotification, |
| 75 |
) |
| 76 |
from stripe.events._v2_core_account_person_created_event import ( |
| 77 |
V2CoreAccountPersonCreatedEvent as V2CoreAccountPersonCreatedEvent, |
| 78 |
V2CoreAccountPersonCreatedEventNotification as V2CoreAccountPersonCreatedEventNotification, |
| 79 |
) |
| 80 |
from stripe.events._v2_core_account_person_deleted_event import ( |
| 81 |
V2CoreAccountPersonDeletedEvent as V2CoreAccountPersonDeletedEvent, |
| 82 |
V2CoreAccountPersonDeletedEventNotification as V2CoreAccountPersonDeletedEventNotification, |
| 83 |
) |
| 84 |
from stripe.events._v2_core_account_person_updated_event import ( |
| 85 |
V2CoreAccountPersonUpdatedEvent as V2CoreAccountPersonUpdatedEvent, |
| 86 |
V2CoreAccountPersonUpdatedEventNotification as V2CoreAccountPersonUpdatedEventNotification, |
| 87 |
) |
| 88 |
from stripe.events._v2_core_account_updated_event import ( |
| 89 |
V2CoreAccountUpdatedEvent as V2CoreAccountUpdatedEvent, |
| 90 |
V2CoreAccountUpdatedEventNotification as V2CoreAccountUpdatedEventNotification, |
| 91 |
) |
| 92 |
from stripe.events._v2_core_event_destination_ping_event import ( |
| 93 |
V2CoreEventDestinationPingEvent as V2CoreEventDestinationPingEvent, |
| 94 |
V2CoreEventDestinationPingEventNotification as V2CoreEventDestinationPingEventNotification, |
| 95 |
) |
| 96 |
|
| 97 |
# name -> (import_target, is_submodule) |
| 98 |
_import_map = { |
| 99 |
"ALL_EVENT_NOTIFICATIONS": ("stripe.events._event_classes", False), |
| 100 |
"V1BillingMeterErrorReportTriggeredEvent": ( |
| 101 |
"stripe.events._v1_billing_meter_error_report_triggered_event", |
| 102 |
False, |
| 103 |
), |
| 104 |
"V1BillingMeterErrorReportTriggeredEventNotification": ( |
| 105 |
"stripe.events._v1_billing_meter_error_report_triggered_event", |
| 106 |
False, |
| 107 |
), |
| 108 |
"V1BillingMeterNoMeterFoundEvent": ( |
| 109 |
"stripe.events._v1_billing_meter_no_meter_found_event", |
| 110 |
False, |
| 111 |
), |
| 112 |
"V1BillingMeterNoMeterFoundEventNotification": ( |
| 113 |
"stripe.events._v1_billing_meter_no_meter_found_event", |
| 114 |
False, |
| 115 |
), |
| 116 |
"V2CoreAccountClosedEvent": ( |
| 117 |
"stripe.events._v2_core_account_closed_event", |
| 118 |
False, |
| 119 |
), |
| 120 |
"V2CoreAccountClosedEventNotification": ( |
| 121 |
"stripe.events._v2_core_account_closed_event", |
| 122 |
False, |
| 123 |
), |
| 124 |
"V2CoreAccountCreatedEvent": ( |
| 125 |
"stripe.events._v2_core_account_created_event", |
| 126 |
False, |
| 127 |
), |
| 128 |
"V2CoreAccountCreatedEventNotification": ( |
| 129 |
"stripe.events._v2_core_account_created_event", |
| 130 |
False, |
| 131 |
), |
| 132 |
"V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent": ( |
| 133 |
"stripe.events._v2_core_account_including_configuration_customer_capability_status_updated_event", |
| 134 |
False, |
| 135 |
), |
| 136 |
"V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification": ( |
| 137 |
"stripe.events._v2_core_account_including_configuration_customer_capability_status_updated_event", |
| 138 |
False, |
| 139 |
), |
| 140 |
"V2CoreAccountIncludingConfigurationCustomerUpdatedEvent": ( |
| 141 |
"stripe.events._v2_core_account_including_configuration_customer_updated_event", |
| 142 |
False, |
| 143 |
), |
| 144 |
"V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification": ( |
| 145 |
"stripe.events._v2_core_account_including_configuration_customer_updated_event", |
| 146 |
False, |
| 147 |
), |
| 148 |
"V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent": ( |
| 149 |
"stripe.events._v2_core_account_including_configuration_merchant_capability_status_updated_event", |
| 150 |
False, |
| 151 |
), |
| 152 |
"V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification": ( |
| 153 |
"stripe.events._v2_core_account_including_configuration_merchant_capability_status_updated_event", |
| 154 |
False, |
| 155 |
), |
| 156 |
"V2CoreAccountIncludingConfigurationMerchantUpdatedEvent": ( |
| 157 |
"stripe.events._v2_core_account_including_configuration_merchant_updated_event", |
| 158 |
False, |
| 159 |
), |
| 160 |
"V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification": ( |
| 161 |
"stripe.events._v2_core_account_including_configuration_merchant_updated_event", |
| 162 |
False, |
| 163 |
), |
| 164 |
"V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent": ( |
| 165 |
"stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event", |
| 166 |
False, |
| 167 |
), |
| 168 |
"V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification": ( |
| 169 |
"stripe.events._v2_core_account_including_configuration_recipient_capability_status_updated_event", |
| 170 |
False, |
| 171 |
), |
| 172 |
"V2CoreAccountIncludingConfigurationRecipientUpdatedEvent": ( |
| 173 |
"stripe.events._v2_core_account_including_configuration_recipient_updated_event", |
| 174 |
False, |
| 175 |
), |
| 176 |
"V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification": ( |
| 177 |
"stripe.events._v2_core_account_including_configuration_recipient_updated_event", |
| 178 |
False, |
| 179 |
), |
| 180 |
"V2CoreAccountIncludingDefaultsUpdatedEvent": ( |
| 181 |
"stripe.events._v2_core_account_including_defaults_updated_event", |
| 182 |
False, |
| 183 |
), |
| 184 |
"V2CoreAccountIncludingDefaultsUpdatedEventNotification": ( |
| 185 |
"stripe.events._v2_core_account_including_defaults_updated_event", |
| 186 |
False, |
| 187 |
), |
| 188 |
"V2CoreAccountIncludingFutureRequirementsUpdatedEvent": ( |
| 189 |
"stripe.events._v2_core_account_including_future_requirements_updated_event", |
| 190 |
False, |
| 191 |
), |
| 192 |
"V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification": ( |
| 193 |
"stripe.events._v2_core_account_including_future_requirements_updated_event", |
| 194 |
False, |
| 195 |
), |
| 196 |
"V2CoreAccountIncludingIdentityUpdatedEvent": ( |
| 197 |
"stripe.events._v2_core_account_including_identity_updated_event", |
| 198 |
False, |
| 199 |
), |
| 200 |
"V2CoreAccountIncludingIdentityUpdatedEventNotification": ( |
| 201 |
"stripe.events._v2_core_account_including_identity_updated_event", |
| 202 |
False, |
| 203 |
), |
| 204 |
"V2CoreAccountIncludingRequirementsUpdatedEvent": ( |
| 205 |
"stripe.events._v2_core_account_including_requirements_updated_event", |
| 206 |
False, |
| 207 |
), |
| 208 |
"V2CoreAccountIncludingRequirementsUpdatedEventNotification": ( |
| 209 |
"stripe.events._v2_core_account_including_requirements_updated_event", |
| 210 |
False, |
| 211 |
), |
| 212 |
"V2CoreAccountLinkReturnedEvent": ( |
| 213 |
"stripe.events._v2_core_account_link_returned_event", |
| 214 |
False, |
| 215 |
), |
| 216 |
"V2CoreAccountLinkReturnedEventNotification": ( |
| 217 |
"stripe.events._v2_core_account_link_returned_event", |
| 218 |
False, |
| 219 |
), |
| 220 |
"V2CoreAccountPersonCreatedEvent": ( |
| 221 |
"stripe.events._v2_core_account_person_created_event", |
| 222 |
False, |
| 223 |
), |
| 224 |
"V2CoreAccountPersonCreatedEventNotification": ( |
| 225 |
"stripe.events._v2_core_account_person_created_event", |
| 226 |
False, |
| 227 |
), |
| 228 |
"V2CoreAccountPersonDeletedEvent": ( |
| 229 |
"stripe.events._v2_core_account_person_deleted_event", |
| 230 |
False, |
| 231 |
), |
| 232 |
"V2CoreAccountPersonDeletedEventNotification": ( |
| 233 |
"stripe.events._v2_core_account_person_deleted_event", |
| 234 |
False, |
| 235 |
), |
| 236 |
"V2CoreAccountPersonUpdatedEvent": ( |
| 237 |
"stripe.events._v2_core_account_person_updated_event", |
| 238 |
False, |
| 239 |
), |
| 240 |
"V2CoreAccountPersonUpdatedEventNotification": ( |
| 241 |
"stripe.events._v2_core_account_person_updated_event", |
| 242 |
False, |
| 243 |
), |
| 244 |
"V2CoreAccountUpdatedEvent": ( |
| 245 |
"stripe.events._v2_core_account_updated_event", |
| 246 |
False, |
| 247 |
), |
| 248 |
"V2CoreAccountUpdatedEventNotification": ( |
| 249 |
"stripe.events._v2_core_account_updated_event", |
| 250 |
False, |
| 251 |
), |
| 252 |
"V2CoreEventDestinationPingEvent": ( |
| 253 |
"stripe.events._v2_core_event_destination_ping_event", |
| 254 |
False, |
| 255 |
), |
| 256 |
"V2CoreEventDestinationPingEventNotification": ( |
| 257 |
"stripe.events._v2_core_event_destination_ping_event", |
| 258 |
False, |
| 259 |
), |
| 260 |
} |
| 261 |
if not TYPE_CHECKING: |
| 262 |
|
| 263 |
def __getattr__(name): |
| 264 |
try: |
| 265 |
target, is_submodule = _import_map[name] |
| 266 |
module = import_module(target) |
| 267 |
if is_submodule: |
| 268 |
return module |
| 269 |
|
| 270 |
return getattr( |
| 271 |
module, |
| 272 |
name, |
| 273 |
) |
| 274 |
except KeyError: |
| 275 |
raise AttributeError() |
| 276 |
|
| 277 |
# The end of the section generated from our OpenAPI spec |