o
    iW                     @   s  d dl Z d dlmZ d dlmZmZmZmZ d dlm	Z	 d dl
mZ d dlmZ d dlmZmZ d dlmZ d d	lmZmZ d d
lmZ d dlmZ d dlmZ d dlmZmZmZ d dl m!Z!m"Z" d dl#m$Z$ d dl%m&Z& d dl'm(Z(m)Z)m*Z*m+Z+m,Z, d dl-m.Z. e.rd dl/m0Z0 d dlm1Z1 d dl2m3Z3 d dl4m5Z5 d dl6m7Z7 e.rUd dl8m9Z9 d dl:m;Z; d dl<m=Z= d dl>m?Z? d dl@mAZA d dlBmCZC d dlDmEZE d dlFmGZG d d lHmIZI d d!lJmKZK d d"lLmMZM d d#lNmOZO d d$lPmQZQ d d%lRmSZS d d&lTmUZU d d'lVmWZW d d(lXmYZY d d)lZm[Z[ d d*l\m]Z] d d+l^m_Z_ d d,l`maZa d d-lbmcZc d d.ldmeZe d d/lfmgZg d d0lhmiZi d d1ljmkZk d d2llmmZm d d3lnmoZo d d4lpmqZq d d5lrmsZs d d6ltmuZu d d7lvmwZw d d8lxmyZy d d9lzm{Z{ d d:l|m}Z} d d;l~mZ d d<lmZ d d=lmZ d d>lmZ d d?lmZ d d@lmZ d dAlmZ d dBlmZ d dClmZ d dDlmZ d dElmZ d dFlmZ d dGlmZ d dHlmZ d dIlmZ d dJlmZ d dKlmZ d dLlmZ d dMlmZ d dNlmZ d dOlmZ d dPlmZ d dQlmZ d dRlmZ d dSlmZ d dTlmZ d dUlmZ d dVlmZ d dWlmZ d dXlmZ d dYlmZ d dZlmZ d d[lmZ d d\lmZ d d]lmZ d d^lmZ d d_lmZ e.r^d d`lmZ G dadb dbeʃZdS )c    N)OrderedDict)DEFAULT_API_BASEDEFAULT_CONNECT_API_BASEDEFAULT_UPLOAD_API_BASEDEFAULT_METER_EVENTS_API_BASE)ApiMode)AuthenticationError)extract_options_from_dict)RequestorOptionsBaseAddresses)_ClientOptions)new_default_http_clientnew_http_client_async_fallback)_ApiVersion)StripeObject)StripeResponse)_convert_to_stripe_objectget_api_mode
deprecated)WebhookWebhookSignature)Event)EventNotification)AnyDictOptionalUnioncast)TYPE_CHECKING)StripeContext)
HTTPClient)OAuthService)
V1Services)
V2Services)AccountService)AccountLinkService)AccountSessionService)ApplePayDomainService)ApplicationFeeService)AppsService)BalanceService)BalanceSettingsService)BalanceTransactionService)BillingService)BillingPortalService)ChargeService)CheckoutService)ClimateService)ConfirmationTokenService)CountrySpecService)CouponService)CreditNoteService)CustomerService)CustomerSessionService)DisputeService)EntitlementsService)EphemeralKeyService)EventService)ExchangeRateService)FileService)FileLinkService)FinancialConnectionsService)ForwardingService)IdentityService)InvoiceService)InvoiceItemService)InvoicePaymentService)InvoiceRenderingTemplateService)IssuingService)MandateService)PaymentAttemptRecordService)PaymentIntentService)PaymentLinkService)PaymentMethodService)!PaymentMethodConfigurationService)PaymentMethodDomainService)PaymentRecordService)PayoutService)PlanService)PriceService)ProductService)PromotionCodeService)QuoteService)RadarService)RefundService)ReportingService)ReviewService)SetupAttemptService)SetupIntentService)ShippingRateService)SigmaService)SourceService)SubscriptionService)SubscriptionItemService)SubscriptionScheduleService)
TaxService)TaxCodeService)TaxIdService)TaxRateService)TerminalService)TestHelpersService)TokenService)TopupService)TransferService)TreasuryService)WebhookEndpointService)ALL_EVENT_NOTIFICATIONSc                   @   sZ  e Zd Zdddddddddd	dedee dddee d	ee d
ee dedee dee ded fddZe	j
fdeeeef dedededdf
ddZe	j
fdeeef dedededef
ddZdedefdd Zdedefd!d"Z	dHd#eeeeef f d$eeeef  d%edefd&d'Zeed(dId*d+Zeed,dJd.d/Zeed0dKd2d3Zeed4dLd6d7Zeed8dMd:d;Zeed<dNd>d?Z eed@dOdBdCZ!eedDdPdFdGZ"eedHdQdJdKZ#eedLdRdNdOZ$eedPdSdRdSZ%eedTdTdVdWZ&eedXdUdZd[Z'eed\dVd^d_Z(eed`dWdbdcZ)eedddXdfdgZ*eedhdYdjdkZ+eedldZdndoZ,eedpd[drdsZ-eedtd\dvdwZ.eedxd]dzd{Z/eed|d^d~dZ0eedd_ddZ1eedd`ddZ2eeddaddZ3eeddbddZ4eeddcddZ5eedddddZ6eeddeddZ7eeddfddZ8eeddgddZ9eeddhddZ:eeddiddZ;eeddjddZ<eeddkddZ=eeddlddZ>eeddmddZ?eeddnddZ@eeddoddÄZAeedădpddǄZBeedȃ		ɐdqdd˄ZCeed̃drddτZDeedЃdsddӄZEeedԃdtddׄZFeed؃duddۄZGeed܃dvdd߄ZHeeddwddZIeeddxddZJeeddyddZKeeddzddZLeedd{ddZMeedd|ddZNeedd}ddZOeedd~ddZPeed dddZQeeddddZReeddd
dZSeeddddZTeeddddZUeeddddZVeeddddZWeeddddZXeed dd"d#ZYeed$dd&d'ZZeed(dd*d+Z[eed,dd.d/Z\eed0dd2d3Z]eed4dd6d7Z^eed8dd:d;Z_eed<dd>d?Z`eed@ddBdCZaeedDddFdGZbdS (  StripeClientNT)	stripe_accountstripe_contextstripe_versionbase_addresses	client_idverify_ssl_certsproxymax_network_retrieshttp_clientapi_keyrn   ro   z#Optional[Union[str, StripeContext]]rp   rq   rr   rs   rt   ru   rv   r    c       	         C   s   |d u rt d|
r|s|durtdttttd|pi }t||||p'tj||	d}|
d u r;t	t
||d||d}
dd	lm} |||
d
| _t|||d| _t| j| j| _t| j| _t| j| _d S )NzNo API key provided. (HINT: set your API key using "client = stripe.StripeClient(<API-KEY>)"). You can generate API keys from the Stripe web interface. See https://stripe.com/api for details, or email support@stripe.com if you have any questions.TzYou cannot specify `proxy` or `verify_ssl_certs` when passing in a custom `http_client`. Please set these values on your custom `http_client` instead.)apiconnectfilesmeter_events)rw   rn   ro   rp   rq   ru   )rt   rs   )async_fallback_clientrt   rs   r   )_APIRequestor)optionsclient)rr   rt   rs   )r   
ValueErrorr   r   r   r   r
   r   CURRENTr   r   stripe._api_requestorr}   
_requestorr   _optionsr!   oauthr"   v1r#   v2)selfrw   rn   ro   rp   rq   rr   rs   rt   ru   rv   requestor_optionsr}    r   u/var/www/snowflake_co_dev_github/snow_flake_back_end_deploy/env/lib/python3.10/site-packages/stripe/_stripe_client.py__init__   sX   		zStripeClient.__init__raw
sig_headersecret	tolerancereturnrl   c                 C   sN   t |drttttf |dntt|}t|||| tdt	
|| S )aA  
        This should be your main method for interacting with `EventNotifications`. It's the V2 equivalent of `construct_event()`, but with better typing support.

        It returns a union representing all known `EventNotification` classes. They have a `type` property that can be used for narrowing, which will get you very specific type support. If parsing an event the SDK isn't familiar with, it'll instead return `UnknownEventNotification`. That's not reflected in the return type of the function (because it messes up type narrowing) but is otherwise intended.
        decodeutf-8rl   )hasattrr   r   bytes	bytearrayr   strr   verify_headerr   	from_json)r   r   r   r   r   payloadr   r   r   parse_event_notification   s   
z%StripeClient.parse_event_notificationr   c                 C   sN   t |drtt|d}t|||| tj|td}t	j
|| jdd}|S )Nr   r   )object_pairs_hookV1)values	requestorapi_mode)r   r   r   r   r   r   jsonloadsr   r   _construct_fromr   )r   r   r   r   r   dataeventr   r   r   construct_event   s   
zStripeClient.construct_eventmethod_url_c              	   K   sh   |  }t|\}}t|}|dd}|ddg}| jj|||||||d\}}	}
| j||	|
|S )Nbaserx   usageraw_requestparamsr~   base_addressr   r   )copyr	   r   popr   request_raw_interpret_response)r   r   r   r   r~   r   r   r   rbodyrcoderheadersr   r   r   r     s"   
zStripeClient.raw_requestc           
   	      sd   |  }t|\}}t|}|dd}| jj||||||dgdI d H \}}}	| j|||	|S )Nr   rx   r   r   )r   r	   r   r   r   request_raw_asyncr   )
r   r   r   r   r~   r   r   r   r   r   r   r   r   raw_request_async  s"   
zStripeClient.raw_request_asyncrespr   r   c                C   s   t ||| j|dS )zV
        Used to translate the result of a `raw_request` into a StripeObject.
        )r   r   r   r   )r   r   )r   r   r   r   r   r   r   deserialize1  s   
zStripeClient.deserializea^  
        StripeClient.accounts is deprecated, use StripeClient.v1.accounts instead.
          All functionality under it has been copied over to StripeClient.v1.accounts.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r$   c                 C      | j jS N)r   accountsr   r   r   r   r   C     	zStripeClient.accountsam  
        StripeClient.account_links is deprecated, use StripeClient.v1.account_links instead.
          All functionality under it has been copied over to StripeClient.v1.account_links.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r%   c                 C   r   r   )r   account_linksr   r   r   r   r   N  r   zStripeClient.account_linksav  
        StripeClient.account_sessions is deprecated, use StripeClient.v1.account_sessions instead.
          All functionality under it has been copied over to StripeClient.v1.account_sessions.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r&   c                 C   r   r   )r   account_sessionsr   r   r   r   r   Y  r   zStripeClient.account_sessionsay  
        StripeClient.apple_pay_domains is deprecated, use StripeClient.v1.apple_pay_domains instead.
          All functionality under it has been copied over to StripeClient.v1.apple_pay_domains.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r'   c                 C   r   r   )r   apple_pay_domainsr   r   r   r   r   d  r   zStripeClient.apple_pay_domainsav  
        StripeClient.application_fees is deprecated, use StripeClient.v1.application_fees instead.
          All functionality under it has been copied over to StripeClient.v1.application_fees.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r(   c                 C   r   r   )r   application_feesr   r   r   r   r   o  r   zStripeClient.application_feesaR  
        StripeClient.apps is deprecated, use StripeClient.v1.apps instead.
          All functionality under it has been copied over to StripeClient.v1.apps.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r)   c                 C   r   r   )r   appsr   r   r   r   r   z  r   zStripeClient.appsa[  
        StripeClient.balance is deprecated, use StripeClient.v1.balance instead.
          All functionality under it has been copied over to StripeClient.v1.balance.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r*   c                 C   r   r   )r   balancer   r   r   r   r     r   zStripeClient.balanceav  
        StripeClient.balance_settings is deprecated, use StripeClient.v1.balance_settings instead.
          All functionality under it has been copied over to StripeClient.v1.balance_settings.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r+   c                 C   r   r   )r   balance_settingsr   r   r   r   r     r   zStripeClient.balance_settingsa  
        StripeClient.balance_transactions is deprecated, use StripeClient.v1.balance_transactions instead.
          All functionality under it has been copied over to StripeClient.v1.balance_transactions.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r,   c                 C   r   r   )r   balance_transactionsr   r   r   r   r     r   z!StripeClient.balance_transactionsa[  
        StripeClient.billing is deprecated, use StripeClient.v1.billing instead.
          All functionality under it has been copied over to StripeClient.v1.billing.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r-   c                 C   r   r   )r   billingr   r   r   r   r     r   zStripeClient.billingap  
        StripeClient.billing_portal is deprecated, use StripeClient.v1.billing_portal instead.
          All functionality under it has been copied over to StripeClient.v1.billing_portal.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r.   c                 C   r   r   )r   billing_portalr   r   r   r   r     r   zStripeClient.billing_portala[  
        StripeClient.charges is deprecated, use StripeClient.v1.charges instead.
          All functionality under it has been copied over to StripeClient.v1.charges.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r/   c                 C   r   r   )r   chargesr   r   r   r   r     r   zStripeClient.chargesa^  
        StripeClient.checkout is deprecated, use StripeClient.v1.checkout instead.
          All functionality under it has been copied over to StripeClient.v1.checkout.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r0   c                 C   r   r   )r   checkoutr   r   r   r   r     r   zStripeClient.checkouta[  
        StripeClient.climate is deprecated, use StripeClient.v1.climate instead.
          All functionality under it has been copied over to StripeClient.v1.climate.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r1   c                 C   r   r   )r   climater   r   r   r   r     r   zStripeClient.climatea  
        StripeClient.confirmation_tokens is deprecated, use StripeClient.v1.confirmation_tokens instead.
          All functionality under it has been copied over to StripeClient.v1.confirmation_tokens.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r2   c                 C   r   r   )r   confirmation_tokensr   r   r   r   r     r   z StripeClient.confirmation_tokensam  
        StripeClient.country_specs is deprecated, use StripeClient.v1.country_specs instead.
          All functionality under it has been copied over to StripeClient.v1.country_specs.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r3   c                 C   r   r   )r   country_specsr   r   r   r   r     r   zStripeClient.country_specsa[  
        StripeClient.coupons is deprecated, use StripeClient.v1.coupons instead.
          All functionality under it has been copied over to StripeClient.v1.coupons.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r4   c                 C   r   r   )r   couponsr   r   r   r   r     r   zStripeClient.couponsaj  
        StripeClient.credit_notes is deprecated, use StripeClient.v1.credit_notes instead.
          All functionality under it has been copied over to StripeClient.v1.credit_notes.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r5   c                 C   r   r   )r   credit_notesr   r   r   r   r     r   zStripeClient.credit_notesaa  
        StripeClient.customers is deprecated, use StripeClient.v1.customers instead.
          All functionality under it has been copied over to StripeClient.v1.customers.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r6   c                 C   r   r   )r   	customersr   r   r   r   r   	  r   zStripeClient.customersay  
        StripeClient.customer_sessions is deprecated, use StripeClient.v1.customer_sessions instead.
          All functionality under it has been copied over to StripeClient.v1.customer_sessions.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r7   c                 C   r   r   )r   customer_sessionsr   r   r   r   r     r   zStripeClient.customer_sessionsa^  
        StripeClient.disputes is deprecated, use StripeClient.v1.disputes instead.
          All functionality under it has been copied over to StripeClient.v1.disputes.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r8   c                 C   r   r   )r   disputesr   r   r   r   r     r   zStripeClient.disputesaj  
        StripeClient.entitlements is deprecated, use StripeClient.v1.entitlements instead.
          All functionality under it has been copied over to StripeClient.v1.entitlements.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r9   c                 C   r   r   )r   entitlementsr   r   r   r   r   *  r   zStripeClient.entitlementsap  
        StripeClient.ephemeral_keys is deprecated, use StripeClient.v1.ephemeral_keys instead.
          All functionality under it has been copied over to StripeClient.v1.ephemeral_keys.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r:   c                 C   r   r   )r   ephemeral_keysr   r   r   r   r   5  r   zStripeClient.ephemeral_keysaX  
        StripeClient.events is deprecated, use StripeClient.v1.events instead.
          All functionality under it has been copied over to StripeClient.v1.events.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r;   c                 C   r   r   )r   eventsr   r   r   r   r   @  r   zStripeClient.eventsap  
        StripeClient.exchange_rates is deprecated, use StripeClient.v1.exchange_rates instead.
          All functionality under it has been copied over to StripeClient.v1.exchange_rates.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r<   c                 C   r   r   )r   exchange_ratesr   r   r   r   r   K  r   zStripeClient.exchange_ratesaU  
        StripeClient.files is deprecated, use StripeClient.v1.files instead.
          All functionality under it has been copied over to StripeClient.v1.files.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r=   c                 C   r   r   )r   rz   r   r   r   r   rz   V  r   zStripeClient.filesad  
        StripeClient.file_links is deprecated, use StripeClient.v1.file_links instead.
          All functionality under it has been copied over to StripeClient.v1.file_links.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r>   c                 C   r   r   )r   
file_linksr   r   r   r   r   a  r   zStripeClient.file_linksa  
        StripeClient.financial_connections is deprecated, use StripeClient.v1.financial_connections instead.
          All functionality under it has been copied over to StripeClient.v1.financial_connections.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r?   c                 C   r   r   )r   financial_connectionsr   r   r   r   r   l  r   z"StripeClient.financial_connectionsad  
        StripeClient.forwarding is deprecated, use StripeClient.v1.forwarding instead.
          All functionality under it has been copied over to StripeClient.v1.forwarding.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r@   c                 C   r   r   )r   
forwardingr   r   r   r   r   w  r   zStripeClient.forwardinga^  
        StripeClient.identity is deprecated, use StripeClient.v1.identity instead.
          All functionality under it has been copied over to StripeClient.v1.identity.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rA   c                 C   r   r   )r   identityr   r   r   r   r     r   zStripeClient.identitya^  
        StripeClient.invoices is deprecated, use StripeClient.v1.invoices instead.
          All functionality under it has been copied over to StripeClient.v1.invoices.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rB   c                 C   r   r   )r   invoicesr   r   r   r   r     r   zStripeClient.invoicesam  
        StripeClient.invoice_items is deprecated, use StripeClient.v1.invoice_items instead.
          All functionality under it has been copied over to StripeClient.v1.invoice_items.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rC   c                 C   r   r   )r   invoice_itemsr   r   r   r   r     r   zStripeClient.invoice_itemsav  
        StripeClient.invoice_payments is deprecated, use StripeClient.v1.invoice_payments instead.
          All functionality under it has been copied over to StripeClient.v1.invoice_payments.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rD   c                 C   r   r   )r   invoice_paymentsr   r   r   r   r     r   zStripeClient.invoice_paymentsa  
        StripeClient.invoice_rendering_templates is deprecated, use StripeClient.v1.invoice_rendering_templates instead.
          All functionality under it has been copied over to StripeClient.v1.invoice_rendering_templates.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rE   c                 C   r   r   )r   invoice_rendering_templatesr   r   r   r   r     r   z(StripeClient.invoice_rendering_templatesa[  
        StripeClient.issuing is deprecated, use StripeClient.v1.issuing instead.
          All functionality under it has been copied over to StripeClient.v1.issuing.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rF   c                 C   r   r   )r   issuingr   r   r   r   r     r   zStripeClient.issuinga^  
        StripeClient.mandates is deprecated, use StripeClient.v1.mandates instead.
          All functionality under it has been copied over to StripeClient.v1.mandates.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rG   c                 C   r   r   )r   mandatesr   r   r   r   r     r   zStripeClient.mandatesa  
        StripeClient.payment_attempt_records is deprecated, use StripeClient.v1.payment_attempt_records instead.
          All functionality under it has been copied over to StripeClient.v1.payment_attempt_records.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rH   c                 C   r   r   )r   payment_attempt_recordsr   r   r   r   r     r   z$StripeClient.payment_attempt_recordsas  
        StripeClient.payment_intents is deprecated, use StripeClient.v1.payment_intents instead.
          All functionality under it has been copied over to StripeClient.v1.payment_intents.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rI   c                 C   r   r   )r   payment_intentsr   r   r   r   r     r   zStripeClient.payment_intentsam  
        StripeClient.payment_links is deprecated, use StripeClient.v1.payment_links instead.
          All functionality under it has been copied over to StripeClient.v1.payment_links.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rJ   c                 C   r   r   )r   payment_linksr   r   r   r   r     r   zStripeClient.payment_linksas  
        StripeClient.payment_methods is deprecated, use StripeClient.v1.payment_methods instead.
          All functionality under it has been copied over to StripeClient.v1.payment_methods.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rK   c                 C   r   r   )r   payment_methodsr   r   r   r   r     r   zStripeClient.payment_methodsa  
        StripeClient.payment_method_configurations is deprecated, use StripeClient.v1.payment_method_configurations instead.
          All functionality under it has been copied over to StripeClient.v1.payment_method_configurations.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rL   c                 C   r   r   )r   payment_method_configurationsr   r   r   r   r     s   z*StripeClient.payment_method_configurationsa  
        StripeClient.payment_method_domains is deprecated, use StripeClient.v1.payment_method_domains instead.
          All functionality under it has been copied over to StripeClient.v1.payment_method_domains.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rM   c                 C   r   r   )r   payment_method_domainsr   r   r   r   r     r   z#StripeClient.payment_method_domainsas  
        StripeClient.payment_records is deprecated, use StripeClient.v1.payment_records instead.
          All functionality under it has been copied over to StripeClient.v1.payment_records.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rN   c                 C   r   r   )r   payment_recordsr   r   r   r   r     r   zStripeClient.payment_recordsa[  
        StripeClient.payouts is deprecated, use StripeClient.v1.payouts instead.
          All functionality under it has been copied over to StripeClient.v1.payouts.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rO   c                 C   r   r   )r   payoutsr   r   r   r   r     r   zStripeClient.payoutsaU  
        StripeClient.plans is deprecated, use StripeClient.v1.plans instead.
          All functionality under it has been copied over to StripeClient.v1.plans.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rP   c                 C   r   r   )r   plansr   r   r   r   r   )  r   zStripeClient.plansaX  
        StripeClient.prices is deprecated, use StripeClient.v1.prices instead.
          All functionality under it has been copied over to StripeClient.v1.prices.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rQ   c                 C   r   r   )r   pricesr   r   r   r   r   4  r   zStripeClient.pricesa^  
        StripeClient.products is deprecated, use StripeClient.v1.products instead.
          All functionality under it has been copied over to StripeClient.v1.products.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rR   c                 C   r   r   )r   productsr   r   r   r   r   ?  r   zStripeClient.productsas  
        StripeClient.promotion_codes is deprecated, use StripeClient.v1.promotion_codes instead.
          All functionality under it has been copied over to StripeClient.v1.promotion_codes.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rS   c                 C   r   r   )r   promotion_codesr   r   r   r   r   J  r   zStripeClient.promotion_codesaX  
        StripeClient.quotes is deprecated, use StripeClient.v1.quotes instead.
          All functionality under it has been copied over to StripeClient.v1.quotes.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rT   c                 C   r   r   )r   quotesr   r   r   r   r   U  r   zStripeClient.quotesaU  
        StripeClient.radar is deprecated, use StripeClient.v1.radar instead.
          All functionality under it has been copied over to StripeClient.v1.radar.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rU   c                 C   r   r   )r   radarr   r   r   r   r   `  r   zStripeClient.radara[  
        StripeClient.refunds is deprecated, use StripeClient.v1.refunds instead.
          All functionality under it has been copied over to StripeClient.v1.refunds.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rV   c                 C   r   r   )r   refundsr   r   r   r   r   k  r   zStripeClient.refundsaa  
        StripeClient.reporting is deprecated, use StripeClient.v1.reporting instead.
          All functionality under it has been copied over to StripeClient.v1.reporting.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rW   c                 C   r   r   )r   	reportingr   r   r   r   r   v  r   zStripeClient.reportinga[  
        StripeClient.reviews is deprecated, use StripeClient.v1.reviews instead.
          All functionality under it has been copied over to StripeClient.v1.reviews.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rX   c                 C   r   r   )r   reviewsr   r   r   r   r     r   zStripeClient.reviewsap  
        StripeClient.setup_attempts is deprecated, use StripeClient.v1.setup_attempts instead.
          All functionality under it has been copied over to StripeClient.v1.setup_attempts.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rY   c                 C   r   r   )r   setup_attemptsr   r   r   r   r     r   zStripeClient.setup_attemptsam  
        StripeClient.setup_intents is deprecated, use StripeClient.v1.setup_intents instead.
          All functionality under it has been copied over to StripeClient.v1.setup_intents.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rZ   c                 C   r   r   )r   setup_intentsr   r   r   r   r     r   zStripeClient.setup_intentsap  
        StripeClient.shipping_rates is deprecated, use StripeClient.v1.shipping_rates instead.
          All functionality under it has been copied over to StripeClient.v1.shipping_rates.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r[   c                 C   r   r   )r   shipping_ratesr   r   r   r   r     r   zStripeClient.shipping_ratesaU  
        StripeClient.sigma is deprecated, use StripeClient.v1.sigma instead.
          All functionality under it has been copied over to StripeClient.v1.sigma.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r\   c                 C   r   r   )r   sigmar   r   r   r   r     r   zStripeClient.sigmaa[  
        StripeClient.sources is deprecated, use StripeClient.v1.sources instead.
          All functionality under it has been copied over to StripeClient.v1.sources.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r]   c                 C   r   r   )r   sourcesr   r   r   r   r     r   zStripeClient.sourcesam  
        StripeClient.subscriptions is deprecated, use StripeClient.v1.subscriptions instead.
          All functionality under it has been copied over to StripeClient.v1.subscriptions.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r^   c                 C   r   r   )r   subscriptionsr   r   r   r   r     r   zStripeClient.subscriptionsa|  
        StripeClient.subscription_items is deprecated, use StripeClient.v1.subscription_items instead.
          All functionality under it has been copied over to StripeClient.v1.subscription_items.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r_   c                 C   r   r   )r   subscription_itemsr   r   r   r   r     r   zStripeClient.subscription_itemsa  
        StripeClient.subscription_schedules is deprecated, use StripeClient.v1.subscription_schedules instead.
          All functionality under it has been copied over to StripeClient.v1.subscription_schedules.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        r`   c                 C   r   r   )r   subscription_schedulesr   r   r   r   r     r   z#StripeClient.subscription_schedulesaO  
        StripeClient.tax is deprecated, use StripeClient.v1.tax instead.
          All functionality under it has been copied over to StripeClient.v1.tax.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        ra   c                 C   r   r   )r   taxr   r   r   r   r     r   zStripeClient.taxaa  
        StripeClient.tax_codes is deprecated, use StripeClient.v1.tax_codes instead.
          All functionality under it has been copied over to StripeClient.v1.tax_codes.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rb   c                 C   r   r   )r   	tax_codesr   r   r   r   r     r   zStripeClient.tax_codesa[  
        StripeClient.tax_ids is deprecated, use StripeClient.v1.tax_ids instead.
          All functionality under it has been copied over to StripeClient.v1.tax_ids.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rc   c                 C   r   r   )r   tax_idsr   r   r   r   r     r   zStripeClient.tax_idsaa  
        StripeClient.tax_rates is deprecated, use StripeClient.v1.tax_rates instead.
          All functionality under it has been copied over to StripeClient.v1.tax_rates.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rd   c                 C   r   r   )r   	tax_ratesr   r   r   r   r     r   zStripeClient.tax_ratesa^  
        StripeClient.terminal is deprecated, use StripeClient.v1.terminal instead.
          All functionality under it has been copied over to StripeClient.v1.terminal.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        re   c                 C   r   r   )r   terminalr   r   r   r   r     r   zStripeClient.terminalaj  
        StripeClient.test_helpers is deprecated, use StripeClient.v1.test_helpers instead.
          All functionality under it has been copied over to StripeClient.v1.test_helpers.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rf   c                 C   r   r   )r   test_helpersr   r   r   r   r     r   zStripeClient.test_helpersaX  
        StripeClient.tokens is deprecated, use StripeClient.v1.tokens instead.
          All functionality under it has been copied over to StripeClient.v1.tokens.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rg   c                 C   r   r   )r   tokensr   r   r   r   r   &  r   zStripeClient.tokensaX  
        StripeClient.topups is deprecated, use StripeClient.v1.topups instead.
          All functionality under it has been copied over to StripeClient.v1.topups.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rh   c                 C   r   r   )r   topupsr   r   r   r   r  1  r   zStripeClient.topupsaa  
        StripeClient.transfers is deprecated, use StripeClient.v1.transfers instead.
          All functionality under it has been copied over to StripeClient.v1.transfers.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        ri   c                 C   r   r   )r   	transfersr   r   r   r   r  <  r   zStripeClient.transfersa^  
        StripeClient.treasury is deprecated, use StripeClient.v1.treasury instead.
          All functionality under it has been copied over to StripeClient.v1.treasury.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rj   c                 C   r   r   )r   treasuryr   r   r   r   r  G  r   zStripeClient.treasuryay  
        StripeClient.webhook_endpoints is deprecated, use StripeClient.v1.webhook_endpoints instead.
          All functionality under it has been copied over to StripeClient.v1.webhook_endpoints.
          See [migration guide](https://github.com/stripe/stripe-python/wiki/v1-namespace-in-StripeClient) for more on this and tips on migrating to the new v1 namespace.
        rk   c                 C   r   r   )r   webhook_endpointsr   r   r   r   r  R  r   zStripeClient.webhook_endpointsr   )r   r$   )r   r%   )r   r&   )r   r'   )r   r(   )r   r)   )r   r*   )r   r+   )r   r,   )r   r-   )r   r.   )r   r/   )r   r0   )r   r1   )r   r2   )r   r3   )r   r4   )r   r5   )r   r6   )r   r7   )r   r8   )r   r9   )r   r:   )r   r;   )r   r<   )r   r=   )r   r>   )r   r?   )r   r@   )r   rA   )r   rB   )r   rC   )r   rD   )r   rE   )r   rF   )r   rG   )r   rH   )r   rI   )r   rJ   )r   rK   )r   rL   )r   rM   )r   rN   )r   rO   )r   rP   )r   rQ   )r   rR   )r   rS   )r   rT   )r   rU   )r   rV   )r   rW   )r   rX   )r   rY   )r   rZ   )r   r[   )r   r\   )r   r]   )r   r^   )r   r_   )r   r`   )r   ra   )r   rb   )r   rc   )r   rd   )r   re   )r   rf   )r   rg   )r   rh   )r   ri   )r   rj   )r   rk   )c__name__
__module____qualname__r   r   r   boolintr   r   DEFAULT_TOLERANCEr   r   r   r   r   r   r   r   r   r   r   r   r   r   propertyr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rz   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r   r   r   r   rm      sZ   	

T



rm   )r   collectionsr   striper   r   r   r   stripe._api_moder   stripe._errorr   stripe._request_optionsr	   stripe._requestor_optionsr
   r   stripe._client_optionsr   stripe._http_clientr   r   stripe._api_versionr   stripe._stripe_objectr   stripe._stripe_responser   stripe._utilr   r   r   stripe._webhookr   r   stripe._eventr   stripe.v2.core._eventr   typingr   r   r   r   r   typing_extensionsr   stripe._stripe_contextr   r    stripe._oauth_servicer!   stripe._v1_servicesr"   stripe._v2_servicesr#   stripe._account_servicer$   stripe._account_link_servicer%   stripe._account_session_servicer&    stripe._apple_pay_domain_servicer'   stripe._application_fee_servicer(   stripe._apps_servicer)   stripe._balance_servicer*    stripe._balance_settings_servicer+   #stripe._balance_transaction_servicer,   stripe._billing_servicer-   stripe._billing_portal_servicer.   stripe._charge_servicer/   stripe._checkout_servicer0   stripe._climate_servicer1   "stripe._confirmation_token_servicer2   stripe._country_spec_servicer3   stripe._coupon_servicer4   stripe._credit_note_servicer5   stripe._customer_servicer6    stripe._customer_session_servicer7   stripe._dispute_servicer8   stripe._entitlements_servicer9   stripe._ephemeral_key_servicer:   stripe._event_servicer;   stripe._exchange_rate_servicer<   stripe._file_servicer=   stripe._file_link_servicer>   %stripe._financial_connections_servicer?   stripe._forwarding_servicer@   stripe._identity_servicerA   stripe._invoice_servicerB   stripe._invoice_item_servicerC   stripe._invoice_payment_servicerD   *stripe._invoice_rendering_template_servicerE   stripe._issuing_servicerF   stripe._mandate_servicerG   &stripe._payment_attempt_record_servicerH   stripe._payment_intent_servicerI   stripe._payment_link_servicerJ   stripe._payment_method_servicerK   ,stripe._payment_method_configuration_servicerL   %stripe._payment_method_domain_servicerM   stripe._payment_record_servicerN   stripe._payout_servicerO   stripe._plan_servicerP   stripe._price_servicerQ   stripe._product_servicerR   stripe._promotion_code_servicerS   stripe._quote_servicerT   stripe._radar_servicerU   stripe._refund_servicerV   stripe._reporting_servicerW   stripe._review_servicerX   stripe._setup_attempt_servicerY   stripe._setup_intent_servicerZ   stripe._shipping_rate_servicer[   stripe._sigma_servicer\   stripe._source_servicer]   stripe._subscription_servicer^   !stripe._subscription_item_servicer_   %stripe._subscription_schedule_servicer`   stripe._tax_servicera   stripe._tax_code_servicerb   stripe._tax_id_servicerc   stripe._tax_rate_servicerd   stripe._terminal_servicere   stripe._test_helpers_servicerf   stripe._token_servicerg   stripe._topup_servicerh   stripe._transfer_serviceri   stripe._treasury_servicerj    stripe._webhook_endpoint_servicerk   stripe.events._event_classesrl   objectrm   r   r   r   r   <module>   s   