Persist onetime donation payment success timestamps for Braintree transactions

This commit is contained in:
Katherine
2023-12-14 19:48:29 -05:00
committed by GitHub
parent bb347999ce
commit 9cfc2ba09a
4 changed files with 12 additions and 15 deletions

View File

@@ -243,10 +243,10 @@ public final class DynamoDbExtensionSchema {
.build())),
ONETIME_DONATIONS("onetime_donations_test",
OneTimeDonationsManager.KEY_PAYMENT_INTENT_ID,
OneTimeDonationsManager.KEY_PAYMENT_ID,
null,
List.of(AttributeDefinition.builder()
.attributeName(OneTimeDonationsManager.KEY_PAYMENT_INTENT_ID)
.attributeName(OneTimeDonationsManager.KEY_PAYMENT_ID)
.attributeType(ScalarAttributeType.S)
.build()),
List.of(), List.of()),

View File

@@ -25,7 +25,7 @@ public class OnetimeDonationsManagerTest {
}
@Test
void testGetPaidAtTimestamp() {
void testSetGetPaidAtTimestamp() {
final String validPaymentIntentId = "abc";
final Instant paidAt = Instant.ofEpochSecond(1_000_000);
final Instant fallBackTimestamp = Instant.ofEpochSecond(2_000_000);