Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Sep 5, 2017
1 parent a5ab6c9 commit f453aaa
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -42,7 +42,7 @@

setuptools.setup(
name = "paypal_api",
version = "0.1.4",
version = "0.1.5",
author = "Hive Solutions Lda.",
author_email = "development@hive.pt",
description = "PayPal API Client",
Expand Down
2 changes: 1 addition & 1 deletion src/examples/base.py
Expand Up @@ -42,7 +42,7 @@
import paypal

def get_api():
return paypal.Api(
return paypal.API(
client_id = appier.conf("PAYPAL_ID"),
client_secret = appier.conf("PAYPAL_SECRET")
)
6 changes: 3 additions & 3 deletions src/paypal/__init__.py
Expand Up @@ -38,6 +38,6 @@
from . import payment
from . import webhook

from .base import BASE_URL, SANDBOX_URL, CLIENT_ID, CLIENT_SECRET, Api
from .payment import PaymentApi
from .webhook import WebhookApi
from .base import BASE_URL, SANDBOX_URL, CLIENT_ID, CLIENT_SECRET, API
from .payment import PaymentAPI
from .webhook import WebhookAPI
10 changes: 5 additions & 5 deletions src/paypal/base.py
Expand Up @@ -58,14 +58,14 @@
""" The secret value to be used for situations where
no client secret has been provided to the client """

class Api(
appier.OAuth2Api,
payment.PaymentApi,
webhook.WebhookApi
class API(
appier.OAuth2API,
payment.PaymentAPI,
webhook.WebhookAPI
):

def __init__(self, *args, **kwargs):
appier.OAuth2Api.__init__(self, *args, **kwargs)
appier.OAuth2API.__init__(self, *args, **kwargs)
self.sandbox = appier.conf("PAYPAL_SANDBOX", True, cast = bool)
self.client_id = appier.conf("PAYPAL_ID", CLIENT_ID)
self.client_secret = appier.conf("PAYPAL_SECRET", CLIENT_SECRET)
Expand Down
2 changes: 1 addition & 1 deletion src/paypal/payment.py
Expand Up @@ -37,7 +37,7 @@
__license__ = "Apache License, Version 2.0"
""" The license for the module """

class PaymentApi(object):
class PaymentAPI(object):

def create_payment(
self,
Expand Down
2 changes: 1 addition & 1 deletion src/paypal/webhook.py
Expand Up @@ -37,7 +37,7 @@
__license__ = "Apache License, Version 2.0"
""" The license for the module """

class WebhookApi(object):
class WebhookAPI(object):

def list_webhooks(self):
url = self.base_url + "notifications/webhooks"
Expand Down

0 comments on commit f453aaa

Please sign in to comment.