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

it.auties.whatsapp.model.business.BusinessCurrency Maven / Gradle / Ivy

There is a newer version: 3.5.1
Show newest version
package it.auties.whatsapp.model.business;

import it.auties.protobuf.base.ProtobufProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.jackson.Jacksonized;

import static it.auties.protobuf.base.ProtobufType.INT64;
import static it.auties.protobuf.base.ProtobufType.STRING;

/**
 * A model class that represents a currency
 */
@AllArgsConstructor
@Data
@Builder
@Jacksonized
@Accessors(fluent = true)
public final class BusinessCurrency implements BusinessLocalizableParameterValue {
    /**
     * The currency countryCode
     */
    @ProtobufProperty(index = 1, type = STRING)
    private String currencyCode;

    /**
     * The amount
     */
    @ProtobufProperty(index = 2, type = INT64)
    private long amount1000;

    @Override
    public BusinessLocalizableParameterType parameterType() {
        return BusinessLocalizableParameterType.CURRENCY;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy