o
    éË·eÌ  ã                   @   sX   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 G dd„ deƒZdS )	é    )Úabsolute_importÚdivisionÚprint_function)Úutil)ÚUpdateableAPIResource)ÚAccount)Ú
quote_plusc                   @   s6   e Zd ZdZdZdd„ Zedd„ ƒZed
dd	„ƒZdS )ÚPersona  
    This is an object representing a person associated with a Stripe account.

    A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
    See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform pre-filling and account onboarding steps.

    Related guide: [Handling Identity Verification with the API](https://stripe.com/docs/connect/identity-verification-api#person-information).
    Úpersonc                 C   s>   t  | j¡}t  | j¡}t ¡ }t|ƒ}t|ƒ}d|||f S )Nz%s/%s/persons/%s)r   Úutf8ÚidÚaccountr   Ú	class_urlr   )ÚselfÚtokenr   ÚbaseÚ	acct_extnÚextn© r   úR/var/www/ideatree/venv/lib/python3.10/site-packages/stripe/api_resources/person.pyÚinstance_url   s   zPerson.instance_urlc                 K   ó   t dƒ‚)Nz^Can't modify a person without an accountID. Call save on account.persons.retrieve('person_id')©ÚNotImplementedError)ÚclsÚsidÚparamsr   r   r   Úmodify   ó   ÿzPerson.modifyNc                 K   r   )NzWCan't retrieve a person without an accountID. Use account.persons.retrieve('person_id')r   )r   r   Úapi_keyr   r   r   r   Úretrieve%   r   zPerson.retrieve)N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚOBJECT_NAMEr   Úclassmethodr   r    r   r   r   r   r	   
   s    	
r	   N)Ú
__future__r   r   r   Ústriper   Ústripe.api_resources.abstractr   Ústripe.api_resources.accountr   Ústripe.six.moves.urllib.parser   r	   r   r   r   r   Ú<module>   s   