package com.paypal.android.sdk.onetouch.core.sdk;

import java.util.Collection;
import java.util.HashSet;

/**
 * Scopes that a user may be asked to consented to.  This class is for internal use only.
 */
public enum PayPalScope {

    /**
     * Allows payments to be made in the future using PayPal
     */
    FUTURE_PAYMENTS("https://uri.paypal.com/services/payments/futurepayments", false),

    /**
     * Account profile
     */
    PROFILE("profile", true),

    /**
     * PayPal attributes - personal and account information
     */
    PAYPAL_ATTRIBUTES("https://uri.paypal.com/services/paypalattributes", true),

    /**
     * openid
     */
    OPENID("openid", true),

    /**
     * email
     */
    EMAIL("email", true),

    /**
     * address
     */
    ADDRESS("address", true),

    /**
     * phone
     */
    PHONE("phone", true);

    public static final Collection<String> PROFILE_SHARING_SCOPE_URIS = new HashSet<String>() {{
        for (PayPalScope scope : PayPalScope.values()) {
            if (scope.mIsProfileSharingScope) {
                add(scope.getScopeUri());
            }
        }
    }};

    public static final Collection<String> SCOPE_URIS = new HashSet<String>() {{
        for (PayPalScope scope : PayPalScope.values()) {
            add(scope.getScopeUri());
        }
    }};

    private String mScopeUri;
    private boolean mIsProfileSharingScope;

    PayPalScope(String scopeUri, boolean isProfileSharingScope) {
        mScopeUri = scopeUri;
        mIsProfileSharingScope = isProfileSharingScope;
    }

    public String getScopeUri() {
        return mScopeUri;
    }
}

@@ -48,64 +48,8 @@
 k;%0A%0A
-import java.util.Collection;%0Aimport java.util.HashSet;%0A%0A
 /**%0A
@@ -327,15 +327,8 @@
 nts%22
-, false
 ),%0A%0A
@@ -387,22 +387,16 @@
 profile%22
-, true
 ),%0A%0A    
@@ -539,22 +539,16 @@
 ributes%22
-, true
 ),%0A%0A    
@@ -592,22 +592,16 @@
 %22openid%22
-, true
 ),%0A%0A    
@@ -642,22 +642,16 @@
 (%22email%22
-, true
 ),%0A%0A    
@@ -698,22 +698,16 @@
 address%22
-, true
 ),%0A%0A    
@@ -752,14 +752,8 @@
 one%22
-, true
 );%0A%0A
@@ -761,547 +761,31 @@
    p
-ublic static final Collection%3CString%3E PROFILE_SHARING_SCOPE_URIS = new HashSet%3CString%3E() %7B%7B%0A        for (PayPalScope scope : PayPalScope.values()) %7B%0A            if (scope.mIsProfileSharingScope) %7B%0A                add(scope.getScopeUri());%0A            %7D%0A        %7D%0A    %7D%7D;%0A%0A    public static final Collection%3CString%3E SCOPE_URIS = new HashSet%3CString%3E() %7B%7B%0A        for (PayPalScope scope : PayPalScope.values()) %7B%0A            add(scope.getScopeUri());%0A        %7D%0A    %7D%7D;%0A%0A    private String mScopeUri;%0A    private boolean mIsProfileSharingScope
+rivate String mScopeUri
 ;%0A%0A 
@@ -818,39 +818,8 @@
 eUri
-, boolean isProfileSharingScope
 ) %7B%0A
@@ -852,64 +852,8 @@
 ri;%0A
-        mIsProfileSharingScope = isProfileSharingScope;%0A
     

Remove unused PayPalScope constants