{ "info": { "author": "T\u00e1ssio Guimar\u00e3es", "author_email": "tassio.acg@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Paggcerto Python API\nThe Paggcerto Python API provides convenient access to the Paggcerto API from applications written in the Python language. \n\n## Quick Install\nThis lib can be found on pip. To install it, use:\n\n\n```\n$ pip install paggcerto-python\n```\n\n## Usage\n\n### Export environment variables\n\n```\nexport PAGGCERTO_API_USER=...\nexport PAGGCERTO_API_PASSWORD=...\nexport PAGGCERTO_API_USE_SANDBOX=True\n```\n\n### Creating a Client\n\n```\nimport python_http_client\nfrom paggcerto import PaggcertoAPIClient, Client, PersonType, SexType, PaymentMethodType\n\napi = PaggcertoAPIClient()\n\nclient = Client(\n cpfCnpj=\"31618850075\",\n name=\"Maria Joao dos Santos\",\n sex=SexType.F,\n dateOfBirth=\"01/25/1978\",\n phone=\"7927667035\",\n cellphone=\"79993764596\",\n email=\"saragabriellyribeiro_@zf.com\",\n typePerson=PersonType.F,\n zipCode=\"49030-720\",\n address=\"Avenida Tancredo Neves\",\n number=\"10\",\n complement=\"Pr\u00f3ximo ao conjunto in\u00e1cio barbosa\",\n neighborhood=\"Inacio Barbosa\",\n city=\"Aracaju\",\n uf=\"SE\",\n note=\"O cliente possui apenas um dependente.\",\n paymentMethod=PaymentMethodType.C\n)\ntry:\n response = api.client.core.client.register.post(request_body=client.get())\n print(response.to_dict['client']['publicId'])\nexcept python_http_client.HTTPError as e:\n print(e.to_dict)\n```\n\n### Adding a credit card\n\n```\nimport python_http_client\nfrom paggcerto import PaggcertoAPIClient, CreditCard, Expiration\n\napi = PaggcertoAPIClient()\n\ncredit_card = CreditCard(\n numberCard=\"4329626344167265\",\n name=\"Maria Joao dos Santos\",\n cvv=\"345\",\n publicIdClient=\"MAY0uoO7mTpO4tBnY\"\n expiration=Expiration(month=\"11\", year=\"21\")\n)\ntry:\n response = api.client.core.card.register.post(request_body=credit_card.get())\n print(response.to_dict['card']['publicId'])\nexcept python_http_client.HTTPError as e:\n print(e.to_dict)\n```\n\n\n## Documentation\n- Paggcerto API Docs\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tassio/paggcerto-python", "keywords": "paggcerto api rest payment", "license": "Apache License", "maintainer": "", "maintainer_email": "", "name": "paggcerto-python", "package_url": "https://pypi.org/project/paggcerto-python/", "platform": "", "project_url": "https://pypi.org/project/paggcerto-python/", "project_urls": { "Bug Reports": "https://github.com/tassio/paggcerto-python/issues", "Homepage": "https://github.com/tassio/paggcerto-python" }, "release_url": "https://pypi.org/project/paggcerto-python/0.0.3/", "requires_dist": [ "python-http-client", "dataclasses", "check-manifest; extra == 'dev'", "coverage; extra == 'test'" ], "requires_python": "", "summary": "Python bindings for Paggcerto API", "version": "0.0.3" }, "last_serial": 4241535, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "b9870404fc4f5986dd2d0fa82381d85f", "sha256": "747dec17c3f2293ba7fb1c2611cca37df2c1c6814636471cd4dc179e40023a99" }, "downloads": -1, "filename": "paggcerto_python-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b9870404fc4f5986dd2d0fa82381d85f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4991, "upload_time": "2018-09-05T16:23:48", "url": "https://files.pythonhosted.org/packages/90/f0/0c972c09ff9449a9b0c3ea0a11a2e594b34f39f2f0597c11c2f0cac8012a/paggcerto_python-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a266526efc8a5dbf2c2620f9f6646190", "sha256": "135047a825d2f135c7c17f40220f9e1892af4945484a4c140b20f51266fcb40e" }, "downloads": -1, "filename": "paggcerto-python-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a266526efc8a5dbf2c2620f9f6646190", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3897, "upload_time": "2018-09-05T16:23:50", "url": "https://files.pythonhosted.org/packages/1c/b1/c0117e0d049fada88aa24daf415090ffa14694767e4b29f5d986f14b43ee/paggcerto-python-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b9870404fc4f5986dd2d0fa82381d85f", "sha256": "747dec17c3f2293ba7fb1c2611cca37df2c1c6814636471cd4dc179e40023a99" }, "downloads": -1, "filename": "paggcerto_python-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b9870404fc4f5986dd2d0fa82381d85f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4991, "upload_time": "2018-09-05T16:23:48", "url": "https://files.pythonhosted.org/packages/90/f0/0c972c09ff9449a9b0c3ea0a11a2e594b34f39f2f0597c11c2f0cac8012a/paggcerto_python-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a266526efc8a5dbf2c2620f9f6646190", "sha256": "135047a825d2f135c7c17f40220f9e1892af4945484a4c140b20f51266fcb40e" }, "downloads": -1, "filename": "paggcerto-python-0.0.3.tar.gz", "has_sig": false, "md5_digest": "a266526efc8a5dbf2c2620f9f6646190", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3897, "upload_time": "2018-09-05T16:23:50", "url": "https://files.pythonhosted.org/packages/1c/b1/c0117e0d049fada88aa24daf415090ffa14694767e4b29f5d986f14b43ee/paggcerto-python-0.0.3.tar.gz" } ] }