PaymentMethodEndpoints

Defines every HTTP endpoint used by PaymentMethodsAPI.

Each case encapsulates the path parameters required to construct the endpoint URL, the HTTP method, and any query string items. Merchants interact with these indirectly through PaymentMethodsAPI and do not need to instantiate cases directly.

Inheritors

Types

Link copied to clipboard
data class AttachPaymentMethodWith(val paymentMethodId: String) : PaymentMethodEndpoints

Attaches a payment method to a customer or merchant account.

Link copied to clipboard
data class BlockPaymentMethodWith(val paymentMethodId: String) : PaymentMethodEndpoints

Blocks a payment method, preventing it from being used for new transactions.

Link copied to clipboard

Creates an ACH payment method by exchanging a Plaid public token for a connected bank account.

Link copied to clipboard

Creates a new payment method (card, ACH, or Google Pay).

Link copied to clipboard
data class DetachPaymentMethodWith(val paymentMethodId: String) : PaymentMethodEndpoints

Detaches a payment method from its associated customer or account.

Link copied to clipboard
data class GetPaymentMethods(val perPage: Int? = null, val page: Int? = null) : PaymentMethodEndpoints

Fetches a paginated list of all payment methods.

Link copied to clipboard

Fetches all payment methods associated with a specific merchant account.

Link copied to clipboard

Fetches all payment methods associated with a specific customer.

Link copied to clipboard
data class GetPaymentMethodWith(val paymentMethodId: String) : PaymentMethodEndpoints

Fetches a single payment method by its unique identifier.

Link copied to clipboard
data class UnblockPaymentMethodWith(val paymentMethodId: String) : PaymentMethodEndpoints

Unblocks a previously blocked payment method, restoring its ability to be used for transactions.

Link copied to clipboard
data class UpdatePaymentMethodWith(val paymentMethodId: String) : PaymentMethodEndpoints

Updates mutable fields on an existing payment method.

Properties

Link copied to clipboard
open override val endpointURL: String

The fully qualified URL string for this endpoint.

Link copied to clipboard
open override val httpMethod: String

HTTP method, e.g. "GET", "POST", "DELETE".

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

Optional query-string parameters appended to endpointURL.