PreApprovalDetails

data class PreApprovalDetails(val preApprovalId: String, val toFri: String, val fromFri: String, val fromCurrency: String, val createdTime: String, val status: StatusTypes, val message: String, val approvedTime: String? = null, val expiryTime: String? = null, val frequency: FrequencyTypes? = null, val startDate: String? = null, val lastUsedDate: String? = null, val offer: String? = null, val externalId: String? = null, val maxDebitAmount: String? = null)

Represents a single pre-approval record returned by the MTN MOMO Collection API, e.g. an entry in the list from getApprovedPreApprovals.

The fields the API guarantees (per the schema) are non-nullable; every other field is optional and defaults to null, so partial payloads never break deserialization.

Constructors

Link copied to clipboard
constructor(preApprovalId: String, toFri: String, fromFri: String, fromCurrency: String, createdTime: String, status: StatusTypes, message: String, approvedTime: String? = null, expiryTime: String? = null, frequency: FrequencyTypes? = null, startDate: String? = null, lastUsedDate: String? = null, offer: String? = null, externalId: String? = null, maxDebitAmount: String? = null)

Properties

Link copied to clipboard

The ISO 8601 date-time at which the pre-approval was approved.

Link copied to clipboard

The ISO 8601 date-time at which the pre-approval was created.

Link copied to clipboard

The ISO 8601 date-time at which the pre-approval expires.

Link copied to clipboard

The external reference ID.

Link copied to clipboard

How often the pre-approval may be used (FrequencyTypes: DAILY, WEEKLY, MONTHLY).

Link copied to clipboard

The ISO 4217 currency of the sending account holder.

Link copied to clipboard

The Financial Resource Identifier of the sending account.

Link copied to clipboard

The ISO 8601 date-time the pre-approval was last used.

Link copied to clipboard

The maximum debit amount allowed (a non-negative amount).

Link copied to clipboard

The pre-approval message.

Link copied to clipboard

The offer description.

Link copied to clipboard

The ID of the pre-approval.

Link copied to clipboard

The start date of the pre-approval.

Link copied to clipboard

The pre-approval status (StatusTypes: APPROVED, CANCELLED, EXPIRED, REJECTED, PENDING).

Link copied to clipboard

The Financial Resource Identifier of the receiving account.