StripeRepository

abstract class StripeRepository

An interface for data operations on Stripe API objects.

Constructors

Link copied to clipboard
fun StripeRepository()

Functions

Link copied to clipboard
abstract suspend fun attachLinkAccountSessionToPaymentIntent(clientSecret: String, paymentIntentId: String, linkAccountSessionId: String, requestOptions: ApiRequest.Options): PaymentIntent?
Link copied to clipboard
abstract suspend fun attachLinkAccountSessionToSetupIntent(clientSecret: String, setupIntentId: String, linkAccountSessionId: String, requestOptions: ApiRequest.Options): SetupIntent?
Link copied to clipboard
abstract suspend fun attachPaymentMethod(customerId: String, publishableKey: String, productUsageTokens: Set<String>, paymentMethodId: String, requestOptions: ApiRequest.Options): PaymentMethod?
Link copied to clipboard
abstract suspend fun confirmConsumerVerification(consumerSessionClientSecret: String, verificationCode: String, authSessionCookie: String?, requestOptions: ApiRequest.Options): ConsumerSession?
Link copied to clipboard
abstract suspend fun consumerSignUp(email: String, phoneNumber: String, country: String, authSessionCookie: String?, requestOptions: ApiRequest.Options): ConsumerSession?
Link copied to clipboard
abstract suspend fun createPaymentMethod(paymentMethodCreateParams: PaymentMethodCreateParams, options: ApiRequest.Options): PaymentMethod?
Link copied to clipboard
abstract suspend fun detachPaymentMethod(publishableKey: String, productUsageTokens: Set<String>, paymentMethodId: String, requestOptions: ApiRequest.Options): PaymentMethod?
Link copied to clipboard
abstract suspend fun getPaymentMethods(listPaymentMethodsParams: ListPaymentMethodsParams, publishableKey: String, productUsageTokens: Set<String>, requestOptions: ApiRequest.Options): List<PaymentMethod>
Link copied to clipboard
abstract suspend fun listPaymentDetails(consumerSessionClientSecret: String, paymentMethodTypes: Set<String>, requestOptions: ApiRequest.Options): ConsumerPaymentDetails?
Link copied to clipboard
abstract suspend fun logoutConsumer(consumerSessionClientSecret: String, authSessionCookie: String?, requestOptions: ApiRequest.Options): ConsumerSession?
Link copied to clipboard
abstract suspend fun lookupConsumerSession(email: String, authSessionCookie: String?, requestOptions: ApiRequest.Options): ConsumerSessionLookup?
Link copied to clipboard
abstract suspend fun retrievePaymentIntent(clientSecret: String, options: ApiRequest.Options, expandFields: List<String> = emptyList()): PaymentIntent?
abstract suspend fun retrievePaymentIntentWithOrderedPaymentMethods(clientSecret: String, options: ApiRequest.Options, locale: Locale): PaymentIntent?
Link copied to clipboard
abstract suspend fun retrieveSetupIntent(clientSecret: String, options: ApiRequest.Options, expandFields: List<String> = emptyList()): SetupIntent?
abstract suspend fun retrieveSetupIntentWithOrderedPaymentMethods(clientSecret: String, options: ApiRequest.Options, locale: Locale): SetupIntent?
Link copied to clipboard
abstract suspend fun startConsumerVerification(consumerSessionClientSecret: String, locale: Locale, authSessionCookie: String?, requestOptions: ApiRequest.Options): ConsumerSession?