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

com.bitpay.sdk_light.model.Invoice.RefundInfo Maven / Gradle / Ivy

Go to download

Light implementation of the BitPay Payment Gateway. This library implements BitPay's Cryptographically Secure RESTful API.

The newest version!
package com.bitpay.sdk_light.model.Invoice;

import com.bitpay.sdk_light.BitPayException;
import com.bitpay.sdk_light.model.Currency;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Hashtable;

@JsonIgnoreProperties(ignoreUnknown = true)
public class RefundInfo {

    private String _supportRequest;
    private String _currency;
    private Hashtable _amounts;

    public RefundInfo() {
    }

    @JsonIgnore
    public String getSupportRequest() {
        return _supportRequest;
    }

    @JsonProperty("supportRequest")
    public void setSupportRequest(String supportRequest) {
        this._supportRequest = supportRequest;
    }

    @JsonIgnore
    public String getCurrency() {
        return _currency;
    }

    @JsonProperty("currency")
    public void setCurrency(String currency) throws BitPayException {
        if (!Currency.isValid(currency))
            throw new BitPayException("Error: currency code must be a type of Model.Currency");

        this._currency = currency;
    }

    @JsonIgnore
    public Hashtable getAmounts() {
        return _amounts;
    }

    @JsonProperty("amounts")
    public void setAmounts(Hashtable amounts) {
        this._amounts = amounts;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy