Android Open Source - android-sdk Invoice Transaction






From Project

Back to project page android-sdk.

License

The source code is released under:

MIT License

If you think the Android project android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.bitpay.sdk.model;
// w  w  w.j  a va 2  s . co  m
import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonAutoDetect;

/**
 * Stores information about when (in which transaction in the blockchain was an invoice paid,
 * partially or totally.
 */
@JsonAutoDetect(fieldVisibility=JsonAutoDetect.Visibility.ANY)
public class InvoiceTransaction implements Parcelable {

  private String txid;
  private String type;
  private double amount;
    private Integer confirmations;
    private String time;
    private String receivedTime;
  
    public InvoiceTransaction() {}

  public String getTxid() {
    return txid;
  }
  public void setTxid(String _txid) {
        this.txid = _txid;
    }
  public String getType() {
    return type;
  }
  public void setType(String _type) {
    this.type = _type;
  }
  public double getAmount() {
    return amount;
  }
  public void setAmount(double _amount) {
    this.amount = _amount;
  }
    public Integer getConfirmations() {
        return confirmations;
    }
    public void setConfirmations(Integer confirmations) {
        this.confirmations = confirmations;
    }
    public String getTime() {
        return time;
    }
    public void setTime(String time) {
        this.time = time;
    }
    public String getReceivedTime() {
        return receivedTime;
    }
    public void setReceivedTime(String receivedTime) {
        this.receivedTime = receivedTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(txid);
        dest.writeString(type);
        dest.writeDouble(amount);
        dest.writeInt(confirmations == null ? 0 : confirmations);
        dest.writeString(time);
        dest.writeString(receivedTime);
    }

    public static final Parcelable.Creator<InvoiceTransaction> CREATOR = new Parcelable.Creator<InvoiceTransaction>() {
        public InvoiceTransaction createFromParcel(Parcel in) {

            InvoiceTransaction transaction = new InvoiceTransaction();
            transaction.setTxid(in.readString());
            transaction.setTxid(in.readString());
            transaction.setAmount(in.readDouble());
            transaction.setConfirmations(in.readInt());
            transaction.setTxid(in.readString());
            transaction.setTxid(in.readString());
            return transaction;
        }

        @Override
        public InvoiceTransaction[] newArray(int size) {
            return new InvoiceTransaction[size];
        }
    };
}




Java Source Code List

com.bitpay.sdk.android.BitPayAndroid.java
com.bitpay.sdk.android.InvoiceActivity.java
com.bitpay.sdk.android.interfaces.BitpayPromiseCallback.java
com.bitpay.sdk.android.interfaces.InvoiceCreationCallback.java
com.bitpay.sdk.android.interfaces.InvoicePromiseCallback.java
com.bitpay.sdk.android.interfaces.PromiseCallback.java
com.bitpay.sdk.android.interfaces.RatesPromiseCallback.java
com.bitpay.sdk.android.promises.BitpayPromise.java
com.bitpay.sdk.controller.BitPayException.java
com.bitpay.sdk.controller.BitPay.java
com.bitpay.sdk.controller.KeyUtils.java
com.bitpay.sdk.model.BuyerInfo.java
com.bitpay.sdk.model.InvoicePaymentUrls.java
com.bitpay.sdk.model.InvoiceTransaction.java
com.bitpay.sdk.model.Invoice.java
com.bitpay.sdk.model.Policy.java
com.bitpay.sdk.model.Rate.java
com.bitpay.sdk.model.Rates.java
com.bitpay.sdk.model.Token.java