[
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.yml",
    "content": "name: 🐛 Bug Report\ndescription: Report a bug or unexpected behavior in the SDK\ntitle: \"[BUG]: \"\nlabels: [\"bug\", \"needs-triage\"]\nassignees: [\"danielalfarourrea\",\"luismeli10\",\"orojaspardo\"]\n\nbody:\n  - type: markdown\n    attributes:\n      value: |\n        ## 🐛 Thanks for reporting this issue!\n\n        Please make sure you tested with the latest version of the relevant packages and/or checked existing issues to avoid duplicates. If the bug persists, open the issue with a clear and concise description including screenshots, if applicable. We appreciate your feedback!\n\n        **Before reporting a bug:**\n        - 🔍 **Search [existing issues](./issues?q=is%3Aissue) to avoid duplicates**\n        - 📚 **Verify you are using the [latest version](../../releases)**\n        - 💡 **Try to reproduce the problem in sandbox environment**\n        - ⚠️ **IMPORTANT: Your bug will be resolved faster if you can share a self-contained example that doesn't rely on internal or private dependencies.**\n\n        > **🔒 SECURITY WARNING:** Issues without reproduction steps or code examples may be immediately closed as not actionable. Always remember to **REMOVE ALL PII AND PERSONAL INFORMATION** from your examples. **Bugs opened with real data will be immediately reported and closed.**\n\n  - type: input\n    id: sdk-version\n    attributes:\n      label: 📦 SDK Version\n      description: \"Example: 2.1.0\"\n      placeholder: \"x.y.z\"\n    validations:\n      required: true\n\n  - type: textarea\n    id: environment-details\n    attributes:\n      label: 🖥️ Environment Details\n      description: |\n        System and dependencies information\n      placeholder: |\n        - Operating System: [e.g. Ubuntu 20.04, Windows 11, macOS 13]\n        - Language Version: [e.g. Python 3.9.0, Node.js 18.0.0]\n        - Framework: [e.g. Django 4.0, Express 4.18]\n        - Package Manager: [e.g. pip 21.0, npm 8.0]\n        - Other relevant dependencies: ...\n    validations:\n      required: true\n\n  - type: dropdown\n    id: country\n    attributes:\n      label: 🌎 Country\n      description: Country where the issue occurs\n      options:\n        - Argentina (MLA)\n        - Brazil (MLB)\n        - Chile (MLC)\n        - Colombia (MCO)\n        - Mexico (MLM)\n        - Peru (MPE)\n        - Uruguay (MLU)\n        - Other\n    validations:\n      required: true\n\n  - type: textarea\n    id: description\n    attributes:\n      label: 📝 Bug Description\n      description: A clear and concise description of what the bug is\n      placeholder: The SDK fails when I try to...\n    validations:\n      required: true\n\n  - type: textarea\n    id: expected\n    attributes:\n      label: ✅ Expected Behavior\n      description: A clear description of the behavior you expected from the SDK\n      placeholder: I expected the SDK to...\n    validations:\n      required: true\n\n  - type: textarea\n    id: actual\n    attributes:\n      label: ❌ Actual Behavior\n      description: A description of what the SDK actually does instead\n      placeholder: Instead, the SDK...\n    validations:\n      required: true\n\n  - type: textarea\n    id: reproduce\n    attributes:\n      label: 🔄 Steps To Reproduce\n      description: Detailed steps to reproduce the problem\n      placeholder: |\n        1. Configure the SDK with...\n        2. Execute the method...\n        3. Send the following parameters...\n        4. Observe the error...\n    validations:\n      required: true\n\n  - type: textarea\n    id: code-sample\n    attributes:\n      label: 💻 Code Example\n      description: |\n        Minimal code that reproduces the problem. **REMOVE ALL CREDENTIALS AND SENSITIVE DATA.**\n\n        You can provide:\n        - A CodeSandbox (https://codepen.io/pen/)\n        - A link to a GitHub repository\n        - A minimal code example that reproduces the problem\n        - A screenshot of the application if you think it is relevant\n\n        **Remember to REMOVE ALL SENSITIVE DATA FIRST.**\n      render: python\n      placeholder: |\n        import mercadopago\n\n        sdk = mercadopago.SDK(\"YOUR_ACCESS_TOKEN\")  # ⚠️ DO NOT USE REAL TOKENS\n\n        # Your code here that reproduces the bug...\n    validations:\n      required: true\n\n  - type: textarea\n    id: error-logs\n    attributes:\n      label: 📋 Logs and Error Messages\n      description: Copy complete logs, stack traces, or error messages\n      render: shell\n      placeholder: |\n        Error: ...\n        Stack trace: ...\n\n  - type: checkboxes\n    id: checklist\n    attributes:\n      label: ✅ Checklist\n      options:\n        - label: I have verified that I am using the latest SDK version\n          required: true\n        - label: I have searched existing issues and this bug has not been reported\n          required: true\n        - label: I have included a minimal code example to reproduce the problem\n          required: true\n        - label: I have removed all sensitive information (tokens, credentials, real data)\n          required: true"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/config.yml",
    "content": "blank_issues_enabled: false\ncontact_links:\n  - name: Support Center Mercado Pago - ES\n    url: https://www.mercadopago.com/developers/es/support/center\n    about: Problems with payments, account, or general inquiries\n  - name: Support Center Mercado Pago - PT\n    url: https://www.mercadopago.com/developers/pt/support/center\n    about: Problems with payments, account, or general inquiries"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.yml",
    "content": "name: ✨ Feature Request\ndescription: Propose a new feature for the Mercado Pago SDK\ntitle: \"[FEATURE]: \"\nlabels: [\"enhancement\", \"needs-triage\"]\nassignees: [\"danielalfarourrea\",\"luismeli10\",\"orojaspardo\"]\n\nbody:\n  - type: markdown\n    attributes:\n      value: |\n        ## 💡 Thanks for contributing with ideas!\n\n        Your feedback is valuable to improve the SDK. Before submitting:\n        - 🔍 **Search [existing issues](./issues?q=is%3Aissue) to avoid duplicates**.\n        - 📚 **Check the [documentation](https://www.mercadopago.com/developers/es/docs) to confirm this isn't already supported**.\n\n  - type: dropdown\n    id: feature-type\n    attributes:\n      label: ⚙️ Feature Type\n      description: What type of improvement are you proposing?\n      options:\n        - New feature\n        - Enhancement of existing feature\n        - Support for new Mercado Pago product\n        - Better error handling\n        - Documentation improvement\n        - Performance optimization\n        - Other\n    validations:\n      required: true\n\n  - type: textarea\n    id: problem\n    attributes:\n      label: 🎯 Problem to solve\n      description: Describe the problem or need this feature would solve.\n      placeholder: |\n        As a developer of [application type]...\n        I need [feature]...\n        To be able to [goal]...\n    validations:\n      required: true\n\n  - type: textarea\n    id: solution\n    attributes:\n      label: 💡 Proposed Solution\n      description: Describe how you would like this new feature to work.\n      placeholder: |\n        I would like the SDK to support...\n        The implementation could be...\n        Usage example:\n        ```\n        // example code\n        ```\n    validations:\n      required: true\n\n  - type: textarea\n    id: alternatives\n    attributes:\n      label: 🔄 Alternatives Considered\n      description: |\n        Have you tried any workarounds?\n        Are there similar features in other SDKs or libraries?\n      placeholder: |\n        - Alternative 1: ...\n        - Alternative 2: ...\n        - In the [language] SDK they do...\n\n  - type: checkboxes\n    id: checklist\n    attributes:\n      label: ✅ Checklist\n      options:\n        - label: I have searched existing issues and this feature has not been requested before\n          required: true\n        - label: I have clearly described the problem I am trying to solve\n          required: true\n        - label: I have proposed a concrete solution or API design\n          required: true\n        - label: This feature would benefit other users, not just my specific use case\n          required: true\n        - label: I have not included any sensitive information (tokens, credentials, real data)\n          required: true"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/question.yml",
    "content": "name: 💬 Question\ndescription: Ask a question about the Mercado Pago SDK\ntitle: \"[QUESTION]: \"\nlabels: [\"question\", \"needs-triage\"]\nassignees: [\"danielalfarourrea\",\"luismeli10\",\"orojaspardo\"]\n\nbody:\n  - type: markdown\n    attributes:\n      value: |\n        ## 👋 Thanks for using the Mercado Pago SDK!\n\n        Before asking your question, please:\n        - 🔍 **Search [existing issues](./issues?q=is%3Aissue) to see if it was already answered**\n        - 📚 **Check the [official documentation](https://www.mercadopago.com/developers/es/docs)**\n        - 💡 **Review the repository examples**\n\n  - type: input\n    id: sdk-version\n    attributes:\n      label: 📦 SDK Version\n      description: \"Example: 2.1.0\"\n      placeholder: \"x.y.z\"\n    validations:\n      required: true\n\n  - type: dropdown\n    id: country\n    attributes:\n      label: 🌎 Country\n      description: In which country are you operating?\n      options:\n        - Argentina (MLA)\n        - Brazil (MLB)\n        - Chile (MLC)\n        - Colombia (MCO)\n        - Mexico (MLM)\n        - Peru (MPE)\n        - Uruguay (MLU)\n        - Other\n    validations:\n      required: true\n\n  - type: textarea\n    id: context\n    attributes:\n      label: 🖥️ Environment Details\n      description: |\n        Provide details about your environment to help us understand your setup:\n        - Platform (Web, Mobile, Backend)\n        - Framework used\n        - Relevant error messages\n        - Documentation consulted\n      placeholder: |\n        - Platform: [e.g. Backend, Web, Mobile]\n        - Language Version: [e.g. Python 3.9.0, Node.js 18.0.0]\n        - Framework: [e.g. Django 4.0, Express 4.18]\n        - Other relevant dependencies: ...\n\n  - type: textarea\n    id: question\n    attributes:\n      label: ❓ Your Question\n      description: Ask your question as clearly and specifically as possible. The more detail you provide, the faster we can help.\n      placeholder: |\n        What are you trying to do?\n        What have you tried so far?\n        What is the result you are getting vs. what you expected?\n        Is there an error message involved?\n    validations:\n      required: true\n\n  - type: textarea\n    id: code-sample\n    attributes:\n      label: 💻 Code Example (optional)\n      description: If applicable, share a code snippet that illustrates your question. **Remember to remove all sensitive data (tokens, credentials, etc)**\n      render: python\n      placeholder: |\n        import mercadopago\n\n        sdk = mercadopago.SDK(\"YOUR_ACCESS_TOKEN\")  # ⚠️ DO NOT USE REAL TOKENS\n        # Your code here...\n\n  - type: checkboxes\n    id: checklist\n    attributes:\n      label: ✅ Checklist\n      options:\n        - label: I have searched existing issues\n          required: true\n        - label: I have checked the official documentation\n          required: true\n        - label: I have removed sensitive information (tokens, credentials, etc)\n          required: true"
  },
  {
    "path": ".github/workflows/cd.yml",
    "content": "# This workflow will install Python dependencies and upload a version in the PyPI\nname: CD - Upload PyPI\n\non:\n  release:\n    types: [ released ]\n\njobs:\n  upload:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v2\n\n      # Sets up python\n      - uses: actions/setup-python@v2\n        with:\n          python-version: 3.12\n\n      # Install dependencies\n      - name: \"Installs dependencies\"\n        run: |\n          python3 -m pip install --upgrade pip\n          python3 -m pip install setuptools build twine\n          python3 -m pip install .\n\n      # Build and upload to PyPI\n      - name: \"Builds and uploads to PyPI\"\n        run: |\n          python3 -m build\n          python3 -m twine check dist/*\n          python3 -m twine upload dist/*\n        env:\n          TWINE_USERNAME: __token__\n          TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}\n"
  },
  {
    "path": ".github/workflows/ci.yml",
    "content": "# This workflow will install Python dependencies, run tests and lint with a variety of Python versions\n# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions\n\nname: CI - Lint and Tests\n\non:\n  pull_request:\n    branches:\n    - 'master'\n\njobs:\n  build:\n\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        python-version: ['3.9', '3.10', '3.11', '3.12']\n\n    steps:\n    - uses: actions/checkout@v2\n    - name: Set up Python ${{ matrix.python-version }}\n      uses: actions/setup-python@v2\n      with:\n        python-version: ${{ matrix.python-version }}\n\n    - name: Install dependencies\n      run: |\n        python -m pip install --upgrade pip\n        python -m pip install requests\n\n    - name: Lint with Pylint\n      run: |\n        pip install pylint\n        pylint mercadopago\n        pylint --rcfile=tests/.pylintrc tests\n\n    - name: Lint with Isort\n      run: |\n        pip install isort\n        isort .\n\n    - name: Test with unittest\n      run: |\n        python -m unittest discover tests/\n      env:\n        ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}}\n"
  },
  {
    "path": ".gitignore",
    "content": "*.py[cod]\n*.pyc\n.DS_Store\n.idea\nvenv\n\n# C extensions\n*.so\n\n# Packages\n*.egg\n*.egg-info\ndist\nbuild\neggs\nparts\nbin\nvar\nsdist\ndevelop-eggs\n.installed.cfg\nlib64\n__pycache__\n\n# Installer logs\npip-log.txt\n\n# Unit test / coverage reports\n.coverage\n.tox\nnosetests.xml\n\n# Translations\n*.mo\n\n# Mr Developer\n.mr.developer.cfg\n.project\n.pydevproject\n\n# Demo\nimg/\nPRESS.md\n\n# vscode\n.vscode\n"
  },
  {
    "path": ".pre-commit-config.yaml",
    "content": "repos:\n  - repo: https://github.com/melisource/fury_websec-git-hooks\n    rev: v2.0.0\n    hooks:\n      - id: pre_commit_hook\n        stages: [commit]\n      - id: post_commit_hook\n        stages: [post-commit]\n        \n  - repo: https://github.com/melisource/fury_datasec-git-hooks\n    rev:  1.2.2\n    hooks:\n      - id: pre_commit_hook\n        stages: [commit]\n      - id: post_commit_hook\n        stages: [post-commit]\n"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "content": "# Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as\ncontributors and maintainers pledge to make participation in \nour community a harassment-free experience for everyone, regardless of age, body\nsize, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression,\nlevel of experience, education, socio-economic status, nationality, personal\nappearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment\ninclude:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or\nadvances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment of individuals or the company\n* Publishing others' private information, such as a physical or electronic\naddress, without explicit permission\n* Other conduct that could reasonably be considered inappropriate in a\nprofessional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable\nbehavior and are expected to take appropriate and fair corrective action in\nresponse to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or\nreject comments, commits, code, wiki edits, issues, and other contributions\nthat are not aligned with this Code of Conduct, as well as temporarily or\npermanently ban any contributor for other behavior deemed inappropriate, threatening, offensive, or harmful with or without prior notice..\n\n\n## Scope\n\nThis Code of Conduct applies within all project spaces and it also applies when\nan individual is representing the project or its community in public spaces.\nExamples of representing a project or community include using an official\nproject email address, posting via an official social media account, or acting\nas an appointed representative at an online or offline event. Representation of\na project may be further defined and clarified by project maintainers.\n\nThis Code of Conduct also applies outside the project spaces when there is a\nreasonable belief that an individual's behavior may have a negative impact on\nthe project, the company or the community.\n\n## Enforcement\n\nProject maintainers who do not follow or enforce the Code of Conduct in good\nfaith may face temporary or permanent repercussions as determined by other\nmembers of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,\navailable at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html\n\n[homepage]: https://www.contributor-covenant.org\n\nFor answers to common questions about this code of conduct, see\nhttps://www.contributor-covenant.org/faq"
  },
  {
    "path": "CODING_GUIDELINES.md",
    "content": "# Coding Guidelines\n\nThe Mercado Pago Python SDK is a collaborative effort from the start. The SDK team thinks that contributions from different developer will enrich it's feature set and make it more relevant to the community.\n\nHowever; absorbing all contributions as-is, while expedient, might lead to difficulties in maintenance of the codebase is left unchecked. Collaborative codebases often establish guidelines for contributors to ensure code remains maintainable over time. The effort to maintain the SDK is no different in this regard so a bit of guidance is in order.\n\nThe purpose of this guide is to set a baseline for contributions. These guidelines are not intended to limit the tools at your disposal nor to rewire the way you think but rather to encourage good neighbor behavior.\n\n## Language Guidelines\n\nWe use **english** language. This is to be consistent everywhere, and to be considerate with developers that do not speak our native language.\n\nTherefore: source code, comments, documentation, commit messages, review comments, and any other kind of contribution *MUST* use english language.\n\nTypos are unavoidable, but try to reduce them by using a spellchecker. Most IDEs can be configured to run one automatically.\n\n## Code Guidelines\n\n* Set your IDE to follow the [`.editorconfig`](https://editorconfig.org/) in each repository.\n* Follow the [PEP 8 Style Guide](https://pep8.org/).\n\nGenerally speaking, be conscious when contributing and try following the same style that the code in the SDK already has. If you have any doubts, just ask us!\n\nThis rules will be enforced automatically when making a pull requests, and checks will fail if you do not follow them, resulting in your contribution being automatically rejected until fixed.\n\n## Comment Guidelines\n\nComments in code are a hard thing to write, not because the words are difficult to produce but because it is hard to make relevant comments. Too much of it and people do not read comments (and it obfuscates code reading) and too little of it gives you no recourse but to read large portions of codebase to get insight as to what a feature/codeblock is doing. Both situations are undesirable and efforts should be made at all time to have a please comment reading experience\n\nAs a general rule you would have to comment on decisions you made while coding that are not part of any specification.\n\nIn particular you should always comment any decision that:\n\n* Departs from common wisdom or convention (The **why's** are necessary).\n* Takes a significant amount of time to produce. A good rule of thumb here is that if you spent more than 1 hour thinking on how to produce a fragment of code that took 2 minutes of wrist time to write you should document your thinking to aid reader and allow for validation.\n* Need to preserve properties of the implementation. This is the case of performance sensitive portions of the codebase, goroutines synchronization, implementations of security primitives, congestion control algorithms, etc.\n\nAs a general rule of what not to comment you should avoid:\n\n* Commenting on structure of programs that is already part of a convention, specified or otherwise.\n* Having pedantic explanations of behavior that can be found by immediate examination of the surrounding code artifacts.\n* Commenting on behavior you cannot attest.\n\n### Branching Guidelines\n\nCurrently `master` is our only long term branch, below a few suggestions of short term branches naming:\n\n* `hotfix/something-needs-fix`: Small routine patches in code to features already there.\n* `feature/something-new`: A new feature or a change in a existent feature. Beware of breaking changes that would require a major version bump.\n* `doc/improves-documentation-for-this-feature`: If you add or change documentation with no impact to the source code.\n\n### Git Guidelines\n\nAll commits **SHOULD** follow the [seven rules of a great Git commit message](https://chris.beams.io/posts/git-commit):\n\n1. Separate subject from body with a blank line.\n2. Limit the subject line to 72 characters.\n3. Capitalize the subject line.\n4. Do not end the subject line with a period.\n5. Use the imperative mood in the subject line.\n6. Wrap the body at 72 characters.\n7. Use the body to explain what and why vs. how.\n\nCommits such as \"fix tests\", \"now it's working\" and many other common messages we find usually in code **WON'T** be accepted.\n\nIdeally we would like to enforce these rules, but we are realistic and understand that it might be a big change for some people. So unless deviating heavily from what was stated we might accept your commits even if not following these rules perfectly.\n\nPlease avoid taking to much time to deliver code, and always [rebase](https://git-scm.com/docs/git-rebase) your code to avoid reverse merge commits.\n\nWhen reviewing, check if the PR adheres to [PEP 8 Style Guide](https://pep8.org/).\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# Contributing to the Mercado Pago Python SDK\n\nThank you for your interest in contributing to the Mercado Pago Python SDK!\n\n## How to contribute\n\nIn order to contribute to the Mercado Pago Python SDK effectively we provide guidelines to address common case for contributions. Presently we have guides for the following type of changes.\n\n* Request For Change (RFC) / Feature Request: These are suggestions / requests for features the SDK currently does not have. The SDK team evaluates these requests for adequacy / relevance / capacity and overall architectural consistency.\n* Bug Reports: These are reports of non compliant behavior with the SDK specification and other blatantly wrong behavior of the Mercado Pago Python SDK.\n\nIn addition to contributing in the form of Bug Reports and RFCs it is also possible to contribute directly in code with a Pull Request (PR). In the case of a Pull Request you should also indicate the nature of the Pull Request (Feature/Bug/etc.) to help the team asses the Pull Request. If you are enthusiastic about a particular Feature being added or a bug being fixed, a PR is often the quickest way to promote your change as the team does not have to allocate as much resources to process the contribution.\n\nIn the case of PRs it is often best to consult with the SDK team before embarking on a PR, specially if it's a beefy one. Spending time on a PR that might later be rejected because major discrepancies with vision or competing contributions is an uncomfortable outcome for all involved people. Remember the SDK team with privilege overall consistency and progress over any one particular contribution.\n\n## Coding Guidance\n\nAll contributions *MUST* follow the [Coding Guidelines](CODING_GUIDELINES.md). Contributions that fail to follow this guidelines will be disregarded and told to make the required modifications to do so.\n\n## Request For Change / Feature Request\n\nGenerally speaking an RFC is needed when you want to add a new feature or change an existing one in an incompatible way that might result in a major version bump to the toolkit.\n\nThough it seems a little bureaucratic, the process is in place in order to avoid frustration of a potential contributor by making the discussions take place before any code is written. Once the design and direction is fully agreed then the contributor can work peacefully knowing that their change will be committed.\n\nAs of this moment all you need to do is create an issue and use the [Feature Request Template](.github/ISSUE_TEMPLATE/feature_request.md).\n\nPlease prepend your issue title with `[RFC]` so that's easier to filter.\n\n## Bug Reports\n\nBugs are a reality in software. We can't fix what we don't know about, so please report liberally. If you're not sure if something is a bug or not, feel free to file it anyway.\n\nBefore reporting a bug, please search existing issues and pull requests, as it's possible that someone else has already reported your error. In the off case that you find your issue as fixed/closed, please add a reference to it on your new one.\n\nYour issue should contain a title and a clear description of the issue. You should also include as much relevant information as possible and a code sample that demonstrates the issue. The goal of a bug report is to make it easy for yourself - and others - to replicate the bug and develop a fix.\n\nOpening an issue is as easy as following [this link](https://github.com/mercadopago/sdk-dotnet/issues/new) and filling out the given template.\n\nBug reports may also be sent in the form of a [pull request](#pull-request) containing a failing test.\n\n## Pull Request\n\nFirst and foremost: Source code, documentation, commit messages, review comments, and any other kind of contribution must *MUST* follow the [Coding Guidelines](CODING_GUIDELINES.md).\n\nWe use the \"fork and pull\" model [described here](https://help.github.com/articles/about-collaborative-development-models/), where contributors push changes to their personal fork and create pull requests to bring those changes into the source repository.\n\nYour basic steps to get going:\n\n* Fork the corresponding toolkit repository and create a branch from master for the issue you are working on.\n* Commit as you go following our git conventions.\n* Include tests that cover all non-trivial code. The existing tests should provide a template on how to test the toolkit correctly.\n* Make sure all test passes.\n* All code changes are expected to comply with the formatting style.\n* Push your commits to GitHub and create a pull request against the corresponding toolkit component master branch.\n\nIf taking to much time to deliver code, **always** [rebase](https://git-scm.com/docs/git-rebase) towards `master` before asking for a review, and avoid reverse merge commits.\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2021 MercadoPago Developers\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."
  },
  {
    "path": "MANIFEST.in",
    "content": "include README.rst\ninclude LICENSE"
  },
  {
    "path": "README.md",
    "content": "# Mercado Pago SDK for Python\n\n[![PyPI](https://img.shields.io/pypi/v/mercadopago.svg)](https://pypi.python.org/pypi/mercadopago)\n[![PyPI Downloads](https://img.shields.io/pypi/dm/mercadopago.svg)](https://pypi.python.org/pypi/mercadopago)\n[![APM](https://img.shields.io/apm/l/vim-mode)](https://github.com/mercadopago/sdk-python)\n\nThis library provides developers with a simple set of bindings to help you integrate Mercado Pago API to a website and start receiving payments.\n\n## 💡 Requirements\n\nPython 3 or higher.\n\n## 📲 Installation \n\nRun ```pip3 install mercadopago```\n\n## 🌟 Getting Started\n\nFirst time using Mercado Pago? Create your [Mercado Pago account](https://www.mercadopago.com).\n\nCopy your `Access Token` in the [credentials panel](https://www.mercadopago.com/developers/panel/credentials) and replace the text `YOUR_ACCESS_TOKEN` with it.\n\n### Simple usage\n  \n```python\nimport mercadopago\n\nsdk = mercadopago.SDK(\"YOUR_ACCESS_TOKEN\")\n\nrequest_options = mercadopago.config.RequestOptions()\nrequest_options.custom_headers = {\n    'x-idempotency-key': '<SOME_UNIQUE_VALUE>'\n}\n\npayment_data = {\n    \"transaction_amount\": 100,\n    \"token\": \"CARD_TOKEN\",\n    \"description\": \"Payment description\",\n    \"payment_method_id\": 'visa',\n    \"installments\": 1,\n    \"payer\": {\n        \"email\": 'test_user_123456@testuser.com'\n    }\n}\nresult = sdk.payment().create(payment_data, request_options)\npayment = result[\"response\"]\n\nprint(payment)\n```\n\n### Per-request configuration\n\nAll methods that make API calls accept an optional `RequestOptions` object. This can be used to configure some special options of the request, such as changing credentials or custom headers.\n\n```python\nimport mercadopago\nfrom mercadopago.config import RequestOptions\n\nrequest_options = RequestOptions(access_token='YOUR_ACCESS_TOKEN')\n# ...\n\nresult = sdk.payment().create(payment_data, request_options)\npayment = result[\"response\"]\n```\n\n## 📚 Documentation \n\nVisit our Dev Site for further information regarding:\n - [APIs](https://www.mercadopago.com/developers/en/reference)\n - [Checkout Pro](https://www.mercadopago.com/developers/en/guides/online-payments/checkout-pro/introduction)\n - [Checkout API](https://www.mercadopago.com/developers/en/guides/online-payments/checkout-api/introduction)\n - [Web Tokenize Checkout](https://www.mercadopago.com/developers/en/guides/online-payments/web-tokenize-checkout/introduction)\n\nCheck our official code reference to explore all available functionalities.\n\n## 🤝 Contributing\n\nAll contributions are welcome, ranging from people wanting to triage issues, others wanting to write documentation, to people wanting to contribute code.\n\nPlease read and follow our [contribution guidelines](CONTRIBUTING.md). Contributions not following this guidelines will be disregarded. The guidelines are in place to make all of our lives easier and make contribution a consistent process for everyone.\n\n## ❤️ Support\n\nIf you require technical support, please contact our support team at [developers.mercadopago.com](https://developers.mercadopago.com).\n\n## 🏻 License\n\n```\nMIT license. Copyright (c) 2021 - Mercado Pago / Mercado Libre\nFor more information, see the LICENSE file.\n```\n"
  },
  {
    "path": "SUPPORT.md",
    "content": "# 🆘 Support and Help\n\n> **Quick guide:** Have a bug? → [Bug Report](../../issues/new/choose) | Questions? → [Question](../../issues/new/choose) | New idea? → [Feature Request](../../issues/new/choose)\n\n---\n\n## 🎯 Quick Decision Guide\n\n| If you need... | Then... |\n|----------------|---------|\n| 💬 Question about how to use the SDK | [Create Question](../../issues/new/choose) |\n| 🐛 Report an error or bug | [Create Bug Report](../../issues/new/choose) |\n| ✨ Propose new feature | [Create Feature Request](../../issues/new/choose) |\n| 💳 Problem with your MP account | [Official MP Support - ES ](https://www.mercadopago.com.co/developers/en/support/center)- [Official MP Support - PT ](https://www.mercadopago.com.co/developers/pt/support/center) |\n \n---\n\n## 📚 Before Creating an Issue\n\n**Search first, ask later:**\n\n1. **[Official Documentation](https://www.mercadopago.com/developers/es/docs)** - Most questions are answered here\n2. **[Closed Issues](../../issues?q=is%3Aissue+is%3Aclosed)** - Your problem may be solved\n3. **[Open Issues](../../issues?q=is%3Aissue+is%3Aopen)** - Your problem may be already reported\n---\n\n## 💬 How to Report Issues\n\n### 1. For Questions 💬\n\n**When to use?** Doubts about usage, configuration, or best practices.\n\n**Steps:**\n\n1. Search in [closed questions](../../issues?q=is%3Aissue+is%3Aclosed+label%3Aquestion)\n2. [Create new question](../../issues/new/choose)\n3. **Include:** SDK version, country, environment, code example.\n\n### 2. For Bugs 🐛\n\n**When to use?** Errors, unexpected behavior and/or crashes.\n\n**Steps:**\n\n1. Verify [latest version](../../releases/latest)\n2. Search in [existing bugs](../../issues?q=is%3Aissue+label%3Abug)\n3. [Report bug](../../issues/new/choose)\n4. **Include:** reproducible steps, logs, environment, SDK version.\n\n### 3. For Features ✨\n\n**When to use?** Propose improvements or new features\n\n**Steps:**\n\n1. Search in [feature requests](../../issues?q=is%3Aissue+label%3Afeature%20request)\n2. [Propose feature](../../issues/new/choose)\n3. **Explain:** problem it solves, use cases, benefit.\n\n### 4. To Contribute 🤝\n\n**Want to help?** Read [CONTRIBUTING.md](./CONTRIBUTING.md)\n\n---\n\n## 🔒 Security\n\n### ⚠️ NEVER Share in Public Issues:\n\n- ❌ Access tokens or production credentials\n- ❌ Client IDs / Client Secrets\n- ❌ Customer or card data\n- ❌ Personally Identifiable Information (PII)\n\n> **⚠️ IMPORTANT:** Issues with real data will be closed and reported immediately.\n\n---\n\n## 🌎 Official Mercado Pago SDK Support\n\n### ⚡ GitHub Issues Scope\n\n**GitHub Issues is ONLY for SDK technical support.**\n\n✅ **Use GitHub for:**\n\n- SDK bugs\n- Questions about SDK usage\n- SDK features\n- Code contributions\n\n❌ **DO NOT use GitHub for:**\n\n- Problems with your MP account\n- Specific transactions or payments\n- Commercial or billing topics\n- Homologation/certification\n- Account access or credentials\n- Webhook configuration in your account\n\n### 🏢 Contact Official MP Support for:\n\n[**🔗 Official Mercado Pago Support - ES**](https://www.mercadopago.com.co/developers/es/support/center)\n[**🔗 Official Mercado Pago Support - PT**](https://www.mercadopago.com.co/developers/pt/support/center)\n\n- ✉️ Account problems\n- 💳 Transactions and payments\n- 🤝 Commercial topics\n- 📋 Homologation\n- 🔐 Account access\n- 🌐 Webhooks in your account\n- 📊 Reports and statistics\n\n---\n\n## 🔗 Resources and Contacts\n\n### Documentation\n\n- **[Official Documentation](https://www.mercadopago.com/developers/es/docs)** - Complete guides\n- **[API Reference](https://www.mercadopago.com/developers/en/reference)** - API reference\n- **[SDKs](https://www.mercadopago.com/developers/en/docs/sdks-library/server-side)** - Other SDKs\n\n### Support\n\n- **[GitHub Issues](../../issues/new/choose)** - SDK technical support\n\n### Community channels\n\n- **[Discord](https://discord.gg/96nqqpaycN)** - Community channel\n- **[Newsletter](https://www.mercadopago.com/developers/panel/contact)** - Mercado Pago Newsletter\n- **[Status Page](https://status.mercadopago.com/)** - Service status\n\n---\n\n## 💡 Tips for Getting Quick Help\n\n1. **🔍 Search first** - Saves everyone time\n2. **📝 Be specific** - \"Error 400 on POST /payments\" vs \"It doesn't work\"\n3. **💻 Reproducible code** - Minimal and complete example\n4. **📋 Follow templates** - They're designed to help you\n5. **🚫 No sensitive data** - Protect your security\n6. **🤝 Be respectful** - We're all part of the community\n\n---\n\n💙 **Thank you for being part of the Mercado Pago developer community!**"
  },
  {
    "path": "docs/config/config.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.config.config API documentation</title>\n<meta name=\"description\" content=\"Module: config\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.config.config</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: config</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\nModule: config\n&#34;&#34;&#34;\nimport platform\n\n\nclass Config:\n    &#34;&#34;&#34;\n    General infos of your SDK\n    &#34;&#34;&#34;\n\n    def __init__(self):\n        self.__version = &#34;2.2.0&#34;\n        self.__user_agent = &#34;MercadoPago Python SDK v&#34; + self.__version\n        self.__product_id = &#34;bc32bpftrpp001u8nhlg&#34;\n        self.__tracking_id = &#34;platform:&#34; + platform.python_version()\n        self.__tracking_id += &#34;,type:SDK&#34; + self.__version + &#34;,so;&#34;\n\n    __api_base_url = &#34;https://api.mercadopago.com&#34;\n    __mime_json = &#34;application/json&#34;\n    __mime_form = &#34;application/x-www-form-urlencoded&#34;\n\n    @property\n    def version(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of version\n        &#34;&#34;&#34;\n        return self.__version\n\n    @property\n    def user_agent(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of user agent\n        &#34;&#34;&#34;\n        return self.__user_agent\n\n    @property\n    def product_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of product id\n        &#34;&#34;&#34;\n        return self.__product_id\n\n    @property\n    def tracking_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of tracking id\n        &#34;&#34;&#34;\n        return self.__tracking_id\n\n    @property\n    def api_base_url(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of api base url\n        &#34;&#34;&#34;\n        return self.__api_base_url\n\n    @property\n    def mime_json(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of mime json\n        &#34;&#34;&#34;\n        return self.__mime_json\n\n    @property\n    def mime_form(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of mime form\n        &#34;&#34;&#34;\n        return self.__mime_form</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.config.config.Config\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">Config</span></span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>General infos of your SDK</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class Config:\n    &#34;&#34;&#34;\n    General infos of your SDK\n    &#34;&#34;&#34;\n\n    def __init__(self):\n        self.__version = &#34;2.2.0&#34;\n        self.__user_agent = &#34;MercadoPago Python SDK v&#34; + self.__version\n        self.__product_id = &#34;bc32bpftrpp001u8nhlg&#34;\n        self.__tracking_id = &#34;platform:&#34; + platform.python_version()\n        self.__tracking_id += &#34;,type:SDK&#34; + self.__version + &#34;,so;&#34;\n\n    __api_base_url = &#34;https://api.mercadopago.com&#34;\n    __mime_json = &#34;application/json&#34;\n    __mime_form = &#34;application/x-www-form-urlencoded&#34;\n\n    @property\n    def version(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of version\n        &#34;&#34;&#34;\n        return self.__version\n\n    @property\n    def user_agent(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of user agent\n        &#34;&#34;&#34;\n        return self.__user_agent\n\n    @property\n    def product_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of product id\n        &#34;&#34;&#34;\n        return self.__product_id\n\n    @property\n    def tracking_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of tracking id\n        &#34;&#34;&#34;\n        return self.__tracking_id\n\n    @property\n    def api_base_url(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of api base url\n        &#34;&#34;&#34;\n        return self.__api_base_url\n\n    @property\n    def mime_json(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of mime json\n        &#34;&#34;&#34;\n        return self.__mime_json\n\n    @property\n    def mime_form(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of mime form\n        &#34;&#34;&#34;\n        return self.__mime_form</code></pre>\n</details>\n<h3>Instance variables</h3>\n<dl>\n<dt id=\"mercadopago.config.config.Config.api_base_url\"><code class=\"name\">var <span class=\"ident\">api_base_url</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of api base url</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef api_base_url(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of api base url\n    &#34;&#34;&#34;\n    return self.__api_base_url</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.config.Config.mime_form\"><code class=\"name\">var <span class=\"ident\">mime_form</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of mime form</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef mime_form(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of mime form\n    &#34;&#34;&#34;\n    return self.__mime_form</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.config.Config.mime_json\"><code class=\"name\">var <span class=\"ident\">mime_json</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of mime json</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef mime_json(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of mime json\n    &#34;&#34;&#34;\n    return self.__mime_json</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.config.Config.product_id\"><code class=\"name\">var <span class=\"ident\">product_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of product id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef product_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of product id\n    &#34;&#34;&#34;\n    return self.__product_id</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.config.Config.tracking_id\"><code class=\"name\">var <span class=\"ident\">tracking_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of tracking id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef tracking_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of tracking id\n    &#34;&#34;&#34;\n    return self.__tracking_id</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.config.Config.user_agent\"><code class=\"name\">var <span class=\"ident\">user_agent</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of user agent</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef user_agent(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of user agent\n    &#34;&#34;&#34;\n    return self.__user_agent</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.config.Config.version\"><code class=\"name\">var <span class=\"ident\">version</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of version</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef version(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of version\n    &#34;&#34;&#34;\n    return self.__version</code></pre>\n</details>\n</dd>\n</dl>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.config\" href=\"index.html\">mercadopago.config</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.config.config.Config\" href=\"#mercadopago.config.config.Config\">Config</a></code></h4>\n<ul class=\"two-column\">\n<li><code><a title=\"mercadopago.config.config.Config.api_base_url\" href=\"#mercadopago.config.config.Config.api_base_url\">api_base_url</a></code></li>\n<li><code><a title=\"mercadopago.config.config.Config.mime_form\" href=\"#mercadopago.config.config.Config.mime_form\">mime_form</a></code></li>\n<li><code><a title=\"mercadopago.config.config.Config.mime_json\" href=\"#mercadopago.config.config.Config.mime_json\">mime_json</a></code></li>\n<li><code><a title=\"mercadopago.config.config.Config.product_id\" href=\"#mercadopago.config.config.Config.product_id\">product_id</a></code></li>\n<li><code><a title=\"mercadopago.config.config.Config.tracking_id\" href=\"#mercadopago.config.config.Config.tracking_id\">tracking_id</a></code></li>\n<li><code><a title=\"mercadopago.config.config.Config.user_agent\" href=\"#mercadopago.config.config.Config.user_agent\">user_agent</a></code></li>\n<li><code><a title=\"mercadopago.config.config.Config.version\" href=\"#mercadopago.config.config.Config.version\">version</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/config/index.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.config API documentation</title>\n<meta name=\"description\" content=\"Module: config/__init__.py\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.config</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: config/<strong>init</strong>.py</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\nModule: config/__init__.py\n&#34;&#34;&#34;\nfrom mercadopago.config.config import Config\nfrom mercadopago.config.request_options import RequestOptions\n\n\n__all__ = (\n    &#39;Config&#39;,\n    &#39;RequestOptions&#39;,\n)</code></pre>\n</details>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-submodules\">Sub-modules</h2>\n<dl>\n<dt><code class=\"name\"><a title=\"mercadopago.config.config\" href=\"config.html\">mercadopago.config.config</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: config</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.config.request_options\" href=\"request_options.html\">mercadopago.config.request_options</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: request_options</p></div>\n</dd>\n</dl>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.config.Config\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">Config</span></span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>General infos of your SDK</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class Config:\n    &#34;&#34;&#34;\n    General infos of your SDK\n    &#34;&#34;&#34;\n\n    def __init__(self):\n        self.__version = &#34;2.2.0&#34;\n        self.__user_agent = &#34;MercadoPago Python SDK v&#34; + self.__version\n        self.__product_id = &#34;bc32bpftrpp001u8nhlg&#34;\n        self.__tracking_id = &#34;platform:&#34; + platform.python_version()\n        self.__tracking_id += &#34;,type:SDK&#34; + self.__version + &#34;,so;&#34;\n\n    __api_base_url = &#34;https://api.mercadopago.com&#34;\n    __mime_json = &#34;application/json&#34;\n    __mime_form = &#34;application/x-www-form-urlencoded&#34;\n\n    @property\n    def version(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of version\n        &#34;&#34;&#34;\n        return self.__version\n\n    @property\n    def user_agent(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of user agent\n        &#34;&#34;&#34;\n        return self.__user_agent\n\n    @property\n    def product_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of product id\n        &#34;&#34;&#34;\n        return self.__product_id\n\n    @property\n    def tracking_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of tracking id\n        &#34;&#34;&#34;\n        return self.__tracking_id\n\n    @property\n    def api_base_url(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of api base url\n        &#34;&#34;&#34;\n        return self.__api_base_url\n\n    @property\n    def mime_json(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of mime json\n        &#34;&#34;&#34;\n        return self.__mime_json\n\n    @property\n    def mime_form(self):\n        &#34;&#34;&#34;\n        Sets the attribute value of mime form\n        &#34;&#34;&#34;\n        return self.__mime_form</code></pre>\n</details>\n<h3>Instance variables</h3>\n<dl>\n<dt id=\"mercadopago.config.Config.api_base_url\"><code class=\"name\">var <span class=\"ident\">api_base_url</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of api base url</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef api_base_url(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of api base url\n    &#34;&#34;&#34;\n    return self.__api_base_url</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.Config.mime_form\"><code class=\"name\">var <span class=\"ident\">mime_form</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of mime form</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef mime_form(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of mime form\n    &#34;&#34;&#34;\n    return self.__mime_form</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.Config.mime_json\"><code class=\"name\">var <span class=\"ident\">mime_json</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of mime json</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef mime_json(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of mime json\n    &#34;&#34;&#34;\n    return self.__mime_json</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.Config.product_id\"><code class=\"name\">var <span class=\"ident\">product_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of product id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef product_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of product id\n    &#34;&#34;&#34;\n    return self.__product_id</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.Config.tracking_id\"><code class=\"name\">var <span class=\"ident\">tracking_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of tracking id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef tracking_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of tracking id\n    &#34;&#34;&#34;\n    return self.__tracking_id</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.Config.user_agent\"><code class=\"name\">var <span class=\"ident\">user_agent</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of user agent</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef user_agent(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of user agent\n    &#34;&#34;&#34;\n    return self.__user_agent</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.Config.version\"><code class=\"name\">var <span class=\"ident\">version</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value of version</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef version(self):\n    &#34;&#34;&#34;\n    Sets the attribute value of version\n    &#34;&#34;&#34;\n    return self.__version</code></pre>\n</details>\n</dd>\n</dl>\n</dd>\n<dt id=\"mercadopago.config.RequestOptions\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">RequestOptions</span></span>\n<span>(</span><span>access_token=None, connection_timeout=60.0, custom_headers=None, corporation_id=None, integrator_id=None, platform_id=None, max_retries=3)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This object hold all configurations that will be used in ur REST call.</p>\n<p>All here u can customize as well add params in the requisition header (custom_headers)</p>\n<p>Initialize</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>access_token</code></strong> :&ensp;<code>str</code>, optional</dt>\n<dd>Your User Access Token. Defaults to None.</dd>\n<dt><strong><code>connection_timeout</code></strong> :&ensp;<code>float</code>, optional</dt>\n<dd>Time to timeout the REST call. Defaults to 60.0.</dd>\n<dt><strong><code>custom_headers</code></strong> :&ensp;<code>dict</code>, optional</dt>\n<dd>A Dict with params to be added to the requests params.</dd>\n<dt>Defaults to None.</dt>\n<dt><strong><code>corporation_id</code></strong> :&ensp;<code>str</code>, optional</dt>\n<dd>Your Corporation ID if any. Defaults to None.</dd>\n<dt><strong><code>integrator_id</code></strong> :&ensp;<code>str</code>, optional</dt>\n<dd>Your Integrator ID if any. Defaults to None.</dd>\n<dt><strong><code>platform_id</code></strong> :&ensp;<code>str</code>, optional</dt>\n<dd>Your Platform ID if any. Defaults to None.</dd>\n<dt><strong><code>max_retries</code></strong> :&ensp;<code>int</code>, optional</dt>\n<dd>How many retries must be done in case of fail.</dd>\n</dl>\n<p>Defaults to 3.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param access_token must be a String</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param connection_timeout must be a Float</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param custom_headers must be a Dictionary</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param corporation_id must be a String</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param integrator_id must be a String</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param platform_id must be a String</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param max_retries must be an Integer</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class RequestOptions:  # pylint: disable=too-many-instance-attributes\n\n    &#34;&#34;&#34;This object hold all configurations that will be used in ur REST call.\n\n    All here u can customize as well add params in the requisition header (custom_headers)\n    &#34;&#34;&#34;\n\n    __access_token = None\n    __connection_timeout = None\n    __custom_headers = None\n    __max_retries = None\n    __corporation_id = None\n    __integrator_id = None\n    __platform_id = None\n\n    def __init__(  # pylint: disable=too-many-arguments\n        self,\n        access_token=None,\n        connection_timeout=60.0,\n        custom_headers=None,\n        corporation_id=None,\n        integrator_id=None,\n        platform_id=None,\n        max_retries=3,\n    ):\n        &#34;&#34;&#34;Initialize\n\n        Args:\n            access_token (str, optional): Your User Access Token. Defaults to None.\n            connection_timeout (float, optional): Time to timeout the REST call. Defaults to 60.0.\n            custom_headers (dict, optional): A Dict with params to be added to the requests params.\n            Defaults to None.\n            corporation_id (str, optional): Your Corporation ID if any. Defaults to None.\n            integrator_id (str, optional): Your Integrator ID if any. Defaults to None.\n            platform_id (str, optional): Your Platform ID if any. Defaults to None.\n            max_retries (int, optional): How many retries must be done in case of fail.\n            Defaults to 3.\n\n        Raises:\n            ValueError: Param access_token must be a String\n            ValueError: Param connection_timeout must be a Float\n            ValueError: Param custom_headers must be a Dictionary\n            ValueError: Param corporation_id must be a String\n            ValueError: Param integrator_id must be a String\n            ValueError: Param platform_id must be a String\n            ValueError: Param max_retries must be an Integer\n        &#34;&#34;&#34;\n\n        if access_token is not None:\n            self.access_token = access_token\n        if connection_timeout is not None:\n            self.connection_timeout = connection_timeout\n        if custom_headers is not None:\n            self.custom_headers = custom_headers\n        if max_retries is not None:\n            self.max_retries = max_retries\n        if corporation_id is not None:\n            self.corporation_id = corporation_id\n        if integrator_id is not None:\n            self.integrator_id = integrator_id\n        if platform_id is not None:\n            self.platform_id = platform_id\n\n        self.__config = Config()\n\n    def get_headers(self):\n        &#34;&#34;&#34;\n        Sets the attribute values of headers\n        &#34;&#34;&#34;\n        headers = {&#34;Authorization&#34;: &#34;Bearer &#34; + self.__access_token,\n                   &#34;x-product-id&#34;: self.__config.product_id,\n                   &#34;x-tracking-id&#34;: self.__config.tracking_id,\n                   &#34;x-idempotency-key&#34;: str(uuid.uuid4().int),\n                   &#34;User-Agent&#34;: self.__config.user_agent,\n                   &#34;Accept&#34;: self.__config.mime_json}\n\n        if self.__corporation_id is not None:\n            headers[&#34;x-corporation-id&#34;] = self.__corporation_id\n\n        if self.__integrator_id is not None:\n            headers[&#34;x-integrator-id&#34;] = self.__integrator_id\n\n        if self.__platform_id is not None:\n            headers[&#34;x-platform-id&#34;] = self.__platform_id\n\n        if self.__custom_headers is not None:\n            headers.update(self.__custom_headers)\n\n        return headers\n\n    @property\n    def access_token(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates access_token\n        &#34;&#34;&#34;\n        return self.__access_token\n\n    @access_token.setter\n    def access_token(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param access_token must be a String&#34;)\n        self.__access_token = value\n\n    @property\n    def connection_timeout(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates connection timeout\n        &#34;&#34;&#34;\n        return self.__connection_timeout\n\n    @connection_timeout.setter\n    def connection_timeout(self, value):\n        if not isinstance(value, float):\n            raise ValueError(&#34;Param connection_timeout must be a Float&#34;)\n        self.__connection_timeout = value\n\n    @property\n    def corporation_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates corporation id\n        &#34;&#34;&#34;\n        return self.__corporation_id\n\n    @corporation_id.setter\n    def corporation_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param corporation_id must be a String&#34;)\n        self.__corporation_id = value\n\n    @property\n    def custom_headers(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates custom headers\n        &#34;&#34;&#34;\n        return self.__custom_headers\n\n    @custom_headers.setter\n    def custom_headers(self, value):\n        if not isinstance(value, dict):\n            raise ValueError(&#34;Param custom_headers must be a Dictionary&#34;)\n        self.__custom_headers = value\n\n    @property\n    def integrator_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates integrator id\n        &#34;&#34;&#34;\n        return self.__integrator_id\n\n    @integrator_id.setter\n    def integrator_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param integrator_id must be a String&#34;)\n        self.__integrator_id = value\n\n    @property\n    def max_retries(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates max retries\n        &#34;&#34;&#34;\n        return self.__max_retries\n\n    @max_retries.setter\n    def max_retries(self, value):\n        if not isinstance(value, int):\n            raise ValueError(&#34;Param max_retries must be an Integer&#34;)\n        self.__max_retries = value\n\n    @property\n    def platform_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates platform id\n        &#34;&#34;&#34;\n        return self.__platform_id\n\n    @platform_id.setter\n    def platform_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param platform_id must be a String&#34;)\n        self.__platform_id = value</code></pre>\n</details>\n<h3>Instance variables</h3>\n<dl>\n<dt id=\"mercadopago.config.RequestOptions.access_token\"><code class=\"name\">var <span class=\"ident\">access_token</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates access_token</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef access_token(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates access_token\n    &#34;&#34;&#34;\n    return self.__access_token</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.RequestOptions.connection_timeout\"><code class=\"name\">var <span class=\"ident\">connection_timeout</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates connection timeout</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef connection_timeout(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates connection timeout\n    &#34;&#34;&#34;\n    return self.__connection_timeout</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.RequestOptions.corporation_id\"><code class=\"name\">var <span class=\"ident\">corporation_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates corporation id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef corporation_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates corporation id\n    &#34;&#34;&#34;\n    return self.__corporation_id</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.RequestOptions.custom_headers\"><code class=\"name\">var <span class=\"ident\">custom_headers</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates custom headers</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef custom_headers(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates custom headers\n    &#34;&#34;&#34;\n    return self.__custom_headers</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.RequestOptions.integrator_id\"><code class=\"name\">var <span class=\"ident\">integrator_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates integrator id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef integrator_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates integrator id\n    &#34;&#34;&#34;\n    return self.__integrator_id</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.RequestOptions.max_retries\"><code class=\"name\">var <span class=\"ident\">max_retries</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates max retries</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef max_retries(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates max retries\n    &#34;&#34;&#34;\n    return self.__max_retries</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.RequestOptions.platform_id\"><code class=\"name\">var <span class=\"ident\">platform_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates platform id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef platform_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates platform id\n    &#34;&#34;&#34;\n    return self.__platform_id</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.config.RequestOptions.get_headers\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get_headers</span></span>(<span>self)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute values of headers</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get_headers(self):\n    &#34;&#34;&#34;\n    Sets the attribute values of headers\n    &#34;&#34;&#34;\n    headers = {&#34;Authorization&#34;: &#34;Bearer &#34; + self.__access_token,\n               &#34;x-product-id&#34;: self.__config.product_id,\n               &#34;x-tracking-id&#34;: self.__config.tracking_id,\n               &#34;x-idempotency-key&#34;: str(uuid.uuid4().int),\n               &#34;User-Agent&#34;: self.__config.user_agent,\n               &#34;Accept&#34;: self.__config.mime_json}\n\n    if self.__corporation_id is not None:\n        headers[&#34;x-corporation-id&#34;] = self.__corporation_id\n\n    if self.__integrator_id is not None:\n        headers[&#34;x-integrator-id&#34;] = self.__integrator_id\n\n    if self.__platform_id is not None:\n        headers[&#34;x-platform-id&#34;] = self.__platform_id\n\n    if self.__custom_headers is not None:\n        headers.update(self.__custom_headers)\n\n    return headers</code></pre>\n</details>\n</dd>\n</dl>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago\" href=\"../index.html\">mercadopago</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-submodules\">Sub-modules</a></h3>\n<ul>\n<li><code><a title=\"mercadopago.config.config\" href=\"config.html\">mercadopago.config.config</a></code></li>\n<li><code><a title=\"mercadopago.config.request_options\" href=\"request_options.html\">mercadopago.config.request_options</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.config.Config\" href=\"#mercadopago.config.Config\">Config</a></code></h4>\n<ul class=\"two-column\">\n<li><code><a title=\"mercadopago.config.Config.api_base_url\" href=\"#mercadopago.config.Config.api_base_url\">api_base_url</a></code></li>\n<li><code><a title=\"mercadopago.config.Config.mime_form\" href=\"#mercadopago.config.Config.mime_form\">mime_form</a></code></li>\n<li><code><a title=\"mercadopago.config.Config.mime_json\" href=\"#mercadopago.config.Config.mime_json\">mime_json</a></code></li>\n<li><code><a title=\"mercadopago.config.Config.product_id\" href=\"#mercadopago.config.Config.product_id\">product_id</a></code></li>\n<li><code><a title=\"mercadopago.config.Config.tracking_id\" href=\"#mercadopago.config.Config.tracking_id\">tracking_id</a></code></li>\n<li><code><a title=\"mercadopago.config.Config.user_agent\" href=\"#mercadopago.config.Config.user_agent\">user_agent</a></code></li>\n<li><code><a title=\"mercadopago.config.Config.version\" href=\"#mercadopago.config.Config.version\">version</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.config.RequestOptions\" href=\"#mercadopago.config.RequestOptions\">RequestOptions</a></code></h4>\n<ul class=\"two-column\">\n<li><code><a title=\"mercadopago.config.RequestOptions.access_token\" href=\"#mercadopago.config.RequestOptions.access_token\">access_token</a></code></li>\n<li><code><a title=\"mercadopago.config.RequestOptions.connection_timeout\" href=\"#mercadopago.config.RequestOptions.connection_timeout\">connection_timeout</a></code></li>\n<li><code><a title=\"mercadopago.config.RequestOptions.corporation_id\" href=\"#mercadopago.config.RequestOptions.corporation_id\">corporation_id</a></code></li>\n<li><code><a title=\"mercadopago.config.RequestOptions.custom_headers\" href=\"#mercadopago.config.RequestOptions.custom_headers\">custom_headers</a></code></li>\n<li><code><a title=\"mercadopago.config.RequestOptions.get_headers\" href=\"#mercadopago.config.RequestOptions.get_headers\">get_headers</a></code></li>\n<li><code><a title=\"mercadopago.config.RequestOptions.integrator_id\" href=\"#mercadopago.config.RequestOptions.integrator_id\">integrator_id</a></code></li>\n<li><code><a title=\"mercadopago.config.RequestOptions.max_retries\" href=\"#mercadopago.config.RequestOptions.max_retries\">max_retries</a></code></li>\n<li><code><a title=\"mercadopago.config.RequestOptions.platform_id\" href=\"#mercadopago.config.RequestOptions.platform_id\">platform_id</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/config/request_options.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.config.request_options API documentation</title>\n<meta name=\"description\" content=\"Module: request_options\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.config.request_options</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: request_options</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\nModule: request_options\n&#34;&#34;&#34;\nimport uuid\n\nfrom .config import Config\n\n\nclass RequestOptions:  # pylint: disable=too-many-instance-attributes\n\n    &#34;&#34;&#34;This object hold all configurations that will be used in ur REST call.\n\n    All here u can customize as well add params in the requisition header (custom_headers)\n    &#34;&#34;&#34;\n\n    __access_token = None\n    __connection_timeout = None\n    __custom_headers = None\n    __max_retries = None\n    __corporation_id = None\n    __integrator_id = None\n    __platform_id = None\n\n    def __init__(  # pylint: disable=too-many-arguments\n        self,\n        access_token=None,\n        connection_timeout=60.0,\n        custom_headers=None,\n        corporation_id=None,\n        integrator_id=None,\n        platform_id=None,\n        max_retries=3,\n    ):\n        &#34;&#34;&#34;Initialize\n\n        Args:\n            access_token (str, optional): Your User Access Token. Defaults to None.\n            connection_timeout (float, optional): Time to timeout the REST call. Defaults to 60.0.\n            custom_headers (dict, optional): A Dict with params to be added to the requests params.\n            Defaults to None.\n            corporation_id (str, optional): Your Corporation ID if any. Defaults to None.\n            integrator_id (str, optional): Your Integrator ID if any. Defaults to None.\n            platform_id (str, optional): Your Platform ID if any. Defaults to None.\n            max_retries (int, optional): How many retries must be done in case of fail.\n            Defaults to 3.\n\n        Raises:\n            ValueError: Param access_token must be a String\n            ValueError: Param connection_timeout must be a Float\n            ValueError: Param custom_headers must be a Dictionary\n            ValueError: Param corporation_id must be a String\n            ValueError: Param integrator_id must be a String\n            ValueError: Param platform_id must be a String\n            ValueError: Param max_retries must be an Integer\n        &#34;&#34;&#34;\n\n        if access_token is not None:\n            self.access_token = access_token\n        if connection_timeout is not None:\n            self.connection_timeout = connection_timeout\n        if custom_headers is not None:\n            self.custom_headers = custom_headers\n        if max_retries is not None:\n            self.max_retries = max_retries\n        if corporation_id is not None:\n            self.corporation_id = corporation_id\n        if integrator_id is not None:\n            self.integrator_id = integrator_id\n        if platform_id is not None:\n            self.platform_id = platform_id\n\n        self.__config = Config()\n\n    def get_headers(self):\n        &#34;&#34;&#34;\n        Sets the attribute values of headers\n        &#34;&#34;&#34;\n        headers = {&#34;Authorization&#34;: &#34;Bearer &#34; + self.__access_token,\n                   &#34;x-product-id&#34;: self.__config.product_id,\n                   &#34;x-tracking-id&#34;: self.__config.tracking_id,\n                   &#34;x-idempotency-key&#34;: str(uuid.uuid4().int),\n                   &#34;User-Agent&#34;: self.__config.user_agent,\n                   &#34;Accept&#34;: self.__config.mime_json}\n\n        if self.__corporation_id is not None:\n            headers[&#34;x-corporation-id&#34;] = self.__corporation_id\n\n        if self.__integrator_id is not None:\n            headers[&#34;x-integrator-id&#34;] = self.__integrator_id\n\n        if self.__platform_id is not None:\n            headers[&#34;x-platform-id&#34;] = self.__platform_id\n\n        if self.__custom_headers is not None:\n            headers.update(self.__custom_headers)\n\n        return headers\n\n    @property\n    def access_token(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates access_token\n        &#34;&#34;&#34;\n        return self.__access_token\n\n    @access_token.setter\n    def access_token(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param access_token must be a String&#34;)\n        self.__access_token = value\n\n    @property\n    def connection_timeout(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates connection timeout\n        &#34;&#34;&#34;\n        return self.__connection_timeout\n\n    @connection_timeout.setter\n    def connection_timeout(self, value):\n        if not isinstance(value, float):\n            raise ValueError(&#34;Param connection_timeout must be a Float&#34;)\n        self.__connection_timeout = value\n\n    @property\n    def corporation_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates corporation id\n        &#34;&#34;&#34;\n        return self.__corporation_id\n\n    @corporation_id.setter\n    def corporation_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param corporation_id must be a String&#34;)\n        self.__corporation_id = value\n\n    @property\n    def custom_headers(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates custom headers\n        &#34;&#34;&#34;\n        return self.__custom_headers\n\n    @custom_headers.setter\n    def custom_headers(self, value):\n        if not isinstance(value, dict):\n            raise ValueError(&#34;Param custom_headers must be a Dictionary&#34;)\n        self.__custom_headers = value\n\n    @property\n    def integrator_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates integrator id\n        &#34;&#34;&#34;\n        return self.__integrator_id\n\n    @integrator_id.setter\n    def integrator_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param integrator_id must be a String&#34;)\n        self.__integrator_id = value\n\n    @property\n    def max_retries(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates max retries\n        &#34;&#34;&#34;\n        return self.__max_retries\n\n    @max_retries.setter\n    def max_retries(self, value):\n        if not isinstance(value, int):\n            raise ValueError(&#34;Param max_retries must be an Integer&#34;)\n        self.__max_retries = value\n\n    @property\n    def platform_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates platform id\n        &#34;&#34;&#34;\n        return self.__platform_id\n\n    @platform_id.setter\n    def platform_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param platform_id must be a String&#34;)\n        self.__platform_id = value</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.config.request_options.RequestOptions\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">RequestOptions</span></span>\n<span>(</span><span>access_token=None, connection_timeout=60.0, custom_headers=None, corporation_id=None, integrator_id=None, platform_id=None, max_retries=3)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This object hold all configurations that will be used in ur REST call.</p>\n<p>All here u can customize as well add params in the requisition header (custom_headers)</p>\n<p>Initialize</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>access_token</code></strong> :&ensp;<code>str</code>, optional</dt>\n<dd>Your User Access Token. Defaults to None.</dd>\n<dt><strong><code>connection_timeout</code></strong> :&ensp;<code>float</code>, optional</dt>\n<dd>Time to timeout the REST call. Defaults to 60.0.</dd>\n<dt><strong><code>custom_headers</code></strong> :&ensp;<code>dict</code>, optional</dt>\n<dd>A Dict with params to be added to the requests params.</dd>\n<dt>Defaults to None.</dt>\n<dt><strong><code>corporation_id</code></strong> :&ensp;<code>str</code>, optional</dt>\n<dd>Your Corporation ID if any. Defaults to None.</dd>\n<dt><strong><code>integrator_id</code></strong> :&ensp;<code>str</code>, optional</dt>\n<dd>Your Integrator ID if any. Defaults to None.</dd>\n<dt><strong><code>platform_id</code></strong> :&ensp;<code>str</code>, optional</dt>\n<dd>Your Platform ID if any. Defaults to None.</dd>\n<dt><strong><code>max_retries</code></strong> :&ensp;<code>int</code>, optional</dt>\n<dd>How many retries must be done in case of fail.</dd>\n</dl>\n<p>Defaults to 3.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param access_token must be a String</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param connection_timeout must be a Float</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param custom_headers must be a Dictionary</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param corporation_id must be a String</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param integrator_id must be a String</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param platform_id must be a String</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param max_retries must be an Integer</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class RequestOptions:  # pylint: disable=too-many-instance-attributes\n\n    &#34;&#34;&#34;This object hold all configurations that will be used in ur REST call.\n\n    All here u can customize as well add params in the requisition header (custom_headers)\n    &#34;&#34;&#34;\n\n    __access_token = None\n    __connection_timeout = None\n    __custom_headers = None\n    __max_retries = None\n    __corporation_id = None\n    __integrator_id = None\n    __platform_id = None\n\n    def __init__(  # pylint: disable=too-many-arguments\n        self,\n        access_token=None,\n        connection_timeout=60.0,\n        custom_headers=None,\n        corporation_id=None,\n        integrator_id=None,\n        platform_id=None,\n        max_retries=3,\n    ):\n        &#34;&#34;&#34;Initialize\n\n        Args:\n            access_token (str, optional): Your User Access Token. Defaults to None.\n            connection_timeout (float, optional): Time to timeout the REST call. Defaults to 60.0.\n            custom_headers (dict, optional): A Dict with params to be added to the requests params.\n            Defaults to None.\n            corporation_id (str, optional): Your Corporation ID if any. Defaults to None.\n            integrator_id (str, optional): Your Integrator ID if any. Defaults to None.\n            platform_id (str, optional): Your Platform ID if any. Defaults to None.\n            max_retries (int, optional): How many retries must be done in case of fail.\n            Defaults to 3.\n\n        Raises:\n            ValueError: Param access_token must be a String\n            ValueError: Param connection_timeout must be a Float\n            ValueError: Param custom_headers must be a Dictionary\n            ValueError: Param corporation_id must be a String\n            ValueError: Param integrator_id must be a String\n            ValueError: Param platform_id must be a String\n            ValueError: Param max_retries must be an Integer\n        &#34;&#34;&#34;\n\n        if access_token is not None:\n            self.access_token = access_token\n        if connection_timeout is not None:\n            self.connection_timeout = connection_timeout\n        if custom_headers is not None:\n            self.custom_headers = custom_headers\n        if max_retries is not None:\n            self.max_retries = max_retries\n        if corporation_id is not None:\n            self.corporation_id = corporation_id\n        if integrator_id is not None:\n            self.integrator_id = integrator_id\n        if platform_id is not None:\n            self.platform_id = platform_id\n\n        self.__config = Config()\n\n    def get_headers(self):\n        &#34;&#34;&#34;\n        Sets the attribute values of headers\n        &#34;&#34;&#34;\n        headers = {&#34;Authorization&#34;: &#34;Bearer &#34; + self.__access_token,\n                   &#34;x-product-id&#34;: self.__config.product_id,\n                   &#34;x-tracking-id&#34;: self.__config.tracking_id,\n                   &#34;x-idempotency-key&#34;: str(uuid.uuid4().int),\n                   &#34;User-Agent&#34;: self.__config.user_agent,\n                   &#34;Accept&#34;: self.__config.mime_json}\n\n        if self.__corporation_id is not None:\n            headers[&#34;x-corporation-id&#34;] = self.__corporation_id\n\n        if self.__integrator_id is not None:\n            headers[&#34;x-integrator-id&#34;] = self.__integrator_id\n\n        if self.__platform_id is not None:\n            headers[&#34;x-platform-id&#34;] = self.__platform_id\n\n        if self.__custom_headers is not None:\n            headers.update(self.__custom_headers)\n\n        return headers\n\n    @property\n    def access_token(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates access_token\n        &#34;&#34;&#34;\n        return self.__access_token\n\n    @access_token.setter\n    def access_token(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param access_token must be a String&#34;)\n        self.__access_token = value\n\n    @property\n    def connection_timeout(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates connection timeout\n        &#34;&#34;&#34;\n        return self.__connection_timeout\n\n    @connection_timeout.setter\n    def connection_timeout(self, value):\n        if not isinstance(value, float):\n            raise ValueError(&#34;Param connection_timeout must be a Float&#34;)\n        self.__connection_timeout = value\n\n    @property\n    def corporation_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates corporation id\n        &#34;&#34;&#34;\n        return self.__corporation_id\n\n    @corporation_id.setter\n    def corporation_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param corporation_id must be a String&#34;)\n        self.__corporation_id = value\n\n    @property\n    def custom_headers(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates custom headers\n        &#34;&#34;&#34;\n        return self.__custom_headers\n\n    @custom_headers.setter\n    def custom_headers(self, value):\n        if not isinstance(value, dict):\n            raise ValueError(&#34;Param custom_headers must be a Dictionary&#34;)\n        self.__custom_headers = value\n\n    @property\n    def integrator_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates integrator id\n        &#34;&#34;&#34;\n        return self.__integrator_id\n\n    @integrator_id.setter\n    def integrator_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param integrator_id must be a String&#34;)\n        self.__integrator_id = value\n\n    @property\n    def max_retries(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates max retries\n        &#34;&#34;&#34;\n        return self.__max_retries\n\n    @max_retries.setter\n    def max_retries(self, value):\n        if not isinstance(value, int):\n            raise ValueError(&#34;Param max_retries must be an Integer&#34;)\n        self.__max_retries = value\n\n    @property\n    def platform_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates platform id\n        &#34;&#34;&#34;\n        return self.__platform_id\n\n    @platform_id.setter\n    def platform_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param platform_id must be a String&#34;)\n        self.__platform_id = value</code></pre>\n</details>\n<h3>Instance variables</h3>\n<dl>\n<dt id=\"mercadopago.config.request_options.RequestOptions.access_token\"><code class=\"name\">var <span class=\"ident\">access_token</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates access_token</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef access_token(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates access_token\n    &#34;&#34;&#34;\n    return self.__access_token</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.request_options.RequestOptions.connection_timeout\"><code class=\"name\">var <span class=\"ident\">connection_timeout</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates connection timeout</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef connection_timeout(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates connection timeout\n    &#34;&#34;&#34;\n    return self.__connection_timeout</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.request_options.RequestOptions.corporation_id\"><code class=\"name\">var <span class=\"ident\">corporation_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates corporation id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef corporation_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates corporation id\n    &#34;&#34;&#34;\n    return self.__corporation_id</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.request_options.RequestOptions.custom_headers\"><code class=\"name\">var <span class=\"ident\">custom_headers</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates custom headers</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef custom_headers(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates custom headers\n    &#34;&#34;&#34;\n    return self.__custom_headers</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.request_options.RequestOptions.integrator_id\"><code class=\"name\">var <span class=\"ident\">integrator_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates integrator id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef integrator_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates integrator id\n    &#34;&#34;&#34;\n    return self.__integrator_id</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.request_options.RequestOptions.max_retries\"><code class=\"name\">var <span class=\"ident\">max_retries</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates max retries</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef max_retries(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates max retries\n    &#34;&#34;&#34;\n    return self.__max_retries</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.config.request_options.RequestOptions.platform_id\"><code class=\"name\">var <span class=\"ident\">platform_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates platform id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef platform_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates platform id\n    &#34;&#34;&#34;\n    return self.__platform_id</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.config.request_options.RequestOptions.get_headers\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get_headers</span></span>(<span>self)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute values of headers</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get_headers(self):\n    &#34;&#34;&#34;\n    Sets the attribute values of headers\n    &#34;&#34;&#34;\n    headers = {&#34;Authorization&#34;: &#34;Bearer &#34; + self.__access_token,\n               &#34;x-product-id&#34;: self.__config.product_id,\n               &#34;x-tracking-id&#34;: self.__config.tracking_id,\n               &#34;x-idempotency-key&#34;: str(uuid.uuid4().int),\n               &#34;User-Agent&#34;: self.__config.user_agent,\n               &#34;Accept&#34;: self.__config.mime_json}\n\n    if self.__corporation_id is not None:\n        headers[&#34;x-corporation-id&#34;] = self.__corporation_id\n\n    if self.__integrator_id is not None:\n        headers[&#34;x-integrator-id&#34;] = self.__integrator_id\n\n    if self.__platform_id is not None:\n        headers[&#34;x-platform-id&#34;] = self.__platform_id\n\n    if self.__custom_headers is not None:\n        headers.update(self.__custom_headers)\n\n    return headers</code></pre>\n</details>\n</dd>\n</dl>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.config\" href=\"index.html\">mercadopago.config</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.config.request_options.RequestOptions\" href=\"#mercadopago.config.request_options.RequestOptions\">RequestOptions</a></code></h4>\n<ul class=\"two-column\">\n<li><code><a title=\"mercadopago.config.request_options.RequestOptions.access_token\" href=\"#mercadopago.config.request_options.RequestOptions.access_token\">access_token</a></code></li>\n<li><code><a title=\"mercadopago.config.request_options.RequestOptions.connection_timeout\" href=\"#mercadopago.config.request_options.RequestOptions.connection_timeout\">connection_timeout</a></code></li>\n<li><code><a title=\"mercadopago.config.request_options.RequestOptions.corporation_id\" href=\"#mercadopago.config.request_options.RequestOptions.corporation_id\">corporation_id</a></code></li>\n<li><code><a title=\"mercadopago.config.request_options.RequestOptions.custom_headers\" href=\"#mercadopago.config.request_options.RequestOptions.custom_headers\">custom_headers</a></code></li>\n<li><code><a title=\"mercadopago.config.request_options.RequestOptions.get_headers\" href=\"#mercadopago.config.request_options.RequestOptions.get_headers\">get_headers</a></code></li>\n<li><code><a title=\"mercadopago.config.request_options.RequestOptions.integrator_id\" href=\"#mercadopago.config.request_options.RequestOptions.integrator_id\">integrator_id</a></code></li>\n<li><code><a title=\"mercadopago.config.request_options.RequestOptions.max_retries\" href=\"#mercadopago.config.request_options.RequestOptions.max_retries\">max_retries</a></code></li>\n<li><code><a title=\"mercadopago.config.request_options.RequestOptions.platform_id\" href=\"#mercadopago.config.request_options.RequestOptions.platform_id\">platform_id</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/core/index.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.core API documentation</title>\n<meta name=\"description\" content=\"Module: core/__init__.py\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.core</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: core/<strong>init</strong>.py</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\nModule: core/__init__.py\n&#34;&#34;&#34;\nfrom mercadopago.core.mp_base import MPBase\n\n\n__all__ = (\n    &#39;MPBase&#39;,\n)</code></pre>\n</details>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-submodules\">Sub-modules</h2>\n<dl>\n<dt><code class=\"name\"><a title=\"mercadopago.core.mp_base\" href=\"mp_base.html\">mercadopago.core.mp_base</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: mp_base</p></div>\n</dd>\n</dl>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.core.MPBase\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">MPBase</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>All mercadopago.resources extends this one to call the REST services</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt>request_options (mercadopago.config.request_options, optional):</dt>\n<dt>An instance of RequestOptions can be pass changing or adding custom options</dt>\n<dt>to ur REST calls. Defaults to None.</dt>\n<dt><strong><code>http_client</code></strong> :&ensp;<code><a title=\"mercadopago.http.http_client\" href=\"../http/http_client.html\">mercadopago.http.http_client</a></code>, optional</dt>\n<dd>An implementation of</dd>\n</dl>\n<p>HttpClient can be pass to be used to make the REST calls. Defaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param request_options must be a RequestOptions Object</dd>\n<dt><code>ValueError</code></dt>\n<dd>Filters must be a Dictionary</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class MPBase:\n    &#34;&#34;&#34;All mercadopago.resources extends this one to call the REST services\n\n    Args:\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding custom options\n        to ur REST calls. Defaults to None.\n        http_client (mercadopago.http.http_client, optional): An implementation of\n        HttpClient can be pass to be used to make the REST calls. Defaults to None.\n\n    Raises:\n        ValueError: Param request_options must be a RequestOptions Object\n        ValueError: Filters must be a Dictionary\n    &#34;&#34;&#34;\n\n    def __init__(self, request_options, http_client):\n        if not isinstance(request_options, RequestOptions):\n            raise ValueError(\n                &#34;Param request_options must be a RequestOptions Object&#34;)\n\n        self.__request_options = request_options\n        self.__http_client = http_client\n        self.__config = Config()\n\n    def __check_request_options(self, request_options):\n        if request_options is not None and not isinstance(request_options, RequestOptions):\n            raise ValueError(\n                &#34;Param request_options must be a RequestOptions Object&#34;)\n        if request_options is None:\n            request_options = self.__request_options\n\n        if request_options.access_token is None:\n            request_options.access_token = self.__request_options.access_token\n\n        return request_options\n\n    def __check_headers(self, request_options, extra_headers=None):\n        headers = self.__request_options.get_headers()\n        if request_options is not None:\n            headers = request_options.get_headers()\n\n        if extra_headers is not None:\n            headers.update(extra_headers)\n\n        return headers\n\n    def _get(self, uri, filters=None, request_options=None):\n        if filters is not None and not isinstance(filters, dict):\n            raise ValueError(&#34;Filters must be a Dictionary&#34;)\n\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(\n            request_options, {&#34;Content-type&#34;: self.__config.mime_json})\n\n        return self.__http_client.get(\n            url=self.__config.api_base_url + uri,\n            params=filters,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    def _post(self, uri, data=None, params=None, request_options=None):\n        if data is not None:\n            data = JSONEncoder().encode(data)\n\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(\n            request_options, {&#34;Content-type&#34;: self.__config.mime_json})\n\n        return self.__http_client.post(\n            url=self.__config.api_base_url + uri,\n            data=data,\n            params=params,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    def _put(self, uri, data=None, params=None, request_options=None):\n        if data is not None:\n            data = JSONEncoder().encode(data)\n\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(\n            request_options, {&#34;Content-type&#34;: self.__config.mime_json})\n\n        return self.__http_client.put(\n            url=self.__config.api_base_url + uri,\n            data=data,\n            params=params,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    def _delete(self, uri, params=None, request_options=None):\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(request_options)\n\n        return self.__http_client.delete(\n            url=self.__config.api_base_url + uri,\n            params=params,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__request_options\n\n    @property\n    def config(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__config</code></pre>\n</details>\n<h3>Subclasses</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.resources.advanced_payment.AdvancedPayment\" href=\"../resources/advanced_payment.html#mercadopago.resources.advanced_payment.AdvancedPayment\">AdvancedPayment</a></li>\n<li><a title=\"mercadopago.resources.card.Card\" href=\"../resources/card.html#mercadopago.resources.card.Card\">Card</a></li>\n<li><a title=\"mercadopago.resources.card_token.CardToken\" href=\"../resources/card_token.html#mercadopago.resources.card_token.CardToken\">CardToken</a></li>\n<li><a title=\"mercadopago.resources.customer.Customer\" href=\"../resources/customer.html#mercadopago.resources.customer.Customer\">Customer</a></li>\n<li><a title=\"mercadopago.resources.disbursement_refund.DisbursementRefund\" href=\"../resources/disbursement_refund.html#mercadopago.resources.disbursement_refund.DisbursementRefund\">DisbursementRefund</a></li>\n<li><a title=\"mercadopago.resources.identification_type.IdentificationType\" href=\"../resources/identification_type.html#mercadopago.resources.identification_type.IdentificationType\">IdentificationType</a></li>\n<li><a title=\"mercadopago.resources.merchant_order.MerchantOrder\" href=\"../resources/merchant_order.html#mercadopago.resources.merchant_order.MerchantOrder\">MerchantOrder</a></li>\n<li><a title=\"mercadopago.resources.payment.Payment\" href=\"../resources/payment.html#mercadopago.resources.payment.Payment\">Payment</a></li>\n<li><a title=\"mercadopago.resources.payment_methods.PaymentMethods\" href=\"../resources/payment_methods.html#mercadopago.resources.payment_methods.PaymentMethods\">PaymentMethods</a></li>\n<li><a title=\"mercadopago.resources.preapproval.PreApproval\" href=\"../resources/preapproval.html#mercadopago.resources.preapproval.PreApproval\">PreApproval</a></li>\n<li><a title=\"mercadopago.resources.preference.Preference\" href=\"../resources/preference.html#mercadopago.resources.preference.Preference\">Preference</a></li>\n<li><a title=\"mercadopago.resources.refund.Refund\" href=\"../resources/refund.html#mercadopago.resources.refund.Refund\">Refund</a></li>\n<li><a title=\"mercadopago.resources.user.User\" href=\"../resources/user.html#mercadopago.resources.user.User\">User</a></li>\n</ul>\n<h3>Instance variables</h3>\n<dl>\n<dt id=\"mercadopago.core.MPBase.config\"><code class=\"name\">var <span class=\"ident\">config</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef config(self):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return self.__config</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.core.MPBase.request_options\"><code class=\"name\">var <span class=\"ident\">request_options</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef request_options(self):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return self.__request_options</code></pre>\n</details>\n</dd>\n</dl>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago\" href=\"../index.html\">mercadopago</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-submodules\">Sub-modules</a></h3>\n<ul>\n<li><code><a title=\"mercadopago.core.mp_base\" href=\"mp_base.html\">mercadopago.core.mp_base</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.core.MPBase\" href=\"#mercadopago.core.MPBase\">MPBase</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.core.MPBase.config\" href=\"#mercadopago.core.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.MPBase.request_options\" href=\"#mercadopago.core.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/core/mp_base.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.core.mp_base API documentation</title>\n<meta name=\"description\" content=\"Module: mp_base\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.core.mp_base</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: mp_base</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\nModule: mp_base\n&#34;&#34;&#34;\nfrom json.encoder import JSONEncoder\n\nfrom mercadopago.config.config import Config\nfrom mercadopago.config.request_options import RequestOptions\n\n\nclass MPBase:\n    &#34;&#34;&#34;All mercadopago.resources extends this one to call the REST services\n\n    Args:\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding custom options\n        to ur REST calls. Defaults to None.\n        http_client (mercadopago.http.http_client, optional): An implementation of\n        HttpClient can be pass to be used to make the REST calls. Defaults to None.\n\n    Raises:\n        ValueError: Param request_options must be a RequestOptions Object\n        ValueError: Filters must be a Dictionary\n    &#34;&#34;&#34;\n\n    def __init__(self, request_options, http_client):\n        if not isinstance(request_options, RequestOptions):\n            raise ValueError(\n                &#34;Param request_options must be a RequestOptions Object&#34;)\n\n        self.__request_options = request_options\n        self.__http_client = http_client\n        self.__config = Config()\n\n    def __check_request_options(self, request_options):\n        if request_options is not None and not isinstance(request_options, RequestOptions):\n            raise ValueError(\n                &#34;Param request_options must be a RequestOptions Object&#34;)\n        if request_options is None:\n            request_options = self.__request_options\n\n        if request_options.access_token is None:\n            request_options.access_token = self.__request_options.access_token\n\n        return request_options\n\n    def __check_headers(self, request_options, extra_headers=None):\n        headers = self.__request_options.get_headers()\n        if request_options is not None:\n            headers = request_options.get_headers()\n\n        if extra_headers is not None:\n            headers.update(extra_headers)\n\n        return headers\n\n    def _get(self, uri, filters=None, request_options=None):\n        if filters is not None and not isinstance(filters, dict):\n            raise ValueError(&#34;Filters must be a Dictionary&#34;)\n\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(\n            request_options, {&#34;Content-type&#34;: self.__config.mime_json})\n\n        return self.__http_client.get(\n            url=self.__config.api_base_url + uri,\n            params=filters,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    def _post(self, uri, data=None, params=None, request_options=None):\n        if data is not None:\n            data = JSONEncoder().encode(data)\n\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(\n            request_options, {&#34;Content-type&#34;: self.__config.mime_json})\n\n        return self.__http_client.post(\n            url=self.__config.api_base_url + uri,\n            data=data,\n            params=params,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    def _put(self, uri, data=None, params=None, request_options=None):\n        if data is not None:\n            data = JSONEncoder().encode(data)\n\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(\n            request_options, {&#34;Content-type&#34;: self.__config.mime_json})\n\n        return self.__http_client.put(\n            url=self.__config.api_base_url + uri,\n            data=data,\n            params=params,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    def _delete(self, uri, params=None, request_options=None):\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(request_options)\n\n        return self.__http_client.delete(\n            url=self.__config.api_base_url + uri,\n            params=params,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__request_options\n\n    @property\n    def config(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__config</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.core.mp_base.MPBase\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">MPBase</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>All mercadopago.resources extends this one to call the REST services</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt>request_options (mercadopago.config.request_options, optional):</dt>\n<dt>An instance of RequestOptions can be pass changing or adding custom options</dt>\n<dt>to ur REST calls. Defaults to None.</dt>\n<dt><strong><code>http_client</code></strong> :&ensp;<code><a title=\"mercadopago.http.http_client\" href=\"../http/http_client.html\">mercadopago.http.http_client</a></code>, optional</dt>\n<dd>An implementation of</dd>\n</dl>\n<p>HttpClient can be pass to be used to make the REST calls. Defaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param request_options must be a RequestOptions Object</dd>\n<dt><code>ValueError</code></dt>\n<dd>Filters must be a Dictionary</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class MPBase:\n    &#34;&#34;&#34;All mercadopago.resources extends this one to call the REST services\n\n    Args:\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding custom options\n        to ur REST calls. Defaults to None.\n        http_client (mercadopago.http.http_client, optional): An implementation of\n        HttpClient can be pass to be used to make the REST calls. Defaults to None.\n\n    Raises:\n        ValueError: Param request_options must be a RequestOptions Object\n        ValueError: Filters must be a Dictionary\n    &#34;&#34;&#34;\n\n    def __init__(self, request_options, http_client):\n        if not isinstance(request_options, RequestOptions):\n            raise ValueError(\n                &#34;Param request_options must be a RequestOptions Object&#34;)\n\n        self.__request_options = request_options\n        self.__http_client = http_client\n        self.__config = Config()\n\n    def __check_request_options(self, request_options):\n        if request_options is not None and not isinstance(request_options, RequestOptions):\n            raise ValueError(\n                &#34;Param request_options must be a RequestOptions Object&#34;)\n        if request_options is None:\n            request_options = self.__request_options\n\n        if request_options.access_token is None:\n            request_options.access_token = self.__request_options.access_token\n\n        return request_options\n\n    def __check_headers(self, request_options, extra_headers=None):\n        headers = self.__request_options.get_headers()\n        if request_options is not None:\n            headers = request_options.get_headers()\n\n        if extra_headers is not None:\n            headers.update(extra_headers)\n\n        return headers\n\n    def _get(self, uri, filters=None, request_options=None):\n        if filters is not None and not isinstance(filters, dict):\n            raise ValueError(&#34;Filters must be a Dictionary&#34;)\n\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(\n            request_options, {&#34;Content-type&#34;: self.__config.mime_json})\n\n        return self.__http_client.get(\n            url=self.__config.api_base_url + uri,\n            params=filters,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    def _post(self, uri, data=None, params=None, request_options=None):\n        if data is not None:\n            data = JSONEncoder().encode(data)\n\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(\n            request_options, {&#34;Content-type&#34;: self.__config.mime_json})\n\n        return self.__http_client.post(\n            url=self.__config.api_base_url + uri,\n            data=data,\n            params=params,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    def _put(self, uri, data=None, params=None, request_options=None):\n        if data is not None:\n            data = JSONEncoder().encode(data)\n\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(\n            request_options, {&#34;Content-type&#34;: self.__config.mime_json})\n\n        return self.__http_client.put(\n            url=self.__config.api_base_url + uri,\n            data=data,\n            params=params,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    def _delete(self, uri, params=None, request_options=None):\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(request_options)\n\n        return self.__http_client.delete(\n            url=self.__config.api_base_url + uri,\n            params=params,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__request_options\n\n    @property\n    def config(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__config</code></pre>\n</details>\n<h3>Subclasses</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.resources.advanced_payment.AdvancedPayment\" href=\"../resources/advanced_payment.html#mercadopago.resources.advanced_payment.AdvancedPayment\">AdvancedPayment</a></li>\n<li><a title=\"mercadopago.resources.card.Card\" href=\"../resources/card.html#mercadopago.resources.card.Card\">Card</a></li>\n<li><a title=\"mercadopago.resources.card_token.CardToken\" href=\"../resources/card_token.html#mercadopago.resources.card_token.CardToken\">CardToken</a></li>\n<li><a title=\"mercadopago.resources.customer.Customer\" href=\"../resources/customer.html#mercadopago.resources.customer.Customer\">Customer</a></li>\n<li><a title=\"mercadopago.resources.disbursement_refund.DisbursementRefund\" href=\"../resources/disbursement_refund.html#mercadopago.resources.disbursement_refund.DisbursementRefund\">DisbursementRefund</a></li>\n<li><a title=\"mercadopago.resources.identification_type.IdentificationType\" href=\"../resources/identification_type.html#mercadopago.resources.identification_type.IdentificationType\">IdentificationType</a></li>\n<li><a title=\"mercadopago.resources.merchant_order.MerchantOrder\" href=\"../resources/merchant_order.html#mercadopago.resources.merchant_order.MerchantOrder\">MerchantOrder</a></li>\n<li><a title=\"mercadopago.resources.payment.Payment\" href=\"../resources/payment.html#mercadopago.resources.payment.Payment\">Payment</a></li>\n<li><a title=\"mercadopago.resources.payment_methods.PaymentMethods\" href=\"../resources/payment_methods.html#mercadopago.resources.payment_methods.PaymentMethods\">PaymentMethods</a></li>\n<li><a title=\"mercadopago.resources.preapproval.PreApproval\" href=\"../resources/preapproval.html#mercadopago.resources.preapproval.PreApproval\">PreApproval</a></li>\n<li><a title=\"mercadopago.resources.preference.Preference\" href=\"../resources/preference.html#mercadopago.resources.preference.Preference\">Preference</a></li>\n<li><a title=\"mercadopago.resources.refund.Refund\" href=\"../resources/refund.html#mercadopago.resources.refund.Refund\">Refund</a></li>\n<li><a title=\"mercadopago.resources.user.User\" href=\"../resources/user.html#mercadopago.resources.user.User\">User</a></li>\n</ul>\n<h3>Instance variables</h3>\n<dl>\n<dt id=\"mercadopago.core.mp_base.MPBase.config\"><code class=\"name\">var <span class=\"ident\">config</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef config(self):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return self.__config</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.core.mp_base.MPBase.request_options\"><code class=\"name\">var <span class=\"ident\">request_options</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef request_options(self):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return self.__request_options</code></pre>\n</details>\n</dd>\n</dl>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.core\" href=\"index.html\">mercadopago.core</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.core.mp_base.MPBase\" href=\"#mercadopago.core.mp_base.MPBase\">MPBase</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/http/http_client.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.http.http_client API documentation</title>\n<meta name=\"description\" content=\"Module: http_client\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.http.http_client</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: http_client</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\nModule: http_client\n&#34;&#34;&#34;\nimport requests\nfrom requests.adapters import HTTPAdapter\nfrom urllib3.util import Retry\n\n\nclass HttpClient:\n    &#34;&#34;&#34;\n    Default implementation to call all REST API&#39;s\n    &#34;&#34;&#34;\n\n    def request(self, method, url, maxretries=None, **kwargs):  # pylint: disable=no-self-use\n        &#34;&#34;&#34;Makes a call to the API.\n\n        All **kwargs are passed verbatim to ``requests.request``.\n        &#34;&#34;&#34;\n        retry_strategy = Retry(\n            total=maxretries,\n            status_forcelist=[429, 500, 502, 503, 504]\n        )\n        http = requests.Session()\n        http.mount(&#34;https://&#34;, HTTPAdapter(max_retries=retry_strategy))\n        with http as session:\n            api_result = session.request(method, url, **kwargs)\n            response = {\n                &#34;status&#34;: api_result.status_code,\n                &#34;response&#34;: api_result.json()\n            }\n\n        return response\n\n    def get(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a GET request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;GET&#34;,\n            url=url,\n            headers=headers,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def post(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a POST request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;POST&#34;,\n            url=url,\n            headers=headers,\n            data=data,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def put(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a PUT request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;PUT&#34;,\n            url=url,\n            headers=headers,\n            data=data,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def delete(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a DELETE request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;DELETE&#34;,\n            url=url,\n            headers=headers,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.http.http_client.HttpClient\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">HttpClient</span></span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Default implementation to call all REST API's</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class HttpClient:\n    &#34;&#34;&#34;\n    Default implementation to call all REST API&#39;s\n    &#34;&#34;&#34;\n\n    def request(self, method, url, maxretries=None, **kwargs):  # pylint: disable=no-self-use\n        &#34;&#34;&#34;Makes a call to the API.\n\n        All **kwargs are passed verbatim to ``requests.request``.\n        &#34;&#34;&#34;\n        retry_strategy = Retry(\n            total=maxretries,\n            status_forcelist=[429, 500, 502, 503, 504]\n        )\n        http = requests.Session()\n        http.mount(&#34;https://&#34;, HTTPAdapter(max_retries=retry_strategy))\n        with http as session:\n            api_result = session.request(method, url, **kwargs)\n            response = {\n                &#34;status&#34;: api_result.status_code,\n                &#34;response&#34;: api_result.json()\n            }\n\n        return response\n\n    def get(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a GET request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;GET&#34;,\n            url=url,\n            headers=headers,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def post(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a POST request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;POST&#34;,\n            url=url,\n            headers=headers,\n            data=data,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def put(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a PUT request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;PUT&#34;,\n            url=url,\n            headers=headers,\n            data=data,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def delete(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a DELETE request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;DELETE&#34;,\n            url=url,\n            headers=headers,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )</code></pre>\n</details>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.http.http_client.HttpClient.delete\"><code class=\"name flex\">\n<span>def <span class=\"ident\">delete</span></span>(<span>self, url, headers, params=None, timeout=None, maxretries=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a DELETE request to the API</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def delete(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    &#34;&#34;&#34;Makes a DELETE request to the API&#34;&#34;&#34;\n    return self.request(\n        &#34;DELETE&#34;,\n        url=url,\n        headers=headers,\n        params=params,\n        timeout=timeout,\n        maxretries=maxretries,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.http.http_client.HttpClient.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, url, headers, params=None, timeout=None, maxretries=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a GET request to the API</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    &#34;&#34;&#34;Makes a GET request to the API&#34;&#34;&#34;\n    return self.request(\n        &#34;GET&#34;,\n        url=url,\n        headers=headers,\n        params=params,\n        timeout=timeout,\n        maxretries=maxretries,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.http.http_client.HttpClient.post\"><code class=\"name flex\">\n<span>def <span class=\"ident\">post</span></span>(<span>self, url, headers, data=None, params=None, timeout=None, maxretries=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a POST request to the API</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def post(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    &#34;&#34;&#34;Makes a POST request to the API&#34;&#34;&#34;\n    return self.request(\n        &#34;POST&#34;,\n        url=url,\n        headers=headers,\n        data=data,\n        params=params,\n        timeout=timeout,\n        maxretries=maxretries,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.http.http_client.HttpClient.put\"><code class=\"name flex\">\n<span>def <span class=\"ident\">put</span></span>(<span>self, url, headers, data=None, params=None, timeout=None, maxretries=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a PUT request to the API</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def put(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    &#34;&#34;&#34;Makes a PUT request to the API&#34;&#34;&#34;\n    return self.request(\n        &#34;PUT&#34;,\n        url=url,\n        headers=headers,\n        data=data,\n        params=params,\n        timeout=timeout,\n        maxretries=maxretries,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.http.http_client.HttpClient.request\"><code class=\"name flex\">\n<span>def <span class=\"ident\">request</span></span>(<span>self, method, url, maxretries=None, **kwargs)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a call to the API.</p>\n<p>All **kwargs are passed verbatim to <code>requests.request</code>.</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def request(self, method, url, maxretries=None, **kwargs):  # pylint: disable=no-self-use\n    &#34;&#34;&#34;Makes a call to the API.\n\n    All **kwargs are passed verbatim to ``requests.request``.\n    &#34;&#34;&#34;\n    retry_strategy = Retry(\n        total=maxretries,\n        status_forcelist=[429, 500, 502, 503, 504]\n    )\n    http = requests.Session()\n    http.mount(&#34;https://&#34;, HTTPAdapter(max_retries=retry_strategy))\n    with http as session:\n        api_result = session.request(method, url, **kwargs)\n        response = {\n            &#34;status&#34;: api_result.status_code,\n            &#34;response&#34;: api_result.json()\n        }\n\n    return response</code></pre>\n</details>\n</dd>\n</dl>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.http\" href=\"index.html\">mercadopago.http</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.http.http_client.HttpClient\" href=\"#mercadopago.http.http_client.HttpClient\">HttpClient</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.http.http_client.HttpClient.delete\" href=\"#mercadopago.http.http_client.HttpClient.delete\">delete</a></code></li>\n<li><code><a title=\"mercadopago.http.http_client.HttpClient.get\" href=\"#mercadopago.http.http_client.HttpClient.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.http.http_client.HttpClient.post\" href=\"#mercadopago.http.http_client.HttpClient.post\">post</a></code></li>\n<li><code><a title=\"mercadopago.http.http_client.HttpClient.put\" href=\"#mercadopago.http.http_client.HttpClient.put\">put</a></code></li>\n<li><code><a title=\"mercadopago.http.http_client.HttpClient.request\" href=\"#mercadopago.http.http_client.HttpClient.request\">request</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/http/index.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.http API documentation</title>\n<meta name=\"description\" content=\"Module: http/__init__.py\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.http</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: http/<strong>init</strong>.py</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\nModule: http/__init__.py\n&#34;&#34;&#34;\nfrom mercadopago.http.http_client import HttpClient\n\n\n__all__ = (\n    &#39;HttpClient&#39;,\n)</code></pre>\n</details>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-submodules\">Sub-modules</h2>\n<dl>\n<dt><code class=\"name\"><a title=\"mercadopago.http.http_client\" href=\"http_client.html\">mercadopago.http.http_client</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: http_client</p></div>\n</dd>\n</dl>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.http.HttpClient\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">HttpClient</span></span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Default implementation to call all REST API's</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class HttpClient:\n    &#34;&#34;&#34;\n    Default implementation to call all REST API&#39;s\n    &#34;&#34;&#34;\n\n    def request(self, method, url, maxretries=None, **kwargs):  # pylint: disable=no-self-use\n        &#34;&#34;&#34;Makes a call to the API.\n\n        All **kwargs are passed verbatim to ``requests.request``.\n        &#34;&#34;&#34;\n        retry_strategy = Retry(\n            total=maxretries,\n            status_forcelist=[429, 500, 502, 503, 504]\n        )\n        http = requests.Session()\n        http.mount(&#34;https://&#34;, HTTPAdapter(max_retries=retry_strategy))\n        with http as session:\n            api_result = session.request(method, url, **kwargs)\n            response = {\n                &#34;status&#34;: api_result.status_code,\n                &#34;response&#34;: api_result.json()\n            }\n\n        return response\n\n    def get(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a GET request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;GET&#34;,\n            url=url,\n            headers=headers,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def post(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a POST request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;POST&#34;,\n            url=url,\n            headers=headers,\n            data=data,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def put(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a PUT request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;PUT&#34;,\n            url=url,\n            headers=headers,\n            data=data,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def delete(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a DELETE request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;DELETE&#34;,\n            url=url,\n            headers=headers,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )</code></pre>\n</details>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.http.HttpClient.delete\"><code class=\"name flex\">\n<span>def <span class=\"ident\">delete</span></span>(<span>self, url, headers, params=None, timeout=None, maxretries=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a DELETE request to the API</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def delete(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    &#34;&#34;&#34;Makes a DELETE request to the API&#34;&#34;&#34;\n    return self.request(\n        &#34;DELETE&#34;,\n        url=url,\n        headers=headers,\n        params=params,\n        timeout=timeout,\n        maxretries=maxretries,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.http.HttpClient.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, url, headers, params=None, timeout=None, maxretries=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a GET request to the API</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    &#34;&#34;&#34;Makes a GET request to the API&#34;&#34;&#34;\n    return self.request(\n        &#34;GET&#34;,\n        url=url,\n        headers=headers,\n        params=params,\n        timeout=timeout,\n        maxretries=maxretries,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.http.HttpClient.post\"><code class=\"name flex\">\n<span>def <span class=\"ident\">post</span></span>(<span>self, url, headers, data=None, params=None, timeout=None, maxretries=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a POST request to the API</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def post(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    &#34;&#34;&#34;Makes a POST request to the API&#34;&#34;&#34;\n    return self.request(\n        &#34;POST&#34;,\n        url=url,\n        headers=headers,\n        data=data,\n        params=params,\n        timeout=timeout,\n        maxretries=maxretries,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.http.HttpClient.put\"><code class=\"name flex\">\n<span>def <span class=\"ident\">put</span></span>(<span>self, url, headers, data=None, params=None, timeout=None, maxretries=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a PUT request to the API</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def put(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    &#34;&#34;&#34;Makes a PUT request to the API&#34;&#34;&#34;\n    return self.request(\n        &#34;PUT&#34;,\n        url=url,\n        headers=headers,\n        data=data,\n        params=params,\n        timeout=timeout,\n        maxretries=maxretries,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.http.HttpClient.request\"><code class=\"name flex\">\n<span>def <span class=\"ident\">request</span></span>(<span>self, method, url, maxretries=None, **kwargs)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a call to the API.</p>\n<p>All **kwargs are passed verbatim to <code>requests.request</code>.</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def request(self, method, url, maxretries=None, **kwargs):  # pylint: disable=no-self-use\n    &#34;&#34;&#34;Makes a call to the API.\n\n    All **kwargs are passed verbatim to ``requests.request``.\n    &#34;&#34;&#34;\n    retry_strategy = Retry(\n        total=maxretries,\n        status_forcelist=[429, 500, 502, 503, 504]\n    )\n    http = requests.Session()\n    http.mount(&#34;https://&#34;, HTTPAdapter(max_retries=retry_strategy))\n    with http as session:\n        api_result = session.request(method, url, **kwargs)\n        response = {\n            &#34;status&#34;: api_result.status_code,\n            &#34;response&#34;: api_result.json()\n        }\n\n    return response</code></pre>\n</details>\n</dd>\n</dl>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago\" href=\"../index.html\">mercadopago</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-submodules\">Sub-modules</a></h3>\n<ul>\n<li><code><a title=\"mercadopago.http.http_client\" href=\"http_client.html\">mercadopago.http.http_client</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.http.HttpClient\" href=\"#mercadopago.http.HttpClient\">HttpClient</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.http.HttpClient.delete\" href=\"#mercadopago.http.HttpClient.delete\">delete</a></code></li>\n<li><code><a title=\"mercadopago.http.HttpClient.get\" href=\"#mercadopago.http.HttpClient.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.http.HttpClient.post\" href=\"#mercadopago.http.HttpClient.post\">post</a></code></li>\n<li><code><a title=\"mercadopago.http.HttpClient.put\" href=\"#mercadopago.http.HttpClient.put\">put</a></code></li>\n<li><code><a title=\"mercadopago.http.HttpClient.request\" href=\"#mercadopago.http.HttpClient.request\">request</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/index.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago API documentation</title>\n<meta name=\"description\" content=\"Module: mercadopago/__init__.py\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Package <code>mercadopago</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: mercadopago/<strong>init</strong>.py</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\nModule: mercadopago/__init__.py\n&#34;&#34;&#34;\nfrom mercadopago.sdk import SDK\n\n\n__all__ = (\n    &#39;SDK&#39;,\n)</code></pre>\n</details>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-submodules\">Sub-modules</h2>\n<dl>\n<dt><code class=\"name\"><a title=\"mercadopago.config\" href=\"config/index.html\">mercadopago.config</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: config/<strong>init</strong>.py</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.core\" href=\"core/index.html\">mercadopago.core</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: core/<strong>init</strong>.py</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.http\" href=\"http/index.html\">mercadopago.http</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: http/<strong>init</strong>.py</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources\" href=\"resources/index.html\">mercadopago.resources</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: resources/<strong>init</strong>.py</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.sdk\" href=\"sdk.html\">mercadopago.sdk</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: sdk</p></div>\n</dd>\n</dl>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.SDK\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">SDK</span></span>\n<span>(</span><span>access_token, http_client=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Generate access to all API' modules, which are:</p>\n<ol>\n<li>Advanced Payment</li>\n<li>Card Token</li>\n<li>Card</li>\n<li>Customer</li>\n<li>Disbursement Refund</li>\n<li>Identification Type</li>\n<li>Merchant Order</li>\n<li>Payment Methods</li>\n<li>Payment</li>\n<li>Preapproval</li>\n<li>Preference</li>\n<li>Refund</li>\n<li>User</li>\n</ol>\n<p>Construct ur SDK Object to have access to all APIs modules.</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><a href=\"https://www.mercadopago.com/mlb/account/credentials\">Click here for more info</a></dt>\n<dt><strong><code>http_client</code></strong> :&ensp;<code><a title=\"mercadopago.http.http_client\" href=\"http/http_client.html\">mercadopago.http.http_client</a></code>, optional</dt>\n<dd>An implementation of</dd>\n<dt>HttpClient can be pass to be used to make the REST calls. Defaults to None.</dt>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance</dd>\n</dl>\n<p>of RequestOptions can be pass changing or adding custom options to ur REST\ncalls. Defaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param request_options must be a RequestOptions Object</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class SDK:\n    &#34;&#34;&#34;Generate access to all API&#39; modules, which are:\n\n        1. Advanced Payment\n        2. Card Token\n        3. Card\n        4. Customer\n        5. Disbursement Refund\n        6. Identification Type\n        7. Merchant Order\n        8. Payment Methods\n        9. Payment\n        10. Preapproval\n        11. Preference\n        12. Refund\n        13. User\n    &#34;&#34;&#34;\n\n    def __init__(\n        self,\n        access_token,\n        http_client=None,\n        request_options=None,\n    ):\n        &#34;&#34;&#34;Construct ur SDK Object to have access to all APIs modules.\n        Args:\n            [Click here for more info](https://www.mercadopago.com/mlb/account/credentials)\n            http_client (mercadopago.http.http_client, optional): An implementation of\n            HttpClient can be pass to be used to make the REST calls. Defaults to None.\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            calls. Defaults to None.\n        Raises:\n            ValueError: Param request_options must be a RequestOptions Object\n        &#34;&#34;&#34;\n\n        self.http_client = http_client\n        if http_client is None:\n            self.http_client = HttpClient()\n\n        self.request_options = request_options\n        if request_options is None:\n            self.request_options = RequestOptions()\n\n        self.request_options.access_token = access_token\n\n    def advanced_payment(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return AdvancedPayment(request_options is not None and request_options\n                               or self.request_options, self.http_client)\n\n    def card_token(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return CardToken(request_options is not None and request_options\n                         or self.request_options, self.http_client)\n\n    def card(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Card(request_options is not None and request_options\n                    or self.request_options, self.http_client)\n\n    def customer(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Customer(request_options is not None and request_options\n                        or self.request_options, self.http_client)\n\n    def disbursement_refund(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return DisbursementRefund(request_options is not None and request_options\n                                  or self.request_options, self.http_client)\n\n    def identification_type(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return IdentificationType(request_options is not None and request_options\n                                  or self.request_options, self.http_client)\n\n    def merchant_order(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return MerchantOrder(request_options is not None and request_options\n                             or self.request_options, self.http_client)\n\n    def payment(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Payment(request_options is not None and request_options\n                       or self.request_options, self.http_client)\n\n    def payment_methods(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return PaymentMethods(request_options is not None and request_options\n                              or self.request_options, self.http_client)\n\n    def preapproval(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return PreApproval(request_options is not None and request_options\n                           or self.request_options, self.http_client)\n\n    def preference(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Preference(request_options is not None and request_options\n                          or self.request_options, self.http_client)\n\n    def refund(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Refund(request_options is not None and request_options\n                      or self.request_options, self.http_client)\n\n    def user(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return User(request_options is not None and request_options\n                    or self.request_options, self.http_client)\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates request_options\n        &#34;&#34;&#34;\n        return self.__request_options\n\n    @request_options.setter\n    def request_options(self, value):\n        if value is not None and not isinstance(value, RequestOptions):\n            raise ValueError(\n                &#34;Param request_options must be a RequestOptions Object&#34;)\n        self.__request_options = value\n\n    @property\n    def http_client(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates http_client\n        &#34;&#34;&#34;\n        return self.__http_client\n\n    @http_client.setter\n    def http_client(self, value):\n        if value is not None and not isinstance(value, HttpClient):\n            raise ValueError(&#34;Param http_client must be a HttpClient Object&#34;)\n        self.__http_client = value</code></pre>\n</details>\n<h3>Instance variables</h3>\n<dl>\n<dt id=\"mercadopago.SDK.http_client\"><code class=\"name\">var <span class=\"ident\">http_client</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates http_client</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef http_client(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates http_client\n    &#34;&#34;&#34;\n    return self.__http_client</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.request_options\"><code class=\"name\">var <span class=\"ident\">request_options</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates request_options</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef request_options(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates request_options\n    &#34;&#34;&#34;\n    return self.__request_options</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.SDK.advanced_payment\"><code class=\"name flex\">\n<span>def <span class=\"ident\">advanced_payment</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def advanced_payment(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return AdvancedPayment(request_options is not None and request_options\n                           or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.card\"><code class=\"name flex\">\n<span>def <span class=\"ident\">card</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def card(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return Card(request_options is not None and request_options\n                or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.card_token\"><code class=\"name flex\">\n<span>def <span class=\"ident\">card_token</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def card_token(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return CardToken(request_options is not None and request_options\n                     or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.customer\"><code class=\"name flex\">\n<span>def <span class=\"ident\">customer</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def customer(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return Customer(request_options is not None and request_options\n                    or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.disbursement_refund\"><code class=\"name flex\">\n<span>def <span class=\"ident\">disbursement_refund</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def disbursement_refund(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return DisbursementRefund(request_options is not None and request_options\n                              or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.identification_type\"><code class=\"name flex\">\n<span>def <span class=\"ident\">identification_type</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def identification_type(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return IdentificationType(request_options is not None and request_options\n                              or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.merchant_order\"><code class=\"name flex\">\n<span>def <span class=\"ident\">merchant_order</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def merchant_order(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return MerchantOrder(request_options is not None and request_options\n                         or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.payment\"><code class=\"name flex\">\n<span>def <span class=\"ident\">payment</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def payment(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return Payment(request_options is not None and request_options\n                   or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.payment_methods\"><code class=\"name flex\">\n<span>def <span class=\"ident\">payment_methods</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def payment_methods(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return PaymentMethods(request_options is not None and request_options\n                          or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.preapproval\"><code class=\"name flex\">\n<span>def <span class=\"ident\">preapproval</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def preapproval(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return PreApproval(request_options is not None and request_options\n                       or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.preference\"><code class=\"name flex\">\n<span>def <span class=\"ident\">preference</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def preference(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return Preference(request_options is not None and request_options\n                      or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.refund\"><code class=\"name flex\">\n<span>def <span class=\"ident\">refund</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def refund(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return Refund(request_options is not None and request_options\n                  or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.SDK.user\"><code class=\"name flex\">\n<span>def <span class=\"ident\">user</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def user(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return User(request_options is not None and request_options\n                or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n</dl>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3><a href=\"#header-submodules\">Sub-modules</a></h3>\n<ul>\n<li><code><a title=\"mercadopago.config\" href=\"config/index.html\">mercadopago.config</a></code></li>\n<li><code><a title=\"mercadopago.core\" href=\"core/index.html\">mercadopago.core</a></code></li>\n<li><code><a title=\"mercadopago.http\" href=\"http/index.html\">mercadopago.http</a></code></li>\n<li><code><a title=\"mercadopago.resources\" href=\"resources/index.html\">mercadopago.resources</a></code></li>\n<li><code><a title=\"mercadopago.sdk\" href=\"sdk.html\">mercadopago.sdk</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.SDK\" href=\"#mercadopago.SDK\">SDK</a></code></h4>\n<ul class=\"two-column\">\n<li><code><a title=\"mercadopago.SDK.advanced_payment\" href=\"#mercadopago.SDK.advanced_payment\">advanced_payment</a></code></li>\n<li><code><a title=\"mercadopago.SDK.card\" href=\"#mercadopago.SDK.card\">card</a></code></li>\n<li><code><a title=\"mercadopago.SDK.card_token\" href=\"#mercadopago.SDK.card_token\">card_token</a></code></li>\n<li><code><a title=\"mercadopago.SDK.customer\" href=\"#mercadopago.SDK.customer\">customer</a></code></li>\n<li><code><a title=\"mercadopago.SDK.disbursement_refund\" href=\"#mercadopago.SDK.disbursement_refund\">disbursement_refund</a></code></li>\n<li><code><a title=\"mercadopago.SDK.http_client\" href=\"#mercadopago.SDK.http_client\">http_client</a></code></li>\n<li><code><a title=\"mercadopago.SDK.identification_type\" href=\"#mercadopago.SDK.identification_type\">identification_type</a></code></li>\n<li><code><a title=\"mercadopago.SDK.merchant_order\" href=\"#mercadopago.SDK.merchant_order\">merchant_order</a></code></li>\n<li><code><a title=\"mercadopago.SDK.payment\" href=\"#mercadopago.SDK.payment\">payment</a></code></li>\n<li><code><a title=\"mercadopago.SDK.payment_methods\" href=\"#mercadopago.SDK.payment_methods\">payment_methods</a></code></li>\n<li><code><a title=\"mercadopago.SDK.preapproval\" href=\"#mercadopago.SDK.preapproval\">preapproval</a></code></li>\n<li><code><a title=\"mercadopago.SDK.preference\" href=\"#mercadopago.SDK.preference\">preference</a></code></li>\n<li><code><a title=\"mercadopago.SDK.refund\" href=\"#mercadopago.SDK.refund\">refund</a></code></li>\n<li><code><a title=\"mercadopago.SDK.request_options\" href=\"#mercadopago.SDK.request_options\">request_options</a></code></li>\n<li><code><a title=\"mercadopago.SDK.user\" href=\"#mercadopago.SDK.user\">user</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/advanced_payment.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.advanced_payment API documentation</title>\n<meta name=\"description\" content=\"Module: advanced_payment\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.advanced_payment</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: advanced_payment</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: advanced_payment\n&#34;&#34;&#34;\nfrom datetime import datetime\n\nfrom mercadopago.core import MPBase\n\n\nclass AdvancedPayment(MPBase):\n    &#34;&#34;&#34;\n    Access to Advanced Payments\n    &#34;&#34;&#34;\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments_id_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding custom options\n            to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Advanced Payment search response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/advanced_payments/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, advanced_payment_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            call. Defaults to None.\n\n        Returns:\n            dict: Advanced Payment find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                         request_options=request_options)\n\n    def create(self, advanced_payment_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments/post/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_object (dict): Advanced Payment to be created\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            call. Defaults to None.\n\n        Raises:\n            ValueError: Param advanced_payment_object must be a Dictionary\n\n        Returns:\n            dict: Advanced Payment creation response\n        &#34;&#34;&#34;\n        if not isinstance(advanced_payment_object, dict):\n            raise ValueError(\n                &#34;Param advanced_payment_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/advanced_payments&#34;, data=advanced_payment_object,\n                          request_options=request_options)\n\n    def capture(self, advanced_payment_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            call. Defaults to None.\n\n        Returns:\n            dict: Advanced Payment capture response\n        &#34;&#34;&#34;\n        capture_object = {&#34;capture&#34;: True}\n        return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                         data=capture_object, request_options=request_options)\n\n    def update(self, advanced_payment_id, advanced_payment_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            advanced_payment_object (dict): Advanced Payment to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param advanced_payment_object must be a Dictionary\n\n        Returns:\n            dict: Advanced Payment modification response\n        &#34;&#34;&#34;\n        if not isinstance(advanced_payment_object, dict):\n            raise ValueError(\n                &#34;Param advanced_payment_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                         data=advanced_payment_object, request_options=request_options)\n\n    def cancel(self, advanced_payment_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Advanced Payment cancelation response\n        &#34;&#34;&#34;\n        cancel_object = {&#34;status&#34;: &#34;cancelled&#34;}\n        return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                         data=cancel_object, request_options=request_options)\n\n    def update_release_date(self, advanced_payment_id, release_date, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id_disbursements_disbursement_id_disburses/post/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            release_date (datetime): Advanced Payment to be canceled\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param release_date must be a DateTime\n\n        Returns:\n            dict: Advanced Payment release date modification response\n        &#34;&#34;&#34;\n        if not isinstance(release_date, datetime):\n            raise ValueError(&#34;Param release_date must be a DateTime&#34;)\n\n        disbursement_object = {\n            &#34;money_release_date&#34;: release_date.strftime(&#34;%Y-%m-%d %H:%M:%S.%f&#34;)}\n\n        return self._post(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id) + &#34;/disburses&#34;,\n                          data=disbursement_object, request_options=request_options)</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.advanced_payment.AdvancedPayment\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">AdvancedPayment</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Access to Advanced Payments</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class AdvancedPayment(MPBase):\n    &#34;&#34;&#34;\n    Access to Advanced Payments\n    &#34;&#34;&#34;\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments_id_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding custom options\n            to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Advanced Payment search response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/advanced_payments/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, advanced_payment_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            call. Defaults to None.\n\n        Returns:\n            dict: Advanced Payment find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                         request_options=request_options)\n\n    def create(self, advanced_payment_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments/post/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_object (dict): Advanced Payment to be created\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            call. Defaults to None.\n\n        Raises:\n            ValueError: Param advanced_payment_object must be a Dictionary\n\n        Returns:\n            dict: Advanced Payment creation response\n        &#34;&#34;&#34;\n        if not isinstance(advanced_payment_object, dict):\n            raise ValueError(\n                &#34;Param advanced_payment_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/advanced_payments&#34;, data=advanced_payment_object,\n                          request_options=request_options)\n\n    def capture(self, advanced_payment_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            call. Defaults to None.\n\n        Returns:\n            dict: Advanced Payment capture response\n        &#34;&#34;&#34;\n        capture_object = {&#34;capture&#34;: True}\n        return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                         data=capture_object, request_options=request_options)\n\n    def update(self, advanced_payment_id, advanced_payment_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            advanced_payment_object (dict): Advanced Payment to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param advanced_payment_object must be a Dictionary\n\n        Returns:\n            dict: Advanced Payment modification response\n        &#34;&#34;&#34;\n        if not isinstance(advanced_payment_object, dict):\n            raise ValueError(\n                &#34;Param advanced_payment_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                         data=advanced_payment_object, request_options=request_options)\n\n    def cancel(self, advanced_payment_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Advanced Payment cancelation response\n        &#34;&#34;&#34;\n        cancel_object = {&#34;status&#34;: &#34;cancelled&#34;}\n        return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                         data=cancel_object, request_options=request_options)\n\n    def update_release_date(self, advanced_payment_id, release_date, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id_disbursements_disbursement_id_disburses/post/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            release_date (datetime): Advanced Payment to be canceled\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param release_date must be a DateTime\n\n        Returns:\n            dict: Advanced Payment release date modification response\n        &#34;&#34;&#34;\n        if not isinstance(release_date, datetime):\n            raise ValueError(&#34;Param release_date must be a DateTime&#34;)\n\n        disbursement_object = {\n            &#34;money_release_date&#34;: release_date.strftime(&#34;%Y-%m-%d %H:%M:%S.%f&#34;)}\n\n        return self._post(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id) + &#34;/disburses&#34;,\n                          data=disbursement_object, request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.advanced_payment.AdvancedPayment.cancel\"><code class=\"name flex\">\n<span>def <span class=\"ident\">cancel</span></span>(<span>self, advanced_payment_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>advanced_payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Advanced Payment ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment cancelation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def cancel(self, advanced_payment_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Advanced Payment cancelation response\n    &#34;&#34;&#34;\n    cancel_object = {&#34;status&#34;: &#34;cancelled&#34;}\n    return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                     data=cancel_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.advanced_payment.AdvancedPayment.capture\"><code class=\"name flex\">\n<span>def <span class=\"ident\">capture</span></span>(<span>self, advanced_payment_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>advanced_payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Advanced Payment ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance</dd>\n</dl>\n<p>of RequestOptions can be pass changing or adding custom options to ur REST\ncall. Defaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment capture response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def capture(self, advanced_payment_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        request_options (mercadopago.config.request_options, optional): An instance\n        of RequestOptions can be pass changing or adding custom options to ur REST\n        call. Defaults to None.\n\n    Returns:\n        dict: Advanced Payment capture response\n    &#34;&#34;&#34;\n    capture_object = {&#34;capture&#34;: True}\n    return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                     data=capture_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.advanced_payment.AdvancedPayment.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, advanced_payment_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>advanced_payment_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Advanced Payment to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance</dd>\n</dl>\n<p>of RequestOptions can be pass changing or adding custom options to ur REST\ncall. Defaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param advanced_payment_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, advanced_payment_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments/post/)  # pylint: disable=line-too-long\n\n    Args:\n        advanced_payment_object (dict): Advanced Payment to be created\n        request_options (mercadopago.config.request_options, optional): An instance\n        of RequestOptions can be pass changing or adding custom options to ur REST\n        call. Defaults to None.\n\n    Raises:\n        ValueError: Param advanced_payment_object must be a Dictionary\n\n    Returns:\n        dict: Advanced Payment creation response\n    &#34;&#34;&#34;\n    if not isinstance(advanced_payment_object, dict):\n        raise ValueError(\n            &#34;Param advanced_payment_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/v1/advanced_payments&#34;, data=advanced_payment_object,\n                      request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.advanced_payment.AdvancedPayment.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, advanced_payment_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>advanced_payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Advanced Payment ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance</dd>\n</dl>\n<p>of RequestOptions can be pass changing or adding custom options to ur REST\ncall. Defaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, advanced_payment_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/get/)  # pylint: disable=line-too-long\n\n    Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        request_options (mercadopago.config.request_options, optional): An instance\n        of RequestOptions can be pass changing or adding custom options to ur REST\n        call. Defaults to None.\n\n    Returns:\n        dict: Advanced Payment find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.advanced_payment.AdvancedPayment.search\"><code class=\"name flex\">\n<span>def <span class=\"ident\">search</span></span>(<span>self, filters=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments_id_search/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>filters</code></strong> :&ensp;<code>dict</code></dt>\n<dd>The search filters parameters</dd>\n</dl>\n<p>request_options (mercadopago.config.request_options, optional):\nAn instance of RequestOptions can be pass changing or adding custom options\nto ur REST call. Defaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment search response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def search(self, filters=None, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments_id_search/get/)  # pylint: disable=line-too-long\n\n    Args:\n        filters (dict): The search filters parameters\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding custom options\n        to ur REST call. Defaults to None.\n\n    Returns:\n        dict: Advanced Payment search response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/advanced_payments/search&#34;, filters=filters,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.advanced_payment.AdvancedPayment.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, advanced_payment_id, advanced_payment_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>advanced_payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Advanced Payment ID</dd>\n<dt><strong><code>advanced_payment_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Advanced Payment to be updated</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param advanced_payment_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, advanced_payment_id, advanced_payment_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        advanced_payment_object (dict): Advanced Payment to be updated\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param advanced_payment_object must be a Dictionary\n\n    Returns:\n        dict: Advanced Payment modification response\n    &#34;&#34;&#34;\n    if not isinstance(advanced_payment_object, dict):\n        raise ValueError(\n            &#34;Param advanced_payment_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                     data=advanced_payment_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.advanced_payment.AdvancedPayment.update_release_date\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update_release_date</span></span>(<span>self, advanced_payment_id, release_date, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id_disbursements_disbursement_id_disburses/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>advanced_payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Advanced Payment ID</dd>\n<dt><strong><code>release_date</code></strong> :&ensp;<code>datetime</code></dt>\n<dd>Advanced Payment to be canceled</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param release_date must be a DateTime</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment release date modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update_release_date(self, advanced_payment_id, release_date, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id_disbursements_disbursement_id_disburses/post/)  # pylint: disable=line-too-long\n\n    Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        release_date (datetime): Advanced Payment to be canceled\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param release_date must be a DateTime\n\n    Returns:\n        dict: Advanced Payment release date modification response\n    &#34;&#34;&#34;\n    if not isinstance(release_date, datetime):\n        raise ValueError(&#34;Param release_date must be a DateTime&#34;)\n\n    disbursement_object = {\n        &#34;money_release_date&#34;: release_date.strftime(&#34;%Y-%m-%d %H:%M:%S.%f&#34;)}\n\n    return self._post(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id) + &#34;/disburses&#34;,\n                      data=disbursement_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.advanced_payment.AdvancedPayment\" href=\"#mercadopago.resources.advanced_payment.AdvancedPayment\">AdvancedPayment</a></code></h4>\n<ul class=\"two-column\">\n<li><code><a title=\"mercadopago.resources.advanced_payment.AdvancedPayment.cancel\" href=\"#mercadopago.resources.advanced_payment.AdvancedPayment.cancel\">cancel</a></code></li>\n<li><code><a title=\"mercadopago.resources.advanced_payment.AdvancedPayment.capture\" href=\"#mercadopago.resources.advanced_payment.AdvancedPayment.capture\">capture</a></code></li>\n<li><code><a title=\"mercadopago.resources.advanced_payment.AdvancedPayment.create\" href=\"#mercadopago.resources.advanced_payment.AdvancedPayment.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.advanced_payment.AdvancedPayment.get\" href=\"#mercadopago.resources.advanced_payment.AdvancedPayment.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.advanced_payment.AdvancedPayment.search\" href=\"#mercadopago.resources.advanced_payment.AdvancedPayment.search\">search</a></code></li>\n<li><code><a title=\"mercadopago.resources.advanced_payment.AdvancedPayment.update\" href=\"#mercadopago.resources.advanced_payment.AdvancedPayment.update\">update</a></code></li>\n<li><code><a title=\"mercadopago.resources.advanced_payment.AdvancedPayment.update_release_date\" href=\"#mercadopago.resources.advanced_payment.AdvancedPayment.update_release_date\">update_release_date</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/card.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.card API documentation</title>\n<meta name=\"description\" content=\"Module: card\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.card</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: card</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: card\n&#34;&#34;&#34;\nfrom mercadopago.core import MPBase\n\n\nclass Card(MPBase):\n    &#34;&#34;&#34;\n    The cards class is the way to store card data of your customers\n    safely to improve the shopping experience.\n\n    This will allow your customers to complete their purchases much\n    faster and easily, since they will not have to complete their\n    card data again.\n\n    This class must be used in conjunction with the Customer class.\n\n    [Click here for more info](https://www.mercadopago.com/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def list_all(self, customer_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Cards find response\n        &#34;&#34;&#34;\n        return self._get(\n            uri=f&#34;/v1/customers/{str(customer_id)}/cards&#34;,\n            request_options=request_options,\n        )\n\n    def get(self, customer_id, card_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            card_id (dict): Card ID to be found\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Card find response\n        &#34;&#34;&#34;\n        return self._get(\n            uri=f&#34;/v1/customers/{str(customer_id)}/cards/{str(card_id)}&#34;,\n            request_options=request_options,\n        )\n\n    def create(self, customer_id, card_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/post/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            card_object (dict): Card object to be created\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param card_object must be a Dictionary\n\n        Returns:\n            dict: Card creation response\n        &#34;&#34;&#34;\n        if not isinstance(card_object, dict):\n            raise ValueError(&#34;Param card_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                          + &#34;/cards/&#34;, data=card_object, request_options=request_options)\n\n    def update(self, customer_id, card_id, card_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): Customer ID owner\n            card_id (str): Card ID to be modified\n            card_object (dict): Values to be modified\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param card_object must be a Dictionary\n\n        Returns:\n            dict: Card modification response\n        &#34;&#34;&#34;\n        if not isinstance(card_object, dict):\n            raise ValueError(&#34;Param card_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                         + &#34;/cards/&#34; + str(card_id), data=card_object,\n                         request_options=request_options)\n\n    def delete(self, customer_id, card_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/delete/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): Customer ID owner\n            card_id (str): Card ID to be deleted\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Card exclusion response\n        &#34;&#34;&#34;\n        return self._delete(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                            + &#34;/cards/&#34; + str(card_id), request_options=request_options)</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.card.Card\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">Card</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>The cards class is the way to store card data of your customers\nsafely to improve the shopping experience.</p>\n<p>This will allow your customers to complete their purchases much\nfaster and easily, since they will not have to complete their\ncard data again.</p>\n<p>This class must be used in conjunction with the Customer class.</p>\n<p><a href=\"https://www.mercadopago.com/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards\">Click here for more info</a>\n# pylint: disable=line-too-long</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class Card(MPBase):\n    &#34;&#34;&#34;\n    The cards class is the way to store card data of your customers\n    safely to improve the shopping experience.\n\n    This will allow your customers to complete their purchases much\n    faster and easily, since they will not have to complete their\n    card data again.\n\n    This class must be used in conjunction with the Customer class.\n\n    [Click here for more info](https://www.mercadopago.com/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def list_all(self, customer_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Cards find response\n        &#34;&#34;&#34;\n        return self._get(\n            uri=f&#34;/v1/customers/{str(customer_id)}/cards&#34;,\n            request_options=request_options,\n        )\n\n    def get(self, customer_id, card_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            card_id (dict): Card ID to be found\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Card find response\n        &#34;&#34;&#34;\n        return self._get(\n            uri=f&#34;/v1/customers/{str(customer_id)}/cards/{str(card_id)}&#34;,\n            request_options=request_options,\n        )\n\n    def create(self, customer_id, card_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/post/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            card_object (dict): Card object to be created\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param card_object must be a Dictionary\n\n        Returns:\n            dict: Card creation response\n        &#34;&#34;&#34;\n        if not isinstance(card_object, dict):\n            raise ValueError(&#34;Param card_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                          + &#34;/cards/&#34;, data=card_object, request_options=request_options)\n\n    def update(self, customer_id, card_id, card_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): Customer ID owner\n            card_id (str): Card ID to be modified\n            card_object (dict): Values to be modified\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param card_object must be a Dictionary\n\n        Returns:\n            dict: Card modification response\n        &#34;&#34;&#34;\n        if not isinstance(card_object, dict):\n            raise ValueError(&#34;Param card_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                         + &#34;/cards/&#34; + str(card_id), data=card_object,\n                         request_options=request_options)\n\n    def delete(self, customer_id, card_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/delete/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): Customer ID owner\n            card_id (str): Card ID to be deleted\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Card exclusion response\n        &#34;&#34;&#34;\n        return self._delete(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                            + &#34;/cards/&#34; + str(card_id), request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.card.Card.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, customer_id, card_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Customer ID owner</dd>\n<dt><strong><code>card_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Card object to be created</dd>\n</dl>\n<p>request_options (mercadopago.config.request_options, optional):\nAn instance of RequestOptions can be pass changing or adding\ncustom options to ur REST call. Defaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param card_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Card creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, customer_id, card_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/post/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): The Customer ID owner\n        card_object (dict): Card object to be created\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding\n        custom options to ur REST call. Defaults to None.\n\n    Raises:\n        ValueError: Param card_object must be a Dictionary\n\n    Returns:\n        dict: Card creation response\n    &#34;&#34;&#34;\n    if not isinstance(card_object, dict):\n        raise ValueError(&#34;Param card_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                      + &#34;/cards/&#34;, data=card_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.card.Card.delete\"><code class=\"name flex\">\n<span>def <span class=\"ident\">delete</span></span>(<span>self, customer_id, card_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/delete/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>Customer ID owner</dd>\n<dt><strong><code>card_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>Card ID to be deleted</dd>\n</dl>\n<p>request_options (mercadopago.config.request_options, optional):\nAn instance of RequestOptions can be pass changing or adding\ncustom options to ur REST call. Defaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Card exclusion response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def delete(self, customer_id, card_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/delete/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): Customer ID owner\n        card_id (str): Card ID to be deleted\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding\n        custom options to ur REST call. Defaults to None.\n\n    Returns:\n        dict: Card exclusion response\n    &#34;&#34;&#34;\n    return self._delete(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                        + &#34;/cards/&#34; + str(card_id), request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.card.Card.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, customer_id, card_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Customer ID owner</dd>\n<dt><strong><code>card_id</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Card ID to be found</dd>\n</dl>\n<p>request_options (mercadopago.config.request_options, optional):\nAn instance of RequestOptions can be pass changing or adding\ncustom options to ur REST call. Defaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Card find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, customer_id, card_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/get/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): The Customer ID owner\n        card_id (dict): Card ID to be found\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding\n        custom options to ur REST call. Defaults to None.\n\n    Returns:\n        dict: Card find response\n    &#34;&#34;&#34;\n    return self._get(\n        uri=f&#34;/v1/customers/{str(customer_id)}/cards/{str(card_id)}&#34;,\n        request_options=request_options,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.card.Card.list_all\"><code class=\"name flex\">\n<span>def <span class=\"ident\">list_all</span></span>(<span>self, customer_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Customer ID owner</dd>\n</dl>\n<p>request_options (mercadopago.config.request_options, optional):\nAn instance of RequestOptions can be pass changing or adding\ncustom options to ur REST call. Defaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Cards find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def list_all(self, customer_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): The Customer ID owner\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding\n        custom options to ur REST call. Defaults to None.\n\n    Returns:\n        dict: Cards find response\n    &#34;&#34;&#34;\n    return self._get(\n        uri=f&#34;/v1/customers/{str(customer_id)}/cards&#34;,\n        request_options=request_options,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.card.Card.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, customer_id, card_id, card_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>Customer ID owner</dd>\n<dt><strong><code>card_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>Card ID to be modified</dd>\n<dt><strong><code>card_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Values to be modified</dd>\n</dl>\n<p>request_options (mercadopago.config.request_options, optional):\nAn instance of RequestOptions can be pass changing or adding\ncustom options to ur REST call. Defaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param card_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Card modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, customer_id, card_id, card_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): Customer ID owner\n        card_id (str): Card ID to be modified\n        card_object (dict): Values to be modified\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding\n        custom options to ur REST call. Defaults to None.\n\n    Raises:\n        ValueError: Param card_object must be a Dictionary\n\n    Returns:\n        dict: Card modification response\n    &#34;&#34;&#34;\n    if not isinstance(card_object, dict):\n        raise ValueError(&#34;Param card_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                     + &#34;/cards/&#34; + str(card_id), data=card_object,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.card.Card\" href=\"#mercadopago.resources.card.Card\">Card</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.card.Card.create\" href=\"#mercadopago.resources.card.Card.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.card.Card.delete\" href=\"#mercadopago.resources.card.Card.delete\">delete</a></code></li>\n<li><code><a title=\"mercadopago.resources.card.Card.get\" href=\"#mercadopago.resources.card.Card.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.card.Card.list_all\" href=\"#mercadopago.resources.card.Card.list_all\">list_all</a></code></li>\n<li><code><a title=\"mercadopago.resources.card.Card.update\" href=\"#mercadopago.resources.card.Card.update\">update</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/card_token.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.card_token API documentation</title>\n<meta name=\"description\" content=\"Module: card_token\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.card_token</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: card_token</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: card_token\n&#34;&#34;&#34;\nfrom mercadopago.core import MPBase\n\n\nclass CardToken(MPBase):\n    &#34;&#34;&#34;\n    This class will allow you to send your customers card data for Mercado Pago\n    server and receive a token to complete the payments transactions.\n    &#34;&#34;&#34;\n\n    def get(self, card_token_id, request_options=None):\n        &#34;&#34;&#34;Args:\n            card_token_id (str): The Card Token ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Card Token find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/card_tokens/&#34; + str(card_token_id),\n                         request_options=request_options)\n\n    def create(self, card_token_object, request_options=None):\n        &#34;&#34;&#34;Args:\n            card_token_object (dict): Card Token to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param card_token_object must be a Dictionary\n\n        Returns:\n            dict: Card Token creation response\n        &#34;&#34;&#34;\n        if not isinstance(card_token_object, dict):\n            raise ValueError(&#34;Param card_token_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/card_tokens&#34;, data=card_token_object,\n                          request_options=request_options)</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.card_token.CardToken\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">CardToken</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class will allow you to send your customers card data for Mercado Pago\nserver and receive a token to complete the payments transactions.</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class CardToken(MPBase):\n    &#34;&#34;&#34;\n    This class will allow you to send your customers card data for Mercado Pago\n    server and receive a token to complete the payments transactions.\n    &#34;&#34;&#34;\n\n    def get(self, card_token_id, request_options=None):\n        &#34;&#34;&#34;Args:\n            card_token_id (str): The Card Token ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Card Token find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/card_tokens/&#34; + str(card_token_id),\n                         request_options=request_options)\n\n    def create(self, card_token_object, request_options=None):\n        &#34;&#34;&#34;Args:\n            card_token_object (dict): Card Token to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param card_token_object must be a Dictionary\n\n        Returns:\n            dict: Card Token creation response\n        &#34;&#34;&#34;\n        if not isinstance(card_token_object, dict):\n            raise ValueError(&#34;Param card_token_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/card_tokens&#34;, data=card_token_object,\n                          request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.card_token.CardToken.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, card_token_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>card_token_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Card Token to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param card_token_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Card Token creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, card_token_object, request_options=None):\n    &#34;&#34;&#34;Args:\n        card_token_object (dict): Card Token to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param card_token_object must be a Dictionary\n\n    Returns:\n        dict: Card Token creation response\n    &#34;&#34;&#34;\n    if not isinstance(card_token_object, dict):\n        raise ValueError(&#34;Param card_token_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/v1/card_tokens&#34;, data=card_token_object,\n                      request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.card_token.CardToken.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, card_token_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>card_token_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Card Token ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Card Token find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, card_token_id, request_options=None):\n    &#34;&#34;&#34;Args:\n        card_token_id (str): The Card Token ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Card Token find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/card_tokens/&#34; + str(card_token_id),\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.card_token.CardToken\" href=\"#mercadopago.resources.card_token.CardToken\">CardToken</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.card_token.CardToken.create\" href=\"#mercadopago.resources.card_token.CardToken.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.card_token.CardToken.get\" href=\"#mercadopago.resources.card_token.CardToken.get\">get</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/customer.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.customer API documentation</title>\n<meta name=\"description\" content=\"Module: customer\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.customer</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: customer</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: customer\n&#34;&#34;&#34;\nfrom mercadopago.core import MPBase\n\n\nclass Customer(MPBase):\n    &#34;&#34;&#34;\n    This class allows you to store customers data safely to improve the shopping experience.\n\n    This will allow your customer to complete their purchases much faster and easily when\n    used in conjunction with the Cards class.\n\n    [Click here for more info](https://mercadopago.com.br/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Customer find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/customers/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, customer_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/customers/_customers_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Customer find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/customers/&#34; + str(customer_id), request_options=request_options)\n\n    def create(self, customer_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers/post/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_object (dict): Customer object to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param customer_object must be a Dictionary\n\n        Returns:\n            dict: Customer creation response\n        &#34;&#34;&#34;\n        if not isinstance(customer_object, dict):\n            raise ValueError(&#34;Param customer_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/customers&#34;, data=customer_object,\n                          request_options=request_options)\n\n    def update(self, customer_id, customer_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            customer_object (dict): Customer object to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValeuError: Param customer_object must be a Dictionary\n\n        Returns:\n            dict: Customer modification response\n        &#34;&#34;&#34;\n        if not isinstance(customer_object, dict):\n            raise ValueError(&#34;Param customer_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/v1/customers/&#34; + str(customer_id), data=customer_object,\n                         request_options=request_options)\n\n    def delete(self, customer_id, request_options=None):\n        &#34;&#34;&#34;\n        Args:\n            customer_id (str): The Customer ID owner\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Customer exclusion response\n        &#34;&#34;&#34;\n        return self._delete(uri=&#34;/v1/customers/&#34; + str(customer_id),\n                            request_options=request_options)</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.customer.Customer\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">Customer</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class allows you to store customers data safely to improve the shopping experience.</p>\n<p>This will allow your customer to complete their purchases much faster and easily when\nused in conjunction with the Cards class.</p>\n<p><a href=\"https://mercadopago.com.br/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards\">Click here for more info</a>\n# pylint: disable=line-too-long</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class Customer(MPBase):\n    &#34;&#34;&#34;\n    This class allows you to store customers data safely to improve the shopping experience.\n\n    This will allow your customer to complete their purchases much faster and easily when\n    used in conjunction with the Cards class.\n\n    [Click here for more info](https://mercadopago.com.br/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Customer find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/customers/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, customer_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/customers/_customers_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Customer find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/customers/&#34; + str(customer_id), request_options=request_options)\n\n    def create(self, customer_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers/post/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_object (dict): Customer object to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param customer_object must be a Dictionary\n\n        Returns:\n            dict: Customer creation response\n        &#34;&#34;&#34;\n        if not isinstance(customer_object, dict):\n            raise ValueError(&#34;Param customer_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/customers&#34;, data=customer_object,\n                          request_options=request_options)\n\n    def update(self, customer_id, customer_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            customer_object (dict): Customer object to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValeuError: Param customer_object must be a Dictionary\n\n        Returns:\n            dict: Customer modification response\n        &#34;&#34;&#34;\n        if not isinstance(customer_object, dict):\n            raise ValueError(&#34;Param customer_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/v1/customers/&#34; + str(customer_id), data=customer_object,\n                         request_options=request_options)\n\n    def delete(self, customer_id, request_options=None):\n        &#34;&#34;&#34;\n        Args:\n            customer_id (str): The Customer ID owner\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Customer exclusion response\n        &#34;&#34;&#34;\n        return self._delete(uri=&#34;/v1/customers/&#34; + str(customer_id),\n                            request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.customer.Customer.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, customer_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/customers/_customers/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Customer object to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param customer_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Customer creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, customer_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers/post/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_object (dict): Customer object to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param customer_object must be a Dictionary\n\n    Returns:\n        dict: Customer creation response\n    &#34;&#34;&#34;\n    if not isinstance(customer_object, dict):\n        raise ValueError(&#34;Param customer_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/v1/customers&#34;, data=customer_object,\n                      request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.customer.Customer.delete\"><code class=\"name flex\">\n<span>def <span class=\"ident\">delete</span></span>(<span>self, customer_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Customer ID owner</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Customer exclusion response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def delete(self, customer_id, request_options=None):\n    &#34;&#34;&#34;\n    Args:\n        customer_id (str): The Customer ID owner\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Customer exclusion response\n    &#34;&#34;&#34;\n    return self._delete(uri=&#34;/v1/customers/&#34; + str(customer_id),\n                        request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.customer.Customer.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, customer_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/customers/_customers_id/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Customer ID owner</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Customer find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, customer_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/customers/_customers_id/get/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): The Customer ID owner\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Customer find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/customers/&#34; + str(customer_id), request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.customer.Customer.search\"><code class=\"name flex\">\n<span>def <span class=\"ident\">search</span></span>(<span>self, filters=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/customers/_customers_search/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>filters</code></strong> :&ensp;<code>dict</code></dt>\n<dd>The search filters parameters</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Customer find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def search(self, filters=None, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers_search/get/)  # pylint: disable=line-too-long\n\n    Args:\n        filters (dict): The search filters parameters\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Customer find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/customers/search&#34;, filters=filters,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.customer.Customer.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, customer_id, customer_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/customers/_customers_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Customer ID owner</dd>\n<dt><strong><code>customer_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Customer object to be updated</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValeuError</code></dt>\n<dd>Param customer_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Customer modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, customer_id, customer_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): The Customer ID owner\n        customer_object (dict): Customer object to be updated\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValeuError: Param customer_object must be a Dictionary\n\n    Returns:\n        dict: Customer modification response\n    &#34;&#34;&#34;\n    if not isinstance(customer_object, dict):\n        raise ValueError(&#34;Param customer_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/v1/customers/&#34; + str(customer_id), data=customer_object,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.customer.Customer\" href=\"#mercadopago.resources.customer.Customer\">Customer</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.customer.Customer.create\" href=\"#mercadopago.resources.customer.Customer.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.customer.Customer.delete\" href=\"#mercadopago.resources.customer.Customer.delete\">delete</a></code></li>\n<li><code><a title=\"mercadopago.resources.customer.Customer.get\" href=\"#mercadopago.resources.customer.Customer.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.customer.Customer.search\" href=\"#mercadopago.resources.customer.Customer.search\">search</a></code></li>\n<li><code><a title=\"mercadopago.resources.customer.Customer.update\" href=\"#mercadopago.resources.customer.Customer.update\">update</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/disbursement_refund.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.disbursement_refund API documentation</title>\n<meta name=\"description\" content=\"Module: disbursement_refund\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.disbursement_refund</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: disbursement_refund</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: disbursement_refund\n&#34;&#34;&#34;\nfrom mercadopago.core import MPBase\n\n\nclass DisbursementRefund(MPBase):\n\n    &#34;&#34;&#34;\n    Access to Advanced Payments Refunds\n    &#34;&#34;&#34;\n\n    def list_all(self, advanced_payment_id, request_options=None):\n        &#34;&#34;&#34;[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Disbursement Refund find response\n        &#34;&#34;&#34;\n        uri = f&#34;/v1/advanced_payments/{str(advanced_payment_id)}/refunds&#34;\n        return self._get(uri=uri, request_options=request_options)\n\n    def create_all(self, advanced_payment_id, disbursement_refund_object, request_options=None):\n        &#34;&#34;&#34;[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            disbursement_refund_object (dict): Disbursement Refund to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param disbursement_refund_object must be a Dictionary\n\n        Returns:\n            dict: Disbursement Refund creation all response\n        &#34;&#34;&#34;\n        if not isinstance(disbursement_refund_object, dict):\n            raise ValueError(\n                &#34;Param disbursement_refund_object must be a Dictionary&#34;)\n\n        return self._post(\n            uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id) + &#34;/refunds&#34;,\n            data=disbursement_refund_object,\n            request_options=request_options,\n        )\n\n    def create(self, advanced_payment_id, disbursement_id, amount, request_options=None):\n        &#34;&#34;&#34;[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            disbursement_id (str): Disbursement ID\n            amount: Amount to be refunded\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param amount must be a Float\n\n        Returns:\n            dict: Disbursement Refund creation response\n        &#34;&#34;&#34;\n        if not isinstance(amount, float):\n            raise ValueError(&#34;Param amount must be a Float&#34;)\n\n        disbursement_refund_object = {&#34;amount&#34;: amount}\n\n        uri = (\n            f&#34;/v1/advanced_payments/{str(advanced_payment_id)}&#34;\n            f&#34;/disbursements/{str(disbursement_id)}/refunds&#34;\n        )\n\n        return self._post(\n            uri=uri,\n            data=disbursement_refund_object,\n            request_options=request_options,\n        )\n\n    def save(self, advanced_payment_id, disbursement_id, disbursement_refund_object,\n             request_options=None):\n        &#34;&#34;&#34;[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            disbursement_id (str): Disbursement ID\n            disbursement_refund_object (dict): Disbursement Refund to be saved\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param disbursement_refund_object must be a Dictionary\n\n        Returns:\n            dict: Disbursement Refund save response\n        &#34;&#34;&#34;\n        if not isinstance(disbursement_refund_object, dict):\n            raise ValueError(\n                &#34;Param disbursement_refund_object must be a Dictionary&#34;)\n\n        uri = (\n            f&#34;/v1/advanced_payments/{str(advanced_payment_id)}&#34;\n            f&#34;/disbursements/{str(disbursement_id)}/refunds&#34;\n        )\n\n        return self._post(\n            uri=uri,\n            data=disbursement_refund_object,\n            request_options=request_options,\n        )</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.disbursement_refund.DisbursementRefund\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">DisbursementRefund</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Access to Advanced Payments Refunds</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class DisbursementRefund(MPBase):\n\n    &#34;&#34;&#34;\n    Access to Advanced Payments Refunds\n    &#34;&#34;&#34;\n\n    def list_all(self, advanced_payment_id, request_options=None):\n        &#34;&#34;&#34;[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Disbursement Refund find response\n        &#34;&#34;&#34;\n        uri = f&#34;/v1/advanced_payments/{str(advanced_payment_id)}/refunds&#34;\n        return self._get(uri=uri, request_options=request_options)\n\n    def create_all(self, advanced_payment_id, disbursement_refund_object, request_options=None):\n        &#34;&#34;&#34;[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            disbursement_refund_object (dict): Disbursement Refund to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param disbursement_refund_object must be a Dictionary\n\n        Returns:\n            dict: Disbursement Refund creation all response\n        &#34;&#34;&#34;\n        if not isinstance(disbursement_refund_object, dict):\n            raise ValueError(\n                &#34;Param disbursement_refund_object must be a Dictionary&#34;)\n\n        return self._post(\n            uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id) + &#34;/refunds&#34;,\n            data=disbursement_refund_object,\n            request_options=request_options,\n        )\n\n    def create(self, advanced_payment_id, disbursement_id, amount, request_options=None):\n        &#34;&#34;&#34;[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            disbursement_id (str): Disbursement ID\n            amount: Amount to be refunded\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param amount must be a Float\n\n        Returns:\n            dict: Disbursement Refund creation response\n        &#34;&#34;&#34;\n        if not isinstance(amount, float):\n            raise ValueError(&#34;Param amount must be a Float&#34;)\n\n        disbursement_refund_object = {&#34;amount&#34;: amount}\n\n        uri = (\n            f&#34;/v1/advanced_payments/{str(advanced_payment_id)}&#34;\n            f&#34;/disbursements/{str(disbursement_id)}/refunds&#34;\n        )\n\n        return self._post(\n            uri=uri,\n            data=disbursement_refund_object,\n            request_options=request_options,\n        )\n\n    def save(self, advanced_payment_id, disbursement_id, disbursement_refund_object,\n             request_options=None):\n        &#34;&#34;&#34;[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            disbursement_id (str): Disbursement ID\n            disbursement_refund_object (dict): Disbursement Refund to be saved\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param disbursement_refund_object must be a Dictionary\n\n        Returns:\n            dict: Disbursement Refund save response\n        &#34;&#34;&#34;\n        if not isinstance(disbursement_refund_object, dict):\n            raise ValueError(\n                &#34;Param disbursement_refund_object must be a Dictionary&#34;)\n\n        uri = (\n            f&#34;/v1/advanced_payments/{str(advanced_payment_id)}&#34;\n            f&#34;/disbursements/{str(disbursement_id)}/refunds&#34;\n        )\n\n        return self._post(\n            uri=uri,\n            data=disbursement_refund_object,\n            request_options=request_options,\n        )</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.disbursement_refund.DisbursementRefund.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, advanced_payment_id, disbursement_id, amount, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>[Args:\nadvanced_payment_id (str): The Advanced Payment ID\ndisbursement_id (str): Disbursement ID\namount: Amount to be refunded\nrequest_options (mercadopago.config.request_options, optional): An instance of\nRequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<p>Raises:\nValueError: Param amount must be a Float</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Disbursement Refund creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, advanced_payment_id, disbursement_id, amount, request_options=None):\n    &#34;&#34;&#34;[Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        disbursement_id (str): Disbursement ID\n        amount: Amount to be refunded\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n    ValueError: Param amount must be a Float\n\n    Returns:\n        dict: Disbursement Refund creation response\n    &#34;&#34;&#34;\n    if not isinstance(amount, float):\n        raise ValueError(&#34;Param amount must be a Float&#34;)\n\n    disbursement_refund_object = {&#34;amount&#34;: amount}\n\n    uri = (\n        f&#34;/v1/advanced_payments/{str(advanced_payment_id)}&#34;\n        f&#34;/disbursements/{str(disbursement_id)}/refunds&#34;\n    )\n\n    return self._post(\n        uri=uri,\n        data=disbursement_refund_object,\n        request_options=request_options,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.disbursement_refund.DisbursementRefund.create_all\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create_all</span></span>(<span>self, advanced_payment_id, disbursement_refund_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>[Args:\nadvanced_payment_id (str): The Advanced Payment ID\ndisbursement_refund_object (dict): Disbursement Refund to be created\nrequest_options (mercadopago.config.request_options, optional): An instance of\nRequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<p>Raises:\nValueError: Param disbursement_refund_object must be a Dictionary</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Disbursement Refund creation all response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create_all(self, advanced_payment_id, disbursement_refund_object, request_options=None):\n    &#34;&#34;&#34;[Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        disbursement_refund_object (dict): Disbursement Refund to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n    ValueError: Param disbursement_refund_object must be a Dictionary\n\n    Returns:\n        dict: Disbursement Refund creation all response\n    &#34;&#34;&#34;\n    if not isinstance(disbursement_refund_object, dict):\n        raise ValueError(\n            &#34;Param disbursement_refund_object must be a Dictionary&#34;)\n\n    return self._post(\n        uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id) + &#34;/refunds&#34;,\n        data=disbursement_refund_object,\n        request_options=request_options,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.disbursement_refund.DisbursementRefund.list_all\"><code class=\"name flex\">\n<span>def <span class=\"ident\">list_all</span></span>(<span>self, advanced_payment_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>[Args:\nadvanced_payment_id (str): The Advanced Payment ID\nrequest_options (mercadopago.config.request_options, optional): An instance of\nRequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Disbursement Refund find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def list_all(self, advanced_payment_id, request_options=None):\n    &#34;&#34;&#34;[Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Disbursement Refund find response\n    &#34;&#34;&#34;\n    uri = f&#34;/v1/advanced_payments/{str(advanced_payment_id)}/refunds&#34;\n    return self._get(uri=uri, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.disbursement_refund.DisbursementRefund.save\"><code class=\"name flex\">\n<span>def <span class=\"ident\">save</span></span>(<span>self, advanced_payment_id, disbursement_id, disbursement_refund_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>[Args:\nadvanced_payment_id (str): The Advanced Payment ID\ndisbursement_id (str): Disbursement ID\ndisbursement_refund_object (dict): Disbursement Refund to be saved\nrequest_options (mercadopago.config.request_options, optional): An instance of\nRequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<p>Raises:\nValueError: Param disbursement_refund_object must be a Dictionary</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Disbursement Refund save response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def save(self, advanced_payment_id, disbursement_id, disbursement_refund_object,\n         request_options=None):\n    &#34;&#34;&#34;[Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        disbursement_id (str): Disbursement ID\n        disbursement_refund_object (dict): Disbursement Refund to be saved\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n    ValueError: Param disbursement_refund_object must be a Dictionary\n\n    Returns:\n        dict: Disbursement Refund save response\n    &#34;&#34;&#34;\n    if not isinstance(disbursement_refund_object, dict):\n        raise ValueError(\n            &#34;Param disbursement_refund_object must be a Dictionary&#34;)\n\n    uri = (\n        f&#34;/v1/advanced_payments/{str(advanced_payment_id)}&#34;\n        f&#34;/disbursements/{str(disbursement_id)}/refunds&#34;\n    )\n\n    return self._post(\n        uri=uri,\n        data=disbursement_refund_object,\n        request_options=request_options,\n    )</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.disbursement_refund.DisbursementRefund\" href=\"#mercadopago.resources.disbursement_refund.DisbursementRefund\">DisbursementRefund</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.disbursement_refund.DisbursementRefund.create\" href=\"#mercadopago.resources.disbursement_refund.DisbursementRefund.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.disbursement_refund.DisbursementRefund.create_all\" href=\"#mercadopago.resources.disbursement_refund.DisbursementRefund.create_all\">create_all</a></code></li>\n<li><code><a title=\"mercadopago.resources.disbursement_refund.DisbursementRefund.list_all\" href=\"#mercadopago.resources.disbursement_refund.DisbursementRefund.list_all\">list_all</a></code></li>\n<li><code><a title=\"mercadopago.resources.disbursement_refund.DisbursementRefund.save\" href=\"#mercadopago.resources.disbursement_refund.DisbursementRefund.save\">save</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/identification_type.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.identification_type API documentation</title>\n<meta name=\"description\" content=\"Module: identification_type\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.identification_type</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: identification_type</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: identification_type\n&#34;&#34;&#34;\nfrom mercadopago.core import MPBase\n\n\nclass IdentificationType(MPBase):\n    &#34;&#34;&#34;\n    Access to Identification Types\n    &#34;&#34;&#34;\n\n    def list_all(self, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/identification_types/_identification_types/get/)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Identification Types find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/identification_types&#34;, request_options=request_options)\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__request_options</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.identification_type.IdentificationType\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">IdentificationType</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Access to Identification Types</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class IdentificationType(MPBase):\n    &#34;&#34;&#34;\n    Access to Identification Types\n    &#34;&#34;&#34;\n\n    def list_all(self, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/identification_types/_identification_types/get/)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Identification Types find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/identification_types&#34;, request_options=request_options)\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__request_options</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.identification_type.IdentificationType.list_all\"><code class=\"name flex\">\n<span>def <span class=\"ident\">list_all</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/identification_types/_identification_types/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Identification Types find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def list_all(self, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/identification_types/_identification_types/get/)  # pylint: disable=line-too-long\n\n    Args:\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Identification Types find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/identification_types&#34;, request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.identification_type.IdentificationType\" href=\"#mercadopago.resources.identification_type.IdentificationType\">IdentificationType</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.identification_type.IdentificationType.list_all\" href=\"#mercadopago.resources.identification_type.IdentificationType.list_all\">list_all</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/index.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources API documentation</title>\n<meta name=\"description\" content=\"Module: resources/__init__.py\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: resources/<strong>init</strong>.py</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\nModule: resources/__init__.py\n&#34;&#34;&#34;\nfrom mercadopago.config.request_options import RequestOptions\nfrom mercadopago.http.http_client import HttpClient\nfrom mercadopago.resources.advanced_payment import AdvancedPayment\nfrom mercadopago.resources.card import Card\nfrom mercadopago.resources.card_token import CardToken\nfrom mercadopago.resources.customer import Customer\nfrom mercadopago.resources.disbursement_refund import DisbursementRefund\nfrom mercadopago.resources.identification_type import IdentificationType\nfrom mercadopago.resources.merchant_order import MerchantOrder\nfrom mercadopago.resources.payment import Payment\nfrom mercadopago.resources.payment_methods import PaymentMethods\nfrom mercadopago.resources.preapproval import PreApproval\nfrom mercadopago.resources.preference import Preference\nfrom mercadopago.resources.refund import Refund\nfrom mercadopago.resources.user import User\n\n\n__all__ = (\n    &#39;AdvancedPayment&#39;,\n    &#39;Card&#39;,\n    &#39;CardToken&#39;,\n    &#39;Customer&#39;,\n    &#39;DisbursementRefund&#39;,\n    &#39;HttpClient&#39;,\n    &#39;IdentificationType&#39;,\n    &#39;MerchantOrder&#39;,\n    &#39;Payment&#39;,\n    &#39;PaymentMethods&#39;,\n    &#39;PreApproval&#39;,\n    &#39;Preference&#39;,\n    &#39;Refund&#39;,\n    &#39;RequestOptions&#39;,\n    &#39;User&#39;,\n)</code></pre>\n</details>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-submodules\">Sub-modules</h2>\n<dl>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.advanced_payment\" href=\"advanced_payment.html\">mercadopago.resources.advanced_payment</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: advanced_payment</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.card\" href=\"card.html\">mercadopago.resources.card</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: card</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.card_token\" href=\"card_token.html\">mercadopago.resources.card_token</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: card_token</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.customer\" href=\"customer.html\">mercadopago.resources.customer</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: customer</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.disbursement_refund\" href=\"disbursement_refund.html\">mercadopago.resources.disbursement_refund</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: disbursement_refund</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.identification_type\" href=\"identification_type.html\">mercadopago.resources.identification_type</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: identification_type</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.merchant_order\" href=\"merchant_order.html\">mercadopago.resources.merchant_order</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: merchant_order</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.payment\" href=\"payment.html\">mercadopago.resources.payment</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: payment</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.payment_methods\" href=\"payment_methods.html\">mercadopago.resources.payment_methods</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: payment_methods</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.preapproval\" href=\"preapproval.html\">mercadopago.resources.preapproval</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: preapproval</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.preference\" href=\"preference.html\">mercadopago.resources.preference</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: preference</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.refund\" href=\"refund.html\">mercadopago.resources.refund</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: refund</p></div>\n</dd>\n<dt><code class=\"name\"><a title=\"mercadopago.resources.user\" href=\"user.html\">mercadopago.resources.user</a></code></dt>\n<dd>\n<div class=\"desc\"><p>Module: user</p></div>\n</dd>\n</dl>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.AdvancedPayment\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">AdvancedPayment</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Access to Advanced Payments</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class AdvancedPayment(MPBase):\n    &#34;&#34;&#34;\n    Access to Advanced Payments\n    &#34;&#34;&#34;\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments_id_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding custom options\n            to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Advanced Payment search response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/advanced_payments/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, advanced_payment_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            call. Defaults to None.\n\n        Returns:\n            dict: Advanced Payment find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                         request_options=request_options)\n\n    def create(self, advanced_payment_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments/post/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_object (dict): Advanced Payment to be created\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            call. Defaults to None.\n\n        Raises:\n            ValueError: Param advanced_payment_object must be a Dictionary\n\n        Returns:\n            dict: Advanced Payment creation response\n        &#34;&#34;&#34;\n        if not isinstance(advanced_payment_object, dict):\n            raise ValueError(\n                &#34;Param advanced_payment_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/advanced_payments&#34;, data=advanced_payment_object,\n                          request_options=request_options)\n\n    def capture(self, advanced_payment_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            call. Defaults to None.\n\n        Returns:\n            dict: Advanced Payment capture response\n        &#34;&#34;&#34;\n        capture_object = {&#34;capture&#34;: True}\n        return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                         data=capture_object, request_options=request_options)\n\n    def update(self, advanced_payment_id, advanced_payment_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            advanced_payment_object (dict): Advanced Payment to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param advanced_payment_object must be a Dictionary\n\n        Returns:\n            dict: Advanced Payment modification response\n        &#34;&#34;&#34;\n        if not isinstance(advanced_payment_object, dict):\n            raise ValueError(\n                &#34;Param advanced_payment_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                         data=advanced_payment_object, request_options=request_options)\n\n    def cancel(self, advanced_payment_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Advanced Payment cancelation response\n        &#34;&#34;&#34;\n        cancel_object = {&#34;status&#34;: &#34;cancelled&#34;}\n        return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                         data=cancel_object, request_options=request_options)\n\n    def update_release_date(self, advanced_payment_id, release_date, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id_disbursements_disbursement_id_disburses/post/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            release_date (datetime): Advanced Payment to be canceled\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param release_date must be a DateTime\n\n        Returns:\n            dict: Advanced Payment release date modification response\n        &#34;&#34;&#34;\n        if not isinstance(release_date, datetime):\n            raise ValueError(&#34;Param release_date must be a DateTime&#34;)\n\n        disbursement_object = {\n            &#34;money_release_date&#34;: release_date.strftime(&#34;%Y-%m-%d %H:%M:%S.%f&#34;)}\n\n        return self._post(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id) + &#34;/disburses&#34;,\n                          data=disbursement_object, request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.AdvancedPayment.cancel\"><code class=\"name flex\">\n<span>def <span class=\"ident\">cancel</span></span>(<span>self, advanced_payment_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>advanced_payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Advanced Payment ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment cancelation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def cancel(self, advanced_payment_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Advanced Payment cancelation response\n    &#34;&#34;&#34;\n    cancel_object = {&#34;status&#34;: &#34;cancelled&#34;}\n    return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                     data=cancel_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.AdvancedPayment.capture\"><code class=\"name flex\">\n<span>def <span class=\"ident\">capture</span></span>(<span>self, advanced_payment_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>advanced_payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Advanced Payment ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance</dd>\n</dl>\n<p>of RequestOptions can be pass changing or adding custom options to ur REST\ncall. Defaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment capture response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def capture(self, advanced_payment_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        request_options (mercadopago.config.request_options, optional): An instance\n        of RequestOptions can be pass changing or adding custom options to ur REST\n        call. Defaults to None.\n\n    Returns:\n        dict: Advanced Payment capture response\n    &#34;&#34;&#34;\n    capture_object = {&#34;capture&#34;: True}\n    return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                     data=capture_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.AdvancedPayment.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, advanced_payment_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>advanced_payment_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Advanced Payment to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance</dd>\n</dl>\n<p>of RequestOptions can be pass changing or adding custom options to ur REST\ncall. Defaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param advanced_payment_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, advanced_payment_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments/post/)  # pylint: disable=line-too-long\n\n    Args:\n        advanced_payment_object (dict): Advanced Payment to be created\n        request_options (mercadopago.config.request_options, optional): An instance\n        of RequestOptions can be pass changing or adding custom options to ur REST\n        call. Defaults to None.\n\n    Raises:\n        ValueError: Param advanced_payment_object must be a Dictionary\n\n    Returns:\n        dict: Advanced Payment creation response\n    &#34;&#34;&#34;\n    if not isinstance(advanced_payment_object, dict):\n        raise ValueError(\n            &#34;Param advanced_payment_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/v1/advanced_payments&#34;, data=advanced_payment_object,\n                      request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.AdvancedPayment.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, advanced_payment_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>advanced_payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Advanced Payment ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance</dd>\n</dl>\n<p>of RequestOptions can be pass changing or adding custom options to ur REST\ncall. Defaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, advanced_payment_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/get/)  # pylint: disable=line-too-long\n\n    Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        request_options (mercadopago.config.request_options, optional): An instance\n        of RequestOptions can be pass changing or adding custom options to ur REST\n        call. Defaults to None.\n\n    Returns:\n        dict: Advanced Payment find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.AdvancedPayment.search\"><code class=\"name flex\">\n<span>def <span class=\"ident\">search</span></span>(<span>self, filters=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments_id_search/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>filters</code></strong> :&ensp;<code>dict</code></dt>\n<dd>The search filters parameters</dd>\n</dl>\n<p>request_options (mercadopago.config.request_options, optional):\nAn instance of RequestOptions can be pass changing or adding custom options\nto ur REST call. Defaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment search response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def search(self, filters=None, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments_id_search/get/)  # pylint: disable=line-too-long\n\n    Args:\n        filters (dict): The search filters parameters\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding custom options\n        to ur REST call. Defaults to None.\n\n    Returns:\n        dict: Advanced Payment search response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/advanced_payments/search&#34;, filters=filters,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.AdvancedPayment.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, advanced_payment_id, advanced_payment_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>advanced_payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Advanced Payment ID</dd>\n<dt><strong><code>advanced_payment_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Advanced Payment to be updated</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param advanced_payment_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, advanced_payment_id, advanced_payment_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        advanced_payment_object (dict): Advanced Payment to be updated\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param advanced_payment_object must be a Dictionary\n\n    Returns:\n        dict: Advanced Payment modification response\n    &#34;&#34;&#34;\n    if not isinstance(advanced_payment_object, dict):\n        raise ValueError(\n            &#34;Param advanced_payment_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id),\n                     data=advanced_payment_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.AdvancedPayment.update_release_date\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update_release_date</span></span>(<span>self, advanced_payment_id, release_date, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id_disbursements_disbursement_id_disburses/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>advanced_payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Advanced Payment ID</dd>\n<dt><strong><code>release_date</code></strong> :&ensp;<code>datetime</code></dt>\n<dd>Advanced Payment to be canceled</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param release_date must be a DateTime</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Advanced Payment release date modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update_release_date(self, advanced_payment_id, release_date, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id_disbursements_disbursement_id_disburses/post/)  # pylint: disable=line-too-long\n\n    Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        release_date (datetime): Advanced Payment to be canceled\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param release_date must be a DateTime\n\n    Returns:\n        dict: Advanced Payment release date modification response\n    &#34;&#34;&#34;\n    if not isinstance(release_date, datetime):\n        raise ValueError(&#34;Param release_date must be a DateTime&#34;)\n\n    disbursement_object = {\n        &#34;money_release_date&#34;: release_date.strftime(&#34;%Y-%m-%d %H:%M:%S.%f&#34;)}\n\n    return self._post(uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id) + &#34;/disburses&#34;,\n                      data=disbursement_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n<dt id=\"mercadopago.resources.Card\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">Card</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>The cards class is the way to store card data of your customers\nsafely to improve the shopping experience.</p>\n<p>This will allow your customers to complete their purchases much\nfaster and easily, since they will not have to complete their\ncard data again.</p>\n<p>This class must be used in conjunction with the Customer class.</p>\n<p><a href=\"https://www.mercadopago.com/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards\">Click here for more info</a>\n# pylint: disable=line-too-long</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class Card(MPBase):\n    &#34;&#34;&#34;\n    The cards class is the way to store card data of your customers\n    safely to improve the shopping experience.\n\n    This will allow your customers to complete their purchases much\n    faster and easily, since they will not have to complete their\n    card data again.\n\n    This class must be used in conjunction with the Customer class.\n\n    [Click here for more info](https://www.mercadopago.com/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def list_all(self, customer_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Cards find response\n        &#34;&#34;&#34;\n        return self._get(\n            uri=f&#34;/v1/customers/{str(customer_id)}/cards&#34;,\n            request_options=request_options,\n        )\n\n    def get(self, customer_id, card_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            card_id (dict): Card ID to be found\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Card find response\n        &#34;&#34;&#34;\n        return self._get(\n            uri=f&#34;/v1/customers/{str(customer_id)}/cards/{str(card_id)}&#34;,\n            request_options=request_options,\n        )\n\n    def create(self, customer_id, card_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/post/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            card_object (dict): Card object to be created\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param card_object must be a Dictionary\n\n        Returns:\n            dict: Card creation response\n        &#34;&#34;&#34;\n        if not isinstance(card_object, dict):\n            raise ValueError(&#34;Param card_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                          + &#34;/cards/&#34;, data=card_object, request_options=request_options)\n\n    def update(self, customer_id, card_id, card_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): Customer ID owner\n            card_id (str): Card ID to be modified\n            card_object (dict): Values to be modified\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param card_object must be a Dictionary\n\n        Returns:\n            dict: Card modification response\n        &#34;&#34;&#34;\n        if not isinstance(card_object, dict):\n            raise ValueError(&#34;Param card_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                         + &#34;/cards/&#34; + str(card_id), data=card_object,\n                         request_options=request_options)\n\n    def delete(self, customer_id, card_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/delete/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): Customer ID owner\n            card_id (str): Card ID to be deleted\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Card exclusion response\n        &#34;&#34;&#34;\n        return self._delete(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                            + &#34;/cards/&#34; + str(card_id), request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.Card.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, customer_id, card_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Customer ID owner</dd>\n<dt><strong><code>card_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Card object to be created</dd>\n</dl>\n<p>request_options (mercadopago.config.request_options, optional):\nAn instance of RequestOptions can be pass changing or adding\ncustom options to ur REST call. Defaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param card_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Card creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, customer_id, card_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/post/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): The Customer ID owner\n        card_object (dict): Card object to be created\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding\n        custom options to ur REST call. Defaults to None.\n\n    Raises:\n        ValueError: Param card_object must be a Dictionary\n\n    Returns:\n        dict: Card creation response\n    &#34;&#34;&#34;\n    if not isinstance(card_object, dict):\n        raise ValueError(&#34;Param card_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                      + &#34;/cards/&#34;, data=card_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Card.delete\"><code class=\"name flex\">\n<span>def <span class=\"ident\">delete</span></span>(<span>self, customer_id, card_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/delete/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>Customer ID owner</dd>\n<dt><strong><code>card_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>Card ID to be deleted</dd>\n</dl>\n<p>request_options (mercadopago.config.request_options, optional):\nAn instance of RequestOptions can be pass changing or adding\ncustom options to ur REST call. Defaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Card exclusion response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def delete(self, customer_id, card_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/delete/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): Customer ID owner\n        card_id (str): Card ID to be deleted\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding\n        custom options to ur REST call. Defaults to None.\n\n    Returns:\n        dict: Card exclusion response\n    &#34;&#34;&#34;\n    return self._delete(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                        + &#34;/cards/&#34; + str(card_id), request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Card.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, customer_id, card_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Customer ID owner</dd>\n<dt><strong><code>card_id</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Card ID to be found</dd>\n</dl>\n<p>request_options (mercadopago.config.request_options, optional):\nAn instance of RequestOptions can be pass changing or adding\ncustom options to ur REST call. Defaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Card find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, customer_id, card_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/get/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): The Customer ID owner\n        card_id (dict): Card ID to be found\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding\n        custom options to ur REST call. Defaults to None.\n\n    Returns:\n        dict: Card find response\n    &#34;&#34;&#34;\n    return self._get(\n        uri=f&#34;/v1/customers/{str(customer_id)}/cards/{str(card_id)}&#34;,\n        request_options=request_options,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Card.list_all\"><code class=\"name flex\">\n<span>def <span class=\"ident\">list_all</span></span>(<span>self, customer_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Customer ID owner</dd>\n</dl>\n<p>request_options (mercadopago.config.request_options, optional):\nAn instance of RequestOptions can be pass changing or adding\ncustom options to ur REST call. Defaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Cards find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def list_all(self, customer_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): The Customer ID owner\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding\n        custom options to ur REST call. Defaults to None.\n\n    Returns:\n        dict: Cards find response\n    &#34;&#34;&#34;\n    return self._get(\n        uri=f&#34;/v1/customers/{str(customer_id)}/cards&#34;,\n        request_options=request_options,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Card.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, customer_id, card_id, card_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>Customer ID owner</dd>\n<dt><strong><code>card_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>Card ID to be modified</dd>\n<dt><strong><code>card_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Values to be modified</dd>\n</dl>\n<p>request_options (mercadopago.config.request_options, optional):\nAn instance of RequestOptions can be pass changing or adding\ncustom options to ur REST call. Defaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param card_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Card modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, customer_id, card_id, card_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): Customer ID owner\n        card_id (str): Card ID to be modified\n        card_object (dict): Values to be modified\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding\n        custom options to ur REST call. Defaults to None.\n\n    Raises:\n        ValueError: Param card_object must be a Dictionary\n\n    Returns:\n        dict: Card modification response\n    &#34;&#34;&#34;\n    if not isinstance(card_object, dict):\n        raise ValueError(&#34;Param card_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/v1/customers/&#34; + str(customer_id)\n                     + &#34;/cards/&#34; + str(card_id), data=card_object,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n<dt id=\"mercadopago.resources.CardToken\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">CardToken</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class will allow you to send your customers card data for Mercado Pago\nserver and receive a token to complete the payments transactions.</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class CardToken(MPBase):\n    &#34;&#34;&#34;\n    This class will allow you to send your customers card data for Mercado Pago\n    server and receive a token to complete the payments transactions.\n    &#34;&#34;&#34;\n\n    def get(self, card_token_id, request_options=None):\n        &#34;&#34;&#34;Args:\n            card_token_id (str): The Card Token ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Card Token find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/card_tokens/&#34; + str(card_token_id),\n                         request_options=request_options)\n\n    def create(self, card_token_object, request_options=None):\n        &#34;&#34;&#34;Args:\n            card_token_object (dict): Card Token to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param card_token_object must be a Dictionary\n\n        Returns:\n            dict: Card Token creation response\n        &#34;&#34;&#34;\n        if not isinstance(card_token_object, dict):\n            raise ValueError(&#34;Param card_token_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/card_tokens&#34;, data=card_token_object,\n                          request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.CardToken.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, card_token_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>card_token_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Card Token to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param card_token_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Card Token creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, card_token_object, request_options=None):\n    &#34;&#34;&#34;Args:\n        card_token_object (dict): Card Token to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param card_token_object must be a Dictionary\n\n    Returns:\n        dict: Card Token creation response\n    &#34;&#34;&#34;\n    if not isinstance(card_token_object, dict):\n        raise ValueError(&#34;Param card_token_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/v1/card_tokens&#34;, data=card_token_object,\n                      request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.CardToken.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, card_token_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>card_token_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Card Token ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Card Token find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, card_token_id, request_options=None):\n    &#34;&#34;&#34;Args:\n        card_token_id (str): The Card Token ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Card Token find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/card_tokens/&#34; + str(card_token_id),\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n<dt id=\"mercadopago.resources.Customer\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">Customer</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class allows you to store customers data safely to improve the shopping experience.</p>\n<p>This will allow your customer to complete their purchases much faster and easily when\nused in conjunction with the Cards class.</p>\n<p><a href=\"https://mercadopago.com.br/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards\">Click here for more info</a>\n# pylint: disable=line-too-long</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class Customer(MPBase):\n    &#34;&#34;&#34;\n    This class allows you to store customers data safely to improve the shopping experience.\n\n    This will allow your customer to complete their purchases much faster and easily when\n    used in conjunction with the Cards class.\n\n    [Click here for more info](https://mercadopago.com.br/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Customer find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/customers/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, customer_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/customers/_customers_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Customer find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/customers/&#34; + str(customer_id), request_options=request_options)\n\n    def create(self, customer_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers/post/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_object (dict): Customer object to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param customer_object must be a Dictionary\n\n        Returns:\n            dict: Customer creation response\n        &#34;&#34;&#34;\n        if not isinstance(customer_object, dict):\n            raise ValueError(&#34;Param customer_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/customers&#34;, data=customer_object,\n                          request_options=request_options)\n\n    def update(self, customer_id, customer_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            customer_object (dict): Customer object to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValeuError: Param customer_object must be a Dictionary\n\n        Returns:\n            dict: Customer modification response\n        &#34;&#34;&#34;\n        if not isinstance(customer_object, dict):\n            raise ValueError(&#34;Param customer_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/v1/customers/&#34; + str(customer_id), data=customer_object,\n                         request_options=request_options)\n\n    def delete(self, customer_id, request_options=None):\n        &#34;&#34;&#34;\n        Args:\n            customer_id (str): The Customer ID owner\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Customer exclusion response\n        &#34;&#34;&#34;\n        return self._delete(uri=&#34;/v1/customers/&#34; + str(customer_id),\n                            request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.Customer.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, customer_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/customers/_customers/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Customer object to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param customer_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Customer creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, customer_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers/post/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_object (dict): Customer object to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param customer_object must be a Dictionary\n\n    Returns:\n        dict: Customer creation response\n    &#34;&#34;&#34;\n    if not isinstance(customer_object, dict):\n        raise ValueError(&#34;Param customer_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/v1/customers&#34;, data=customer_object,\n                      request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Customer.delete\"><code class=\"name flex\">\n<span>def <span class=\"ident\">delete</span></span>(<span>self, customer_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Customer ID owner</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Customer exclusion response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def delete(self, customer_id, request_options=None):\n    &#34;&#34;&#34;\n    Args:\n        customer_id (str): The Customer ID owner\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Customer exclusion response\n    &#34;&#34;&#34;\n    return self._delete(uri=&#34;/v1/customers/&#34; + str(customer_id),\n                        request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Customer.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, customer_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/customers/_customers_id/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Customer ID owner</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Customer find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, customer_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/customers/_customers_id/get/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): The Customer ID owner\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Customer find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/customers/&#34; + str(customer_id), request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Customer.search\"><code class=\"name flex\">\n<span>def <span class=\"ident\">search</span></span>(<span>self, filters=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/customers/_customers_search/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>filters</code></strong> :&ensp;<code>dict</code></dt>\n<dd>The search filters parameters</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Customer find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def search(self, filters=None, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers_search/get/)  # pylint: disable=line-too-long\n\n    Args:\n        filters (dict): The search filters parameters\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Customer find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/customers/search&#34;, filters=filters,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Customer.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, customer_id, customer_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/customers/_customers_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>customer_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Customer ID owner</dd>\n<dt><strong><code>customer_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Customer object to be updated</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValeuError</code></dt>\n<dd>Param customer_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Customer modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, customer_id, customer_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        customer_id (str): The Customer ID owner\n        customer_object (dict): Customer object to be updated\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValeuError: Param customer_object must be a Dictionary\n\n    Returns:\n        dict: Customer modification response\n    &#34;&#34;&#34;\n    if not isinstance(customer_object, dict):\n        raise ValueError(&#34;Param customer_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/v1/customers/&#34; + str(customer_id), data=customer_object,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n<dt id=\"mercadopago.resources.DisbursementRefund\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">DisbursementRefund</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Access to Advanced Payments Refunds</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class DisbursementRefund(MPBase):\n\n    &#34;&#34;&#34;\n    Access to Advanced Payments Refunds\n    &#34;&#34;&#34;\n\n    def list_all(self, advanced_payment_id, request_options=None):\n        &#34;&#34;&#34;[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Disbursement Refund find response\n        &#34;&#34;&#34;\n        uri = f&#34;/v1/advanced_payments/{str(advanced_payment_id)}/refunds&#34;\n        return self._get(uri=uri, request_options=request_options)\n\n    def create_all(self, advanced_payment_id, disbursement_refund_object, request_options=None):\n        &#34;&#34;&#34;[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            disbursement_refund_object (dict): Disbursement Refund to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param disbursement_refund_object must be a Dictionary\n\n        Returns:\n            dict: Disbursement Refund creation all response\n        &#34;&#34;&#34;\n        if not isinstance(disbursement_refund_object, dict):\n            raise ValueError(\n                &#34;Param disbursement_refund_object must be a Dictionary&#34;)\n\n        return self._post(\n            uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id) + &#34;/refunds&#34;,\n            data=disbursement_refund_object,\n            request_options=request_options,\n        )\n\n    def create(self, advanced_payment_id, disbursement_id, amount, request_options=None):\n        &#34;&#34;&#34;[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            disbursement_id (str): Disbursement ID\n            amount: Amount to be refunded\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param amount must be a Float\n\n        Returns:\n            dict: Disbursement Refund creation response\n        &#34;&#34;&#34;\n        if not isinstance(amount, float):\n            raise ValueError(&#34;Param amount must be a Float&#34;)\n\n        disbursement_refund_object = {&#34;amount&#34;: amount}\n\n        uri = (\n            f&#34;/v1/advanced_payments/{str(advanced_payment_id)}&#34;\n            f&#34;/disbursements/{str(disbursement_id)}/refunds&#34;\n        )\n\n        return self._post(\n            uri=uri,\n            data=disbursement_refund_object,\n            request_options=request_options,\n        )\n\n    def save(self, advanced_payment_id, disbursement_id, disbursement_refund_object,\n             request_options=None):\n        &#34;&#34;&#34;[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            disbursement_id (str): Disbursement ID\n            disbursement_refund_object (dict): Disbursement Refund to be saved\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param disbursement_refund_object must be a Dictionary\n\n        Returns:\n            dict: Disbursement Refund save response\n        &#34;&#34;&#34;\n        if not isinstance(disbursement_refund_object, dict):\n            raise ValueError(\n                &#34;Param disbursement_refund_object must be a Dictionary&#34;)\n\n        uri = (\n            f&#34;/v1/advanced_payments/{str(advanced_payment_id)}&#34;\n            f&#34;/disbursements/{str(disbursement_id)}/refunds&#34;\n        )\n\n        return self._post(\n            uri=uri,\n            data=disbursement_refund_object,\n            request_options=request_options,\n        )</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.DisbursementRefund.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, advanced_payment_id, disbursement_id, amount, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>[Args:\nadvanced_payment_id (str): The Advanced Payment ID\ndisbursement_id (str): Disbursement ID\namount: Amount to be refunded\nrequest_options (mercadopago.config.request_options, optional): An instance of\nRequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<p>Raises:\nValueError: Param amount must be a Float</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Disbursement Refund creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, advanced_payment_id, disbursement_id, amount, request_options=None):\n    &#34;&#34;&#34;[Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        disbursement_id (str): Disbursement ID\n        amount: Amount to be refunded\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n    ValueError: Param amount must be a Float\n\n    Returns:\n        dict: Disbursement Refund creation response\n    &#34;&#34;&#34;\n    if not isinstance(amount, float):\n        raise ValueError(&#34;Param amount must be a Float&#34;)\n\n    disbursement_refund_object = {&#34;amount&#34;: amount}\n\n    uri = (\n        f&#34;/v1/advanced_payments/{str(advanced_payment_id)}&#34;\n        f&#34;/disbursements/{str(disbursement_id)}/refunds&#34;\n    )\n\n    return self._post(\n        uri=uri,\n        data=disbursement_refund_object,\n        request_options=request_options,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.DisbursementRefund.create_all\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create_all</span></span>(<span>self, advanced_payment_id, disbursement_refund_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>[Args:\nadvanced_payment_id (str): The Advanced Payment ID\ndisbursement_refund_object (dict): Disbursement Refund to be created\nrequest_options (mercadopago.config.request_options, optional): An instance of\nRequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<p>Raises:\nValueError: Param disbursement_refund_object must be a Dictionary</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Disbursement Refund creation all response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create_all(self, advanced_payment_id, disbursement_refund_object, request_options=None):\n    &#34;&#34;&#34;[Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        disbursement_refund_object (dict): Disbursement Refund to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n    ValueError: Param disbursement_refund_object must be a Dictionary\n\n    Returns:\n        dict: Disbursement Refund creation all response\n    &#34;&#34;&#34;\n    if not isinstance(disbursement_refund_object, dict):\n        raise ValueError(\n            &#34;Param disbursement_refund_object must be a Dictionary&#34;)\n\n    return self._post(\n        uri=&#34;/v1/advanced_payments/&#34; + str(advanced_payment_id) + &#34;/refunds&#34;,\n        data=disbursement_refund_object,\n        request_options=request_options,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.DisbursementRefund.list_all\"><code class=\"name flex\">\n<span>def <span class=\"ident\">list_all</span></span>(<span>self, advanced_payment_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>[Args:\nadvanced_payment_id (str): The Advanced Payment ID\nrequest_options (mercadopago.config.request_options, optional): An instance of\nRequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Disbursement Refund find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def list_all(self, advanced_payment_id, request_options=None):\n    &#34;&#34;&#34;[Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Disbursement Refund find response\n    &#34;&#34;&#34;\n    uri = f&#34;/v1/advanced_payments/{str(advanced_payment_id)}/refunds&#34;\n    return self._get(uri=uri, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.DisbursementRefund.save\"><code class=\"name flex\">\n<span>def <span class=\"ident\">save</span></span>(<span>self, advanced_payment_id, disbursement_id, disbursement_refund_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>[Args:\nadvanced_payment_id (str): The Advanced Payment ID\ndisbursement_id (str): Disbursement ID\ndisbursement_refund_object (dict): Disbursement Refund to be saved\nrequest_options (mercadopago.config.request_options, optional): An instance of\nRequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<p>Raises:\nValueError: Param disbursement_refund_object must be a Dictionary</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Disbursement Refund save response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def save(self, advanced_payment_id, disbursement_id, disbursement_refund_object,\n         request_options=None):\n    &#34;&#34;&#34;[Args:\n        advanced_payment_id (str): The Advanced Payment ID\n        disbursement_id (str): Disbursement ID\n        disbursement_refund_object (dict): Disbursement Refund to be saved\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n    ValueError: Param disbursement_refund_object must be a Dictionary\n\n    Returns:\n        dict: Disbursement Refund save response\n    &#34;&#34;&#34;\n    if not isinstance(disbursement_refund_object, dict):\n        raise ValueError(\n            &#34;Param disbursement_refund_object must be a Dictionary&#34;)\n\n    uri = (\n        f&#34;/v1/advanced_payments/{str(advanced_payment_id)}&#34;\n        f&#34;/disbursements/{str(disbursement_id)}/refunds&#34;\n    )\n\n    return self._post(\n        uri=uri,\n        data=disbursement_refund_object,\n        request_options=request_options,\n    )</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n<dt id=\"mercadopago.resources.HttpClient\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">HttpClient</span></span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Default implementation to call all REST API's</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class HttpClient:\n    &#34;&#34;&#34;\n    Default implementation to call all REST API&#39;s\n    &#34;&#34;&#34;\n\n    def request(self, method, url, maxretries=None, **kwargs):  # pylint: disable=no-self-use\n        &#34;&#34;&#34;Makes a call to the API.\n\n        All **kwargs are passed verbatim to ``requests.request``.\n        &#34;&#34;&#34;\n        retry_strategy = Retry(\n            total=maxretries,\n            status_forcelist=[429, 500, 502, 503, 504]\n        )\n        http = requests.Session()\n        http.mount(&#34;https://&#34;, HTTPAdapter(max_retries=retry_strategy))\n        with http as session:\n            api_result = session.request(method, url, **kwargs)\n            response = {\n                &#34;status&#34;: api_result.status_code,\n                &#34;response&#34;: api_result.json()\n            }\n\n        return response\n\n    def get(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a GET request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;GET&#34;,\n            url=url,\n            headers=headers,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def post(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a POST request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;POST&#34;,\n            url=url,\n            headers=headers,\n            data=data,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def put(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a PUT request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;PUT&#34;,\n            url=url,\n            headers=headers,\n            data=data,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def delete(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n        &#34;&#34;&#34;Makes a DELETE request to the API&#34;&#34;&#34;\n        return self.request(\n            &#34;DELETE&#34;,\n            url=url,\n            headers=headers,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )</code></pre>\n</details>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.HttpClient.delete\"><code class=\"name flex\">\n<span>def <span class=\"ident\">delete</span></span>(<span>self, url, headers, params=None, timeout=None, maxretries=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a DELETE request to the API</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def delete(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    &#34;&#34;&#34;Makes a DELETE request to the API&#34;&#34;&#34;\n    return self.request(\n        &#34;DELETE&#34;,\n        url=url,\n        headers=headers,\n        params=params,\n        timeout=timeout,\n        maxretries=maxretries,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.HttpClient.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, url, headers, params=None, timeout=None, maxretries=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a GET request to the API</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    &#34;&#34;&#34;Makes a GET request to the API&#34;&#34;&#34;\n    return self.request(\n        &#34;GET&#34;,\n        url=url,\n        headers=headers,\n        params=params,\n        timeout=timeout,\n        maxretries=maxretries,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.HttpClient.post\"><code class=\"name flex\">\n<span>def <span class=\"ident\">post</span></span>(<span>self, url, headers, data=None, params=None, timeout=None, maxretries=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a POST request to the API</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def post(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    &#34;&#34;&#34;Makes a POST request to the API&#34;&#34;&#34;\n    return self.request(\n        &#34;POST&#34;,\n        url=url,\n        headers=headers,\n        data=data,\n        params=params,\n        timeout=timeout,\n        maxretries=maxretries,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.HttpClient.put\"><code class=\"name flex\">\n<span>def <span class=\"ident\">put</span></span>(<span>self, url, headers, data=None, params=None, timeout=None, maxretries=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a PUT request to the API</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def put(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    &#34;&#34;&#34;Makes a PUT request to the API&#34;&#34;&#34;\n    return self.request(\n        &#34;PUT&#34;,\n        url=url,\n        headers=headers,\n        data=data,\n        params=params,\n        timeout=timeout,\n        maxretries=maxretries,\n    )</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.HttpClient.request\"><code class=\"name flex\">\n<span>def <span class=\"ident\">request</span></span>(<span>self, method, url, maxretries=None, **kwargs)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Makes a call to the API.</p>\n<p>All **kwargs are passed verbatim to <code>requests.request</code>.</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def request(self, method, url, maxretries=None, **kwargs):  # pylint: disable=no-self-use\n    &#34;&#34;&#34;Makes a call to the API.\n\n    All **kwargs are passed verbatim to ``requests.request``.\n    &#34;&#34;&#34;\n    retry_strategy = Retry(\n        total=maxretries,\n        status_forcelist=[429, 500, 502, 503, 504]\n    )\n    http = requests.Session()\n    http.mount(&#34;https://&#34;, HTTPAdapter(max_retries=retry_strategy))\n    with http as session:\n        api_result = session.request(method, url, **kwargs)\n        response = {\n            &#34;status&#34;: api_result.status_code,\n            &#34;response&#34;: api_result.json()\n        }\n\n    return response</code></pre>\n</details>\n</dd>\n</dl>\n</dd>\n<dt id=\"mercadopago.resources.IdentificationType\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">IdentificationType</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Access to Identification Types</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class IdentificationType(MPBase):\n    &#34;&#34;&#34;\n    Access to Identification Types\n    &#34;&#34;&#34;\n\n    def list_all(self, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/identification_types/_identification_types/get/)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Identification Types find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/identification_types&#34;, request_options=request_options)\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__request_options</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.IdentificationType.list_all\"><code class=\"name flex\">\n<span>def <span class=\"ident\">list_all</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/identification_types/_identification_types/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Identification Types find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def list_all(self, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/identification_types/_identification_types/get/)  # pylint: disable=line-too-long\n\n    Args:\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Identification Types find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/identification_types&#34;, request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n<dt id=\"mercadopago.resources.MerchantOrder\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">MerchantOrder</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class will allow you to create and manage your orders. You can attach\none or more payments in your merchant order.</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class MerchantOrder(MPBase):\n    &#34;&#34;&#34;\n    This class will allow you to create and manage your orders. You can attach\n    one or more payments in your merchant order.\n    &#34;&#34;&#34;\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Merchant Order find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/merchant_orders/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, merchan_order_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/)  # pylint: disable=line-too-long\n\n        Args:\n            merchan_order_id (str): The Merchant Order ID\n            request_options (mercadopago.config.request_options, optional): An instance of RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Cards find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/merchant_orders/&#34; + str(merchan_order_id),\n                         request_options=request_options)\n\n    def update(self, merchan_order_id, merchant_order_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            merchan_order_id (str): Merchant Order ID\n            merchant_order_object (dict): Merchant Order object to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param merchant_order_object must be a Dictionary\n\n        Returns:\n            dict: Cards modification response\n        &#34;&#34;&#34;\n        if not isinstance(merchant_order_object, dict):\n            raise ValueError(\n                &#34;Param merchant_order_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/merchant_orders/&#34; + str(merchan_order_id),\n                         data=merchant_order_object, request_options=request_options)\n\n    def create(self, merchant_order_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders/post/)  # pylint: disable=line-too-long\n\n        Args:\n            merchant_order_object (dict): Merchant Order object to be created\n            request_options (mercadopago.config.request_options, optional): An instance of RequestOptions can be pass\n                changing or adding custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param merchant_order_object must be a Dictionary\n\n        Returns:\n            dict: Cards creation response\n        &#34;&#34;&#34;\n        if not isinstance(merchant_order_object, dict):\n            raise ValueError(\n                &#34;Param merchant_order_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/merchant_orders&#34;, data=merchant_order_object,\n                          request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.MerchantOrder.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, merchant_order_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>merchant_order_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Merchant Order object to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of RequestOptions can be pass\nchanging or adding custom options to ur REST call. Defaults to None.</dd>\n</dl>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param merchant_order_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Cards creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, merchant_order_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders/post/)  # pylint: disable=line-too-long\n\n    Args:\n        merchant_order_object (dict): Merchant Order object to be created\n        request_options (mercadopago.config.request_options, optional): An instance of RequestOptions can be pass\n            changing or adding custom options to ur REST call. Defaults to None.\n\n    Raises:\n        ValueError: Param merchant_order_object must be a Dictionary\n\n    Returns:\n        dict: Cards creation response\n    &#34;&#34;&#34;\n    if not isinstance(merchant_order_object, dict):\n        raise ValueError(\n            &#34;Param merchant_order_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/merchant_orders&#34;, data=merchant_order_object,\n                      request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.MerchantOrder.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, merchan_order_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>merchan_order_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Merchant Order ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Cards find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, merchan_order_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/)  # pylint: disable=line-too-long\n\n    Args:\n        merchan_order_id (str): The Merchant Order ID\n        request_options (mercadopago.config.request_options, optional): An instance of RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.\n\n    Returns:\n        dict: Cards find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/merchant_orders/&#34; + str(merchan_order_id),\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.MerchantOrder.search\"><code class=\"name flex\">\n<span>def <span class=\"ident\">search</span></span>(<span>self, filters=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_search/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>filters</code></strong> :&ensp;<code>dict</code></dt>\n<dd>The search filters parameters</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Merchant Order find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def search(self, filters=None, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_search/get/)  # pylint: disable=line-too-long\n\n    Args:\n        filters (dict): The search filters parameters\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Merchant Order find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/merchant_orders/search&#34;, filters=filters,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.MerchantOrder.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, merchan_order_id, merchant_order_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>merchan_order_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>Merchant Order ID</dd>\n<dt><strong><code>merchant_order_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Merchant Order object to be updated</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param merchant_order_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Cards modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, merchan_order_id, merchant_order_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        merchan_order_id (str): Merchant Order ID\n        merchant_order_object (dict): Merchant Order object to be updated\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param merchant_order_object must be a Dictionary\n\n    Returns:\n        dict: Cards modification response\n    &#34;&#34;&#34;\n    if not isinstance(merchant_order_object, dict):\n        raise ValueError(\n            &#34;Param merchant_order_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/merchant_orders/&#34; + str(merchan_order_id),\n                     data=merchant_order_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n<dt id=\"mercadopago.resources.Payment\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">Payment</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class provides the methods to access the API that will allow you to create\nyour own payment experience on your website.</p>\n<p>From basic to advanced configurations, you control the whole experience.</p>\n<p><a href=\"https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-api/introduction/\">Click here for more info</a>\n# pylint: disable=line-too-long</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class Payment(MPBase):\n    &#34;&#34;&#34;\n    This class provides the methods to access the API that will allow you to create\n    your own payment experience on your website.\n\n    From basic to advanced configurations, you control the whole experience.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-api/introduction/)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Payment find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/payments/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, payment_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            payment_id (str): The Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Payment find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/payments/&#34; + str(payment_id), request_options=request_options)\n\n    def create(self, payment_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments/post/)  # pylint: disable=line-too-long\n\n        Args:\n            payment_object (dict): Payment to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param payment_object must be a Dictionary\n\n        Returns:\n            dict: Payment creation response\n        &#34;&#34;&#34;\n        if not isinstance(payment_object, dict):\n            raise ValueError(&#34;Param payment_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/payments&#34;, data=payment_object, request_options=request_options)\n\n    def update(self, payment_id, payment_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/payments/_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            payment_id (str): The Payment ID\n            payment_object (dict): Payment to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param payment_object must be a Dictionary\n\n        Returns:\n            dict: Payment modification response\n        &#34;&#34;&#34;\n        if not isinstance(payment_object, dict):\n            raise ValueError(&#34;Param payment_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/v1/payments/&#34; + str(payment_id), data=payment_object,\n                         request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.Payment.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, payment_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/payments/_payments/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>payment_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Payment to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param payment_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Payment creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, payment_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments/post/)  # pylint: disable=line-too-long\n\n    Args:\n        payment_object (dict): Payment to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param payment_object must be a Dictionary\n\n    Returns:\n        dict: Payment creation response\n    &#34;&#34;&#34;\n    if not isinstance(payment_object, dict):\n        raise ValueError(&#34;Param payment_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/v1/payments&#34;, data=payment_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Payment.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, payment_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/payments/_payments_id/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Payment ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Payment find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, payment_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments_id/get/)  # pylint: disable=line-too-long\n\n    Args:\n        payment_id (str): The Payment ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Payment find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/payments/&#34; + str(payment_id), request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Payment.search\"><code class=\"name flex\">\n<span>def <span class=\"ident\">search</span></span>(<span>self, filters=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/payments/_payments_search/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Payment find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def search(self, filters=None, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments_search/get/)  # pylint: disable=line-too-long\n\n    Args:\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Payment find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/payments/search&#34;, filters=filters,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Payment.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, payment_id, payment_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/payments/_payments_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Payment ID</dd>\n<dt><strong><code>payment_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Payment to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param payment_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Payment modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, payment_id, payment_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/payments/_payments_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        payment_id (str): The Payment ID\n        payment_object (dict): Payment to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param payment_object must be a Dictionary\n\n    Returns:\n        dict: Payment modification response\n    &#34;&#34;&#34;\n    if not isinstance(payment_object, dict):\n        raise ValueError(&#34;Param payment_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/v1/payments/&#34; + str(payment_id), data=payment_object,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n<dt id=\"mercadopago.resources.PaymentMethods\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">PaymentMethods</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Access to Payment Methods</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class PaymentMethods(MPBase):\n    &#34;&#34;&#34;\n    Access to Payment Methods\n    &#34;&#34;&#34;\n\n    def list_all(self, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payment_methods/_payment_methods/get/)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Payment Methods find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/payment_methods&#34;, request_options=request_options)\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__request_options</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.PaymentMethods.list_all\"><code class=\"name flex\">\n<span>def <span class=\"ident\">list_all</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/payment_methods/_payment_methods/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Payment Methods find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def list_all(self, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payment_methods/_payment_methods/get/)  # pylint: disable=line-too-long\n\n    Args:\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Payment Methods find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/payment_methods&#34;, request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n<dt id=\"mercadopago.resources.PreApproval\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">PreApproval</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class provides the methods to access the API that will allow you to create\nyour own preapproval experience on your website.</p>\n<p>From basic to advanced configurations, you control the whole experience.</p>\n<p><a href=\"https://www.mercadopago.com.br/developers/en/guides/online-payments/subscriptions/introduction\">Click here for more info</a>\n# pylint: disable=line-too-long</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class PreApproval(MPBase):\n    &#34;&#34;&#34;\n    This class provides the methods to access the API that will allow you to create\n    your own preapproval experience on your website.\n\n    From basic to advanced configurations, you control the whole experience.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/online-payments/subscriptions/introduction)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def __init__(self, request_options, http_client):\n        MPBase.__init__(self, request_options, http_client)\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: PreApproval find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/preapproval/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, preapproval_id, request_options=None):\n        &#34;&#34;&#34;Args:\n            preapproval_id (str): The PreApproval ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: PreApproval find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/preapproval/&#34; + str(preapproval_id), request_options=request_options)\n\n    def create(self, preapproval_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/subscriptions/_preapproval/post/)  # pylint: disable=line-too-long\n\n        Args:\n            preapproval_object (dict): PreApproval to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param preapproval_object must be a Dictionary\n\n        Returns:\n            dict: PreApproval creation response\n        &#34;&#34;&#34;\n        if not isinstance(preapproval_object, dict):\n            raise ValueError(&#34;Param preapproval_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/preapproval&#34;,\n                          data=preapproval_object, request_options=request_options)\n\n    def update(self, preapproval_id, preapproval_object, request_options=None):\n        &#34;&#34;&#34;Args:\n            preapproval_id (str): The PreApproval ID\n            preapproval_object (dict): PreApproval to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param preapproval_object must be a Dictionary\n\n        Returns:\n            dict: PreApproval modification response\n        &#34;&#34;&#34;\n        if not isinstance(preapproval_object, dict):\n            raise ValueError(&#34;Param preapproval_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/preapproval&#34; + str(preapproval_id),\n                         data=preapproval_object, request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.PreApproval.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, preapproval_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/subscriptions/_preapproval/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>preapproval_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>PreApproval to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param preapproval_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>PreApproval creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, preapproval_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/subscriptions/_preapproval/post/)  # pylint: disable=line-too-long\n\n    Args:\n        preapproval_object (dict): PreApproval to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param preapproval_object must be a Dictionary\n\n    Returns:\n        dict: PreApproval creation response\n    &#34;&#34;&#34;\n    if not isinstance(preapproval_object, dict):\n        raise ValueError(&#34;Param preapproval_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/preapproval&#34;,\n                      data=preapproval_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.PreApproval.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, preapproval_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>preapproval_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The PreApproval ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>PreApproval find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, preapproval_id, request_options=None):\n    &#34;&#34;&#34;Args:\n        preapproval_id (str): The PreApproval ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: PreApproval find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/preapproval/&#34; + str(preapproval_id), request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.PreApproval.search\"><code class=\"name flex\">\n<span>def <span class=\"ident\">search</span></span>(<span>self, filters=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>PreApproval find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def search(self, filters=None, request_options=None):\n    &#34;&#34;&#34;Args:\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: PreApproval find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/preapproval/search&#34;, filters=filters,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.PreApproval.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, preapproval_id, preapproval_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>preapproval_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The PreApproval ID</dd>\n<dt><strong><code>preapproval_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>PreApproval to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param preapproval_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>PreApproval modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, preapproval_id, preapproval_object, request_options=None):\n    &#34;&#34;&#34;Args:\n        preapproval_id (str): The PreApproval ID\n        preapproval_object (dict): PreApproval to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param preapproval_object must be a Dictionary\n\n    Returns:\n        dict: PreApproval modification response\n    &#34;&#34;&#34;\n    if not isinstance(preapproval_object, dict):\n        raise ValueError(&#34;Param preapproval_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/preapproval&#34; + str(preapproval_id),\n                     data=preapproval_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n<dt id=\"mercadopago.resources.Preference\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">Preference</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class will allow you to charge your customers through our web form\nfrom any device in a simple, fast and secure way.</p>\n<p><a href=\"https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-pro/introduction\">Click here for more info</a>\n# pylint: disable=line-too-long</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class Preference(MPBase):\n    &#34;&#34;&#34;\n    This class will allow you to charge your customers through our web form\n    from any device in a simple, fast and secure way.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-pro/introduction)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def get(self, preference_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            preference_id (str): The Preference ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Preference find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/checkout/preferences/&#34; + str(preference_id),\n                         request_options=request_options)\n\n    def update(self, preference_id, preference_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            preference_id (str): The Preference ID\n            preference_object (dict): Values to be modified\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param preference_object must be a Dictionary\n\n        Returns:\n            dict: Preference modification response\n        &#34;&#34;&#34;\n        if not isinstance(preference_object, dict):\n            raise ValueError(&#34;Param preference_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/checkout/preferences/&#34; + str(preference_id), data=preference_object,\n                         request_options=request_options)\n\n    def create(self, preference_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences/post/) # pylint: disable=line-too-long\n\n        Args:\n            preference_object (dict): Preference object to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n                RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param preference_object must be a Dictionary\n\n        Returns:\n            dict: Preference creation response\n        &#34;&#34;&#34;\n        if not isinstance(preference_object, dict):\n            raise ValueError(&#34;Param preference_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/checkout/preferences&#34;, data=preference_object,\n                          request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.Preference.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, preference_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences/post/\">Click here for more info</a> # pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>preference_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Preference object to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of\nRequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.</dd>\n</dl>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param preference_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Preference creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, preference_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences/post/) # pylint: disable=line-too-long\n\n    Args:\n        preference_object (dict): Preference object to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.\n\n    Raises:\n        ValueError: Param preference_object must be a Dictionary\n\n    Returns:\n        dict: Preference creation response\n    &#34;&#34;&#34;\n    if not isinstance(preference_object, dict):\n        raise ValueError(&#34;Param preference_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/checkout/preferences&#34;, data=preference_object,\n                      request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Preference.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, preference_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>preference_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Preference ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Preference find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, preference_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/get/)  # pylint: disable=line-too-long\n\n    Args:\n        preference_id (str): The Preference ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Preference find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/checkout/preferences/&#34; + str(preference_id),\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Preference.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, preference_id, preference_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>preference_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Preference ID</dd>\n<dt><strong><code>preference_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Values to be modified</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param preference_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Preference modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, preference_id, preference_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        preference_id (str): The Preference ID\n        preference_object (dict): Values to be modified\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param preference_object must be a Dictionary\n\n    Returns:\n        dict: Preference modification response\n    &#34;&#34;&#34;\n    if not isinstance(preference_object, dict):\n        raise ValueError(&#34;Param preference_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/checkout/preferences/&#34; + str(preference_id), data=preference_object,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n<dt id=\"mercadopago.resources.Refund\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">Refund</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class will allow you to refund payments created through the Payments class.</p>\n<p>You can refund a payment within 180 days after it was approved.</p>\n<p>You must have sufficient funds in your account in order to successfully refund\nthe payment amount. Otherwise, you will get a 400 Bad Request error.</p>\n<p><a href=\"https://www.mercadopago.com.br/developers/en/guides/manage-account/account/cancellations-and-refunds#bookmark_refunds\">Click here for more info</a>\n# pylint: disable=line-too-long</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class Refund(MPBase):\n    &#34;&#34;&#34;\n    This class will allow you to refund payments created through the Payments class.\n\n    You can refund a payment within 180 days after it was approved.\n\n    You must have sufficient funds in your account in order to successfully refund\n    the payment amount. Otherwise, you will get a 400 Bad Request error.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/manage-account/account/cancellations-and-refunds#bookmark_refunds)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def list_all(self, payment_id, request_options=None):\n        &#34;&#34;&#34;Args:\n            payment_id (str): The Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: List all refunds of a payment\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/payments/&#34; + str(payment_id) + &#34;/refunds&#34;,\n                         request_options=request_options)\n\n    def create(self, payment_id, refund_object=None, request_options=None):\n        &#34;&#34;&#34;Args:\n            payment_id (str): The Payment ID\n            refund_object (dict): Refund to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param refund_object must be a Dictionary\n\n        Returns:\n            dict: Refund creation response\n        &#34;&#34;&#34;\n        if refund_object is not None and not isinstance(refund_object, dict):\n            raise ValueError(&#34;Param refund_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/payments/&#34; + str(payment_id) + &#34;/refunds&#34;,\n                          data=refund_object, request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.Refund.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, payment_id, refund_object=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Payment ID</dd>\n<dt><strong><code>refund_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Refund to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param refund_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Refund creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, payment_id, refund_object=None, request_options=None):\n    &#34;&#34;&#34;Args:\n        payment_id (str): The Payment ID\n        refund_object (dict): Refund to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param refund_object must be a Dictionary\n\n    Returns:\n        dict: Refund creation response\n    &#34;&#34;&#34;\n    if refund_object is not None and not isinstance(refund_object, dict):\n        raise ValueError(&#34;Param refund_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/v1/payments/&#34; + str(payment_id) + &#34;/refunds&#34;,\n                      data=refund_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.Refund.list_all\"><code class=\"name flex\">\n<span>def <span class=\"ident\">list_all</span></span>(<span>self, payment_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Payment ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>List all refunds of a payment</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def list_all(self, payment_id, request_options=None):\n    &#34;&#34;&#34;Args:\n        payment_id (str): The Payment ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: List all refunds of a payment\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/payments/&#34; + str(payment_id) + &#34;/refunds&#34;,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n<dt id=\"mercadopago.resources.RequestOptions\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">RequestOptions</span></span>\n<span>(</span><span>access_token=None, connection_timeout=60.0, custom_headers=None, corporation_id=None, integrator_id=None, platform_id=None, max_retries=3)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This object hold all configurations that will be used in ur REST call.</p>\n<p>All here u can customize as well add params in the requisition header (custom_headers)</p>\n<p>Initialize</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>access_token</code></strong> :&ensp;<code>str</code>, optional</dt>\n<dd>Your User Access Token. Defaults to None.</dd>\n<dt><strong><code>connection_timeout</code></strong> :&ensp;<code>float</code>, optional</dt>\n<dd>Time to timeout the REST call. Defaults to 60.0.</dd>\n<dt><strong><code>custom_headers</code></strong> :&ensp;<code>dict</code>, optional</dt>\n<dd>A Dict with params to be added to the requests params.</dd>\n<dt>Defaults to None.</dt>\n<dt><strong><code>corporation_id</code></strong> :&ensp;<code>str</code>, optional</dt>\n<dd>Your Corporation ID if any. Defaults to None.</dd>\n<dt><strong><code>integrator_id</code></strong> :&ensp;<code>str</code>, optional</dt>\n<dd>Your Integrator ID if any. Defaults to None.</dd>\n<dt><strong><code>platform_id</code></strong> :&ensp;<code>str</code>, optional</dt>\n<dd>Your Platform ID if any. Defaults to None.</dd>\n<dt><strong><code>max_retries</code></strong> :&ensp;<code>int</code>, optional</dt>\n<dd>How many retries must be done in case of fail.</dd>\n</dl>\n<p>Defaults to 3.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param access_token must be a String</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param connection_timeout must be a Float</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param custom_headers must be a Dictionary</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param corporation_id must be a String</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param integrator_id must be a String</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param platform_id must be a String</dd>\n<dt><code>ValueError</code></dt>\n<dd>Param max_retries must be an Integer</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class RequestOptions:  # pylint: disable=too-many-instance-attributes\n\n    &#34;&#34;&#34;This object hold all configurations that will be used in ur REST call.\n\n    All here u can customize as well add params in the requisition header (custom_headers)\n    &#34;&#34;&#34;\n\n    __access_token = None\n    __connection_timeout = None\n    __custom_headers = None\n    __max_retries = None\n    __corporation_id = None\n    __integrator_id = None\n    __platform_id = None\n\n    def __init__(  # pylint: disable=too-many-arguments\n        self,\n        access_token=None,\n        connection_timeout=60.0,\n        custom_headers=None,\n        corporation_id=None,\n        integrator_id=None,\n        platform_id=None,\n        max_retries=3,\n    ):\n        &#34;&#34;&#34;Initialize\n\n        Args:\n            access_token (str, optional): Your User Access Token. Defaults to None.\n            connection_timeout (float, optional): Time to timeout the REST call. Defaults to 60.0.\n            custom_headers (dict, optional): A Dict with params to be added to the requests params.\n            Defaults to None.\n            corporation_id (str, optional): Your Corporation ID if any. Defaults to None.\n            integrator_id (str, optional): Your Integrator ID if any. Defaults to None.\n            platform_id (str, optional): Your Platform ID if any. Defaults to None.\n            max_retries (int, optional): How many retries must be done in case of fail.\n            Defaults to 3.\n\n        Raises:\n            ValueError: Param access_token must be a String\n            ValueError: Param connection_timeout must be a Float\n            ValueError: Param custom_headers must be a Dictionary\n            ValueError: Param corporation_id must be a String\n            ValueError: Param integrator_id must be a String\n            ValueError: Param platform_id must be a String\n            ValueError: Param max_retries must be an Integer\n        &#34;&#34;&#34;\n\n        if access_token is not None:\n            self.access_token = access_token\n        if connection_timeout is not None:\n            self.connection_timeout = connection_timeout\n        if custom_headers is not None:\n            self.custom_headers = custom_headers\n        if max_retries is not None:\n            self.max_retries = max_retries\n        if corporation_id is not None:\n            self.corporation_id = corporation_id\n        if integrator_id is not None:\n            self.integrator_id = integrator_id\n        if platform_id is not None:\n            self.platform_id = platform_id\n\n        self.__config = Config()\n\n    def get_headers(self):\n        &#34;&#34;&#34;\n        Sets the attribute values of headers\n        &#34;&#34;&#34;\n        headers = {&#34;Authorization&#34;: &#34;Bearer &#34; + self.__access_token,\n                   &#34;x-product-id&#34;: self.__config.product_id,\n                   &#34;x-tracking-id&#34;: self.__config.tracking_id,\n                   &#34;x-idempotency-key&#34;: str(uuid.uuid4().int),\n                   &#34;User-Agent&#34;: self.__config.user_agent,\n                   &#34;Accept&#34;: self.__config.mime_json}\n\n        if self.__corporation_id is not None:\n            headers[&#34;x-corporation-id&#34;] = self.__corporation_id\n\n        if self.__integrator_id is not None:\n            headers[&#34;x-integrator-id&#34;] = self.__integrator_id\n\n        if self.__platform_id is not None:\n            headers[&#34;x-platform-id&#34;] = self.__platform_id\n\n        if self.__custom_headers is not None:\n            headers.update(self.__custom_headers)\n\n        return headers\n\n    @property\n    def access_token(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates access_token\n        &#34;&#34;&#34;\n        return self.__access_token\n\n    @access_token.setter\n    def access_token(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param access_token must be a String&#34;)\n        self.__access_token = value\n\n    @property\n    def connection_timeout(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates connection timeout\n        &#34;&#34;&#34;\n        return self.__connection_timeout\n\n    @connection_timeout.setter\n    def connection_timeout(self, value):\n        if not isinstance(value, float):\n            raise ValueError(&#34;Param connection_timeout must be a Float&#34;)\n        self.__connection_timeout = value\n\n    @property\n    def corporation_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates corporation id\n        &#34;&#34;&#34;\n        return self.__corporation_id\n\n    @corporation_id.setter\n    def corporation_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param corporation_id must be a String&#34;)\n        self.__corporation_id = value\n\n    @property\n    def custom_headers(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates custom headers\n        &#34;&#34;&#34;\n        return self.__custom_headers\n\n    @custom_headers.setter\n    def custom_headers(self, value):\n        if not isinstance(value, dict):\n            raise ValueError(&#34;Param custom_headers must be a Dictionary&#34;)\n        self.__custom_headers = value\n\n    @property\n    def integrator_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates integrator id\n        &#34;&#34;&#34;\n        return self.__integrator_id\n\n    @integrator_id.setter\n    def integrator_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param integrator_id must be a String&#34;)\n        self.__integrator_id = value\n\n    @property\n    def max_retries(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates max retries\n        &#34;&#34;&#34;\n        return self.__max_retries\n\n    @max_retries.setter\n    def max_retries(self, value):\n        if not isinstance(value, int):\n            raise ValueError(&#34;Param max_retries must be an Integer&#34;)\n        self.__max_retries = value\n\n    @property\n    def platform_id(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates platform id\n        &#34;&#34;&#34;\n        return self.__platform_id\n\n    @platform_id.setter\n    def platform_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(&#34;Param platform_id must be a String&#34;)\n        self.__platform_id = value</code></pre>\n</details>\n<h3>Instance variables</h3>\n<dl>\n<dt id=\"mercadopago.resources.RequestOptions.access_token\"><code class=\"name\">var <span class=\"ident\">access_token</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates access_token</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef access_token(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates access_token\n    &#34;&#34;&#34;\n    return self.__access_token</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.RequestOptions.connection_timeout\"><code class=\"name\">var <span class=\"ident\">connection_timeout</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates connection timeout</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef connection_timeout(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates connection timeout\n    &#34;&#34;&#34;\n    return self.__connection_timeout</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.RequestOptions.corporation_id\"><code class=\"name\">var <span class=\"ident\">corporation_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates corporation id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef corporation_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates corporation id\n    &#34;&#34;&#34;\n    return self.__corporation_id</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.RequestOptions.custom_headers\"><code class=\"name\">var <span class=\"ident\">custom_headers</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates custom headers</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef custom_headers(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates custom headers\n    &#34;&#34;&#34;\n    return self.__custom_headers</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.RequestOptions.integrator_id\"><code class=\"name\">var <span class=\"ident\">integrator_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates integrator id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef integrator_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates integrator id\n    &#34;&#34;&#34;\n    return self.__integrator_id</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.RequestOptions.max_retries\"><code class=\"name\">var <span class=\"ident\">max_retries</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates max retries</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef max_retries(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates max retries\n    &#34;&#34;&#34;\n    return self.__max_retries</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.RequestOptions.platform_id\"><code class=\"name\">var <span class=\"ident\">platform_id</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates platform id</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef platform_id(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates platform id\n    &#34;&#34;&#34;\n    return self.__platform_id</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.RequestOptions.get_headers\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get_headers</span></span>(<span>self)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute values of headers</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get_headers(self):\n    &#34;&#34;&#34;\n    Sets the attribute values of headers\n    &#34;&#34;&#34;\n    headers = {&#34;Authorization&#34;: &#34;Bearer &#34; + self.__access_token,\n               &#34;x-product-id&#34;: self.__config.product_id,\n               &#34;x-tracking-id&#34;: self.__config.tracking_id,\n               &#34;x-idempotency-key&#34;: str(uuid.uuid4().int),\n               &#34;User-Agent&#34;: self.__config.user_agent,\n               &#34;Accept&#34;: self.__config.mime_json}\n\n    if self.__corporation_id is not None:\n        headers[&#34;x-corporation-id&#34;] = self.__corporation_id\n\n    if self.__integrator_id is not None:\n        headers[&#34;x-integrator-id&#34;] = self.__integrator_id\n\n    if self.__platform_id is not None:\n        headers[&#34;x-platform-id&#34;] = self.__platform_id\n\n    if self.__custom_headers is not None:\n        headers.update(self.__custom_headers)\n\n    return headers</code></pre>\n</details>\n</dd>\n</dl>\n</dd>\n<dt id=\"mercadopago.resources.User\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">User</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Access to Users</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class User(MPBase):\n    &#34;&#34;&#34;\n    Access to Users\n    &#34;&#34;&#34;\n\n    def get(self, request_options=None):\n        &#34;&#34;&#34;Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: User find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/users/me&#34;, request_options=request_options)\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__request_options</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.User.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>User find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, request_options=None):\n    &#34;&#34;&#34;Args:\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: User find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/users/me&#34;, request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago\" href=\"../index.html\">mercadopago</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-submodules\">Sub-modules</a></h3>\n<ul>\n<li><code><a title=\"mercadopago.resources.advanced_payment\" href=\"advanced_payment.html\">mercadopago.resources.advanced_payment</a></code></li>\n<li><code><a title=\"mercadopago.resources.card\" href=\"card.html\">mercadopago.resources.card</a></code></li>\n<li><code><a title=\"mercadopago.resources.card_token\" href=\"card_token.html\">mercadopago.resources.card_token</a></code></li>\n<li><code><a title=\"mercadopago.resources.customer\" href=\"customer.html\">mercadopago.resources.customer</a></code></li>\n<li><code><a title=\"mercadopago.resources.disbursement_refund\" href=\"disbursement_refund.html\">mercadopago.resources.disbursement_refund</a></code></li>\n<li><code><a title=\"mercadopago.resources.identification_type\" href=\"identification_type.html\">mercadopago.resources.identification_type</a></code></li>\n<li><code><a title=\"mercadopago.resources.merchant_order\" href=\"merchant_order.html\">mercadopago.resources.merchant_order</a></code></li>\n<li><code><a title=\"mercadopago.resources.payment\" href=\"payment.html\">mercadopago.resources.payment</a></code></li>\n<li><code><a title=\"mercadopago.resources.payment_methods\" href=\"payment_methods.html\">mercadopago.resources.payment_methods</a></code></li>\n<li><code><a title=\"mercadopago.resources.preapproval\" href=\"preapproval.html\">mercadopago.resources.preapproval</a></code></li>\n<li><code><a title=\"mercadopago.resources.preference\" href=\"preference.html\">mercadopago.resources.preference</a></code></li>\n<li><code><a title=\"mercadopago.resources.refund\" href=\"refund.html\">mercadopago.resources.refund</a></code></li>\n<li><code><a title=\"mercadopago.resources.user\" href=\"user.html\">mercadopago.resources.user</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.AdvancedPayment\" href=\"#mercadopago.resources.AdvancedPayment\">AdvancedPayment</a></code></h4>\n<ul class=\"two-column\">\n<li><code><a title=\"mercadopago.resources.AdvancedPayment.cancel\" href=\"#mercadopago.resources.AdvancedPayment.cancel\">cancel</a></code></li>\n<li><code><a title=\"mercadopago.resources.AdvancedPayment.capture\" href=\"#mercadopago.resources.AdvancedPayment.capture\">capture</a></code></li>\n<li><code><a title=\"mercadopago.resources.AdvancedPayment.create\" href=\"#mercadopago.resources.AdvancedPayment.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.AdvancedPayment.get\" href=\"#mercadopago.resources.AdvancedPayment.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.AdvancedPayment.search\" href=\"#mercadopago.resources.AdvancedPayment.search\">search</a></code></li>\n<li><code><a title=\"mercadopago.resources.AdvancedPayment.update\" href=\"#mercadopago.resources.AdvancedPayment.update\">update</a></code></li>\n<li><code><a title=\"mercadopago.resources.AdvancedPayment.update_release_date\" href=\"#mercadopago.resources.AdvancedPayment.update_release_date\">update_release_date</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.Card\" href=\"#mercadopago.resources.Card\">Card</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.Card.create\" href=\"#mercadopago.resources.Card.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.Card.delete\" href=\"#mercadopago.resources.Card.delete\">delete</a></code></li>\n<li><code><a title=\"mercadopago.resources.Card.get\" href=\"#mercadopago.resources.Card.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.Card.list_all\" href=\"#mercadopago.resources.Card.list_all\">list_all</a></code></li>\n<li><code><a title=\"mercadopago.resources.Card.update\" href=\"#mercadopago.resources.Card.update\">update</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.CardToken\" href=\"#mercadopago.resources.CardToken\">CardToken</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.CardToken.create\" href=\"#mercadopago.resources.CardToken.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.CardToken.get\" href=\"#mercadopago.resources.CardToken.get\">get</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.Customer\" href=\"#mercadopago.resources.Customer\">Customer</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.Customer.create\" href=\"#mercadopago.resources.Customer.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.Customer.delete\" href=\"#mercadopago.resources.Customer.delete\">delete</a></code></li>\n<li><code><a title=\"mercadopago.resources.Customer.get\" href=\"#mercadopago.resources.Customer.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.Customer.search\" href=\"#mercadopago.resources.Customer.search\">search</a></code></li>\n<li><code><a title=\"mercadopago.resources.Customer.update\" href=\"#mercadopago.resources.Customer.update\">update</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.DisbursementRefund\" href=\"#mercadopago.resources.DisbursementRefund\">DisbursementRefund</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.DisbursementRefund.create\" href=\"#mercadopago.resources.DisbursementRefund.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.DisbursementRefund.create_all\" href=\"#mercadopago.resources.DisbursementRefund.create_all\">create_all</a></code></li>\n<li><code><a title=\"mercadopago.resources.DisbursementRefund.list_all\" href=\"#mercadopago.resources.DisbursementRefund.list_all\">list_all</a></code></li>\n<li><code><a title=\"mercadopago.resources.DisbursementRefund.save\" href=\"#mercadopago.resources.DisbursementRefund.save\">save</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.HttpClient\" href=\"#mercadopago.resources.HttpClient\">HttpClient</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.HttpClient.delete\" href=\"#mercadopago.resources.HttpClient.delete\">delete</a></code></li>\n<li><code><a title=\"mercadopago.resources.HttpClient.get\" href=\"#mercadopago.resources.HttpClient.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.HttpClient.post\" href=\"#mercadopago.resources.HttpClient.post\">post</a></code></li>\n<li><code><a title=\"mercadopago.resources.HttpClient.put\" href=\"#mercadopago.resources.HttpClient.put\">put</a></code></li>\n<li><code><a title=\"mercadopago.resources.HttpClient.request\" href=\"#mercadopago.resources.HttpClient.request\">request</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.IdentificationType\" href=\"#mercadopago.resources.IdentificationType\">IdentificationType</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.IdentificationType.list_all\" href=\"#mercadopago.resources.IdentificationType.list_all\">list_all</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.MerchantOrder\" href=\"#mercadopago.resources.MerchantOrder\">MerchantOrder</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.MerchantOrder.create\" href=\"#mercadopago.resources.MerchantOrder.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.MerchantOrder.get\" href=\"#mercadopago.resources.MerchantOrder.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.MerchantOrder.search\" href=\"#mercadopago.resources.MerchantOrder.search\">search</a></code></li>\n<li><code><a title=\"mercadopago.resources.MerchantOrder.update\" href=\"#mercadopago.resources.MerchantOrder.update\">update</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.Payment\" href=\"#mercadopago.resources.Payment\">Payment</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.Payment.create\" href=\"#mercadopago.resources.Payment.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.Payment.get\" href=\"#mercadopago.resources.Payment.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.Payment.search\" href=\"#mercadopago.resources.Payment.search\">search</a></code></li>\n<li><code><a title=\"mercadopago.resources.Payment.update\" href=\"#mercadopago.resources.Payment.update\">update</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.PaymentMethods\" href=\"#mercadopago.resources.PaymentMethods\">PaymentMethods</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.PaymentMethods.list_all\" href=\"#mercadopago.resources.PaymentMethods.list_all\">list_all</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.PreApproval\" href=\"#mercadopago.resources.PreApproval\">PreApproval</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.PreApproval.create\" href=\"#mercadopago.resources.PreApproval.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.PreApproval.get\" href=\"#mercadopago.resources.PreApproval.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.PreApproval.search\" href=\"#mercadopago.resources.PreApproval.search\">search</a></code></li>\n<li><code><a title=\"mercadopago.resources.PreApproval.update\" href=\"#mercadopago.resources.PreApproval.update\">update</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.Preference\" href=\"#mercadopago.resources.Preference\">Preference</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.Preference.create\" href=\"#mercadopago.resources.Preference.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.Preference.get\" href=\"#mercadopago.resources.Preference.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.Preference.update\" href=\"#mercadopago.resources.Preference.update\">update</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.Refund\" href=\"#mercadopago.resources.Refund\">Refund</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.Refund.create\" href=\"#mercadopago.resources.Refund.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.Refund.list_all\" href=\"#mercadopago.resources.Refund.list_all\">list_all</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.RequestOptions\" href=\"#mercadopago.resources.RequestOptions\">RequestOptions</a></code></h4>\n<ul class=\"two-column\">\n<li><code><a title=\"mercadopago.resources.RequestOptions.access_token\" href=\"#mercadopago.resources.RequestOptions.access_token\">access_token</a></code></li>\n<li><code><a title=\"mercadopago.resources.RequestOptions.connection_timeout\" href=\"#mercadopago.resources.RequestOptions.connection_timeout\">connection_timeout</a></code></li>\n<li><code><a title=\"mercadopago.resources.RequestOptions.corporation_id\" href=\"#mercadopago.resources.RequestOptions.corporation_id\">corporation_id</a></code></li>\n<li><code><a title=\"mercadopago.resources.RequestOptions.custom_headers\" href=\"#mercadopago.resources.RequestOptions.custom_headers\">custom_headers</a></code></li>\n<li><code><a title=\"mercadopago.resources.RequestOptions.get_headers\" href=\"#mercadopago.resources.RequestOptions.get_headers\">get_headers</a></code></li>\n<li><code><a title=\"mercadopago.resources.RequestOptions.integrator_id\" href=\"#mercadopago.resources.RequestOptions.integrator_id\">integrator_id</a></code></li>\n<li><code><a title=\"mercadopago.resources.RequestOptions.max_retries\" href=\"#mercadopago.resources.RequestOptions.max_retries\">max_retries</a></code></li>\n<li><code><a title=\"mercadopago.resources.RequestOptions.platform_id\" href=\"#mercadopago.resources.RequestOptions.platform_id\">platform_id</a></code></li>\n</ul>\n</li>\n<li>\n<h4><code><a title=\"mercadopago.resources.User\" href=\"#mercadopago.resources.User\">User</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.User.get\" href=\"#mercadopago.resources.User.get\">get</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/merchant_order.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.merchant_order API documentation</title>\n<meta name=\"description\" content=\"Module: merchant_order\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.merchant_order</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: merchant_order</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: merchant_order\n&#34;&#34;&#34;\nfrom mercadopago.core import MPBase\n\n\nclass MerchantOrder(MPBase):\n    &#34;&#34;&#34;\n    This class will allow you to create and manage your orders. You can attach\n    one or more payments in your merchant order.\n    &#34;&#34;&#34;\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Merchant Order find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/merchant_orders/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, merchan_order_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/)  # pylint: disable=line-too-long\n\n        Args:\n            merchan_order_id (str): The Merchant Order ID\n            request_options (mercadopago.config.request_options, optional): An instance of RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Cards find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/merchant_orders/&#34; + str(merchan_order_id),\n                         request_options=request_options)\n\n    def update(self, merchan_order_id, merchant_order_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            merchan_order_id (str): Merchant Order ID\n            merchant_order_object (dict): Merchant Order object to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param merchant_order_object must be a Dictionary\n\n        Returns:\n            dict: Cards modification response\n        &#34;&#34;&#34;\n        if not isinstance(merchant_order_object, dict):\n            raise ValueError(\n                &#34;Param merchant_order_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/merchant_orders/&#34; + str(merchan_order_id),\n                         data=merchant_order_object, request_options=request_options)\n\n    def create(self, merchant_order_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders/post/)  # pylint: disable=line-too-long\n\n        Args:\n            merchant_order_object (dict): Merchant Order object to be created\n            request_options (mercadopago.config.request_options, optional): An instance of RequestOptions can be pass\n                changing or adding custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param merchant_order_object must be a Dictionary\n\n        Returns:\n            dict: Cards creation response\n        &#34;&#34;&#34;\n        if not isinstance(merchant_order_object, dict):\n            raise ValueError(\n                &#34;Param merchant_order_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/merchant_orders&#34;, data=merchant_order_object,\n                          request_options=request_options)</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.merchant_order.MerchantOrder\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">MerchantOrder</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class will allow you to create and manage your orders. You can attach\none or more payments in your merchant order.</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class MerchantOrder(MPBase):\n    &#34;&#34;&#34;\n    This class will allow you to create and manage your orders. You can attach\n    one or more payments in your merchant order.\n    &#34;&#34;&#34;\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Merchant Order find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/merchant_orders/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, merchan_order_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/)  # pylint: disable=line-too-long\n\n        Args:\n            merchan_order_id (str): The Merchant Order ID\n            request_options (mercadopago.config.request_options, optional): An instance of RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Cards find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/merchant_orders/&#34; + str(merchan_order_id),\n                         request_options=request_options)\n\n    def update(self, merchan_order_id, merchant_order_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            merchan_order_id (str): Merchant Order ID\n            merchant_order_object (dict): Merchant Order object to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param merchant_order_object must be a Dictionary\n\n        Returns:\n            dict: Cards modification response\n        &#34;&#34;&#34;\n        if not isinstance(merchant_order_object, dict):\n            raise ValueError(\n                &#34;Param merchant_order_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/merchant_orders/&#34; + str(merchan_order_id),\n                         data=merchant_order_object, request_options=request_options)\n\n    def create(self, merchant_order_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders/post/)  # pylint: disable=line-too-long\n\n        Args:\n            merchant_order_object (dict): Merchant Order object to be created\n            request_options (mercadopago.config.request_options, optional): An instance of RequestOptions can be pass\n                changing or adding custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param merchant_order_object must be a Dictionary\n\n        Returns:\n            dict: Cards creation response\n        &#34;&#34;&#34;\n        if not isinstance(merchant_order_object, dict):\n            raise ValueError(\n                &#34;Param merchant_order_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/merchant_orders&#34;, data=merchant_order_object,\n                          request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.merchant_order.MerchantOrder.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, merchant_order_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>merchant_order_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Merchant Order object to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of RequestOptions can be pass\nchanging or adding custom options to ur REST call. Defaults to None.</dd>\n</dl>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param merchant_order_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Cards creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, merchant_order_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders/post/)  # pylint: disable=line-too-long\n\n    Args:\n        merchant_order_object (dict): Merchant Order object to be created\n        request_options (mercadopago.config.request_options, optional): An instance of RequestOptions can be pass\n            changing or adding custom options to ur REST call. Defaults to None.\n\n    Raises:\n        ValueError: Param merchant_order_object must be a Dictionary\n\n    Returns:\n        dict: Cards creation response\n    &#34;&#34;&#34;\n    if not isinstance(merchant_order_object, dict):\n        raise ValueError(\n            &#34;Param merchant_order_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/merchant_orders&#34;, data=merchant_order_object,\n                      request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.merchant_order.MerchantOrder.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, merchan_order_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>merchan_order_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Merchant Order ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Cards find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, merchan_order_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/)  # pylint: disable=line-too-long\n\n    Args:\n        merchan_order_id (str): The Merchant Order ID\n        request_options (mercadopago.config.request_options, optional): An instance of RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.\n\n    Returns:\n        dict: Cards find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/merchant_orders/&#34; + str(merchan_order_id),\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.merchant_order.MerchantOrder.search\"><code class=\"name flex\">\n<span>def <span class=\"ident\">search</span></span>(<span>self, filters=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_search/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>filters</code></strong> :&ensp;<code>dict</code></dt>\n<dd>The search filters parameters</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Merchant Order find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def search(self, filters=None, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_search/get/)  # pylint: disable=line-too-long\n\n    Args:\n        filters (dict): The search filters parameters\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Merchant Order find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/merchant_orders/search&#34;, filters=filters,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.merchant_order.MerchantOrder.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, merchan_order_id, merchant_order_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>merchan_order_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>Merchant Order ID</dd>\n<dt><strong><code>merchant_order_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Merchant Order object to be updated</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param merchant_order_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Cards modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, merchan_order_id, merchant_order_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        merchan_order_id (str): Merchant Order ID\n        merchant_order_object (dict): Merchant Order object to be updated\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param merchant_order_object must be a Dictionary\n\n    Returns:\n        dict: Cards modification response\n    &#34;&#34;&#34;\n    if not isinstance(merchant_order_object, dict):\n        raise ValueError(\n            &#34;Param merchant_order_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/merchant_orders/&#34; + str(merchan_order_id),\n                     data=merchant_order_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.merchant_order.MerchantOrder\" href=\"#mercadopago.resources.merchant_order.MerchantOrder\">MerchantOrder</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.merchant_order.MerchantOrder.create\" href=\"#mercadopago.resources.merchant_order.MerchantOrder.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.merchant_order.MerchantOrder.get\" href=\"#mercadopago.resources.merchant_order.MerchantOrder.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.merchant_order.MerchantOrder.search\" href=\"#mercadopago.resources.merchant_order.MerchantOrder.search\">search</a></code></li>\n<li><code><a title=\"mercadopago.resources.merchant_order.MerchantOrder.update\" href=\"#mercadopago.resources.merchant_order.MerchantOrder.update\">update</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/payment.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.payment API documentation</title>\n<meta name=\"description\" content=\"Module: payment\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.payment</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: payment</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: payment\n&#34;&#34;&#34;\nfrom mercadopago.core import MPBase\n\n\nclass Payment(MPBase):\n    &#34;&#34;&#34;\n    This class provides the methods to access the API that will allow you to create\n    your own payment experience on your website.\n\n    From basic to advanced configurations, you control the whole experience.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-api/introduction/)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Payment find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/payments/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, payment_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            payment_id (str): The Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Payment find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/payments/&#34; + str(payment_id), request_options=request_options)\n\n    def create(self, payment_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments/post/)  # pylint: disable=line-too-long\n\n        Args:\n            payment_object (dict): Payment to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param payment_object must be a Dictionary\n\n        Returns:\n            dict: Payment creation response\n        &#34;&#34;&#34;\n        if not isinstance(payment_object, dict):\n            raise ValueError(&#34;Param payment_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/payments&#34;, data=payment_object, request_options=request_options)\n\n    def update(self, payment_id, payment_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/payments/_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            payment_id (str): The Payment ID\n            payment_object (dict): Payment to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param payment_object must be a Dictionary\n\n        Returns:\n            dict: Payment modification response\n        &#34;&#34;&#34;\n        if not isinstance(payment_object, dict):\n            raise ValueError(&#34;Param payment_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/v1/payments/&#34; + str(payment_id), data=payment_object,\n                         request_options=request_options)</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.payment.Payment\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">Payment</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class provides the methods to access the API that will allow you to create\nyour own payment experience on your website.</p>\n<p>From basic to advanced configurations, you control the whole experience.</p>\n<p><a href=\"https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-api/introduction/\">Click here for more info</a>\n# pylint: disable=line-too-long</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class Payment(MPBase):\n    &#34;&#34;&#34;\n    This class provides the methods to access the API that will allow you to create\n    your own payment experience on your website.\n\n    From basic to advanced configurations, you control the whole experience.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-api/introduction/)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Payment find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/payments/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, payment_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            payment_id (str): The Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Payment find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/payments/&#34; + str(payment_id), request_options=request_options)\n\n    def create(self, payment_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments/post/)  # pylint: disable=line-too-long\n\n        Args:\n            payment_object (dict): Payment to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param payment_object must be a Dictionary\n\n        Returns:\n            dict: Payment creation response\n        &#34;&#34;&#34;\n        if not isinstance(payment_object, dict):\n            raise ValueError(&#34;Param payment_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/payments&#34;, data=payment_object, request_options=request_options)\n\n    def update(self, payment_id, payment_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/payments/_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            payment_id (str): The Payment ID\n            payment_object (dict): Payment to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param payment_object must be a Dictionary\n\n        Returns:\n            dict: Payment modification response\n        &#34;&#34;&#34;\n        if not isinstance(payment_object, dict):\n            raise ValueError(&#34;Param payment_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/v1/payments/&#34; + str(payment_id), data=payment_object,\n                         request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.payment.Payment.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, payment_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/payments/_payments/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>payment_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Payment to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param payment_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Payment creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, payment_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments/post/)  # pylint: disable=line-too-long\n\n    Args:\n        payment_object (dict): Payment to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param payment_object must be a Dictionary\n\n    Returns:\n        dict: Payment creation response\n    &#34;&#34;&#34;\n    if not isinstance(payment_object, dict):\n        raise ValueError(&#34;Param payment_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/v1/payments&#34;, data=payment_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.payment.Payment.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, payment_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/payments/_payments_id/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Payment ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Payment find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, payment_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments_id/get/)  # pylint: disable=line-too-long\n\n    Args:\n        payment_id (str): The Payment ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Payment find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/payments/&#34; + str(payment_id), request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.payment.Payment.search\"><code class=\"name flex\">\n<span>def <span class=\"ident\">search</span></span>(<span>self, filters=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/payments/_payments_search/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Payment find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def search(self, filters=None, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments_search/get/)  # pylint: disable=line-too-long\n\n    Args:\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Payment find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/payments/search&#34;, filters=filters,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.payment.Payment.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, payment_id, payment_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com.br/developers/en/reference/payments/_payments_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Payment ID</dd>\n<dt><strong><code>payment_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Payment to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param payment_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Payment modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, payment_id, payment_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/payments/_payments_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        payment_id (str): The Payment ID\n        payment_object (dict): Payment to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param payment_object must be a Dictionary\n\n    Returns:\n        dict: Payment modification response\n    &#34;&#34;&#34;\n    if not isinstance(payment_object, dict):\n        raise ValueError(&#34;Param payment_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/v1/payments/&#34; + str(payment_id), data=payment_object,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.payment.Payment\" href=\"#mercadopago.resources.payment.Payment\">Payment</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.payment.Payment.create\" href=\"#mercadopago.resources.payment.Payment.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.payment.Payment.get\" href=\"#mercadopago.resources.payment.Payment.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.payment.Payment.search\" href=\"#mercadopago.resources.payment.Payment.search\">search</a></code></li>\n<li><code><a title=\"mercadopago.resources.payment.Payment.update\" href=\"#mercadopago.resources.payment.Payment.update\">update</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/payment_methods.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.payment_methods API documentation</title>\n<meta name=\"description\" content=\"Module: payment_methods\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.payment_methods</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: payment_methods</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: payment_methods\n&#34;&#34;&#34;\nfrom mercadopago.core import MPBase\n\n\nclass PaymentMethods(MPBase):\n    &#34;&#34;&#34;\n    Access to Payment Methods\n    &#34;&#34;&#34;\n\n    def list_all(self, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payment_methods/_payment_methods/get/)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Payment Methods find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/payment_methods&#34;, request_options=request_options)\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__request_options</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.payment_methods.PaymentMethods\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">PaymentMethods</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Access to Payment Methods</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class PaymentMethods(MPBase):\n    &#34;&#34;&#34;\n    Access to Payment Methods\n    &#34;&#34;&#34;\n\n    def list_all(self, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payment_methods/_payment_methods/get/)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Payment Methods find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/payment_methods&#34;, request_options=request_options)\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__request_options</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.payment_methods.PaymentMethods.list_all\"><code class=\"name flex\">\n<span>def <span class=\"ident\">list_all</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/payment_methods/_payment_methods/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Payment Methods find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def list_all(self, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/payment_methods/_payment_methods/get/)  # pylint: disable=line-too-long\n\n    Args:\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Payment Methods find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/payment_methods&#34;, request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.payment_methods.PaymentMethods\" href=\"#mercadopago.resources.payment_methods.PaymentMethods\">PaymentMethods</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.payment_methods.PaymentMethods.list_all\" href=\"#mercadopago.resources.payment_methods.PaymentMethods.list_all\">list_all</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/preapproval.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.preapproval API documentation</title>\n<meta name=\"description\" content=\"Module: preapproval\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.preapproval</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: preapproval</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: preapproval\n&#34;&#34;&#34;\nfrom mercadopago.core import MPBase\n\n\nclass PreApproval(MPBase):\n    &#34;&#34;&#34;\n    This class provides the methods to access the API that will allow you to create\n    your own preapproval experience on your website.\n\n    From basic to advanced configurations, you control the whole experience.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/online-payments/subscriptions/introduction)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def __init__(self, request_options, http_client):\n        MPBase.__init__(self, request_options, http_client)\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: PreApproval find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/preapproval/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, preapproval_id, request_options=None):\n        &#34;&#34;&#34;Args:\n            preapproval_id (str): The PreApproval ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: PreApproval find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/preapproval/&#34; + str(preapproval_id), request_options=request_options)\n\n    def create(self, preapproval_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/subscriptions/_preapproval/post/)  # pylint: disable=line-too-long\n\n        Args:\n            preapproval_object (dict): PreApproval to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param preapproval_object must be a Dictionary\n\n        Returns:\n            dict: PreApproval creation response\n        &#34;&#34;&#34;\n        if not isinstance(preapproval_object, dict):\n            raise ValueError(&#34;Param preapproval_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/preapproval&#34;,\n                          data=preapproval_object, request_options=request_options)\n\n    def update(self, preapproval_id, preapproval_object, request_options=None):\n        &#34;&#34;&#34;Args:\n            preapproval_id (str): The PreApproval ID\n            preapproval_object (dict): PreApproval to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param preapproval_object must be a Dictionary\n\n        Returns:\n            dict: PreApproval modification response\n        &#34;&#34;&#34;\n        if not isinstance(preapproval_object, dict):\n            raise ValueError(&#34;Param preapproval_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/preapproval&#34; + str(preapproval_id),\n                         data=preapproval_object, request_options=request_options)</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.preapproval.PreApproval\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">PreApproval</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class provides the methods to access the API that will allow you to create\nyour own preapproval experience on your website.</p>\n<p>From basic to advanced configurations, you control the whole experience.</p>\n<p><a href=\"https://www.mercadopago.com.br/developers/en/guides/online-payments/subscriptions/introduction\">Click here for more info</a>\n# pylint: disable=line-too-long</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class PreApproval(MPBase):\n    &#34;&#34;&#34;\n    This class provides the methods to access the API that will allow you to create\n    your own preapproval experience on your website.\n\n    From basic to advanced configurations, you control the whole experience.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/online-payments/subscriptions/introduction)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def __init__(self, request_options, http_client):\n        MPBase.__init__(self, request_options, http_client)\n\n    def search(self, filters=None, request_options=None):\n        &#34;&#34;&#34;Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: PreApproval find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/preapproval/search&#34;, filters=filters,\n                         request_options=request_options)\n\n    def get(self, preapproval_id, request_options=None):\n        &#34;&#34;&#34;Args:\n            preapproval_id (str): The PreApproval ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: PreApproval find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/preapproval/&#34; + str(preapproval_id), request_options=request_options)\n\n    def create(self, preapproval_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/subscriptions/_preapproval/post/)  # pylint: disable=line-too-long\n\n        Args:\n            preapproval_object (dict): PreApproval to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param preapproval_object must be a Dictionary\n\n        Returns:\n            dict: PreApproval creation response\n        &#34;&#34;&#34;\n        if not isinstance(preapproval_object, dict):\n            raise ValueError(&#34;Param preapproval_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/preapproval&#34;,\n                          data=preapproval_object, request_options=request_options)\n\n    def update(self, preapproval_id, preapproval_object, request_options=None):\n        &#34;&#34;&#34;Args:\n            preapproval_id (str): The PreApproval ID\n            preapproval_object (dict): PreApproval to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param preapproval_object must be a Dictionary\n\n        Returns:\n            dict: PreApproval modification response\n        &#34;&#34;&#34;\n        if not isinstance(preapproval_object, dict):\n            raise ValueError(&#34;Param preapproval_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/preapproval&#34; + str(preapproval_id),\n                         data=preapproval_object, request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.preapproval.PreApproval.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, preapproval_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/subscriptions/_preapproval/post/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>preapproval_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>PreApproval to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param preapproval_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>PreApproval creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, preapproval_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/subscriptions/_preapproval/post/)  # pylint: disable=line-too-long\n\n    Args:\n        preapproval_object (dict): PreApproval to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param preapproval_object must be a Dictionary\n\n    Returns:\n        dict: PreApproval creation response\n    &#34;&#34;&#34;\n    if not isinstance(preapproval_object, dict):\n        raise ValueError(&#34;Param preapproval_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/preapproval&#34;,\n                      data=preapproval_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.preapproval.PreApproval.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, preapproval_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>preapproval_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The PreApproval ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>PreApproval find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, preapproval_id, request_options=None):\n    &#34;&#34;&#34;Args:\n        preapproval_id (str): The PreApproval ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: PreApproval find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/preapproval/&#34; + str(preapproval_id), request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.preapproval.PreApproval.search\"><code class=\"name flex\">\n<span>def <span class=\"ident\">search</span></span>(<span>self, filters=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>PreApproval find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def search(self, filters=None, request_options=None):\n    &#34;&#34;&#34;Args:\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: PreApproval find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/preapproval/search&#34;, filters=filters,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.preapproval.PreApproval.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, preapproval_id, preapproval_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>preapproval_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The PreApproval ID</dd>\n<dt><strong><code>preapproval_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>PreApproval to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param preapproval_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>PreApproval modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, preapproval_id, preapproval_object, request_options=None):\n    &#34;&#34;&#34;Args:\n        preapproval_id (str): The PreApproval ID\n        preapproval_object (dict): PreApproval to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param preapproval_object must be a Dictionary\n\n    Returns:\n        dict: PreApproval modification response\n    &#34;&#34;&#34;\n    if not isinstance(preapproval_object, dict):\n        raise ValueError(&#34;Param preapproval_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/preapproval&#34; + str(preapproval_id),\n                     data=preapproval_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.preapproval.PreApproval\" href=\"#mercadopago.resources.preapproval.PreApproval\">PreApproval</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.preapproval.PreApproval.create\" href=\"#mercadopago.resources.preapproval.PreApproval.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.preapproval.PreApproval.get\" href=\"#mercadopago.resources.preapproval.PreApproval.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.preapproval.PreApproval.search\" href=\"#mercadopago.resources.preapproval.PreApproval.search\">search</a></code></li>\n<li><code><a title=\"mercadopago.resources.preapproval.PreApproval.update\" href=\"#mercadopago.resources.preapproval.PreApproval.update\">update</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/preference.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.preference API documentation</title>\n<meta name=\"description\" content=\"Module: preference\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.preference</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: preference</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: preference\n&#34;&#34;&#34;\nfrom mercadopago.core import MPBase\n\n\nclass Preference(MPBase):\n    &#34;&#34;&#34;\n    This class will allow you to charge your customers through our web form\n    from any device in a simple, fast and secure way.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-pro/introduction)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def get(self, preference_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            preference_id (str): The Preference ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Preference find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/checkout/preferences/&#34; + str(preference_id),\n                         request_options=request_options)\n\n    def update(self, preference_id, preference_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            preference_id (str): The Preference ID\n            preference_object (dict): Values to be modified\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param preference_object must be a Dictionary\n\n        Returns:\n            dict: Preference modification response\n        &#34;&#34;&#34;\n        if not isinstance(preference_object, dict):\n            raise ValueError(&#34;Param preference_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/checkout/preferences/&#34; + str(preference_id), data=preference_object,\n                         request_options=request_options)\n\n    def create(self, preference_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences/post/) # pylint: disable=line-too-long\n\n        Args:\n            preference_object (dict): Preference object to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n                RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param preference_object must be a Dictionary\n\n        Returns:\n            dict: Preference creation response\n        &#34;&#34;&#34;\n        if not isinstance(preference_object, dict):\n            raise ValueError(&#34;Param preference_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/checkout/preferences&#34;, data=preference_object,\n                          request_options=request_options)</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.preference.Preference\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">Preference</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class will allow you to charge your customers through our web form\nfrom any device in a simple, fast and secure way.</p>\n<p><a href=\"https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-pro/introduction\">Click here for more info</a>\n# pylint: disable=line-too-long</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class Preference(MPBase):\n    &#34;&#34;&#34;\n    This class will allow you to charge your customers through our web form\n    from any device in a simple, fast and secure way.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-pro/introduction)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def get(self, preference_id, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            preference_id (str): The Preference ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Preference find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/checkout/preferences/&#34; + str(preference_id),\n                         request_options=request_options)\n\n    def update(self, preference_id, preference_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            preference_id (str): The Preference ID\n            preference_object (dict): Values to be modified\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param preference_object must be a Dictionary\n\n        Returns:\n            dict: Preference modification response\n        &#34;&#34;&#34;\n        if not isinstance(preference_object, dict):\n            raise ValueError(&#34;Param preference_object must be a Dictionary&#34;)\n\n        return self._put(uri=&#34;/checkout/preferences/&#34; + str(preference_id), data=preference_object,\n                         request_options=request_options)\n\n    def create(self, preference_object, request_options=None):\n        &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences/post/) # pylint: disable=line-too-long\n\n        Args:\n            preference_object (dict): Preference object to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n                RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param preference_object must be a Dictionary\n\n        Returns:\n            dict: Preference creation response\n        &#34;&#34;&#34;\n        if not isinstance(preference_object, dict):\n            raise ValueError(&#34;Param preference_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/checkout/preferences&#34;, data=preference_object,\n                          request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.preference.Preference.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, preference_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences/post/\">Click here for more info</a> # pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>preference_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Preference object to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of\nRequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.</dd>\n</dl>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param preference_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Preference creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, preference_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences/post/) # pylint: disable=line-too-long\n\n    Args:\n        preference_object (dict): Preference object to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.\n\n    Raises:\n        ValueError: Param preference_object must be a Dictionary\n\n    Returns:\n        dict: Preference creation response\n    &#34;&#34;&#34;\n    if not isinstance(preference_object, dict):\n        raise ValueError(&#34;Param preference_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/checkout/preferences&#34;, data=preference_object,\n                      request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.preference.Preference.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, preference_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/get/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>preference_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Preference ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Preference find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, preference_id, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/get/)  # pylint: disable=line-too-long\n\n    Args:\n        preference_id (str): The Preference ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: Preference find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/checkout/preferences/&#34; + str(preference_id),\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.preference.Preference.update\"><code class=\"name flex\">\n<span>def <span class=\"ident\">update</span></span>(<span>self, preference_id, preference_object, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p><a href=\"https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/put/\">Click here for more info</a>\n# pylint: disable=line-too-long</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>preference_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Preference ID</dd>\n<dt><strong><code>preference_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Values to be modified</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param preference_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Preference modification response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def update(self, preference_id, preference_object, request_options=None):\n    &#34;&#34;&#34;[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/put/)  # pylint: disable=line-too-long\n\n    Args:\n        preference_id (str): The Preference ID\n        preference_object (dict): Values to be modified\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param preference_object must be a Dictionary\n\n    Returns:\n        dict: Preference modification response\n    &#34;&#34;&#34;\n    if not isinstance(preference_object, dict):\n        raise ValueError(&#34;Param preference_object must be a Dictionary&#34;)\n\n    return self._put(uri=&#34;/checkout/preferences/&#34; + str(preference_id), data=preference_object,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.preference.Preference\" href=\"#mercadopago.resources.preference.Preference\">Preference</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.preference.Preference.create\" href=\"#mercadopago.resources.preference.Preference.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.preference.Preference.get\" href=\"#mercadopago.resources.preference.Preference.get\">get</a></code></li>\n<li><code><a title=\"mercadopago.resources.preference.Preference.update\" href=\"#mercadopago.resources.preference.Preference.update\">update</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/refund.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.refund API documentation</title>\n<meta name=\"description\" content=\"Module: refund\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.refund</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: refund</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: refund\n&#34;&#34;&#34;\nfrom mercadopago.core import MPBase\n\n\nclass Refund(MPBase):\n    &#34;&#34;&#34;\n    This class will allow you to refund payments created through the Payments class.\n\n    You can refund a payment within 180 days after it was approved.\n\n    You must have sufficient funds in your account in order to successfully refund\n    the payment amount. Otherwise, you will get a 400 Bad Request error.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/manage-account/account/cancellations-and-refunds#bookmark_refunds)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def list_all(self, payment_id, request_options=None):\n        &#34;&#34;&#34;Args:\n            payment_id (str): The Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: List all refunds of a payment\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/payments/&#34; + str(payment_id) + &#34;/refunds&#34;,\n                         request_options=request_options)\n\n    def create(self, payment_id, refund_object=None, request_options=None):\n        &#34;&#34;&#34;Args:\n            payment_id (str): The Payment ID\n            refund_object (dict): Refund to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param refund_object must be a Dictionary\n\n        Returns:\n            dict: Refund creation response\n        &#34;&#34;&#34;\n        if refund_object is not None and not isinstance(refund_object, dict):\n            raise ValueError(&#34;Param refund_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/payments/&#34; + str(payment_id) + &#34;/refunds&#34;,\n                          data=refund_object, request_options=request_options)</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.refund.Refund\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">Refund</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>This class will allow you to refund payments created through the Payments class.</p>\n<p>You can refund a payment within 180 days after it was approved.</p>\n<p>You must have sufficient funds in your account in order to successfully refund\nthe payment amount. Otherwise, you will get a 400 Bad Request error.</p>\n<p><a href=\"https://www.mercadopago.com.br/developers/en/guides/manage-account/account/cancellations-and-refunds#bookmark_refunds\">Click here for more info</a>\n# pylint: disable=line-too-long</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class Refund(MPBase):\n    &#34;&#34;&#34;\n    This class will allow you to refund payments created through the Payments class.\n\n    You can refund a payment within 180 days after it was approved.\n\n    You must have sufficient funds in your account in order to successfully refund\n    the payment amount. Otherwise, you will get a 400 Bad Request error.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/manage-account/account/cancellations-and-refunds#bookmark_refunds)  # pylint: disable=line-too-long\n    &#34;&#34;&#34;\n\n    def list_all(self, payment_id, request_options=None):\n        &#34;&#34;&#34;Args:\n            payment_id (str): The Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: List all refunds of a payment\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/v1/payments/&#34; + str(payment_id) + &#34;/refunds&#34;,\n                         request_options=request_options)\n\n    def create(self, payment_id, refund_object=None, request_options=None):\n        &#34;&#34;&#34;Args:\n            payment_id (str): The Payment ID\n            refund_object (dict): Refund to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param refund_object must be a Dictionary\n\n        Returns:\n            dict: Refund creation response\n        &#34;&#34;&#34;\n        if refund_object is not None and not isinstance(refund_object, dict):\n            raise ValueError(&#34;Param refund_object must be a Dictionary&#34;)\n\n        return self._post(uri=&#34;/v1/payments/&#34; + str(payment_id) + &#34;/refunds&#34;,\n                          data=refund_object, request_options=request_options)</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.refund.Refund.create\"><code class=\"name flex\">\n<span>def <span class=\"ident\">create</span></span>(<span>self, payment_id, refund_object=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Payment ID</dd>\n<dt><strong><code>refund_object</code></strong> :&ensp;<code>dict</code></dt>\n<dd>Refund to be created</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param refund_object must be a Dictionary</dd>\n</dl>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>Refund creation response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def create(self, payment_id, refund_object=None, request_options=None):\n    &#34;&#34;&#34;Args:\n        payment_id (str): The Payment ID\n        refund_object (dict): Refund to be created\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Raises:\n        ValueError: Param refund_object must be a Dictionary\n\n    Returns:\n        dict: Refund creation response\n    &#34;&#34;&#34;\n    if refund_object is not None and not isinstance(refund_object, dict):\n        raise ValueError(&#34;Param refund_object must be a Dictionary&#34;)\n\n    return self._post(uri=&#34;/v1/payments/&#34; + str(payment_id) + &#34;/refunds&#34;,\n                      data=refund_object, request_options=request_options)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.resources.refund.Refund.list_all\"><code class=\"name flex\">\n<span>def <span class=\"ident\">list_all</span></span>(<span>self, payment_id, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>payment_id</code></strong> :&ensp;<code>str</code></dt>\n<dd>The Payment ID</dd>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>List all refunds of a payment</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def list_all(self, payment_id, request_options=None):\n    &#34;&#34;&#34;Args:\n        payment_id (str): The Payment ID\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: List all refunds of a payment\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/v1/payments/&#34; + str(payment_id) + &#34;/refunds&#34;,\n                     request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.refund.Refund\" href=\"#mercadopago.resources.refund.Refund\">Refund</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.refund.Refund.create\" href=\"#mercadopago.resources.refund.Refund.create\">create</a></code></li>\n<li><code><a title=\"mercadopago.resources.refund.Refund.list_all\" href=\"#mercadopago.resources.refund.Refund.list_all\">list_all</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/resources/user.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.resources.user API documentation</title>\n<meta name=\"description\" content=\"Module: user\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.resources.user</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: user</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\n    Module: user\n&#34;&#34;&#34;\nfrom mercadopago.core import MPBase\n\n\nclass User(MPBase):\n    &#34;&#34;&#34;\n    Access to Users\n    &#34;&#34;&#34;\n\n    def get(self, request_options=None):\n        &#34;&#34;&#34;Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: User find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/users/me&#34;, request_options=request_options)\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__request_options</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.resources.user.User\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">User</span></span>\n<span>(</span><span>request_options, http_client)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Access to Users</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class User(MPBase):\n    &#34;&#34;&#34;\n    Access to Users\n    &#34;&#34;&#34;\n\n    def get(self, request_options=None):\n        &#34;&#34;&#34;Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: User find response\n        &#34;&#34;&#34;\n        return self._get(uri=&#34;/users/me&#34;, request_options=request_options)\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return self.__request_options</code></pre>\n</details>\n<h3>Ancestors</h3>\n<ul class=\"hlist\">\n<li><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></li>\n</ul>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.resources.user.User.get\"><code class=\"name flex\">\n<span>def <span class=\"ident\">get</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><h2 id=\"args\">Args</h2>\n<dl>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"../config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance of</dd>\n</dl>\n<p>RequestOptions can be pass changing or adding custom options to ur REST call.\nDefaults to None.</p>\n<h2 id=\"returns\">Returns</h2>\n<dl>\n<dt><code>dict</code></dt>\n<dd>User find response</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def get(self, request_options=None):\n    &#34;&#34;&#34;Args:\n        request_options (mercadopago.config.request_options, optional): An instance of\n        RequestOptions can be pass changing or adding custom options to ur REST call.\n        Defaults to None.\n\n    Returns:\n        dict: User find response\n    &#34;&#34;&#34;\n    return self._get(uri=&#34;/users/me&#34;, request_options=request_options)</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Inherited members</h3>\n<ul class=\"hlist\">\n<li><code><b><a title=\"mercadopago.core.mp_base.MPBase\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase\">MPBase</a></b></code>:\n<ul class=\"hlist\">\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.config\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.config\">config</a></code></li>\n<li><code><a title=\"mercadopago.core.mp_base.MPBase.request_options\" href=\"../core/mp_base.html#mercadopago.core.mp_base.MPBase.request_options\">request_options</a></code></li>\n</ul>\n</li>\n</ul>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago.resources\" href=\"index.html\">mercadopago.resources</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.resources.user.User\" href=\"#mercadopago.resources.user.User\">User</a></code></h4>\n<ul class=\"\">\n<li><code><a title=\"mercadopago.resources.user.User.get\" href=\"#mercadopago.resources.user.User.get\">get</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "docs/sdk.html",
    "content": "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimum-scale=1\" />\n<meta name=\"generator\" content=\"pdoc 0.10.0\" />\n<title>mercadopago.sdk API documentation</title>\n<meta name=\"description\" content=\"Module: sdk\" />\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/sanitize.min.css\" integrity=\"sha256-PK9q560IAAa6WVRRh76LtCaI8pjTJ2z11v0miyNNjrs=\" crossorigin>\n<link rel=\"preload stylesheet\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/10up-sanitize.css/11.0.1/typography.min.css\" integrity=\"sha256-7l/o7C8jubJiy74VsKTidCy1yBkRtiUGbVkYBylBqUg=\" crossorigin>\n<link rel=\"stylesheet preload\" as=\"style\" href=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/github.min.css\" crossorigin>\n<style>:root{--highlight-color:#fe9}.flex{display:flex !important}body{line-height:1.5em}#content{padding:20px}#sidebar{padding:30px;overflow:hidden}#sidebar > *:last-child{margin-bottom:2cm}.http-server-breadcrumbs{font-size:130%;margin:0 0 15px 0}#footer{font-size:.75em;padding:5px 30px;border-top:1px solid #ddd;text-align:right}#footer p{margin:0 0 0 1em;display:inline-block}#footer p:last-child{margin-right:30px}h1,h2,h3,h4,h5{font-weight:300}h1{font-size:2.5em;line-height:1.1em}h2{font-size:1.75em;margin:1em 0 .50em 0}h3{font-size:1.4em;margin:25px 0 10px 0}h4{margin:0;font-size:105%}h1:target,h2:target,h3:target,h4:target,h5:target,h6:target{background:var(--highlight-color);padding:.2em 0}a{color:#058;text-decoration:none;transition:color .3s ease-in-out}a:hover{color:#e82}.title code{font-weight:bold}h2[id^=\"header-\"]{margin-top:2em}.ident{color:#900}pre code{background:#f8f8f8;font-size:.8em;line-height:1.4em}code{background:#f2f2f1;padding:1px 4px;overflow-wrap:break-word}h1 code{background:transparent}pre{background:#f8f8f8;border:0;border-top:1px solid #ccc;border-bottom:1px solid #ccc;margin:1em 0;padding:1ex}#http-server-module-list{display:flex;flex-flow:column}#http-server-module-list div{display:flex}#http-server-module-list dt{min-width:10%}#http-server-module-list p{margin-top:0}.toc ul,#index{list-style-type:none;margin:0;padding:0}#index code{background:transparent}#index h3{border-bottom:1px solid #ddd}#index ul{padding:0}#index h4{margin-top:.6em;font-weight:bold}@media (min-width:200ex){#index .two-column{column-count:2}}@media (min-width:300ex){#index .two-column{column-count:3}}dl{margin-bottom:2em}dl dl:last-child{margin-bottom:4em}dd{margin:0 0 1em 3em}#header-classes + dl > dd{margin-bottom:3em}dd dd{margin-left:2em}dd p{margin:10px 0}.name{background:#eee;font-weight:bold;font-size:.85em;padding:5px 10px;display:inline-block;min-width:40%}.name:hover{background:#e0e0e0}dt:target .name{background:var(--highlight-color)}.name > span:first-child{white-space:nowrap}.name.class > span:nth-child(2){margin-left:.4em}.inherited{color:#999;border-left:5px solid #eee;padding-left:1em}.inheritance em{font-style:normal;font-weight:bold}.desc h2{font-weight:400;font-size:1.25em}.desc h3{font-size:1em}.desc dt code{background:inherit}.source summary,.git-link-div{color:#666;text-align:right;font-weight:400;font-size:.8em;text-transform:uppercase}.source summary > *{white-space:nowrap;cursor:pointer}.git-link{color:inherit;margin-left:1em}.source pre{max-height:500px;overflow:auto;margin:0}.source pre code{font-size:12px;overflow:visible}.hlist{list-style:none}.hlist li{display:inline}.hlist li:after{content:',\\2002'}.hlist li:last-child:after{content:none}.hlist .hlist{display:inline;padding-left:1em}img{max-width:100%}td{padding:0 .5em}.admonition{padding:.1em .5em;margin-bottom:1em}.admonition-title{font-weight:bold}.admonition.note,.admonition.info,.admonition.important{background:#aef}.admonition.todo,.admonition.versionadded,.admonition.tip,.admonition.hint{background:#dfd}.admonition.warning,.admonition.versionchanged,.admonition.deprecated{background:#fd4}.admonition.error,.admonition.danger,.admonition.caution{background:lightpink}</style>\n<style media=\"screen and (min-width: 700px)\">@media screen and (min-width:700px){#sidebar{width:30%;height:100vh;overflow:auto;position:sticky;top:0}#content{width:70%;max-width:100ch;padding:3em 4em;border-left:1px solid #ddd}pre code{font-size:1em}.item .name{font-size:1em}main{display:flex;flex-direction:row-reverse;justify-content:flex-end}.toc ul ul,#index ul{padding-left:1.5em}.toc > ul > li{margin-top:.5em}}</style>\n<style media=\"print\">@media print{#sidebar h1{page-break-before:always}.source{display:none}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a[href]:after{content:\" (\" attr(href) \")\";font-size:90%}a[href][title]:after{content:none}abbr[title]:after{content:\" (\" attr(title) \")\"}.ir a:after,a[href^=\"javascript:\"]:after,a[href^=\"#\"]:after{content:\"\"}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h1,h2,h3,h4,h5,h6{page-break-after:avoid}}</style>\n<script defer src=\"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js\" integrity=\"sha256-Uv3H6lx7dJmRfRvH8TH6kJD1TSK1aFcwgx+mdg3epi8=\" crossorigin></script>\n<script>window.addEventListener('DOMContentLoaded', () => hljs.initHighlighting())</script>\n</head>\n<body>\n<main>\n<article id=\"content\">\n<header>\n<h1 class=\"title\">Module <code>mercadopago.sdk</code></h1>\n</header>\n<section id=\"section-intro\">\n<p>Module: sdk</p>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">&#34;&#34;&#34;\nModule: sdk\n&#34;&#34;&#34;\nfrom mercadopago.config import RequestOptions\nfrom mercadopago.http import HttpClient\nfrom mercadopago.resources import (\n    AdvancedPayment,\n    Card,\n    CardToken,\n    Customer,\n    DisbursementRefund,\n    IdentificationType,\n    MerchantOrder,\n    Payment,\n    PaymentMethods,\n    PreApproval,\n    Preference,\n    Refund,\n    User,\n)\n\n\nclass SDK:\n    &#34;&#34;&#34;Generate access to all API&#39; modules, which are:\n\n        1. Advanced Payment\n        2. Card Token\n        3. Card\n        4. Customer\n        5. Disbursement Refund\n        6. Identification Type\n        7. Merchant Order\n        8. Payment Methods\n        9. Payment\n        10. Preapproval\n        11. Preference\n        12. Refund\n        13. User\n    &#34;&#34;&#34;\n\n    def __init__(\n        self,\n        access_token,\n        http_client=None,\n        request_options=None,\n    ):\n        &#34;&#34;&#34;Construct ur SDK Object to have access to all APIs modules.\n        Args:\n            [Click here for more info](https://www.mercadopago.com/mlb/account/credentials)\n            http_client (mercadopago.http.http_client, optional): An implementation of\n            HttpClient can be pass to be used to make the REST calls. Defaults to None.\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            calls. Defaults to None.\n        Raises:\n            ValueError: Param request_options must be a RequestOptions Object\n        &#34;&#34;&#34;\n\n        self.http_client = http_client\n        if http_client is None:\n            self.http_client = HttpClient()\n\n        self.request_options = request_options\n        if request_options is None:\n            self.request_options = RequestOptions()\n\n        self.request_options.access_token = access_token\n\n    def advanced_payment(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return AdvancedPayment(request_options is not None and request_options\n                               or self.request_options, self.http_client)\n\n    def card_token(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return CardToken(request_options is not None and request_options\n                         or self.request_options, self.http_client)\n\n    def card(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Card(request_options is not None and request_options\n                    or self.request_options, self.http_client)\n\n    def customer(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Customer(request_options is not None and request_options\n                        or self.request_options, self.http_client)\n\n    def disbursement_refund(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return DisbursementRefund(request_options is not None and request_options\n                                  or self.request_options, self.http_client)\n\n    def identification_type(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return IdentificationType(request_options is not None and request_options\n                                  or self.request_options, self.http_client)\n\n    def merchant_order(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return MerchantOrder(request_options is not None and request_options\n                             or self.request_options, self.http_client)\n\n    def payment(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Payment(request_options is not None and request_options\n                       or self.request_options, self.http_client)\n\n    def payment_methods(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return PaymentMethods(request_options is not None and request_options\n                              or self.request_options, self.http_client)\n\n    def preapproval(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return PreApproval(request_options is not None and request_options\n                           or self.request_options, self.http_client)\n\n    def preference(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Preference(request_options is not None and request_options\n                          or self.request_options, self.http_client)\n\n    def refund(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Refund(request_options is not None and request_options\n                      or self.request_options, self.http_client)\n\n    def user(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return User(request_options is not None and request_options\n                    or self.request_options, self.http_client)\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates request_options\n        &#34;&#34;&#34;\n        return self.__request_options\n\n    @request_options.setter\n    def request_options(self, value):\n        if value is not None and not isinstance(value, RequestOptions):\n            raise ValueError(\n                &#34;Param request_options must be a RequestOptions Object&#34;)\n        self.__request_options = value\n\n    @property\n    def http_client(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates http_client\n        &#34;&#34;&#34;\n        return self.__http_client\n\n    @http_client.setter\n    def http_client(self, value):\n        if value is not None and not isinstance(value, HttpClient):\n            raise ValueError(&#34;Param http_client must be a HttpClient Object&#34;)\n        self.__http_client = value</code></pre>\n</details>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n</section>\n<section>\n<h2 class=\"section-title\" id=\"header-classes\">Classes</h2>\n<dl>\n<dt id=\"mercadopago.sdk.SDK\"><code class=\"flex name class\">\n<span>class <span class=\"ident\">SDK</span></span>\n<span>(</span><span>access_token, http_client=None, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Generate access to all API' modules, which are:</p>\n<ol>\n<li>Advanced Payment</li>\n<li>Card Token</li>\n<li>Card</li>\n<li>Customer</li>\n<li>Disbursement Refund</li>\n<li>Identification Type</li>\n<li>Merchant Order</li>\n<li>Payment Methods</li>\n<li>Payment</li>\n<li>Preapproval</li>\n<li>Preference</li>\n<li>Refund</li>\n<li>User</li>\n</ol>\n<p>Construct ur SDK Object to have access to all APIs modules.</p>\n<h2 id=\"args\">Args</h2>\n<dl>\n<dt><a href=\"https://www.mercadopago.com/mlb/account/credentials\">Click here for more info</a></dt>\n<dt><strong><code>http_client</code></strong> :&ensp;<code><a title=\"mercadopago.http.http_client\" href=\"http/http_client.html\">mercadopago.http.http_client</a></code>, optional</dt>\n<dd>An implementation of</dd>\n<dt>HttpClient can be pass to be used to make the REST calls. Defaults to None.</dt>\n<dt><strong><code>request_options</code></strong> :&ensp;<code><a title=\"mercadopago.config.request_options\" href=\"config/request_options.html\">mercadopago.config.request_options</a></code>, optional</dt>\n<dd>An instance</dd>\n</dl>\n<p>of RequestOptions can be pass changing or adding custom options to ur REST\ncalls. Defaults to None.</p>\n<h2 id=\"raises\">Raises</h2>\n<dl>\n<dt><code>ValueError</code></dt>\n<dd>Param request_options must be a RequestOptions Object</dd>\n</dl></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">class SDK:\n    &#34;&#34;&#34;Generate access to all API&#39; modules, which are:\n\n        1. Advanced Payment\n        2. Card Token\n        3. Card\n        4. Customer\n        5. Disbursement Refund\n        6. Identification Type\n        7. Merchant Order\n        8. Payment Methods\n        9. Payment\n        10. Preapproval\n        11. Preference\n        12. Refund\n        13. User\n    &#34;&#34;&#34;\n\n    def __init__(\n        self,\n        access_token,\n        http_client=None,\n        request_options=None,\n    ):\n        &#34;&#34;&#34;Construct ur SDK Object to have access to all APIs modules.\n        Args:\n            [Click here for more info](https://www.mercadopago.com/mlb/account/credentials)\n            http_client (mercadopago.http.http_client, optional): An implementation of\n            HttpClient can be pass to be used to make the REST calls. Defaults to None.\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            calls. Defaults to None.\n        Raises:\n            ValueError: Param request_options must be a RequestOptions Object\n        &#34;&#34;&#34;\n\n        self.http_client = http_client\n        if http_client is None:\n            self.http_client = HttpClient()\n\n        self.request_options = request_options\n        if request_options is None:\n            self.request_options = RequestOptions()\n\n        self.request_options.access_token = access_token\n\n    def advanced_payment(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return AdvancedPayment(request_options is not None and request_options\n                               or self.request_options, self.http_client)\n\n    def card_token(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return CardToken(request_options is not None and request_options\n                         or self.request_options, self.http_client)\n\n    def card(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Card(request_options is not None and request_options\n                    or self.request_options, self.http_client)\n\n    def customer(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Customer(request_options is not None and request_options\n                        or self.request_options, self.http_client)\n\n    def disbursement_refund(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return DisbursementRefund(request_options is not None and request_options\n                                  or self.request_options, self.http_client)\n\n    def identification_type(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return IdentificationType(request_options is not None and request_options\n                                  or self.request_options, self.http_client)\n\n    def merchant_order(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return MerchantOrder(request_options is not None and request_options\n                             or self.request_options, self.http_client)\n\n    def payment(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Payment(request_options is not None and request_options\n                       or self.request_options, self.http_client)\n\n    def payment_methods(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return PaymentMethods(request_options is not None and request_options\n                              or self.request_options, self.http_client)\n\n    def preapproval(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return PreApproval(request_options is not None and request_options\n                           or self.request_options, self.http_client)\n\n    def preference(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Preference(request_options is not None and request_options\n                          or self.request_options, self.http_client)\n\n    def refund(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return Refund(request_options is not None and request_options\n                      or self.request_options, self.http_client)\n\n    def user(self, request_options=None):\n        &#34;&#34;&#34;\n        Returns the attribute value of the function\n        &#34;&#34;&#34;\n        return User(request_options is not None and request_options\n                    or self.request_options, self.http_client)\n\n    @property\n    def request_options(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates request_options\n        &#34;&#34;&#34;\n        return self.__request_options\n\n    @request_options.setter\n    def request_options(self, value):\n        if value is not None and not isinstance(value, RequestOptions):\n            raise ValueError(\n                &#34;Param request_options must be a RequestOptions Object&#34;)\n        self.__request_options = value\n\n    @property\n    def http_client(self):\n        &#34;&#34;&#34;\n        Sets the attribute value and validates http_client\n        &#34;&#34;&#34;\n        return self.__http_client\n\n    @http_client.setter\n    def http_client(self, value):\n        if value is not None and not isinstance(value, HttpClient):\n            raise ValueError(&#34;Param http_client must be a HttpClient Object&#34;)\n        self.__http_client = value</code></pre>\n</details>\n<h3>Instance variables</h3>\n<dl>\n<dt id=\"mercadopago.sdk.SDK.http_client\"><code class=\"name\">var <span class=\"ident\">http_client</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates http_client</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef http_client(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates http_client\n    &#34;&#34;&#34;\n    return self.__http_client</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.request_options\"><code class=\"name\">var <span class=\"ident\">request_options</span></code></dt>\n<dd>\n<div class=\"desc\"><p>Sets the attribute value and validates request_options</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">@property\ndef request_options(self):\n    &#34;&#34;&#34;\n    Sets the attribute value and validates request_options\n    &#34;&#34;&#34;\n    return self.__request_options</code></pre>\n</details>\n</dd>\n</dl>\n<h3>Methods</h3>\n<dl>\n<dt id=\"mercadopago.sdk.SDK.advanced_payment\"><code class=\"name flex\">\n<span>def <span class=\"ident\">advanced_payment</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def advanced_payment(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return AdvancedPayment(request_options is not None and request_options\n                           or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.card\"><code class=\"name flex\">\n<span>def <span class=\"ident\">card</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def card(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return Card(request_options is not None and request_options\n                or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.card_token\"><code class=\"name flex\">\n<span>def <span class=\"ident\">card_token</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def card_token(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return CardToken(request_options is not None and request_options\n                     or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.customer\"><code class=\"name flex\">\n<span>def <span class=\"ident\">customer</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def customer(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return Customer(request_options is not None and request_options\n                    or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.disbursement_refund\"><code class=\"name flex\">\n<span>def <span class=\"ident\">disbursement_refund</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def disbursement_refund(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return DisbursementRefund(request_options is not None and request_options\n                              or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.identification_type\"><code class=\"name flex\">\n<span>def <span class=\"ident\">identification_type</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def identification_type(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return IdentificationType(request_options is not None and request_options\n                              or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.merchant_order\"><code class=\"name flex\">\n<span>def <span class=\"ident\">merchant_order</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def merchant_order(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return MerchantOrder(request_options is not None and request_options\n                         or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.payment\"><code class=\"name flex\">\n<span>def <span class=\"ident\">payment</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def payment(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return Payment(request_options is not None and request_options\n                   or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.payment_methods\"><code class=\"name flex\">\n<span>def <span class=\"ident\">payment_methods</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def payment_methods(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return PaymentMethods(request_options is not None and request_options\n                          or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.preapproval\"><code class=\"name flex\">\n<span>def <span class=\"ident\">preapproval</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def preapproval(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return PreApproval(request_options is not None and request_options\n                       or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.preference\"><code class=\"name flex\">\n<span>def <span class=\"ident\">preference</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def preference(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return Preference(request_options is not None and request_options\n                      or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.refund\"><code class=\"name flex\">\n<span>def <span class=\"ident\">refund</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def refund(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return Refund(request_options is not None and request_options\n                  or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n<dt id=\"mercadopago.sdk.SDK.user\"><code class=\"name flex\">\n<span>def <span class=\"ident\">user</span></span>(<span>self, request_options=None)</span>\n</code></dt>\n<dd>\n<div class=\"desc\"><p>Returns the attribute value of the function</p></div>\n<details class=\"source\">\n<summary>\n<span>Expand source code</span>\n</summary>\n<pre><code class=\"python\">def user(self, request_options=None):\n    &#34;&#34;&#34;\n    Returns the attribute value of the function\n    &#34;&#34;&#34;\n    return User(request_options is not None and request_options\n                or self.request_options, self.http_client)</code></pre>\n</details>\n</dd>\n</dl>\n</dd>\n</dl>\n</section>\n</article>\n<nav id=\"sidebar\">\n<h1>Index</h1>\n<div class=\"toc\">\n<ul></ul>\n</div>\n<ul id=\"index\">\n<li><h3>Super-module</h3>\n<ul>\n<li><code><a title=\"mercadopago\" href=\"index.html\">mercadopago</a></code></li>\n</ul>\n</li>\n<li><h3><a href=\"#header-classes\">Classes</a></h3>\n<ul>\n<li>\n<h4><code><a title=\"mercadopago.sdk.SDK\" href=\"#mercadopago.sdk.SDK\">SDK</a></code></h4>\n<ul class=\"two-column\">\n<li><code><a title=\"mercadopago.sdk.SDK.advanced_payment\" href=\"#mercadopago.sdk.SDK.advanced_payment\">advanced_payment</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.card\" href=\"#mercadopago.sdk.SDK.card\">card</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.card_token\" href=\"#mercadopago.sdk.SDK.card_token\">card_token</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.customer\" href=\"#mercadopago.sdk.SDK.customer\">customer</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.disbursement_refund\" href=\"#mercadopago.sdk.SDK.disbursement_refund\">disbursement_refund</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.http_client\" href=\"#mercadopago.sdk.SDK.http_client\">http_client</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.identification_type\" href=\"#mercadopago.sdk.SDK.identification_type\">identification_type</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.merchant_order\" href=\"#mercadopago.sdk.SDK.merchant_order\">merchant_order</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.payment\" href=\"#mercadopago.sdk.SDK.payment\">payment</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.payment_methods\" href=\"#mercadopago.sdk.SDK.payment_methods\">payment_methods</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.preapproval\" href=\"#mercadopago.sdk.SDK.preapproval\">preapproval</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.preference\" href=\"#mercadopago.sdk.SDK.preference\">preference</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.refund\" href=\"#mercadopago.sdk.SDK.refund\">refund</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.request_options\" href=\"#mercadopago.sdk.SDK.request_options\">request_options</a></code></li>\n<li><code><a title=\"mercadopago.sdk.SDK.user\" href=\"#mercadopago.sdk.SDK.user\">user</a></code></li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</nav>\n</main>\n<footer id=\"footer\">\n<p>Generated by <a href=\"https://pdoc3.github.io/pdoc\" title=\"pdoc: Python API documentation generator\"><cite>pdoc</cite> 0.10.0</a>.</p>\n</footer>\n</body>\n</html>"
  },
  {
    "path": "mercadopago/__init__.py",
    "content": "\"\"\"\nModule: mercadopago/__init__.py\n\"\"\"\nfrom mercadopago.sdk import SDK\n\n\n__all__ = (\n    'SDK',\n)\n"
  },
  {
    "path": "mercadopago/config/__init__.py",
    "content": "\"\"\"\nModule: config/__init__.py\n\"\"\"\nfrom mercadopago.config.config import Config\nfrom mercadopago.config.request_options import RequestOptions\n\n\n__all__ = (\n    'Config',\n    'RequestOptions',\n)\n"
  },
  {
    "path": "mercadopago/config/config.py",
    "content": "\"\"\"\nModule: config\n\"\"\"\nimport platform\n\n\nclass Config:\n    \"\"\"\n    General infos of your SDK\n    \"\"\"\n\n    def __init__(self):\n        self.__version = \"2.4.0\"\n        self.__user_agent = \"MercadoPago Python SDK v\" + self.__version\n        self.__product_id = \"bc32bpftrpp001u8nhlg\"\n        self.__tracking_id = \"platform:\" + platform.python_version()\n        self.__tracking_id += \",type:SDK\" + self.__version + \",so;\"\n\n    __api_base_url = \"https://api.mercadopago.com\"\n    __mime_json = \"application/json\"\n    __mime_form = \"application/x-www-form-urlencoded\"\n\n    @property\n    def version(self):\n        \"\"\"\n        Sets the attribute value of version\n        \"\"\"\n        return self.__version\n\n    @property\n    def user_agent(self):\n        \"\"\"\n        Sets the attribute value of user agent\n        \"\"\"\n        return self.__user_agent\n\n    @property\n    def product_id(self):\n        \"\"\"\n        Sets the attribute value of product id\n        \"\"\"\n        return self.__product_id\n\n    @property\n    def tracking_id(self):\n        \"\"\"\n        Sets the attribute value of tracking id\n        \"\"\"\n        return self.__tracking_id\n\n    @property\n    def api_base_url(self):\n        \"\"\"\n        Sets the attribute value of api base url\n        \"\"\"\n        return self.__api_base_url\n\n    @property\n    def mime_json(self):\n        \"\"\"\n        Sets the attribute value of mime json\n        \"\"\"\n        return self.__mime_json\n\n    @property\n    def mime_form(self):\n        \"\"\"\n        Sets the attribute value of mime form\n        \"\"\"\n        return self.__mime_form\n"
  },
  {
    "path": "mercadopago/config/request_options.py",
    "content": "\"\"\"\nModule: request_options\n\"\"\"\nimport uuid\n\nfrom .config import Config\n\n\nclass RequestOptions:  # pylint: disable=too-many-instance-attributes\n\n    \"\"\"This object hold all configurations that will be used in ur REST call.\n\n    All here u can customize as well add params in the requisition header (custom_headers)\n    \"\"\"\n\n    __access_token = None\n    __connection_timeout = None\n    __custom_headers = None\n    __max_retries = None\n    __corporation_id = None\n    __integrator_id = None\n    __platform_id = None\n\n    def __init__(  # pylint: disable=too-many-positional-arguments\n    # pylint: disable=too-many-arguments\n        self,\n        access_token=None,\n        connection_timeout=60.0,\n        custom_headers=None,\n        corporation_id=None,\n        integrator_id=None,\n        platform_id=None,\n        max_retries=3,\n    ):\n        \"\"\"Initialize\n\n        Args:\n            access_token (str, optional): Your User Access Token. Defaults to None.\n            connection_timeout (float, optional): Time to timeout the REST call. Defaults to 60.0.\n            custom_headers (dict, optional): A Dict with params to be added to the requests params.\n            Defaults to None.\n            corporation_id (str, optional): Your Corporation ID if any. Defaults to None.\n            integrator_id (str, optional): Your Integrator ID if any. Defaults to None.\n            platform_id (str, optional): Your Platform ID if any. Defaults to None.\n            max_retries (int, optional): How many retries must be done in case of fail.\n            Defaults to 3.\n\n        Raises:\n            ValueError: Param access_token must be a String\n            ValueError: Param connection_timeout must be a Float\n            ValueError: Param custom_headers must be a Dictionary\n            ValueError: Param corporation_id must be a String\n            ValueError: Param integrator_id must be a String\n            ValueError: Param platform_id must be a String\n            ValueError: Param max_retries must be an Integer\n        \"\"\"\n\n        if access_token is not None:\n            self.access_token = access_token\n        if connection_timeout is not None:\n            self.connection_timeout = connection_timeout\n        if custom_headers is not None:\n            self.custom_headers = custom_headers\n        if max_retries is not None:\n            self.max_retries = max_retries\n        if corporation_id is not None:\n            self.corporation_id = corporation_id\n        if integrator_id is not None:\n            self.integrator_id = integrator_id\n        if platform_id is not None:\n            self.platform_id = platform_id\n\n        self.__config = Config()\n\n    def get_headers(self):\n        \"\"\"\n        Sets the attribute values of headers\n        \"\"\"\n        headers = {\"Authorization\": \"Bearer \" + self.__access_token,\n                   \"x-product-id\": self.__config.product_id,\n                   \"x-tracking-id\": self.__config.tracking_id,\n                   \"x-idempotency-key\": str(uuid.uuid4().int),\n                   \"User-Agent\": self.__config.user_agent,\n                   \"Accept\": self.__config.mime_json}\n\n        if self.__corporation_id is not None:\n            headers[\"x-corporation-id\"] = self.__corporation_id\n\n        if self.__integrator_id is not None:\n            headers[\"x-integrator-id\"] = self.__integrator_id\n\n        if self.__platform_id is not None:\n            headers[\"x-platform-id\"] = self.__platform_id\n\n        if self.__custom_headers is not None:\n            headers.update(self.__custom_headers)\n\n        return headers\n\n    @property\n    def access_token(self):\n        \"\"\"\n        Sets the attribute value and validates access_token\n        \"\"\"\n        return self.__access_token\n\n    @access_token.setter\n    def access_token(self, value):\n        if not isinstance(value, str):\n            raise ValueError(\"Param access_token must be a String\")\n        self.__access_token = value\n\n    @property\n    def connection_timeout(self):\n        \"\"\"\n        Sets the attribute value and validates connection timeout\n        \"\"\"\n        return self.__connection_timeout\n\n    @connection_timeout.setter\n    def connection_timeout(self, value):\n        if not isinstance(value, float):\n            raise ValueError(\"Param connection_timeout must be a Float\")\n        self.__connection_timeout = value\n\n    @property\n    def corporation_id(self):\n        \"\"\"\n        Sets the attribute value and validates corporation id\n        \"\"\"\n        return self.__corporation_id\n\n    @corporation_id.setter\n    def corporation_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(\"Param corporation_id must be a String\")\n        self.__corporation_id = value\n\n    @property\n    def custom_headers(self):\n        \"\"\"\n        Sets the attribute value and validates custom headers\n        \"\"\"\n        return self.__custom_headers\n\n    @custom_headers.setter\n    def custom_headers(self, value):\n        if not isinstance(value, dict):\n            raise ValueError(\"Param custom_headers must be a Dictionary\")\n        self.__custom_headers = value\n\n    @property\n    def integrator_id(self):\n        \"\"\"\n        Sets the attribute value and validates integrator id\n        \"\"\"\n        return self.__integrator_id\n\n    @integrator_id.setter\n    def integrator_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(\"Param integrator_id must be a String\")\n        self.__integrator_id = value\n\n    @property\n    def max_retries(self):\n        \"\"\"\n        Sets the attribute value and validates max retries\n        \"\"\"\n        return self.__max_retries\n\n    @max_retries.setter\n    def max_retries(self, value):\n        if not isinstance(value, int):\n            raise ValueError(\"Param max_retries must be an Integer\")\n        self.__max_retries = value\n\n    @property\n    def platform_id(self):\n        \"\"\"\n        Sets the attribute value and validates platform id\n        \"\"\"\n        return self.__platform_id\n\n    @platform_id.setter\n    def platform_id(self, value):\n        if not isinstance(value, str):\n            raise ValueError(\"Param platform_id must be a String\")\n        self.__platform_id = value\n"
  },
  {
    "path": "mercadopago/core/__init__.py",
    "content": "\"\"\"\nModule: core/__init__.py\n\"\"\"\nfrom mercadopago.core.mp_base import MPBase\n\n\n__all__ = (\n    'MPBase',\n)\n"
  },
  {
    "path": "mercadopago/core/mp_base.py",
    "content": "\"\"\"\nModule: mp_base\n\"\"\"\nfrom json.encoder import JSONEncoder\n\nfrom mercadopago.config.config import Config\nfrom mercadopago.config.request_options import RequestOptions\n\n\nclass MPBase:\n    \"\"\"All mercadopago.resources extends this one to call the REST services\n\n    Args:\n        request_options (mercadopago.config.request_options, optional):\n        An instance of RequestOptions can be pass changing or adding custom options\n        to ur REST calls. Defaults to None.\n        http_client (mercadopago.http.http_client, optional): An implementation of\n        HttpClient can be pass to be used to make the REST calls. Defaults to None.\n\n    Raises:\n        ValueError: Param request_options must be a RequestOptions Object\n        ValueError: Filters must be a Dictionary\n    \"\"\"\n\n    def __init__(self, request_options, http_client):\n        if not isinstance(request_options, RequestOptions):\n            raise ValueError(\n                \"Param request_options must be a RequestOptions Object\")\n\n        self.__request_options = request_options\n        self.__http_client = http_client\n        self.__config = Config()\n\n    def __check_request_options(self, request_options):\n        if request_options is not None and not isinstance(request_options, RequestOptions):\n            raise ValueError(\n                \"Param request_options must be a RequestOptions Object\")\n        if request_options is None:\n            request_options = self.__request_options\n\n        if request_options.access_token is None:\n            request_options.access_token = self.__request_options.access_token\n\n        return request_options\n\n    def __check_headers(self, request_options, extra_headers=None):\n        headers = self.__request_options.get_headers()\n        if request_options is not None:\n            headers = request_options.get_headers()\n\n        if extra_headers is not None:\n            headers.update(extra_headers)\n\n        return headers\n\n    def _get(self, uri, filters=None, request_options=None):\n        if filters is not None and not isinstance(filters, dict):\n            raise ValueError(\"Filters must be a Dictionary\")\n\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(\n            request_options, {\"Content-type\": self.__config.mime_json})\n\n        return self.__http_client.get(\n            url=self.__config.api_base_url + uri,\n            params=filters,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    def _post(self, uri, data=None, params=None, request_options=None):\n        if data is not None:\n            data = JSONEncoder().encode(data)\n\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(\n            request_options, {\"Content-type\": self.__config.mime_json})\n\n        return self.__http_client.post(\n            url=self.__config.api_base_url + uri,\n            data=data,\n            params=params,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    def _put(self, uri, data=None, params=None, request_options=None):\n        if data is not None:\n            data = JSONEncoder().encode(data)\n\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(\n            request_options, {\"Content-type\": self.__config.mime_json})\n\n        return self.__http_client.put(\n            url=self.__config.api_base_url + uri,\n            data=data,\n            params=params,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    def _delete(self, uri, params=None, request_options=None):\n        request_options = self.__check_request_options(request_options)\n        headers = self.__check_headers(request_options)\n\n        return self.__http_client.delete(\n            url=self.__config.api_base_url + uri,\n            params=params,\n            headers=headers,\n            timeout=request_options.connection_timeout,\n            maxretries=request_options.max_retries,\n        )\n\n    @property\n    def request_options(self):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return self.__request_options\n\n    @property\n    def config(self):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return self.__config\n"
  },
  {
    "path": "mercadopago/examples/order/cancel_order.py",
    "content": "import os\nimport time\n\nfrom mercadopago import SDK\n\ndef main():\n    # Define the authentication token\n    access_token = \"<YOUR_ACCESS_TOKEN>\"\n\n    # Define the authentication token\n    sdk = SDK(access_token)\n\n    # Create a test card token\n    def create_test_card():\n        card_token_object = {\n            \"card_number\": \"5031433215406351\",\n            \"security_code\": \"123\",\n            \"expiration_year\": \"2030\",\n            \"expiration_month\": \"11\",\n            \"cardholder\": {\"name\": \"APRO\"}\n        }\n        card_token_created = sdk.card_token().create(card_token_object)\n        return card_token_created[\"response\"][\"id\"]\n\n    # Create an order object\n    card_token_id = create_test_card()\n    order_object = {\n        \"type\": \"online\",\n        \"capture_mode\": \"manual\",\n        \"processing_mode\": \"automatic\",\n        \"total_amount\": \"880.00\",\n        \"external_reference\": \"ext_ref_1234\",\n        \"transactions\": {\n            \"payments\": [\n                {\n                    \"amount\": \"880.00\",\n                    \"payment_method\": {\n                        \"id\": \"master\",\n                        \"type\": \"credit_card\",\n                        \"token\": card_token_id,\n                        \"installments\": 2\n                    }\n                }\n            ]\n        },\n        \"payer\": {\n            \"email\": \"<PAYER_EMAIL>\"\n        }\n    }\n\n    try:\n        # Call the method to create the order\n        response = sdk.order().create(order_object)\n        print(\"Order created successfully\")\n\n        # Get the order ID from the response\n        order_id = response[\"response\"][\"id\"]\n\n        time.sleep(5)\n        # Call the method to CANCEL\n        order_details = sdk.order().cancel(order_id)\n        print(\"Order details:\", order_details[\"response\"])\n    except Exception as e:\n        print(\"Error:\", e)\n\nif __name__ == \"__main__\":\n    main()"
  },
  {
    "path": "mercadopago/examples/order/capture_order.py",
    "content": "import os\nfrom mercadopago import SDK\n\ndef main():\n    # Define the authentication token\n    access_token = \"<YOUR_ACCESS_TOKEN>\"\n\n    # Define the authentication token\n    sdk = SDK(access_token)\n\n    # Create a test card token\n    def create_test_card():\n        card_token_object = {\n            \"card_number\": \"5031433215406351\",\n            \"security_code\": \"123\",\n            \"expiration_year\": \"2030\",\n            \"expiration_month\": \"11\",\n            \"cardholder\": {\"name\": \"APRO\"}\n        }\n        card_token_created = sdk.card_token().create(card_token_object)\n        return card_token_created[\"response\"][\"id\"]\n\n    # Create an order object\n    card_token_id = create_test_card()\n    order_object = {\n        \"type\": \"online\",\n        \"capture_mode\": \"manual\", # Mode need to be Manual to use Capture Method.\n        \"processing_mode\": \"automatic\",\n        \"total_amount\": \"880.00\",\n        \"external_reference\": \"ext_ref_1234\",\n        \"transactions\": {\n            \"payments\": [\n                {\n                    \"amount\": \"880.00\",\n                    \"payment_method\": {\n                        \"id\": \"master\",\n                        \"type\": \"credit_card\",\n                        \"token\": card_token_id,\n                        \"installments\": 2\n                    }\n                }\n            ]\n        },\n        \"payer\": {\n            \"email\": \"<PAYER_EMAIL>\"\n        }\n    }\n\n    try:\n        # Call the method to create the order\n        response = sdk.order().create(order_object)\n        print(\"Order created successfully\")\n\n        # Get the order ID from the response\n        order_id = response[\"response\"][\"id\"]\n\n        # Call the method to CAPTURE the order\n        order_details = sdk.order().capture(order_id)\n        print(\"Order details:\", order_details[\"response\"])\n    except Exception as e:\n        print(\"Error:\", e)\n\nif __name__ == \"__main__\":\n    main()"
  },
  {
    "path": "mercadopago/examples/order/create_order.py",
    "content": "from mercadopago import SDK\n\n\ndef main():\n   # Define the authentication token\n    access_token = \"<YOUR_ACCESS_TOKEN>\"\n\n   # Define the authentication token\n    sdk = SDK(access_token)\n\n   # Create a test card token\n    def create_test_card():\n        card_token_object = {\n            \"card_number\": \"5031433215406351\",\n            \"security_code\": \"123\",\n            \"expiration_year\": \"2030\",\n            \"expiration_month\": \"11\",\n            \"cardholder\": {\"name\": \"APRO\"}\n        }\n        card_token_created = sdk.card_token().create(card_token_object)\n        return card_token_created[\"response\"][\"id\"]\n\n   # Create an order object\n    card_token_id = create_test_card()\n    order_object = {\n        \"type\": \"online\",\n        \"total_amount\": \"880.00\",\n        \"external_reference\": \"ext_ref_1234\",\n        \"transactions\": {\n            \"payments\": [\n                {\n                    \"amount\": \"880.00\",\n                    \"payment_method\": {\n                        \"id\": \"master\",\n                        \"type\": \"credit_card\",\n                        \"token\": card_token_id,\n                        \"installments\": 2\n                    }\n                }\n            ]\n        },\n        \"payer\": {\n            \"email\": \"<PAYER_EMAIL>\"\n        }\n    }\n\n    try:\n       # Call the method to create the order\n        response = sdk.order().create(order_object)\n        print(\"Order created successfully:\", response[\"response\"])\n    except Exception as e:\n        print(\"Error:\", e)\n\n\nif __name__ == \"__main__\":\n    main()"
  },
  {
    "path": "mercadopago/examples/order/create_transaction.py",
    "content": "import os\nimport time\n\nfrom mercadopago import SDK\n\ndef main():\n    # Define the authentication token\n    access_token = \"<YOUR_ACCESS_TOKEN>\"\n\n    # Define the authentication token\n    sdk = SDK(access_token)\n\n    # Create a test card token\n    def create_test_card():\n        card_token_object = {\n            \"card_number\": \"5031433215406351\",\n            \"security_code\": \"123\",\n            \"expiration_year\": \"2030\",\n            \"expiration_month\": \"11\",\n            \"cardholder\": {\"name\": \"APRO\"}\n        }\n        card_token_created = sdk.card_token().create(card_token_object)\n        return card_token_created[\"response\"][\"id\"]\n\n    # Create an order object\n    card_token_id = create_test_card()\n    order_object = {\n        \"type\": \"online\",\n        \"processing_mode\": \"manual\",\n        \"total_amount\": \"200.00\",\n        \"external_reference\": \"ext_ref_1234\",\n        \"payer\": {\n            \"email\": \"<PAYER_EMAIL>\"\n        }\n    }\n\n    try:\n        # Call the method to create the order\n        response = sdk.order().create(order_object)\n        print(\"Order created successfully\")\n\n        # Get the order ID from the response\n        order_id = response[\"response\"][\"id\"]\n\n        transaction_object = {\n            \"payments\": [\n                {\n                    \"amount\": \"200.00\",\n                    \"payment_method\": {\n                        \"id\": \"master\",\n                        \"type\": \"credit_card\",\n                        \"token\": card_token_id,\n                        \"installments\": 12\n                    }\n                }\n            ]\n        }\n        # Call the method to CREATE A TRANSACTION in the order\n        transaction_created = sdk.order().create_transaction(order_id, transaction_object)\n        print(\"Transaction created:\", transaction_created[\"response\"])\n    except Exception as e:\n        print(\"Error:\", e)\n\nif __name__ == \"__main__\":\n    main()"
  },
  {
    "path": "mercadopago/examples/order/delete_transaction.py",
    "content": "import os\nimport time\n\nfrom mercadopago import SDK\n\ndef main():\n    # Define the authentication token\n    access_token = \"<YOUR_ACCESS_TOKEN>\"\n\n    # Define the authentication token\n    sdk = SDK(access_token)\n\n    # Create a test card token\n    def create_test_card():\n        card_token_object = {\n            \"card_number\": \"5031433215406351\",\n            \"security_code\": \"123\",\n            \"expiration_year\": \"2030\",\n            \"expiration_month\": \"11\",\n            \"cardholder\": {\"name\": \"APRO\"}\n        }\n        card_token_created = sdk.card_token().create(card_token_object)\n        return card_token_created[\"response\"][\"id\"]\n\n    # Create an order object\n    card_token_id = create_test_card()\n    order_object = {\n        \"type\": \"online\",\n        \"processing_mode\": \"manual\",\n        \"total_amount\": \"200.00\",\n        \"external_reference\": \"ext_ref_1234\",\n        \"transactions\": {\n            \"payments\": [\n                {\n                    \"amount\": \"200.00\",\n                    \"payment_method\": {\n                        \"id\": \"master\",\n                        \"type\": \"credit_card\",\n                        \"token\": card_token_id,\n                        \"installments\": 12\n                    }\n                }\n            ]\n        },\n        \"payer\": {\n            \"email\": \"<PAYER_EMAIL>\"\n        }\n    }\n\n    try:\n        # Call the method to create the order\n        response = sdk.order().create(order_object)\n        print(\"Order created successfully\")\n\n        # Get the order ID from the response\n        order_id = response[\"response\"][\"id\"]\n        transaction_id = response[\"response\"][\"transactions\"][\"payments\"][0][\"id\"]\n\n        # Call the method to DELETE the transaction in the order\n        transaction_deleted = sdk.order().delete_transaction(order_id, transaction_id)\n        print(\"Transaction Successful Deleted.\", transaction_deleted[\"response\"])\n    except Exception as e:\n        print(\"Error:\", e)\n\nif __name__ == \"__main__\":\n    main()"
  },
  {
    "path": "mercadopago/examples/order/get_order.py",
    "content": "import os\nfrom mercadopago import SDK\n\ndef main():\n    # Define the authentication token\n    access_token = \"<YOUR_ACCESS_TOKEN>\"\n\n    # Define the authentication token\n    sdk = SDK(access_token)\n\n    # Create a test card token\n    def create_test_card():\n        card_token_object = {\n            \"card_number\": \"5031433215406351\",\n            \"security_code\": \"123\",\n            \"expiration_year\": \"2030\",\n            \"expiration_month\": \"11\",\n            \"cardholder\": {\"name\": \"APRO\"}\n        }\n        card_token_created = sdk.card_token().create(card_token_object)\n        return card_token_created[\"response\"][\"id\"]\n\n    # Create an order object\n    card_token_id = create_test_card()\n    order_object = {\n        \"type\": \"online\",\n        \"total_amount\": \"880.00\",\n        \"external_reference\": \"ext_ref_1234\",\n        \"transactions\": {\n            \"payments\": [\n                {\n                    \"amount\": \"880.00\",\n                    \"payment_method\": {\n                        \"id\": \"master\",\n                        \"type\": \"credit_card\",\n                        \"token\": card_token_id,\n                        \"installments\": 2\n                    }\n                }\n            ]\n        },\n        \"payer\": {\n            \"email\": \"<PAYER_EMAIL>\"\n        }\n    }\n\n    try:\n        # Call the method to create the order\n        response = sdk.order().create(order_object)\n        print(\"Order created successfully!\")\n\n        # Get the order ID from the response\n        order_id = response[\"response\"][\"id\"]\n\n        # Call the method to get the order details\n        order_details = sdk.order().get(order_id)\n        print(\"Order details:\", order_details[\"response\"])\n    except Exception as e:\n        print(\"Error:\", e)\n\nif __name__ == \"__main__\":\n    main()"
  },
  {
    "path": "mercadopago/examples/order/process_order.py",
    "content": "import os\nfrom mercadopago import SDK\n\ndef main():\n    # Define the authentication token\n    access_token = \"<YOUR_ACCESS_TOKEN>\"\n\n    # Define the authentication token\n    sdk = SDK(access_token)\n\n    # Create a test card token\n    def create_test_card():\n        card_token_object = {\n            \"card_number\": \"5031433215406351\",\n            \"security_code\": \"123\",\n            \"expiration_year\": \"2030\",\n            \"expiration_month\": \"11\",\n            \"cardholder\": {\"name\": \"APRO\"}\n        }\n        card_token_created = sdk.card_token().create(card_token_object)\n        return card_token_created[\"response\"][\"id\"]\n\n    # Create an order object\n    card_token_id = create_test_card()\n    order_object = {\n        \"type\": \"online\",\n        \"processing_mode\": \"manual\", # Mode need to be Manual to use Process Method.\n        \"total_amount\": \"880.00\",\n        \"external_reference\": \"ext_ref_1234\",\n        \"transactions\": {\n            \"payments\": [\n                {\n                    \"amount\": \"880.00\",\n                    \"payment_method\": {\n                        \"id\": \"master\",\n                        \"type\": \"credit_card\",\n                        \"token\": card_token_id,\n                        \"installments\": 2\n                    }\n                }\n            ]\n        },\n        \"payer\": {\n            \"email\": \"<PAYER_EMAIL>\"\n        }\n    }\n\n    try:\n        # Call the method to create the order\n        response = sdk.order().create(order_object)\n        print(\"Order created successfully!\")\n\n        # Get the order ID from the response\n        order_id = response[\"response\"][\"id\"]\n        print(\"Order ID:\", order_id)\n\n        # Call the method to PROCESS the order created in Manual Mode\n        order_details = sdk.order().process(order_id)\n        print(\"Order details:\", order_details[\"response\"])\n    except Exception as e:\n        print(\"Error:\", e)\n\nif __name__ == \"__main__\":\n    main()"
  },
  {
    "path": "mercadopago/examples/order/refund_partial.py",
    "content": "import os\nimport time\n\nfrom mercadopago import SDK\n\ndef main():\n    # Define the authentication token\n    access_token = \"<YOUR_ACCESS_TOKEN>\"\n\n    # Define the authentication token\n    sdk = SDK(access_token)\n\n    # Create a test card token\n    def create_test_card():\n        card_token_object = {\n            \"card_number\": \"5031433215406351\",\n            \"security_code\": \"123\",\n            \"expiration_year\": \"2030\",\n            \"expiration_month\": \"11\",\n            \"cardholder\": {\"name\": \"APRO\"}\n        }\n        card_token_created = sdk.card_token().create(card_token_object)\n        return card_token_created[\"response\"][\"id\"]\n\n    # Create an order object\n    card_token_id = create_test_card()\n    order_object = {\n        \"type\": \"online\",\n        \"processing_mode\": \"automatic\",\n        \"total_amount\": \"500.00\",\n        \"external_reference\": \"ext_ref_1234\",\n        \"transactions\": {\n            \"payments\": [\n                {\n                    \"amount\": \"500.00\",\n                    \"payment_method\": {\n                        \"id\": \"master\",\n                        \"type\": \"credit_card\",\n                        \"token\": card_token_id,\n                        \"installments\": 2\n                    }\n                }\n            ]\n        },\n        \"payer\": {\n            \"email\": \"<EMAIL_TEST>\"\n        }\n    }\n\n    try:\n        # Call the method to create the order\n        response = sdk.order().create(order_object)\n        print(\"Order created successfully.\")\n\n        # Get the order ID from the response\n        order_id = response[\"response\"][\"id\"]\n\n        refund = {\n          \"transactions\": [\n            {\n              \"id\": response[\"response\"][\"transactions\"][\"payments\"][0][\"id\"],\n              \"amount\": \"25.00\"\n            }\n          ]\n        }\n\n        # Call the method to REFUND\n        transaction_refund = sdk.order().refund_transaction(order_id, refund)\n        print(\"Transaction Partially Refunded:\", transaction_refund[\"response\"])\n    except Exception as e:\n        print(\"Error:\", e)\n\nif __name__ == \"__main__\":\n    main()"
  },
  {
    "path": "mercadopago/examples/order/refund_total.py",
    "content": "import os\nimport time\n\nfrom mercadopago import SDK\n\ndef main():\n    # Define the authentication token\n    access_token = \"<YOUR_ACCESS_TOKEN>\"\n\n    # Define the authentication token\n    sdk = SDK(access_token)\n\n    # Create a test card token\n    def create_test_card():\n        card_token_object = {\n            \"card_number\": \"5031433215406351\",\n            \"security_code\": \"123\",\n            \"expiration_year\": \"2030\",\n            \"expiration_month\": \"11\",\n            \"cardholder\": {\"name\": \"APRO\"}\n        }\n        card_token_created = sdk.card_token().create(card_token_object)\n        return card_token_created[\"response\"][\"id\"]\n\n    # Create an order object\n    card_token_id = create_test_card()\n    order_object = {\n        \"type\": \"online\",\n        \"processing_mode\": \"automatic\",\n        \"total_amount\": \"500.00\",\n        \"external_reference\": \"ext_ref_1234\",\n        \"transactions\": {\n            \"payments\": [\n                {\n                    \"amount\": \"500.00\",\n                    \"payment_method\": {\n                        \"id\": \"master\",\n                        \"type\": \"credit_card\",\n                        \"token\": card_token_id,\n                        \"installments\": 2\n                    }\n                }\n            ]\n        },\n        \"payer\": {\n            \"email\": \"<EMAIL_TEST>\"\n        }\n    }\n\n    try:\n        # Call the method to create the order\n        response = sdk.order().create(order_object)\n        print(\"Order created successfully.\")\n\n        # Get the order ID from the response\n        order_id = response[\"response\"][\"id\"]\n\n        # Call the method to REFUND TOTALLY the transaction in the order\n        transaction_refund = sdk.order().refund_transaction(order_id)\n        print(\"Transaction Total Refunded:\", transaction_refund[\"response\"])\n    except Exception as e:\n        print(\"Error:\", e)\n\nif __name__ == \"__main__\":\n    main()"
  },
  {
    "path": "mercadopago/examples/order/update_transaction.py",
    "content": "import os\nimport time\n\nfrom mercadopago import SDK\n\ndef main():\n    # Define the authentication token\n    access_token = \"<YOUR_ACCESS_TOKEN>\"\n\n    # Define the authentication token\n    sdk = SDK(access_token)\n\n    # Create a test card token\n    def create_test_card():\n        card_token_object = {\n            \"card_number\": \"5031433215406351\",\n            \"security_code\": \"123\",\n            \"expiration_year\": \"2030\",\n            \"expiration_month\": \"11\",\n            \"cardholder\": {\"name\": \"APRO\"}\n        }\n        card_token_created = sdk.card_token().create(card_token_object)\n        return card_token_created[\"response\"][\"id\"]\n\n    # Create an order object\n    card_token_id = create_test_card()\n    order_object = {\n        \"type\": \"online\",\n        \"processing_mode\": \"manual\",\n        \"total_amount\": \"500.00\",\n        \"external_reference\": \"ext_ref_1234\",\n        \"transactions\": {\n            \"payments\": [\n                {\n                    \"amount\": \"500.00\",\n                    \"payment_method\": {\n                        \"id\": \"master\",\n                        \"type\": \"credit_card\",\n                        \"token\": card_token_id,\n                        \"installments\": 2\n                    }\n                }\n            ]\n        },\n        \"payer\": {\n            \"email\": \"<EMAIL_TEST>\"\n        }\n    }\n\n    try:\n        # Call the method to create the order\n        response = sdk.order().create(order_object)\n        print(\"Order created successfully\")\n\n        # Get the order ID from the response\n        order_id = response[\"response\"][\"id\"]\n        transaction_id = response[\"response\"][\"transactions\"][\"payments\"][0][\"id\"]\n\n        transaction_update = {\n            \"payment_method\": {\n                \"type\": \"credit_card\",\n                \"installments\": 5\n            }\n        }\n\n        # Call the method to UPDATE the transaction in the order\n        update = sdk.order().update_transaction(order_id, transaction_id, transaction_update)\n        print(\"Transaction Updated:\", update[\"response\"])\n    except Exception as e:\n        print(\"Error:\", e)\n\nif __name__ == \"__main__\":\n    main()"
  },
  {
    "path": "mercadopago/examples/preference/create_preference.py",
    "content": "from mercadopago.sdk import SDK\n\ndef main():\n    # Define the authentication token\n    access_token = \"<YOUR_ACCESS_TOKEN>\"\n    sdk = SDK(access_token)\n\n    try:\n        preference_data = {\n            \"items\": [\n                {\n                    \"title\": \"Dummy Item\",\n                    \"quantity\": 1,\n                    \"unit_price\": 10.0\n                }\n            ],\n            \"notification_url\": \"https://webhook.site/test-notification\"\n        }\n\n        # Call the method to create the preference\n        preference = sdk.preference().create(preference_data)\n        print(preference)\n    except Exception as e:\n        print(\"Error:\", e)\n\nif __name__ == \"__main__\":\n    main()\n"
  },
  {
    "path": "mercadopago/http/__init__.py",
    "content": "\"\"\"\nModule: http/__init__.py\n\"\"\"\nfrom mercadopago.http.http_client import HttpClient\n\n\n__all__ = (\n    'HttpClient',\n)\n"
  },
  {
    "path": "mercadopago/http/http_client.py",
    "content": "\"\"\"\nModule: http_client\n\"\"\"\n# pylint: disable=too-many-arguments\nimport requests\nfrom requests.adapters import HTTPAdapter\nfrom urllib3.util import Retry\n\n\nclass HttpClient:\n    \"\"\"\n    Default implementation to call all REST API's\n    \"\"\"\n\n    def request(self, method, url, maxretries=None, **kwargs):\n        \"\"\"Makes a call to the API.\n\n        All **kwargs are passed verbatim to ``requests.request``.\n        \"\"\"\n        retry_strategy = Retry(\n            total=maxretries,\n            status_forcelist=[429, 500, 502, 503, 504]\n        )\n        http = requests.Session()\n        http.mount(\"https://\", HTTPAdapter(max_retries=retry_strategy))\n        with http as session:\n            api_result = session.request(method, url, **kwargs)\n            response = {\"status\": api_result.status_code, \"response\": None}\n\n            if api_result.status_code != 204 and api_result.content:\n                try:\n                    response[\"response\"] = api_result.json()\n                except ValueError as e:\n                    print(f\"Failed to parse JSON: {str(e)}\")\n                    response[\"response\"] = None\n\n            return response\n\n    def get(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    # pylint: disable=too-many-positional-arguments\n        \"\"\"Makes a GET request to the API\"\"\"\n        return self.request(\n            \"GET\",\n            url=url,\n            headers=headers,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def post(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    # pylint: disable=too-many-positional-arguments\n        \"\"\"Makes a POST request to the API\"\"\"\n        return self.request(\n            \"POST\",\n            url=url,\n            headers=headers,\n            data=data,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def put(self, url, headers, data=None, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    # pylint: disable=too-many-positional-arguments\n        \"\"\"Makes a PUT request to the API\"\"\"\n        return self.request(\n            \"PUT\",\n            url=url,\n            headers=headers,\n            data=data,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n\n    def delete(self, url, headers, params=None, timeout=None, maxretries=None):  # pylint: disable=too-many-arguments\n    # pylint: disable=too-many-positional-arguments\n        \"\"\"Makes a DELETE request to the API\"\"\"\n        return self.request(\n            \"DELETE\",\n            url=url,\n            headers=headers,\n            params=params,\n            timeout=timeout,\n            maxretries=maxretries,\n        )\n"
  },
  {
    "path": "mercadopago/resources/__init__.py",
    "content": "\"\"\"\nModule: resources/__init__.py\n\"\"\"\nfrom mercadopago.config.request_options import RequestOptions\nfrom mercadopago.http.http_client import HttpClient\nfrom mercadopago.resources.advanced_payment import AdvancedPayment\nfrom mercadopago.resources.card import Card\nfrom mercadopago.resources.card_token import CardToken\nfrom mercadopago.resources.chargeback import Chargeback\nfrom mercadopago.resources.customer import Customer\nfrom mercadopago.resources.disbursement_refund import DisbursementRefund\nfrom mercadopago.resources.identification_type import IdentificationType\nfrom mercadopago.resources.merchant_order import MerchantOrder\nfrom mercadopago.resources.order import Order\nfrom mercadopago.resources.payment import Payment\nfrom mercadopago.resources.payment_methods import PaymentMethods\nfrom mercadopago.resources.plan import Plan\nfrom mercadopago.resources.preapproval import PreApproval\nfrom mercadopago.resources.preference import Preference\nfrom mercadopago.resources.refund import Refund\nfrom mercadopago.resources.subscription import Subscription\nfrom mercadopago.resources.user import User\n\n\n__all__ = (\n    'AdvancedPayment',\n    'Card',\n    'CardToken',\n    'Chargeback',\n    'Customer',\n    'DisbursementRefund',\n    'HttpClient',\n    'IdentificationType',\n    'MerchantOrder',\n    'Order',\n    'Payment',\n    'PaymentMethods',\n    'Plan',\n    'PreApproval',\n    'Preference',\n    'Refund',\n    'RequestOptions',\n    'Subscription',\n    'User',\n)\n"
  },
  {
    "path": "mercadopago/resources/advanced_payment.py",
    "content": "\"\"\"\n    Module: advanced_payment\n\"\"\"\nfrom datetime import datetime\n\nfrom mercadopago.core import MPBase\n\n\nclass AdvancedPayment(MPBase):\n    \"\"\"\n    Access to Advanced Payments\n    \"\"\"\n\n    def search(self, filters=None, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments_id_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding custom options\n            to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Advanced Payment search response\n        \"\"\"\n        return self._get(uri=\"/v1/advanced_payments/search\", filters=filters,\n                         request_options=request_options)\n\n    def get(self, advanced_payment_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            call. Defaults to None.\n\n        Returns:\n            dict: Advanced Payment find response\n        \"\"\"\n        return self._get(uri=\"/v1/advanced_payments/\" + str(advanced_payment_id),\n                         request_options=request_options)\n\n    def create(self, advanced_payment_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/advanced_payments/_advanced_payments/post/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_object (dict): Advanced Payment to be created\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            call. Defaults to None.\n\n        Raises:\n            ValueError: Param advanced_payment_object must be a Dictionary\n\n        Returns:\n            dict: Advanced Payment creation response\n        \"\"\"\n        if not isinstance(advanced_payment_object, dict):\n            raise ValueError(\n                \"Param advanced_payment_object must be a Dictionary\")\n\n        return self._post(uri=\"/v1/advanced_payments\", data=advanced_payment_object,\n                          request_options=request_options)\n\n    def capture(self, advanced_payment_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            call. Defaults to None.\n\n        Returns:\n            dict: Advanced Payment capture response\n        \"\"\"\n        capture_object = {\"capture\": True}\n        return self._put(uri=\"/v1/advanced_payments/\" + str(advanced_payment_id),\n                         data=capture_object, request_options=request_options)\n\n    def update(self, advanced_payment_id, advanced_payment_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            advanced_payment_object (dict): Advanced Payment to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param advanced_payment_object must be a Dictionary\n\n        Returns:\n            dict: Advanced Payment modification response\n        \"\"\"\n        if not isinstance(advanced_payment_object, dict):\n            raise ValueError(\n                \"Param advanced_payment_object must be a Dictionary\")\n\n        return self._put(uri=\"/v1/advanced_payments/\" + str(advanced_payment_id),\n                         data=advanced_payment_object, request_options=request_options)\n\n    def cancel(self, advanced_payment_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Advanced Payment cancelation response\n        \"\"\"\n        cancel_object = {\"status\": \"cancelled\"}\n        return self._put(uri=\"/v1/advanced_payments/\" + str(advanced_payment_id),\n                         data=cancel_object, request_options=request_options)\n\n    def update_release_date(self, advanced_payment_id, release_date, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/advanced_payments/_advanced_payments_id_disbursements_disbursement_id_disburses/post/)  # pylint: disable=line-too-long\n\n        Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            release_date (datetime): Advanced Payment to be canceled\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param release_date must be a DateTime\n\n        Returns:\n            dict: Advanced Payment release date modification response\n        \"\"\"\n        if not isinstance(release_date, datetime):\n            raise ValueError(\"Param release_date must be a DateTime\")\n\n        disbursement_object = {\n            \"money_release_date\": release_date.strftime(\"%Y-%m-%d %H:%M:%S.%f\")}\n\n        return self._post(uri=\"/v1/advanced_payments/\" + str(advanced_payment_id) + \"/disburses\",\n                          data=disbursement_object, request_options=request_options)\n"
  },
  {
    "path": "mercadopago/resources/card.py",
    "content": "\"\"\"\n    Module: card\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass Card(MPBase):\n    \"\"\"\n    The cards class is the way to store card data of your customers\n    safely to improve the shopping experience.\n\n    This will allow your customers to complete their purchases much\n    faster and easily, since they will not have to complete their\n    card data again.\n\n    This class must be used in conjunction with the Customer class.\n\n    [Click here for more info](https://www.mercadopago.com/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards)  # pylint: disable=line-too-long\n    \"\"\"\n\n    def list_all(self, customer_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Cards find response\n        \"\"\"\n        return self._get(\n            uri=f\"/v1/customers/{str(customer_id)}/cards\",\n            request_options=request_options,\n        )\n\n    def get(self, customer_id, card_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            card_id (dict): Card ID to be found\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Card find response\n        \"\"\"\n        return self._get(\n            uri=f\"/v1/customers/{str(customer_id)}/cards/{str(card_id)}\",\n            request_options=request_options,\n        )\n\n    def create(self, customer_id, card_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/post/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            card_object (dict): Card object to be created\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param card_object must be a Dictionary\n\n        Returns:\n            dict: Card creation response\n        \"\"\"\n        if not isinstance(card_object, dict):\n            raise ValueError(\"Param card_object must be a Dictionary\")\n\n        return self._post(uri=\"/v1/customers/\" + str(customer_id)\n                          + \"/cards/\", data=card_object, request_options=request_options)\n\n    def update(self, customer_id, card_id, card_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): Customer ID owner\n            card_id (str): Card ID to be modified\n            card_object (dict): Values to be modified\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param card_object must be a Dictionary\n\n        Returns:\n            dict: Card modification response\n        \"\"\"\n        if not isinstance(card_object, dict):\n            raise ValueError(\"Param card_object must be a Dictionary\")\n\n        return self._put(uri=\"/v1/customers/\" + str(customer_id)\n                         + \"/cards/\" + str(card_id), data=card_object,\n                         request_options=request_options)\n\n    def delete(self, customer_id, card_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards_id/delete/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): Customer ID owner\n            card_id (str): Card ID to be deleted\n            request_options (mercadopago.config.request_options, optional):\n            An instance of RequestOptions can be pass changing or adding\n            custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Card exclusion response\n        \"\"\"\n        return self._delete(uri=\"/v1/customers/\" + str(customer_id)\n                            + \"/cards/\" + str(card_id), request_options=request_options)\n"
  },
  {
    "path": "mercadopago/resources/card_token.py",
    "content": "\"\"\"\n    Module: card_token\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass CardToken(MPBase):\n    \"\"\"\n    This class will allow you to send your customers card data for Mercado Pago\n    server and receive a token to complete the payments transactions.\n    \"\"\"\n\n    def get(self, card_token_id, request_options=None):\n        \"\"\"Args:\n            card_token_id (str): The Card Token ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Card Token find response\n        \"\"\"\n        return self._get(uri=\"/v1/card_tokens/\" + str(card_token_id),\n                         request_options=request_options)\n\n    def create(self, card_token_object, request_options=None):\n        \"\"\"Args:\n            card_token_object (dict): Card Token to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param card_token_object must be a Dictionary\n\n        Returns:\n            dict: Card Token creation response\n        \"\"\"\n        if not isinstance(card_token_object, dict):\n            raise ValueError(\"Param card_token_object must be a Dictionary\")\n\n        return self._post(uri=\"/v1/card_tokens\", data=card_token_object,\n                          request_options=request_options)\n"
  },
  {
    "path": "mercadopago/resources/chargeback.py",
    "content": "\"\"\"\n    Module: chargeback\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass Chargeback(MPBase):\n    \"\"\"\n    Access to Chargebacks\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/pt/guides/manage-account/account/chargebacks)  # pylint: disable=line-too-long\n    \"\"\"\n\n    def search(self, filters=None, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/pt/reference/chargebacks/_chargebacks_search/get)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Chargeback find response\n        \"\"\"\n        return self._get(uri=\"/v1/chargebacks/search\", filters=filters,\n                         request_options=request_options)\n\n    def get(self, chargeback_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/pt/reference/chargebacks/_chargebacks_id/get)  # pylint: disable=line-too-long\n\n        Args:\n            chargeback_id (str): The Chargeback ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Chargeback find response\n        \"\"\"\n        return self._get(uri=\"/v1/chargebacks/\" + str(chargeback_id),\n                         request_options=request_options)\n"
  },
  {
    "path": "mercadopago/resources/customer.py",
    "content": "\"\"\"\n    Module: customer\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass Customer(MPBase):\n    \"\"\"\n    This class allows you to store customers data safely to improve the shopping experience.\n\n    This will allow your customer to complete their purchases much faster and easily when\n    used in conjunction with the Cards class.\n\n    [Click here for more info](https://mercadopago.com.br/developers/en/guides/online-payments/web-tokenize-checkout/customers-and-cards)  # pylint: disable=line-too-long\n    \"\"\"\n\n    def search(self, filters=None, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Customer find response\n        \"\"\"\n        return self._get(uri=\"/v1/customers/search\", filters=filters,\n                         request_options=request_options)\n\n    def get(self, customer_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/customers/_customers_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Customer find response\n        \"\"\"\n        return self._get(uri=\"/v1/customers/\" + str(customer_id), request_options=request_options)\n\n    def create(self, customer_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers/post/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_object (dict): Customer object to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param customer_object must be a Dictionary\n\n        Returns:\n            dict: Customer creation response\n        \"\"\"\n        if not isinstance(customer_object, dict):\n            raise ValueError(\"Param customer_object must be a Dictionary\")\n\n        return self._post(uri=\"/v1/customers\", data=customer_object,\n                          request_options=request_options)\n\n    def update(self, customer_id, customer_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/customers/_customers_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            customer_id (str): The Customer ID owner\n            customer_object (dict): Customer object to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValeuError: Param customer_object must be a Dictionary\n\n        Returns:\n            dict: Customer modification response\n        \"\"\"\n        if not isinstance(customer_object, dict):\n            raise ValueError(\"Param customer_object must be a Dictionary\")\n\n        return self._put(uri=\"/v1/customers/\" + str(customer_id), data=customer_object,\n                         request_options=request_options)\n\n    def delete(self, customer_id, request_options=None):\n        \"\"\"\n        Args:\n            customer_id (str): The Customer ID owner\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Customer exclusion response\n        \"\"\"\n        return self._delete(uri=\"/v1/customers/\" + str(customer_id),\n                            request_options=request_options)\n"
  },
  {
    "path": "mercadopago/resources/disbursement_refund.py",
    "content": "\"\"\"\n    Module: disbursement_refund\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass DisbursementRefund(MPBase):\n\n    \"\"\"\n    Access to Advanced Payments Refunds\n    \"\"\"\n\n    def list_all(self, advanced_payment_id, request_options=None):\n        \"\"\"[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Disbursement Refund find response\n        \"\"\"\n        uri = f\"/v1/advanced_payments/{str(advanced_payment_id)}/refunds\"\n        return self._get(uri=uri, request_options=request_options)\n\n    def create_all(self, advanced_payment_id, disbursement_refund_object, request_options=None):\n        \"\"\"[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            disbursement_refund_object (dict): Disbursement Refund to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param disbursement_refund_object must be a Dictionary\n\n        Returns:\n            dict: Disbursement Refund creation all response\n        \"\"\"\n        if not isinstance(disbursement_refund_object, dict):\n            raise ValueError(\n                \"Param disbursement_refund_object must be a Dictionary\")\n\n        return self._post(\n            uri=\"/v1/advanced_payments/\" + str(advanced_payment_id) + \"/refunds\",\n            data=disbursement_refund_object,\n            request_options=request_options,\n        )\n\n    def create(self, advanced_payment_id, disbursement_id, amount, request_options=None):\n        \"\"\"[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            disbursement_id (str): Disbursement ID\n            amount: Amount to be refunded\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param amount must be a Float\n\n        Returns:\n            dict: Disbursement Refund creation response\n        \"\"\"\n        if not isinstance(amount, float):\n            raise ValueError(\"Param amount must be a Float\")\n\n        disbursement_refund_object = {\"amount\": amount}\n\n        uri = (\n            f\"/v1/advanced_payments/{str(advanced_payment_id)}\"\n            f\"/disbursements/{str(disbursement_id)}/refunds\"\n        )\n\n        return self._post(\n            uri=uri,\n            data=disbursement_refund_object,\n            request_options=request_options,\n        )\n\n    def save(self, advanced_payment_id, disbursement_id, disbursement_refund_object,\n             request_options=None):\n        \"\"\"[Args:\n            advanced_payment_id (str): The Advanced Payment ID\n            disbursement_id (str): Disbursement ID\n            disbursement_refund_object (dict): Disbursement Refund to be saved\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param disbursement_refund_object must be a Dictionary\n\n        Returns:\n            dict: Disbursement Refund save response\n        \"\"\"\n        if not isinstance(disbursement_refund_object, dict):\n            raise ValueError(\n                \"Param disbursement_refund_object must be a Dictionary\")\n\n        uri = (\n            f\"/v1/advanced_payments/{str(advanced_payment_id)}\"\n            f\"/disbursements/{str(disbursement_id)}/refunds\"\n        )\n\n        return self._post(\n            uri=uri,\n            data=disbursement_refund_object,\n            request_options=request_options,\n        )\n"
  },
  {
    "path": "mercadopago/resources/identification_type.py",
    "content": "\"\"\"\n    Module: identification_type\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass IdentificationType(MPBase):\n    \"\"\"\n    Access to Identification Types\n    \"\"\"\n\n    def list_all(self, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/identification_types/_identification_types/get/)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Identification Types find response\n        \"\"\"\n        return self._get(uri=\"/v1/identification_types\", request_options=request_options)\n\n    @property\n    def request_options(self):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return self.__request_options\n"
  },
  {
    "path": "mercadopago/resources/merchant_order.py",
    "content": "\"\"\"\n    Module: merchant_order\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass MerchantOrder(MPBase):\n    \"\"\"\n    This class will allow you to create and manage your orders. You can attach\n    one or more payments in your merchant order.\n    \"\"\"\n\n    def search(self, filters=None, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Merchant Order find response\n        \"\"\"\n        return self._get(uri=\"/merchant_orders/search\", filters=filters,\n                         request_options=request_options)\n\n    def get(self, merchan_order_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/cards/_customers_customer_id_cards/get/)  # pylint: disable=line-too-long\n\n        Args:\n            merchan_order_id (str): The Merchant Order ID\n            request_options (mercadopago.config.request_options, optional): An instance of RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.\n\n        Returns:\n            dict: Cards find response\n        \"\"\"\n        return self._get(uri=\"/merchant_orders/\" + str(merchan_order_id),\n                         request_options=request_options)\n\n    def update(self, merchan_order_id, merchant_order_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            merchan_order_id (str): Merchant Order ID\n            merchant_order_object (dict): Merchant Order object to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param merchant_order_object must be a Dictionary\n\n        Returns:\n            dict: Cards modification response\n        \"\"\"\n        if not isinstance(merchant_order_object, dict):\n            raise ValueError(\n                \"Param merchant_order_object must be a Dictionary\")\n\n        return self._put(uri=\"/merchant_orders/\" + str(merchan_order_id),\n                         data=merchant_order_object, request_options=request_options)\n\n    def create(self, merchant_order_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/merchant_orders/_merchant_orders/post/)  # pylint: disable=line-too-long\n\n        Args:\n            merchant_order_object (dict): Merchant Order object to be created\n            request_options (mercadopago.config.request_options, optional): An instance of RequestOptions can be pass\n                changing or adding custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param merchant_order_object must be a Dictionary\n\n        Returns:\n            dict: Cards creation response\n        \"\"\"\n        if not isinstance(merchant_order_object, dict):\n            raise ValueError(\n                \"Param merchant_order_object must be a Dictionary\")\n\n        return self._post(uri=\"/merchant_orders\", data=merchant_order_object,\n                          request_options=request_options)\n"
  },
  {
    "path": "mercadopago/resources/order.py",
    "content": "\"\"\"\n    Module: order\n\"\"\"\nfrom mercadopago.core import MPBase\n\nclass Order(MPBase):\n    \"\"\"\n    This class provides the methods to access the API that will allow you to create\n    your own order experience on your website.\n\n    From basic to advanced configurations, you control the whole experience.\n\n    [Click here for more info](https://www.mercadopago.com/developers/en/guides/online-payments/checkout-api/introduction/)  # pylint: disable=line-too-long\n    \"\"\"\n\n    def search(self, filters=None, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/order/online-payments/search-order/get)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to the REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Order search response\n        \"\"\"\n        return self._get(uri=\"/v1/orders\", filters=filters,\n                         request_options=request_options)\n\n    def create(self, order_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/order/online-payments/create/post/)  # pylint: disable=line-too-long\n\n        Args:\n            order_object (dict): Order to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to the REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param order_object must be a Dictionary\n\n        Returns:\n            dict: Order creation response\n        \"\"\"\n        if not isinstance(order_object, dict):\n            raise ValueError(\"Param order_object must be a Dictionary\")\n\n        return self._post(uri=\"/v1/orders\", data=order_object, request_options=request_options)\n\n    def get(self, order_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/order/online-payments/get-order/get ) # pylint: disable=line-too-long\n\n        Args:\n            order_id (str): The Order ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to the REST call.\n            Defaults to None.\n\n        Raises:\n        ValueError: Param order_id must be a string\n\n        Returns:\n            dict: Order returned in the response to the request made for its creation.\n        \"\"\"\n\n        if not isinstance(order_id, str):\n            raise ValueError(\"Param order_id must be a string\")\n\n        return self._get(uri=\"/v1/orders/\" + str(order_id), request_options=request_options)\n\n    def process(self, order_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/order/online/process-order/post) # pylint: disable=line-too-long\n        Args:\n            order_id (str): ID of the order to be processed. This value is returned in the response to the Create order request.\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to the REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param order_id must be a string\n        Returns:\n            dict: Order returned in the response to the request made for its creation.\n        \"\"\"\n\n        if not isinstance(order_id, str):\n            raise ValueError(\"Param order_id must be a string\")\n\n        return self._post(uri=\"/v1/orders/\" + str(order_id) + \"/process\", request_options=request_options) # pylint: disable=line-too-long\n\n    def cancel(self, order_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/order/online-payments/cancel-order/post) # pylint: disable=line-too-long\n        Args:\n            order_id (str): Order ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to the REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param order_id must be a string\n\n        Returns:\n            dict: Order cancellation response\n        \"\"\"\n        if not isinstance(order_id, str):\n            raise ValueError(\"Param order_id must be a string\")\n\n        return self._post(uri=\"/v1/orders/\" + str(order_id) + \"/cancel\", request_options=request_options) # pylint: disable=line-too-long\n\n    def capture(self, order_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/order/online-payments/capture/post)  # pylint: disable=line-too-long\n        Args:\n            order_id (str): ID of the order to be captured. This value is returned in the response to the Create order request.\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to the REST call.\n            Defaults to None.\n        Raises:\n            ValueError: Param order_id must be a string\n        Returns:\n            dict: Order returned in the response to the request made for its creation.\n        \"\"\"\n\n        if not isinstance(order_id, str):\n            raise ValueError(\"Param order_id must be a string\")\n\n        return self._post(uri=\"/v1/orders/\" + str(order_id) + \"/capture\", request_options=request_options) # pylint: disable=line-too-long\n\n    def create_transaction(self, order_id, transaction_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/order/online-payments/add-transaction/post)  # pylint: disable=line-too-long\n\n        Args:\n            order_id (str): The ID of the order to which the transaction will be added\n            transaction_object (dict): Transaction to be added\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to the REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param transaction_object must be a Dictionary\n\n        Returns:\n            dict: Transaction created response\n        \"\"\"\n        if not isinstance(transaction_object, dict):\n            raise ValueError(\"Param transaction_object must be a Dictionary\")\n\n        response = self._post(uri=f\"/v1/orders/{order_id}/transactions\", data=transaction_object,\n                              request_options=request_options)\n        if response.get(\"status\") != 201:\n            raise Exception(f\"Failed to add transaction: {response}\")  # pylint: disable=broad-exception-raised\n        return response\n\n    def update_transaction(self, order_id, transaction_id, transaction_object, request_options=None): # pylint: disable=line-too-long\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/order/online-payments/update-transaction/put)  # pylint: disable=line-too-long\n\n        Args:\n            order_id (str): The ID of the order to which the transaction belongs\n            transaction_id (str): The ID of the transaction to be updated\n            transaction_object (dict): Transaction details to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to the REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param transaction_object must be a Dictionary\n\n        Returns:\n            dict: Transaction update response\n        \"\"\"\n        if not isinstance(transaction_object, dict):\n            raise ValueError(\"Param transaction_object must be a Dictionary\")\n\n        response = self._put(uri=f\"/v1/orders/{order_id}/transactions/{transaction_id}\",\n                             data=transaction_object, request_options=request_options)\n        if response.get(\"status\") != 200:\n            raise Exception(f\"Failed to update transaction: {response}\")  # pylint: disable=broad-exception-raised\n        return response\n\n    def refund_transaction(self, order_id, transaction_object=None, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/order/online-payments/refund/post)  # pylint: disable=line-too-long\n        Args:\n            order_id (str): The ID of the order to which the transaction belongs\n            transaction_object (dict, optional): Transaction details to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to the REST call.\n            Defaults to None.\n        Raises:\n            ValueError: Param transaction_object must be a Dictionary\n        Returns:\n            dict: Order refunded response\n        \"\"\"\n        if transaction_object is not None and not isinstance(transaction_object, dict):\n            raise ValueError(\"Param transaction_object must be a Dictionary\")\n\n        response = self._post(uri=f\"/v1/orders/{order_id}/refund\", data=transaction_object,\n                              request_options=request_options)\n        if response.get(\"status\") != 201:\n            raise Exception(f\"Failed to refund transaction: {response}\")  # pylint: disable=broad-exception-raised\n        return response\n\n    def delete_transaction(self, order_id, transaction_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/order/online-payments/delete-transaction/delete)  # pylint: disable=line-too-long\n                Args:\n                    order_id (str): The ID of the order to which the transaction belongs\n                    transaction_id (str): The ID of the transaction to be deleted\n                    request_options (mercadopago.config.request_options, optional): An instance of\n                    RequestOptions can be pass changing or adding custom options to the REST call.\n                    Defaults to None.\n                Raises:\n                    ValueError: Params order_id and transaction_id must be strings\n                Returns:\n                    Status 204 - No Content - if deleted successfully\n                \"\"\"\n        if not isinstance(order_id, str) or not isinstance(transaction_id, str):\n            raise ValueError(\"Params order_id and transaction_id must be strings\")\n\n        response = self._delete(uri=f\"/v1/orders/{order_id}/transactions/{transaction_id}\",\n                                request_options=request_options)\n\n        if response.get(\"status\") != 204:\n            raise Exception(f\"Failed to delete transaction: {response}\")  # pylint: disable=broad-exception-raised\n        return response\n"
  },
  {
    "path": "mercadopago/resources/payment.py",
    "content": "\"\"\"\n    Module: payment\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass Payment(MPBase):\n    \"\"\"\n    This class provides the methods to access the API that will allow you to create\n    your own payment experience on your website.\n\n    From basic to advanced configurations, you control the whole experience.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-api/introduction/)  # pylint: disable=line-too-long\n    \"\"\"\n\n    def search(self, filters=None, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments_search/get/)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Payment find response\n        \"\"\"\n        return self._get(uri=\"/v1/payments/search\", filters=filters,\n                         request_options=request_options)\n\n    def get(self, payment_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            payment_id (str): The Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Payment find response\n        \"\"\"\n        return self._get(uri=\"/v1/payments/\" + str(payment_id), request_options=request_options)\n\n    def create(self, payment_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/payments/_payments/post/)  # pylint: disable=line-too-long\n\n        Args:\n            payment_object (dict): Payment to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param payment_object must be a Dictionary\n\n        Returns:\n            dict: Payment creation response\n        \"\"\"\n        if not isinstance(payment_object, dict):\n            raise ValueError(\"Param payment_object must be a Dictionary\")\n\n        return self._post(uri=\"/v1/payments\", data=payment_object, request_options=request_options)\n\n    def update(self, payment_id, payment_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/payments/_payments_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            payment_id (str): The Payment ID\n            payment_object (dict): Payment to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param payment_object must be a Dictionary\n\n        Returns:\n            dict: Payment modification response\n        \"\"\"\n        if not isinstance(payment_object, dict):\n            raise ValueError(\"Param payment_object must be a Dictionary\")\n\n        return self._put(uri=\"/v1/payments/\" + str(payment_id), data=payment_object,\n                         request_options=request_options)\n"
  },
  {
    "path": "mercadopago/resources/payment_methods.py",
    "content": "\"\"\"\n    Module: payment_methods\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass PaymentMethods(MPBase):\n    \"\"\"\n    Access to Payment Methods\n    \"\"\"\n\n    def list_all(self, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/payment_methods/_payment_methods/get/)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Payment Methods find response\n        \"\"\"\n        return self._get(uri=\"/v1/payment_methods\", request_options=request_options)\n\n    @property\n    def request_options(self):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return self.__request_options\n"
  },
  {
    "path": "mercadopago/resources/plan.py",
    "content": "\"\"\"\n    Module: plan\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass Plan(MPBase):\n    \"\"\"\n    This class provides the methods to access the API that will allow you to create, search, get and update Plans to be\n    used as templates for Subscriptions.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/docs/subscriptions/integration-configuration/subscriptions-associated-plan)  # pylint: disable=line-too-long\n    \"\"\"\n\n    def search(self, filters=None, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.co/developers/en/reference/subscriptions/_preapproval_plan_search/get)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Plans found\n        \"\"\"\n        return self._get(\n            uri=\"/preapproval_plan/search\",\n            filters=filters,\n            request_options=request_options)\n\n    def get(self, plan_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.co/developers/en/reference/subscriptions/_preapproval_plan_id/get)  # pylint: disable=line-too-long\n\n        Args:\n            plan_id (str): The plan ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Plan found\n        \"\"\"\n        return self._get(\n            uri=\"/preapproval_plan/\" + str(plan_id),\n            request_options=request_options)\n\n    def create(self, plan_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.co/developers/en/reference/subscriptions/_preapproval_plan/post)  # pylint: disable=line-too-long\n\n        Args:\n            plan_object (dict): Plan to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param plan_object must be a Dictionary\n\n        Returns:\n            dict: Plan creation response\n        \"\"\"\n        if not isinstance(plan_object, dict):\n            raise ValueError(\"Param plan_object must be a Dictionary\")\n\n        return self._post(\n            uri=\"/preapproval_plan\",\n            data=plan_object,\n            request_options=request_options)\n\n    def update(self, plan_id, plan_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.co/developers/en/reference/subscriptions/_preapproval_plan_id/put)  # pylint: disable=line-too-long\n\n        Args:\n            plan_id (str): The plan ID to be updated\n            plan_object (dict): Plan information to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param plan_object must be a Dictionary\n\n        Returns:\n            dict: Plan modification response\n        \"\"\"\n        if not isinstance(plan_object, dict):\n            raise ValueError(\"Param plan_object must be a Dictionary\")\n\n        return self._put(\n            uri=\"/preapproval_plan/\" + str(plan_id),\n            data=plan_object,\n            request_options=request_options)\n"
  },
  {
    "path": "mercadopago/resources/preapproval.py",
    "content": "\"\"\"\n    Module: preapproval\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass PreApproval(MPBase):\n    \"\"\"\n    This class provides the methods to access the API that will allow you to create\n    your own preapproval experience on your website.\n\n    From basic to advanced configurations, you control the whole experience.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/online-payments/subscriptions/introduction)  # pylint: disable=line-too-long\n    \"\"\"\n\n    def __init__(self, request_options, http_client):\n        MPBase.__init__(self, request_options, http_client)\n\n    def search(self, filters=None, request_options=None):\n        \"\"\"Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: PreApproval find response\n        \"\"\"\n        return self._get(uri=\"/preapproval/search\", filters=filters,\n                         request_options=request_options)\n\n    def get(self, preapproval_id, request_options=None):\n        \"\"\"Args:\n            preapproval_id (str): The PreApproval ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: PreApproval find response\n        \"\"\"\n        return self._get(uri=\"/preapproval/\" + str(preapproval_id), request_options=request_options)\n\n    def create(self, preapproval_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/subscriptions/_preapproval/post/)  # pylint: disable=line-too-long\n\n        Args:\n            preapproval_object (dict): PreApproval to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param preapproval_object must be a Dictionary\n\n        Returns:\n            dict: PreApproval creation response\n        \"\"\"\n        if not isinstance(preapproval_object, dict):\n            raise ValueError(\"Param preapproval_object must be a Dictionary\")\n\n        return self._post(uri=\"/preapproval\",\n                          data=preapproval_object, request_options=request_options)\n\n    def update(self, preapproval_id, preapproval_object, request_options=None):\n        \"\"\"Args:\n            preapproval_id (str): The PreApproval ID\n            preapproval_object (dict): PreApproval to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param preapproval_object must be a Dictionary\n\n        Returns:\n            dict: PreApproval modification response\n        \"\"\"\n        if not isinstance(preapproval_object, dict):\n            raise ValueError(\"Param preapproval_object must be a Dictionary\")\n\n        return self._put(uri=\"/preapproval/\" + str(preapproval_id),\n                         data=preapproval_object, request_options=request_options)\n"
  },
  {
    "path": "mercadopago/resources/preference.py",
    "content": "\"\"\"\n    Module: preference\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass Preference(MPBase):\n    \"\"\"\n    This class will allow you to charge your customers through our web form\n    from any device in a simple, fast and secure way.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-pro/introduction)  # pylint: disable=line-too-long\n    \"\"\"\n\n    def get(self, preference_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/get/)  # pylint: disable=line-too-long\n\n        Args:\n            preference_id (str): The Preference ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Preference find response\n        \"\"\"\n        return self._get(uri=\"/checkout/preferences/\" + str(preference_id),\n                         request_options=request_options)\n\n    def update(self, preference_id, preference_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences_id/put/)  # pylint: disable=line-too-long\n\n        Args:\n            preference_id (str): The Preference ID\n            preference_object (dict): Values to be modified\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param preference_object must be a Dictionary\n\n        Returns:\n            dict: Preference modification response\n        \"\"\"\n        if not isinstance(preference_object, dict):\n            raise ValueError(\"Param preference_object must be a Dictionary\")\n\n        return self._put(uri=\"/checkout/preferences/\" + str(preference_id), data=preference_object,\n                         request_options=request_options)\n\n    def create(self, preference_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com/developers/en/reference/preferences/_checkout_preferences/post/) # pylint: disable=line-too-long\n\n        Args:\n            preference_object (dict): Preference object to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n                RequestOptions can be pass changing or adding custom options to ur REST call. Defaults to None.\n\n        Raises:\n            ValueError: Param preference_object must be a Dictionary\n\n        Returns:\n            dict: Preference creation response\n        \"\"\"\n        if not isinstance(preference_object, dict):\n            raise ValueError(\"Param preference_object must be a Dictionary\")\n\n        return self._post(uri=\"/checkout/preferences\", data=preference_object,\n                          request_options=request_options)\n\n    def search(self, filters=None, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.br/developers/en/reference/preferences/_checkout_preferences_search/get)  # pylint: disable=line-too-long\n\n        Args:\n            filters (dict): The search filters parameters\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Preference find response\n        \"\"\"\n\n        return self._get(uri=\"/checkout/preferences/search\", filters=filters,\n                         request_options=request_options)\n"
  },
  {
    "path": "mercadopago/resources/refund.py",
    "content": "\"\"\"\n    Module: refund\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass Refund(MPBase):\n    \"\"\"\n    This class will allow you to refund payments created through the Payments class.\n\n    You can refund a payment within 180 days after it was approved.\n\n    You must have sufficient funds in your account in order to successfully refund\n    the payment amount. Otherwise, you will get a 400 Bad Request error.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/guides/manage-account/account/cancellations-and-refunds#bookmark_refunds)  # pylint: disable=line-too-long\n    \"\"\"\n\n    def list_all(self, payment_id, request_options=None):\n        \"\"\"Args:\n            payment_id (str): The Payment ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: List all refunds of a payment\n        \"\"\"\n        return self._get(uri=\"/v1/payments/\" + str(payment_id) + \"/refunds\",\n                         request_options=request_options)\n\n    def create(self, payment_id, refund_object=None, request_options=None):\n        \"\"\"Args:\n            payment_id (str): The Payment ID\n            refund_object (dict): Refund to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param refund_object must be a Dictionary\n\n        Returns:\n            dict: Refund creation response\n        \"\"\"\n        if refund_object is not None and not isinstance(refund_object, dict):\n            raise ValueError(\"Param refund_object must be a Dictionary\")\n\n        return self._post(uri=\"/v1/payments/\" + str(payment_id) + \"/refunds\",\n                          data=refund_object, request_options=request_options)\n"
  },
  {
    "path": "mercadopago/resources/subscription.py",
    "content": "\"\"\"\n    Module: subscriptions\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass Subscription(MPBase):\n    \"\"\"\n    This class provides the methods to access the API that will allow you to create, search, get and update\n    Subscriptions.\n\n    [Click here for more info](https://www.mercadopago.com.br/developers/en/docs/subscriptions/landing)  # pylint: disable=line-too-long\n    \"\"\"\n\n    def search(self, filters=None, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.co/developers/en/reference/subscriptions/_preapproval_search/get)  # pylint: disable=line-too-long\n\n        Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Subscriptions found\n        \"\"\"\n        return self._get(\n            uri=\"/preapproval/search\",\n            filters=filters,\n            request_options=request_options)\n\n    def get(self, subscription_id, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.co/developers/en/reference/subscriptions/_preapproval_id/get)  # pylint: disable=line-too-long\n\n        Args:\n            subscription_id (str): The subscription ID\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: Subscription found\n        \"\"\"\n        return self._get(\n            uri=\"/preapproval/\" + str(subscription_id),\n            request_options=request_options)\n\n    def create(self, subscription_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.co/developers/en/reference/subscriptions/_preapproval/post)  # pylint: disable=line-too-long\n\n        Args:\n            subscription_object (dict): Subscription to be created\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param payment_object must be a Dictionary\n\n        Returns:\n            dict: Subscription creation response\n        \"\"\"\n        if not isinstance(subscription_object, dict):\n            raise ValueError(\"Param subscription_object must be a Dictionary\")\n\n        return self._post(\n            uri=\"/preapproval\",\n            data=subscription_object,\n            request_options=request_options)\n\n    def update(self, subscription_id, subscription_object, request_options=None):\n        \"\"\"[Click here for more info](https://www.mercadopago.com.co/developers/en/reference/subscriptions/_preapproval_id/put)  # pylint: disable=line-too-long\n\n        Args:\n            subscription_id (str): The subscription ID to be updated\n            subscription_object (dict): Subscription information to be updated\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Raises:\n            ValueError: Param subscription_object must be a Dictionary\n\n        Returns:\n            dict: Subscription modification response\n        \"\"\"\n        if not isinstance(subscription_object, dict):\n            raise ValueError(\"Param subscription_object must be a Dictionary\")\n\n        return self._put(\n            uri=\"/preapproval/\" + str(subscription_id),\n            data=subscription_object,\n            request_options=request_options)\n"
  },
  {
    "path": "mercadopago/resources/user.py",
    "content": "\"\"\"\n    Module: user\n\"\"\"\nfrom mercadopago.core import MPBase\n\n\nclass User(MPBase):\n    \"\"\"\n    Access to Users\n    \"\"\"\n\n    def get(self, request_options=None):\n        \"\"\"Args:\n            request_options (mercadopago.config.request_options, optional): An instance of\n            RequestOptions can be pass changing or adding custom options to ur REST call.\n            Defaults to None.\n\n        Returns:\n            dict: User find response\n        \"\"\"\n        return self._get(uri=\"/users/me\", request_options=request_options)\n\n    @property\n    def request_options(self):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return self.__request_options\n"
  },
  {
    "path": "mercadopago/sdk.py",
    "content": "\"\"\"\nModule: sdk\n\"\"\"\nfrom mercadopago.config import RequestOptions\nfrom mercadopago.http import HttpClient\nfrom mercadopago.resources import (\n    AdvancedPayment,\n    Card,\n    CardToken,\n    Chargeback,\n    Customer,\n    DisbursementRefund,\n    IdentificationType,\n    MerchantOrder,\n    Order,\n    Payment,\n    PaymentMethods,\n    Plan,\n    PreApproval,\n    Preference,\n    Refund,\n    Subscription,\n    User,\n)\n\n\nclass SDK:\n    \"\"\"Generate access to all API' modules, which are:\n\n        1. Advanced Payment\n        2. Card Token\n        3. Card\n        4. Customer\n        5. Disbursement Refund\n        6. Identification Type\n        7. Merchant Order\n        8. Order\n        9. Payment Methods\n        10. Payment\n        11. Preapproval\n        12. Preference\n        13. Refund\n        14. User\n        15. Chargeback\n        16. Subscription\n        17. Plan\n    \"\"\"\n\n    def __init__(\n        self,\n        access_token,\n        http_client=None,\n        request_options=None,\n    ):\n        \"\"\"Construct ur SDK Object to have access to all APIs modules.\n        Args:\n            [Click here for more info](https://www.mercadopago.com/mlb/account/credentials)\n            http_client (mercadopago.http.http_client, optional): An implementation of\n            HttpClient can be pass to be used to make the REST calls. Defaults to None.\n            request_options (mercadopago.config.request_options, optional): An instance\n            of RequestOptions can be pass changing or adding custom options to ur REST\n            calls. Defaults to None.\n        Raises:\n            ValueError: Param request_options must be a RequestOptions Object\n        \"\"\"\n\n        self.http_client = http_client\n        if http_client is None:\n            self.http_client = HttpClient()\n\n        self.request_options = request_options\n        if request_options is None:\n            self.request_options = RequestOptions()\n\n        self.request_options.access_token = access_token\n\n    def advanced_payment(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return AdvancedPayment(request_options is not None and request_options\n                               or self.request_options, self.http_client)\n\n    def card_token(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return CardToken(request_options is not None and request_options\n                         or self.request_options, self.http_client)\n\n    def card(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return Card(request_options is not None and request_options\n                    or self.request_options, self.http_client)\n\n    def customer(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return Customer(request_options is not None and request_options\n                        or self.request_options, self.http_client)\n\n    def disbursement_refund(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return DisbursementRefund(request_options is not None and request_options\n                                  or self.request_options, self.http_client)\n\n    def identification_type(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return IdentificationType(request_options is not None and request_options\n                                  or self.request_options, self.http_client)\n\n    def merchant_order(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return MerchantOrder(request_options is not None and request_options\n                             or self.request_options, self.http_client)\n\n    def order(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return Order(request_options is not None and request_options\n                       or self.request_options, self.http_client)\n\n    def payment(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return Payment(request_options is not None and request_options\n                       or self.request_options, self.http_client)\n\n    def payment_methods(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return PaymentMethods(request_options is not None and request_options\n                              or self.request_options, self.http_client)\n\n    def preapproval(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return PreApproval(request_options is not None and request_options\n                           or self.request_options, self.http_client)\n\n    def preference(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return Preference(request_options is not None and request_options\n                          or self.request_options, self.http_client)\n\n    def refund(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return Refund(request_options is not None and request_options\n                      or self.request_options, self.http_client)\n\n    def user(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return User(request_options is not None and request_options\n                    or self.request_options, self.http_client)\n\n    def chargeback(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return Chargeback(request_options is not None and request_options\n                          or self.request_options, self.http_client)\n\n    def subscription(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return Subscription(request_options is not None and request_options\n                            or self.request_options, self.http_client)\n\n    def plan(self, request_options=None):\n        \"\"\"\n        Returns the attribute value of the function\n        \"\"\"\n        return Plan(request_options is not None and request_options\n                    or self.request_options, self.http_client)\n\n    @property\n    def request_options(self):\n        \"\"\"\n        Sets the attribute value and validates request_options\n        \"\"\"\n        return self.__request_options\n\n    @request_options.setter\n    def request_options(self, value):\n        if value is not None and not isinstance(value, RequestOptions):\n            raise ValueError(\n                \"Param request_options must be a RequestOptions Object\")\n        self.__request_options = value\n\n    @property\n    def http_client(self):\n        \"\"\"\n        Sets the attribute value and validates http_client\n        \"\"\"\n        return self.__http_client\n\n    @http_client.setter\n    def http_client(self, value):\n        if value is not None and not isinstance(value, HttpClient):\n            raise ValueError(\"Param http_client must be a HttpClient Object\")\n        self.__http_client = value\n"
  },
  {
    "path": "pyproject.toml",
    "content": "[build-system]\nrequires = [\"setuptools >= 61.0\"]\nbuild-backend = \"setuptools.build_meta\"\n\n[project]\nname = \"mercadopago\"\nversion = \"2.4.0\"\nauthors = [\n    {name = \"Mercado Pago\", email = \"mp_sdk@mercadopago.com\"}\n]\ndescription = \"Mercadopago SDK module for Payments integration\"\nreadme = \"README.md\"\nkeywords = [\"api\", \"mercadopago\", \"checkout\", \"payment in sdk integration\", \"lts\"]\nlicense = {file = \"LICENSE\"}\nrequires-python = \">=3.7\"\ndependencies = [\n    \"requests\"\n]\nclassifiers = [\n    \"License :: OSI Approved :: MIT License\",\n    \"Operating System :: OS Independent\",\n    \"Topic :: Software Development :: Libraries :: Python Modules\",\n    \"Programming Language :: Python :: 3\",\n    \"Programming Language :: Python :: 3.4\",\n    \"Programming Language :: Python :: 3.5\",\n    \"Programming Language :: Python :: 3.6\",\n    \"Programming Language :: Python :: 3.7\",\n    \"Programming Language :: Python :: 3.8\",\n    \"Programming Language :: Python :: 3.9\",\n    \"Programming Language :: Python :: 3.10\",\n    \"Programming Language :: Python :: 3.11\",\n]\n\n[project.optional-dependencies]\ntesting = [\n   \"unittest\"\n]\n\n[project.urls]\nHomepage = \"https://mercadopago.com\"\nRepository = \"https://github.com/mercadopago/sdk-python\""
  },
  {
    "path": "setup.cfg",
    "content": "[pylint.MASTER]\npy-version = 3.7\n\n[pylint.FORMAT]\nmax-line-length = 100\n\n[isort]\n# Vertical Hanging Indent\nmulti_line_output = 3\n# Formatting settings\nline_length = 120\ninclude_trailing_comma = 1\ncombine_as_imports = 1\nforce_grid_wrap = 2\nuse_parentheses = 1\nforce_sort_within_sections = 1\nlines_after_imports = 2\nskip_glob = *.git/*,*.env/*,*/docs/*,*/build/*,*/.eggs/*,*.egg-info/*\ndefault_section = THIRDPARTY\nsections = FUTURE,STDLIB,THIRDPARTY,CURRENT_PROJECT,LOCALFOLDER,TESTS\nno_lines_before = LOCALFOLDER\n\n# Section for specific project imports\nknown_current_project = mercadopago\nknown_tests = tests\n"
  },
  {
    "path": "tests/.pylintrc",
    "content": "[FORMAT]\nmax-line-length = 100\n\n[MESSAGES CONTROL]\ndisable = missing-docstring,duplicate-code\n"
  },
  {
    "path": "tests/__init__.py",
    "content": ""
  },
  {
    "path": "tests/test_advanced_payment.py",
    "content": "\"\"\"\n    Module: test_advanced_payment\n\"\"\"\nfrom datetime import (\n    datetime,\n    timedelta,\n)\nimport os\nimport unittest\nimport uuid\nimport mercadopago\n\n\nclass TestAdvancedPayment(unittest.TestCase):\n    \"\"\"\n    Test Module: Advanced Payment\n    \"\"\"\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    @unittest.skip(reason=\"Outdated API usage\")\n    def test_all(self):\n        \"\"\"\n        Test Function: Advanced Payment\n        \"\"\"\n        card_token_object = {\n            \"card_number\": \"4074090000000004\",\n            \"security_code\": \"123\",\n            \"expiration_year\": datetime.now().strftime(\"%Y\"),\n            \"expiration_month\": \"12\",\n            \"cardholder\": {\n                \"name\": \"APRO\",\n                \"identification\": {\n                    \"CPF\": \"19119119100\"\n                }\n            }\n        }\n\n        card_token_created = self.sdk.card_token().create(card_token_object)\n\n        advanced_payment_object = {\n            \"application_id\": \"59441713004005\",\n            \"payments\": [{\n                \"payment_method_id\": \"master\",\n                \"payment_type_id\": \"credit_card\",\n                \"token\": card_token_created[\"response\"][\"id\"],\n                \"date_of_expiration\": (datetime.now() + timedelta(days=10))\n                .strftime(\"%Y-%m-%d %H:%M:%S.%f\"),\n                \"transaction_amount\": 100.0,\n                \"installments\": 1,\n                \"processing_mode\": \"aggregator\",\n                \"description\": \"description\",\n                \"external_reference\": str(uuid.uuid4().int),\n                \"statement_descriptor\": \"ADVPAY\"\n            }],\n            \"disbursements\": [{\n                \"collector_id\": \"488656838\",\n                \"amount\": 60.0,\n                \"external_reference\": \"Seller2\" + str(uuid.uuid4().int),\n                \"application_fee\": 0.5\n            }],\n            \"payer\": {\n                \"id\": \"649457098-FybpOkG6zH8QRm\",\n                \"type\": \"customer\",\n                \"email\": \"test_payer_9999988@testuser.com\",\n                \"first_name\": \"Test\",\n                \"last_name\": \"User\",\n                \"address\": {\n                    \"zip_code\": \"06233200\",\n                    \"street_name\": \"Street\",\n                    \"street_number\": 123\n                },\n                \"identification\": {\n                    \"type\": \"CPF\",\n                    \"number\": \"19119119100\"\n                }\n            },\n            \"external_reference\": \"Adv\" + str(uuid.uuid4().int),\n            \"description\": \"description\",\n            \"binary_mode\": False,\n            \"capture\": False,\n            \"additional_info\": {\n                \"ip_address\": \"127.0.0.1\",\n                \"payer\": {\n                    \"first_name\": \"Test\",\n                    \"last_name\": \"User\",\n                    \"registration_date\": (datetime.now() - timedelta(days=10))\n                    .strftime(\"%Y-%m-%d %H:%M:%S.%f\")\n                },\n                \"items\": [{\n                    \"id\": \"123\",\n                    \"title\": \"title\",\n                    \"picture_url\": \"https://www.mercadopago.com/logomp3.gif\",\n                    \"description\": \"description\",\n                    \"category_id\": \"category\",\n                    \"quantity\": 1,\n                    \"unit_price\": 100.0\n                }],\n                \"shipments\": {\n                    \"receiver_address\": {\n                        \"zip_code\": \"06233200\",\n                        \"street_name\": \"Street\",\n                        \"street_number\": 123\n                    }\n                }\n            }\n        }\n\n        advanced_payment_created = self.sdk.advanced_payment().create(advanced_payment_object)\n        self.assertEqual(advanced_payment_created[\"status\"], 201)\n\n        advanced_payment_found = self.sdk.advanced_payment().get(\n            advanced_payment_created[\"response\"][\"id\"])\n        self.assertEqual(advanced_payment_found[\"status\"], 200)\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_card.py",
    "content": "\"\"\"\n    Module: test_card\n\"\"\"\nfrom datetime import datetime\nimport os\nimport random\nimport unittest\nimport mercadopago\n\n\nclass TestCard(unittest.TestCase):\n    \"\"\"\n    Test Module: Card\n    \"\"\"\n\n    _customer_id = None\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    @classmethod\n    def setUpClass(cls):\n        customer_data = cls.create_customer()\n        cls._customer_id = customer_data[\"response\"][\"id\"]\n\n    @classmethod\n    def tearDownClass(cls):\n        cls.delete_customer()\n\n    def test_all(self):\n        \"\"\"\n        Test Function: Card\n        \"\"\"\n\n        card_token_object = {\n            \"card_number\": \"4074090000000004\",\n            \"security_code\": \"123\",\n            \"expiration_year\": datetime.now().strftime(\"%Y\"),\n            \"expiration_month\": \"12\",\n            \"cardholder\": {\n                \"name\": \"APRO\",\n                \"identification\": {\n                    \"CPF\": \"19119119100\"\n                }\n            }\n        }\n\n        card_token_created = self.sdk.card_token().create(card_token_object)\n\n        card_object = {\n            \"customer_id\": self._customer_id,\n            \"token\": card_token_created[\"response\"][\"id\"]\n        }\n\n        card_created = self.sdk.card().create(self._customer_id, card_object)\n        self.assertIn(card_created[\"status\"], [200, 201])\n        self.assertEqual(self.sdk.card().get(\n            self._customer_id, card_created[\"response\"][\"id\"])[\"status\"], 200)\n\n        self.sdk.card().delete(self._customer_id, card_created[\"response\"][\"id\"])\n\n    @classmethod\n    def create_customer(cls):\n        random_email_id = random.randint(100000, 999999)\n        customer_object = {\n            \"email\": f\"test_payer_{random_email_id}@testuser.com\",\n            \"first_name\": \"Rafa\",\n            \"last_name\": \"Williner\",\n            \"phone\": {\n                \"area_code\": \"03492\",\n                \"number\": \"432334\"\n            },\n            \"identification\": {\n                \"type\": \"DNI\",\n                \"number\": \"29804555\"\n            },\n            \"description\": \"customer description\"\n        }\n\n        return cls.sdk.customer().create(customer_object)\n\n    @classmethod\n    def delete_customer(cls):\n        cls.sdk.customer().delete(cls._customer_id)\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_card_token.py",
    "content": "\"\"\"\n    Module: test_card_token\n\"\"\"\nfrom datetime import datetime\nimport os\nimport unittest\nimport mercadopago\n\n\nclass TestCardToken(unittest.TestCase):\n    \"\"\"\n    Test Module: Card Token\n    \"\"\"\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    def test_all(self):\n        \"\"\"\n        Test Function: Card Token\n        \"\"\"\n        card_token_object = {\n            \"card_number\": \"4074090000000004\",\n            \"security_code\": \"123\",\n            \"expiration_year\": datetime.now().strftime(\"%Y\"),\n            \"expiration_month\": \"12\",\n            \"cardholder\": {\n                \"name\": \"APRO\",\n                \"identification\": {\n                    \"CPF\": \"19119119100\"\n                }\n            }\n        }\n\n        card_token_created = self.sdk.card_token().create(card_token_object)\n\n        self.assertEqual(card_token_created[\"status\"], 201)\n        self.assertEqual(self.sdk.card_token()\n                         .get(card_token_created[\"response\"][\"id\"])[\"status\"], 200)\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_chargeback.py",
    "content": "\"\"\"\n    Module: test_chargeback\n\"\"\"\nimport os\nimport unittest\nimport mercadopago\n\n\nclass TestChargeback(unittest.TestCase):\n    \"\"\"\n    Test Module: Chargeback\n    \"\"\"\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    def test_search_chargeback(self):\n        \"\"\"\n        Test Function: Chargeback\n        \"\"\"\n        filters_chargeback = {\n            \"payment_id\": \"12345\"\n        }\n\n        chargebacks = self.sdk.chargeback().search(filters=filters_chargeback)\n        self.assertEqual(chargebacks[\"status\"], 200)\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_customer.py",
    "content": "\"\"\"\n    Module: test_customer\n\"\"\"\nimport os\nimport random\nimport unittest\nimport mercadopago\n\n\nclass TestCustomer(unittest.TestCase):\n    \"\"\"\n    Test Module: Customer\n    \"\"\"\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    def test_all(self):\n        \"\"\"\n        Test Function: Customer\n        \"\"\"\n        random_email_id = random.randint(100000, 999999)\n        customer_object = {\n            \"email\": f\"test_payer_{random_email_id}@testuser.com\",\n            \"first_name\": \"Katniss\",\n            \"last_name\": \"Everdeen\",\n            \"phone\": {\n                \"area_code\": \"03492\",\n                \"number\": \"432334\"\n            },\n            \"identification\": {\n                \"type\": \"DNI\",\n                \"number\": \"29804555\"\n            },\n            \"description\": \"customer description\"\n        }\n\n        customer_saved = self.sdk.customer().create(customer_object)\n        self.assertEqual(201, customer_saved[\"status\"])\n\n        customer_update = self.sdk.customer().update(\n            customer_saved[\"response\"][\"id\"], {\"last_name\": \"Payer\"})\n        self.assertEqual(200, customer_update[\"status\"])\n\n        customer_updated = self.sdk.customer().get(customer_saved[\"response\"][\"id\"])\n        self.assertEqual(customer_updated[\"response\"][\"last_name\"], \"Payer\")\n\n        customer_deleted = self.sdk.customer().delete(customer_saved[\"response\"][\"id\"])\n        self.assertEqual(200, customer_deleted[\"status\"])\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_identification_type.py",
    "content": "\"\"\"\n    Module: test_identification_type\n\"\"\"\nimport os\nimport unittest\nimport mercadopago\n\n\nclass TestIdentificationType(unittest.TestCase):\n    \"\"\"\n    Test Module: Identification Type\n    \"\"\"\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    def test_find_all(self):\n        \"\"\"\n        Test Function: Identification Type\n        \"\"\"\n        identifications = self.sdk.identification_type().list_all()\n        self.assertEqual(identifications[\"status\"], 200)\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_merchant_order.py",
    "content": "\"\"\"\n    Module: test_merchant_order\n\"\"\"\nimport os\nimport unittest\nimport uuid\nimport mercadopago\n\n\nclass TestMerchantOrder(unittest.TestCase):\n    \"\"\"\n    Test Module: Merchant Order\n    \"\"\"\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    def test_all(self):\n        \"\"\"\n        Test Function: Merchant Order\n        \"\"\"\n        preference_object = {\n            \"items\": [\n                {\n                    \"description\": \"Test Update Success\",\n                    \"id\": \"5678\",\n                    \"picture_url\": \"http://product1.image.png\",\n                    \"quantity\": 1,\n                    \"title\": \"Item 1\",\n                    \"currency_id\": \"BRL\",\n                    \"unit_price\": 20.5\n                }\n            ]\n        }\n\n        preference_saved = self.sdk.preference().create(preference_object)\n        merchant_order_object = {\n            \"preference_id\": preference_saved[\"response\"][\"id\"],\n            \"site_id\": \"MLB\",\n            \"notification_url\": \"https://seller/notification\",\n            \"additional_info\": \"Aditional info\",\n            \"external_reference\": str(uuid.uuid4().int),\n            \"marketplace\": \"NONE\",\n            \"items\": [{\n                \"description\": \"Test Update Success\",\n                \"id\": \"5678\",\n                \"picture_url\": \"http://product1.image.png\",\n                \"quantity\": 1,\n                \"title\": \"Item 1\",\n                \"currency_id\": \"BRL\",\n                \"unit_price\": 20.5\n            }]\n        }\n\n        merchant_order_created = self.sdk.merchant_order().create(merchant_order_object)\n        self.assertEqual(merchant_order_created[\"status\"], 201)\n\n        merchant_order_updated = self.sdk.merchant_order().update(\n            merchant_order_created[\"response\"][\"id\"], {\"additional_info\": \"Info 2\"})\n        self.assertEqual(merchant_order_updated[\"status\"], 200)\n\n        merchant_order_finded = self.sdk.merchant_order().get(\n            merchant_order_created[\"response\"][\"id\"])\n        self.assertEqual(merchant_order_finded[\"status\"], 200)\n        self.assertEqual(\n            merchant_order_finded[\"response\"][\"additional_info\"], \"Info 2\")\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_order.py",
    "content": "\"\"\"\n    Module: test_order\n\"\"\"\nimport os\nimport time\nimport unittest\nimport random\nfrom time import sleep\n\nimport mercadopago\n\n\nclass TestOrder(unittest.TestCase):\n    \"\"\"\n    Test Module: Order\n    \"\"\"\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    def create_master_test_card(self, status=\"APRO\"):\n        card_token_object = {\n            \"card_number\": \"5031433215406351\",\n            \"security_code\": \"123\",\n            \"expiration_year\": \"2030\",\n            \"expiration_month\": \"11\",\n            \"cardholder\": {\"name\": status}\n        }\n        card_token_created = self.sdk.card_token().create(card_token_object)\n        return card_token_created[\"response\"][\"id\"]\n\n    def create_visa_test_card(self, status=\"APRO\"):\n        card_token_object = {\n            \"card_number\": \"4235647728025682\",\n            \"security_code\": \"123\",\n            \"expiration_year\": \"2030\",\n            \"expiration_month\": \"11\",\n            \"cardholder\": {\"name\": status}\n        }\n        card_token_created = self.sdk.card_token().create(card_token_object)\n        return card_token_created[\"response\"][\"id\"]\n\n    def create_order_canceled_or_captured(self, card_token_id):\n        random_email_id = random.randint(100000, 999999)\n        order_object_cc = {\n            \"type\": \"online\",\n            \"processing_mode\": \"automatic\",\n            \"total_amount\": \"200.00\",\n            \"external_reference\": \"ext_ref_1234\",\n            \"payer\": {\n                \"email\": f\"test_payer_{random_email_id}@testuser.com\"\n            },\n            \"capture_mode\": \"manual\",\n            \"transactions\": {\n                \"payments\": [\n                    {\n                        \"amount\": \"200.00\",\n                        \"payment_method\": {\n                            \"id\": \"master\",\n                            \"type\": \"credit_card\",\n                            \"token\": card_token_id,\n                            \"installments\": 1\n                        }\n                    }\n                ]\n            }\n        }\n        order_created = self.sdk.order().create(order_object_cc)\n        if order_created.get(\"status\") != 201 or not order_created.get(\"response\"):\n            self.fail(f\"Failed to create order: {order_created}\")\n        return order_created[\"response\"][\"id\"]\n\n    def create_order_builder_mode(self):\n        random_email_id = random.randint(100000, 999999)\n        order_object_cc = {\n            \"type\": \"online\",\n            \"processing_mode\": \"manual\",\n            \"total_amount\": \"200.00\",\n            \"external_reference\": \"ext_ref_1234\",\n            \"payer\": {\n                \"email\": f\"test_payer_{random_email_id}@testuser.com\"\n            },\n        }\n        order_created = self.sdk.order().create(order_object_cc)\n        if order_created.get(\"status\") != 201 or not order_created.get(\"response\"):\n            self.fail(f\"Failed to create order: {order_created}\")\n        return order_created[\"response\"][\"id\"]\n\n    def create_order_oneshot_mode_complete(self, card_token_id):\n        random_email_id = random.randint(100000, 999999)\n        order_mode_oneshot_complete = {\n            \"type\": \"online\",\n            \"processing_mode\": \"automatic\",\n            \"total_amount\": \"200.00\",\n            \"external_reference\": \"ext_ref_1234\",\n            \"transactions\": {\n                \"payments\": [\n                    {\n                        \"amount\": \"200.00\",\n                        \"payment_method\": {\n                            \"id\": \"master\",\n                            \"type\": \"credit_card\",\n                            \"token\": card_token_id,\n                            \"installments\": 1\n                        }\n                    }\n                ]\n            },\n            \"payer\": {\n                \"email\": f\"test_payer_{random_email_id}@testuser.com\"\n            }\n        }\n\n        order_created = self.sdk.order().create(order_mode_oneshot_complete)\n\n\n        if order_created.get(\"status\") != 201 or not order_created.get(\"response\"):\n            self.fail(f\"Failed to create order: {order_created}\")\n        return order_created[\"response\"]\n\n    def create_order_builder_mode_complete(self, card_token_id):\n        random_email_id = random.randint(100000, 999999)\n        order_mode_builder_complete = {\n            \"type\": \"online\",\n            \"processing_mode\": \"manual\",\n            \"total_amount\": \"200.00\",\n            \"external_reference\": \"ext_ref_1234\",\n            \"transactions\": {\n                \"payments\": [\n                    {\n                        \"amount\": \"200.00\",\n                        \"payment_method\": {\n                            \"id\": \"master\",\n                            \"type\": \"credit_card\",\n                            \"token\": card_token_id,\n                            \"installments\": 12\n                        }\n                    }\n                ]\n            },\n            \"payer\": {\n                \"email\": f\"test_payer_{random_email_id}@testuser.com\"\n            }\n        }\n\n        order_created = self.sdk.order().create(order_mode_builder_complete)\n\n\n        if order_created.get(\"status\") != 201 or not order_created.get(\"response\"):\n            self.fail(f\"Failed to create order: {order_created}\")\n        return order_created[\"response\"]\n\n    def test_create_order_and_get_by_id(self):\n        \"\"\"\n        Test Function: Create an Order and Get an Order by ID\n        \"\"\"\n        card_token_id = self.create_master_test_card()\n        random_email_id = random.randint(100000, 999999)\n        order_object = {\n            \"type\": \"online\",\n            \"total_amount\": \"1000.00\",\n            \"external_reference\": \"ext_ref_1234\",\n            \"transactions\": {\n            \"payments\": [\n                {\n                \"amount\": \"1000.00\",\n                \"payment_method\": {\n                    \"id\": \"master\",\n                    \"type\": \"credit_card\",\n                    \"token\": card_token_id,\n                    \"installments\": 12\n                }\n                }\n            ]\n            },\n            \"payer\": {\n            \"email\": f\"test_payer_{random_email_id}@testuser.com\"\n            }\n        }\n\n        order_created = self.sdk.order().create(order_object)\n        self.assertEqual(order_created[\"status\"], 201)\n        self.assertEqual(order_created[\"response\"][\"status\"], \"processed\")\n\n        order_get =  self.sdk.order().get(order_created[\"response\"][\"id\"])\n        self.assertEqual(order_get[\"status\"], 200)\n\n    def test_process_order(self):\n        card_token_id = self.create_master_test_card()\n        random_email_id = random.randint(100000, 999999)\n        order_object = {\n            \"type\": \"online\",\n            \"processing_mode\": \"manual\",\n            \"external_reference\": \"ext_ref_1234\",\n            \"total_amount\": \"200.00\",\n            \"transactions\": {\n                \"payments\": [\n                    {\n                        \"amount\": \"200.00\",\n                        \"payment_method\": {\n                            \"id\": \"master\",\n                            \"type\": \"credit_card\",\n                            \"token\": card_token_id,\n                            \"installments\": 1\n                        }\n                    }\n                ]\n            },\n            \"payer\": {\n                \"email\": f\"test_payer_{random_email_id}@testuser.com\"\n            }\n        }\n\n        order_created = self.sdk.order().create(order_object)\n        order_id = order_created[\"response\"][\"id\"]\n        process_response = self.sdk.order().process(order_id)\n        if process_response.get(\"status\") != 200 or not process_response.get(\"response\"):\n            self.fail(f\"Failed to create an order: {process_response}\")\n        self.assertEqual(process_response[\"status\"], 200,\n        \"Invalid HTTP status when processing the order\")\n\n    def test_cancel_order(self):\n        card_token_id = self.create_master_test_card()\n        order_id = self.create_order_canceled_or_captured(card_token_id)\n        time.sleep(4)\n        order_canceled = self.sdk.order().cancel(order_id)\n        self.assertEqual(order_canceled[\"status\"], 200)\n        self.assertEqual(order_canceled[\"response\"][\"status\"], \"canceled\")\n\n    def test_capture_order(self):\n        card_token_id = self.create_master_test_card()\n        order_id = self.create_order_canceled_or_captured(card_token_id)\n        order_captured = self.sdk.order().capture(order_id)\n        self.assertEqual(order_captured[\"status\"], 200)\n        self.assertEqual(order_captured[\"response\"][\"status\"], \"processed\")\n\n    def test_create_transaction(self):\n        card_token_id = self.create_master_test_card()\n        order_id = self.create_order_builder_mode()\n        transaction_object = {\n            \"payments\": [\n                {\n                    \"amount\": \"200.00\",\n                    \"payment_method\": {\n                        \"id\": \"master\",\n                        \"type\": \"credit_card\",\n                        \"token\": card_token_id,\n                        \"installments\": 12\n                    }\n                }\n            ]\n        }\n\n        transaction_created = self.sdk.order().create_transaction(order_id, transaction_object)\n        self.assertEqual(transaction_created[\"status\"], 201)\n\n    def test_update_transaction(self):\n        card_token_id = self.create_master_test_card()\n        order_created = self.create_order_builder_mode_complete(card_token_id)\n        order_id = order_created[\"id\"]\n        transaction_id = order_created[\"transactions\"][\"payments\"][0][\"id\"]\n        new_card_token_id = self.create_visa_test_card()\n\n        transaction_update = {\n            \"payment_method\": {\n                \"id\": \"visa\",\n                \"type\": \"credit_card\",\n                \"token\": new_card_token_id,\n                \"installments\": 5\n            }\n        }\n\n        transaction_updated = self.sdk.order().update_transaction(order_id, transaction_id,\n         transaction_update)\n        self.assertEqual(transaction_updated[\"status\"], 200)\n\n    def test_partial_refund_transaction(self):\n        card_token_id = self.create_master_test_card()\n        order_created = self.create_order_oneshot_mode_complete(card_token_id)\n        order_id = order_created[\"id\"]\n        transaction_id = order_created[\"transactions\"][\"payments\"][0][\"id\"]\n\n        transaction_refund = {\n          \"transactions\": [\n            {\n              \"id\": transaction_id,\n              \"amount\": \"25.00\"\n            }\n          ]\n        }\n\n        sleep(3)\n\n        transaction_refunded = self.sdk.order().refund_transaction(order_id, transaction_refund)\n        self.assertIn(transaction_refunded[\"status\"], [ 201],\n                      f\"Unexpected status code for refund: {transaction_refunded['status']}.\"\n                      \" Response: {transaction_refunded}\")\n\n    def test_refund_transaction(self):\n        card_token_id = self.create_master_test_card()\n        order_created = self.create_order_oneshot_mode_complete(card_token_id)\n        order_id = order_created[\"id\"]\n        sleep(3)\n        transaction_refunded = self.sdk.order().refund_transaction(order_id)\n        self.assertIn(transaction_refunded[\"status\"], [ 201],\n                      f\"Unexpected status code for refund: {transaction_refunded['status']}.\"\n                      \" Response: {transaction_refunded}\")\n\n    def test_delete_transaction(self):\n        card_token_id = self.create_master_test_card()\n        order_created = self.create_order_builder_mode_complete(card_token_id)\n        order_id = order_created[\"id\"]\n        transaction_id = order_created[\"transactions\"][\"payments\"][0][\"id\"]\n        sleep(3)\n\n        transaction_deleted = self.sdk.order().delete_transaction(order_id, transaction_id)\n        self.assertEqual(transaction_deleted[\"status\"], 204)\n\n    def test_search_order(self):\n        \"\"\"\n        Test Function: Search Orders\n        \"\"\"\n        search_response = self.sdk.order().search(filters={\"limit\": 5, \"offset\": 0})\n        self.assertEqual(search_response[\"status\"], 200)\n        self.assertIn(\"data\", search_response[\"response\"])\n        self.assertIn(\"paging\", search_response[\"response\"])\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_payment.py",
    "content": "\"\"\"\n    Module: test_payment\n\"\"\"\nfrom datetime import datetime\nimport os\nimport unittest\nimport mercadopago\n\n\nclass TestPayment(unittest.TestCase):\n    \"\"\"\n    Test Module: Payment\n    \"\"\"\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    def test_create_and_find(self):\n        \"\"\"\n        Test Function: Payment\n        \"\"\"\n        card_token_object = {\n            \"card_number\": \"4074090000000004\",\n            \"security_code\": \"123\",\n            \"expiration_year\": datetime.now().strftime(\"%Y\"),\n            \"expiration_month\": \"12\",\n            \"cardholder\": {\n                \"name\": \"APRO\",\n                \"identification\": {\n                    \"CPF\": \"19119119100\"\n                }\n            }\n        }\n\n        card_token_created = self.sdk.card_token().create(card_token_object)\n\n        payment_object = {\n            \"token\": card_token_created[\"response\"][\"id\"],\n            \"installments\": 1,\n            \"transaction_amount\": 58.80,\n            \"description\": \"Point Mini a maquininha que dá o dinheiro de suas vendas na hora\",\n            \"payment_method_id\": \"visa\",\n            \"payer\": {\n                \"email\": \"test_user_123456@testuser.com\",\n                \"identification\": {\n                    \"number\": \"19119119100\",\n                    \"type\": \"CPF\"\n                }\n            },\n            \"notification_url\": \"https://www.suaurl.com/notificacoes/\",\n            \"sponsor_id\": None,\n            \"binary_mode\": False,\n            \"external_reference\": \"MP0001\",\n            \"statement_descriptor\": \"MercadoPago\",\n            \"additional_info\": {\n                \"items\": [\n                    {\n                        \"id\": \"PR0001\",\n                        \"title\": \"Point Mini\",\n                        \"description\": \"Producto Point para cobros con tarjetas mediante bluetooth\",\n                        \"picture_url\": \"https://http2.mlstatic.com/resources/frontend/statics/growth-sellers-landings/device-mlb-point-i_medium@2x.png\",  # pylint: disable=line-too-long\n                        \"category_id\": \"electronics\",\n                        \"quantity\": 1,\n                        \"unit_price\": 58.80\n                    }\n                ],\n                \"payer\": {\n                    \"first_name\": \"Nome\",\n                    \"last_name\": \"Sobrenome\",\n                    \"address\": {\n                        \"zip_code\": \"06233-200\",\n                        \"street_name\": \"Av das Nacoes Unidas\",\n                        \"street_number\": 3003\n                    },\n                    \"registration_date\": \"2019-01-01T12:01:01.000-03:00\",\n                    \"phone\": {\n                        \"area_code\": \"011\",\n                        \"number\": \"987654321\"\n                    }\n                },\n                \"shipments\": {\n                    \"receiver_address\": {\n                        \"street_name\": \"Av das Nacoes Unidas\",\n                        \"street_number\": 3003,\n                        \"zip_code\": \"06233200\",\n                        \"city_name\": \"Buzios\",\n                        \"state_name\": \"Rio de Janeiro\"\n                    }\n                }\n            }\n        }\n\n        payment_created = self.sdk.payment().create(payment_object)\n        self.assertEqual(payment_created[\"status\"], 201)\n\n        payment_found = self.sdk.payment().get(\n            payment_created[\"response\"][\"id\"])\n        self.assertEqual(payment_found[\"status\"], 200)\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_payment_methods.py",
    "content": "\"\"\"\n    Module: test_payment_methods\n\"\"\"\nimport os\nimport unittest\nimport mercadopago\n\n\nclass TestPaymentMethods(unittest.TestCase):\n    \"\"\"\n    Test Module: Payment Methods\n    \"\"\"\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    def test_find(self):\n        \"\"\"\n        Test Function: Payment Methods\n        \"\"\"\n        self.assertEqual(self.sdk.payment_methods().list_all()[\"status\"], 200)\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_plan.py",
    "content": "\"\"\"\n    Module: test_plan\n\"\"\"\nimport os\nimport unittest\nimport random\nimport mercadopago\n\n\nclass TestPlan(unittest.TestCase):\n    \"\"\"\n    Test Module: Preference\n    \"\"\"\n\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    def test_all(self):\n        \"\"\"\n        Test Module: Plan\n        \"\"\"\n        random_reason_number = random.randint(100000, 999999)\n        plan_object_all_options_payload = {\n            \"auto_recurring\": {\n                \"frequency\": 1,\n                \"frequency_type\": \"months\",\n                \"repetitions\": 12,\n                \"billing_day\": 5,\n                \"free_trial\": {\n                    \"frequency\": 2,\n                    \"frequency_type\": \"days\"\n                },\n                \"transaction_amount\": 60,\n                \"currency_id\": \"BRL\",\n            },\n            \"back_url\": \"https://www.mercadopago.com.co/subscriptions\",\n            \"reason\": f\"Test Plan #{random_reason_number}\",\n        }\n        plan_object_mandatory_options_payload = {\n            \"auto_recurring\": {\n                \"frequency\": 1,\n                \"frequency_type\": \"months\",\n                \"transaction_amount\": 60,\n                \"currency_id\": \"BRL\",\n            },\n            \"back_url\": \"https://www.mercadopago.com.co/subscriptions\",\n            \"reason\": f\"Test Plan (mandatory) #{random_reason_number}\",\n        }\n\n        plan_response = self.sdk.plan().create(plan_object_all_options_payload)\n        if plan_response.get(\"status\") != 201:\n            print(f\"Plan creation failed: {plan_response}\")\n        self.assertEqual(plan_response[\"status\"], 201)\n\n        plan_object = plan_response[\"response\"]\n        self.assertEqual(plan_object[\"status\"], \"active\")\n\n        # Validate it works with minimal required options\n        plan_mandatory_options = self.sdk.plan().create(\n            plan_object_mandatory_options_payload)\n        self.assertEqual(plan_mandatory_options[\"status\"], 201)\n        self.assertEqual(\n            plan_mandatory_options[\"response\"][\"status\"], \"active\")\n\n        plan_object[\"reason\"] = \"MercadoPago API Test\"\n        update_response = self.sdk.plan().update(\n            plan_object[\"id\"], plan_object)\n        self.assertEqual(update_response[\"status\"], 200)\n        update_object = update_response[\"response\"]\n        self.assertEqual(update_object[\"reason\"], plan_object[\"reason\"])\n        self.assertEqual(update_object[\"status\"], \"active\")\n\n        get_response = self.sdk.plan().get(plan_object[\"id\"])\n        self.assertEqual(get_response[\"status\"], 200)\n        get_object = get_response[\"response\"]\n        self.assertEqual(get_object[\"id\"], plan_object[\"id\"])\n\n        search_response = self.sdk.plan().search()\n        self.assertEqual(search_response[\"status\"], 200)\n        search_object = search_response[\"response\"]\n        self.assertTrue(\"results\" in search_object)\n        self.assertTrue(isinstance(search_object[\"results\"], list))\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_preapproval.py",
    "content": "\"\"\"\n    Module: test_preapproval\n\"\"\"\nimport os\nimport unittest\nimport mercadopago\n\n\nclass TestPreApproval(unittest.TestCase):\n    \"\"\"\n    Test Module: PreApproval\n    \"\"\"\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    def test_create(self):\n        \"\"\"\n            Function: xoxoxoxo\n        \"\"\"\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_preference.py",
    "content": "\"\"\"\n    Module: test_preference\n\"\"\"\nimport os\nimport unittest\nimport time\nimport mercadopago\n\n\nclass TestPreference(unittest.TestCase):\n    \"\"\"\n    Test Module: Preference\n    \"\"\"\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    def test_all(self):\n        \"\"\"\n        Test Module: Preference\n        \"\"\"\n        preference_object = {\n            \"items\": [\n                {\n                    \"description\": \"Test Update Success\",\n                    \"id\": \"456\",\n                    \"picture_url\": \"http://product1.image.png\",\n                    \"quantity\": 1,\n                    \"title\": \"Item 1\",\n                    \"currency_id\": \"BRL\",\n                    \"unit_price\": 20.5\n                }\n            ]\n        }\n        preference_saved = self.sdk.preference().create(preference_object)\n        self.assertEqual(preference_saved[\"status\"], 201)\n        time.sleep(3)\n\n        preference_object[\"items\"][0][\"title\"] = \"Testando 1 2 3\"\n\n        preference_id = preference_saved[\"response\"][\"id\"]\n        preference_update = self.sdk.preference().update(preference_id, preference_object)\n        self.assertEqual(preference_update[\"status\"], 200)\n\n        time.sleep(3)\n        preference_saved = self.sdk.preference().get(preference_id)\n        self.assertEqual(preference_saved[\"status\"], 200)\n        self.assertEqual(preference_saved[\"response\"][\"items\"][0][\"title\"],\n                         preference_object[\"items\"][0][\"title\"])\n\n        time.sleep(3)\n        preference_search = self.sdk.preference().search()\n        self.assertEqual(preference_search[\"status\"], 200)\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_subscription.py",
    "content": "\"\"\"\n    Module: test_plan\n\"\"\"\nfrom datetime import datetime\nimport os\nimport unittest\nimport random\nimport mercadopago\n\n\nclass TestSubscription(unittest.TestCase):\n    \"\"\"\n    Test Module: Preference\n    \"\"\"\n    _customer_id = None\n    _customer_email = None\n    _plan_id = None\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    @classmethod\n    def setUpClass(cls):\n        customer_data = cls.create_customer()\n        cls._customer_id = customer_data[\"response\"][\"id\"]\n        cls._customer_email = customer_data[\"response\"][\"email\"]\n        plan_data = cls.create_plan()\n        if plan_data.get(\"status\") != 201 or \"id\" not in plan_data.get(\"response\", {}):\n            raise RuntimeError(f\"Failed to create plan: {plan_data}\")\n        cls._plan_id = plan_data[\"response\"][\"id\"]\n\n    @classmethod\n    def tearDownClass(cls):\n        cls.delete_customer()\n\n    def test_all(self):\n        \"\"\"\n        Test Module: Subscription\n        \"\"\"\n        card_token = self.create_card_token()\n        card_token_id = card_token['response']['id']\n\n        random_reason_number = random.randint(100000, 999999)\n        subscription_payload = {\n            \"back_url\": \"https://www.mercadopago.com.co/subscriptions\",\n            \"reason\": f\"MercadoPago API Subscription #{random_reason_number}\",\n            \"external_reference\": \"CustomIdentifier\",\n            \"payer_email\": self._customer_email,\n            \"preapproval_plan_id\": self._plan_id,\n            \"card_token_id\": card_token_id,\n            \"status\": \"authorized\",\n            \"auto_recurring\": {\n                \"frequency\": 1,\n                \"frequency_type\": \"months\",\n                \"transaction_amount\": 60,\n                \"currency_id\": \"ARS\"\n            }\n        }\n\n        subscription_response = self.sdk.subscription().create(subscription_payload)\n        self.assertEqual(subscription_response[\"status\"], 201)\n\n        subscription_object = subscription_response['response']\n        self.assertIn('init_point', subscription_object)\n        self.assertEqual(\n            subscription_object[\"external_reference\"], subscription_payload[\"external_reference\"])\n        self.assertEqual(subscription_object[\"status\"], \"authorized\")\n\n        update_payload = {\n            \"reason\": f\"MercadoPago API Subscription A #{random_reason_number}\",\n        }\n        update_response = self.sdk.subscription().update(\n            subscription_object[\"id\"], update_payload)\n        self.assertEqual(update_response[\"status\"], 200)\n        update_object = update_response[\"response\"]\n        self.assertEqual(update_object[\"reason\"], update_payload[\"reason\"])\n\n        get_response = self.sdk.subscription().get(subscription_object[\"id\"])\n        self.assertEqual(get_response[\"status\"], 200)\n        get_object = get_response[\"response\"]\n        self.assertEqual(get_object[\"id\"], subscription_object[\"id\"])\n\n        search_response = self.sdk.subscription().search()\n        self.assertEqual(search_response[\"status\"], 200)\n        search_object = search_response[\"response\"]\n        self.assertTrue(\"results\" in search_object)\n        self.assertTrue(isinstance(search_object[\"results\"], list))\n\n    def test_create_subscriptions_without_a_plan(self):\n        \"\"\"\n        Test Module: Subscription\n\n        Test subscription creation without a plan\n        \"\"\"\n        card_token = self.create_card_token()\n        card_token_id = card_token['response']['id']\n\n        random_reason_number = random.randint(100000, 999999)\n        subscription_payload = {\n            \"back_url\": \"https://www.mercadopago.com.co/subscriptions\",\n            \"reason\": f\"MercadoPago API Subscription B #{random_reason_number}\",\n            \"external_reference\": \"CustomIdentifier\",\n            \"payer_email\": self._customer_email,\n            \"card_token_id\": card_token_id,\n            \"auto_recurring\": {\n                \"frequency\": 1,\n                \"frequency_type\": \"months\",\n                \"transaction_amount\": 60,\n                \"currency_id\": \"BRL\",\n            },\n            \"status\": \"authorized\"\n        }\n\n        subscription_response = self.sdk.subscription().create(subscription_payload)\n        if subscription_response.get(\"status\") != 201:\n            raise RuntimeError(f\"Failed to to create subscription: {subscription_response}\")\n        self.assertEqual(subscription_response[\"status\"], 201)\n\n        subscription_object = subscription_response['response']\n        self.assertIn('init_point', subscription_object)\n        self.assertEqual(\n            subscription_object[\"external_reference\"], subscription_payload[\"external_reference\"])\n        self.assertEqual(subscription_object[\"status\"], \"authorized\")\n\n    @classmethod\n    def create_card_token(cls):\n        card_token_object = {\n            \"card_number\": \"5031433215406351\",\n            \"security_code\": \"123\",\n            \"expiration_year\": datetime.now().strftime(\"%Y\"),\n            \"expiration_month\": \"12\",\n            \"cardholder\": {\n                \"name\": \"APRO\",\n                \"identification\": {\n                    \"CPF\": \"19119119100\"\n                }\n            }\n        }\n        return cls.sdk.card_token().create(card_token_object)\n\n    @classmethod\n    def create_customer(cls):\n        random_email_id = random.randint(100000, 999999)\n        customer_object = {\n            \"email\": f\"test_payer_{random_email_id}@testuser.com\",\n            \"first_name\": \"Python\",\n            \"last_name\": \"Mercado\",\n            \"phone\": {\n                \"area_code\": \"03492\",\n                \"number\": \"432334\"\n            },\n            \"identification\": {\n                \"type\": \"DNI\",\n                \"number\": \"29804555\"\n            },\n            \"description\": \"customer description\"\n        }\n\n        return cls.sdk.customer().create(customer_object)\n\n    @classmethod\n    def delete_customer(cls):\n        cls.sdk.customer().delete(cls._customer_id)\n\n    @classmethod\n    def create_plan(cls):\n        plan_object = {\n            \"auto_recurring\": {\n                \"frequency\": 1,\n                \"frequency_type\": \"months\",\n                \"transaction_amount\": 60,\n                \"currency_id\": \"BRL\",\n            },\n            \"back_url\": \"https://www.mercadopago.com.co/subscriptions\",\n            \"reason\": f\"Test Plan #{random.randint(100000, 999999)}\",\n        }\n        return cls.sdk.plan().create(plan_object)\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  },
  {
    "path": "tests/test_user.py",
    "content": "\"\"\"\n    Module: test_user\n\"\"\"\nimport os\nimport unittest\nimport mercadopago\n\n\nclass TestUser(unittest.TestCase):\n    sdk = mercadopago.SDK(os.environ['ACCESS_TOKEN'])\n\n    def test_find_user(self):\n        self.assertEqual(self.sdk.user().get()[\"status\"], 200)\n\n\nif __name__ == \"__main__\":\n    unittest.main()\n"
  }
]