-
Notifications
You must be signed in to change notification settings - Fork 47
Fix(generator): Correct method signatures and refactor services #393
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4a5849f
fix generation of path param arguments
galesky-a b66bd0e
wip update generator
galesky-a a59c0b9
fix sca imports
galesky-a 4b8d91b
fix tests to use new module structure
galesky-a 0942ea4
remove unused files
galesky-a d53d517
remove sca management apis from release
galesky-a ceee545
add tests for payment urls
galesky-a 83497f0
add new tests and update readme
galesky-a 4be92de
feat: add support for sessionauth endpoints
galesky-a a7506ce
fix: update readme with new lem descriptions
galesky-a File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| from ..base import AdyenServiceBase | ||
| from .balance_control_api import BalanceControlApi | ||
|
|
||
|
|
||
| class AdyenBalanceControlApi(AdyenServiceBase): | ||
| """NOTE: This class is auto generated by OpenAPI Generator | ||
| Ref: https://openapi-generator.tech | ||
| Do not edit the class manually. | ||
| """ | ||
galesky-a marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| def __init__(self, client=None): | ||
| super(AdyenBalanceControlApi, self).__init__(client=client) | ||
| self.balance_control_api = BalanceControlApi(client=client) | ||
6 changes: 3 additions & 3 deletions
6
Adyen/services/balanceControl.py → ...ces/balanceControl/balance_control_api.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
Adyen/services/balancePlatform/transfer_limits_balance_account_level_api.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| from ..base import AdyenServiceBase | ||
|
|
||
|
|
||
| class TransferLimitsBalanceAccountLevelApi(AdyenServiceBase): | ||
| """NOTE: This class is auto generated by OpenAPI Generator | ||
| Ref: https://openapi-generator.tech | ||
| Do not edit the class manually. | ||
| """ | ||
galesky-a marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| def __init__(self, client=None): | ||
| super(TransferLimitsBalanceAccountLevelApi, self).__init__(client=client) | ||
| self.service = "balancePlatform" | ||
| self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2" | ||
|
|
||
| def approve_pending_transfer_limits(self, request, id, idempotency_key=None, **kwargs): | ||
galesky-a marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| """ | ||
| Approve pending transfer limits | ||
| """ | ||
| endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits/approve" | ||
| method = "POST" | ||
| return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
|
||
| def create_transfer_limit(self, request, id, idempotency_key=None, **kwargs): | ||
| """ | ||
| Create a transfer limit | ||
| """ | ||
| endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits" | ||
| method = "POST" | ||
| return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
|
||
| def delete_pending_transfer_limit(self, id, transferLimitId, idempotency_key=None, **kwargs): | ||
| """ | ||
| Delete a scheduled or pending transfer limit | ||
| """ | ||
| endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits/{transferLimitId}" | ||
| method = "DELETE" | ||
| return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
|
||
| def get_current_transfer_limits(self, id, idempotency_key=None, **kwargs): | ||
| """ | ||
| Get all current transfer limits | ||
| """ | ||
| endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits/current" | ||
| method = "GET" | ||
| return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
|
||
| def get_specific_transfer_limit(self, id, transferLimitId, idempotency_key=None, **kwargs): | ||
| """ | ||
| Get the details of a transfer limit | ||
| """ | ||
| endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits/{transferLimitId}" | ||
| method = "GET" | ||
| return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
|
||
| def get_transfer_limits(self, id, idempotency_key=None, **kwargs): | ||
| """ | ||
| Filter and view the transfer limits | ||
| """ | ||
| endpoint = self.baseUrl + f"/balanceAccounts/{id}/transferLimits" | ||
| method = "GET" | ||
| return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
|
||
47 changes: 47 additions & 0 deletions
47
Adyen/services/balancePlatform/transfer_limits_balance_platform_level_api.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| from ..base import AdyenServiceBase | ||
|
|
||
|
|
||
| class TransferLimitsBalancePlatformLevelApi(AdyenServiceBase): | ||
| """NOTE: This class is auto generated by OpenAPI Generator | ||
| Ref: https://openapi-generator.tech | ||
| Do not edit the class manually. | ||
| """ | ||
galesky-a marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| def __init__(self, client=None): | ||
| super(TransferLimitsBalancePlatformLevelApi, self).__init__(client=client) | ||
| self.service = "balancePlatform" | ||
| self.baseUrl = "https://balanceplatform-api-test.adyen.com/bcl/v2" | ||
|
|
||
| def create_transfer_limit(self, request, id, idempotency_key=None, **kwargs): | ||
| """ | ||
| Create a transfer limit | ||
| """ | ||
| endpoint = self.baseUrl + f"/balancePlatforms/{id}/transferLimits" | ||
| method = "POST" | ||
| return self.client.call_adyen_api(request, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
|
||
| def delete_pending_transfer_limit(self, id, transferLimitId, idempotency_key=None, **kwargs): | ||
| """ | ||
| Delete a scheduled or pending transfer limit | ||
| """ | ||
| endpoint = self.baseUrl + f"/balancePlatforms/{id}/transferLimits/{transferLimitId}" | ||
| method = "DELETE" | ||
| return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
|
||
| def get_specific_transfer_limit(self, id, transferLimitId, idempotency_key=None, **kwargs): | ||
| """ | ||
| Get the details of a transfer limit | ||
| """ | ||
| endpoint = self.baseUrl + f"/balancePlatforms/{id}/transferLimits/{transferLimitId}" | ||
| method = "GET" | ||
| return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
|
||
| def get_transfer_limits(self, id, idempotency_key=None, **kwargs): | ||
| """ | ||
| Filter and view the transfer limits | ||
| """ | ||
| endpoint = self.baseUrl + f"/balancePlatforms/{id}/transferLimits" | ||
| method = "GET" | ||
| return self.client.call_adyen_api(None, self.service, method, endpoint, idempotency_key, **kwargs) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| from ..base import AdyenServiceBase | ||
| from .bin_lookup_api import BinLookupApi | ||
|
|
||
|
|
||
| class AdyenBinlookupApi(AdyenServiceBase): | ||
| """NOTE: This class is auto generated by OpenAPI Generator | ||
| Ref: https://openapi-generator.tech | ||
| Do not edit the class manually. | ||
| """ | ||
galesky-a marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| def __init__(self, client=None): | ||
| super(AdyenBinlookupApi, self).__init__(client=client) | ||
| self.bin_lookup_api = BinLookupApi(client=client) | ||
6 changes: 3 additions & 3 deletions
6
Adyen/services/binlookup.py → Adyen/services/binlookup/bin_lookup_api.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| from ..base import AdyenServiceBase | ||
| from .data_protection_api import DataProtectionApi | ||
|
|
||
|
|
||
| class AdyenDataProtectionApi(AdyenServiceBase): | ||
| """NOTE: This class is auto generated by OpenAPI Generator | ||
| Ref: https://openapi-generator.tech | ||
| Do not edit the class manually. | ||
| """ | ||
galesky-a marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| def __init__(self, client=None): | ||
| super(AdyenDataProtectionApi, self).__init__(client=client) | ||
| self.data_protection_api = DataProtectionApi(client=client) | ||
6 changes: 3 additions & 3 deletions
6
Adyen/services/dataProtection.py → ...ces/dataProtection/data_protection_api.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| from ..base import AdyenServiceBase | ||
| from .disputes_api import DisputesApi | ||
|
|
||
|
|
||
| class AdyenDisputesApi(AdyenServiceBase): | ||
| """NOTE: This class is auto generated by OpenAPI Generator | ||
| Ref: https://openapi-generator.tech | ||
| Do not edit the class manually. | ||
| """ | ||
galesky-a marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| def __init__(self, client=None): | ||
| super(AdyenDisputesApi, self).__init__(client=client) | ||
| self.disputes_api = DisputesApi(client=client) | ||
6 changes: 3 additions & 3 deletions
6
Adyen/services/disputes.py → Adyen/services/disputes/disputes_api.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.