
    kh?                        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 d dlmZmZ d d	lmZ d d
l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!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l0m1Z1 e1rd dl2m3Z3 d dl4m5Z5 d dl6m7Z7 d 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 d/lhmiZi d d0ljmkZk d d1llmmZm d d2lnmoZo d d3lpmqZq d d4lrmsZs d d5ltmuZu d d6lvmwZw d d7lxmyZy d d8lzm{Z{ d d9l|m}Z} d d:l~mZ d d;lmZ 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 e1rd d^lmZ  G d_ d`eȫ      Zy)a    N)OrderedDict)DEFAULT_API_BASEDEFAULT_CONNECT_API_BASEDEFAULT_UPLOAD_API_BASEDEFAULT_METER_EVENTS_API_BASE)ApiMode)AuthenticationError)_APIRequestor)extract_options_from_dict)RequestorOptionsBaseAddresses)_ClientOptions)
HTTPClient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)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)PaymentIntentService)PaymentLinkService)PaymentMethodService)!PaymentMethodConfigurationService)PaymentMethodDomainService)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                   b   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e   fdZ	e
j                  fdeeeef   dedededdf
dZe
j                  fdeeef   dedededef
dZdedefdZdedefdZ	 ddeeeeef   f   deeeef      dedefd Ze ed!      defd"              Ze ed#      defd$              Ze ed%      de fd&              Z!e ed'      de"fd(              Z#e ed)      de$fd*              Z%e ed+      de&fd,              Z'e ed-      de(fd.              Z)e ed/      de*fd0              Z+e ed1      de,fd2              Z-e ed3      de.fd4              Z/e ed5      de0fd6              Z1e ed7      de2fd8              Z3e ed9      de4fd:              Z5e ed;      de6fd<              Z7e ed=      de8fd>              Z9e ed?      de:fd@              Z;e edA      de<fdB              Z=e edC      de>fdD              Z?e edE      de@fdF              ZAe edG      deBfdH              ZCe edI      deDfdJ              ZEe edK      deFfdL              ZGe edM      deHfdN              ZIe edO      deJfdP              ZKe edQ      deLfdR              ZMe edS      deNfdT              ZOe edU      dePfdV              ZQe edW      deRfdX              ZSe edY      deTfdZ              ZUe ed[      deVfd\              ZWe ed]      deXfd^              ZYe ed_      deZfd`              Z[e eda      de\fdb              Z]e edc      de^fdd              Z_e ede      de`fdf              Zae edg      debfdh              Zce edi      dedfdj              Zee edk      deffdl              Zge edm      dehfdn              Zie edo      dejfdp              Zke edq      delfdr              Zme eds      denfdt              Zoe edu      depfdv              Zqe edw      derfdx              Zse edy      detfdz              Zue ed{      devfd|              Zwe ed}      dexfd~              Zye ed      dezfd              Z{e ed      de|fd              Z}e ed      de~fd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Ze ed      defd              Zy)StripeClientNT)	stripe_accountstripe_contextstripe_versionbase_addresses	client_idverify_ssl_certsproxymax_network_retrieshttp_clientapi_keyro   rp   z#Optional[Union[str, StripeContext]]rq   rr   rs   rt   ru   rv   rw   c       	            |t        d      |
r|s|durt        d      t        t        t        t
        d|xs i }t        ||||xs t        j                  ||	      }|
t        t        ||      ||      }
t        ||
      | _        t        |||	      | _        t        | j                  | j                        | _        t#        | j                        | _        t'        | j                        | _        y )
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)rx   ro   rp   rq   rr   rv   )ru   rt   )async_fallback_clientru   rt   )optionsclient)rs   ru   rt   )r	   
ValueErrorr   r   r   r   r   r   CURRENTr   r   r
   
_requestorr   _optionsr#   oauthr$   v1r%   v2)selfrx   ro   rp   rq   rr   rs   rt   ru   rv   rw   requestor_optionss               U/var/www/api/v1/venv_fitandmore/lib/python3.12/site-packages/stripe/_stripe_client.py__init__zStripeClient.__init__}   s    ?%@  E%5T%A0  $/,9	

 #
 -)))@[-@-@) 3
 1&D2B' !1K (%

 '-
 "$//4==A
 T__-T__-    raw
sig_headersecret	tolerancereturnrl   c                    t        |d      r,t        t        t        t        f   |      j                  d      nt        t        |      }t        j                  ||||       t        dt        j                  ||             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   payloads         r   parse_event_notificationz%StripeClient.parse_event_notification   ss     sH% ui'(#.55g>c3 	 	&&w
FIN%''6
 	
r   r   c                    t        |d      rt        t        |      j                  d      }t	        j
                  ||||       t        j                  |t              }t        j                  || j                  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events          r   construct_eventzStripeClient.construct_event   sm     7H%5'*11':G&&w
FINzz'[A%%oo
 r   method_url_c           	      &   |j                         }t        |      \  }}t        |      }|j                  dd      }|j                  ddg      }| j                  j                  |||||||      \  }}	}
| j                  j                  ||	|
|      S )Nbaserz   usageraw_requestparamsr   base_addressr   r   )copyr   r   popr   request_raw_interpret_response)r   r   r   r   r   r   r   r   rbodyrcoderheaderss              r   r   zStripeClient.raw_request   s    3F;%zz&%0 

7]O4!%!<!<% "= "
uh 225(H
 	
r   c           	        K   |j                         }t        |      \  }}t        |      }|j                  dd      }| j                  j                  ||||||dg       d {   \  }}}	| j                  j                  |||	|      S 7 &w)Nr   rz   r   r   )r   r   r   r   r   request_raw_asyncr   )
r   r   r   r   r   r   r   r   r   r   s
             r   raw_request_asynczStripeClient.raw_request_async  s     3F;%zz&%0'+'H'H% / (I (
 "
uh 225(H
 	
"
s   A"B$B%'Brespr   r   c                4    t        ||| j                  |      S )zV
        Used to translate the result of a `raw_request` into a StripeObject.
        )r   r   r   r   )r   r   )r   r   r   r   s       r   deserializezStripeClient.deserialize#  s!     )oo	
 	
r   a^  
        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.
        c                 .    | j                   j                  S N)r   accountsr   s    r   r   zStripeClient.accounts5       wwr   am  
        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.
        c                 .    | j                   j                  S r   )r   account_linksr   s    r   r   zStripeClient.account_links@       ww$$$r   av  
        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.
        c                 .    | j                   j                  S r   )r   account_sessionsr   s    r   r   zStripeClient.account_sessionsK       ww'''r   ay  
        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.
        c                 .    | j                   j                  S r   )r   apple_pay_domainsr   s    r   r   zStripeClient.apple_pay_domainsV       ww(((r   av  
        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.
        c                 .    | j                   j                  S r   )r   application_feesr   s    r   r   zStripeClient.application_feesa  r   r   aR  
        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.
        c                 .    | j                   j                  S r   )r   appsr   s    r   r   zStripeClient.appsl  s     ww||r   a[  
        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.
        c                 .    | j                   j                  S r   )r   balancer   s    r   r   zStripeClient.balancew       wwr   av  
        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.
        c                 .    | j                   j                  S r   )r   balance_settingsr   s    r   r   zStripeClient.balance_settings  r   r   a  
        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.
        c                 .    | j                   j                  S r   )r   balance_transactionsr   s    r   r   z!StripeClient.balance_transactions  s     ww+++r   a[  
        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.
        c                 .    | j                   j                  S r   )r   billingr   s    r   r   zStripeClient.billing  r   r   ap  
        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.
        c                 .    | j                   j                  S r   )r   billing_portalr   s    r   r   zStripeClient.billing_portal       ww%%%r   a[  
        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.
        c                 .    | j                   j                  S r   )r   chargesr   s    r   r   zStripeClient.charges  r   r   a^  
        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.
        c                 .    | j                   j                  S r   )r   checkoutr   s    r   r   zStripeClient.checkout  r   r   a[  
        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.
        c                 .    | j                   j                  S r   )r   climater   s    r   r   zStripeClient.climate  r   r   a  
        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.
        c                 .    | j                   j                  S r   )r   confirmation_tokensr   s    r   r   z StripeClient.confirmation_tokens  s     ww***r   am  
        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.
        c                 .    | j                   j                  S r   )r   country_specsr   s    r   r   zStripeClient.country_specs  r   r   a[  
        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.
        c                 .    | j                   j                  S r   )r   couponsr   s    r   r   zStripeClient.coupons  r   r   aj  
        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.
        c                 .    | j                   j                  S r   )r   credit_notesr   s    r   r   zStripeClient.credit_notes       ww###r   aa  
        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.
        c                 .    | j                   j                  S r   )r   	customersr   s    r   r   zStripeClient.customers       ww   r   ay  
        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.
        c                 .    | j                   j                  S r   )r   customer_sessionsr   s    r   r   zStripeClient.customer_sessions  r   r   a^  
        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.
        c                 .    | j                   j                  S r   )r   disputesr   s    r   r   zStripeClient.disputes  r   r   aj  
        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.
        c                 .    | j                   j                  S r   )r   entitlementsr   s    r   r   zStripeClient.entitlements  r   r   ap  
        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.
        c                 .    | j                   j                  S r   )r   ephemeral_keysr   s    r   r   zStripeClient.ephemeral_keys'  r   r   aX  
        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.
        c                 .    | j                   j                  S r   )r   eventsr   s    r   r   zStripeClient.events2       ww~~r   ap  
        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.
        c                 .    | j                   j                  S r   )r   exchange_ratesr   s    r   r   zStripeClient.exchange_rates=  r   r   aU  
        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.
        c                 .    | j                   j                  S r   )r   r|   r   s    r   r|   zStripeClient.filesH       ww}}r   ad  
        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.
        c                 .    | j                   j                  S r   )r   
file_linksr   s    r   r   zStripeClient.file_linksS       ww!!!r   a  
        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.
        c                 .    | j                   j                  S r   )r   financial_connectionsr   s    r   r  z"StripeClient.financial_connections^  s     ww,,,r   ad  
        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.
        c                 .    | j                   j                  S r   )r   
forwardingr   s    r   r  zStripeClient.forwardingi  r   r   a^  
        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.
        c                 .    | j                   j                  S r   )r   identityr   s    r   r  zStripeClient.identityt  r   r   a^  
        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.
        c                 .    | j                   j                  S r   )r   invoicesr   s    r   r  zStripeClient.invoices  r   r   am  
        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.
        c                 .    | j                   j                  S r   )r   invoice_itemsr   s    r   r
  zStripeClient.invoice_items  r   r   av  
        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.
        c                 .    | j                   j                  S r   )r   invoice_paymentsr   s    r   r  zStripeClient.invoice_payments  r   r   a  
        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.
        c                 .    | j                   j                  S r   )r   invoice_rendering_templatesr   s    r   r  z(StripeClient.invoice_rendering_templates  s     ww222r   a[  
        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.
        c                 .    | j                   j                  S r   )r   issuingr   s    r   r  zStripeClient.issuing  r   r   a^  
        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.
        c                 .    | j                   j                  S r   )r   mandatesr   s    r   r  zStripeClient.mandates  r   r   as  
        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.
        c                 .    | j                   j                  S r   )r   payment_intentsr   s    r   r  zStripeClient.payment_intents       ww&&&r   am  
        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.
        c                 .    | j                   j                  S r   )r   payment_linksr   s    r   r  zStripeClient.payment_links  r   r   as  
        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.
        c                 .    | j                   j                  S r   )r   payment_methodsr   s    r   r  zStripeClient.payment_methods  r  r   a  
        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.
        c                 .    | j                   j                  S r   )r   payment_method_configurationsr   s    r   r  z*StripeClient.payment_method_configurations  s     ww444r   a  
        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.
        c                 .    | j                   j                  S r   )r   payment_method_domainsr   s    r   r  z#StripeClient.payment_method_domains       ww---r   a[  
        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.
        c                 .    | j                   j                  S r   )r   payoutsr   s    r   r   zStripeClient.payouts  r   r   aU  
        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.
        c                 .    | j                   j                  S r   )r   plansr   s    r   r"  zStripeClient.plans  r   r   aX  
        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.
        c                 .    | j                   j                  S r   )r   pricesr   s    r   r$  zStripeClient.prices  r   r   a^  
        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.
        c                 .    | j                   j                  S r   )r   productsr   s    r   r&  zStripeClient.products  r   r   as  
        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.
        c                 .    | j                   j                  S r   )r   promotion_codesr   s    r   r(  zStripeClient.promotion_codes&  r  r   aX  
        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.
        c                 .    | j                   j                  S r   )r   quotesr   s    r   r*  zStripeClient.quotes1  r   r   aU  
        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.
        c                 .    | j                   j                  S r   )r   radarr   s    r   r,  zStripeClient.radar<  r   r   a[  
        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.
        c                 .    | j                   j                  S r   )r   refundsr   s    r   r.  zStripeClient.refundsG  r   r   aa  
        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.
        c                 .    | j                   j                  S r   )r   	reportingr   s    r   r0  zStripeClient.reportingR  r   r   a[  
        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.
        c                 .    | j                   j                  S r   )r   reviewsr   s    r   r2  zStripeClient.reviews]  r   r   ap  
        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.
        c                 .    | j                   j                  S r   )r   setup_attemptsr   s    r   r4  zStripeClient.setup_attemptsh  r   r   am  
        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.
        c                 .    | j                   j                  S r   )r   setup_intentsr   s    r   r6  zStripeClient.setup_intentss  r   r   ap  
        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.
        c                 .    | j                   j                  S r   )r   shipping_ratesr   s    r   r8  zStripeClient.shipping_rates~  r   r   aU  
        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.
        c                 .    | j                   j                  S r   )r   sigmar   s    r   r:  zStripeClient.sigma  r   r   a[  
        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.
        c                 .    | j                   j                  S r   )r   sourcesr   s    r   r<  zStripeClient.sources  r   r   am  
        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.
        c                 .    | j                   j                  S r   )r   subscriptionsr   s    r   r>  zStripeClient.subscriptions  r   r   a|  
        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.
        c                 .    | j                   j                  S r   )r   subscription_itemsr   s    r   r@  zStripeClient.subscription_items  s     ww)))r   a  
        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.
        c                 .    | j                   j                  S r   )r   subscription_schedulesr   s    r   rB  z#StripeClient.subscription_schedules  r  r   aO  
        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.
        c                 .    | j                   j                  S r   )r   taxr   s    r   rD  zStripeClient.tax  s     ww{{r   aa  
        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.
        c                 .    | j                   j                  S r   )r   	tax_codesr   s    r   rF  zStripeClient.tax_codes  r   r   a[  
        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.
        c                 .    | j                   j                  S r   )r   tax_idsr   s    r   rH  zStripeClient.tax_ids  r   r   aa  
        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.
        c                 .    | j                   j                  S r   )r   	tax_ratesr   s    r   rJ  zStripeClient.tax_rates  r   r   a^  
        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.
        c                 .    | j                   j                  S r   )r   terminalr   s    r   rL  zStripeClient.terminal  r   r   aj  
        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.
        c                 .    | j                   j                  S r   )r   test_helpersr   s    r   rN  zStripeClient.test_helpers  r   r   aX  
        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.
        c                 .    | j                   j                  S r   )r   tokensr   s    r   rP  zStripeClient.tokens  r   r   aX  
        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.
        c                 .    | j                   j                  S r   )r   topupsr   s    r   rR  zStripeClient.topups  r   r   aa  
        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.
        c                 .    | j                   j                  S r   )r   	transfersr   s    r   rT  zStripeClient.transfers  r   r   a^  
        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.
        c                 .    | j                   j                  S r   )r   treasuryr   s    r   rV  zStripeClient.treasury#  r   r   ay  
        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.
        c                 .    | j                   j                  S r   )r   webhook_endpointsr   s    r   rX  zStripeClient.webhook_endpoints.  r   r   r   )__name__
__module____qualname__r   r   r   boolintr   r   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   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   r0  rX   r2  rY   r4  rZ   r6  r[   r8  r\   r:  r]   r<  r^   r>  r_   r@  r`   rB  ra   rD  rb   rF  rc   rH  rd   rJ  re   rL  rf   rN  rg   rP  rh   rR  ri   rT  rj   rV  rk   rX   r   r   rn   rn   |   s*   
 )-@D(,26#'!%#-1,0J.J. !	J.
 >J. !J. !/J. C=J. J. }J. &c]J. j)J.d !22
5#y()
 
 	

 
 
#
< !22ucz"  	
  
*
3 
c 
.
s 
# 
. ,0
NDcN23
 c3h(

 
 

$ 	 .     	%1 % % 	("7 ( ( 	)#8 ) ) 	("7 ( ( 	k   	   	("8 ( ( 	,&? , , 	   	& 4 & & 	   	 /     	   	+%= + + 	%1 % % 	   	$/ $ $ 	!? ! ! 	)#9 ) ) 	 .     	$1 $ $ 	& 3 & & 	   	& 3 & & 	{   	"O " " 	-'B - - 	"- " " 	 /     	 .     	%1 % % 	("7 ( ( 	3-L 3 3 	   	 .     	'!5 ' ' 	%1 % % 	'!5 ' ' 	5	*5 5
 	.(B . . 	   	{   	   	 .     	'!5 ' ' 	   	|   	   	!+ ! ! 	   	& 3 & & 	%1 % % 	& 3 & & 	|   	   	%2 % % 	*$; * * 	.(C . . 	Z   	!> ! ! 	   	!> ! ! 	 /     	$0 $ $ 	   	   	!? ! ! 	 /     	)#9 ) )r   rn   )r   collectionsr   striper   r   r   r   stripe._api_moder   stripe._errorr	   stripe._api_requestorr
   stripe._request_optionsr   stripe._requestor_optionsr   r   stripe._client_optionsr   stripe._http_clientr   r   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"   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_servicer0   stripe._charge_servicer1   stripe._checkout_servicer2   stripe._climate_servicer3   "stripe._confirmation_token_servicer4   stripe._country_spec_servicer5   stripe._coupon_servicer6   stripe._credit_note_servicer7   stripe._customer_servicer8    stripe._customer_session_servicer9   stripe._dispute_servicer:   stripe._entitlements_servicer;   stripe._ephemeral_key_servicer<   stripe._event_servicer=   stripe._exchange_rate_servicer>   stripe._file_servicer?   stripe._file_link_servicer@   %stripe._financial_connections_servicerA   stripe._forwarding_servicerB   stripe._identity_servicerC   stripe._invoice_servicerD   stripe._invoice_item_servicerE   stripe._invoice_payment_servicerF   *stripe._invoice_rendering_template_servicerG   stripe._issuing_servicerH   stripe._mandate_servicerI   stripe._payment_intent_servicerJ   stripe._payment_link_servicerK   stripe._payment_method_servicerL   ,stripe._payment_method_configuration_servicerM   %stripe._payment_method_domain_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   objectrn   r`  r   r   <module>r     s\    #  % - / = E 1 
 , . 2 L L 5  3 3 3 +4 / + * 2 ; A B A , 2 C I 2 ? 0 4 2 G ; 0 9 4 C 2 < = . = , 5 M 8 4 2 ; A 3 2 ? ; ? M 0 , . 2 ? . . 0 6 0 = ; = . 0 < E M * 3 / 3 4 ; . . 4 4 C D{)6 {)r   