[IMP] developer/reference/payment: update docstrings for payment models

task-3648413

closes odoo/documentation#13888

Related: odoo/odoo#209685
Related: odoo/enterprise#87325
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Antoine Vandevenne (anv)
2025-07-01 13:24:07 +02:00
committed by Valeriya(vchu)
parent 1dbb56d2d5
commit 13d1166022
2 changed files with 18 additions and 5 deletions

View File

@@ -6,11 +6,21 @@ Payment Provider
.. autoclass:: odoo.addons.payment.models.payment_provider.PaymentProvider()
.. automethod:: _build_request_auth
.. automethod:: _build_request_headers
.. automethod:: _build_request_url
.. automethod:: _compute_feature_support_fields
.. automethod:: _get_code
.. automethod:: _get_compatible_providers
.. automethod:: _get_default_payment_method_codes
.. automethod:: _get_redirect_form_view
.. automethod:: _get_provider_domain
.. automethod:: _get_removal_values
.. automethod:: _get_supported_currencies
.. automethod:: _get_validation_amount
.. automethod:: _get_validation_currency
.. automethod:: _is_tokenization_required
.. automethod:: _parse_response_content
.. automethod:: _parse_response_error
.. automethod:: _send_api_request
.. automethod:: _should_build_inline_form
.. automethod:: _get_removal_values

View File

@@ -6,15 +6,18 @@ Payment Transaction
.. autoclass:: odoo.addons.payment.models.payment_transaction::PaymentTransaction()
.. automethod:: _apply_updates
.. automethod:: _compute_reference
.. automethod:: _compute_reference_prefix
.. automethod:: _extract_amount_data
.. automethod:: _extract_reference
.. automethod:: _extract_token_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:: _compare_notification_data
.. automethod:: _process_notification_data
.. automethod:: _process
.. automethod:: _search_by_reference
.. automethod:: _send_api_request
.. automethod:: _send_capture_request
.. automethod:: _send_payment_request
.. automethod:: _send_refund_request