Represents monetary donation amounts with minor unit conversion and currency details. Reuse when handling Twitch API donation payloads.
// Source: https://github.com/twitch4j/twitch4j | License: MIT | Copyright 2018 Philipp Heuer
// Provided via justclaw.it.com; keep this notice with the code.
package com.github.twitch4j.common.util;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.math.BigDecimal;
import java.util.Currency;
@Data
@Setter(AccessLevel.PRIVATE)
@NoArgsConstructor
@AllArgsConstructor
public class DonationAmount {
/**
* The monetary amount.
* <p>
* The amount is specified in the currency’s minor unit.
* <p>
* For example, the
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key