GALANTHUS / ABI FUNCTION REFERENCE
gln_get_revolut_payment_reason
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API const char* GLN_CALL gln_get_revolut_payment_reason(
const gln_revolut_payment_draft_payment_t* in_payment);
Purpose
Reads the get revolut payment reason field from a typed gln revolut payment draft payment t without taking ownership of the handle.
The ABI reports a nullable return, so callers should handle NULL defensively. When passed a valid non-null handle, required fields are expected to carry a value.
Return
Returns the requested borrowed pointer, or NULL when it is not available.
| Type | Nullability | Ownership |
|---|---|---|
const char* | nullable | borrowed |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_payment | input | const gln_revolut_payment_draft_payment_t* | nonnull | borrowed |