Ë
    –kñh@  ã                   óŒ   — d dl mZ d dlmZ d dlmZ d dlmZmZm	Z	m
Z
 d dlmZmZmZ erd dlmZ d dlmZ  G d„ d	ed	   «      Zy
)é    )Ú
ListObject)ÚListableAPIResource)ÚStripeObject)ÚAnyÚClassVarÚDictÚOptional)ÚLiteralÚUnpackÚTYPE_CHECKING)ÚEventListParams)ÚEventRetrieveParamsc                   óœ  — e Zd ZU dZdZeed      ed<    G d„ de«      Z	 G d„ de«      Z
ee   ed<   	 ee   ed	<   	 ee   ed
<   	 eed<   	 e	ed<   eed<   	 eed<   	 ed   ed<   	 eed<   	 ee
   ed<   	 ed   ed<   	 eded   ded    fd„«       Zeded   ded    fd„«       Zededed   dd fd„«       Zededed   dd fd„«       Ze	e
dœZy)ÚEventa¾  
    Snapshot events allow you to track and react to activity in your Stripe integration. When
    the state of another API resource changes, Stripe creates an `Event` object that contains
    all the relevant information associated with that action, including the affected API
    resource. For example, a successful payment triggers a `charge.succeeded` event, which
    contains the `Charge` in the event's data property. Some actions trigger multiple events.
    For example, if you create a new subscription for a customer, it triggers both a
    `customer.subscription.created` event and a `charge.succeeded` event.

    Configure an event destination in your account to listen for events that represent actions
    your integration needs to respond to. Additionally, you can retrieve an individual event or
    a list of events from the API.

    [Connect](https://docs.stripe.com/connect) platforms can also receive event notifications
    that occur in their connected accounts. These events include an account attribute that
    identifies the relevant connected account.

    You can access events through the [Retrieve Event API](https://docs.stripe.com/api/events#retrieve_event)
    for 30 days.
    ÚeventÚOBJECT_NAMEc                   ó>   — e Zd ZU eeef   ed<   	 eeeef      ed<   y)ú
Event.DataÚobjectÚprevious_attributesN)Ú__name__Ú
__module__Ú__qualname__r   Ústrr   Ú__annotations__r	   © ó    úM/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/stripe/_event.pyÚDatar   &   s/   … ØS˜#X‘Óð	ð & d¨3°¨8¡nÑ5Ó5ð	r   r   c                   ó0   — e Zd ZU ee   ed<   	 ee   ed<   y)úEvent.RequestÚidÚidempotency_keyN)r   r   r   r	   r   r   r   r   r   ÚRequestr!   0   s"   … ØS‰MÓð	ð " #™Ó&ð	r   r$   ÚaccountÚapi_versionÚcontextÚcreatedÚdatar"   Úlivemoder   Úpending_webhooksÚrequest)ùzaccount.application.authorizedz account.application.deauthorizedz account.external_account.createdz account.external_account.deletedz account.external_account.updatedzaccount.updatedzapplication_fee.createdzapplication_fee.refund.updatedzapplication_fee.refundedzbalance.availablezbilling.alert.triggeredz$billing_portal.configuration.createdz$billing_portal.configuration.updatedzbilling_portal.session.createdzcapability.updatedzcash_balance.funds_availablezcharge.capturedzcharge.dispute.closedzcharge.dispute.createdzcharge.dispute.funds_reinstatedzcharge.dispute.funds_withdrawnzcharge.dispute.updatedzcharge.expiredzcharge.failedzcharge.pendingzcharge.refund.updatedzcharge.refundedzcharge.succeededzcharge.updatedz%checkout.session.async_payment_failedz(checkout.session.async_payment_succeededzcheckout.session.completedzcheckout.session.expiredzclimate.order.canceledzclimate.order.createdzclimate.order.delayedzclimate.order.deliveredz!climate.order.product_substitutedzclimate.product.createdzclimate.product.pricing_updatedzcoupon.createdzcoupon.deletedzcoupon.updatedzcredit_note.createdzcredit_note.updatedzcredit_note.voidedzcustomer.createdzcustomer.deletedzcustomer.discount.createdzcustomer.discount.deletedzcustomer.discount.updatedzcustomer.source.createdzcustomer.source.deletedzcustomer.source.expiringzcustomer.source.updatedzcustomer.subscription.createdzcustomer.subscription.deletedzcustomer.subscription.pausedz,customer.subscription.pending_update_appliedz,customer.subscription.pending_update_expiredzcustomer.subscription.resumedz$customer.subscription.trial_will_endzcustomer.subscription.updatedzcustomer.tax_id.createdzcustomer.tax_id.deletedzcustomer.tax_id.updatedzcustomer.updatedz)customer_cash_balance_transaction.createdz/entitlements.active_entitlement_summary.updatedzfile.createdz%financial_connections.account.createdz)financial_connections.account.deactivatedz*financial_connections.account.disconnectedz)financial_connections.account.reactivatedz/financial_connections.account.refreshed_balancez1financial_connections.account.refreshed_ownershipz4financial_connections.account.refreshed_transactionsz&identity.verification_session.canceledz%identity.verification_session.createdz(identity.verification_session.processingz&identity.verification_session.redactedz,identity.verification_session.requires_inputz&identity.verification_session.verifiedzinvoice.createdzinvoice.deletedzinvoice.finalization_failedzinvoice.finalizedzinvoice.marked_uncollectiblezinvoice.overduezinvoice.overpaidzinvoice.paidzinvoice.payment_action_requiredzinvoice.payment_failedzinvoice.payment_succeededzinvoice.sentzinvoice.upcomingzinvoice.updatedzinvoice.voidedzinvoice.will_be_duezinvoice_payment.paidzinvoiceitem.createdzinvoiceitem.deletedzissuing_authorization.createdzissuing_authorization.requestzissuing_authorization.updatedzissuing_card.createdzissuing_card.updatedzissuing_cardholder.createdzissuing_cardholder.updatedzissuing_dispute.closedzissuing_dispute.createdz issuing_dispute.funds_reinstatedzissuing_dispute.funds_rescindedzissuing_dispute.submittedzissuing_dispute.updatedz(issuing_personalization_design.activatedz*issuing_personalization_design.deactivatedz'issuing_personalization_design.rejectedz&issuing_personalization_design.updatedzissuing_token.createdzissuing_token.updatedzissuing_transaction.createdz4issuing_transaction.purchase_details_receipt_updatedzissuing_transaction.updatedzmandate.updatedz(payment_intent.amount_capturable_updatedzpayment_intent.canceledzpayment_intent.createdzpayment_intent.partially_fundedzpayment_intent.payment_failedzpayment_intent.processingzpayment_intent.requires_actionzpayment_intent.succeededzpayment_link.createdzpayment_link.updatedzpayment_method.attachedz$payment_method.automatically_updatedzpayment_method.detachedzpayment_method.updatedzpayout.canceledzpayout.createdzpayout.failedzpayout.paidzpayout.reconciliation_completedzpayout.updatedzperson.createdzperson.deletedzperson.updatedzplan.createdzplan.deletedzplan.updatedzprice.createdzprice.deletedzprice.updatedzproduct.createdzproduct.deletedzproduct.updatedzpromotion_code.createdzpromotion_code.updatedzquote.acceptedzquote.canceledzquote.createdzquote.finalizedz!radar.early_fraud_warning.createdz!radar.early_fraud_warning.updatedzrefund.createdzrefund.failedzrefund.updatedzreporting.report_run.failedzreporting.report_run.succeededzreporting.report_type.updatedzreview.closedzreview.openedzsetup_intent.canceledzsetup_intent.createdzsetup_intent.requires_actionzsetup_intent.setup_failedzsetup_intent.succeededz!sigma.scheduled_query_run.createdzsource.canceledzsource.chargeablezsource.failedzsource.mandate_notificationz!source.refund_attributes_requiredzsource.transaction.createdzsource.transaction.updatedzsubscription_schedule.abortedzsubscription_schedule.canceledzsubscription_schedule.completedzsubscription_schedule.createdzsubscription_schedule.expiringzsubscription_schedule.releasedzsubscription_schedule.updatedztax.settings.updatedztax_rate.createdztax_rate.updatedzterminal.reader.action_failedz terminal.reader.action_succeededzterminal.reader.action_updatedz!test_helpers.test_clock.advancingztest_helpers.test_clock.createdztest_helpers.test_clock.deletedz(test_helpers.test_clock.internal_failureztest_helpers.test_clock.readyztopup.canceledztopup.createdztopup.failedztopup.reversedztopup.succeededztransfer.createdztransfer.reversedztransfer.updatedz treasury.credit_reversal.createdztreasury.credit_reversal.postedz!treasury.debit_reversal.completedztreasury.debit_reversal.createdz.treasury.debit_reversal.initial_credit_grantedz!treasury.financial_account.closedz"treasury.financial_account.createdz2treasury.financial_account.features_status_updatedz"treasury.inbound_transfer.canceledz!treasury.inbound_transfer.createdz treasury.inbound_transfer.failedz#treasury.inbound_transfer.succeededz"treasury.outbound_payment.canceledz!treasury.outbound_payment.createdz7treasury.outbound_payment.expected_arrival_date_updatedz treasury.outbound_payment.failedz treasury.outbound_payment.postedz"treasury.outbound_payment.returnedz2treasury.outbound_payment.tracking_details_updatedz#treasury.outbound_transfer.canceledz"treasury.outbound_transfer.createdz8treasury.outbound_transfer.expected_arrival_date_updatedz!treasury.outbound_transfer.failedz!treasury.outbound_transfer.postedz#treasury.outbound_transfer.returnedz3treasury.outbound_transfer.tracking_details_updatedz treasury.received_credit.createdztreasury.received_credit.failedz"treasury.received_credit.succeededztreasury.received_debit.createdz*billing.credit_balance_transaction.createdzbilling.credit_grant.createdzbilling.credit_grant.updatedzbilling.meter.createdzbilling.meter.deactivatedzbilling.meter.reactivatedzbilling.meter.updatedÚtypeÚparamsr   Úreturnc                 ó¬   — | j                  d| j                  «       |¬«      }t        |t        «      s!t	        dt        |«      j                  z  «      ‚|S )á4  
        List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
        Úget©r.   ú%Expected list object from API, got %s)Ú_static_requestÚ	class_urlÚ
isinstancer   Ú	TypeErrorr-   r   ©Úclsr.   Úresults      r   Úlistz
Event.list^  s]   € ð
 ×$Ñ$ØØM‰M‹OØð %ó 
ˆô
 ˜&¤*Ô-ÜØ7Ü˜“<×(Ñ(ñ*óð ð
 ˆr   c              ‹   óÈ   K  — | j                  d| j                  «       |¬«      ƒ d{  –—† }t        |t        «      s!t	        dt        |«      j                  z  «      ‚|S 7 Œ7­w)r1   r2   r3   Nr4   )Ú_static_request_asyncr6   r7   r   r8   r-   r   r9   s      r   Ú
list_asynczEvent.list_asyncp  sk   è ø€ ð ×0Ñ0ØØM‰M‹OØð 1ó 
÷ 
ˆô
 ˜&¤*Ô-ÜØ7Ü˜“<×(Ñ(ñ*óð ð
 ˆð
ús   ‚&A"¨A ©8A"r   c                 ó8   —  | |fi |¤Ž}|j                  «        |S )ú±
        Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook.
        )Úrefresh©r:   r"   r.   Úinstances       r   ÚretrievezEvent.retrieve„  s$   € ñ rÑ$˜VÑ$ˆØ×ÑÔØˆr   c              ‹   óT   K  —  | |fi |¤Ž}|j                  «       ƒ d{  –—†  |S 7 Œ­w)rA   N)Úrefresh_asyncrC   s       r   Úretrieve_asynczEvent.retrieve_async  s3   è ø€ ñ rÑ$˜VÑ$ˆØ×$Ñ$Ó&×&Ð&Øˆð 	'ús   ‚(Ÿ& ()r)   r,   N)r   r   r   Ú__doc__r   r   r
   r   r   r   r$   r	   r   ÚintÚboolÚclassmethodr   r   r<   r?   rE   rH   Ú_inner_class_typesr   r   r   r   r      s¬  … ñð* /6€K˜' 'Ñ*Ñ+Ó5ôˆ|ô ô,ô ð c‰]Óðð ˜#‘Óðð c‰]Óðð ƒLðð ƒJØƒGðð ƒNðð GÑÓðð Óðð gÑÓðð ðx	!ñzó zðvð ð˜FÐ#4Ñ5ð ¸*ÀWÑ:Mò ó ðð" ðØÐ/Ñ0ðà	GÑ	òó ðð& ðØðØ &Ð'<Ñ =ðà	òó ðð ðØðØ &Ð'<Ñ =ðà	òó ðð #'°7Ñ;Ñr   r   N)Ústripe._list_objectr   Ústripe._listable_api_resourcer   Ústripe._stripe_objectr   Útypingr   r   r   r	   Útyping_extensionsr
   r   r   Ú stripe.params._event_list_paramsr   Ú$stripe.params._event_retrieve_paramsr   r   r   r   r   Ú<module>rU      s9   ðõ +Ý =Ý .ß 0Ó 0ß <Ñ <áÝ@ÝHôL<Ð Ñ(õ L<r   