accountData.setBillingInfo(billingInfoData); t.setAccount(accountData); t.setAmountInCents(15); t.setCurrency(CURRENCY); final Transaction createdT = recurlyClient.createTransaction(t);
accountData.setBillingInfo(billingInfoData); t.setAccount(accountData); t.setAmountInCents(15); t.setCurrency(CURRENCY); final Transaction createdT = recurlyClient.createTransaction(t);
/** * 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 DateTime collectionDateTime = new DateTime(DateTimeZone.UTC); externalPaymentData.setCollectedAt(collectionDateTime); externalPaymentData.setAmountInCents(450);
final DateTime collectionDateTime = new DateTime(DateTimeZone.UTC); externalPaymentData.setCollectedAt(collectionDateTime); externalPaymentData.setAmountInCents(450);