Commit 1ce09638 authored by Liquan (Max) Gu's avatar Liquan (Max) Gu Committed by Commit Bot

[PlayBilling] Correct javadoc for types

Before Change:
The javadoc said the types "mirror" those in mojom, which is not
precise.

After Change:
The javadoc says the types "correspond" to those in mojom, with
minimally required fields.

Change-Id: I5fd70662d7575f84cab63b1cad39ba94f3218b6c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2105670Reviewed-by: default avatarSahel Sharify <sahel@chromium.org>
Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#751323}
parent d80699f2
......@@ -5,11 +5,21 @@
package org.chromium.components.payments.intent;
/**
* The types that mirror the corresponding types in org.chromium.payments.mojom. This class should
* be independent of the org.chromium package.
* The types that corresponds to the types in org.chromium.payments.mojom. The fields of these types
* are the subset of those in the mojom types. The subset is minimally selected based on the need of
* this package. This class should be independent of the org.chromium package.
*
* @see <a
* href="https://developers.google.com/web/fundamentals/payments/payment-apps-developer-guide/android-payment-apps#payment_parameters">Payment
* parameters</a>
* @see <a
* href="https://developers.google.com/web/fundamentals/payments/payment-apps-developer-guide/android-payment-apps#%E2%80%9Cis_ready_to_pay%E2%80%9D_parameters">“Is
* ready to pay” parameters</a>
*/
public final class WebPaymentIntentHelperType {
/** The class that mirrors mojom.PaymentCurrencyAmount. */
/**
* The class that corresponds to mojom.PaymentCurrencyAmount, with minimally required fields.
*/
public static final class PaymentCurrencyAmount {
public final String currency;
public final String value;
......@@ -19,7 +29,7 @@ public final class WebPaymentIntentHelperType {
}
}
/** The class that mirrors mojom.PaymentItem. */
/** The class that corresponds mojom.PaymentItem, with minimally required fields. */
public static final class PaymentItem {
public final PaymentCurrencyAmount amount;
public PaymentItem(PaymentCurrencyAmount amount) {
......@@ -27,7 +37,7 @@ public final class WebPaymentIntentHelperType {
}
}
/** The class that mirrors mojom.PaymentDetailsModifier. */
/** The class that corresponds mojom.PaymentDetailsModifier, with minimally required fields. */
public static final class PaymentDetailsModifier {
public final PaymentItem total;
public final PaymentMethodData methodData;
......@@ -37,7 +47,7 @@ public final class WebPaymentIntentHelperType {
}
}
/** The class that mirrors mojom.PaymentMethodData. */
/** The class that corresponds mojom.PaymentMethodData, with minimally required fields. */
public static final class PaymentMethodData {
public final String supportedMethod;
public final String stringifiedData;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment