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

io.sphere.sdk.carts.ExternalTaxAmountDraft Maven / Gradle / Ivy

The newest version!
package io.sphere.sdk.carts;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.annotations.FactoryMethod;
import io.sphere.sdk.annotations.ResourceDraftValue;
import io.sphere.sdk.taxcategories.ExternalTaxRateDraft;

import javax.money.MonetaryAmount;

@ResourceDraftValue(
        factoryMethods = @FactoryMethod(parameterNames = { "totalGross", "taxRate" }))
@JsonDeserialize(as = ExternalTaxAmountDraftDsl.class)
public interface ExternalTaxAmountDraft {
    /**
     * @return The total gross amount of the item (totalNet + taxes).
     */
    MonetaryAmount getTotalGross();

    ExternalTaxRateDraft getTaxRate();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy