
    +hK                       d dl mZ d dlmZmZmZ d dlmZ d dlm	Z	 d dl
mZ d dlmZ d dl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 d d
l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)    )util)CreateableAPIResourceListableAPIResourceUpdateableAPIResource)ExpandableField)
ListObject)RequestOptions)StripeObject)class_method_variant)ClassVarDictListOptionalcastoverload)LiteralNotRequired	TypedDictUnpackTYPE_CHECKING)
quote_plus)Account)Application)LineItem)ShippingRate)TaxIdc                   H
   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erh 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      Z0 G dN dOe      Z1 G dP dQe      Z2 G dR dSe      Z3 G dT dUe      Z4 G dV dWe      Z5 G dX dYe      Z6 G dZ d[e      Z7 G d\ d]e      Z8 G d^ d_e      Z9 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      ZA G dp dqe      ZB G dr dse      ZC G dt due      ZD G dv dwe      ZE G dx dye      ZF G dz d{e      ZG G d| d}e      ZH G d~ de      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      ZPeQed<   	 e	ed<   eQed<   	 eReSd      ed<   	 eReT   ed<   	 eReU   ed<   	 e
ed<   ed   ed<   	 eRe   ed<   	 eVed<   	 eWe   ed<   	 eed<   ed   ed<   	 eVed<   	 eRe   ed<   	 eReXd      ed<   	 eQed<   	 eYeVeVf   ed<   	 ed   ed<   	 eReSd      ed<   	 eRe   ed<   	 ed   ed<   	 eReWed         ed<   	 eed<   eRe   ed<   	 eWe   ed<   	 ed   ed<   	 eRe   ed<   	 eed<   eRe   ed<   	 eVed<   	 eZ	 	 	 	 ddeReV   deReV   deReV   deReV   de[d   dd fd       Z\eZ	 	 	 ddeReV   deReV   deReV   de[d   deXd    f
d       Z]eZ	 	 	 ddeVdeReV   deReV   deReV   de[d   deXd   fd       Z^e_e`	 	 	 ddeVdeReV   deReV   deReV   de[d   deXd   fd              Zae_	 ddeReV   de[d   deXd   fd       Za ebdë      	 ddeReV   de[d   deXd   fdĄ       ZaeZdeVde[d   dd fdƄ       ZceZdeVde[d   dd fdȄ       Zde	e
eeeeeeeeeeedɜZey)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/html/venv/lib/python3.12/site-packages/stripe/api_resources/payment_link.pyHostedConfirmationr$   0   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.   Redirectr1   6       Hr-   r4   hosted_confirmationredirectr6   r7   typeN)
r'   r(   r)   r
   r/   r4   r   r+   r   _inner_class_typesr,   r-   r.   AfterCompletionr"   /   sT    	 		| 	 &&8998$$788	 $6 
r-   r;   c                       e Zd ZU eed<   y)PaymentLink.AutomaticTaxenabledNr'   r(   r)   boolr+   r,   r-   r.   AutomaticTaxr=   G       	r-   rA   c                   <    e Zd ZU eed      ed<   	 eed      ed<   y)PaymentLink.ConsentCollection)autonone
promotions)rF   requiredterms_of_serviceN)r'   r(   r)   r   r   r+   r,   r-   r.   ConsentCollectionrD   M   s/    W^455	 #7+=#>??	r-   rJ   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                   >    e Zd ZU  G d de      Z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valueNr3   r,   r-   r.   OptionrP   Y   s    
 
r-   rS   optionsN)r'   r(   r)   r
   rS   r   r+   r:   r,   r-   r.   DropdownrN   X   s,      &\! #,V!4r-   rU   c                   0    e Zd ZU ee   ed<   	 ed   ed<   y)PaymentLink.CustomField.Labelcustomr9   N)r'   r(   r)   r   r*   r+   r   r,   r-   r.   LabelrW   i   s#    SM! (##r-   rY   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)PaymentLink.CustomField.Numericmaximum_lengthminimum_lengthNr'   r(   r)   r   intr+   r,   r-   r.   Numericr[   s   "    $SM) %SM)r-   r`   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)PaymentLink.CustomField.Textr\   r]   Nr^   r,   r-   r.   Textrc   }   ra   r-   rd   dropdownkeyrQ   numericoptionaltextre   rg   ri   r9   )re   rQ   rg   ri   N)r'   r(   r)   r
   rU   rY   r`   rd   r   r+   r*   r@   r   r:   r,   r-   r.   CustomFieldrL   W   s    	5| 	5"	L 		l 		< 	 8$$	 '""	 tn344	 !	
r-   rk   c                       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e   ed<   	 ee   ed	<   	 eeed
Z	y)PaymentLink.CustomTextc                       e Zd ZU eed<   y)&PaymentLink.CustomText.ShippingAddressmessageNr3   r,   r-   r.   ShippingAddressro          Lr-   rq   c                       e Zd ZU eed<   y)PaymentLink.CustomText.Submitrp   Nr3   r,   r-   r.   Submitrt      rr   r-   ru   c                       e Zd ZU eed<   y)/PaymentLink.CustomText.TermsOfServiceAcceptancerp   Nr3   r,   r-   r.   TermsOfServiceAcceptancerw      rr   r-   rx   shipping_addresssubmitterms_of_service_acceptance)ry   rz   r{   N)
r'   r(   r)   r
   rq   ru   rx   r   r+   r:   r,   r-   r.   
CustomTextrm      sp    	l 		\ 		| 	 #?33	   	 &..F%GG	 !0+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eeed         e	d<   	 e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dZy)'PaymentLink.InvoiceCreation.InvoiceDatac                   $    e Zd ZU eed<   	 eed<   y)3PaymentLink.InvoiceCreation.InvoiceData.CustomFieldnamerR   Nr3   r,   r-   r.   rk   r      s    	 
r-   rk   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metadatarendering_options)r   r   N)r'   r(   r)   r
   rk   r   r   r   r   r+   r*   r   r:   r,   r-   r.   InvoiceDatar      s    l <  &d?7+C&DEE $D$566 "#& SM! tCH~..  ((899 "-%5"r-   r   r>   invoice_dataN)	r'   r(   r)   r
   r   r@   r+   r   r:   r,   r-   r.   InvoiceCreationr~      s:    ,	, ,	\ 	 {++	 -k: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<   y	)
PaymentLink.PaymentIntentData)	automaticautomatic_asyncmanualcapture_methodr   r   )off_session
on_sessionsetup_future_usagestatement_descriptorstatement_descriptor_suffixN)r'   r(   r)   r   r   r+   r*   r   r,   r-   r.   PaymentIntentDatar      s}     <=
 	
	 c]"	 sCx. 	 %W-H%IJJ	 'sm+	 &.c]2	r-   r   c                       e Zd ZU eed<   y)!PaymentLink.PhoneNumberCollectionr>   Nr?   r,   r-   r.   PhoneNumberCollectionr     rB   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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&    lnp
 p	
b	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)   r_   r+   r   r,   r-   r.   ShippingOptionr    s    	 '~66	r-   r  c                   F    e Zd ZU ee   ed<   	 eeef   ed<   	 ee   ed<   y)PaymentLink.SubscriptionDatar   r   trial_period_daysN)r'   r(   r)   r   r*   r+   r   r_   r,   r-   r.   SubscriptionDatar    s7    c]"	 sCx. 	 $C=(	r-   r  c                       e Zd ZU eed<   y)PaymentLink.TaxIdCollectionr>   Nr?   r,   r-   r.   TaxIdCollectionr  ,  rB   r-   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   r_   r+   r   r,   r-   r.   TransferDatar  2  s#    	 %Y//	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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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d0<   	 ed1   ed2<   y3)4PaymentLink.CreateParams'PaymentLink.CreateParamsAfterCompletionafter_completionr@   allow_promotion_codesr_   application_fee_amountfloatapplication_fee_percent$PaymentLink.CreateParamsAutomaticTaxautomatic_taxLiteral['auto', 'required']billing_address_collection)PaymentLink.CreateParamsConsentCollectionconsent_collectionr*   currencyz)List[PaymentLink.CreateParamsCustomField]r   "PaymentLink.CreateParamsCustomTextcustom_text Literal['always', 'if_required']customer_creation	List[str]expand'PaymentLink.CreateParamsInvoiceCreationinvoice_creation PaymentLink.CreateParamsLineItem
line_itemsDict[str, str]r   on_behalf_of)PaymentLink.CreateParamsPaymentIntentDatapayment_intent_datapayment_method_collectionaB  List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'us_bank_account', 'wechat_pay']]payment_method_types-PaymentLink.CreateParamsPhoneNumberCollectionphone_number_collection1PaymentLink.CreateParamsShippingAddressCollectionshipping_address_collectionz,List[PaymentLink.CreateParamsShippingOption]shipping_optionsz(Literal['auto', '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,   r-   r.   CreateParamsr  >  s#   )9  $/v#66 %0$66 &1%99 ''MNN )4-)  !,;!  "%(( ';  %%IJJ  ++MNN  ,, *9  ?@@ ""233 &e,, "-;"  (32(  #. U#  &1?& 
 *5C*  *>  %:   +:    +9   ''MNNr-   r  c                   *    e Zd ZU ed   ed<   	 eed<   y)r  r_   r  r  Nr'   r(   r)   r   r+   r*   r,   r-   r.   CreateParamsTransferDataz$PaymentLink.CreateParamsTransferData  s    && r-   r  c                       e Zd ZU eed<   y)r  r>   Nr?   r,   r-   r.   CreateParamsTaxIdCollectionz'PaymentLink.CreateParamsTaxIdCollection      Mr-   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  r*   r   r  r   r_   r  Nr'   r(   r)   r   r+   r,   r-   r.   CreateParamsSubscriptionDataz(PaymentLink.CreateParamsSubscriptionData  s7    $U++ ""233  +511r-   r  c                       e Zd ZU ed   ed<   y)&PaymentLink.CreateParamsShippingOptionr*   r  Nr  r,   r-   r.   CreateParamsShippingOptionr    s    &u--r-   r  c                   $    e Zd ZU eed      ed<   y)r  r   r  Nr  r,   r-   r.   %CreateParamsShippingAddressCollectionz1PaymentLink.CreateParamsShippingAddressCollection  &    #lnp  pbr-   r  c                       e Zd ZU eed<   y)r  r>   Nr?   r,   r-   r.   !CreateParamsPhoneNumberCollectionz-PaymentLink.CreateParamsPhoneNumberCollection  r  r-   r  c                   x    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	<   	 ed   ed
<   y)r  z1Literal['automatic', 'automatic_async', 'manual']r   r*   r   r  r   z$Literal['off_session', 'on_session']r   r   r   Nr  r,   r-   r.   CreateParamsPaymentIntentDataz)PaymentLink.CreateParamsPaymentIntentData  sw    'C  %U++ ""233 !,6!  #.e"44 *5U);;r-   r  c                   6    e Zd ZU ed   ed<   	 eed<   	 eed<   y)r  2PaymentLink.CreateParamsLineItemAdjustableQuantityadjustable_quantitypricequantityN)r'   r(   r)   r   r+   r*   r_   r,   r-   r.   CreateParamsLineItemz PaymentLink.CreateParamsLineItem  s/    !,D"  J Mr-   r  c                   <    e Zd ZU eed<   	 ed   ed<   	 ed   ed<   y)r  r>   r_   maximumminimumNr'   r(   r)   r@   r+   r   r,   r-   r.   &CreateParamsLineItemAdjustableQuantityz2PaymentLink.CreateParamsLineItemAdjustableQuantity&  0    M !'' !''r-   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  r>   2PaymentLink.CreateParamsInvoiceCreationInvoiceDatar   Nr  r,   r-   r.   CreateParamsInvoiceCreationz'PaymentLink.CreateParamsInvoiceCreation4  #    M &D r-   r  c                   x    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	<   	 ed
   ed<   y)r  Literal['']|List[str]r   zOLiteral['']|List[PaymentLink.CreateParamsInvoiceCreationInvoiceDataCustomField]r   r*   r   r   Literal['']|Dict[str, str]r   zNLiteral['']|PaymentLink.CreateParamsInvoiceCreationInvoiceDataRenderingOptionsr   Nr  r,   r-   r.   &CreateParamsInvoiceCreationInvoiceDataz2PaymentLink.CreateParamsInvoiceCreationInvoiceData@  x    ()@AA 'a  %U++  && "">??  +`  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  ^       !,M! r-   r  c                   $    e Zd ZU eed<   	 eed<   y)=PaymentLink.CreateParamsInvoiceCreationInvoiceDataCustomFieldr   rR   Nr3   r,   r-   r.   1CreateParamsInvoiceCreationInvoiceDataCustomFieldr  h      I Jr-   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  z=Literal['']|PaymentLink.CreateParamsCustomTextShippingAddressry   z4Literal['']|PaymentLink.CreateParamsCustomTextSubmitrz   zFLiteral['']|PaymentLink.CreateParamsCustomTextTermsOfServiceAcceptancer{   Nr  r,   r-   r.   CreateParamsCustomTextz"PaymentLink.CreateParamsCustomTextr  E    )O   F  *5X* r-   r  c                       e Zd ZU eed<   y):PaymentLink.CreateParamsCustomTextTermsOfServiceAcceptancerp   Nr3   r,   r-   r.   .CreateParamsCustomTextTermsOfServiceAcceptancer    rr   r-   r  c                       e Zd ZU eed<   y)(PaymentLink.CreateParamsCustomTextSubmitrp   Nr3   r,   r-   r.   CreateParamsCustomTextSubmitr    rr   r-   r	  c                       e Zd ZU eed<   y)1PaymentLink.CreateParamsCustomTextShippingAddressrp   Nr3   r,   r-   r.   %CreateParamsCustomTextShippingAddressr    rr   r-   r  c                   ~    e Zd ZU ed   ed<   	 eed<   	 ded<   	 ed   ed<   	 ed   ed	<   	 ed
   ed<   	 ed   ed<   y)#PaymentLink.CreateParamsCustomField+PaymentLink.CreateParamsCustomFieldDropdownre   rf   (PaymentLink.CreateParamsCustomFieldLabelrQ   *PaymentLink.CreateParamsCustomFieldNumericrg   r@   rh   'PaymentLink.CreateParamsCustomFieldTextri   rj   r9   Nr'   r(   r)   r   r+   r*   r   r,   r-   r.   CreateParamsCustomFieldr    {    !=  H >= !!MNN "&)) GHH 788r-   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  r_   r\   r]   Nr  r,   r-   r.   CreateParamsCustomFieldTextz'PaymentLink.CreateParamsCustomFieldText  $    '.. (..r-   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  r_   r\   r]   Nr  r,   r-   r.   CreateParamsCustomFieldNumericz*PaymentLink.CreateParamsCustomFieldNumeric  r  r-   r  c                   *    e Zd ZU eed<   	 ed   ed<   y)r  rX   r9   Nr'   r(   r)   r*   r+   r   r,   r-   r.   CreateParamsCustomFieldLabelz(PaymentLink.CreateParamsCustomFieldLabel      K (##r-   r  c                       e Zd ZU ed   ed<   y)r  1PaymentLink.CreateParamsCustomFieldDropdownOptionrT   Nr'   r(   r)   r   r+   r,   r-   r.   CreateParamsCustomFieldDropdownz+PaymentLink.CreateParamsCustomFieldDropdown      MNNr-   r"  c                   $    e Zd ZU eed<   	 eed<   y)r   rQ   rR   Nr3   r,   r-   r.   %CreateParamsCustomFieldDropdownOptionz1PaymentLink.CreateParamsCustomFieldDropdownOption      J Jr-   r%  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  zLiteral['auto', 'none']rG   zLiteral['none', 'required']rI   Nr  r,   r-   r.   CreateParamsConsentCollectionz)PaymentLink.CreateParamsConsentCollection  s&    #$=>>
 **GHHr-   r(  c                       e Zd ZU eed<   y)r  r>   Nr?   r,   r-   r.   CreateParamsAutomaticTaxz$PaymentLink.CreateParamsAutomaticTax  r  r-   r*  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  9PaymentLink.CreateParamsAfterCompletionHostedConfirmationr6   /PaymentLink.CreateParamsAfterCompletionRedirectr7   r8   r9   Nr'   r(   r)   r   r+   r   r,   r-   r.   CreateParamsAfterCompletionz'PaymentLink.CreateParamsAfterCompletion  A    !,K"  "A  ;<<r-   r/  c                       e Zd ZU eed<   y)r-  r2   Nr3   r,   r-   r.   #CreateParamsAfterCompletionRedirectz/PaymentLink.CreateParamsAfterCompletionRedirect  r5   r-   r2  c                       e Zd ZU ed   ed<   y)r,  r*   r%   Nr  r,   r-   r.   -CreateParamsAfterCompletionHostedConfirmationz9PaymentLink.CreateParamsAfterCompletionHostedConfirmation      '..r-   r4  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
)PaymentLink.ListParamsr@   activer*   ending_beforer  r  r_   limitstarting_afterNr  r,   r-   r.   
ListParamsr7    sZ    '' 'u--  ,, u%% (..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)	PaymentLink.ListLineItemsParamsr*   r9  r  r  r_   r:  r;  Nr  r,   r-   r.   ListLineItemsParamsr>  -  sH    &u--  ,, u%% (..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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d   ed<   	 ed   ed <   y!)"PaymentLink.ModifyParamsr@   r8  'PaymentLink.ModifyParamsAfterCompletionr  r  $PaymentLink.ModifyParamsAutomaticTaxr  r  r  z5Literal['']|List[PaymentLink.ModifyParamsCustomField]r   "PaymentLink.ModifyParamsCustomTextr  r  r  r  r  'PaymentLink.ModifyParamsInvoiceCreationr  z&List[PaymentLink.ModifyParamsLineItem]r  r  r   )PaymentLink.ModifyParamsPaymentIntentDatar  r  aN  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', 'oxxo', 'p24', 'paynow', 'paypal', 'pix', 'promptpay', 'sepa_debit', 'sofort', 'us_bank_account', 'wechat_pay']]r  z=Literal['']|PaymentLink.ModifyParamsShippingAddressCollectionr  (PaymentLink.ModifyParamsSubscriptionDatar  Nr  r,   r-   r.   ModifyParamsrA  ?  sg   '' *9  $/v#66 ''MNN )4-)  'G  %%IJJ  ++MNN  ,, *9  $$LMM ""233 "-;"  (32(  #. a#  *5O*   +:  r-   rH  c                       e Zd ZU ed   ed<   y)rG  r  r   Nr  r,   r-   r.   ModifyParamsSubscriptionDataz(PaymentLink.ModifyParamsSubscriptionData  s    !">??r-   rJ  c                   $    e Zd ZU eed      ed<   y)1PaymentLink.ModifyParamsShippingAddressCollectionr   r  Nr  r,   r-   r.   %ModifyParamsShippingAddressCollectionrL    r  r-   rM  c                   T    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   y)rF  zLiteral['']|strr   r  r   r   r   Nr  r,   r-   r.   ModifyParamsPaymentIntentDataz)PaymentLink.ModifyParamsPaymentIntentData  sL    $%677 "">?? #..?"@@ *55F)GGr-   rO  c                   <    e Zd ZU ed   ed<   	 eed<   	 ed   ed<   y) PaymentLink.ModifyParamsLineItem2PaymentLink.ModifyParamsLineItemAdjustableQuantityr  idr_   r  Nr  r,   r-   r.   ModifyParamsLineItemrQ    s5    !,D"  G "%((r-   rT  c                   <    e Zd ZU eed<   	 ed   ed<   	 ed   ed<   y)rR  r>   r_   r  r  Nr  r,   r-   r.   &ModifyParamsLineItemAdjustableQuantityz2PaymentLink.ModifyParamsLineItemAdjustableQuantity  r  r-   rV  c                   *    e Zd ZU eed<   	 ed   ed<   y)rE  r>   2PaymentLink.ModifyParamsInvoiceCreationInvoiceDatar   Nr  r,   r-   r.   ModifyParamsInvoiceCreationz'PaymentLink.ModifyParamsInvoiceCreation  r  r-   rY  c                   x    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	<   	 ed
   ed<   y)rX  r  r   zOLiteral['']|List[PaymentLink.ModifyParamsInvoiceCreationInvoiceDataCustomField]r   r*   r   r   r  r   zNLiteral['']|PaymentLink.ModifyParamsInvoiceCreationInvoiceDataRenderingOptionsr   Nr  r,   r-   r.   &ModifyParamsInvoiceCreationInvoiceDataz2PaymentLink.ModifyParamsInvoiceCreationInvoiceData  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ed<   	 eed<   y)=PaymentLink.ModifyParamsInvoiceCreationInvoiceDataCustomFieldr   rR   Nr3   r,   r-   r.   1ModifyParamsInvoiceCreationInvoiceDataCustomFieldr`    r   r-   ra  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)rD  z=Literal['']|PaymentLink.ModifyParamsCustomTextShippingAddressry   z4Literal['']|PaymentLink.ModifyParamsCustomTextSubmitrz   zFLiteral['']|PaymentLink.ModifyParamsCustomTextTermsOfServiceAcceptancer{   Nr  r,   r-   r.   ModifyParamsCustomTextz"PaymentLink.ModifyParamsCustomText  r  r-   rc  c                       e Zd ZU eed<   y):PaymentLink.ModifyParamsCustomTextTermsOfServiceAcceptancerp   Nr3   r,   r-   r.   .ModifyParamsCustomTextTermsOfServiceAcceptancere    rr   r-   rf  c                       e Zd ZU eed<   y)(PaymentLink.ModifyParamsCustomTextSubmitrp   Nr3   r,   r-   r.   ModifyParamsCustomTextSubmitrh     rr   r-   ri  c                       e Zd ZU eed<   y)1PaymentLink.ModifyParamsCustomTextShippingAddressrp   Nr3   r,   r-   r.   %ModifyParamsCustomTextShippingAddressrk  &  rr   r-   rl  c                   ~    e Zd ZU ed   ed<   	 eed<   	 ded<   	 ed   ed<   	 ed   ed	<   	 ed
   ed<   	 ed   ed<   y)#PaymentLink.ModifyParamsCustomField+PaymentLink.ModifyParamsCustomFieldDropdownre   rf   (PaymentLink.ModifyParamsCustomFieldLabelrQ   *PaymentLink.ModifyParamsCustomFieldNumericrg   r@   rh   'PaymentLink.ModifyParamsCustomFieldTextri   rj   r9   Nr  r,   r-   r.   ModifyParamsCustomFieldrn  ,  r  r-   rs  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rr  r_   r\   r]   Nr  r,   r-   r.   ModifyParamsCustomFieldTextz'PaymentLink.ModifyParamsCustomFieldTextL  r  r-   ru  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)rq  r_   r\   r]   Nr  r,   r-   r.   ModifyParamsCustomFieldNumericz*PaymentLink.ModifyParamsCustomFieldNumericV  r  r-   rw  c                   *    e Zd ZU eed<   	 ed   ed<   y)rp  rX   r9   Nr  r,   r-   r.   ModifyParamsCustomFieldLabelz(PaymentLink.ModifyParamsCustomFieldLabel`  r  r-   ry  c                       e Zd ZU ed   ed<   y)ro  1PaymentLink.ModifyParamsCustomFieldDropdownOptionrT   Nr!  r,   r-   r.   ModifyParamsCustomFieldDropdownz+PaymentLink.ModifyParamsCustomFieldDropdownj  r#  r-   r|  c                   $    e Zd ZU eed<   	 eed<   y)r{  rQ   rR   Nr3   r,   r-   r.   %ModifyParamsCustomFieldDropdownOptionz1PaymentLink.ModifyParamsCustomFieldDropdownOptionp  r&  r-   r~  c                       e Zd ZU eed<   y)rC  r>   Nr?   r,   r-   r.   ModifyParamsAutomaticTaxz$PaymentLink.ModifyParamsAutomaticTaxz  r  r-   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)rB  9PaymentLink.ModifyParamsAfterCompletionHostedConfirmationr6   /PaymentLink.ModifyParamsAfterCompletionRedirectr7   r8   r9   Nr.  r,   r-   r.   ModifyParamsAfterCompletionz'PaymentLink.ModifyParamsAfterCompletion  r0  r-   r  c                       e Zd ZU eed<   y)r  r2   Nr3   r,   r-   r.   #ModifyParamsAfterCompletionRedirectz/PaymentLink.ModifyParamsAfterCompletionRedirect  r5   r-   r  c                       e Zd ZU ed   ed<   y)r  r*   r%   Nr  r,   r-   r.   -ModifyParamsAfterCompletionHostedConfirmationz9PaymentLink.ModifyParamsAfterCompletionHostedConfirmation  r5  r-   r  c                       e Zd ZU ed   ed<   y)PaymentLink.RetrieveParamsr  r  Nr  r,   r-   r.   RetrieveParamsr    s    ,,r-   r  r8  r  r  r   applicationr  r  r  )rE   rH   r  r  r  r   r  )alwaysif_requiredr  rS  r  r   r  livemoder   objectr   r  r  r  )affirmafterpay_clearpayalipayau_becs_debit
bacs_debit
bancontactblikboletocardcashappepsfpxgiropaygrabpayidealklarnakonbinilinkoxxop24paynowpaypalpix	promptpay
sepa_debitsofortus_bank_account
wechat_payr  r  r  r  )rE   bookdonatepayr  r  r  r  r2   Napi_keyidempotency_keystripe_versionstripe_accountparamsr  returnc                 `    t        d| j                  d| j                         |||||            S )z)
        Creates a payment link.
        r   post)r   _static_request	class_url)clsr  r  r  r  r  s         r.   createzPaymentLink.create3  s=     
 	
r-   r7  c                     | j                  d| j                         ||||      }t        |t              s!t	        dt        |      j                  z        |S )z7
        Returns a list of your payment links.
        getr  r  r  r  z%Expected list object from API, got %s)r  r  
isinstancer   	TypeErrorr9   r'   )r  r  r  r  r  results         r.   listzPaymentLink.listL  sf     $$MMO)) % 
 &*-7<((* 
 r-   r>  c                     t        t        d   | j                  ddj                  t	        j
                  |            ||||            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   sanitize_id)r  r   r  r  r  r  s         r.   _cls_list_line_itemsz PaymentLink._cls_list_line_itemsh  s_     z"=DD!%!1!1,!? E   --   	
 	
r-   c                      yr  Nr,   )r   r  r  r  r  s        r.   list_line_itemszPaymentLink.list_line_items  s     	r-   c                      yr  r,   selfr  r  s      r.   r  zPaymentLink.list_line_items  s     	r-   r  c                     t        t        d   | j                  ddj                  t	        j
                  | j                  d                  ||            S )r  r   r  r  rS  r  )r  r  )r   r   _requestr  r   r  r  r  s      r.   r  zPaymentLink.list_line_items  s_     z"MM=DD!%!1!1$((4.!A E  !0  

 
	
r-   rA  c                 z    | j                         dt        |      }t        d| j                  d||            S )z)
        Updates a payment link.
        /r   r  )r  )r  r   r   r  )r  rS  r  r2   s       r.   modifyzPaymentLink.modify  s=     *R.9F;
 	
r-   r  c                 8     | |fi |}|j                          |S )z*
        Retrieve a payment link.
        )refresh)r  rS  r  instances       r.   retrievezPaymentLink.retrieve  s$     r$V$r-   )r  r  r  r   r  r  r  r  r  r  r  r  r  )NNNN)NNN)N)fr'   r(   r)   __doc__r    r   r   r+   r
   r;   rA   rJ   rk   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/  r2  r4  r<  r?  rH  rJ  rM  rO  rT  rV  rY  r[  r^  ra  rc  rf  ri  rl  rs  ru  rw  ry  r|  r~  r  r  r  r  r  r@   r   r   r_   r  r*   r   r   r   classmethodr   r  r  r  r   staticmethodr  r   r  r  r:   r,   r-   r.   r   r       sX   
 6DK'.12C
, 
0| L E
l E
N#
\ #
J7;, 7;rL 8 tL tl < , |  J	> J	X	y 		) 		9 		 	u	I u	n		 	&	I &	P	9 	 	Y 	
	) 
		Y 	<				 		Y 	(	Y 		9 		I 		i 	@	) 		Y 		9 		i 		I 		I 		y 		) 	$	) 		I 		 	,	. 	$Z	> Z	x	9 	u	I u	n	I 	$	9 	 	Y 	
	) 
		Y 	<				 		Y 	(	Y 		9 		I 		i 	@	) 		Y 		9 		i 		I 		y 		) 	$	) 		I 		^ 	 L &% /-899 %SM) &e_,   '(: ;; !!233 M $$ 677 	G // J/00 N 38n N## ?9566 ""344  ''>?? #	
! !D 32!)*C!DD >** 899   011 '&L)) 
H  "&)-(,(,
#
 "#
 !	

 !
 34
 

 
0  "&(,(,	# ! !	
 12 
M	" 6  "&(,(,

 #
 !	

 !
 :;
 
J	
 
2  "&(,(,	

#
 !
 !	

 :;
 
J	
  
  *.!# :; 
J		  01 *.
!#
 :;
 
J		
 2
( 



 &'A B

	

 

  &'C D	  ,%/$!+0#8'@*-,%r-   r   N)*striper   stripe.api_resources.abstractr   r   r   %stripe.api_resources.expandable_fieldr    stripe.api_resources.list_objectr   stripe.request_optionsr	   stripe.stripe_objectr
   stripe.utilr   typingr   r   r   r   r   r   typing_extensionsr   r   r   r   r   urllib.parser   stripe.api_resources.accountr    stripe.api_resources.applicationr   stripe.api_resources.line_itemr   "stripe.api_resources.shipping_rater   stripe.api_resources.tax_idr   r   r,   r-   r.   <module>r     sq     
 B 7 1 - , A A  $4<7?1v"-(&-(v"r-   