
    Chj"                     r    S SK Jr  S SKJr  S SKJr  S SKJr  S SKJ	r	J
r
Jr  S SKJrJrJr   " S S\5      rg	)
    )CreditNoteLineItem)
ListObject)RequestOptions)StripeService)DictListcast)LiteralNotRequired	TypedDictc                       \ rS rSr " S S\5      r " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r	0 4SSS\
S\\   4S jjr0 4SSS\
S\\   4S jjrSrg)CreditNotePreviewLinesService   c                   h   \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\S      \S'    \\   \S'    \\	\      \S'    \\S	'    \\   \S
'    \\	S      \S'    \\   \S'    \\
\\4      \S'    \\   \S'    \\S      \S'    \\   \S'    \\	S      \S'    \S   \S'    \\   \S'   Srg)(CreditNotePreviewLinesService.ListParams   amountcredit_amounteffective_at)credit_notenone
email_typeending_beforeexpandinvoicelimit,CreditNotePreviewLinesService.ListParamsLinelinesmemometadataout_of_band_amount)	duplicate
fraudulentorder_changeproduct_unsatisfactoryreasonrefund_amount.CreditNotePreviewLinesService.ListParamsRefundrefunds4CreditNotePreviewLinesService.ListParamsShippingCostshipping_coststarting_after N)__name__
__module____qualname____firstlineno__r   int__annotations__r
   strr   r   __static_attributes__r-       l/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/_credit_note_preview_lines_service.py
ListParamsr      sh   C  	 #3''	 "#&&	  (= >??	 #3''	 DI&&	 	 3	 ?@
 	
	 #	 d38n--	 (,,	 *
 	
	 #3''	 AB
 	
	 #B
 	
	 $C((	r6   r8   c                       \ rS rSr% \\   \S'    \\   \S'    \\   \S'    \\   \S'    \S   \S'    \S   \S	'    \S
   \S'    \\   \S'    \\   \S'   Sr	g)r   _   r   descriptioninvoice_line_itemquantityzGLiteral['']|List[CreditNotePreviewLinesService.ListParamsLineTaxAmount]tax_amountszLiteral['']|List[str]	tax_rates)custom_line_itemr<   typeunit_amountunit_amount_decimalr-   N)
r.   r/   r0   r1   r   r2   r3   r4   r
   r5   r-   r6   r7   ListParamsLine,CreditNotePreviewLinesService.ListParamsLine_   s    C  	 !%%	 's++	 c""	 !U
 	
	 677	 =>>	 !%%	 )--	r6   rD   c                   8    \ rS rSr% \\S'    \\S'    \\S'   Srg)5CreditNotePreviewLinesService.ListParamsLineTaxAmount   r   tax_ratetaxable_amountr-   N)r.   r/   r0   r1   r2   r3   r4   r5   r-   r6   r7   ListParamsLineTaxAmountrG      s%    	 	 	r6   rK   c                   8    \ rS rSr% \\   \S'    \\   \S'   Srg)r(      amount_refundedrefundr-   N)	r.   r/   r0   r1   r   r2   r3   r4   r5   r-   r6   r7   ListParamsRefund.CreditNotePreviewLinesService.ListParamsRefund   s$    $S))	 C  	r6   rP   c                   &    \ rS rSr% \\   \S'   Srg)r*      shipping_rater-   N)r.   r/   r0   r1   r   r4   r3   r5   r-   r6   r7   ListParamsShippingCost4CreditNotePreviewLinesService.ListParamsShippingCost   s    "3''	r6   rU   paramsr   optionsreturnc                 R    [        [        [           U R                  SSSUUS95      $ )
When retrieving a credit note preview, you'll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items.
get/v1/credit_notes/preview/linesapibase_addressrW   rX   )r	   r   r   _requestselfrW   rX   s      r7   list"CreditNotePreviewLinesService.list   s:     )*MM0"  	
 		
r6   c                 n   #    [        [        [           U R                  SSSUUS9I Sh  vN 5      $  N7f)r[   r\   r]   r^   r_   N)r	   r   r   _request_asyncrb   s      r7   
list_async(CreditNotePreviewLinesService.list_async   sI      )*%%0" &  	
 		
s   (53
	5r-   N)r.   r/   r0   r1   r   r8   rD   rK   rP   rU   r   r   r   rd   rh   r5   r-   r6   r7   r   r      s    QY Qf& &P) 9   #%
:
  
 
&	'	
, #%
:
  
 
&	'	
 
r6   r   N)stripe._credit_note_line_itemr   stripe._list_objectr   stripe._request_optionsr   stripe._stripe_servicer   typingr   r   r	   typing_extensionsr
   r   r   r   r-   r6   r7   <module>rp      s-    = * 2 0 # # = =~
M ~
r6   