CustomerEndpoints

Defines all HTTP endpoints used by the customers API.

Each case maps to a distinct API route and HTTP method. Construct the appropriate case and pass it to com.framepayments.framesdk.FrameNetworking to execute the request.

Inheritors

Types

Link copied to clipboard
data class BlockCustomerWith(val customerId: String) : CustomerEndpoints

Endpoint for blocking a customer via POST /v1/customers/{customerId}/block.

Link copied to clipboard

Endpoint for creating a new customer via POST /v1/customers.

Link copied to clipboard
data class DeleteCustomer(val customerId: String) : CustomerEndpoints

Endpoint for deleting a customer via DELETE /v1/customers/{customerId}.

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

Endpoint for retrieving a paginated list of customers via GET /v1/customers.

Link copied to clipboard
data class GetCustomerWith(val customerId: String) : CustomerEndpoints

Endpoint for fetching a single customer by ID via GET /v1/customers/{customerId}.

Link copied to clipboard
data class SearchCustomers(val q: String? = null, val email: String? = null, val createdAfter: Int? = null, val page: Int? = null, val perPage: Int? = null) : CustomerEndpoints

Endpoint for searching customers via GET /v1/customers/search.

Link copied to clipboard
data class UnblockCustomerWith(val customerId: String) : CustomerEndpoints

Endpoint for unblocking a customer via POST /v1/customers/{customerId}/unblock.

Link copied to clipboard
data class UpdateCustomer(val customerId: String) : CustomerEndpoints

Endpoint for updating an existing customer via PATCH /v1/customers/{customerId}.

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.