Package com.google.checkout.sdk.domain

Examples of com.google.checkout.sdk.domain.TrackingData


public class TrackingDataBuilder {

  private final List<TrackingData> trackingDatas = new ArrayList<TrackingData>();

  public TrackingDataBuilder addTrackingData(String carrier, String trackingNumber) {
    TrackingData trackingData = new TrackingData();
    trackingData.setCarrier(carrier);
    trackingData.setTrackingNumber(trackingNumber);
    trackingDatas.add(trackingData);

    return this;
  }
View Full Code Here


    assertEquals("googleOrderNumber", chargeShipRequest.getGoogleOrderNumber());
    assertEquals(5.00, chargeShipRequest.getAmount().getValue().doubleValue());
    List<TrackingData> trackingDatas = chargeShipRequest.getTrackingDataList().getTrackingData();
    assertEquals("Unexpectedly found " + trackingDatas + " but expected 1 entry",
        1, trackingDatas.size());
    TrackingData trackingData = trackingDatas.get(0);
    assertEquals("carrier", trackingData.getCarrier());
    assertEquals("trackingNumber", trackingData.getTrackingNumber());
  }
View Full Code Here

TOP

Related Classes of com.google.checkout.sdk.domain.TrackingData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.