ChargeIntentEndpoints

Defines every API endpoint used to manage charge intents.

Each case carries the data required to build its URL, HTTP method, and query parameters. Implement FrameNetworkingEndpoints so the networking layer can dispatch requests uniformly.

Inheritors

Types

Link copied to clipboard
data class CancelChargeIntent(val intentId: String) : ChargeIntentEndpoints

Cancels a charge intent before it is captured (POST /v1/charge_intents/{intentId}/cancel).

Link copied to clipboard

Captures an authorized charge intent (POST /v1/charge_intents/{intentId}/capture).

Link copied to clipboard

Confirms a charge intent, triggering payment processing (POST /v1/charge_intents/{intentId}/confirm).

Link copied to clipboard

Creates a new charge intent (POST /v1/charge_intents).

Link copied to clipboard
data class GetAllChargeIntents(val perPage: Int?, val page: Int?) : ChargeIntentEndpoints

Retrieves a paginated list of all charge intents (GET /v1/charge_intents).

Link copied to clipboard
data class GetChargeIntent(val intentId: String) : ChargeIntentEndpoints

Retrieves a single charge intent by ID (GET /v1/charge_intents/{intentId}).

Link copied to clipboard
data class UpdateChargeIntent(val intentId: String) : ChargeIntentEndpoints

Updates an existing charge intent (PATCH /v1/charge_intents/{intentId}).

Link copied to clipboard

Voids the uncaptured remainder of a partially captured charge intent (POST /v1/charge_intents/{intentId}/void_remaining).

Properties

Link copied to clipboard
open override val endpointURL: String

Returns the relative URL path for this endpoint.

Link copied to clipboard
open override val httpMethod: String

Returns the HTTP method string for this endpoint.

Link copied to clipboard
open override val queryItems: List<QueryItem>?

Returns the URL query parameters for this endpoint, or null if none apply.