GALANTHUS / ABI FUNCTION REFERENCE
gln_add_direct_debit_batch_request_amended_item
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API gln_status_t GLN_CALL gln_add_direct_debit_batch_request_amended_item(
gln_direct_debit_batch_request_builder_t* in_builder,
const gln_batch_direct_debit_item_t* in_item,
const gln_mandate_amendment_t* in_amendment,
gln_error_t* out_error_or_null);
Purpose
Appends one item to the caller-owned gln_direct_debit_batch_request_builder_t, copying both the row in in_item and the mandate amendment in in_amendment into the builder.
Both input structs are borrowed for the duration of the call. Use the plain item add helper for rows that do not carry a mandate amendment.
Nullable parameter slots (out_error_or_null) may be passed as NULL; all other non-value parameters follow the nullability shown in the table.
Return
Returns GLN_OK on success and a non-OK gln_status_t value on failure.
| Type | Nullability | Ownership |
|---|---|---|
gln_status_t | value | value |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_builder | input | gln_direct_debit_batch_request_builder_t* | nonnull | borrowed |
in_item | input | const gln_batch_direct_debit_item_t* | nonnull | borrowed |
in_amendment | input | const gln_mandate_amendment_t* | nonnull | borrowed |
out_error_or_null | output | gln_error_t* | nullable | caller_allocated_output |