
    Ch{                         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Jr  S SKJrJr  \(       a  S SKJr   " S S	\S	   5      rg
)    )ApplicationFee)ExpandableField)UpdateableAPIResource)sanitize_id)ClassVarDictOptionalcast)LiteralTYPE_CHECKING)BalanceTransactionc                       \ rS rSr% SrSr\\S      \S'   \	\S'    \
\S      \S'    \	\S'    \\S	'    \S
   \S'    \\S'    \
\\\4      \S'    \S   \S'    \S 5       r\SS j5       rS r\SS j5       rSrg)ApplicationFeeRefund   aN  
`Application Fee Refund` objects allow you to refund an application fee that
has previously been created but not yet refunded. Funds will be refunded to
the Stripe account from which the fee was originally collected.

Related guide: [Refunding application fees](https://stripe.com/docs/connect/destination-charges#refunding-app-fee)

fee_refundOBJECT_NAMEamountr   balance_transactioncreatedcurrencyr   feeidmetadataobjectc                 r    [         R                  " 5       n[        U5      n[        U5      nU< SU< SU< 3$ )N/z	/refunds/)r   	class_urlr   )clsr   sidbase	cust_extnextns         a/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/_application_fee_refund.py_build_instance_url(ApplicationFeeRefund._build_instance_url9   s1    '')$	3%)9d;;    c           	      X    U R                  X5      n[        SU R                  SXCS95      $ )Nr   post)params)r$   r
   _static_request)r   r   r   r)   urls        r#   modifyApplicationFeeRefund.modify@   s5    %%c/";
 	
r&   c                 N    U R                  U R                  U R                  5      $ )N)r$   r   r   )selfs    r#   instance_url!ApplicationFeeRefund.instance_urlH   s    ''$''::r&   c                     [        S5      e)NzqCan't retrieve a refund without an application fee ID. Use application_fee.refunds.retrieve('refund_id') instead.)NotImplementedError)r   r   r)   s      r#   retrieveApplicationFeeRefund.retrieveK   s    !I
 	
r&    N)returnr   )__name__
__module____qualname____firstlineno____doc__r   r   r   __annotations__intr	   r   strr   classmethodr$   r,   r0   r4   __static_attributes__r6   r&   r#   r   r      s     4@K',/0?K "/2F"GHH L M 
)	** 	G tCH~&& L!! < < 
 
; 
 
r&   r   N)stripe._application_feer   stripe._expandable_fieldr   stripe._updateable_api_resourcer   stripe._utilr   typingr   r   r	   r
   typing_extensionsr   r   stripe._balance_transactionr   r   r6   r&   r#   <module>rI      s7    3 4 A $ 1 1 4>B
01GH B
r&   