Skip to content

Commit

Permalink
renamed param
Browse files Browse the repository at this point in the history
  • Loading branch information
Iulian Masar committed Mar 28, 2024
1 parent bb6181d commit c9d127e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/mangopay/core/APIs/PayInApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.mangopay.core.Sorting;
import com.mangopay.entities.*;
import com.mangopay.entities.subentities.CreateCardPreAuthorizedDepositPayIn;
import com.mangopay.entities.subentities.PayPalWebTrackingData;
import com.mangopay.entities.subentities.PayPalWebTracking;

import java.util.List;

Expand Down Expand Up @@ -155,5 +155,5 @@ public interface PayInApi {
* @param trackingData trackingInformation object
* @return {PayIn} object returned by the API
*/
PayIn addPayPalTrackingInformation(String payInId, PayPalWebTrackingData trackingData) throws Exception;
PayIn addPayPalTrackingInformation(String payInId, PayPalWebTracking trackingData) throws Exception;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import com.mangopay.core.serializer.PayInSerializer;
import com.mangopay.entities.*;
import com.mangopay.entities.subentities.CreateCardPreAuthorizedDepositPayIn;
import com.mangopay.entities.subentities.PayPalWebTrackingData;
import com.mangopay.entities.subentities.PayPalWebTracking;

import java.util.List;

Expand Down Expand Up @@ -137,7 +137,7 @@ public PaymentMethodMetadata getPaymentMethodMetadata(PaymentMethodMetadata meta
}

@Override
public PayIn addPayPalTrackingInformation(String payInId, PayPalWebTrackingData trackingData) throws Exception {
public PayIn addPayPalTrackingInformation(String payInId, PayPalWebTracking trackingData) throws Exception {
return this.updateObject(PayIn.class, "add_tracking_info", trackingData, payInId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ public PayIn deserialize(JsonElement json, Type typeOfT, JsonDeserializationCont
payInPaymentDetailsPayPal.setPaypalOrderID(object.get("PaypalOrderID").getAsString());
}
if (object.has("Trackings") && !object.get("Trackings").isJsonNull()) {
Type listType = new TypeToken<ArrayList<PayPalWebTrackingData>>() {
Type listType = new TypeToken<ArrayList<PayPalWebTracking>>() {
}.getType();
payInPaymentDetailsPayPal.setTrackings((List<PayPalWebTrackingData>) context.deserialize(object.get("Trackings"), listType));
payInPaymentDetailsPayPal.setTrackings((List<PayPalWebTracking>) context.deserialize(object.get("Trackings"), listType));
}

payIn.setPaymentDetails(payInPaymentDetailsPayPal);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class PayInPaymentDetailsPayPal extends Dto implements PayInPaymentDetail
private String paypalBuyerAccountEmail;

@SerializedName("Trackings")
private List<PayPalWebTrackingData> trackings;
private List<PayPalWebTracking> trackings;

public ShippingAddress getShippingAddress() {
return shippingAddress;
Expand Down Expand Up @@ -204,11 +204,11 @@ public PayInPaymentDetailsPayPal setPaypalOrderID(String paypalOrderID) {
return this;
}

public List<PayPalWebTrackingData> getTrackings() {
public List<PayPalWebTracking> getTrackings() {
return trackings;
}

public PayInPaymentDetailsPayPal setTrackings(List<PayPalWebTrackingData> trackings) {
public PayInPaymentDetailsPayPal setTrackings(List<PayPalWebTracking> trackings) {
this.trackings = trackings;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import com.google.gson.annotations.SerializedName;
import com.mangopay.core.EntityBase;

public class PayPalWebTrackingData extends EntityBase {
public class PayPalWebTracking extends EntityBase {

/**
* The shipment’s tracking number provided by the carrier.
Expand All @@ -29,7 +29,7 @@ public String getTrackingNumber() {
return trackingNumber;
}

public PayPalWebTrackingData setTrackingNumber(String trackingNumber) {
public PayPalWebTracking setTrackingNumber(String trackingNumber) {
this.trackingNumber = trackingNumber;
return this;
}
Expand All @@ -38,7 +38,7 @@ public String getCarrier() {
return carrier;
}

public PayPalWebTrackingData setCarrier(String carrier) {
public PayPalWebTracking setCarrier(String carrier) {
this.carrier = carrier;
return this;
}
Expand All @@ -47,7 +47,7 @@ public boolean isNotifyBuyer() {
return notifyBuyer;
}

public PayPalWebTrackingData setNotifyBuyer(boolean notifyBuyer) {
public PayPalWebTracking setNotifyBuyer(boolean notifyBuyer) {
this.notifyBuyer = notifyBuyer;
return this;
}
Expand Down

0 comments on commit c9d127e

Please sign in to comment.