|
3 | 3 | from __future__ import absolute_import, division, unicode_literals
|
4 | 4 |
|
5 | 5 | from . import util
|
6 |
| -from .util import generate_hpp_sig |
7 | 6 | from .exceptions import (
|
8 | 7 | AdyenAPICommunicationError,
|
9 | 8 | AdyenAPIAuthenticationError,
|
| 9 | + AdyenAPIUnprocessableEntity, |
10 | 10 | AdyenAPIInvalidPermission,
|
11 | 11 | AdyenAPIValidationError,
|
12 | 12 | AdyenInvalidRequestError,
|
|
15 | 15 | from .client import AdyenClient
|
16 | 16 | from .services import (
|
17 | 17 | AdyenBase,
|
18 |
| - AdyenBinLookup, |
19 |
| - AdyenRecurring, |
20 |
| - AdyenPayment, |
21 |
| - AdyenThirdPartyPayout, |
22 |
| - AdyenHPP, |
| 18 | + AdyenPaymentsApi, |
| 19 | + AdyenBinlookupApi, |
| 20 | + AdyenRecurringApi, |
| 21 | + AdyenPayoutsApi, |
| 22 | + AdyenManagementApi, |
23 | 23 | AdyenCheckoutApi,
|
24 |
| - AdyenTerminal |
| 24 | + AdyenTerminalApi, |
| 25 | + AdyenLegalEntityManagementApi, |
| 26 | + AdyenDataProtectionApi, |
| 27 | + AdyenTransfersApi, |
| 28 | + AdyenStoredValueApi, |
| 29 | + AdyenBalancePlatformApi |
25 | 30 | )
|
26 | 31 |
|
27 | 32 | from .httpclient import HTTPClient
|
|
30 | 35 | class Adyen(AdyenBase):
|
31 | 36 | def __init__(self, **kwargs):
|
32 | 37 | self.client = AdyenClient(**kwargs)
|
33 |
| - self.payment = AdyenPayment(client=self.client) |
34 |
| - self.binlookup = AdyenBinLookup(client=self.client) |
35 |
| - self.payout = AdyenThirdPartyPayout(client=self.client) |
36 |
| - self.hpp = AdyenHPP(client=self.client) |
37 |
| - self.recurring = AdyenRecurring(client=self.client) |
| 38 | + self.payment = AdyenPaymentsApi(client=self.client) |
| 39 | + self.binlookup = AdyenBinlookupApi(client=self.client) |
| 40 | + self.payout = AdyenPayoutsApi(client=self.client) |
| 41 | + self.recurring = AdyenRecurringApi(client=self.client) |
38 | 42 | self.checkout = AdyenCheckoutApi(client=self.client)
|
39 |
| - self.terminal = AdyenTerminal(client=self.client) |
| 43 | + self.terminal = AdyenTerminalApi(client=self.client) |
| 44 | + self.management = AdyenManagementApi(client=self.client) |
| 45 | + self.legalEntityManagement = AdyenLegalEntityManagementApi(client=self.client) |
| 46 | + self.dataProtection = AdyenDataProtectionApi(client=self.client) |
| 47 | + self.transfers = AdyenTransfersApi(client=self.client) |
| 48 | + self.storedValue = AdyenStoredValueApi(client=self.client) |
| 49 | + self.balancePlatform = AdyenBalancePlatformApi(client=self.client) |
40 | 50 |
|
41 | 51 |
|
42 | 52 | _base_adyen_obj = Adyen()
|
43 | 53 | recurring = _base_adyen_obj.recurring
|
44 |
| -hpp = _base_adyen_obj.hpp |
45 | 54 | payment = _base_adyen_obj.payment
|
46 | 55 | payout = _base_adyen_obj.payout
|
47 | 56 | checkout = _base_adyen_obj.checkout
|
48 | 57 | binlookup = _base_adyen_obj.binlookup
|
49 | 58 | terminal = _base_adyen_obj.terminal
|
| 59 | +management = _base_adyen_obj.management |
| 60 | +legalEntityManagement = _base_adyen_obj.legalEntityManagement |
| 61 | +dataProtection = _base_adyen_obj.dataProtection |
| 62 | +transfers = _base_adyen_obj.transfers |
| 63 | +storedValue = _base_adyen_obj.storedValue |
| 64 | +balancePlatform = _base_adyen_obj.balancePlatform |
0 commit comments