|
3258 | 3258 | access_denied_exception() | |
3259 | 3259 | internal_server_exception() | |
3260 | 3260 | service_quota_exceeded_exception() | |
3261 | | - resource_not_found_exception(). |
| 3261 | + resource_not_found_exception() | |
| 3262 | + retryable_conflict_exception(). |
3262 | 3263 |
|
3263 | 3264 | -type invoke_agent_runtime_command_errors() :: |
3264 | 3265 | runtime_client_error() | |
|
3495 | 3496 | service_quota_exceeded_exception() | |
3496 | 3497 | resource_not_found_exception() | |
3497 | 3498 | conflict_exception() | |
| 3499 | + retryable_conflict_exception() | |
3498 | 3500 | unauthorized_exception(). |
3499 | 3501 |
|
3500 | 3502 | -type update_a_b_test_errors() :: |
@@ -3740,7 +3742,7 @@ create_event(Client, MemoryId, Input0, Options0) -> |
3740 | 3742 |
|
3741 | 3743 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
3742 | 3744 |
|
3743 | | -%% @doc Create a new payment instrument for a connector |
| 3745 | +%% @doc Create a new payment instrument for a connector. |
3744 | 3746 | -spec create_payment_instrument(aws_client:aws_client(), create_payment_instrument_request()) -> |
3745 | 3747 | {ok, create_payment_instrument_response(), tuple()} | |
3746 | 3748 | {error, any()} | |
@@ -3777,7 +3779,7 @@ create_payment_instrument(Client, Input0, Options0) -> |
3777 | 3779 |
|
3778 | 3780 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
3779 | 3781 |
|
3780 | | -%% @doc Create a new payment manager session |
| 3782 | +%% @doc Create a new payment session. |
3781 | 3783 | -spec create_payment_session(aws_client:aws_client(), create_payment_session_request()) -> |
3782 | 3784 | {ok, create_payment_session_response(), tuple()} | |
3783 | 3785 | {error, any()} | |
@@ -3960,34 +3962,10 @@ delete_memory_record(Client, MemoryId, MemoryRecordId, Input0, Options0) -> |
3960 | 3962 |
|
3961 | 3963 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
3962 | 3964 |
|
3963 | | -%% @doc Delete a payment instrument |
3964 | | -%% |
3965 | | -%% Marks a payment instrument as deleted by updating its status to DELETED. |
3966 | | -%% |
3967 | | -%% This is a soft delete |
3968 | | -%% operation that preserves the record in the database for audit and |
3969 | | -%% compliance purposes. The record |
3970 | | -%% remains queryable for audit purposes but is excluded from normal list and |
3971 | | -%% get operations. |
3972 | | -%% |
3973 | | -%% Deleting an already-deleted or non-existent instrument returns |
3974 | | -%% ResourceNotFoundException (404). |
| 3965 | +%% @doc Deletes a payment instrument. |
3975 | 3966 | %% |
3976 | | -%% Authorization: The caller must own the instrument (accountId, userId, and |
3977 | | -%% paymentManagerId must match). |
3978 | | -%% If authorization fails, a 403 Forbidden error is returned. |
3979 | | -%% |
3980 | | -%% Timestamp Management: The updatedAt timestamp is set to the current time, |
3981 | | -%% while createdAt is preserved. |
3982 | | -%% The version field is incremented for optimistic locking. |
3983 | | -%% |
3984 | | -%% Errors: |
3985 | | -%% - ResourceNotFoundException: The instrument does not exist or is already |
3986 | | -%% deleted |
3987 | | -%% - AccessDeniedException: The caller is not authorized to delete this |
3988 | | -%% instrument |
3989 | | -%% - ValidationException: Required fields are missing or invalid |
3990 | | -%% - InternalServerException: An unexpected server error occurred |
| 3967 | +%% This is a soft delete operation that preserves the record for audit and |
| 3968 | +%% compliance purposes. |
3991 | 3969 | -spec delete_payment_instrument(aws_client:aws_client(), delete_payment_instrument_request()) -> |
3992 | 3970 | {ok, delete_payment_instrument_response(), tuple()} | |
3993 | 3971 | {error, any()} | |
@@ -4023,27 +4001,9 @@ delete_payment_instrument(Client, Input0, Options0) -> |
4023 | 4001 |
|
4024 | 4002 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
4025 | 4003 |
|
4026 | | -%% @doc Delete a payment manager session |
4027 | | -%% |
4028 | | -%% Permanently removes a payment session record from the database. |
4029 | | -%% |
4030 | | -%% This is a hard delete operation |
4031 | | -%% that removes the session completely. |
4032 | | -%% |
4033 | | -%% Deleting a non-existent or already-deleted session returns |
4034 | | -%% ResourceNotFoundException (404). |
4035 | | -%% |
4036 | | -%% Authorization: The caller must own the session (accountId, userId, and |
4037 | | -%% paymentManagerId must match). |
4038 | | -%% If authorization fails, a 403 Forbidden error is returned. |
| 4004 | +%% @doc Deletes a payment session. |
4039 | 4005 | %% |
4040 | | -%% Errors: |
4041 | | -%% - ResourceNotFoundException: The session does not exist or has already |
4042 | | -%% been deleted |
4043 | | -%% - AccessDeniedException: The caller is not authorized to delete this |
4044 | | -%% session |
4045 | | -%% - ValidationException: Required fields are missing or invalid |
4046 | | -%% - InternalServerException: An unexpected server error occurred |
| 4006 | +%% This permanently removes the payment session record. |
4047 | 4007 | -spec delete_payment_session(aws_client:aws_client(), delete_payment_session_request()) -> |
4048 | 4008 | {ok, delete_payment_session_response(), tuple()} | |
4049 | 4009 | {error, any()} | |
@@ -4490,7 +4450,7 @@ get_memory_record(Client, MemoryId, MemoryRecordId, QueryMap, HeadersMap, Option |
4490 | 4450 |
|
4491 | 4451 | request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode). |
4492 | 4452 |
|
4493 | | -%% @doc Get a payment instrument by ID |
| 4453 | +%% @doc Get a payment instrument by ID. |
4494 | 4454 | -spec get_payment_instrument(aws_client:aws_client(), get_payment_instrument_request()) -> |
4495 | 4455 | {ok, get_payment_instrument_response(), tuple()} | |
4496 | 4456 | {error, any()} | |
@@ -4527,7 +4487,7 @@ get_payment_instrument(Client, Input0, Options0) -> |
4527 | 4487 |
|
4528 | 4488 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
4529 | 4489 |
|
4530 | | -%% @doc Get the balance of a payment instrument |
| 4490 | +%% @doc Get the balance of a payment instrument. |
4531 | 4491 | -spec get_payment_instrument_balance(aws_client:aws_client(), get_payment_instrument_balance_request()) -> |
4532 | 4492 | {ok, get_payment_instrument_balance_response(), tuple()} | |
4533 | 4493 | {error, any()} | |
@@ -4564,7 +4524,7 @@ get_payment_instrument_balance(Client, Input0, Options0) -> |
4564 | 4524 |
|
4565 | 4525 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
4566 | 4526 |
|
4567 | | -%% @doc Get a payment session |
| 4527 | +%% @doc Get a payment session. |
4568 | 4528 | -spec get_payment_session(aws_client:aws_client(), get_payment_session_request()) -> |
4569 | 4529 | {ok, get_payment_session_response(), tuple()} | |
4570 | 4530 | {error, any()} | |
@@ -5558,7 +5518,7 @@ list_memory_records(Client, MemoryId, Input0, Options0) -> |
5558 | 5518 |
|
5559 | 5519 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
5560 | 5520 |
|
5561 | | -%% @doc List payment instruments for a manager |
| 5521 | +%% @doc List payment instruments for a manager. |
5562 | 5522 | -spec list_payment_instruments(aws_client:aws_client(), list_payment_instruments_request()) -> |
5563 | 5523 | {ok, list_payment_instruments_response(), tuple()} | |
5564 | 5524 | {error, any()} | |
@@ -5595,7 +5555,7 @@ list_payment_instruments(Client, Input0, Options0) -> |
5595 | 5555 |
|
5596 | 5556 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
5597 | 5557 |
|
5598 | | -%% @doc List payment manager sessions |
| 5558 | +%% @doc List payment sessions. |
5599 | 5559 | -spec list_payment_sessions(aws_client:aws_client(), list_payment_sessions_request()) -> |
5600 | 5560 | {ok, list_payment_sessions_response(), tuple()} | |
5601 | 5561 | {error, any()} | |
@@ -5719,7 +5679,8 @@ list_sessions(Client, ActorId, MemoryId, Input0, Options0) -> |
5719 | 5679 |
|
5720 | 5680 | request(Client, Method, Path, Query_, CustomHeaders ++ Headers, Input, Options, SuccessStatusCode). |
5721 | 5681 |
|
5722 | | -%% @doc Process a payment transaction |
| 5682 | +%% @doc Processes a payment using a payment instrument within a payment |
| 5683 | +%% session. |
5723 | 5684 | -spec process_payment(aws_client:aws_client(), process_payment_request()) -> |
5724 | 5685 | {ok, process_payment_response(), tuple()} | |
5725 | 5686 | {error, any()} | |
|
0 commit comments