StripeRepository

An interface for data operations on Stripe API objects.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun addCustomerSource(customerId: String, publishableKey: String, productUsageTokens: Set<String>, sourceId: String, sourceType: String, requestOptions: ApiRequest.Options): Result<Source>
abstract suspend fun attachFinancialConnectionsSessionToPaymentIntent(clientSecret: String, paymentIntentId: String, financialConnectionsSessionId: String, requestOptions: ApiRequest.Options, expandFields: List<String>): Result<PaymentIntent>
abstract suspend fun attachFinancialConnectionsSessionToSetupIntent(clientSecret: String, setupIntentId: String, financialConnectionsSessionId: String, requestOptions: ApiRequest.Options, expandFields: List<String>): Result<SetupIntent>
Link copied to clipboard
abstract suspend fun attachHCaptchaToRadarSession(radarSessionToken: String, hcaptchaToken: String, hcaptchaEKey: String?, requestOptions: ApiRequest.Options): Result<RadarSessionWithHCaptcha>
Link copied to clipboard
abstract suspend fun attachPaymentMethod(customerId: String, productUsageTokens: Set<String>, paymentMethodId: String, requestOptions: ApiRequest.Options): Result<PaymentMethod>
Link copied to clipboard
abstract fun buildPaymentUserAgent(attribution: Set<String> = emptySet()): String
Link copied to clipboard
abstract suspend fun cancelPaymentIntentSource(paymentIntentId: String, sourceId: String, options: ApiRequest.Options): Result<PaymentIntent>
Link copied to clipboard
abstract suspend fun cancelSetupIntentSource(setupIntentId: String, sourceId: String, options: ApiRequest.Options): Result<SetupIntent>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun confirmPaymentIntent(confirmPaymentIntentParams: ConfirmPaymentIntentParams, options: ApiRequest.Options, expandFields: List<String> = emptyList()): Result<PaymentIntent>
Link copied to clipboard
abstract suspend fun confirmSetupIntent(confirmSetupIntentParams: ConfirmSetupIntentParams, options: ApiRequest.Options, expandFields: List<String> = emptyList()): Result<SetupIntent>
Link copied to clipboard
abstract suspend fun consumerSignUp(email: String, phoneNumber: String, country: String, name: String?, locale: Locale?, authSessionCookie: String?, consentAction: ConsumerSignUpConsentAction, requestOptions: ApiRequest.Options): Result<ConsumerSession>
Link copied to clipboard
abstract suspend fun createFile(fileParams: StripeFileParams, requestOptions: ApiRequest.Options): Result<StripeFile>
Link copied to clipboard
abstract suspend fun createPaymentDetails(consumerSessionClientSecret: String, paymentDetailsCreateParams: ConsumerPaymentDetailsCreateParams, requestOptions: ApiRequest.Options, active: Boolean): Result<ConsumerPaymentDetails>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun createSource(sourceParams: SourceParams, options: ApiRequest.Options): Result<Source>
Link copied to clipboard
abstract suspend fun createToken(tokenParams: TokenParams, options: ApiRequest.Options): Result<Token>
Link copied to clipboard
abstract suspend fun deleteCustomerSource(customerId: String, publishableKey: String, productUsageTokens: Set<String>, sourceId: String, requestOptions: ApiRequest.Options): Result<Source>
Link copied to clipboard
abstract suspend fun detachPaymentMethod(productUsageTokens: Set<String>, paymentMethodId: String, requestOptions: ApiRequest.Options): Result<PaymentMethod>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getPaymentMethods(listPaymentMethodsParams: ListPaymentMethodsParams, productUsageTokens: Set<String>, requestOptions: ApiRequest.Options): Result<List<PaymentMethod>>
Link copied to clipboard
abstract suspend fun logOut(consumerSessionClientSecret: String, consumerAccountPublishableKey: String?, requestOptions: ApiRequest.Options): Result<ConsumerSession>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun retrieveCardMetadata(cardNumber: String, requestOptions: ApiRequest.Options): Result<CardMetadata>
Link copied to clipboard
abstract suspend fun retrieveCustomer(customerId: String, productUsageTokens: Set<String>, requestOptions: ApiRequest.Options): Result<Customer>
Link copied to clipboard
abstract suspend fun retrieveIssuingCardPin(cardId: String, verificationId: String, userOneTimeCode: String, requestOptions: ApiRequest.Options): Result<String>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun retrievePaymentIntent(clientSecret: String, options: ApiRequest.Options, expandFields: List<String> = emptyList()): Result<PaymentIntent>
Link copied to clipboard
abstract suspend fun retrievePaymentMethodMessage(paymentMethods: List<String>, amount: Int, currency: String, country: String, locale: String, logoColor: String, requestOptions: ApiRequest.Options): Result<PaymentMethodMessage>
Link copied to clipboard
abstract suspend fun retrieveSetupIntent(clientSecret: String, options: ApiRequest.Options, expandFields: List<String> = emptyList()): Result<SetupIntent>
Link copied to clipboard
abstract suspend fun retrieveSource(sourceId: String, clientSecret: String, options: ApiRequest.Options): Result<Source>
Link copied to clipboard
abstract suspend fun retrieveStripeIntent(clientSecret: String, options: ApiRequest.Options, expandFields: List<String> = emptyList()): Result<StripeIntent>
Link copied to clipboard
abstract suspend fun setCustomerShippingInfo(customerId: String, publishableKey: String, productUsageTokens: Set<String>, shippingInformation: ShippingInformation, requestOptions: ApiRequest.Options): Result<Customer>
Link copied to clipboard
abstract suspend fun setDefaultCustomerSource(customerId: String, publishableKey: String, productUsageTokens: Set<String>, sourceId: String, sourceType: String, requestOptions: ApiRequest.Options): Result<Customer>
Link copied to clipboard
abstract suspend fun sharePaymentDetails(consumerSessionClientSecret: String, id: String, requestOptions: ApiRequest.Options): Result<String>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun updateIssuingCardPin(cardId: String, newPin: String, verificationId: String, userOneTimeCode: String, requestOptions: ApiRequest.Options): Throwable?
Link copied to clipboard
abstract suspend fun updatePaymentMethod(paymentMethodId: String, paymentMethodUpdateParams: PaymentMethodUpdateParams, options: ApiRequest.Options): Result<PaymentMethod>
Link copied to clipboard
abstract suspend fun verifyPaymentIntentWithMicrodeposits(clientSecret: String, descriptorCode: String, requestOptions: ApiRequest.Options): Result<PaymentIntent>
abstract suspend fun verifyPaymentIntentWithMicrodeposits(clientSecret: String, firstAmount: Int, secondAmount: Int, requestOptions: ApiRequest.Options): Result<PaymentIntent>
Link copied to clipboard
abstract suspend fun verifySetupIntentWithMicrodeposits(clientSecret: String, descriptorCode: String, requestOptions: ApiRequest.Options): Result<SetupIntent>
abstract suspend fun verifySetupIntentWithMicrodeposits(clientSecret: String, firstAmount: Int, secondAmount: Int, requestOptions: ApiRequest.Options): Result<SetupIntent>