Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class Product {
*/
@Expose
@SerializedName("price_details")
private PriceDetails price_details;
private PriceDetails priceDetails;


public String getProductId() {
Expand Down Expand Up @@ -93,11 +93,11 @@ public void setImage(String image) {
}

public PriceDetails getPriceDetails() {
return price_details;
return priceDetails;
}

public void setPriceDetails(PriceDetails price_details) {
this.price_details = price_details;
this.priceDetails = price_details;
}

public class PriceDetails {
Expand All @@ -107,21 +107,21 @@ public class PriceDetails {
*/
@Expose
@SerializedName("service_fees")
private List<ServiceFees> service_fees;
private List<ServiceFees> serviceFees;

/**
* The unit of distance used to calculate the fare (either mile or km).
*/
@Expose
@SerializedName("distance_unit")
private String distance_unit;
private String distanceUnit;

/**
* The charge per minute (if applicable for the product type).
*/
@Expose
@SerializedName("cost_per_minute")
private double cost_per_minute;
private double costPerMinute;

/**
* The minimum price of a trip.
Expand All @@ -135,7 +135,7 @@ public class PriceDetails {
*/
@Expose
@SerializedName("cost_per_distance")
private double cost_per_distance;
private double costPerDistance;

/**
* The base price.
Expand All @@ -149,38 +149,38 @@ public class PriceDetails {
*/
@Expose
@SerializedName("cancellation_fee")
private double cancellation_fee;
private double cancellationFee;

/**
* ISO 4217 currency code.
*/
@Expose
@SerializedName("currency_code")
private String currency_code;
private String currencyCode;


public List<ServiceFees> getServiceFees() {
return service_fees;
return serviceFees;
}

public void setServiceFees(List<ServiceFees> service_fees) {
this.service_fees = service_fees;
this.serviceFees = service_fees;
}

public String getDistanceUnit() {
return distance_unit;
return distanceUnit;
}

public void setDistanceUnit(String distance_unit) {
this.distance_unit = distance_unit;
this.distanceUnit = distance_unit;
}

public double getCostPerMinute() {
return cost_per_minute;
return costPerMinute;
}

public void setCostPerMinute(double cost_per_minute) {
this.cost_per_minute = cost_per_minute;
this.costPerMinute = cost_per_minute;
}

public double getMinimum() {
Expand All @@ -192,11 +192,11 @@ public void setMinimum(double minimum) {
}

public double getCostPerDistance() {
return cost_per_distance;
return costPerDistance;
}

public void setCostPerDistance(double cost_per_distance) {
this.cost_per_distance = cost_per_distance;
this.costPerDistance = cost_per_distance;
}

public double getBase() {
Expand All @@ -208,19 +208,19 @@ public void setBase(double base) {
}

public double getCancellationFee() {
return cancellation_fee;
return cancellationFee;
}

public void setCancellationFee(double cancellation_fee) {
this.cancellation_fee = cancellation_fee;
this.cancellationFee = cancellation_fee;
}

public String getCurrencyCode() {
return currency_code;
return currencyCode;
}

public void setCurrencyCode(String currency_code) {
this.currency_code = currency_code;
this.currencyCode = currency_code;
}

public class ServiceFees {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ public class EstimatePrice {
*/
@Expose
@SerializedName("surge_confirmation_href")
private String surge_confirmation_href;
private String surgeConfirmationHref;

/**
* Upper bound of the estimated price.
*/
@Expose
@SerializedName("high_estimate")
private int high_estimate;
private int highEstimate;

/**
* The unique identifier of the surge session for a user. null if no surge is currently in effect.
*/
@Expose
@SerializedName("surge_confirmation_id")
private String surge_confirmation_id;
private String surgeConfirmationId;

/**
* The minimum fare of a trip. Should only be displayed or used if no end location is provided.
Expand All @@ -38,14 +38,14 @@ public class EstimatePrice {
*/
@Expose
@SerializedName("low_estimate")
private int low_estimate;
private int lowEstimate;

/**
* Expected surge multiplier. Surge is active if surge_multiplier is greater than 1. Fare estimates below factor in the surge multiplier.
*/
@Expose
@SerializedName("surge_multiplier")
private double surge_multiplier;
private double surgeMultiplier;

/**
* Formatted string of estimate in local currency of the start location.
Expand All @@ -60,31 +60,31 @@ public class EstimatePrice {
*/
@Expose
@SerializedName("currency_code")
private String currency_code;
private String currencyCode;


public String getSurge_confirmation_href() {
return surge_confirmation_href;
return surgeConfirmationHref;
}

public void setSurge_confirmation_href(String surge_confirmation_href) {
this.surge_confirmation_href = surge_confirmation_href;
this.surgeConfirmationHref = surge_confirmation_href;
}

public int getHigh_estimate() {
return high_estimate;
return highEstimate;
}

public void setHigh_estimate(int high_estimate) {
this.high_estimate = high_estimate;
this.highEstimate = high_estimate;
}

public String getSurge_confirmation_id() {
return surge_confirmation_id;
return surgeConfirmationId;
}

public void setSurge_confirmation_id(String surge_confirmation_id) {
this.surge_confirmation_id = surge_confirmation_id;
this.surgeConfirmationId = surge_confirmation_id;
}

public int getMinimum() {
Expand All @@ -96,19 +96,19 @@ public void setMinimum(int minimum) {
}

public int getLow_estimate() {
return low_estimate;
return lowEstimate;
}

public void setLow_estimate(int low_estimate) {
this.low_estimate = low_estimate;
this.lowEstimate = low_estimate;
}

public double getSurge_multiplier() {
return surge_multiplier;
return surgeMultiplier;
}

public void setSurge_multiplier(double surge_multiplier) {
this.surge_multiplier = surge_multiplier;
this.surgeMultiplier = surge_multiplier;
}

public String getDisplay() {
Expand All @@ -120,10 +120,10 @@ public void setDisplay(String display) {
}

public String getCurrency_code() {
return currency_code;
return currencyCode;
}

public void setCurrency_code(String currency_code) {
this.currency_code = currency_code;
this.currencyCode = currency_code;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,43 @@ public class Trip {
*/
@Expose
@SerializedName("distance_unit")
private String distance_unit;
private String distanceUnit;

/**
* Expected activity duration (in minutes).
*/
@Expose
@SerializedName("duration_estimate")
private int duration_estimate;
private int durationEstimate;

/**
* Expected activity distance.
*/
@Expose
@SerializedName("distance_estimate")
private double distance_estimate;
private double distanceEstimate;

public String getDistance_unit() {
return distance_unit;
return distanceUnit;
}

public void setDistance_unit(String distance_unit) {
this.distance_unit = distance_unit;
this.distanceUnit = distance_unit;
}

public int getDuration_estimate() {
return duration_estimate;
return durationEstimate;
}

public void setDuration_estimate(int duration_estimate) {
this.duration_estimate = duration_estimate;
this.durationEstimate = duration_estimate;
}

public double getDistance_estimate() {
return distance_estimate;
return distanceEstimate;
}

public void setDistance_estimate(double distance_estimate) {
this.distance_estimate = distance_estimate;
this.distanceEstimate = distance_estimate;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class UberEstimateRequest {
*/
@Expose
@SerializedName("pickup_estimate")
private int pickup_estimate;
private int pickupEstimate;

/**
* Details of the estimated fare. If end location is omitted, only the minimum is returned.
Expand All @@ -28,11 +28,11 @@ public class UberEstimateRequest {


public int getPickup_estimate() {
return pickup_estimate;
return pickupEstimate;
}

public void setPickup_estimate(int pickup_estimate) {
this.pickup_estimate = pickup_estimate;
this.pickupEstimate = pickup_estimate;
}

public EstimatePrice getPrice() {
Expand Down
Loading