All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.FeeAssessmentMethod Maven / Gradle / Ivy

The newest version!
/*-
 *
 * Hedera Java SDK
 *
 * Copyright (C) 2020 - 2024 Hedera Hashgraph, LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package com.hedera.hashgraph.sdk;

/**
 * Enum for the fee assessment method.
 * 

* The terminology here (exclusive vs inclusive) is borrowed from tax assessment. */ public enum FeeAssessmentMethod { /** * If Alice is paying Bob, and an inclusive fractional fee is collected to be sent to Charlie, * the amount Alice declares she will pay in the transfer transaction includes the fee amount. *

* In other words, Bob receives the amount that Alice intended to send, minus the fee. */ INCLUSIVE(false), /** * If Alice is paying Bob, and an exclusive fractional fee is collected to be sent to Charlie, * the amount Alice declares she will pay in the transfer transaction does not include the fee amount. *

* In other words, Alice is charged the fee in addition to the amount she intended to send to Bob. */ EXCLUSIVE(true); final boolean code; FeeAssessmentMethod(boolean code) { this.code = code; } static FeeAssessmentMethod valueOf(boolean code) { return code ? EXCLUSIVE : INCLUSIVE; } @Override public String toString() { return code ? "EXCLUSIVE" : "INCLUSIVE"; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy