Migrate paypal and stripe interactions to durable background jobs.

This commit is contained in:
Alex Hart
2025-03-14 14:02:19 -03:00
committed by Cody Henthorne
parent ad00e7c5ab
commit 7cc4677120
54 changed files with 2221 additions and 1082 deletions

View File

@@ -1,6 +1,7 @@
package org.thoughtcrime.securesms.subscription
import org.whispersystems.signalservice.api.subscriptions.IdempotencyKey
import java.io.Closeable
/**
* Binds a Subscription level update with an idempotency key.
@@ -10,4 +11,8 @@ import org.whispersystems.signalservice.api.subscriptions.IdempotencyKey
data class LevelUpdateOperation(
val idempotencyKey: IdempotencyKey,
val level: String
)
) : Closeable {
override fun close() {
LevelUpdate.updateProcessingState(false)
}
}