Skip to content

Commit

Permalink
Move PayPalLineItem class to PayPal module and update javadoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
braintreeps committed Sep 25, 2019
1 parent 619753e commit fa14165
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import com.braintreepayments.api.models.PayPalAccountBuilder;
import com.braintreepayments.api.models.PayPalAccountNonce;
import com.braintreepayments.api.models.PayPalConfiguration;
import com.braintreepayments.api.models.PayPalLineItem;
import com.paypal.android.sdk.onetouch.core.PayPalLineItem;
import com.braintreepayments.api.models.PayPalPaymentResource;
import com.braintreepayments.api.models.PayPalRequest;
import com.braintreepayments.api.models.PaymentMethodNonce;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
import android.os.Parcelable;
import androidx.annotation.StringDef;

import com.paypal.android.sdk.onetouch.core.PayPalLineItem;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
* Represents the parameters that are needed to start a Checkout with PayPal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import com.braintreepayments.api.exceptions.InvalidArgumentException;
import com.braintreepayments.api.models.Authorization;
import com.braintreepayments.api.models.Configuration;
import com.braintreepayments.api.models.PayPalLineItem;
import com.paypal.android.sdk.onetouch.core.PayPalLineItem;
import com.braintreepayments.api.models.PayPalRequest;
import com.braintreepayments.api.models.PostalAddress;
import com.paypal.android.sdk.onetouch.core.BillingAgreementRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import com.braintreepayments.api.models.Configuration;
import com.braintreepayments.api.models.PayPalAccountBuilder;
import com.braintreepayments.api.models.PayPalAccountNonce;
import com.braintreepayments.api.models.PayPalLineItem;
import com.paypal.android.sdk.onetouch.core.PayPalLineItem;
import com.braintreepayments.api.models.PayPalRequest;
import com.braintreepayments.api.models.PaymentMethodBuilder;
import com.braintreepayments.api.models.PaymentMethodNonce;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintreepayments.api.models;
package com.paypal.android.sdk.onetouch.core;

import android.os.Parcel;
import android.os.Parcelable;
Expand All @@ -15,6 +15,13 @@ public class PayPalLineItem implements Parcelable {

@Retention(RetentionPolicy.SOURCE)
@StringDef({PayPalLineItem.KIND_CREDIT, PayPalLineItem.KIND_DEBIT})

/**
* The type of PayPal line item.
*
* {@link #KIND_CREDIT} A line item that is a credit.
* {@link #KIND_DEBIT} A line item that debits.
*/
@interface PayPalLineItemKind {}
public static final String KIND_CREDIT = "credit";
public static final String KIND_DEBIT = "debit";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.braintreepayments.api.models;
package com.paypal.android.sdk.onetouch.core;

import android.os.Parcel;

Expand Down

0 comments on commit fa14165

Please sign in to comment.