---
title: "SQL-086: clsPaymentReturn update"
summary: Updates return status and audit columns in PAYMENT_RETURN.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Payment.EFT
reference_type: package
---

# SQL-086: clsPaymentReturn update

Updates return status and audit columns in PAYMENT_RETURN.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-086 |
| **Operation type** | Update |
| **Execution method** | Inline SQL |
| **Database** | Oracle* |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsPaymentReturn` |
| **Criteria property** | `UpdateSQL` |
| **Lifecycle method** | `BeforeUpdate / AfterUpdate` |


## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| :ReturnStatusCode | Input | String | 5 | Binds `ReturnStatusCode` |
| :UpdateDate | Input | Date | — | Binds `m_UpdateDate`* |
| :UpdateUser | Input | String | 30 | Binds `m_UpdateUser`* |
| :PaymentReturnSeqNum | Input | Decimal | — | Binds `m_PaymentReturnSeqNum` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PAYMENT_RETURN](../database-tables.md#payment_return) | Write | — |

## Sample SQL

```sql
Update PAYMENT_RETURN
Set RETURN_STATUS_CODE = :ReturnStatusCode,
  UPDATE_DATE = :UpdateDate,
  UPDATE_USER = :UpdateUser
Where PAYMENT_RETURN.PAYMENT_RETURN_SEQ_NUM = :PaymentReturnSeqNum
```

## Operations and processes
- [Payment return handling](../operations/payment-return-handling.md)*

> **Note:** Statements marked with `*` were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Business rules
- [BR-EFT-05: Insert/update must affect exactly 1 row](../business-rules.md#br-eft-05-insertupdate-operations-require-exactly-one-affected-row)

## Sources
- `Business\SAIF.Business.Payment.EFT\clsPaymentReturn.vb`
