
    h                       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 d dlmZ d dlmZmZ d d	lmZmZmZmZmZmZ d d
lmZmZmZmZmZ er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'  G d ded   ed   ed         Z(y)    )CreateableAPIResource)ExpandableField)
ListObject)ListableAPIResource)RequestOptions)StripeObject)UpdateableAPIResource)class_method_variantsanitize_id)ClassVarDictListOptionalcastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)Account)Application)LineItem)ShippingRate)TaxIdc                   4   e Zd ZU dZdZeed      ed<    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 d0 d1e      Z! G d2 d3e      Z" G d4 d5e      Z# G d6 d7e      Z$ G d8 d9e      Z% G d: d;e      Z& G d< d=e      Z' G d> d?e      Z( G d@ dAe      Z) G dB dCe      Z* G dD dEe      Z+ G dF dGe      Z, G dH dIe      Z- G dJ dKe      Z. G dL dMe      Z/ G dN dOe      Z0 G dP dQe      Z1 G dR dSe      Z2 G dT dUe      Z3 G dV dWe      Z4 G dX dYe      Z5 G dZ d[e      Z6 G d\ d]e      Z7 G d^ d_e      Z8 G d` dae      Z9 G db dce      Z: G dd dee      Z; G df dge      Z< G dh die      Z= G dj dke      Z> G dl dme      Z? G dn doe      Z@ G dp dqe      ZA G dr dse      ZB G dt due      ZC G dv dwe      ZD G dx dye      ZE G dz d{e      ZF G d| d}e      ZG G d~ de      ZH G d de      ZI G d de      ZJ G d de      ZK G d de      ZL G d de      ZM G d de      ZN G d de      ZO G d de      ZP G d de      ZQ G d de      ZR G d de      ZS G d de      ZT G d de      ZU G d de      ZV G d de      ZW G d de      ZX G d de      ZY G d de      ZZ G d de      Z[ G d de      Z\ G d de      Z] G d de      Z^ G d de      Z_ G d de      Z` G d de      Za G d de      Zb G d de      Zc G d de      Zd G d de      Ze G d de      Zf G d de      Zg G d de      Zheied<   	 e	ed<   eied<   	 ejekd      ed<   	 ejel   ed<   	 ejem   ed<   	 e
ed<   ed   ed<   	 eje   ed<   	 ened<   	 eoe   ed<   	 eed<   ed   ed<   	 ened<   	 ejen   ed<   	 eje   ed<   	 ejepd      ed<   	 eied<   	 eqenenf   ed<   	 ed   ed<   	 ejekd      ed<   	 ejeoe      ed<   	 eje   ed<   	 ed   ed<   	 ejeoed         ed<   	 eed<   eje   ed<   	 eje   ed<   	 eoe   ed<   	 ed   ed<   	 eje   ed<   	 eed<   eje   ed<   	 ened<   	 erdesd   dd fd       Zterdesd   dd fd       Zuerdesd   depd    fd       Zverdesd   depd    fd       Zwerdendesd   depd   fd       Zxeyezdendesd   depd   fd              Z{eydesd   depd   fd       Z{ e|d      desd   depd   fd       Z{erdendesd   depd   fd       Z}eyezdendesd   depd   fd              Z~eydesd   depd   fd       Z~ e|d      desd   depd   fd       Z~erdendesd   dd fd       Zerdendesd   dd fd       Zerdendesd   dd fd        Zerdendesd   dd fd       Ze	e
eeeeeeeeeeeeedZy(  PaymentLinka#  
    A payment link is a shareable URL that will take your customers to a hosted payment page. A payment link can be shared and used multiple times.

    When a customer opens a payment link it will open a new [checkout session](https://stripe.com/docs/api/checkout/sessions) to render the payment page. You can use [checkout session events](https://stripe.com/docs/api/events/types#event_types-checkout.session.completed) to track payments through payment links.

    Related guide: [Payment Links API](https://stripe.com/docs/payment-links)
    payment_linkOBJECT_NAMEc                   v    e Zd ZU  G d de      Z G d de      Zee   ed<   ee   ed<   ed   ed<   	 eedZ	y	)
PaymentLink.AfterCompletionc                       e Zd ZU ee   ed<   y).PaymentLink.AfterCompletion.HostedConfirmationcustom_messageN__name__
__module____qualname__r   str__annotations__     T/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/stripe/_payment_link.pyHostedConfirmationr#   ,   s    $SM)r,   r.   c                       e Zd ZU eed<   y)$PaymentLink.AfterCompletion.RedirecturlNr&   r'   r(   r)   r*   r+   r,   r-   Redirectr0   2   s    Hr,   r3   hosted_confirmationredirectr4   r5   typeN)
r&   r'   r(   r   r.   r3   r   r*   r   _inner_class_typesr+   r,   r-   AfterCompletionr!   +   sT    	 		| 	 &&8998$$788	 $6 
r,   r9   c                   J    e Zd ZU  G d de      Zeed<   	 ee   ed<   	 deiZy)PaymentLink.AutomaticTaxc                   6    e Zd ZU eed      ed<   	 ed   ed<   y)"PaymentLink.AutomaticTax.Liabilityr   accountr>   selfr7   Nr&   r'   r(   r   r   r*   r   r+   r,   r-   	Liabilityr=   D   s*    oi899 +,,r,   rB   enabled	liabilityN)	r&   r'   r(   r   rB   boolr*   r   r8   r+   r,   r-   AutomaticTaxr;   C   s9    	 	 	 I&&	 *95r,   rF   c                   n    e Zd ZU  G d de      Zee   ed<   	 eed      ed<   	 eed      ed<   	 deiZy)	PaymentLink.ConsentCollectionc                       e Zd ZU ed   ed<   y)9PaymentLink.ConsentCollection.PaymentMethodReuseAgreementautohiddenpositionNr&   r'   r(   r   r*   r+   r,   r-   PaymentMethodReuseAgreementrJ   Y   s    .//r,   rP   payment_method_reuse_agreementrL   none
promotionsrS   requiredterms_of_serviceN)	r&   r'   r(   r   rP   r   r*   r   r8   r+   r,   r-   ConsentCollectionrH   X   s`    	, 	 )11L(MM	 W^455	 #7+=#>??	 -.I
r,   rX   c                       e Zd ZU  G d de      Z G d de      Z G d de      Z G d de      Zee   e	d	<   e
e	d
<   	 ee	d<   ee   e	d<   ee	d<   	 ee   e	d<   ed   e	d<   	 eeeedZy)PaymentLink.CustomFieldc                   P    e Zd ZU  G d de      Zee   ed<   	 ee   ed<   	 deiZ	y) PaymentLink.CustomField.Dropdownc                   $    e Zd ZU eed<   	 eed<   y)'PaymentLink.CustomField.Dropdown.OptionlabelvalueNr2   r+   r,   r-   Optionr^   s   s    
 
r,   ra   default_valueoptionsN)
r&   r'   r(   r   ra   r   r)   r*   r   r8   r+   r,   r-   Dropdownr\   r   s=      $C=( &\! #,V!4r,   rd   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)PaymentLink.CustomField.Labelcustomr7   N)r&   r'   r(   r   r)   r*   r   r+   r,   r-   Labelrf      s#    SM! (##r,   rh   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)PaymentLink.CustomField.Numericrb   maximum_lengthminimum_lengthNr&   r'   r(   r   r)   r*   intr+   r,   r-   Numericrj      3    #C=( %SM) %SM)r,   ro   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)PaymentLink.CustomField.Textrb   rk   rl   Nrm   r+   r,   r-   Textrr      rp   r,   rs   dropdownkeyr_   numericoptionaltextrt   rv   rx   r7   )rt   r_   rv   rx   N)r&   r'   r(   r   rd   rh   ro   rs   r   r*   r)   rE   r   r8   r+   r,   r-   CustomFieldrZ   q   s    	5| 	5*	L 		l 		< 	 8$$	 '""	 tn344	 !	
r,   rz   c                       e Zd ZU  G d de      Z G d de      Z G d de      Z G d de      Zee   e	d	<   	 ee   e	d
<   	 ee   e	d<   	 ee   e	d<   	 eeeedZ
y)PaymentLink.CustomTextc                       e Zd ZU eed<   y)"PaymentLink.CustomText.AfterSubmitmessageNr2   r+   r,   r-   AfterSubmitr~          Lr,   r   c                       e Zd ZU eed<   y)&PaymentLink.CustomText.ShippingAddressr   Nr2   r+   r,   r-   ShippingAddressr      r   r,   r   c                       e Zd ZU eed<   y)PaymentLink.CustomText.Submitr   Nr2   r+   r,   r-   Submitr      r   r,   r   c                       e Zd ZU eed<   y)/PaymentLink.CustomText.TermsOfServiceAcceptancer   Nr2   r+   r,   r-   TermsOfServiceAcceptancer      r   r,   r   after_submitshipping_addresssubmitterms_of_service_acceptance)r   r   r   r   N)r&   r'   r(   r   r   r   r   r   r   r*   r8   r+   r,   r-   
CustomTextr|      s    	, 		l 		\ 		| 	 {++	 #?33	   	 &..F%GG	 ( /+C	
r,   r   c                   J    e Zd ZU  G d de      Zeed<   	 ee   ed<   	 deiZy)PaymentLink.InvoiceCreationc                       e Zd ZU  G d de      Z G d de      Z G d de      Zeee	d         e
d<   	 eee      e
d	<   	 ee   e
d
<   	 ee   e
d<   	 ee   e
d<   	 eeeef      e
d<   	 ee   e
d<   	 eeedZy)'PaymentLink.InvoiceCreation.InvoiceDatac                   $    e Zd ZU eed<   	 eed<   y)3PaymentLink.InvoiceCreation.InvoiceData.CustomFieldnamer`   Nr2   r+   r,   r-   rz   r      s    	 
r,   rz   c                   6    e Zd ZU eed      ed<   	 ed   ed<   y).PaymentLink.InvoiceCreation.InvoiceData.Issuerr   r>   r?   r7   NrA   r+   r,   r-   Issuerr      *    !/)"<== /00r,   r   c                       e Zd ZU ee   ed<   y)8PaymentLink.InvoiceCreation.InvoiceData.RenderingOptionsamount_tax_displayNr%   r+   r,   r-   RenderingOptionsr   
  s    $,SM1r,   r   r   account_tax_idscustom_fieldsdescriptionfooterissuermetadatarendering_options)r   r   r   N)r&   r'   r(   r   rz   r   r   r   r   r   r*   r)   r   r8   r+   r,   r-   InvoiceDatar      s    l  <  &d?7+C&DEE $D$566 "#& SM! V$$ tCH~..  ((899 "- %5"r,   r   rC   invoice_dataN)	r&   r'   r(   r   r   rE   r*   r   r8   r+   r,   r-   InvoiceCreationr      s:    ;	, ;	z 	 {++	 -k:r,   r   c                   P    e Zd ZU  G d de      Zee   ed<   eed<   eed<   deiZ	y)PaymentLink.OptionalItemc                   <    e Zd ZU eed<   	 ee   ed<   	 ee   ed<   y)+PaymentLink.OptionalItem.AdjustableQuantityrC   maximumminimumN)r&   r'   r(   rE   r*   r   rn   r+   r,   r-   AdjustableQuantityr   =  s.    M c]" c]"r,   r   adjustable_quantitypricequantityN)
r&   r'   r(   r   r   r   r*   r)   rn   r8   r+   r,   r-   OptionalItemr   <  s2    	 	 &&899
35GHr,   r   c                       e Zd ZU eed      ed<   	 ee   ed<   	 eeef   ed<   	 eed      ed<   	 ee   ed<   	 ee   ed<   	 ee   ed	<   y
)PaymentLink.PaymentIntentData	automaticautomatic_asyncmanualcapture_methodr   r   off_session
on_sessionsetup_future_usagestatement_descriptorstatement_descriptor_suffixtransfer_groupN)r&   r'   r(   r   r   r*   r)   r   r+   r,   r-   PaymentIntentDatar   P  s     <=
 	
	 c]"	 sCx. 	 %W-H%IJJ	 'sm+	 &.c]2	 !%	r,   r   c                       e Zd ZU eed<   y)!PaymentLink.PhoneNumberCollectionrC   Nr&   r'   r(   rE   r*   r+   r,   r-   PhoneNumberCollectionr   p      	r,   r   c                   6    e Zd ZU  G d de      Zeed<   deiZy)PaymentLink.Restrictionsc                   $    e Zd ZU eed<   	 eed<   y)*PaymentLink.Restrictions.CompletedSessionscountlimitNr&   r'   r(   rn   r*   r+   r,   r-   CompletedSessionsr   w  s    J Jr,   r   completed_sessionsN)r&   r'   r(   r   r   r*   r8   r+   r,   r-   Restrictionsr   v  s"    	 	 .-24EFr,   r   c                   $    e Zd ZU eed      ed<   y)%PaymentLink.ShippingAddressCollectionACADAEAFAGAIALAMAOAQARATAUAWAXAZBABBBDBEBFBGBHBIBJBLBMBNBOBQBRBSBTBVBWBYBZCACDCFCGCHCICKCLCMCNCOCRCVCWCYCZDEDJDKDMDODZECEEEGEHERESETFIFJFKFOFRGAGBGDGEGFGGGHGIGLGMGNGPGQGRGSGTGUGWGYHKHNHRHTHUIDIEILIMINIOIQISITJEJMJOJPKEKGKHKIKMKNKRKWKYKZLALBLCLILKLRLSLTLULVLYMAMCMDMEMFMGMKMLMMMNMOMQMRMSMTMUMVMWMXMYMZNANCNENGNINLNONPNRNUNZOMPAPEPFPGPHPKPLPMPNPRPSPTPYQARERORSRURWSASBSCSDSESGSHSISJSKSLSMSNSOSRSSSTSVSXSZTATCTDTFTGTHTJTKTLTMTNTOTRTTTVTWTZUAUGUSUYUZVAVCVEVGVNVUWFWSXKYEYTZAZMZWZZallowed_countriesNr&   r'   r(   r   r   r*   r+   r,   r-   ShippingAddressCollectionr     s&    moq
 q	
d	r,   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)PaymentLink.ShippingOptionshipping_amountr   shipping_rateN)r&   r'   r(   rn   r*   r   r+   r,   r-   ShippingOptionr  {  s    	 '~66	r,   r  c                       e Zd ZU  G d de      Z G d de      Zee   ed<   	 eed<   e	eef   ed<   	 ee
   ed<   	 ee   ed	<   	 eed
Zy)PaymentLink.SubscriptionDatac                   6    e Zd ZU  G d de      Zeed<   deiZy),PaymentLink.SubscriptionData.InvoiceSettingsc                   6    e Zd ZU eed      ed<   	 ed   ed<   y)3PaymentLink.SubscriptionData.InvoiceSettings.Issuerr   r>   r?   r7   NrA   r+   r,   r-   r   r    r   r,   r   r   N)r&   r'   r(   r   r   r*   r8   r+   r,   r-   InvoiceSettingsr    s       N"*F!3r,   r  c                   8    e Zd ZU  G d de      Zeed<   	 deiZy)*PaymentLink.SubscriptionData.TrialSettingsc                       e Zd ZU ed   ed<   y)6PaymentLink.SubscriptionData.TrialSettings.EndBehaviorcancelcreate_invoicepausemissing_payment_methodNrO   r+   r,   r-   EndBehaviorr    s    (/7) r,   r  end_behaviorN)r&   r'   r(   r   r  r*   r8   r+   r,   r-   TrialSettingsr    s(    l  &% #1+!>r,   r  r   invoice_settingsr   trial_period_daystrial_settings)r  r  N)r&   r'   r(   r   r  r  r   r)   r*   r   rn   r8   r+   r,   r-   SubscriptionDatar    sy    	4l 	4	?L 	? c]"	 *)sCx. 	 $C=(	 !//	 !0+
r,   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)PaymentLink.TaxIdCollectionrC   if_supportedneverrV   N)r&   r'   r(   rE   r*   r   r+   r,   r-   TaxIdCollectionr    s    	 122r,   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)PaymentLink.TransferDataamountr   destinationN)r&   r'   r(   r   rn   r*   r   r+   r,   r-   TransferDatar    s#    	 %Y//	r,   r  c                   \   e Zd ZU ed   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 eed      ed	<   	 ed
   ed<   	 ee	   ed<   	 ee
d      ed<   	 ed   ed<   	 eed      ed<   	 ee
e	      ed<   	 ee	   ed<   	 ed   ed<   	 e
d   ed<   	 eee	e	f      ed<   	 ee	   ed<   	 ee
d      ed<   	 ed   ed<   	 eed      ed<   	 ee
ed          ed!<   	 ed"   ed#<   	 ed$   ed%<   	 ed&   ed'<   	 ee
d(      ed)<   	 eed*      ed+<   	 ed,   ed-<   	 ed.   ed/<   	 ed0   ed1<   y2)3PaymentLink.CreateParams'PaymentLink.CreateParamsAfterCompletionafter_completionallow_promotion_codesapplication_fee_amountapplication_fee_percent$PaymentLink.CreateParamsAutomaticTaxautomatic_taxrL   rV   billing_address_collection)PaymentLink.CreateParamsConsentCollectionconsent_collectioncurrency#PaymentLink.CreateParamsCustomFieldr   "PaymentLink.CreateParamsCustomTextcustom_textalwaysif_requiredcustomer_creationexpandinactive_message'PaymentLink.CreateParamsInvoiceCreationinvoice_creation PaymentLink.CreateParamsLineItem
line_itemsr   on_behalf_of$PaymentLink.CreateParamsOptionalItemoptional_items)PaymentLink.CreateParamsPaymentIntentDatapayment_intent_datapayment_method_collection%affirmafterpay_clearpayalipayalmaau_becs_debit
bacs_debit
bancontactbillieblikboletocardcashappepsfpxgiropaygrabpayidealklarnakonbinilink	mobilepay
multibancooxxop24pay_by_bankpaynowpaypalpix	promptpaysatispay
sepa_debitsofortswishtwintus_bank_account
wechat_payzippayment_method_types-PaymentLink.CreateParamsPhoneNumberCollectionphone_number_collection$PaymentLink.CreateParamsRestrictionsrestrictions1PaymentLink.CreateParamsShippingAddressCollectionshipping_address_collection&PaymentLink.CreateParamsShippingOptionshipping_optionsrL   bookdonatepay	subscribesubmit_type(PaymentLink.CreateParamsSubscriptionDatasubscription_data'PaymentLink.CreateParamsTaxIdCollectiontax_id_collection$PaymentLink.CreateParamsTransferDatatransfer_dataN)r&   r'   r(   r   r*   rE   rn   floatr   r)   r   r   r+   r,   r-   CreateParamsr    s   %5
 	
	  +400	 !,C 00	 "-U!33	 ##IJJ	 %08J0K$LL	 (7
 	
	 c""	 #4(M#NOO	 !!EFF	 'w/F'GHH	 DI&&	 &c**	 &5
 	
	 ;<<	 d38n--	 "#&&	 $78
 	
	
 )7
 	
	 $/+,$
 	
	 *$&(*
 *	
V	 "-;"
 	
	
 ""HII	 &1?&
 	
	 &9:
 	
	 !@A
 	
	 '6
 	
	 '5
 	
	 ##IJJ	r,   rJ  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  9PaymentLink.CreateParamsAfterCompletionHostedConfirmationr4   /PaymentLink.CreateParamsAfterCompletionRedirectr5   r6   r7   Nr&   r'   r(   r   r*   r   r+   r,   r-   CreateParamsAfterCompletionz'PaymentLink.CreateParamsAfterCompletion  A    (G
 	
	 =
 	
	 788	r,   rO  c                       e Zd ZU ee   ed<   y)rL  r$   Nr&   r'   r(   r   r)   r*   r+   r,   r-   -CreateParamsAfterCompletionHostedConfirmationz9PaymentLink.CreateParamsAfterCompletionHostedConfirmation      #C((	r,   rS  c                       e Zd ZU eed<   y)rM  r1   Nr2   r+   r,   r-   #CreateParamsAfterCompletionRedirectz/PaymentLink.CreateParamsAfterCompletionRedirect      	r,   rV  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  rC   -PaymentLink.CreateParamsAutomaticTaxLiabilityrD   Nr&   r'   r(   rE   r*   r   r+   r,   r-   CreateParamsAutomaticTaxz$PaymentLink.CreateParamsAutomaticTax      	
 NOO	r,   r[  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rY  r>   r?   r7   Nr&   r'   r(   r   r)   r*   r   r+   r,   r-   !CreateParamsAutomaticTaxLiabilityz-PaymentLink.CreateParamsAutomaticTaxLiability  %    S!!	 '((	r,   r_  c                   N    e Zd ZU ed   ed<   	 eed      ed<   	 eed      ed<   y)r  DPaymentLink.CreateParamsConsentCollectionPaymentMethodReuseAgreementrQ   rR   rT   rU   rW   NrN  r+   r,   r-   CreateParamsConsentCollectionz)PaymentLink.CreateParamsConsentCollection  sF    (3R)
 	
	   788	
 &g.@&ABB	r,   rc  c                       e Zd ZU ed   ed<   y)rb  rK   rN   NrO   r+   r,   r-   8CreateParamsConsentCollectionPaymentMethodReuseAgreementzDPaymentLink.CreateParamsConsentCollectionPaymentMethodReuseAgreement  s    *++	r,   re  c                   ~    e Zd ZU ed   ed<   	 eed<   	 ded<   	 ed   ed<   	 ee   ed<   	 ed	   ed
<   	 ed   ed<   y)r  +PaymentLink.CreateParamsCustomFieldDropdownrt   ru   (PaymentLink.CreateParamsCustomFieldLabelr_   *PaymentLink.CreateParamsCustomFieldNumericrv   rw   'PaymentLink.CreateParamsCustomFieldTextrx   ry   r7   Nr&   r'   r(   r   r*   r)   rE   r   r+   r,   r-   CreateParamsCustomFieldz#PaymentLink.CreateParamsCustomField  w    KLL	 	 :9	 IJJ	 d##	 CDD	 344	r,   rl  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rg  rb   1PaymentLink.CreateParamsCustomFieldDropdownOptionrc   Nr&   r'   r(   r   r)   r*   r   r+   r,   r-   CreateParamsCustomFieldDropdownz+PaymentLink.CreateParamsCustomFieldDropdown  %    "3''	 IJJ	r,   rq  c                   $    e Zd ZU eed<   	 eed<   y)ro  r_   r`   Nr2   r+   r,   r-   %CreateParamsCustomFieldDropdownOptionz1PaymentLink.CreateParamsCustomFieldDropdownOption       
	 
	r,   rt  c                   *    e Zd ZU eed<   	 ed   ed<   y)rh  rg   r7   Nr&   r'   r(   r)   r*   r   r+   r,   r-   CreateParamsCustomFieldLabelz(PaymentLink.CreateParamsCustomFieldLabel
      	 h	r,   rx  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)ri  rb   rk   rl   Nr&   r'   r(   r   r)   r*   rn   r+   r,   r-   CreateParamsCustomFieldNumericz*PaymentLink.CreateParamsCustomFieldNumeric  6    "3''	 $C((	 $C((	r,   r|  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)rj  rb   rk   rl   Nr{  r+   r,   r-   CreateParamsCustomFieldTextz'PaymentLink.CreateParamsCustomFieldText"  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	)
r  z9Literal['']|PaymentLink.CreateParamsCustomTextAfterSubmitr   z=Literal['']|PaymentLink.CreateParamsCustomTextShippingAddressr   z4Literal['']|PaymentLink.CreateParamsCustomTextSubmitr   zFLiteral['']|PaymentLink.CreateParamsCustomTextTermsOfServiceAcceptancer   Nr&   r'   r(   r   r*   r+   r,   r-   CreateParamsCustomTextz"PaymentLink.CreateParamsCustomText0  \    !G
 	
	 &K
 	
	 B
 	
	 &1T&
 	
	r,   r  c                       e Zd ZU eed<   y)-PaymentLink.CreateParamsCustomTextAfterSubmitr   Nr2   r+   r,   r-   !CreateParamsCustomTextAfterSubmitr  J      	r,   r  c                       e Zd ZU eed<   y)1PaymentLink.CreateParamsCustomTextShippingAddressr   Nr2   r+   r,   r-   %CreateParamsCustomTextShippingAddressr  P  r  r,   r  c                       e Zd ZU eed<   y)(PaymentLink.CreateParamsCustomTextSubmitr   Nr2   r+   r,   r-   CreateParamsCustomTextSubmitr  V  r  r,   r  c                       e Zd ZU eed<   y):PaymentLink.CreateParamsCustomTextTermsOfServiceAcceptancer   Nr2   r+   r,   r-   .CreateParamsCustomTextTermsOfServiceAcceptancer  \  r  r,   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  rC   2PaymentLink.CreateParamsInvoiceCreationInvoiceDatar   NrZ  r+   r,   r-   CreateParamsInvoiceCreationz'PaymentLink.CreateParamsInvoiceCreationb  #    	 "@
 	
	r,   r  c                       e Zd ZU ed   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ed	   ed
<   	 ed   ed<   y)r  Literal['']|List[str]r   zOLiteral['']|List[PaymentLink.CreateParamsInvoiceCreationInvoiceDataCustomField]r   r   r   8PaymentLink.CreateParamsInvoiceCreationInvoiceDataIssuerr   Literal['']|Dict[str, str]r   zNLiteral['']|PaymentLink.CreateParamsInvoiceCreationInvoiceDataRenderingOptionsr   Nr&   r'   r(   r   r*   r)   r+   r,   r-   &CreateParamsInvoiceCreationInvoiceDataz2PaymentLink.CreateParamsInvoiceCreationInvoiceDatan      $%<==	 #]
 	
	 !%%	 C  	 F
 	
	 :;;	 '\
 	
	r,   r  c                   $    e Zd ZU eed<   	 eed<   y)=PaymentLink.CreateParamsInvoiceCreationInvoiceDataCustomFieldr   r`   Nr2   r+   r,   r-   1CreateParamsInvoiceCreationInvoiceDataCustomFieldr        		 
	r,   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r>   r?   r7   Nr^  r+   r,   r-   ,CreateParamsInvoiceCreationInvoiceDataIssuerz8PaymentLink.CreateParamsInvoiceCreationInvoiceDataIssuer  r`  r,   r  c                       e Zd ZU ed   ed<   y)BPaymentLink.CreateParamsInvoiceCreationInvoiceDataRenderingOptions;Literal['']|Literal['exclude_tax', 'include_inclusive_tax']r   Nr  r+   r,   r-   6CreateParamsInvoiceCreationInvoiceDataRenderingOptionsr        'I
 	
	r,   r  c                   6    e Zd ZU ed   ed<   	 eed<   	 eed<   y)r  2PaymentLink.CreateParamsLineItemAdjustableQuantityr   r   r   Nr&   r'   r(   r   r*   r)   rn   r+   r,   r-   CreateParamsLineItemz PaymentLink.CreateParamsLineItem  s/    (@
 	
	 
	 	r,   r  c                   <    e Zd ZU eed<   	 ee   ed<   	 ee   ed<   y)r  rC   r   r   Nr&   r'   r(   rE   r*   r   rn   r+   r,   r-   &CreateParamsLineItemAdjustableQuantityz2PaymentLink.CreateParamsLineItemAdjustableQuantity  0    	 S!!	 S!!	r,   r  c                   6    e Zd ZU ed   ed<   	 eed<   	 eed<   y)r	  6PaymentLink.CreateParamsOptionalItemAdjustableQuantityr   r   r   Nr  r+   r,   r-   CreateParamsOptionalItemz$PaymentLink.CreateParamsOptionalItem  s/    (D
 	
	 
	 	r,   r  c                   <    e Zd ZU eed<   	 ee   ed<   	 ee   ed<   y)r  rC   r   r   Nr  r+   r,   r-   *CreateParamsOptionalItemAdjustableQuantityz6PaymentLink.CreateParamsOptionalItemAdjustableQuantity  r  r,   r  c                       e Zd ZU eed      ed<   	 ee   ed<   	 eeeef      ed<   	 eed      ed<   	 ee   ed<   	 ee   ed<   	 ee   ed	<   y
)r  r   r   r   r   r   r   r   r   r   N)r&   r'   r(   r   r   r*   r)   r   r+   r,   r-   CreateParamsPaymentIntentDataz)PaymentLink.CreateParamsPaymentIntentData  s    #<=
 	
	 !%%	 d38n--	 (0K(LMM	 *#..	
 &1%55	 $C((	r,   r  c                       e Zd ZU eed<   y)r5  rC   Nr   r+   r,   r-   !CreateParamsPhoneNumberCollectionz-PaymentLink.CreateParamsPhoneNumberCollection  r   r,   r  c                       e Zd ZU ded<   y)r7  5PaymentLink.CreateParamsRestrictionsCompletedSessionsr   Nr&   r'   r(   r*   r+   r,   r-   CreateParamsRestrictionsz$PaymentLink.CreateParamsRestrictions      C	
	r,   r  c                       e Zd ZU eed<   y)r  r   Nr   r+   r,   r-   )CreateParamsRestrictionsCompletedSessionsz5PaymentLink.CreateParamsRestrictionsCompletedSessions$      
	r,   r  c                   $    e Zd ZU eed      ed<   y)r9  r   r  Nr  r+   r,   r-   %CreateParamsShippingAddressCollectionz1PaymentLink.CreateParamsShippingAddressCollection*  &    moq
 q	
d	r,   r  c                       e Zd ZU ee   ed<   y)r;  r  NrR  r+   r,   r-   CreateParamsShippingOptionz&PaymentLink.CreateParamsShippingOption"  s    "3''	r,   r  c                   p    e Zd ZU ee   ed<   	 ed   ed<   	 eeeef      ed<   	 ee   ed<   	 ed   ed<   y)	rC  r   7PaymentLink.CreateParamsSubscriptionDataInvoiceSettingsr  r   r  5PaymentLink.CreateParamsSubscriptionDataTrialSettingsr  N)r&   r'   r(   r   r)   r*   r   rn   r+   r,   r-   CreateParamsSubscriptionDataz(PaymentLink.CreateParamsSubscriptionData(  sl     %%	 &E
 	
	 d38n--	 's++	 $C
 	
	r,   r  c                       e Zd ZU ed   ed<   y)r  =PaymentLink.CreateParamsSubscriptionDataInvoiceSettingsIssuerr   Nr  r+   r,   r-   +CreateParamsSubscriptionDataInvoiceSettingsz7PaymentLink.CreateParamsSubscriptionDataInvoiceSettingsB      K
 	
	r,   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r>   r?   r7   Nr^  r+   r,   r-   1CreateParamsSubscriptionDataInvoiceSettingsIssuerz=PaymentLink.CreateParamsSubscriptionDataInvoiceSettingsIssuerJ  r`  r,   r  c                       e Zd ZU ded<   y)r  @PaymentLink.CreateParamsSubscriptionDataTrialSettingsEndBehaviorr  Nr  r+   r,   r-   )CreateParamsSubscriptionDataTrialSettingsz5PaymentLink.CreateParamsSubscriptionDataTrialSettingsT      N	
	r,   r  c                       e Zd ZU ed   ed<   y)r  r  r  NrO   r+   r,   r-   4CreateParamsSubscriptionDataTrialSettingsEndBehaviorz@PaymentLink.CreateParamsSubscriptionDataTrialSettingsEndBehavior\       '(K LL	r,   r  c                   0    e Zd ZU eed<   	 eed      ed<   y)rE  rC   r  rV   Nr&   r'   r(   rE   r*   r   r   r+   r,   r-   CreateParamsTaxIdCollectionz'PaymentLink.CreateParamsTaxIdCollectionb  $    	 g&=>??	r,   r  c                   *    e Zd ZU ee   ed<   	 eed<   y)rG  r  r  N)r&   r'   r(   r   rn   r*   r)   r+   r,   r-   CreateParamsTransferDataz$PaymentLink.CreateParamsTransferDatal  s    C  	 	r,   r  c                   Z    e Zd ZU ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   y)PaymentLink.ListLineItemsParamsending_beforer  r   starting_afterN)r&   r'   r(   r   r)   r*   r   rn   r+   r,   r-   ListLineItemsParamsr  y  sL    "3''	 DI&&	 3	 $C((	r,   r  c                   l    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<   y)PaymentLink.ListParamsactiver  r  r   r  N)	r&   r'   r(   r   rE   r*   r)   r   rn   r+   r,   r-   
ListParamsr    s^    D!!	 #3''	 DI&&	 3	 $C((	r,   r  c                      e Zd ZU ee   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed<   	 eed      ed<   	 ed	   ed
<   	 ed   ed<   	 eed      ed<   	 eee      ed<   	 ed   ed<   	 ed   ed<   	 eed      ed<   	 ee	eef      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ed"      ed#<   	 ed$   ed%<   	 ed&   ed'<   y())PaymentLink.ModifyParamsr  'PaymentLink.ModifyParamsAfterCompletionr  r  $PaymentLink.ModifyParamsAutomaticTaxr  r  r  z5Literal['']|List[PaymentLink.ModifyParamsCustomField]r   "PaymentLink.ModifyParamsCustomTextr  r  r  r  Literal['']|strr  'PaymentLink.ModifyParamsInvoiceCreationr   PaymentLink.ModifyParamsLineItemr  r   )PaymentLink.ModifyParamsPaymentIntentDatar  r  a  Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]r4  -PaymentLink.ModifyParamsPhoneNumberCollectionr6  z0Literal['']|PaymentLink.ModifyParamsRestrictionsr8  z=Literal['']|PaymentLink.ModifyParamsShippingAddressCollectionr:  r=  rB  (PaymentLink.ModifyParamsSubscriptionDatarD  'PaymentLink.ModifyParamsTaxIdCollectionrF  N)
r&   r'   r(   r   rE   r*   r   r   r)   r   r+   r,   r-   ModifyParamsr    s   D!!	 &5
 	
	  +400	 ##IJJ	 %08J0K$LL	 #C
 	
	 !!EFF	 'w/F'GHH	 DI&&	 &&788	 &5
 	
	  %G HII	 d38n--	 )7
 	
	 $/+,$
 	
	 * ~
 	
	 "-;"
 	
	
 ">
 	
	 &1K&
 	
	 !@A
 	
	 '6
 	
	 '5
 	
	r,   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  9PaymentLink.ModifyParamsAfterCompletionHostedConfirmationr4   /PaymentLink.ModifyParamsAfterCompletionRedirectr5   r6   r7   NrN  r+   r,   r-   ModifyParamsAfterCompletionz'PaymentLink.ModifyParamsAfterCompletion  rP  r,   r  c                       e Zd ZU ee   ed<   y)r  r$   NrR  r+   r,   r-   -ModifyParamsAfterCompletionHostedConfirmationz9PaymentLink.ModifyParamsAfterCompletionHostedConfirmation+  rT  r,   r  c                       e Zd ZU eed<   y)r  r1   Nr2   r+   r,   r-   #ModifyParamsAfterCompletionRedirectz/PaymentLink.ModifyParamsAfterCompletionRedirect1  rW  r,   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  rC   -PaymentLink.ModifyParamsAutomaticTaxLiabilityrD   NrZ  r+   r,   r-   ModifyParamsAutomaticTaxz$PaymentLink.ModifyParamsAutomaticTax7  r\  r,   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  r>   r?   r7   Nr^  r+   r,   r-   !ModifyParamsAutomaticTaxLiabilityz-PaymentLink.ModifyParamsAutomaticTaxLiabilityC  r`  r,   r  c                   ~    e Zd ZU ed   ed<   	 eed<   	 ded<   	 ed   ed<   	 ee   ed<   	 ed	   ed
<   	 ed   ed<   y)#PaymentLink.ModifyParamsCustomField+PaymentLink.ModifyParamsCustomFieldDropdownrt   ru   (PaymentLink.ModifyParamsCustomFieldLabelr_   *PaymentLink.ModifyParamsCustomFieldNumericrv   rw   'PaymentLink.ModifyParamsCustomFieldTextrx   ry   r7   Nrk  r+   r,   r-   ModifyParamsCustomFieldr   M  rm  r,   r  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r  rb   1PaymentLink.ModifyParamsCustomFieldDropdownOptionrc   Nrp  r+   r,   r-   ModifyParamsCustomFieldDropdownz+PaymentLink.ModifyParamsCustomFieldDropdownk  rr  r,   r  c                   $    e Zd ZU eed<   	 eed<   y)r  r_   r`   Nr2   r+   r,   r-   %ModifyParamsCustomFieldDropdownOptionz1PaymentLink.ModifyParamsCustomFieldDropdownOptionu  ru  r,   r
  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  rg   r7   Nrw  r+   r,   r-   ModifyParamsCustomFieldLabelz(PaymentLink.ModifyParamsCustomFieldLabel  ry  r,   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)r  rb   rk   rl   Nr{  r+   r,   r-   ModifyParamsCustomFieldNumericz*PaymentLink.ModifyParamsCustomFieldNumeric  r}  r,   r  c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)r  rb   rk   rl   Nr{  r+   r,   r-   ModifyParamsCustomFieldTextz'PaymentLink.ModifyParamsCustomFieldText  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	)
r  z9Literal['']|PaymentLink.ModifyParamsCustomTextAfterSubmitr   z=Literal['']|PaymentLink.ModifyParamsCustomTextShippingAddressr   z4Literal['']|PaymentLink.ModifyParamsCustomTextSubmitr   zFLiteral['']|PaymentLink.ModifyParamsCustomTextTermsOfServiceAcceptancer   Nr  r+   r,   r-   ModifyParamsCustomTextz"PaymentLink.ModifyParamsCustomText  r  r,   r  c                       e Zd ZU eed<   y)-PaymentLink.ModifyParamsCustomTextAfterSubmitr   Nr2   r+   r,   r-   !ModifyParamsCustomTextAfterSubmitr    r  r,   r  c                       e Zd ZU eed<   y)1PaymentLink.ModifyParamsCustomTextShippingAddressr   Nr2   r+   r,   r-   %ModifyParamsCustomTextShippingAddressr    r  r,   r  c                       e Zd ZU eed<   y)(PaymentLink.ModifyParamsCustomTextSubmitr   Nr2   r+   r,   r-   ModifyParamsCustomTextSubmitr    r  r,   r  c                       e Zd ZU eed<   y):PaymentLink.ModifyParamsCustomTextTermsOfServiceAcceptancer   Nr2   r+   r,   r-   .ModifyParamsCustomTextTermsOfServiceAcceptancer    r  r,   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  rC   2PaymentLink.ModifyParamsInvoiceCreationInvoiceDatar   NrZ  r+   r,   r-   ModifyParamsInvoiceCreationz'PaymentLink.ModifyParamsInvoiceCreation  r  r,   r!  c                       e Zd ZU ed   ed<   	 ed   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ed	   ed
<   	 ed   ed<   y)r   r  r   zOLiteral['']|List[PaymentLink.ModifyParamsInvoiceCreationInvoiceDataCustomField]r   r   r   8PaymentLink.ModifyParamsInvoiceCreationInvoiceDataIssuerr   r  r   zNLiteral['']|PaymentLink.ModifyParamsInvoiceCreationInvoiceDataRenderingOptionsr   Nr  r+   r,   r-   &ModifyParamsInvoiceCreationInvoiceDataz2PaymentLink.ModifyParamsInvoiceCreationInvoiceData  r  r,   r$  c                   $    e Zd ZU eed<   	 eed<   y)=PaymentLink.ModifyParamsInvoiceCreationInvoiceDataCustomFieldr   r`   Nr2   r+   r,   r-   1ModifyParamsInvoiceCreationInvoiceDataCustomFieldr&    r  r,   r'  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)r#  r>   r?   r7   Nr^  r+   r,   r-   ,ModifyParamsInvoiceCreationInvoiceDataIssuerz8PaymentLink.ModifyParamsInvoiceCreationInvoiceDataIssuer  r`  r,   r)  c                       e Zd ZU ed   ed<   y)BPaymentLink.ModifyParamsInvoiceCreationInvoiceDataRenderingOptionsr  r   Nr  r+   r,   r-   6ModifyParamsInvoiceCreationInvoiceDataRenderingOptionsr+    r  r,   r,  c                   <    e Zd ZU ed   ed<   	 eed<   	 ee   ed<   y)r  2PaymentLink.ModifyParamsLineItemAdjustableQuantityr   idr   Nr  r+   r,   r-   ModifyParamsLineItemz PaymentLink.ModifyParamsLineItem#  s5    (@
 	
	 	 c""	r,   r0  c                   <    e Zd ZU eed<   	 ee   ed<   	 ee   ed<   y)r.  rC   r   r   Nr  r+   r,   r-   &ModifyParamsLineItemAdjustableQuantityz2PaymentLink.ModifyParamsLineItemAdjustableQuantity3  r  r,   r2  c                   f    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)	r  r  r   r  r   r   r   r   Nr  r+   r,   r-   ModifyParamsPaymentIntentDataz)PaymentLink.ModifyParamsPaymentIntentDataA  s_     !233	 :;;	 **;<<	
 &11B%CC	 $$566	r,   r4  c                       e Zd ZU eed<   y)r  rC   Nr   r+   r,   r-   !ModifyParamsPhoneNumberCollectionz-PaymentLink.ModifyParamsPhoneNumberCollectionY  r   r,   r6  c                       e Zd ZU ded<   y)$PaymentLink.ModifyParamsRestrictions5PaymentLink.ModifyParamsRestrictionsCompletedSessionsr   Nr  r+   r,   r-   ModifyParamsRestrictionsr8  _  r  r,   r:  c                       e Zd ZU eed<   y)r9  r   Nr   r+   r,   r-   )ModifyParamsRestrictionsCompletedSessionsz5PaymentLink.ModifyParamsRestrictionsCompletedSessionsg  r  r,   r<  c                   $    e Zd ZU eed      ed<   y)1PaymentLink.ModifyParamsShippingAddressCollectionr   r  Nr  r+   r,   r-   %ModifyParamsShippingAddressCollectionr>  m  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	)
r  7PaymentLink.ModifyParamsSubscriptionDataInvoiceSettingsr  r  r   zLiteral['']|intr  zALiteral['']|PaymentLink.ModifyParamsSubscriptionDataTrialSettingsr  Nr  r+   r,   r-   ModifyParamsSubscriptionDataz(PaymentLink.ModifyParamsSubscriptionDatae	  sT    %E
 	
	 :;;	 ''899	 $O
 	
	r,   rB  c                       e Zd ZU ed   ed<   y)rA  =PaymentLink.ModifyParamsSubscriptionDataInvoiceSettingsIssuerr   Nr  r+   r,   r-   +ModifyParamsSubscriptionDataInvoiceSettingsz7PaymentLink.ModifyParamsSubscriptionDataInvoiceSettings{	  r  r,   rE  c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)rD  r>   r?   r7   Nr^  r+   r,   r-   1ModifyParamsSubscriptionDataInvoiceSettingsIssuerz=PaymentLink.ModifyParamsSubscriptionDataInvoiceSettingsIssuer	  r`  r,   rG  c                       e Zd ZU ded<   y)5PaymentLink.ModifyParamsSubscriptionDataTrialSettings@PaymentLink.ModifyParamsSubscriptionDataTrialSettingsEndBehaviorr  Nr  r+   r,   r-   )ModifyParamsSubscriptionDataTrialSettingsrI  	  r  r,   rK  c                       e Zd ZU ed   ed<   y)rJ  r  r  NrO   r+   r,   r-   4ModifyParamsSubscriptionDataTrialSettingsEndBehaviorz@PaymentLink.ModifyParamsSubscriptionDataTrialSettingsEndBehavior	  r  r,   rM  c                   0    e Zd ZU eed<   	 eed      ed<   y)r  rC   r  rV   Nr  r+   r,   r-   ModifyParamsTaxIdCollectionz'PaymentLink.ModifyParamsTaxIdCollection	  r  r,   rO  c                   $    e Zd ZU eee      ed<   y)PaymentLink.RetrieveParamsr  N)r&   r'   r(   r   r   r)   r*   r+   r,   r-   RetrieveParamsrQ  	  s    DI&&	r,   rR  r  r  r  r   applicationr  r  r  r  r  r  r  r   r  r  r  r/  r  r  r   r  livemoder   objectr   r  r
  r  r  r  r4  r6  r8  r:  r<  r=  rB  rD  rF  rH  r1   paramsr  returnc                 Z    t        d| j                  d| j                         |            S ))
        Creates a payment link.
        r   postrV  )r   _static_request	class_urlclsrV  s     r-   createzPaymentLink.createO
  s6        
 	
r,   c                 v   K   t        d| j                  d| j                         |       d{         S 7 w)rY  r   rZ  r[  N)r   _static_request_asyncr]  r^  s     r-   create_asynczPaymentLink.create_async_
  sD      ++ ,  
 	
s   ,97
	9r  c                     | j                  d| j                         |      }t        |t              s!t	        dt        |      j                  z        |S )7
        Returns a list of your payment links.
        getr[  %Expected list object from API, got %s)r\  r]  
isinstancer   	TypeErrorr7   r&   r_  rV  results      r-   listzPaymentLink.listo
  s]     $$MMO % 

 &*-7<((* 
 r,   c                    K   | j                  d| j                         |       d{   }t        |t              s!t	        dt        |      j                  z        |S 7 7w)re  rf  r[  Nrg  )rb  r]  rh  r   ri  r7   r&   rj  s      r-   
list_asynczPaymentLink.list_async
  sk      00MMO 1 
 

 &*-7<((* 
 
s   &A"A 8A"r  c                 ~    t        t        d   | j                  ddj                  t	        |            |            S )
        When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
        r   rf  +/v1/payment_links/{payment_link}/line_itemsr   r[  )r   r   r\  formatr   r_  r   rV  s      r-   _cls_list_line_itemsz PaymentLink._cls_list_line_items
  sP     z"=DD!,\!: E     	
 		
r,   c                      yrp  Nr+   r   rV  s     r-   list_line_itemszPaymentLink.list_line_items
  s     	r,   c                      yrw  r+   r@   rV  s     r-   ry  zPaymentLink.list_line_items
  s     	r,   ru  c                     t        t        d   | j                  ddj                  t	        | j                  d                  |            S )rp  r   rf  rq  r/  rr  r[  )r   r   _requestrs  r   rf  r{  s     r-   ry  zPaymentLink.list_line_items
  sV     z"MM=DD!,TXXd^!< E    	
 		
r,   c                    K   t        t        d   | j                  ddj                  t	        |            |       d{         S 7 w)rp  r   rf  rq  rr  r[  N)r   r   rb  rs  r   rt  s      r-   _cls_list_line_items_asyncz&PaymentLink._cls_list_line_items_async
  s^      z"++=DD!,\!: E   ,  	
 		
s   >A A	
	Ac                    K   ywrw  r+   rx  s     r-   list_line_items_asyncz!PaymentLink.list_line_items_async
  s      	   c                    K   ywrw  r+   r{  s     r-   r  z!PaymentLink.list_line_items_async
  s      	r  r  c                    K   t        t        d   | j                  ddj                  t	        | j                  d                  |       d{         S 7 w)rp  r   rf  rq  r/  rr  r[  N)r   r   _request_asyncrs  r   rf  r{  s     r-   r  z!PaymentLink.list_line_items_async
  sf      z"%%=DD!,TXXd^!< E   &  	
 		
s   AAA
	Ar  c                 z    | j                         dt        |      }t        d| j                  d||            S ))
        Updates a payment link.
        /r   rZ  r[  )r]  r   r   r\  r_  r/  rV  r1   s       r-   modifyzPaymentLink.modify	  sD     +b/:   
 	
r,   c                    K   | j                         dt        |      }t        d| j                  d||       d{         S 7 w)r  r  r   rZ  r[  N)r]  r   r   rb  r  s       r-   modify_asynczPaymentLink.modify_async  sR      +b/:++ ,  
 	
s   <A	A
	A	rQ  c                 8     | |fi |}|j                          |S )*
        Retrieve a payment link.
        )refreshr_  r/  rV  instances       r-   retrievezPaymentLink.retrieve+  s$     r$V$r,   c                 T   K    | |fi |}|j                          d{    |S 7 w)r  N)refresh_asyncr  s       r-   retrieve_asynczPaymentLink.retrieve_async6  s3      r$V$$$&&& 	's   (&()r  r  r  r   r  r  r
  r  r6  r8  r:  r<  rD  rF  rH  N)r&   r'   r(   __doc__r   r   r   r*   r   r9   rF   rX   rz   r   r   r   r   r   r   r  r  r  r  r  r   rJ  r   rO  rS  rV  r[  r_  rc  re  rl  rq  rt  rx  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$  r'  r)  r,  r0  r2  r4  r6  r:  r<  r?  rB  rE  rG  rK  rM  rO  rR  rE   r   r   rn   rI  r)   r   r   r   classmethodr   r`  rc  rl  rn  ru  r   staticmethodry  r
   r  r  r  r  r  r  r8   r+   r,   r-   r   r      sK
   
 6DK'.12C
, 
06| 6*
L 
2Q
l Q
f.
\ .
`F;, F;PI| I(L @ G| GuL un 2
< 2
h3, 3| ~~ ~@i $	 i 
9 
I 	 &9 ) <) 	 y  i  4I 	 y  
i 
" "HI y  y   9  Y *	 *XI 9 I v	 vpY y 4i I I y i 9 n $^ ,v~ vpi $	 i 
9 
I ) <) 	 y  i  4I 	 y  
i 
" "HI y  y   	 0I 9 I v	 vpy ,i I I y i   L &% /-899 %SM) &e_,   '(: ;; !!233 M $$ 677 	G sm# // J/00 N 38n N## ?9566 T,/00 ""344  ''>?? #$&(	
* *V 32<(( "**C!DD >** EFF   011 '&L)) 
H 
89
	
 
 
89
	
 
 67	M	" & 67	M	" & 

 :;
 
J		
 
& %+,M%N	J	   @A	J	  01
@A
	J	
 2
" 

 :;
 
J		
 
& %+,M%N	J	   @A	J	  67
@A
	J	
 8
" 

 &'A B
	
 
  

 &'A B
	
 
   &'C D	   &'C D	  ,%/$!+&0#8$'@*-,%r,   r   N))stripe._createable_api_resourcer   stripe._expandable_fieldr   stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   stripe._stripe_objectr   stripe._updateable_api_resourcer	   stripe._utilr
   r   typingr   r   r   r   r   r   typing_extensionsr   r   r   r   r   stripe._accountr   stripe._applicationr   stripe._line_itemr   stripe._shipping_rater   stripe._tax_idr   r   r+   r,   r-   <module>r     sh    B 4 * = 2 . A : A A  '/*2$u,-(&-(u,r,   