StripeRepository

abstract class StripeRepository

An interface for data operations on Stripe API objects.

Constructors

Link copied to clipboard
fun StripeRepository()

Functions

abstract suspend fun attachFinancialConnectionsSessionToPaymentIntent(    clientSecret: String,     paymentIntentId: String,     financialConnectionsSessionId: String,     requestOptions: ApiRequest.Options): PaymentIntent?
abstract suspend fun attachFinancialConnectionsSessionToSetupIntent(    clientSecret: String,     setupIntentId: String,     financialConnectionsSessionId: 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 createPaymentDetails(    consumerSessionClientSecret: String,     paymentDetailsCreateParams: ConsumerPaymentDetailsCreateParams,     requestOptions: ApiRequest.Options): ConsumerPaymentDetails?
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?
Link copied to clipboard
abstract suspend fun verifyPaymentIntentWithMicrodeposits(    clientSecret: String,     descriptorCode: String,     requestOptions: ApiRequest.Options): PaymentIntent?
abstract suspend fun verifyPaymentIntentWithMicrodeposits(    clientSecret: String,     firstAmount: Int,     secondAmount: Int,     requestOptions: ApiRequest.Options): PaymentIntent?
Link copied to clipboard
abstract suspend fun verifySetupIntentWithMicrodeposits(    clientSecret: String,     descriptorCode: String,     requestOptions: ApiRequest.Options): SetupIntent?
abstract suspend fun verifySetupIntentWithMicrodeposits(    clientSecret: String,     firstAmount: Int,     secondAmount: Int,     requestOptions: ApiRequest.Options): SetupIntent?

Inheritors

Link copied to clipboard