mirror of
https://github.com/google/nomulus
synced 2026-01-11 00:10:36 +00:00
Simplify the use of the fee extension a little
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133149148
This commit is contained in:
@@ -35,18 +35,19 @@ public interface FeeQueryCommandExtensionItem {
|
||||
UPDATE
|
||||
}
|
||||
|
||||
/** True if this version of fee extension includes a currency in this type of query item. */
|
||||
public boolean isCurrencySupported();
|
||||
|
||||
/** A three-character ISO4217 currency code; throws an exception if currency is not supported. */
|
||||
public CurrencyUnit getCurrency() throws UnsupportedOperationException;
|
||||
/**
|
||||
* Three-character ISO4217 currency code.
|
||||
*
|
||||
* <p>Returns null if this version of the fee extension doesn't specify currency at the top level.
|
||||
*/
|
||||
public CurrencyUnit getCurrency();
|
||||
|
||||
/** The name of the command being checked. */
|
||||
public CommandName getCommandName();
|
||||
|
||||
|
||||
/** The unparse name of the command being checked, for use in error strings. */
|
||||
public String getUnparsedCommandName();
|
||||
|
||||
|
||||
/** The phase of the command being checked. */
|
||||
public String getPhase();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user