final Transaction t = new Transaction(); accountData.setBillingInfo(billingInfoData); t.setAccount(accountData);
final Transaction t = new Transaction(); accountData.setBillingInfo(billingInfoData); t.setAccount(accountData);
/** * Creates a random {@link Transaction} object for use in Tests given a seed * * @param seed The RNG seed * @return The random {@link Transaction} object */ public static Transaction createRandomTransaction(final int seed) { final Transaction trans = new Transaction(); trans.setAccount(createRandomAccount(seed)); trans.setAction(randomAlphaNumericString(5, seed)); trans.setAmountInCents(randomInteger(1000, seed)); trans.setTaxInCents(randomInteger(10, seed)); trans.setDescription(randomAlphaNumericString(50, seed)); trans.setCurrency(randomCurrency(seed)); trans.setStatus(randomAlphaNumericString(2, seed)); trans.setCreatedAt(NOW); return trans; }
/** * Creates a random {@link Transaction} object for use in Tests given a seed * * @param seed The RNG seed * @return The random {@link Transaction} object */ public static Transaction createRandomTransaction(final int seed) { final Transaction trans = new Transaction(); trans.setAccount(createRandomAccount(seed)); trans.setAction(randomAlphaNumericString(5, seed)); trans.setAmountInCents(randomInteger(1000, seed)); trans.setTaxInCents(randomInteger(10, seed)); trans.setDescription(randomAlphaNumericString(50, seed)); trans.setCurrency(randomCurrency(seed)); trans.setStatus(randomAlphaNumericString(2, seed)); trans.setCreatedAt(NOW); return trans; }
final Transaction externalPaymentData = new Transaction(); externalPaymentData.setPaymentMethod("other"); final DateTime collectionDateTime = new DateTime(DateTimeZone.UTC);
final Transaction externalPaymentData = new Transaction(); externalPaymentData.setPaymentMethod("other"); final DateTime collectionDateTime = new DateTime(DateTimeZone.UTC);