[ADD] reference/standard_modules: API reference for the payment engine

task-2804999

closes odoo/documentation#2797

X-original-commit: 668ac2c650
Related: odoo/odoo#102716
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Antoine Vandevenne (anv) 2022-09-30 12:35:05 +00:00
parent 46a80f60c5
commit 9baab389c9
5 changed files with 68 additions and 0 deletions

View File

@ -8,3 +8,4 @@ Standard modules
:titlesonly:
standard_modules/account
standard_modules/payment

View File

@ -0,0 +1,12 @@
:hide-page-toc:
=======
Payment
=======
.. toctree::
:titlesonly:
payment/payment_provider
payment/payment_token
payment/payment_transaction

View File

@ -0,0 +1,17 @@
:hide-page-toc:
================
Payment Provider
================
.. autoclass:: odoo.addons.payment.models.payment_provider.PaymentProvider()
.. automethod:: _compute_feature_support_fields
.. automethod:: _compute_fees
.. automethod:: _compute_view_configuration_fields
.. automethod:: _get_compatible_providers
.. automethod:: _get_redirect_form_view
.. automethod:: _get_validation_amount
.. automethod:: _get_validation_currency
.. automethod:: _is_tokenization_required
.. automethod:: _should_build_inline_form

View File

@ -0,0 +1,12 @@
:hide-page-toc:
=============
Payment Token
=============
.. autoclass:: odoo.addons.payment.models.payment_token::PaymentToken()
.. automethod:: _build_display_name
.. automethod:: _get_specific_create_values
.. automethod:: _handle_archiving
.. automethod:: get_linked_records_info

View File

@ -0,0 +1,26 @@
:hide-page-toc:
===================
Payment Transaction
===================
.. autoclass:: odoo.addons.payment.models.payment_transaction::PaymentTransaction()
.. automethod:: _compute_reference
.. automethod:: _compute_reference_prefix
.. automethod:: _get_post_processing_values
.. automethod:: _get_specific_create_values
.. automethod:: _get_specific_processing_values
.. automethod:: _get_specific_rendering_values
.. automethod:: _get_tx_from_notification_data
.. automethod:: _handle_notification_data
.. automethod:: _process_notification_data
.. automethod:: _send_capture_request
.. automethod:: _send_payment_request
.. automethod:: _send_refund_request
.. automethod:: _send_void_request
.. automethod:: _set_authorized
.. automethod:: _set_canceled
.. automethod:: _set_done
.. automethod:: _set_error
.. automethod:: _set_pending