Skip to content

Update packages #8

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,12 @@ The current mocked tests are:
* All code in the paddle module should have type hints (checked by mypy)
* Make sure everything is flake8 compliment
* Use `isort` to sort imports and make them easy to read
* We want to keep supporting Python 3.5 for now so no `fstrings` sorry
* Please keep to the same style as the code already (single quotes, line length etc)


## tox

`tox` is set up to help run `pytest` against each of the supported versions (python 3.5+). It will also ensure the above code conventions are adhered to by running `mypy`, `flake8` and `isort` against your code.
`tox` is set up to help run `pytest` against each of the supported versions (python 3.6+). It will also ensure the above code conventions are adhered to by running `mypy`, `flake8` and `isort` against your code.

To use tox you first need to follow the test setup above, then run the tox command:
```bash
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Paddle Client

A python (3.5+) wrapper around the [Paddle.com API](https://developer.paddle.com/api-reference/intro)
A python (3.6+) wrapper around the [Paddle.com API](https://developer.paddle.com/api-reference/intro)

If you are looking at integrating Paddle with Django check out [dj-paddle](https://github.com/paddle-python/dj-paddle)

Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Getting started
===============

Paddle Client is a python (3.5+) wrapper around the `Paddle.com API <https://developer.paddle.com/api-reference/intro>`_
Paddle Client is a python (3.6+) wrapper around the `Paddle.com API <https://developer.paddle.com/api-reference/intro>`_


Paddle authentication
Expand Down
48 changes: 11 additions & 37 deletions paddle/paddle.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,45 +182,19 @@ def post(self, url, **kwargs):
kwargs['method'] = 'POST'
return self.request(**kwargs)

from ._coupons import create_coupon, delete_coupon, list_coupons, update_coupon
from ._licenses import generate_license
from ._modifiers import add_modifier, delete_modifier, list_modifiers
from ._one_off_charges import create_one_off_charge
from ._order_information import get_order_details

from ._user_history import get_user_history

from ._pay_links import create_pay_link
from ._plans import create_plan, get_plan, list_plans
from ._prices import get_prices

from ._coupons import list_coupons
from ._coupons import create_coupon
from ._coupons import delete_coupon
from ._coupons import update_coupon

from ._product_payments import refund_product_payment
from ._products import list_products

from ._licenses import generate_license

from ._pay_links import create_pay_link

from ._subscription_payments import list_subscription_payments, reschedule_subscription_payment
from ._subscription_users import list_subscription_users # NOQA: E501
from ._subscription_users import cancel_subscription, pause_subscription, resume_subscription, update_subscription
from ._transactions import list_transactions

from ._product_payments import refund_product_payment

from ._plans import list_plans
from ._plans import get_plan
from ._plans import create_plan

from ._subscription_users import list_subscription_users
from ._subscription_users import list_subscription_users as list_subscriptions # NOQA: E501
from ._subscription_users import cancel_subscription
from ._subscription_users import update_subscription
from ._subscription_users import pause_subscription
from ._subscription_users import resume_subscription

from ._modifiers import add_modifier
from ._modifiers import delete_modifier
from ._modifiers import list_modifiers

from ._subscription_payments import list_subscription_payments
from ._subscription_payments import reschedule_subscription_payment

from ._one_off_charges import create_one_off_charge

from ._user_history import get_user_history
from ._webhooks import get_webhook_history
Loading