package com.emonster.taroaichat.domain;

import java.util.Random;
import java.util.UUID;
import java.util.concurrent.atomic.AtomicLong;

public class DonationTestSamples {

    private static final Random random = new Random();
    private static final AtomicLong longCount = new AtomicLong(random.nextInt() + (2 * Integer.MAX_VALUE));

    public static Donation getDonationSample1() {
        return new Donation()
            .id(1L)
            .currency("currency1")
            .stripePaymentIntentId("stripePaymentIntentId1")
            .createdBy("createdBy1")
            .lastModifiedBy("lastModifiedBy1");
    }

    public static Donation getDonationSample2() {
        return new Donation()
            .id(2L)
            .currency("currency2")
            .stripePaymentIntentId("stripePaymentIntentId2")
            .createdBy("createdBy2")
            .lastModifiedBy("lastModifiedBy2");
    }

    public static Donation getDonationRandomSampleGenerator() {
        return new Donation()
            .id(longCount.incrementAndGet())
            .currency(UUID.randomUUID().toString())
            .stripePaymentIntentId(UUID.randomUUID().toString())
            .createdBy(UUID.randomUUID().toString())
            .lastModifiedBy(UUID.randomUUID().toString());
    }
}
