o
    Bi                    @   s  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rpd 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 ded ed ed Z(dS )    )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                   @   s	  e Zd ZU dZdZeed  ed< G dd deZ	G dd deZ
G dd	 d	eZG d
d deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG d d! d!eZG d"d# d#eZG d$d% d%eZG d&d' d'eZG d(d) d)eZG d*d+ d+eZG d,d- d-eZG d.d/ d/eZ G d0d1 d1eZ!G d2d3 d3eZ"G d4d5 d5eZ#G d6d7 d7eZ$G d8d9 d9eZ%G d:d; d;eZ&G d<d= d=eZ'G d>d? d?eZ(G d@dA dAeZ)G dBdC dCeZ*G dDdE dEeZ+G dFdG dGeZ,G dHdI dIeZ-G dJdK dKeZ.G dLdM dMeZ/G dNdO dOeZ0G dPdQ dQeZ1G dRdS dSeZ2G dTdU dUeZ3G dVdW dWeZ4G dXdY dYeZ5G dZd[ d[eZ6G d\d] d]eZ7G d^d_ d_eZ8G d`da daeZ9G dbdc dceZ:G ddde deeZ;G dfdg dgeZ<G dhdi dieZ=G djdk dkeZ>G dldm dmeZ?G dndo doeZ@G dpdq dqeZAG drds dseZBG dtdu dueZCG dvdw dweZDG dxdy dyeZEG dzd{ d{eZFG d|d} d}eZGG d~d deZHG dd deZIG dd deZJG dd deZKG dd deZLG dd deZMG dd deZNG dd deZOG dd deZPG dd deZQG dd deZRG dd deZSG dd deZTG dd deZUG dd deZVG dd deZWG dd deZXG dd deZYG dd deZZG dd deZ[G dd deZ\G dd deZ]G dd deZ^G dd deZ_G dd deZ`G dd deZaG dd deZbG dd deZcG dd deZdeeed< 	 e	ed< eeed< 	 efegd  ed< 	 efeh ed< 	 efei ed< 	 e
ed< ed ed< 	 efe ed< 	 ejed< 	 eke ed< 	 eed< ed ed< 	 ejed< 	 efej ed< 	 efe ed< 	 efeld  ed< 	 eeed< 	 emejejf ed< 	 ed ed< 	 efegd  ed< 	 efe ed< 	 ed ed< 	 efeked   ed< 	 eed< efe ed< 	 efe ed< 	 eke ed< 	 ed ed< 	 efe ed< 	 eed< efe ed< 	 ejed< 	 endeod dd fddZpendeod dd fddZqendeod deld  fddZrendeod deld  fddZsendejdeod deld fddZteuevdejdeod deld fddZweudeod deld fddZwexddeod deld fddZwendejdeod deld fddZyeuevdejdeod deld fddZzeudeod deld fddZzexddeod deld fddZzendejdeod dd fddZ{endejdeod dd fddZ|endejdeod  dd fddZ}endejdeod  dd fddZ~e	e
eeeeeeeeeeeedZdS (  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                   @   s^   e Zd ZU G dd deZG dd deZee ed< ee ed< ed ed< 	 eedZ	d	S )
zPaymentLink.AfterCompletionc                   @      e Zd ZU ee ed< dS )z.PaymentLink.AfterCompletion.HostedConfirmationcustom_messageN__name__
__module____qualname__r   str__annotations__ r&   r&   T/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/_payment_link.pyHostedConfirmation,      
 r(   c                   @      e Zd ZU eed< dS )z$PaymentLink.AfterCompletion.RedirecturlNr!   r"   r#   r$   r%   r&   r&   r&   r'   Redirect2      
 r-   hosted_confirmationredirectr/   r0   typeN)
r!   r"   r#   r   r(   r-   r   r%   r   _inner_class_typesr&   r&   r&   r'   AfterCompletion+   s   
 
r4   c                   @   >   e Zd ZU G dd deZeed< 	 ee ed< 	 deiZdS )zPaymentLink.AutomaticTaxc                   @   ,   e Zd ZU eed  ed< 	 ed ed< dS )z"PaymentLink.AutomaticTax.Liabilityr   accountr7   selfr2   Nr!   r"   r#   r   r   r%   r   r&   r&   r&   r'   	LiabilityD   
   
 r;   enabled	liabilityN)	r!   r"   r#   r   r;   boolr%   r   r3   r&   r&   r&   r'   AutomaticTaxC   s   
 
r@   c                   @   sX   e Zd ZU G dd deZee ed< 	 eed  ed< 	 eed  ed< 	 deiZdS )	zPaymentLink.ConsentCollectionc                   @      e Zd ZU ed ed< dS )z9PaymentLink.ConsentCollection.PaymentMethodReuseAgreementautohiddenpositionNr!   r"   r#   r   r%   r&   r&   r&   r'   PaymentMethodReuseAgreementY   r)   rG   payment_method_reuse_agreementrC   none
promotionsrJ   requiredterms_of_serviceN)	r!   r"   r#   r   rG   r   r%   r   r3   r&   r&   r&   r'   ConsentCollectionX   s   
 rO   c                   @   s   e Zd ZU G dd deZG dd deZG dd deZG d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dS )zPaymentLink.CustomFieldc                   @   s4   e Zd ZU G dd deZee ed< 	 deiZdS )z PaymentLink.CustomField.Dropdownc                   @       e Zd ZU eed< 	 eed< dS )z'PaymentLink.CustomField.Dropdown.OptionlabelvalueNr,   r&   r&   r&   r'   Options   
   
 rS   optionsN)r!   r"   r#   r   rS   r   r%   r3   r&   r&   r&   r'   Dropdownr   s
   
 
rV   c                   @   s(   e Zd ZU ee ed< 	 ed ed< dS )zPaymentLink.CustomField.Labelcustomr2   N)r!   r"   r#   r   r$   r%   r   r&   r&   r&   r'   Label   
   
 rX   c                   @   (   e Zd ZU ee ed< 	 ee ed< dS )zPaymentLink.CustomField.Numericmaximum_lengthminimum_lengthNr!   r"   r#   r   intr%   r&   r&   r&   r'   Numeric   rY   r_   c                   @   rZ   )zPaymentLink.CustomField.Textr[   r\   Nr]   r&   r&   r&   r'   Text   rY   r`   dropdownkeyrQ   numericoptionaltextra   rc   re   r2   )ra   rQ   rc   re   N)r!   r"   r#   r   rV   rX   r_   r`   r   r%   r$   r?   r   r3   r&   r&   r&   r'   CustomFieldq   s(   
 



rg   c                   @   s   e Zd ZU G dd deZG dd deZG dd deZG d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
dS )zPaymentLink.CustomTextc                   @   r*   )z"PaymentLink.CustomText.AfterSubmitmessageNr,   r&   r&   r&   r'   AfterSubmit   r.   ri   c                   @   r*   )z&PaymentLink.CustomText.ShippingAddressrh   Nr,   r&   r&   r&   r'   ShippingAddress   r.   rj   c                   @   r*   )zPaymentLink.CustomText.Submitrh   Nr,   r&   r&   r&   r'   Submit   r.   rk   c                   @   r*   )z/PaymentLink.CustomText.TermsOfServiceAcceptancerh   Nr,   r&   r&   r&   r'   TermsOfServiceAcceptance   r.   rl   after_submitshipping_addresssubmitterms_of_service_acceptance)rm   rn   ro   rp   N)r!   r"   r#   r   ri   rj   rk   rl   r   r%   r3   r&   r&   r&   r'   
CustomText   s$   
 
rq   c                   @   r5   )zPaymentLink.InvoiceCreationc                   @   s   e Zd ZU G dd deZG dd deZG d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dS )z'PaymentLink.InvoiceCreation.InvoiceDatac                   @   rP   )z3PaymentLink.InvoiceCreation.InvoiceData.CustomFieldnamerR   Nr,   r&   r&   r&   r'   rg      rT   rg   c                   @   r6   )z.PaymentLink.InvoiceCreation.InvoiceData.Issuerr   r7   r8   r2   Nr:   r&   r&   r&   r'   Issuer   r<   rs   c                   @   r   )z8PaymentLink.InvoiceCreation.InvoiceData.RenderingOptionsamount_tax_displayNr    r&   r&   r&   r'   RenderingOptions   r)   ru   r   account_tax_idscustom_fieldsdescriptionfooterissuermetadatarendering_options)rw   rz   r|   N)r!   r"   r#   r   rg   rs   ru   r   r   r   r%   r$   r   r3   r&   r&   r&   r'   InvoiceData   s,   
 


r}   r=   invoice_dataN)	r!   r"   r#   r   r}   r?   r%   r   r3   r&   r&   r&   r'   InvoiceCreation   s   
 =r   c                   @   sz   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	< d
S )zPaymentLink.PaymentIntentData	automaticautomatic_asyncmanualcapture_methodrx   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&   r'   PaymentIntentData0  s"   
 r   c                   @   r*   )z!PaymentLink.PhoneNumberCollectionr=   Nr!   r"   r#   r?   r%   r&   r&   r&   r'   PhoneNumberCollectionP  r.   r   c                   @   .   e Zd ZU G dd deZeed< deiZdS )zPaymentLink.Restrictionsc                   @   rP   )z*PaymentLink.Restrictions.CompletedSessionscountlimitNr!   r"   r#   r^   r%   r&   r&   r&   r'   CompletedSessionsW  rT   r   completed_sessionsN)r!   r"   r#   r   r   r%   r3   r&   r&   r&   r'   RestrictionsV     
 
r   c                   @      e Zd ZU eed  ed< dS )z%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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&   r'   ShippingAddressCollectiond     
  rr  c                   @   $   e Zd ZU eed< 	 ed ed< dS )zPaymentLink.ShippingOptionshipping_amountr   shipping_rateN)r!   r"   r#   r^   r%   r   r&   r&   r&   r'   ShippingOptionZ  
   
 r  c                   @   s|   e Zd ZU G dd deZG d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dS )zPaymentLink.SubscriptionDatac                   @   r   )z,PaymentLink.SubscriptionData.InvoiceSettingsc                   @   r6   )z3PaymentLink.SubscriptionData.InvoiceSettings.Issuerr   r7   r8   r2   Nr:   r&   r&   r&   r'   rs   f  r<   rs   rz   N)r!   r"   r#   r   rs   r%   r3   r&   r&   r&   r'   InvoiceSettingse  r   r  c                   @   s0   e Zd ZU G dd deZeed< 	 deiZdS )z*PaymentLink.SubscriptionData.TrialSettingsc                   @   rA   )z6PaymentLink.SubscriptionData.TrialSettings.EndBehaviorcancelcreate_invoicepausemissing_payment_methodNrF   r&   r&   r&   r'   EndBehaviort  
   
 r  end_behaviorN)r!   r"   r#   r   r  r%   r3   r&   r&   r&   r'   TrialSettingss  s
   
 r  rx   invoice_settingsr{   trial_period_daystrial_settings)r  r  N)r!   r"   r#   r   r  r  r   r$   r%   r   r^   r3   r&   r&   r&   r'   SubscriptionDatad  s   
 
r  c                   @   r  )zPaymentLink.TaxIdCollectionr=   if_supportedneverrM   N)r!   r"   r#   r?   r%   r   r&   r&   r&   r'   TaxIdCollection  s   
 r  c                   @   (   e Zd ZU ee ed< 	 ed ed< dS )zPaymentLink.TransferDataamountr   destinationN)r!   r"   r#   r   r^   r%   r   r&   r&   r&   r'   TransferData  rY   r  c                   @   s  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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d. ed/< d0S )1PaymentLink.CreateParams'PaymentLink.CreateParamsAfterCompletionafter_completionallow_promotion_codesapplication_fee_amountapplication_fee_percent$PaymentLink.CreateParamsAutomaticTaxautomatic_taxrC   rM   billing_address_collection)PaymentLink.CreateParamsConsentCollectionconsent_collectioncurrency#PaymentLink.CreateParamsCustomFieldrw   "PaymentLink.CreateParamsCustomTextcustom_textalwaysif_requiredcustomer_creationexpandinactive_message'PaymentLink.CreateParamsInvoiceCreationinvoice_creation PaymentLink.CreateParamsLineItem
line_itemsr{   on_behalf_of)PaymentLink.CreateParamsPaymentIntentDatapayment_intent_datapayment_method_collection!affirmafterpay_clearpayalipayau_becs_debit
bacs_debit
bancontactblikboletocardcashappepsfpxgiropaygrabpayidealklarnakonbinilink	mobilepay
multibancooxxop24paynowpaypalpix	promptpay
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rC   bookdonatepaysubmit_type(PaymentLink.CreateParamsSubscriptionDatasubscription_data'PaymentLink.CreateParamsTaxIdCollectiontax_id_collection$PaymentLink.CreateParamsTransferDatatransfer_dataN)r!   r"   r#   r   r%   r?   r^   floatr   r$   r   r   r&   r&   r&   r'   CreateParams  s   
 'r  c                   @   6   e Zd ZU ed ed< 	 ed ed< 	 ed ed< dS )r  9PaymentLink.CreateParamsAfterCompletionHostedConfirmationr/   /PaymentLink.CreateParamsAfterCompletionRedirectr0   r1   r2   Nr!   r"   r#   r   r%   r   r&   r&   r&   r'   CreateParamsAfterCompletion[     
 r  c                   @   r   )r  r   Nr!   r"   r#   r   r$   r%   r&   r&   r&   r'   -CreateParamsAfterCompletionHostedConfirmationm  r)   r  c                   @   r*   )r  r+   Nr,   r&   r&   r&   r'   #CreateParamsAfterCompletionRedirects  r.   r  c                   @   r  )r  r=   -PaymentLink.CreateParamsAutomaticTaxLiabilityr>   Nr!   r"   r#   r?   r%   r   r&   r&   r&   r'   CreateParamsAutomaticTaxy  r  r  c                   @   r  )r  r7   r8   r2   Nr!   r"   r#   r   r$   r%   r   r&   r&   r&   r'   !CreateParamsAutomaticTaxLiability  rY   r  c                   @   s>   e Zd ZU ed ed< 	 eed  ed< 	 eed  ed< dS )r  DPaymentLink.CreateParamsConsentCollectionPaymentMethodReuseAgreementrH   rI   rK   rL   rN   Nr  r&   r&   r&   r'   CreateParamsConsentCollection  s   
 r
  c                   @   rA   )r	  rB   rE   NrF   r&   r&   r&   r'   8CreateParamsConsentCollectionPaymentMethodReuseAgreement  r)   r  c                   @   f   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< dS )r  +PaymentLink.CreateParamsCustomFieldDropdownra   rb   (PaymentLink.CreateParamsCustomFieldLabelrQ   *PaymentLink.CreateParamsCustomFieldNumericrc   rd   'PaymentLink.CreateParamsCustomFieldTextre   rf   r2   Nr!   r"   r#   r   r%   r$   r?   r   r&   r&   r&   r'   CreateParamsCustomField     
 r  c                   @   rA   )r  1PaymentLink.CreateParamsCustomFieldDropdownOptionrU   Nr!   r"   r#   r   r%   r&   r&   r&   r'   CreateParamsCustomFieldDropdown  r)   r  c                   @   rP   )r  rQ   rR   Nr,   r&   r&   r&   r'   %CreateParamsCustomFieldDropdownOption  rT   r  c                   @   $   e Zd ZU eed< 	 ed ed< dS )r  rW   r2   Nr!   r"   r#   r$   r%   r   r&   r&   r&   r'   CreateParamsCustomFieldLabel  r  r  c                   @   rZ   )r  r[   r\   Nr!   r"   r#   r   r^   r%   r&   r&   r&   r'   CreateParamsCustomFieldNumeric  rY   r  c                   @   rZ   )r  r[   r\   Nr  r&   r&   r&   r'   CreateParamsCustomFieldText  rY   r  c                   @   D   e Zd ZU ed ed< 	 ed ed< 	 ed ed< 	 ed ed< d	S )
r  z9Literal['']|PaymentLink.CreateParamsCustomTextAfterSubmitrm   z=Literal['']|PaymentLink.CreateParamsCustomTextShippingAddressrn   z4Literal['']|PaymentLink.CreateParamsCustomTextSubmitro   zFLiteral['']|PaymentLink.CreateParamsCustomTextTermsOfServiceAcceptancerp   Nr!   r"   r#   r   r%   r&   r&   r&   r'   CreateParamsCustomText  "   
 r   c                   @   r*   )z-PaymentLink.CreateParamsCustomTextAfterSubmitrh   Nr,   r&   r&   r&   r'   !CreateParamsCustomTextAfterSubmit  r.   r"  c                   @   r*   )z1PaymentLink.CreateParamsCustomTextShippingAddressrh   Nr,   r&   r&   r&   r'   %CreateParamsCustomTextShippingAddress  r.   r#  c                   @   r*   )z(PaymentLink.CreateParamsCustomTextSubmitrh   Nr,   r&   r&   r&   r'   CreateParamsCustomTextSubmit  r.   r$  c                   @   r*   )z:PaymentLink.CreateParamsCustomTextTermsOfServiceAcceptancerh   Nr,   r&   r&   r&   r'   .CreateParamsCustomTextTermsOfServiceAcceptance  r.   r%  c                   @   r  )r  r=   2PaymentLink.CreateParamsInvoiceCreationInvoiceDatar~   Nr  r&   r&   r&   r'   CreateParamsInvoiceCreation%     
 r'  c                   @   n   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< dS )r&  Literal['']|List[str]rv   zOLiteral['']|List[PaymentLink.CreateParamsInvoiceCreationInvoiceDataCustomField]rw   rx   ry   8PaymentLink.CreateParamsInvoiceCreationInvoiceDataIssuerrz   Literal['']|Dict[str, str]r{   zNLiteral['']|PaymentLink.CreateParamsInvoiceCreationInvoiceDataRenderingOptionsr|   Nr!   r"   r#   r   r%   r$   r&   r&   r&   r'   &CreateParamsInvoiceCreationInvoiceData1  *   
 r.  c                   @   rP   )z=PaymentLink.CreateParamsInvoiceCreationInvoiceDataCustomFieldrr   rR   Nr,   r&   r&   r&   r'   1CreateParamsInvoiceCreationInvoiceDataCustomFieldU  rT   r0  c                   @   r  )r+  r7   r8   r2   Nr  r&   r&   r&   r'   ,CreateParamsInvoiceCreationInvoiceDataIssuer_  rY   r1  c                   @   rA   )zBPaymentLink.CreateParamsInvoiceCreationInvoiceDataRenderingOptions;Literal['']|Literal['exclude_tax', 'include_inclusive_tax']rt   Nr  r&   r&   r&   r'   6CreateParamsInvoiceCreationInvoiceDataRenderingOptionsi  r  r3  c                   @   s.   e Zd ZU ed ed< 	 eed< 	 eed< dS )r  2PaymentLink.CreateParamsLineItemAdjustableQuantityadjustable_quantitypricequantityNr!   r"   r#   r   r%   r$   r^   r&   r&   r&   r'   CreateParamsLineItemq  s   
 r9  c                   @   2   e Zd ZU eed< 	 ee ed< 	 ee ed< dS )r4  r=   maximumminimumNr!   r"   r#   r?   r%   r   r^   r&   r&   r&   r'   &CreateParamsLineItemAdjustableQuantity     
 r>  c                   @   s~   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	< d
S )r  r   r   rx   r{   r   r   r   r   r   N)r!   r"   r#   r   r   r%   r$   r   r&   r&   r&   r'   CreateParamsPaymentIntentData  s"   
 r@  c                   @   r*   )r  r=   Nr   r&   r&   r&   r'   !CreateParamsPhoneNumberCollection  r.   rA  c                   @      e Zd ZU ded< dS )r  5PaymentLink.CreateParamsRestrictionsCompletedSessionsr   Nr!   r"   r#   r%   r&   r&   r&   r'   CreateParamsRestrictions     
 rE  c                   @   r*   )rC  r   Nr   r&   r&   r&   r'   )CreateParamsRestrictionsCompletedSessions  r.   rG  c                   @   r   )r  r   r  Nr  r&   r&   r&   r'   %CreateParamsShippingAddressCollection  r  rH  c                   @   r   )r  r  Nr  r&   r&   r&   r'   CreateParamsShippingOption  r)   rI  c                   @   sZ   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< dS )	r  rx   7PaymentLink.CreateParamsSubscriptionDataInvoiceSettingsr  r{   r  5PaymentLink.CreateParamsSubscriptionDataTrialSettingsr  N)r!   r"   r#   r   r$   r%   r   r^   r&   r&   r&   r'   CreateParamsSubscriptionData  s   
 rL  c                   @   rA   )rJ  =PaymentLink.CreateParamsSubscriptionDataInvoiceSettingsIssuerrz   Nr  r&   r&   r&   r'   +CreateParamsSubscriptionDataInvoiceSettings  r  rN  c                   @   r  )rM  r7   r8   r2   Nr  r&   r&   r&   r'   1CreateParamsSubscriptionDataInvoiceSettingsIssuer  rY   rO  c                   @   rB  )rK  @PaymentLink.CreateParamsSubscriptionDataTrialSettingsEndBehaviorr  NrD  r&   r&   r&   r'   )CreateParamsSubscriptionDataTrialSettings  rF  rQ  c                   @   rA   )rP  r  r  NrF   r&   r&   r&   r'   4CreateParamsSubscriptionDataTrialSettingsEndBehavior   r)   rR  c                   @   (   e Zd ZU eed< 	 eed  ed< dS )r  r=   r  rM   Nr!   r"   r#   r?   r%   r   r   r&   r&   r&   r'   CreateParamsTaxIdCollection  
   
 rU  c                   @   s$   e Zd ZU ee ed< 	 eed< dS )r  r  r  N)r!   r"   r#   r   r^   r%   r$   r&   r&   r&   r'   CreateParamsTransferData  s
   
 rW  c                   @   sH   e Zd ZU ee ed< 	 eee  ed< 	 ee ed< 	 ee ed< dS )PaymentLink.ListLineItemsParamsending_beforer  r   starting_afterN)r!   r"   r#   r   r$   r%   r   r^   r&   r&   r&   r'   ListLineItemsParams  s   
 r[  c                   @   sV   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< dS )PaymentLink.ListParamsactiverY  r  r   rZ  N)	r!   r"   r#   r   r?   r%   r$   r   r^   r&   r&   r&   r'   
ListParams/  s   
 r^  c                   @   s@  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d" ed#< d$S )%PaymentLink.ModifyParamsr]  'PaymentLink.ModifyParamsAfterCompletionr  r  $PaymentLink.ModifyParamsAutomaticTaxr  r  r  z5Literal['']|List[PaymentLink.ModifyParamsCustomField]rw   "PaymentLink.ModifyParamsCustomTextr  r  r  r  Literal['']|strr  'PaymentLink.ModifyParamsInvoiceCreationr   PaymentLink.ModifyParamsLineItemr  r{   )PaymentLink.ModifyParamsPaymentIntentDatar  r  a  Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]r  z0Literal['']|PaymentLink.ModifyParamsRestrictionsr  z=Literal['']|PaymentLink.ModifyParamsShippingAddressCollectionr  (PaymentLink.ModifyParamsSubscriptionDatar  'PaymentLink.ModifyParamsTaxIdCollectionr  N)
r!   r"   r#   r   r?   r%   r   r   r$   r   r&   r&   r&   r'   ModifyParamsE  sz   
 ri  c                   @   r  )r`  9PaymentLink.ModifyParamsAfterCompletionHostedConfirmationr/   /PaymentLink.ModifyParamsAfterCompletionRedirectr0   r1   r2   Nr  r&   r&   r&   r'   ModifyParamsAfterCompletion  r   rl  c                   @   r   )rj  r   Nr  r&   r&   r&   r'   -ModifyParamsAfterCompletionHostedConfirmation  r)   rm  c                   @   r*   )rk  r+   Nr,   r&   r&   r&   r'   #ModifyParamsAfterCompletionRedirect  r.   rn  c                   @   r  )ra  r=   -PaymentLink.ModifyParamsAutomaticTaxLiabilityr>   Nr  r&   r&   r&   r'   ModifyParamsAutomaticTax  r  rp  c                   @   r  )ro  r7   r8   r2   Nr  r&   r&   r&   r'   !ModifyParamsAutomaticTaxLiability  rY   rq  c                   @   r  )z#PaymentLink.ModifyParamsCustomField+PaymentLink.ModifyParamsCustomFieldDropdownra   rb   (PaymentLink.ModifyParamsCustomFieldLabelrQ   *PaymentLink.ModifyParamsCustomFieldNumericrc   rd   'PaymentLink.ModifyParamsCustomFieldTextre   rf   r2   Nr  r&   r&   r&   r'   ModifyParamsCustomField  r  rv  c                   @   rA   )rr  1PaymentLink.ModifyParamsCustomFieldDropdownOptionrU   Nr  r&   r&   r&   r'   ModifyParamsCustomFieldDropdown  r)   rx  c                   @   rP   )rw  rQ   rR   Nr,   r&   r&   r&   r'   %ModifyParamsCustomFieldDropdownOption  rT   ry  c                   @   r  )rs  rW   r2   Nr  r&   r&   r&   r'   ModifyParamsCustomFieldLabel  r  rz  c                   @   rZ   )rt  r[   r\   Nr  r&   r&   r&   r'   ModifyParamsCustomFieldNumeric  rY   r{  c                   @   rZ   )ru  r[   r\   Nr  r&   r&   r&   r'   ModifyParamsCustomFieldText#  rY   r|  c                   @   r  )
rb  z9Literal['']|PaymentLink.ModifyParamsCustomTextAfterSubmitrm   z=Literal['']|PaymentLink.ModifyParamsCustomTextShippingAddressrn   z4Literal['']|PaymentLink.ModifyParamsCustomTextSubmitro   zFLiteral['']|PaymentLink.ModifyParamsCustomTextTermsOfServiceAcceptancerp   Nr  r&   r&   r&   r'   ModifyParamsCustomText-  r!  r}  c                   @   r*   )z-PaymentLink.ModifyParamsCustomTextAfterSubmitrh   Nr,   r&   r&   r&   r'   !ModifyParamsCustomTextAfterSubmitG  r.   r~  c                   @   r*   )z1PaymentLink.ModifyParamsCustomTextShippingAddressrh   Nr,   r&   r&   r&   r'   %ModifyParamsCustomTextShippingAddressM  r.   r  c                   @   r*   )z(PaymentLink.ModifyParamsCustomTextSubmitrh   Nr,   r&   r&   r&   r'   ModifyParamsCustomTextSubmitS  r.   r  c                   @   r*   )z:PaymentLink.ModifyParamsCustomTextTermsOfServiceAcceptancerh   Nr,   r&   r&   r&   r'   .ModifyParamsCustomTextTermsOfServiceAcceptanceY  r.   r  c                   @   r  )rd  r=   2PaymentLink.ModifyParamsInvoiceCreationInvoiceDatar~   Nr  r&   r&   r&   r'   ModifyParamsInvoiceCreation_  r(  r  c                   @   r)  )r  r*  rv   zOLiteral['']|List[PaymentLink.ModifyParamsInvoiceCreationInvoiceDataCustomField]rw   rx   ry   8PaymentLink.ModifyParamsInvoiceCreationInvoiceDataIssuerrz   r,  r{   zNLiteral['']|PaymentLink.ModifyParamsInvoiceCreationInvoiceDataRenderingOptionsr|   Nr-  r&   r&   r&   r'   &ModifyParamsInvoiceCreationInvoiceDatak  r/  r  c                   @   rP   )z=PaymentLink.ModifyParamsInvoiceCreationInvoiceDataCustomFieldrr   rR   Nr,   r&   r&   r&   r'   1ModifyParamsInvoiceCreationInvoiceDataCustomField  rT   r  c                   @   r  )r  r7   r8   r2   Nr  r&   r&   r&   r'   ,ModifyParamsInvoiceCreationInvoiceDataIssuer  rY   r  c                   @   rA   )zBPaymentLink.ModifyParamsInvoiceCreationInvoiceDataRenderingOptionsr2  rt   Nr  r&   r&   r&   r'   6ModifyParamsInvoiceCreationInvoiceDataRenderingOptions  r  r  c                   @   s2   e Zd ZU ed ed< 	 eed< 	 ee ed< dS )re  2PaymentLink.ModifyParamsLineItemAdjustableQuantityr5  idr7  Nr8  r&   r&   r&   r'   ModifyParamsLineItem  s   
 r  c                   @   r:  )r  r=   r;  r<  Nr=  r&   r&   r&   r'   &ModifyParamsLineItemAdjustableQuantity  r?  r  c                   @   sR   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< dS )	rf  rc  rx   r,  r{   r   r   r   Nr  r&   r&   r&   r'   ModifyParamsPaymentIntentData  s   
 r  c                   @   rB  )z$PaymentLink.ModifyParamsRestrictions5PaymentLink.ModifyParamsRestrictionsCompletedSessionsr   NrD  r&   r&   r&   r'   ModifyParamsRestrictions  rF  r  c                   @   r*   )r  r   Nr   r&   r&   r&   r'   )ModifyParamsRestrictionsCompletedSessions  r.   r  c                   @   r   )z1PaymentLink.ModifyParamsShippingAddressCollectionr   r  Nr  r&   r&   r&   r'   %ModifyParamsShippingAddressCollection  r  r  c                   @   s6   e Zd ZU ed ed< 	 ed ed< 	 ed ed< dS )rg  7PaymentLink.ModifyParamsSubscriptionDataInvoiceSettingsr  r,  r{   zALiteral['']|PaymentLink.ModifyParamsSubscriptionDataTrialSettingsr  Nr  r&   r&   r&   r'   ModifyParamsSubscriptionData  s   
 r  c                   @   rA   )r  =PaymentLink.ModifyParamsSubscriptionDataInvoiceSettingsIssuerrz   Nr  r&   r&   r&   r'   +ModifyParamsSubscriptionDataInvoiceSettings  r  r  c                   @   r  )r  r7   r8   r2   Nr  r&   r&   r&   r'   1ModifyParamsSubscriptionDataInvoiceSettingsIssuer 	  rY   r  c                   @   rB  )z5PaymentLink.ModifyParamsSubscriptionDataTrialSettings@PaymentLink.ModifyParamsSubscriptionDataTrialSettingsEndBehaviorr  NrD  r&   r&   r&   r'   )ModifyParamsSubscriptionDataTrialSettings
	  rF  r  c                   @   rA   )r  r  r  NrF   r&   r&   r&   r'   4ModifyParamsSubscriptionDataTrialSettingsEndBehavior	  r)   r  c                   @   rS  )rh  r=   r  rM   NrT  r&   r&   r&   r'   ModifyParamsTaxIdCollection	  rV  r  c                   @   s   e Zd ZU eee  ed< dS )PaymentLink.RetrieveParamsr  N)r!   r"   r#   r   r   r$   r%   r&   r&   r&   r'   RetrieveParams"	  s   
 r  r]  r  r  r   applicationr  r  r  r  r  r  r  rw   r  r  r  r  r  r  r   r  livemoder{   objectr   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r+   paramsr  returnc                 K   s   t d| jd|  |dS ))
        Creates a payment link.
        r   postr  )r   _static_request	class_urlclsr  r&   r&   r'   create	  s   zPaymentLink.createc                    s"   t d| jd|  |dI dH S )r  r   r  r  N)r   _static_request_asyncr  r  r&   r&   r'   create_async	  s   
zPaymentLink.create_asyncr\  c                 K   s4   | j d|  |d}t|tstdt|j |S )7
        Returns a list of your payment links.
        getr  %Expected list object from API, got %s)r  r  
isinstancer   	TypeErrorr2   r!   r  r  resultr&   r&   r'   list	  s   
zPaymentLink.listc                    s<   | j d|  |dI dH }t|tstdt|j |S )r  r  r  Nr  )r  r  r  r   r  r2   r!   r  r&   r&   r'   
list_async	  s   
zPaymentLink.list_asyncrX  c                 K   s&   t td | jddjt|d|d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   r  +/v1/payment_links/{payment_link}/line_itemsr   r  )r   r   r  formatr
   r  r   r  r&   r&   r'   _cls_list_line_items
  s   	z PaymentLink._cls_list_line_itemsc                 K      dS r  Nr&   r   r  r&   r&   r'   list_line_items 
  s   zPaymentLink.list_line_itemsc                 K   r  r  r&   r9   r  r&   r&   r'   r  *
  s   r  c              	   K   s,   t td | jddjt| dd|dS )r  r   r  r  r  r  r  )r   r   _requestr  r
   r  r  r&   r&   r'   r  3
  s   c                    s.   t td | jddjt|d|dI dH S )r  r   r  r  r  r  N)r   r   r  r  r
   r  r&   r&   r'   _cls_list_line_items_asyncE
  s   	
z&PaymentLink._cls_list_line_items_asyncc                       dS r  r&   r  r&   r&   r'   list_line_items_asyncY
  s   z!PaymentLink.list_line_items_asyncc                    r  r  r&   r  r&   r&   r'   r  c
  s   r  c              	      s4   t td | jddjt| dd|dI dH S )r  r   r  r  r  r  r  N)r   r   _request_asyncr  r
   r  r  r&   r&   r'   r  l
  s   
r_  c                 K   s*   d|   t|f }td| jd||dS ))
        Updates a payment link.
        %s/%sr   r  r  )r  r
   r   r  r  r  r  r+   r&   r&   r'   modify~
  s   zPaymentLink.modifyc                    s2   d|   t|f }td| jd||dI dH S )r  r  r   r  r  N)r  r
   r   r  r  r&   r&   r'   modify_async
  s   
zPaymentLink.modify_asyncr  c                 K   s   | |fi |}|   |S )*
        Retrieve a payment link.
        )refreshr  r  r  instancer&   r&   r'   retrieve
  s   zPaymentLink.retrievec                    s$   | |fi |}|  I dH  |S )r  N)refresh_asyncr  r&   r&   r'   retrieve_async
  s   zPaymentLink.retrieve_async)r  r  r  rw   r  r  r  r  r  r  r  r  r  r  N)r!   r"   r#   __doc__r   r   r   r%   r   r4   r@   rO   rg   rq   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  r1  r3  r9  r>  r@  rA  rE  rG  rH  rI  rL  rN  rO  rQ  rR  rU  rW  r[  r^  ri  rl  rm  rn  rp  rq  rv  rx  ry  rz  r{  r|  r}  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r?   r   r   r^   r  r$   r   r   r   classmethodr   r  r  r  r  r  r   staticmethodr  r	   r  r  r  r  r  r  r3   r&   r&   r&   r'   r      sJ  
 G0H  w
4
 3





$

, x

j





$

 x

'
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&   r'   <module>   s*    
