Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: change to complex objects instead of raw dictionaries #1

Merged
merged 11 commits into from
Jan 9, 2025
6 changes: 0 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,3 @@ jobs:
- name: Run tests with pytest
run: |
pytest tests/ -v --cov=barte --cov-report=xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: true
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Barte Python SDK

[![Tests](https://github.com/buser-brasil/barte-python-sdk/actions/workflows/tests.yml/badge.svg)](https://github.com/buser-brasil/barte-python-sdk/actions/workflows/tests.yml)
[![codecov](https://codecov.io/gh/buser-brasil/barte-python-sdk/branch/main/graph/badge.svg)](https://codecov.io/gh/buser-brasil/barte-python-sdk)
[![Tests](https://github.com/buserbrasil/barte-python-sdk/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/buserbrasil/barte-python-sdk/actions/workflows/tests.yml)

A Python SDK for integrating with the Barte payment platform API. This library provides a simple and efficient way to interact with Barte's payment services, allowing you to process payments, manage transactions, and handle customer data securely.

Expand Down Expand Up @@ -36,6 +35,11 @@ card_token = client.create_card_token(
)
```

## Documentation

- [OpenAPI Documentation](https://app.swaggerhub.com/apis-docs/b6782/barte-api/1.0.0#/) - Complete API reference
- [Integration Guide](https://barte.notion.site/Guia-de-Integra-o-d25d74ee606f4b9ab33efd9e6a4ea22e#460c4da9a5904fc79b789492438bafc4) - Detailed integration guide with examples and best practices

## Running Tests

To run the test suite, follow these steps:
Expand Down
4 changes: 4 additions & 0 deletions barte/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from .client import BarteClient
from .models import (
Charge, CardToken, Refund, InstallmentOptions, PixCharge,
Customer, InstallmentSimulation, PixQRCode
)

__version__ = "0.1.0"
Loading
Loading