Class SurchargePlugin
- java.lang.Object
-
- ru.easydonate.easydonate4j.api.v3.data.model.plugin.AbstractPlugin
-
- ru.easydonate.easydonate4j.api.v3.data.model.plugin.easydonate.surcharge.SurchargePlugin
-
- All Implemented Interfaces:
Plugin
public final class SurchargePlugin extends AbstractPlugin
-
-
Field Summary
-
Fields inherited from class ru.easydonate.easydonate4j.api.v3.data.model.plugin.AbstractPlugin
client, pluginType, requestExecutor
-
-
Constructor Summary
Constructors Constructor Description SurchargePlugin(@NotNull EasyDonateClient client, @NotNull PluginRequestExecutor requestExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull SurchargeDiscount
getDiscount(@NotNull String customer, int productId)
@NotNull SurchargeDiscountsList
getDiscountsList(@NotNull String customer)
@NotNull SurchargePluginSettings
getSettings()
Request the plugin settings from the remote API server.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ru.easydonate.easydonate4j.api.v3.data.model.plugin.Plugin
getClient, getPluginType
-
-
-
-
Constructor Detail
-
SurchargePlugin
public SurchargePlugin(@NotNull @NotNull EasyDonateClient client, @NotNull @NotNull PluginRequestExecutor requestExecutor)
-
-
Method Detail
-
getSettings
@NotNull public @NotNull SurchargePluginSettings getSettings() throws HttpRequestException, HttpResponseException
Description copied from interface:Plugin
Request the plugin settings from the remote API server.- Returns:
- The actual plugin settings.
- Throws:
HttpRequestException
- when any errors with request sending has occured.HttpResponseException
- when any errors with response handling has occured.- See Also:
PluginSettings
-
getDiscountsList
@NotNull public @NotNull SurchargeDiscountsList getDiscountsList(@NotNull @NotNull String customer) throws HttpRequestException, HttpResponseException
-
getDiscount
@NotNull public @NotNull SurchargeDiscount getDiscount(@NotNull @NotNull String customer, int productId) throws HttpRequestException, HttpResponseException
-
-