@Test public void generateMaskedWalletRequest_whenCartHasNoTotalPrice_returnsNull() { Cart noPriceCart = Cart.newBuilder().build(); assertNull(mAndroidPayConfiguration.generateMaskedWalletRequest(noPriceCart)); }
@Nullable public MaskedWalletRequest generateMaskedWalletRequest(@Nullable Cart cart) { return generateMaskedWalletRequest( cart, mIsPhoneNumberRequired, mIsShippingAddressRequired, mCurrency.getCurrencyCode()); }
AndroidPayConfiguration { @Nullable public MaskedWalletRequest generateMaskedWalletRequest(@Nullable Cart cart) { return generateMaskedWalletRequest( cart, mIsPhoneNumberRequired, mIsShippingAddressRequired, mCurrency.getCurrencyCode()); } }
AndroidPayConfiguration { @Nullable public MaskedWalletRequest generateMaskedWalletRequest(@Nullable Cart cart) { return generateMaskedWalletRequest( cart, mIsPhoneNumberRequired, mIsShippingAddressRequired, mCurrency.getCurrencyCode()); } @VisibleForTesting  AndroidPayConfiguration(
            @NonNull String publicApiKey,
            @NonNull Currency currency,
            boolean shouldUseSources); }
AndroidPayConfiguration { @Nullable public MaskedWalletRequest generateMaskedWalletRequest(@Nullable Cart cart) { return generateMaskedWalletRequest( cart, mIsPhoneNumberRequired, mIsShippingAddressRequired, mCurrency.getCurrencyCode()); } @VisibleForTesting  AndroidPayConfiguration(
            @NonNull String publicApiKey,
            @NonNull Currency currency,
            boolean shouldUseSources); @NonNull static AndroidPayConfiguration getInstance(); static AndroidPayConfiguration init(
            @NonNull @Size(min = 5) String publicApiKey,
            @NonNull String currencyCode,
            boolean shouldUseSources); static AndroidPayConfiguration init(
            @NonNull @Size(min = 5) String publicApiKey,
            @NonNull String currencyCode); static AndroidPayConfiguration init(
            @NonNull @Size(min = 5) String publicApiKey,
            @NonNull Currency currency); void addAllowedCardNetworks(@WalletConstants.CardNetwork Integer... networks); void addAllowedShippingCountries(@NonNull String... countrySpecifications); void addAllowedShippingCountries(
            @NonNull CountrySpecification... countrySpecifications); @Nullable PaymentMethodTokenizationParameters getPaymentMethodTokenizationParameters(); @Nullable MaskedWalletRequest generateMaskedWalletRequest(@Nullable Cart cart); @NonNull static FullWalletRequest generateFullWalletRequest(
            @NonNull String googleTransactionId,
            @NonNull Cart cart); @Nullable MaskedWalletRequest generateMaskedWalletRequest(
            @Nullable Cart cart,
            boolean isPhoneNumberRequired,
            boolean isShippingAddressRequired,
            @Nullable String currencyCode); @NonNull Currency getCurrency(); @Nullable String getCountryCode(); @NonNull String getCurrencyCode(); @NonNull AndroidPayConfiguration setCurrency(@NonNull Currency currency); @NonNull AndroidPayConfiguration setCurrencyCode(@NonNull String currencyCode); @NonNull AndroidPayConfiguration setCountryCode(@Nullable String countryCode); boolean isPhoneNumberRequired(); AndroidPayConfiguration setPhoneNumberRequired(boolean phoneNumberRequired); boolean isShippingAddressRequired(); AndroidPayConfiguration setShippingAddressRequired(boolean shippingAddressRequired); String getMerchantName(); AndroidPayConfiguration setMerchantName(String merchantName); String getPublicApiKey(); AndroidPayConfiguration setPublicApiKey(String publicApiKey); boolean getUsesSources(); }
AndroidPayConfiguration { @Nullable public MaskedWalletRequest generateMaskedWalletRequest(@Nullable Cart cart) { return generateMaskedWalletRequest( cart, mIsPhoneNumberRequired, mIsShippingAddressRequired, mCurrency.getCurrencyCode()); } @VisibleForTesting  AndroidPayConfiguration(
            @NonNull String publicApiKey,
            @NonNull Currency currency,
            boolean shouldUseSources); @NonNull static AndroidPayConfiguration getInstance(); static AndroidPayConfiguration init(
            @NonNull @Size(min = 5) String publicApiKey,
            @NonNull String currencyCode,
            boolean shouldUseSources); static AndroidPayConfiguration init(
            @NonNull @Size(min = 5) String publicApiKey,
            @NonNull String currencyCode); static AndroidPayConfiguration init(
            @NonNull @Size(min = 5) String publicApiKey,
            @NonNull Currency currency); void addAllowedCardNetworks(@WalletConstants.CardNetwork Integer... networks); void addAllowedShippingCountries(@NonNull String... countrySpecifications); void addAllowedShippingCountries(
            @NonNull CountrySpecification... countrySpecifications); @Nullable PaymentMethodTokenizationParameters getPaymentMethodTokenizationParameters(); @Nullable MaskedWalletRequest generateMaskedWalletRequest(@Nullable Cart cart); @NonNull static FullWalletRequest generateFullWalletRequest(
            @NonNull String googleTransactionId,
            @NonNull Cart cart); @Nullable MaskedWalletRequest generateMaskedWalletRequest(
            @Nullable Cart cart,
            boolean isPhoneNumberRequired,
            boolean isShippingAddressRequired,
            @Nullable String currencyCode); @NonNull Currency getCurrency(); @Nullable String getCountryCode(); @NonNull String getCurrencyCode(); @NonNull AndroidPayConfiguration setCurrency(@NonNull Currency currency); @NonNull AndroidPayConfiguration setCurrencyCode(@NonNull String currencyCode); @NonNull AndroidPayConfiguration setCountryCode(@Nullable String countryCode); boolean isPhoneNumberRequired(); AndroidPayConfiguration setPhoneNumberRequired(boolean phoneNumberRequired); boolean isShippingAddressRequired(); AndroidPayConfiguration setShippingAddressRequired(boolean shippingAddressRequired); String getMerchantName(); AndroidPayConfiguration setMerchantName(String merchantName); String getPublicApiKey(); AndroidPayConfiguration setPublicApiKey(String publicApiKey); boolean getUsesSources();  }