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mZmZ d dlmZmZmZ G d	d
 d
e	ZdS )    )
ListObject)PaymentLink)PaymentLinkLineItemService)RequestOptions)StripeService)sanitize_id)DictListcast)LiteralNotRequired	TypedDictc                	       s  e Zd Z fdd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 d-d. d.eZG d/d0 d0eZG d1d2 d2eZG d3d4 d4eZG d5d6 d6eZG d7d8 d8eZG d9d: d:eZ G d;d< d<eZ!G d=d> d>eZ"G d?d@ d@eZ#G dAdB dBeZ$G dCdD dDeZ%G dEdF dFeZ&G dGdH dHeZ'G dIdJ dJeZ(G dKdL dLeZ)G dMdN dNeZ*G dOdP dPeZ+G dQdR dReZ,G dSdT dTeZ-G dUdV dVeZ.G dWdX dXeZ/G dYdZ dZeZ0G d[d\ d\eZ1G d]d^ d^eZ2G d_d` d`eZ3G dadb dbeZ4G dcdd ddeZ5G dedf dfeZ6G dgdh dheZ7G didj djeZ8G dkdl dleZ9G dmdn dneZ:G dodp dpeZ;G dqdr dreZ<G dsdt dteZ=G dudv dveZ>G dwdx dxeZ?G dydz dzeZ@G d{d| d|eZAG d}d~ d~eZBG dd deZCG dd deZDG dd deZEG dd deZFG dd deZGG dd deZHG dd deZIG dd deZJG dd deZKG dd deZLG dd deZMG dd deZNG dd deZOi i fdddePdeQeR fddZSi i fdddePdeQeR fddZTi fdddePdeRfddZUi fdddePdeRfddZVi i fdeWdddePdeRfddZXi i fdeWdddePdeRfddZYi i fdeWdddePdeRfddZZi i fdeWdddePdeRfddZ[  Z\S )PaymentLinkServicec                    s   t  | t| j| _d S )N)super__init__r   
_requestor
line_items)self	requestor	__class__ \/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/_payment_link_service.pyr      s   zPaymentLinkService.__init__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PaymentLinkService.CreateParams.PaymentLinkService.CreateParamsAfterCompletionafter_completionallow_promotion_codesapplication_fee_amountapplication_fee_percent+PaymentLinkService.CreateParamsAutomaticTaxautomatic_taxautorequiredbilling_address_collection0PaymentLinkService.CreateParamsConsentCollectionconsent_collectioncurrency*PaymentLinkService.CreateParamsCustomFieldcustom_fields)PaymentLinkService.CreateParamsCustomTextcustom_textalwaysif_requiredcustomer_creationexpandinactive_message.PaymentLinkService.CreateParamsInvoiceCreationinvoice_creation'PaymentLinkService.CreateParamsLineItemr   metadataon_behalf_of0PaymentLinkService.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_types4PaymentLinkService.CreateParamsPhoneNumberCollectionphone_number_collection+PaymentLinkService.CreateParamsRestrictionsrestrictions8PaymentLinkService.CreateParamsShippingAddressCollectionshipping_address_collection-PaymentLinkService.CreateParamsShippingOptionshipping_options)r"   bookdonatepaysubmit_type/PaymentLinkService.CreateParamsSubscriptionDatasubscription_data.PaymentLinkService.CreateParamsTaxIdCollectiontax_id_collection+PaymentLinkService.CreateParamsTransferDatatransfer_dataN)__name__
__module____qualname__r   __annotations__boolintfloatr   strr	   r   r   r   r   r   CreateParams   s   
 'rv   c                   @   6   e Zd ZU ed ed< 	 ed ed< 	 ed ed< dS )r   @PaymentLinkService.CreateParamsAfterCompletionHostedConfirmationhosted_confirmation6PaymentLinkService.CreateParamsAfterCompletionRedirectredirectry   r{   typeNrn   ro   rp   r   rq   r   r   r   r   r   CreateParamsAfterCompletion      
 r   c                   @      e Zd ZU ee ed< dS )rx   custom_messageNrn   ro   rp   r   ru   rq   r   r   r   r   -CreateParamsAfterCompletionHostedConfirmation      
 r   c                   @      e Zd ZU eed< dS )rz   urlNrn   ro   rp   ru   rq   r   r   r   r   #CreateParamsAfterCompletionRedirect      
 r   c                   @   $   e Zd ZU eed< 	 ed ed< dS )r   enabled4PaymentLinkService.CreateParamsAutomaticTaxLiability	liabilityNrn   ro   rp   rr   rq   r   r   r   r   r   CreateParamsAutomaticTax      
 r   c                   @   (   e Zd ZU ee ed< 	 ed ed< dS )r   accountr   r   r}   Nrn   ro   rp   r   ru   rq   r   r   r   r   r   !CreateParamsAutomaticTaxLiability   
   
 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%   KPaymentLinkService.CreateParamsConsentCollectionPaymentMethodReuseAgreementpayment_method_reuse_agreement)r"   none
promotions)r   r#   terms_of_serviceNr~   r   r   r   r   CreateParamsConsentCollection   s   
 r   c                   @      e Zd ZU ed ed< dS )r   )r"   hiddenpositionNrn   ro   rp   r   rq   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(   2PaymentLinkService.CreateParamsCustomFieldDropdowndropdownkey/PaymentLinkService.CreateParamsCustomFieldLabellabel1PaymentLinkService.CreateParamsCustomFieldNumericnumericoptional.PaymentLinkService.CreateParamsCustomFieldTexttextr   r   r   r}   Nrn   ro   rp   r   rq   ru   rr   r   r   r   r   r   CreateParamsCustomField  &   
 r   c                   @   r   )r   8PaymentLinkService.CreateParamsCustomFieldDropdownOptionoptionsNrn   ro   rp   r	   rq   r   r   r   r   CreateParamsCustomFieldDropdown<  
   
 r   c                   @       e Zd ZU eed< 	 eed< dS )r   r   valueNr   r   r   r   r   %CreateParamsCustomFieldDropdownOptionD  
   
 r   c                   @   $   e Zd ZU eed< 	 ed ed< dS )r   customr}   Nrn   ro   rp   ru   rq   r   r   r   r   r   CreateParamsCustomFieldLabelN  
   
 r   c                   @   (   e Zd ZU ee ed< 	 ee ed< dS )r   maximum_lengthminimum_lengthNrn   ro   rp   r   rs   rq   r   r   r   r   CreateParamsCustomFieldNumericX  r   r   c                   @   r   )r   r   r   Nr   r   r   r   r   CreateParamsCustomFieldTextb  r   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*   z@Literal['']|PaymentLinkService.CreateParamsCustomTextAfterSubmitafter_submitzDLiteral['']|PaymentLinkService.CreateParamsCustomTextShippingAddressshipping_addressz;Literal['']|PaymentLinkService.CreateParamsCustomTextSubmitsubmitzMLiteral['']|PaymentLinkService.CreateParamsCustomTextTermsOfServiceAcceptanceterms_of_service_acceptanceNrn   ro   rp   r   rq   r   r   r   r   CreateParamsCustomTextl  "   
 r   c                   @   r   )z4PaymentLinkService.CreateParamsCustomTextAfterSubmitmessageNr   r   r   r   r   !CreateParamsCustomTextAfterSubmit  r   r   c                   @   r   )z8PaymentLinkService.CreateParamsCustomTextShippingAddressr   Nr   r   r   r   r   %CreateParamsCustomTextShippingAddress  r   r   c                   @   r   )z/PaymentLinkService.CreateParamsCustomTextSubmitr   Nr   r   r   r   r   CreateParamsCustomTextSubmit  r   r   c                   @   r   )zAPaymentLinkService.CreateParamsCustomTextTermsOfServiceAcceptancer   Nr   r   r   r   r   .CreateParamsCustomTextTermsOfServiceAcceptance  r   r   c                   @   r   )r2   r   9PaymentLinkService.CreateParamsInvoiceCreationInvoiceDatainvoice_dataNr   r   r   r   r   CreateParamsInvoiceCreation  r   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]account_tax_idszVLiteral['']|List[PaymentLinkService.CreateParamsInvoiceCreationInvoiceDataCustomField]r)   descriptionfooter?PaymentLinkService.CreateParamsInvoiceCreationInvoiceDataIssuerissuerLiteral['']|Dict[str, str]r5   zULiteral['']|PaymentLinkService.CreateParamsInvoiceCreationInvoiceDataRenderingOptionsrendering_optionsNrn   ro   rp   r   rq   ru   r   r   r   r   &CreateParamsInvoiceCreationInvoiceData  *   
 r   c                   @   r   )zDPaymentLinkService.CreateParamsInvoiceCreationInvoiceDataCustomFieldnamer   Nr   r   r   r   r   1CreateParamsInvoiceCreationInvoiceDataCustomField  r   r   c                   @   r   )r   r   r   r}   Nr   r   r   r   r   ,CreateParamsInvoiceCreationInvoiceDataIssuer  r   r   c                   @   r   )zIPaymentLinkService.CreateParamsInvoiceCreationInvoiceDataRenderingOptions;Literal['']|Literal['exclude_tax', 'include_inclusive_tax']amount_tax_displayNr   r   r   r   r   6CreateParamsInvoiceCreationInvoiceDataRenderingOptions  r   r   c                   @   s.   e Zd ZU ed ed< 	 eed< 	 eed< dS )r4   9PaymentLinkService.CreateParamsLineItemAdjustableQuantityadjustable_quantitypricequantityNrn   ro   rp   r   rq   ru   rs   r   r   r   r   CreateParamsLineItem  s   
 r   c                   @   2   e Zd ZU eed< 	 ee ed< 	 ee ed< dS )r   r   maximumminimumNrn   ro   rp   rr   rq   r   rs   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 )r7   )	automaticautomatic_asyncmanualcapture_methodr   r5   )off_session
on_sessionsetup_future_usagestatement_descriptorstatement_descriptor_suffixtransfer_groupN)rn   ro   rp   r   r   rq   ru   r   r   r   r   r   CreateParamsPaymentIntentData  s"   
 r   c                   @   r   )r\   r   N)rn   ro   rp   rr   rq   r   r   r   r   !CreateParamsPhoneNumberCollection4  r   r   c                   @      e Zd ZU ded< dS )r^   <PaymentLinkService.CreateParamsRestrictionsCompletedSessionscompleted_sessionsNrn   ro   rp   rq   r   r   r   r   CreateParamsRestrictions:     
 r  c                   @   r   )r  limitNrn   ro   rp   rs   rq   r   r   r   r   )CreateParamsRestrictionsCompletedSessionsB  r   r  c                   @      e Zd ZU eed  ed< dS )r`   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rn   ro   rp   r	   r   rq   r   r   r   r   %CreateParamsShippingAddressCollectionH     
  rr  c                   @   r   )rb   shipping_rateNr   r   r   r   r   CreateParamsShippingOption?  r   r  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 )	rh   r   >PaymentLinkService.CreateParamsSubscriptionDataInvoiceSettingsinvoice_settingsr5   trial_period_days<PaymentLinkService.CreateParamsSubscriptionDataTrialSettingstrial_settingsN)rn   ro   rp   r   ru   rq   r   rs   r   r   r   r   CreateParamsSubscriptionDataE  s   
 r  c                   @   r   )r  DPaymentLinkService.CreateParamsSubscriptionDataInvoiceSettingsIssuerr   Nr   r   r   r   r   +CreateParamsSubscriptionDataInvoiceSettings_  r   r  c                   @   r   )r  r   r   r}   Nr   r   r   r   r   1CreateParamsSubscriptionDataInvoiceSettingsIssuerg  r   r  c                   @   r   )r  GPaymentLinkService.CreateParamsSubscriptionDataTrialSettingsEndBehaviorend_behaviorNr  r   r   r   r   )CreateParamsSubscriptionDataTrialSettingsq  r   r	  c                   @   r   )r  cancelcreate_invoicepausemissing_payment_methodNr   r   r   r   r   4CreateParamsSubscriptionDataTrialSettingsEndBehaviorw  r   r  c                   @   (   e Zd ZU eed< 	 eed  ed< dS )rj   r   if_supportedneverr#   Nrn   ro   rp   rr   rq   r   r   r   r   r   r   CreateParamsTaxIdCollection}  
   
 r  c                   @   s$   e Zd ZU ee ed< 	 eed< dS )rl   amountdestinationN)rn   ro   rp   r   rs   rq   ru   r   r   r   r   CreateParamsTransferData  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 )PaymentLinkService.ListParamsactiveending_beforer0   r  starting_afterN)	rn   ro   rp   r   rr   rq   ru   r	   rs   r   r   r   r   
ListParams  s   
 r  c                   @   s   e Zd ZU eee  ed< dS )!PaymentLinkService.RetrieveParamsr0   N)rn   ro   rp   r   r	   ru   rq   r   r   r   r   RetrieveParams  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 )%PaymentLinkService.UpdateParamsr  .PaymentLinkService.UpdateParamsAfterCompletionr   r   +PaymentLinkService.UpdateParamsAutomaticTaxr    r!   r$   z<Literal['']|List[PaymentLinkService.UpdateParamsCustomField]r)   )PaymentLinkService.UpdateParamsCustomTextr+   r,   r/   r0   Literal['']|strr1   .PaymentLinkService.UpdateParamsInvoiceCreationr3   'PaymentLinkService.UpdateParamsLineItemr   r5   0PaymentLinkService.UpdateParamsPaymentIntentDatar8   r9   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[   z7Literal['']|PaymentLinkService.UpdateParamsRestrictionsr_   zDLiteral['']|PaymentLinkService.UpdateParamsShippingAddressCollectionra   /PaymentLinkService.UpdateParamsSubscriptionDatari   .PaymentLinkService.UpdateParamsTaxIdCollectionrk   N)
rn   ro   rp   r   rr   rq   r   r	   ru   r   r   r   r   r   UpdateParams  s   
 r+  c                   @   rw   )r"  @PaymentLinkService.UpdateParamsAfterCompletionHostedConfirmationry   6PaymentLinkService.UpdateParamsAfterCompletionRedirectr{   r|   r}   Nr~   r   r   r   r   UpdateParamsAfterCompletion  r   r.  c                   @   r   )r,  r   Nr   r   r   r   r   -UpdateParamsAfterCompletionHostedConfirmation0  r   r/  c                   @   r   )r-  r   Nr   r   r   r   r   #UpdateParamsAfterCompletionRedirect6  r   r0  c                   @   r   )r#  r   4PaymentLinkService.UpdateParamsAutomaticTaxLiabilityr   Nr   r   r   r   r   UpdateParamsAutomaticTax<  r   r2  c                   @   r   )r1  r   r   r}   Nr   r   r   r   r   !UpdateParamsAutomaticTaxLiabilityH  r   r3  c                   @   r   )z*PaymentLinkService.UpdateParamsCustomField2PaymentLinkService.UpdateParamsCustomFieldDropdownr   r   /PaymentLinkService.UpdateParamsCustomFieldLabelr   1PaymentLinkService.UpdateParamsCustomFieldNumericr   r   .PaymentLinkService.UpdateParamsCustomFieldTextr   r   r}   Nr   r   r   r   r   UpdateParamsCustomFieldR  r   r8  c                   @   r   )r4  8PaymentLinkService.UpdateParamsCustomFieldDropdownOptionr   Nr   r   r   r   r   UpdateParamsCustomFieldDropdownt  r   r:  c                   @   r   )r9  r   r   Nr   r   r   r   r   %UpdateParamsCustomFieldDropdownOption|  r   r;  c                   @   r   )r5  r   r}   Nr   r   r   r   r   UpdateParamsCustomFieldLabel  r   r<  c                   @   r   )r6  r   r   Nr   r   r   r   r   UpdateParamsCustomFieldNumeric  r   r=  c                   @   r   )r7  r   r   Nr   r   r   r   r   UpdateParamsCustomFieldText  r   r>  c                   @   r   )
r$  z@Literal['']|PaymentLinkService.UpdateParamsCustomTextAfterSubmitr   zDLiteral['']|PaymentLinkService.UpdateParamsCustomTextShippingAddressr   z;Literal['']|PaymentLinkService.UpdateParamsCustomTextSubmitr   zMLiteral['']|PaymentLinkService.UpdateParamsCustomTextTermsOfServiceAcceptancer   Nr   r   r   r   r   UpdateParamsCustomText  r   r?  c                   @   r   )z4PaymentLinkService.UpdateParamsCustomTextAfterSubmitr   Nr   r   r   r   r   !UpdateParamsCustomTextAfterSubmit  r   r@  c                   @   r   )z8PaymentLinkService.UpdateParamsCustomTextShippingAddressr   Nr   r   r   r   r   %UpdateParamsCustomTextShippingAddress  r   rA  c                   @   r   )z/PaymentLinkService.UpdateParamsCustomTextSubmitr   Nr   r   r   r   r   UpdateParamsCustomTextSubmit  r   rB  c                   @   r   )zAPaymentLinkService.UpdateParamsCustomTextTermsOfServiceAcceptancer   Nr   r   r   r   r   .UpdateParamsCustomTextTermsOfServiceAcceptance  r   rC  c                   @   r   )r&  r   9PaymentLinkService.UpdateParamsInvoiceCreationInvoiceDatar   Nr   r   r   r   r   UpdateParamsInvoiceCreation  r   rE  c                   @   r   )rD  r   r   zVLiteral['']|List[PaymentLinkService.UpdateParamsInvoiceCreationInvoiceDataCustomField]r)   r   r   ?PaymentLinkService.UpdateParamsInvoiceCreationInvoiceDataIssuerr   r   r5   zULiteral['']|PaymentLinkService.UpdateParamsInvoiceCreationInvoiceDataRenderingOptionsr   Nr   r   r   r   r   &UpdateParamsInvoiceCreationInvoiceData  r   rG  c                   @   r   )zDPaymentLinkService.UpdateParamsInvoiceCreationInvoiceDataCustomFieldr   r   Nr   r   r   r   r   1UpdateParamsInvoiceCreationInvoiceDataCustomField  r   rH  c                   @   r   )rF  r   r   r}   Nr   r   r   r   r   ,UpdateParamsInvoiceCreationInvoiceDataIssuer  r   rI  c                   @   r   )zIPaymentLinkService.UpdateParamsInvoiceCreationInvoiceDataRenderingOptionsr   r   Nr   r   r   r   r   6UpdateParamsInvoiceCreationInvoiceDataRenderingOptions  r   rJ  c                   @   s2   e Zd ZU ed ed< 	 eed< 	 ee ed< dS )r'  9PaymentLinkService.UpdateParamsLineItemAdjustableQuantityr   idr   Nr   r   r   r   r   UpdateParamsLineItem"  s   
 rM  c                   @   r   )rK  r   r   r   Nr   r   r   r   r   &UpdateParamsLineItemAdjustableQuantity2  r   rN  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 )	r(  r%  r   r   r5   r   r   r   Nr   r   r   r   r   UpdateParamsPaymentIntentData@  s   
 rO  c                   @   r   )z+PaymentLinkService.UpdateParamsRestrictions<PaymentLinkService.UpdateParamsRestrictionsCompletedSessionsr  Nr  r   r   r   r   UpdateParamsRestrictionsX  r  rQ  c                   @   r   )rP  r  Nr  r   r   r   r   )UpdateParamsRestrictionsCompletedSessions`  r   rR  c                   @   r	  )z8PaymentLinkService.UpdateParamsShippingAddressCollectionr
  r  Nr  r   r   r   r   %UpdateParamsShippingAddressCollectionf  r  rS  c                   @   s6   e Zd ZU ed ed< 	 ed ed< 	 ed ed< dS )r)  >PaymentLinkService.UpdateParamsSubscriptionDataInvoiceSettingsr  r   r5   zHLiteral['']|PaymentLinkService.UpdateParamsSubscriptionDataTrialSettingsr  Nr   r   r   r   r   UpdateParamsSubscriptionData]  s   
 rU  c                   @   r   )rT  DPaymentLinkService.UpdateParamsSubscriptionDataInvoiceSettingsIssuerr   Nr   r   r   r   r   +UpdateParamsSubscriptionDataInvoiceSettingso  r   rW  c                   @   r   )rV  r   r   r}   Nr   r   r   r   r   1UpdateParamsSubscriptionDataInvoiceSettingsIssuerw  r   rX  c                   @   r   )z<PaymentLinkService.UpdateParamsSubscriptionDataTrialSettingsGPaymentLinkService.UpdateParamsSubscriptionDataTrialSettingsEndBehaviorr  Nr  r   r   r   r   )UpdateParamsSubscriptionDataTrialSettings  r   rZ  c                   @   r   )rY  r
  r  Nr   r   r   r   r   4UpdateParamsSubscriptionDataTrialSettingsEndBehavior  r   r[  c                   @   r  )r*  r   r  r#   Nr  r   r   r   r   UpdateParamsTaxIdCollection  r  r\  paramsr  r   returnc              	   C   s   t tt | jddd||dS )7
        Returns a list of your payment links.
        get/v1/payment_linksapibase_addressr]  r   )r
   r   r   _requestr   r]  r   r   r   r   list  s   zPaymentLinkService.listc              	      s&   t tt | jddd||dI dH S )r_  r`  ra  rb  rc  N)r
   r   r   _request_asyncrf  r   r   r   
list_async  s   
zPaymentLinkService.list_asyncr   c              	   C   s   t t| jddd||dS ))
        Creates a payment link.
        postra  rb  rc  )r
   r   re  rf  r   r   r   create  s   zPaymentLinkService.createc              	      s"   t t| jddd||dI dH S )rj  rk  ra  rb  rc  N)r
   r   rh  rf  r   r   r   create_async  s   
zPaymentLinkService.create_asyncpayment_linkr  c              	   C   &   t t| jddjt|dd||dS )*
        Retrieve a payment link.
        r`   /v1/payment_links/{payment_link}rn  rb  rc  r
   r   re  formatr   r   rn  r]  r   r   r   r   retrieve     	zPaymentLinkService.retrievec              	      .   t t| jddjt|dd||dI dH S )rp  r`  rq  rr  rb  rc  Nr
   r   rh  rt  r   ru  r   r   r   retrieve_async     	
z!PaymentLinkService.retrieve_asyncr!  c              	   C   ro  ))
        Updates a payment link.
        rk  rq  rr  rb  rc  rs  ru  r   r   r   update  rw  zPaymentLinkService.updatec              	      rx  )r|  rk  rq  rr  rb  rc  Nry  ru  r   r   r   update_async%  r{  zPaymentLinkService.update_async)]rn   ro   rp   r   r   rv   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r  r	  r  r  r  r  r   r+  r.  r/  r0  r2  r3  r8  r:  r;  r<  r=  r>  r?  r@  rA  rB  rC  rE  rG  rH  rI  rJ  rM  rN  rO  rQ  rR  rS  rU  rW  rX  rZ  r[  r\  r   r   r   rg  ri  rl  rm  ru   rv  rz  r}  r~  __classcell__r   r   r   r   r      s<    ;
"



$

, x

n
"



$

 x







r   N)stripe._list_objectr   stripe._payment_linkr   &stripe._payment_link_line_item_servicer   stripe._request_optionsr   stripe._stripe_servicer   stripe._utilr   typingr   r	   r
   typing_extensionsr   r   r   r   r   r   r   r   <module>   s   