o
    �ú_O ã                   @   s@   d Z ddlmZ ddlZddlZddlmZ G dd„ deƒZdS )aø  
    SendinBlue API

    SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to :   - Manage your campaigns and get the statistics   - Manage your contacts   - Send transactional Emails and SMS   - and much more...  You can download our wrappers at https://github.com/orgs/sendinblue  **Possible responses**   | Code | Message |   | :-------------: | ------------- |   | 200  | OK. Successful Request  |   | 201  | OK. Successful Creation |   | 202  | OK. Request accepted |   | 204  | OK. Successful Update/Deletion  |   | 400  | Error. Bad Request  |   | 401  | Error. Authentication Needed  |   | 402  | Error. Not enough credit, plan upgrade needed  |   | 403  | Error. Permission denied  |   | 404  | Error. Object does not exist |   | 405  | Error. Method not allowed  |   | 406  | Error. Not Acceptable  |   # noqa: E501

    OpenAPI spec version: 3.0.0
    Contact: contact@sendinblue.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
é    )Úabsolute_importN)Ú	ApiClientc                   @   s  e Zd ZdZdEdd„Zdd„ Zdd„ Zd	d
„ Zdd„ Zdd„ Z	dd„ Z
dd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd „ Zd!d"„ Zd#d$„ Zd%d&„ Zd'd(„ Zd)d*„ Zd+d,„ Zd-d.„ Zd/d0„ Zd1d2„ Zd3d4„ Zd5d6„ Zd7d8„ Zd9d:„ Zd;d<„ Z d=d>„ Z!d?d@„ Z"dAdB„ Z#dCdD„ Z$dS )FÚResellerApiz«NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    Ref: https://github.com/swagger-api/swagger-codegen
    Nc                 C   s   |d u rt ƒ }|| _d S ©N)r   Ú
api_client)Úselfr   © r   úQ/var/www/html/env/lib/python3.10/site-packages/sib_api_v3_sdk/api/reseller_api.pyÚ__init__   s   
zResellerApi.__init__c                 K   ó>   d|d< |  d¡r| j||fi |¤ŽS | j||fi |¤Ž}|S )aÀ  Add Email and/or SMS credits to a specific child account  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.add_credits(child_identifier, add_credits, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param AddCredits add_credits: Values to post to add credit to a specific child account (required)
        :return: RemainingCreditModel
                 If the method is called asynchronously,
                 returns the request thread.
        TÚ_return_http_data_onlyÚ	async_req)ÚgetÚadd_credits_with_http_info)r   Úchild_identifierÚadd_creditsÚkwargsÚdatar   r   r	   r   $   ó
   
zResellerApi.add_creditsc                 K   óX  ddg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr0td| ƒ‚|||< q"|d= d|vsB|d d	u rFtd
ƒ‚d|vsP|d d	u rTtdƒ‚i }i }	d|v rb|d |	d< g }
i }g }i }d	}d|v rt|d }| j dg¡|d< | j dg¡|d< ddg}| jj	dd|	|
||||d|| 
d¡| 
d¡| 
dd¡| 
d¡|d�S )aÏ  Add Email and/or SMS credits to a specific child account  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.add_credits_with_http_info(child_identifier, add_credits, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param AddCredits add_credits: Values to post to add credit to a specific child account (required)
        :return: RemainingCreditModel
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   Ú_preload_contentÚ_request_timeoutr   z=Got an unexpected keyword argument '%s' to method add_creditsNzLMissing the required parameter `child_identifier` when calling `add_credits`zGMissing the required parameter `add_credits` when calling `add_credits`ÚchildIdentifierúapplication/jsonÚAcceptúContent-Typeúapi-keyúpartner-keyz0/reseller/children/{childIdentifier}/credits/addÚPOSTÚRemainingCreditModelT©
ÚbodyÚpost_paramsÚfilesÚresponse_typeÚauth_settingsr   r   r   r   Úcollection_formats©ÚappendÚlocalsÚsixÚ	iteritemsÚ	TypeErrorÚ
ValueErrorr   Úselect_header_acceptÚselect_header_content_typeÚcall_apir   )r   r   r   r   Ú
all_paramsÚparamsÚkeyÚvalr&   Úpath_paramsÚquery_paramsÚheader_paramsÚform_paramsÚlocal_var_filesÚbody_paramsr%   r   r   r	   r   :   ón   



ÿÿ
ÿÿ
òz&ResellerApi.add_credits_with_http_infoc                 K   r   )aj  Associate a dedicated IP to the child  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.associate_ip_to_child(child_identifier, ip, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param ManageIp ip: IP to associate (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Ú$associate_ip_to_child_with_http_info©r   r   Úipr   r   r   r   r	   Úassociate_ip_to_child�   r   z!ResellerApi.associate_ip_to_childc                 K   óX  ddg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr0td| ƒ‚|||< q"|d= d|vsB|d d	u rFtd
ƒ‚d|vsP|d d	u rTtdƒ‚i }i }	d|v rb|d |	d< g }
i }g }i }d	}d|v rt|d }| j dg¡|d< | j dg¡|d< ddg}| jj	dd|	|
||||d	|| 
d¡| 
d¡| 
dd¡| 
d¡|d�S )ay  Associate a dedicated IP to the child  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.associate_ip_to_child_with_http_info(child_identifier, ip, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param ManageIp ip: IP to associate (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r   r>   r   r   r   r   r   zGGot an unexpected keyword argument '%s' to method associate_ip_to_childNzVMissing the required parameter `child_identifier` when calling `associate_ip_to_child`zHMissing the required parameter `ip` when calling `associate_ip_to_child`r   r   r   r   r   r   z2/reseller/children/{childIdentifier}/ips/associater   Tr    r'   ©r   r   r>   r   r1   r2   r3   r4   r&   r5   r6   r7   r8   r9   r:   r%   r   r   r	   r<   £   r;   z0ResellerApi.associate_ip_to_child_with_http_infoc                 K   r   )aÝ  Create a domain for a child account  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.create_child_domain(child_identifier, add_child_domain, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param AddChildDomain add_child_domain: Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Ú"create_child_domain_with_http_info)r   r   Úadd_child_domainr   r   r   r   r	   Úcreate_child_domainö   r   zResellerApi.create_child_domainc                 K   r@   )aì  Create a domain for a child account  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.create_child_domain_with_http_info(child_identifier, add_child_domain, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param AddChildDomain add_child_domain: Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r   rC   r   r   r   r   r   zEGot an unexpected keyword argument '%s' to method create_child_domainNzTMissing the required parameter `child_identifier` when calling `create_child_domain`zTMissing the required parameter `add_child_domain` when calling `create_child_domain`r   r   r   r   r   r   ú,/reseller/children/{childIdentifier}/domainsr   Tr    r'   )r   r   rC   r   r1   r2   r3   r4   r&   r5   r6   r7   r8   r9   r:   r%   r   r   r	   rB     r;   z.ResellerApi.create_child_domain_with_http_infoc                 K   ó6   d|d< |  d¡r| jdi |¤ŽS | jdi |¤Ž}|S )a  Creates a reseller child  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.create_reseller_child(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param CreateChild reseller_child: reseller child to add
        :return: CreateReseller
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   Nr   )r   Ú$create_reseller_child_with_http_info©r   r   r   r   r   r	   Úcreate_reseller_child_  s
   
z!ResellerApi.create_reseller_childc                 K   s
  dg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr/td| ƒ‚|||< q!|d= i }i }g }i }	g }
i }d}d|v rM|d }| j d	g¡|	d
< | j d	g¡|	d< ddg}| jjdd|||	||
|d|| 	d¡| 	d¡| 	dd¡| 	d¡|d�S )a  Creates a reseller child  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.create_reseller_child_with_http_info(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param CreateChild reseller_child: reseller child to add
        :return: CreateReseller
                 If the method is called asynchronously,
                 returns the request thread.
        Úreseller_childr   r   r   r   r   zGGot an unexpected keyword argument '%s' to method create_reseller_childNr   r   r   r   r   ú/reseller/childrenr   ÚCreateResellerTr    )
r(   r)   r*   r+   r,   r   r.   r/   r0   r   ©r   r   r1   r2   r3   r4   r&   r5   r6   r7   r8   r9   r:   r%   r   r   r	   rG   t  s^   



ÿÿ
ÿÿ
òz0ResellerApi.create_reseller_child_with_http_infoc                 K   r   )aÓ  Delete the sender domain of the reseller child based on the childIdentifier and domainName passed  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.delete_child_domain(child_identifier, domain_name, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param str domain_name: Pass the existing domain that needs to be deleted (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Ú"delete_child_domain_with_http_info)r   r   Údomain_namer   r   r   r   r	   Údelete_child_domain¼  r   zResellerApi.delete_child_domainc                 K   s\  ddg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr0td| ƒ‚|||< q"|d= d|vsB|d d	u rFtd
ƒ‚d|vsP|d d	u rTtdƒ‚i }i }	d|v rb|d |	d< d|v rl|d |	d< g }
i }g }i }d	}| j dg¡|d< | j dg¡|d< ddg}| jj	dd|	|
||||d	|| 
d¡| 
d¡| 
dd¡| 
d¡|d�S )aâ  Delete the sender domain of the reseller child based on the childIdentifier and domainName passed  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.delete_child_domain_with_http_info(child_identifier, domain_name, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param str domain_name: Pass the existing domain that needs to be deleted (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r   rO   r   r   r   r   r   zEGot an unexpected keyword argument '%s' to method delete_child_domainNzTMissing the required parameter `child_identifier` when calling `delete_child_domain`zOMissing the required parameter `domain_name` when calling `delete_child_domain`r   Ú
domainNamer   r   r   r   r   ú9/reseller/children/{childIdentifier}/domains/{domainName}ÚDELETETr    r'   )r   r   rO   r   r1   r2   r3   r4   r&   r5   r6   r7   r8   r9   r:   r%   r   r   r	   rN   Ò  sn   



ÿÿ
ÿÿ
òz.ResellerApi.delete_child_domain_with_http_infoc                 K   ó:   d|d< |  d¡r| j|fi |¤ŽS | j|fi |¤Ž}|S )aU  Delete a single reseller child based on the child identifier supplied  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.delete_reseller_child(child_identifier, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or child id of reseller's child (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Ú$delete_reseller_child_with_http_info©r   r   r   r   r   r   r	   Údelete_reseller_child%  ó
   
z!ResellerApi.delete_reseller_childc                 K   s*  dg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr/td| ƒ‚|||< q!|d= d|vsA|d du rEtd	ƒ‚i }i }d|v rS|d |d
< g }	i }
g }i }d}| j dg¡|
d< | j dg¡|
d< ddg}| jj	dd||	|
|||d|| 
d¡| 
d¡| 
dd¡| 
d¡|d�S )ad  Delete a single reseller child based on the child identifier supplied  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.delete_reseller_child_with_http_info(child_identifier, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or child id of reseller's child (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   zGGot an unexpected keyword argument '%s' to method delete_reseller_childNzVMissing the required parameter `child_identifier` when calling `delete_reseller_child`r   r   r   r   r   r   ú$/reseller/children/{childIdentifier}rS   Tr    r'   ©r   r   r   r1   r2   r3   r4   r&   r5   r6   r7   r8   r9   r:   r%   r   r   r	   rU   :  ód   



ÿÿ
ÿÿ
òz0ResellerApi.delete_reseller_child_with_http_infoc                 K   r   )ao  Dissociate a dedicated IP to the child  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.dissociate_ip_from_child(child_identifier, ip, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param ManageIp ip: IP to dissociate (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Ú'dissociate_ip_from_child_with_http_infor=   r   r   r	   Údissociate_ip_from_child†  r   z$ResellerApi.dissociate_ip_from_childc                 K   r@   )a~  Dissociate a dedicated IP to the child  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.dissociate_ip_from_child_with_http_info(child_identifier, ip, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param ManageIp ip: IP to dissociate (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r   r>   r   r   r   r   r   zJGot an unexpected keyword argument '%s' to method dissociate_ip_from_childNzYMissing the required parameter `child_identifier` when calling `dissociate_ip_from_child`zKMissing the required parameter `ip` when calling `dissociate_ip_from_child`r   r   r   r   r   r   z3/reseller/children/{childIdentifier}/ips/dissociater   Tr    r'   rA   r   r   r	   r\   œ  r;   z3ResellerApi.dissociate_ip_from_child_with_http_infoc                 K   rT   )a¹  Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the identifier supplied  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_child_account_creation_status(child_identifier, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :return: GetChildAccountCreationStatus
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Ú0get_child_account_creation_status_with_http_inforV   r   r   r	   Ú!get_child_account_creation_statusï  rX   z-ResellerApi.get_child_account_creation_statusc                 K   ó*  dg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr/td| ƒ‚|||< q!|d= d|vsA|d du rEtd	ƒ‚i }i }d|v rS|d |d
< g }	i }
g }i }d}| j dg¡|
d< | j dg¡|
d< ddg}| jj	dd||	|
|||d|| 
d¡| 
d¡| 
dd¡| 
d¡|d�S )aÈ  Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the identifier supplied  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_child_account_creation_status_with_http_info(child_identifier, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :return: GetChildAccountCreationStatus
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   zSGot an unexpected keyword argument '%s' to method get_child_account_creation_statusNzbMissing the required parameter `child_identifier` when calling `get_child_account_creation_status`r   r   r   r   r   r   z:/reseller/children/{childIdentifier}/accountCreationStatusÚGETÚGetChildAccountCreationStatusTr    r'   rZ   r   r   r	   r^     r[   z<ResellerApi.get_child_account_creation_status_with_http_infoc                 K   rT   )aD  Get all sender domains for a specific child account  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_child_domains(child_identifier, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :return: GetChildDomains
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Ú get_child_domains_with_http_inforV   r   r   r	   Úget_child_domainsP  rX   zResellerApi.get_child_domainsc                 K   r`   )aS  Get all sender domains for a specific child account  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_child_domains_with_http_info(child_identifier, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :return: GetChildDomains
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   zCGot an unexpected keyword argument '%s' to method get_child_domainsNzRMissing the required parameter `child_identifier` when calling `get_child_domains`r   r   r   r   r   r   rE   ra   ÚGetChildDomainsTr    r'   rZ   r   r   r	   rc   e  r[   z,ResellerApi.get_child_domains_with_http_infoc                 K   rT   )a(  Get a child account's details  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_child_info(child_identifier, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :return: GetChildInfo
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Úget_child_info_with_http_inforV   r   r   r	   Úget_child_info±  rX   zResellerApi.get_child_infoc                 K   r`   )a7  Get a child account's details  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_child_info_with_http_info(child_identifier, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :return: GetChildInfo
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   z@Got an unexpected keyword argument '%s' to method get_child_infoNzOMissing the required parameter `child_identifier` when calling `get_child_info`r   r   r   r   r   r   rY   ra   ÚGetChildInfoTr    r'   rZ   r   r   r	   rf   Æ  r[   z)ResellerApi.get_child_info_with_http_infoc                 K   rF   )ae  Get the list of all children accounts  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_reseller_childs(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int limit: Number of documents for child accounts information per page
        :param int offset: Index of the first document in the page
        :return: GetChildrenList
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   Nr   )r   Ú"get_reseller_childs_with_http_inforH   r   r   r	   Úget_reseller_childs  s
   
zResellerApi.get_reseller_childsc                 K   sL  ddg}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr0td| ƒ‚|||< q"|d= d|v rF|d d	krFtd
ƒ‚i }i }g }d|v rY|  d|d f¡ d|v rf|  d|d f¡ i }	g }
i }d}| j dg¡|	d< | j dg¡|	d< ddg}| jj	dd|||	||
|d|| 
d¡| 
d¡| 
dd¡| 
d¡|d�S )at  Get the list of all children accounts  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_reseller_childs_with_http_info(async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param int limit: Number of documents for child accounts information per page
        :param int offset: Index of the first document in the page
        :return: GetChildrenList
                 If the method is called asynchronously,
                 returns the request thread.
        ÚlimitÚoffsetr   r   r   r   r   zEGot an unexpected keyword argument '%s' to method get_reseller_childsé   zrInvalid value for parameter `limit` when calling `get_reseller_childs`, must be a value less than or equal to `20`Nr   r   r   r   r   rK   ra   ÚGetChildrenListTr    r'   rM   r   r   r	   ri   (  sf   



ÿÿ
ÿÿ
òz.ResellerApi.get_reseller_childs_with_http_infoc                 K   rT   )a3  Get session token to access Sendinblue (SSO)  # noqa: E501

        It returns a session [token] which will remain valid for a short period of time. A child account will be able to access a white-labeled section by using the following url pattern => https:/email.mydomain.com/login/sso?token=[token]  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_sso_token(child_identifier, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :return: GetSsoToken
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Úget_sso_token_with_http_inforV   r   r   r	   Úget_sso_tokenu  s
   
zResellerApi.get_sso_tokenc                 K   r`   )aB  Get session token to access Sendinblue (SSO)  # noqa: E501

        It returns a session [token] which will remain valid for a short period of time. A child account will be able to access a white-labeled section by using the following url pattern => https:/email.mydomain.com/login/sso?token=[token]  # noqa: E501
        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.get_sso_token_with_http_info(child_identifier, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :return: GetSsoToken
                 If the method is called asynchronously,
                 returns the request thread.
        r   r   r   r   r   r   z?Got an unexpected keyword argument '%s' to method get_sso_tokenNzNMissing the required parameter `child_identifier` when calling `get_sso_token`r   r   r   r   r   r   z)/reseller/children/{childIdentifier}/authra   ÚGetSsoTokenTr    r'   rZ   r   r   r	   ro   ‹  sd   



ÿÿ
ÿÿ
òz(ResellerApi.get_sso_token_with_http_infoc                 K   r   )aä  Remove Email and/or SMS credits from a specific child account  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.remove_credits(child_identifier, remove_credits, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param RemoveCredits remove_credits: Values to post to remove email or SMS credits from a specific child account (required)
        :return: RemainingCreditModel
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Úremove_credits_with_http_info)r   r   Úremove_creditsr   r   r   r   r	   rs   Ø  r   zResellerApi.remove_creditsc                 K   r   )aó  Remove Email and/or SMS credits from a specific child account  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.remove_credits_with_http_info(child_identifier, remove_credits, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param RemoveCredits remove_credits: Values to post to remove email or SMS credits from a specific child account (required)
        :return: RemainingCreditModel
                 If the method is called asynchronously,
                 returns the request thread.
        r   rs   r   r   r   r   r   z@Got an unexpected keyword argument '%s' to method remove_creditsNzOMissing the required parameter `child_identifier` when calling `remove_credits`zMMissing the required parameter `remove_credits` when calling `remove_credits`r   r   r   r   r   r   z3/reseller/children/{childIdentifier}/credits/remover   r   Tr    r'   )r   r   rs   r   r1   r2   r3   r4   r&   r5   r6   r7   r8   r9   r:   r%   r   r   r	   rr   î  r;   z)ResellerApi.remove_credits_with_http_infoc                 K   r   )aú  Update info of reseller's child account status based on the childIdentifier supplied  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.update_child_account_status(child_identifier, update_child_account_status, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param UpdateChildAccountStatus update_child_account_status: values to update in child account status (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Ú*update_child_account_status_with_http_info)r   r   Úupdate_child_account_statusr   r   r   r   r	   ru   A  r   z'ResellerApi.update_child_account_statusc                 K   r@   )a	  Update info of reseller's child account status based on the childIdentifier supplied  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.update_child_account_status_with_http_info(child_identifier, update_child_account_status, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param UpdateChildAccountStatus update_child_account_status: values to update in child account status (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r   ru   r   r   r   r   r   zMGot an unexpected keyword argument '%s' to method update_child_account_statusNz\Missing the required parameter `child_identifier` when calling `update_child_account_status`zgMissing the required parameter `update_child_account_status` when calling `update_child_account_status`r   r   r   r   r   r   z2/reseller/children/{childIdentifier}/accountStatusÚPUTTr    r'   )r   r   ru   r   r1   r2   r3   r4   r&   r5   r6   r7   r8   r9   r:   r%   r   r   r	   rt   W  r;   z6ResellerApi.update_child_account_status_with_http_infoc                 K   sB   d|d< |  d¡r| j|||fi |¤ŽS | j|||fi |¤Ž}|S )aI  Update the sender domain of reseller's child based on the childIdentifier and domainName passed  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.update_child_domain(child_identifier, domain_name, update_child_domain, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param str domain_name: Pass the existing domain that needs to be updated (required)
        :param UpdateChildDomain update_child_domain: value to update for sender domain (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Ú"update_child_domain_with_http_info)r   r   rO   Úupdate_child_domainr   r   r   r   r	   rx   ª  s
   
zResellerApi.update_child_domainc                 K   sˆ  g d¢}|  d¡ |  d¡ |  d¡ |  d¡ tƒ }t |d ¡D ]\}}||vr0td| ƒ‚|||< q"|d= d|vsB|d d	u rFtd
ƒ‚d|vsP|d d	u rTtdƒ‚d|vs^|d d	u rbtdƒ‚i }	i }
d|v rp|d |
d< d|v rz|d |
d< g }i }g }i }d	}d|v rŒ|d }| j dg¡|d< | j dg¡|d< ddg}| jj	dd|
|||||d	|| 
d¡| 
d¡| 
dd¡| 
d¡|	d�S )aX  Update the sender domain of reseller's child based on the childIdentifier and domainName passed  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.update_child_domain_with_http_info(child_identifier, domain_name, update_child_domain, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param str domain_name: Pass the existing domain that needs to be updated (required)
        :param UpdateChildDomain update_child_domain: value to update for sender domain (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        )r   rO   rx   r   r   r   r   r   zEGot an unexpected keyword argument '%s' to method update_child_domainr   NzTMissing the required parameter `child_identifier` when calling `update_child_domain`rO   zOMissing the required parameter `domain_name` when calling `update_child_domain`rx   zWMissing the required parameter `update_child_domain` when calling `update_child_domain`r   rQ   r   r   r   r   r   rR   rv   Tr    r'   )r   r   rO   rx   r   r1   r2   r3   r4   r&   r5   r6   r7   r8   r9   r:   r%   r   r   r	   rw   Á  sx   



ÿÿ
ÿÿ
òz.ResellerApi.update_child_domain_with_http_infoc                 K   r   )a¸  Update info of reseller's child based on the child identifier supplied  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.update_reseller_child(child_identifier, reseller_child, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param UpdateChild reseller_child: values to update in child profile (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        Tr   r   )r   Ú$update_reseller_child_with_http_info)r   r   rJ   r   r   r   r   r	   Úupdate_reseller_child  r   z!ResellerApi.update_reseller_childc                 K   r@   )aÇ  Update info of reseller's child based on the child identifier supplied  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.update_reseller_child_with_http_info(child_identifier, reseller_child, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str child_identifier: Either auth key or id of reseller's child (required)
        :param UpdateChild reseller_child: values to update in child profile (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        r   rJ   r   r   r   r   r   zGGot an unexpected keyword argument '%s' to method update_reseller_childNzVMissing the required parameter `child_identifier` when calling `update_reseller_child`zTMissing the required parameter `reseller_child` when calling `update_reseller_child`r   r   r   r   r   r   rY   rv   Tr    r'   )r   r   rJ   r   r1   r2   r3   r4   r&   r5   r6   r7   r8   r9   r:   r%   r   r   r	   ry   1  r;   z0ResellerApi.update_reseller_child_with_http_infor   )%Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r?   r<   rD   rB   rI   rG   rP   rN   rW   rU   r]   r\   r_   r^   rd   rc   rg   rf   rj   ri   rp   ro   rs   rr   ru   rt   rx   rw   rz   ry   r   r   r   r	   r      sF    
SSSHSLSLLLMMSSZr   )	r~   Ú
__future__r   Úrer*   Úsib_api_v3_sdk.api_clientr   Úobjectr   r   r   r   r	   Ú<module>   s   