
    <@g$                     ~    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	 d dl
mZmZmZ d dlmZmZmZ  G d d	e      Zy
)    )
ListObject)PaymentMethod)RequestOptions)StripeService)sanitize_id)DictListcast)LiteralNotRequired	TypedDictc            	          e Zd Z G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z	 G d de      Z
 G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d d e      Z G d! d"e      Z G d# d$e      Z G d% d&e      Z G d' d(e      Z G d) d*e      Z G d+ d,e      Z G d- d.e      Z G d/ d0e      Z G d1 d2e      Z G d3 d4e      Z G d5 d6e      Z G d7 d8e      Z G d9 d:e      Z  G d; d<e      Z! G d= d>e      Z" G d? d@e      Z# G dA dBe      Z$ G dC dDe      Z% G dE dFe      Z& G dG dHe      Z' G dI dJe      Z( G dK dLe      Z) G dM dNe      Z* G dO dPe      Z+ G dQ dRe      Z, G dS dTe      Z- G dU dVe      Z. G dW dXe      Z/ G dY dZe      Z0 G d[ d\e      Z1 G d] d^e      Z2 G d_ d`e      Z3 G da dbe      Z4 G dc dde      Z5 G de dfe      Z6 G dg dhe      Z7 G di dje      Z8 G dk dle      Z9 G dm dne      Z: G do dpe      Z; G dq dre      Z< G ds dte      Z= G du dve      Z> G dw dxe      Z? G dy dze      Z@ G d{ d|e      ZAi i fd}d~deBdeCeD   fdZEi i fd}d~deBdeCeD   fdZFi i fd}ddeBdeDfdZGi i fd}ddeBdeDfdZHi i fdeId}ddeBdeDfdZJi i fdeId}ddeBdeDfdZKi i fdeId}ddeBdeDfdZLi i fdeId}ddeBdeDfdZMi fdeId}ddeBdeDfdZNi fdeId}ddeBdeDfdZOi i fdeId}ddeBdeDfdZPi i fdeId}ddeBdeDfdZQy)PaymentMethodServicec                   0    e Zd ZU eed<   	 eee      ed<   y)!PaymentMethodService.AttachParamscustomerexpandN)__name__
__module____qualname__str__annotations__r   r	        ]/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/_payment_method_service.pyAttachParamsr      s"    	 DI&&	r   r   c                      e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 eed	      ed
<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ee   ed<   	 ed    ed!<   	 ed"   ed#<   	 eee      ed$<   	 ed%   ed&<   	 ed'   ed(<   	 ed)   ed*<   	 ed+   ed,<   	 ed-   ed.<   	 ed/   ed0<   	 ed1   ed2<   	 ed3   ed4<   	 ed5   ed6<   	 ed7   ed8<   	 eeeef      ed9<   	 ed:   ed;<   	 ed<   ed=<   	 ed>   ed?<   	 ed@   edA<   	 edB   edC<   	 edD   edE<   	 ee   edF<   	 edG   edH<   	 edI   edJ<   	 edK   edL<   	 edM   edN<   	 edO   edP<   	 edQ   edR<   	 edS   edT<   	 edU   edV<   	 edW   edX<   	 edY   edZ<   	 ed[   ed\<   	 eed]      ed^<   	 ed_   ed`<   	 eda   edb<   	 edc   edd<   ye)f!PaymentMethodService.CreateParams*PaymentMethodService.CreateParamsAcssDebit
acss_debit'PaymentMethodService.CreateParamsAffirmaffirm1PaymentMethodService.CreateParamsAfterpayClearpayafterpay_clearpay'PaymentMethodService.CreateParamsAlipayalipayalwayslimitedunspecifiedallow_redisplay%PaymentMethodService.CreateParamsAlmaalma*PaymentMethodService.CreateParamsAmazonPay
amazon_pay,PaymentMethodService.CreateParamsAuBecsDebitau_becs_debit*PaymentMethodService.CreateParamsBacsDebit
bacs_debit+PaymentMethodService.CreateParamsBancontact
bancontact/PaymentMethodService.CreateParamsBillingDetailsbilling_details%PaymentMethodService.CreateParamsBlikblik'PaymentMethodService.CreateParamsBoletoboleto%PaymentMethodService.CreateParamsCardcard(PaymentMethodService.CreateParamsCashappcashappr   0PaymentMethodService.CreateParamsCustomerBalancecustomer_balance$PaymentMethodService.CreateParamsEpsepsr   $PaymentMethodService.CreateParamsFpxfpx(PaymentMethodService.CreateParamsGiropaygiropay(PaymentMethodService.CreateParamsGrabpaygrabpay&PaymentMethodService.CreateParamsIdealideal/PaymentMethodService.CreateParamsInteracPresentinterac_present)PaymentMethodService.CreateParamsKakaoPay	kakao_pay'PaymentMethodService.CreateParamsKlarnaklarna(PaymentMethodService.CreateParamsKonbinikonbini'PaymentMethodService.CreateParamsKrCardkr_card%PaymentMethodService.CreateParamsLinklinkmetadata*PaymentMethodService.CreateParamsMobilepay	mobilepay+PaymentMethodService.CreateParamsMultibanco
multibanco)PaymentMethodService.CreateParamsNaverPay	naver_pay%PaymentMethodService.CreateParamsOxxooxxo$PaymentMethodService.CreateParamsP24p24&PaymentMethodService.CreateParamsPaycopaycopayment_method'PaymentMethodService.CreateParamsPaynowpaynow'PaymentMethodService.CreateParamsPaypalpaypal$PaymentMethodService.CreateParamsPixpix*PaymentMethodService.CreateParamsPromptpay	promptpay-PaymentMethodService.CreateParamsRadarOptionsradar_options+PaymentMethodService.CreateParamsRevolutPayrevolut_pay+PaymentMethodService.CreateParamsSamsungPaysamsung_pay*PaymentMethodService.CreateParamsSepaDebit
sepa_debit'PaymentMethodService.CreateParamsSofortsofort&PaymentMethodService.CreateParamsSwishswish&PaymentMethodService.CreateParamsTwinttwint+r    r"   r$   r&   r-   r/   r1   r3   r5   r9   r;   r=   r?   rA   rC   rE   rG   rI   rK   rO   rQ   rS   rU   rW   rZ   r\   r^   r`   rb   rd   rg   ri   rk   rm   rq   rs   ru   rw   ry   r{   us_bank_account
wechat_payziptype.PaymentMethodService.CreateParamsUsBankAccountr}   *PaymentMethodService.CreateParamsWechatPayr~   $PaymentMethodService.CreateParamsZipr   N)	r   r   r   r   r   r   r   r	   r   r   r   r   CreateParamsr      s    LMM	 EFF	 '?
 	
	 EFF	 %67
 	
	 ABB	   LMM	 #:
 	
	   LMM	   MNN	 %=
 	
	 ABB	 EFF	 ABB	 GHH	 c""	 &>
 	
	 ?@@	 DI&&	 ?@@	 GHH	 GHH	 CDD	 %=
 	
	 JKK	 EFF	 GHH	 FGG	 ABB	 d38n--	 KLL	   MNN	 JKK	 ABB	 ?@@	 CDD	 $C((	 EFF	 EFF	 ?@@	 KLL	 #;
 	
	 !!NOO	 !!NOO	   LMM	 EFF	 CDD	 CDD	 *,.
 .	
^	 %<
 	
	   LMM	 ?@@	r   r   c                   0    e Zd ZU eed<   	 eed<   	 eed<   y)r   account_numberinstitution_numbertransit_numberNr   r   r   r   r   r   r   r   CreateParamsAcssDebitz*PaymentMethodService.CreateParamsAcssDebit'  s'    	  	 	r   r   c                       e Zd Zy)r!   Nr   r   r   r   r   r   CreateParamsAffirmz'PaymentMethodService.CreateParamsAffirm5      r   r   c                       e Zd Zy)r#   Nr   r   r   r   CreateParamsAfterpayClearpayz1PaymentMethodService.CreateParamsAfterpayClearpay8  r   r   r   c                       e Zd Zy)r%   Nr   r   r   r   CreateParamsAlipayz'PaymentMethodService.CreateParamsAlipay;  r   r   r   c                       e Zd Zy)r,   Nr   r   r   r   CreateParamsAlmaz%PaymentMethodService.CreateParamsAlma>  r   r   r   c                       e Zd Zy)r.   Nr   r   r   r   CreateParamsAmazonPayz*PaymentMethodService.CreateParamsAmazonPayA  r   r   r   c                   $    e Zd ZU eed<   	 eed<   y)r0   r   
bsb_numberNr   r   r   r   CreateParamsAuBecsDebitz,PaymentMethodService.CreateParamsAuBecsDebitD  s    	 	r   r   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r2   r   	sort_codeNr   r   r   r   r   r   r   r   r   CreateParamsBacsDebitz*PaymentMethodService.CreateParamsBacsDebitN  s$    #C((	 s##	r   r   c                       e Zd Zy)r4   Nr   r   r   r   CreateParamsBancontactz+PaymentMethodService.CreateParamsBancontactX  r   r   r   c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)r6   zBLiteral['']|PaymentMethodService.CreateParamsBillingDetailsAddressaddressLiteral['']|stremailnamephoneNr   r   r   r   r   r   r   r   CreateParamsBillingDetailsz/PaymentMethodService.CreateParamsBillingDetails[  P    P
 	
	 ,--	 +,,	 ,--	r   r   c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)6PaymentMethodService.CreateParamsBillingDetailsAddresscitycountryline1line2postal_codestateNr   r   r   r   !CreateParamsBillingDetailsAddressr   o  l    #	 S!!	 3	 3	 !%%	 3	r   r   c                       e Zd Zy)r8   Nr   r   r   r   CreateParamsBlikz%PaymentMethodService.CreateParamsBlik  r   r   r   c                       e Zd ZU eed<   y)r:   tax_idNr   r   r   r   CreateParamsBoletoz'PaymentMethodService.CreateParamsBoleto  s    	r   r   c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   y)	r<   cvc	exp_monthexp_year-PaymentMethodService.CreateParamsCardNetworksnetworksnumbertokenN)r   r   r   r   r   r   intr   r   r   CreateParamsCardz%PaymentMethodService.CreateParamsCard  sm    	 s##	 c""	 MNN	 C  	 3	r   r   c                   $    e Zd ZU eed      ed<   y)r   )cartes_bancaires
mastercardvisa	preferredNr   r   r   r   r   r   r   r   r   CreateParamsCardNetworksz-PaymentMethodService.CreateParamsCardNetworks  s    <=
 	
	r   r   c                       e Zd Zy)r>   Nr   r   r   r   CreateParamsCashappz(PaymentMethodService.CreateParamsCashapp  r   r   r   c                       e Zd Zy)r@   Nr   r   r   r   CreateParamsCustomerBalancez0PaymentMethodService.CreateParamsCustomerBalance  r   r   r   c                   $    e Zd ZU eed      ed<   y)rB   )arzte_und_apotheker_bankaustrian_anadi_bank_agbank_austriabankhaus_carl_spangler%bankhaus_schelhammer_und_schattera_agbawag_psk_agbks_bank_agbrull_kallmus_bank_agbtv_vier_lander_bankcapital_bank_grawe_gruppe_agdeutsche_bank_agdolomitenbankeasybank_agerste_bank_und_sparkassen#hypo_alpeadriabank_international_ag'hypo_bank_burgenland_aktiengesellschaft'hypo_noe_lb_fur_niederosterreich_u_wien'hypo_oberosterreich_salzburg_steiermarkhypo_tirol_bank_aghypo_vorarlberg_bank_agmarchfelder_bankoberbank_ag"raiffeisen_bankengruppe_osterreichschoellerbank_agsparda_bank_wienvolksbank_gruppevolkskreditbank_agvr_bank_braunaubankNr   r   r   r   CreateParamsEpsz$PaymentMethodService.CreateParamsEps  s"    #
 	
@	r   r   c                   6    e Zd ZU eed      ed<   	 ed   ed<   y)rD   company
individualaccount_holder_type)
affin_bankagrobankalliance_bankambank
bank_islambank_muamalatbank_of_chinabank_rakyatbsncimbdeutsche_bankhong_leong_bankhsbckfh	maybank2e	maybank2uocbcpb_enterprisepublic_bankrhbstandard_chartereduobr   Nr   r   r   r   CreateParamsFpxz$PaymentMethodService.CreateParamsFpx  s1    (1H)IJJ	 
 	
0	r   r  c                       e Zd Zy)rF   Nr   r   r   r   CreateParamsGiropayz(PaymentMethodService.CreateParamsGiropay   r   r   r	  c                       e Zd Zy)rH   Nr   r   r   r   CreateParamsGrabpayz(PaymentMethodService.CreateParamsGrabpay  r   r   r  c                   $    e Zd ZU eed      ed<   y)rJ   )abn_amroasn_bankbunqhandelsbankeningknabmoneyoun26nnrabobank	regiobankrevolutsns_banktriodos_bankvan_lanschotyoursafer   Nr   r   r   r   CreateParamsIdealz&PaymentMethodService.CreateParamsIdeal  s!    
 	
(	r   r  c                       e Zd Zy)rL   Nr   r   r   r   CreateParamsInteracPresentz/PaymentMethodService.CreateParamsInteracPresent  r   r   r  c                       e Zd Zy)rN   Nr   r   r   r   CreateParamsKakaoPayz)PaymentMethodService.CreateParamsKakaoPay"  r   r   r!  c                       e Zd ZU ed   ed<   y)rP   *PaymentMethodService.CreateParamsKlarnaDobdobNr   r   r   r   CreateParamsKlarnaz'PaymentMethodService.CreateParamsKlarna%  s    EFF	r   r%  c                   0    e Zd ZU eed<   	 eed<   	 eed<   y)r#  daymonthyearN)r   r   r   r   r   r   r   r   CreateParamsKlarnaDobz*PaymentMethodService.CreateParamsKlarnaDob+  s$    	 
	 		r   r*  c                       e Zd Zy)rR   Nr   r   r   r   CreateParamsKonbiniz(PaymentMethodService.CreateParamsKonbini9  r   r   r,  c                       e Zd Zy)rT   Nr   r   r   r   CreateParamsKrCardz'PaymentMethodService.CreateParamsKrCard<  r   r   r.  c                       e Zd Zy)rV   Nr   r   r   r   CreateParamsLinkz%PaymentMethodService.CreateParamsLink?  r   r   r0  c                       e Zd Zy)rY   Nr   r   r   r   CreateParamsMobilepayz*PaymentMethodService.CreateParamsMobilepayB  r   r   r2  c                       e Zd Zy)r[   Nr   r   r   r   CreateParamsMultibancoz+PaymentMethodService.CreateParamsMultibancoE  r   r   r4  c                   $    e Zd ZU eed      ed<   y)r]   r=   pointsfundingNr   r   r   r   CreateParamsNaverPayz)PaymentMethodService.CreateParamsNaverPayH      W%5677	r   r9  c                       e Zd Zy)r_   Nr   r   r   r   CreateParamsOxxoz%PaymentMethodService.CreateParamsOxxoN  r   r   r<  c                   $    e Zd ZU eed      ed<   y)ra   )
alior_bankbank_millenniumbank_nowy_bfg_sabank_pekao_sabanki_spbdzielczer9   bnp_paribasbozciti_handlowycredit_agricole
envelobanketransfer_pocztowy24
getin_bankideabankr  inteligombank_mtransfernest_przelew	noble_paypbac_z_ipko	plus_banksantander_przelew24tmobile_usbugi_bankowetoyota_bankvelobankvolkswagen_bankr   Nr   r   r   r   CreateParamsP24z$PaymentMethodService.CreateParamsP24Q  s!    #
 	
<	r   rV  c                       e Zd Zy)rc   Nr   r   r   r   CreateParamsPaycoz&PaymentMethodService.CreateParamsPaycot  r   r   rX  c                       e Zd Zy)rf   Nr   r   r   r   CreateParamsPaynowz'PaymentMethodService.CreateParamsPaynoww  r   r   rZ  c                       e Zd Zy)rh   Nr   r   r   r   CreateParamsPaypalz'PaymentMethodService.CreateParamsPaypalz  r   r   r\  c                       e Zd Zy)rj   Nr   r   r   r   CreateParamsPixz$PaymentMethodService.CreateParamsPix}  r   r   r^  c                       e Zd Zy)rl   Nr   r   r   r   CreateParamsPromptpayz*PaymentMethodService.CreateParamsPromptpay  r   r   r`  c                       e Zd ZU ee   ed<   y)rn   sessionNr   r   r   r   CreateParamsRadarOptionsz-PaymentMethodService.CreateParamsRadarOptions  s    S!!	r   rc  c                       e Zd Zy)rp   Nr   r   r   r   CreateParamsRevolutPayz+PaymentMethodService.CreateParamsRevolutPay  r   r   re  c                       e Zd Zy)rr   Nr   r   r   r   CreateParamsSamsungPayz+PaymentMethodService.CreateParamsSamsungPay  r   r   rg  c                       e Zd ZU eed<   y)rt   ibanNr   r   r   r   CreateParamsSepaDebitz*PaymentMethodService.CreateParamsSepaDebit  s    		r   rj  c                       e Zd ZU ed   ed<   y)rv   )ATBEDEESITNLr   N)r   r   r   r   r   r   r   r   CreateParamsSofortz'PaymentMethodService.CreateParamsSofort  s    ;<<	r   rr  c                       e Zd Zy)rx   Nr   r   r   r   CreateParamsSwishz&PaymentMethodService.CreateParamsSwish  r   r   rt  c                       e Zd Zy)rz   Nr   r   r   r   CreateParamsTwintz&PaymentMethodService.CreateParamsTwint  r   r   rv  c                   r    e Zd ZU eed      ed<   	 ee   ed<   	 eed      ed<   	 ee   ed<   	 ee   ed<   y)	r   r   r   r   checkingsavingsaccount_typefinancial_connections_accountrouting_numberN)r   r   r   r   r   r   r   r   r   r   CreateParamsUsBankAccountz.PaymentMethodService.CreateParamsUsBankAccount  sf    (1H)IJJ	 $C((	 "'*?"@AA	 (33'77	 $C((	r   r~  c                       e Zd Zy)r   Nr   r   r   r   CreateParamsWechatPayz*PaymentMethodService.CreateParamsWechatPay  r   r   r  c                       e Zd Zy)r   Nr   r   r   r   CreateParamsZipz$PaymentMethodService.CreateParamsZip  r   r   r  c                   $    e Zd ZU eee      ed<   y)!PaymentMethodService.DetachParamsr   Nr   r   r   r   r	   r   r   r   r   r   DetachParamsr        DI&&	r   r  c                       e Zd ZU ee   ed<   	 ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   	 eed      ed<   y)	PaymentMethodService.ListParamsr   ending_beforer   limitstarting_afterr|   r   N)	r   r   r   r   r   r   r	   r   r   r   r   r   
ListParamsr    s    c""	 #3''	 DI&&	 3	 $C((	 *,.
 .	
^	r   r  c                   $    e Zd ZU eee      ed<   y)#PaymentMethodService.RetrieveParamsr   Nr  r   r   r   RetrieveParamsr    r  r   r  c                       e Zd ZU eed      ed<   	 ed   ed<   	 ed   ed<   	 eee      ed<   	 ed   ed	<   	 ed
   ed<   	 ed   ed<   	 ed   ed<   y)!PaymentMethodService.UpdateParamsr'   r+   /PaymentMethodService.UpdateParamsBillingDetailsr7   %PaymentMethodService.UpdateParamsCardr=   r   %PaymentMethodService.UpdateParamsLinkrW   zLiteral['']|Dict[str, str]rX   )PaymentMethodService.UpdateParamsNaverPayr^   .PaymentMethodService.UpdateParamsUsBankAccountr}   N)r   r   r   r   r   r   r	   r   r   r   r   UpdateParamsr    s    $67
 	
	 %=
 	
	 ABB	 DI&&	 ABB	 :;;	 JKK	 %<
 	
	r   r  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)r  zBLiteral['']|PaymentMethodService.UpdateParamsBillingDetailsAddressr   r   r   r   r   Nr   r   r   r   UpdateParamsBillingDetailsz/PaymentMethodService.UpdateParamsBillingDetails9  r   r   r  c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)6PaymentMethodService.UpdateParamsBillingDetailsAddressr   r   r   r   r   r   Nr   r   r   r   !UpdateParamsBillingDetailsAddressr  M  r   r   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ed   ed<   y)r  r   r   -PaymentMethodService.UpdateParamsCardNetworksr   N)r   r   r   r   r   r   r   r   r   UpdateParamsCardz%PaymentMethodService.UpdateParamsCardg  s7    s##	 c""	 MNN	r   r  c                       e Zd ZU ed   ed<   y)r  z=Literal['']|Literal['cartes_bancaires', 'mastercard', 'visa']r   Nr   r   r   r   UpdateParamsCardNetworksz-PaymentMethodService.UpdateParamsCardNetworksu  s    K
 	
	r   r  c                       e Zd Zy)r  Nr   r   r   r   UpdateParamsLinkz%PaymentMethodService.UpdateParamsLink}  r   r   r  c                   $    e Zd ZU eed      ed<   y)r  r6  r8  Nr   r   r   r   UpdateParamsNaverPayz)PaymentMethodService.UpdateParamsNaverPay  r:  r   r  c                   <    e Zd ZU eed      ed<   	 eed      ed<   y)r  r   r   rx  r{  Nr   r   r   r   UpdateParamsUsBankAccountz.PaymentMethodService.UpdateParamsUsBankAccount  s0    (1H)IJJ	 "'*?"@AA	r   r  paramsr  optionsreturnc           
      X    t        t        t           | j                  ddd||            S )  
        Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
        get/v1/payment_methodsapibase_addressr  r  )r
   r   r   _requestselfr  r  s      r   listzPaymentMethodService.list  s9     }%MM%"  	
 		
r   c           
      t   K   t        t        t           | j                  ddd||       d{         S 7 w)r  r  r  r  r  N)r
   r   r   _request_asyncr  s      r   
list_asynczPaymentMethodService.list_async  sI      }%%%%" &  	
 		
s   +86
	8r   c           
      J    t        t        | j                  ddd||            S )  
        Creates a PaymentMethod object. Read the [Stripe.js reference](https://stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.

        Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
        postr  r  r  )r
   r   r  r  s      r   createzPaymentMethodService.create  s4     MM%"  	
 		
r   c           
      f   K   t        t        | j                  ddd||       d{         S 7 w)r  r  r  r  r  N)r
   r   r  r  s      r   create_asyncz!PaymentMethodService.create_async  sD      %%%" &  	
 		
s   $1/
	1re   r  c                 |    t        t        | j                  ddj                  t	        |            d||            S )
        Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer)
        r  $/v1/payment_methods/{payment_method}re   r  r  r
   r   r  formatr   r  re   r  r  s       r   retrievezPaymentMethodService.retrieve  sN     MM6==#.~#> >  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr
   r   r  r  r   r  s       r   retrieve_asyncz#PaymentMethodService.retrieve_async  s^      %%6==#.~#> >  # &  
 	
   =A
A
 	A
r  c                 |    t        t        | j                  ddj                  t	        |            d||            S )l
        Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.
        r  r  r  r  r  r  r  s       r   updatezPaymentMethodService.update  sN     MM6==#.~#> >  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   update_asyncz!PaymentMethodService.update_async"  s^      %%6==#.~#> >  # &  
 	
r  r   c                 |    t        t        | j                  ddj                  t	        |            d||            S )  
        Attaches a PaymentMethod object to a Customer.

        To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
        or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
        These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
        endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
        future use, which makes later declines and payment friction more likely.
        See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
        future payments.

        To use this PaymentMethod as the default for invoice or subscription payments,
        set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
        on the Customer to the PaymentMethod's ID.
        r  +/v1/payment_methods/{payment_method}/attachr  r  r  r  r  s       r   attachzPaymentMethodService.attach8  sO    * MM=DD#.~#> E  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   attach_asyncz!PaymentMethodService.attach_asyncZ  s_     * %%=DD#.~#> E  # &  
 	
r  r  c                 |    t        t        | j                  ddj                  t	        |            d||            S )
        Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.
        r  +/v1/payment_methods/{payment_method}/detachr  r  r  r  r  s       r   detachzPaymentMethodService.detach|  sO     MM=DD#.~#> E  #  
 	
r   c                    K   t        t        | j                  ddj                  t	        |            d||       d{         S 7 w)r  r  r  r  r  r  Nr  r  s       r   detach_asyncz!PaymentMethodService.detach_async  s_      %%=DD#.~#> E  # &  
 	
r  N)Rr   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.  r0  r2  r4  r9  r<  rV  rX  rZ  r\  r^  r`  rc  re  rg  rj  rr  rt  rv  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      s6   y Ny N`	 Y y Y 9 	 ) 	  Y (I 49 Y 9 49 i i #) #J) Bi i I 2Y y Y 	 i Y 9 	  y 9 !) !FI Y Y ) 	 9   	 Y I I I ,	 ) y FY FP &y &PY (I 49 9 9 y I  57"$
1
  
 
M	"	
* 57"$
1
  
 
M	"	
* 79"$
3
  
 
	
. 79"$
3
  
 
	
0 9;"$	

 6
  	

 

2 9;"$	

 6
  	

 

2 79"$	

 4
  	

 

2 79"$	

 4
  	

 

4 #%	 
 
 4 
  	 

 
 
L #%	 
 
 4 
  	 

 
 
J 79"$	

 4
  	

 

2 79"$	

 4
  	

 

r   r   N)stripe._list_objectr   stripe._payment_methodr   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   typingr   r	   r
   typing_extensionsr   r   r   r   r   r   r   <module>r     s0    + 0 2 0 $ # # = =Z
= Z
r   