congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Adjustments
Code IndexAdd Tabnine to your IDE (free)

How to use
Adjustments
in
com.ning.billing.recurly.model

Best Java code snippets using com.ning.billing.recurly.model.Adjustments (Showing top 20 results out of 315)

origin: killbilling/recurly-java-library

  return false;
if (adjustments != null ? !adjustments.equals(purchase.adjustments) : purchase.adjustments != null) {
  return false;
origin: killbilling/recurly-java-library

  @JsonIgnore
  @Override
  public Adjustments getNext() {
    return getNext(Adjustments.class);
  }
}
origin: killbilling/recurly-java-library

@JsonIgnore
@Override
public Adjustments getStart() {
  return getStart(Adjustments.class);
}
origin: com.ning.billing/recurly-java-library

/**
 * Creates a random {@link Purchase} object for use in Tests given a seed
 *
 * @param seed The RNG seed
 * @return The random {@link Purchase} object
 */
public static Purchase createRandomPurchase(final int seed) {
  final Purchase purchase = new Purchase();
  purchase.setAccount(createRandomAccount(seed));
  Adjustments adjustments = new Adjustments();
  adjustments.add(createRandomAdjustment(seed));
  purchase.setAdjustments(adjustments);
  purchase.setCurrency("USD");
  purchase.setCollectionMethod("automatic");
  purchase.setPoNumber("PO12345");
  purchase.setNetTerms(30);
  return purchase;
}
origin: com.ning.billing/recurly-java-library

Assert.assertEquals(adjustments.size(), 1);
final Adjustment adjustment = adjustments.get(0);
origin: com.ning.billing/recurly-java-library

final Account accountData = TestUtils.createRandomAccount();
final BillingInfo billingInfoData = TestUtils.createRandomBillingInfo();
final Adjustments adjustmentsData = new Adjustments();
final Adjustment adjustmentData = TestUtils.createRandomAdjustment();
final GiftCard giftCardData = TestUtils.createRandomGiftCard();
adjustmentsData.add(adjustmentData);
  String subscriptionId = invoice.getLineItems().get(0).getSubscriptionId();
  Subscription sub = recurlyClient.getSubscription(subscriptionId);
  Assert.assertEquals(sub.getUuid(), subscriptionId);
origin: com.ning.billing/recurly-java-library

Assert.assertEquals(invoice.getCreatedAt(), new DateTime("2011-08-25T12:00:00Z"));
Assert.assertNotNull(invoice.getLineItems());
Assert.assertEquals(invoice.getLineItems().size(), 1);
Assert.assertEquals(invoice.getTransactions().size(), 0);
Assert.assertEquals(invoice.getAttemptNextCollectionAt(), new DateTime("2017-08-31T00:00:00Z"));
origin: killbilling/recurly-java-library

assertEquals(billingInfo.getNumber(), "4000-0000-0000-0000");
final Adjustment adjustment = purchase.getAdjustments().get(0);
assertEquals(adjustment.getCurrency(), "USD");
assertEquals(adjustment.getProductCode(), "product-code");
origin: killbilling/recurly-java-library

/**
 * Creates a random {@link Purchase} object for use in Tests given a seed
 *
 * @param seed The RNG seed
 * @return The random {@link Purchase} object
 */
public static Purchase createRandomPurchase(final int seed) {
  final Purchase purchase = new Purchase();
  purchase.setAccount(createRandomAccount(seed));
  Adjustments adjustments = new Adjustments();
  adjustments.add(createRandomAdjustment(seed));
  purchase.setAdjustments(adjustments);
  purchase.setCurrency("USD");
  purchase.setCollectionMethod("automatic");
  purchase.setPoNumber("PO12345");
  purchase.setNetTerms(30);
  return purchase;
}
origin: killbilling/recurly-java-library

Assert.assertEquals(adjustments.size(), 1);
final Adjustment adjustment = adjustments.get(0);
origin: killbilling/recurly-java-library

final Account accountData = TestUtils.createRandomAccount();
final BillingInfo billingInfoData = TestUtils.createRandomBillingInfo();
final Adjustments adjustmentsData = new Adjustments();
final Adjustment adjustmentData = TestUtils.createRandomAdjustment();
final GiftCard giftCardData = TestUtils.createRandomGiftCard();
adjustmentsData.add(adjustmentData);
  String subscriptionId = invoice.getLineItems().get(0).getSubscriptionId();
  Subscription sub = recurlyClient.getSubscription(subscriptionId);
  Assert.assertEquals(sub.getUuid(), subscriptionId);
origin: killbilling/recurly-java-library

Assert.assertEquals(invoice.getCreatedAt(), new DateTime("2011-08-25T12:00:00Z"));
Assert.assertNotNull(invoice.getLineItems());
Assert.assertEquals(invoice.getLineItems().size(), 1);
Assert.assertEquals(invoice.getTransactions().size(), 0);
Assert.assertEquals(invoice.getAttemptNextCollectionAt(), new DateTime("2017-08-31T00:00:00Z"));
origin: com.ning.billing/recurly-java-library

assertEquals(billingInfo.getNumber(), "4000-0000-0000-0000");
final Adjustment adjustment = purchase.getAdjustments().get(0);
assertEquals(adjustment.getCurrency(), "USD");
assertEquals(adjustment.getProductCode(), "product-code");
origin: com.ning.billing/recurly-java-library

final Account accountData = TestUtils.createRandomAccount();
final BillingInfo billingInfoData = TestUtils.createRandomBillingInfo();
final Adjustments adjustmentsData = new Adjustments();
final Adjustment adjustmentData = TestUtils.createRandomAdjustment();
final GiftCard giftCardData = TestUtils.createRandomGiftCard();
adjustmentsData.add(adjustmentData);
origin: killbilling/recurly-java-library

Assert.assertEquals(invoice.getClosedAt(), new DateTime("2011-08-25T12:00:00Z"));
Assert.assertNotNull(invoice.getLineItems());
Assert.assertEquals(invoice.getLineItems().size(), 1);
Assert.assertEquals(invoice.getInvoiceNumberPrefix(), "FR");
Assert.assertEquals(invoice.getId(), "FR1402");
final Adjustment adjustment = invoice.getLineItems().get(0);
Assert.assertEquals(adjustment.getDescription(), "Charge for extra bandwidth");
Assert.assertEquals((int) adjustment.getTotalInCents(), 5000);
origin: com.ning.billing/recurly-java-library

Assert.assertEquals(retrievedAdjustments.size(), 0, "Retrieved Adjustments marked as pending although none should be.");
Assert.assertEquals(retrievedAdjustments.size(), 1, "Not all Adjustments marked as invoiced although all should be.");
Assert.assertEquals(retrievedAdjustments.size(), 0, "Retrieved Adjustments marked as pending although none should be.");
Assert.assertEquals(retrievedAdjustments.size(), 2, "Not all Adjustments marked as invoiced although all should be.");
origin: killbilling/recurly-java-library

  return false;
if (lineItems != null ? !lineItems.equals(invoice.lineItems) : invoice.lineItems != null) {
  return false;
origin: killbilling/recurly-java-library

final Account accountData = TestUtils.createRandomAccount();
final BillingInfo billingInfoData = TestUtils.createRandomBillingInfo();
final Adjustments adjustmentsData = new Adjustments();
final Adjustment adjustmentData = TestUtils.createRandomAdjustment();
final GiftCard giftCardData = TestUtils.createRandomGiftCard();
adjustmentsData.add(adjustmentData);
origin: com.ning.billing/recurly-java-library

Assert.assertEquals(invoice.getClosedAt(), new DateTime("2011-08-25T12:00:00Z"));
Assert.assertNotNull(invoice.getLineItems());
Assert.assertEquals(invoice.getLineItems().size(), 1);
Assert.assertEquals(invoice.getInvoiceNumberPrefix(), "FR");
Assert.assertEquals(invoice.getId(), "FR1402");
final Adjustment adjustment = invoice.getLineItems().get(0);
Assert.assertEquals(adjustment.getDescription(), "Charge for extra bandwidth");
Assert.assertEquals((int) adjustment.getTotalInCents(), 5000);
origin: killbilling/recurly-java-library

Assert.assertEquals(retrievedAdjustments.size(), 0, "Retrieved Adjustments marked as pending although none should be.");
Assert.assertEquals(retrievedAdjustments.size(), 1, "Not all Adjustments marked as invoiced although all should be.");
Assert.assertEquals(retrievedAdjustments.size(), 0, "Retrieved Adjustments marked as pending although none should be.");
Assert.assertEquals(retrievedAdjustments.size(), 2, "Not all Adjustments marked as invoiced although all should be.");
com.ning.billing.recurly.modelAdjustments

Most used methods

  • <init>
  • add
  • equals
  • get
  • getNext
  • getStart
  • size

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JTable (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now