adjustmentData1.setCurrency("USD"); adjustmentData1.setUnitAmountInCents(100); adjustmentData1.setDescription("A description of an account adjustment1"); adjustmentData2.setCurrency("USD"); adjustmentData2.setUnitAmountInCents(100); adjustmentData2.setDescription("A description of an account adjustment2");
adjustmentData1.setCurrency("USD"); adjustmentData1.setUnitAmountInCents(100); adjustmentData1.setDescription("A description of an account adjustment1"); adjustmentData2.setCurrency("USD"); adjustmentData2.setUnitAmountInCents(100); adjustmentData2.setDescription("A description of an account adjustment2");
adjustment.setCurrency("USD"); adjustment.setUnitAmountInCents("100"); adjustment.setDescription("A description of an account adjustment"); adjustmentWithCode.setCurrency("USD"); adjustmentWithCode.setUnitAmountInCents("200"); adjustmentWithCode.setDescription("A description of an account adjustment with a code");
/** * Creates a random {@link com.ning.billing.recurly.model.Adjustment} object for testing use given a seed * * @param seed The RNG seed * @return The random {@link com.ning.billing.recurly.model.Adjustment} object */ public static Adjustment createRandomAdjustment(final int seed) { final Adjustment adjustment = new Adjustment(); adjustment.setDescription(randomAlphaNumericString(50, seed)); adjustment.setAccountingCode(randomAlphaNumericString(10, seed)); adjustment.setUnitAmountInCents(randomInteger(1000, seed)); adjustment.setQuantity(1 + randomInteger(10, seed)); adjustment.setCurrency(randomCurrency(seed)); adjustment.setStartDate(NOW); adjustment.setStartDate(TOMORROW); return adjustment; }
adjustmentData1.setCurrency("USD"); adjustmentData1.setUnitAmountInCents(100); adjustmentData1.setDescription("A description of an account adjustment1"); adjustmentData2.setCurrency("USD"); adjustmentData2.setUnitAmountInCents(100); adjustmentData2.setDescription("A description of an account adjustment2");
adjustment.setCurrency("USD"); adjustment.setUnitAmountInCents("100"); adjustment.setDescription("A description of an account adjustment"); adjustmentWithCode.setCurrency("USD"); adjustmentWithCode.setUnitAmountInCents("200"); adjustmentWithCode.setDescription("A description of an account adjustment with a code");
/** * Creates a random {@link com.ning.billing.recurly.model.Adjustment} object for testing use given a seed * * @param seed The RNG seed * @return The random {@link com.ning.billing.recurly.model.Adjustment} object */ public static Adjustment createRandomAdjustment(final int seed) { final Adjustment adjustment = new Adjustment(); adjustment.setDescription(randomAlphaNumericString(50, seed)); adjustment.setAccountingCode(randomAlphaNumericString(10, seed)); adjustment.setUnitAmountInCents(randomInteger(1000, seed)); adjustment.setQuantity(1 + randomInteger(10, seed)); adjustment.setCurrency(randomCurrency(seed)); adjustment.setStartDate(NOW); adjustment.setStartDate(TOMORROW); return adjustment; }
adjustmentData1.setCurrency("USD"); adjustmentData1.setUnitAmountInCents(100); adjustmentData1.setDescription("A description of an account adjustment1"); adjustmentData2.setCurrency("USD"); adjustmentData2.setUnitAmountInCents(100); adjustmentData2.setDescription("A description of an account adjustment2");
adjustmentData.setCurrency("USD"); adjustmentData.setUnitAmountInCents("100"); adjustmentData.setDescription("A description of an account adjustment");
adjustmentData.setCurrency("USD"); adjustmentData.setUnitAmountInCents("100"); adjustmentData.setDescription("A description of an account adjustment");