forked from odoogap/vuestorefront
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applying pre-commit rules and fixing bad code according to it.
- Loading branch information
Showing
60 changed files
with
6,238 additions
and
2,546 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -1,31 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2023 ODOOGAP/PROMPTEQUATION LDA | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
{ | ||
# Application Information | ||
'name': 'Adyen Payment Acquirer to VSF', | ||
'category': 'Accounting/Payment Acquirers', | ||
'version': '16.0.1.0.1', | ||
'summary': 'Adyen Payment Acquirer: Adapting Adyen to VSF', | ||
|
||
"name": "Adyen Payment Acquirer to VSF", | ||
"category": "Accounting/Payment Acquirers", | ||
"version": "16.0.1.0.1", | ||
"summary": "Adyen Payment Acquirer: Adapting Adyen to VSF", | ||
# Author | ||
'author': "OdooGap", | ||
'website': "https://www.odoogap.com/", | ||
'maintainer': 'OdooGap', | ||
'license': 'LGPL-3', | ||
|
||
"author": "OdooGap", | ||
"website": "https://www.odoogap.com/", | ||
"maintainer": "OdooGap", | ||
"license": "LGPL-3", | ||
# Dependencies | ||
'depends': [ | ||
'payment', | ||
'payment_adyen' | ||
], | ||
|
||
"depends": ["payment", "payment_adyen"], | ||
# Views | ||
'data': [], | ||
|
||
"data": [], | ||
# Technical | ||
'installable': True, | ||
'application': False, | ||
'auto_install': False, | ||
"installable": True, | ||
"application": False, | ||
"auto_install": False, | ||
} |
This file contains 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 |
---|---|---|
@@ -1,41 +1,46 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2023 ODOOGAP/PROMPTEQUATION LDA | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from odoo.addons.payment_adyen.const import API_ENDPOINT_VERSIONS, CURRENCY_DECIMALS, RESULT_CODES_MAPPING | ||
from odoo.addons.payment_adyen.const import API_ENDPOINT_VERSIONS, CURRENCY_DECIMALS | ||
|
||
# Endpoints of the API. | ||
# See https://docs.adyen.com/api-explorer/#/CheckoutService/v67/overview for Checkout API | ||
# See https://docs.adyen.com/api-explorer/#/Recurring/v49/overview for Recurring API | ||
API_ENDPOINT_VERSIONS.update({ | ||
'/payments/{}/reversals': 67, # Checkout API | ||
}) | ||
# See for Checkout API: | ||
# https://docs.adyen.com/api-explorer/#/CheckoutService/v67/overview | ||
# See for Recurring API: | ||
# https://docs.adyen.com/api-explorer/#/Recurring/v49/overview | ||
API_ENDPOINT_VERSIONS.update( | ||
{ | ||
"/payments/{}/reversals": 67, # Checkout API | ||
} | ||
) | ||
|
||
# Adyen-specific mapping of currency codes in ISO 4217 format to the number of decimals. | ||
# Only currencies for which Adyen does not follow the ISO 4217 norm are listed here. | ||
# See https://docs.adyen.com/development-resources/currency-codes | ||
CURRENCY_DECIMALS.update({ | ||
"BHD": 3, | ||
"DJF": 0, | ||
"GNF": 0, | ||
"JOD": 3, | ||
"JPY": 0, | ||
"KMF": 0, | ||
"KRW": 0, | ||
"KWD": 3, | ||
"LYD": 3, | ||
"OMR": 3, | ||
"PYG": 0, | ||
"RWF": 0, | ||
"TND": 3, | ||
"UGX": 0, | ||
"VND": 0, | ||
"VUV": 0, | ||
"XAF": 0, | ||
"XOF": 0, | ||
"XPF": 0, | ||
"USD": 2, | ||
"EUR": 2, | ||
"SEK": 2, | ||
"DKK": 2, | ||
}) | ||
CURRENCY_DECIMALS.update( | ||
{ | ||
"BHD": 3, | ||
"DJF": 0, | ||
"GNF": 0, | ||
"JOD": 3, | ||
"JPY": 0, | ||
"KMF": 0, | ||
"KRW": 0, | ||
"KWD": 3, | ||
"LYD": 3, | ||
"OMR": 3, | ||
"PYG": 0, | ||
"RWF": 0, | ||
"TND": 3, | ||
"UGX": 0, | ||
"VND": 0, | ||
"VUV": 0, | ||
"XAF": 0, | ||
"XOF": 0, | ||
"XPF": 0, | ||
"USD": 2, | ||
"EUR": 2, | ||
"SEK": 2, | ||
"DKK": 2, | ||
} | ||
) |
This file contains 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 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.