com.chargebee.models
Class Transaction

java.lang.Object
  extended by com.chargebee.internal.Resource<Transaction>
      extended by com.chargebee.models.Transaction

public class Transaction
extends Resource<Transaction>


Nested Class Summary
static class Transaction.LinkedInvoice
           
static class Transaction.RecordPaymentRequest
           
static class Transaction.Status
           
static class Transaction.Type
           
 
Field Summary
 
Fields inherited from class com.chargebee.internal.Resource
jsonObj
 
Constructor Summary
Transaction(org.json.JSONObject jsonObj)
           
Transaction(String jsonStr)
           
 
Method Summary
 Integer amount()
           
 String currencyCode()
           
 String customerId()
           
 Timestamp date()
           
 String description()
          Deprecated. 
 String errorCode()
           
 String errorText()
           
 Gateway gateway()
           
 String id()
           
 String idAtGateway()
           
 List<Transaction.LinkedInvoice> linkedInvoices()
           
static ListRequest list()
           
 String maskedCardNumber()
           
 PaymentMethod paymentMethod()
           
static Transaction.RecordPaymentRequest recordPayment(String id)
           
 String referenceNumber()
           
 String refundedTxnId()
           
static Request retrieve(String id)
           
 Transaction.Status status()
           
 String subscriptionId()
           
static ListRequest transactionsForCustomer(String id)
           
static ListRequest transactionsForInvoice(String id)
           
static ListRequest transactionsForSubscription(String id)
           
 Transaction.Type type()
           
 String voidDescription()
          Deprecated. 
 Timestamp voidedAt()
           
 
Methods inherited from class com.chargebee.internal.Resource
nullCheck, optBoolean, optDouble, optEnum, optInteger, optJSONObject, optList, optLong, optString, optSubResource, optTimestamp, reqBoolean, reqDouble, reqEnum, reqInteger, reqJSONObject, reqList, reqLong, reqString, reqSubResource, reqTimestamp, toJson, toString, uri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transaction

public Transaction(String jsonStr)

Transaction

public Transaction(org.json.JSONObject jsonObj)
Method Detail

id

public String id()

customerId

public String customerId()

subscriptionId

public String subscriptionId()

paymentMethod

public PaymentMethod paymentMethod()

referenceNumber

public String referenceNumber()

gateway

public Gateway gateway()

description

@Deprecated
public String description()
Deprecated. 


type

public Transaction.Type type()

date

public Timestamp date()

amount

public Integer amount()

idAtGateway

public String idAtGateway()

status

public Transaction.Status status()

errorCode

public String errorCode()

errorText

public String errorText()

voidedAt

public Timestamp voidedAt()

voidDescription

@Deprecated
public String voidDescription()
Deprecated. 


maskedCardNumber

public String maskedCardNumber()

refundedTxnId

public String refundedTxnId()

linkedInvoices

public List<Transaction.LinkedInvoice> linkedInvoices()

currencyCode

public String currencyCode()

list

public static ListRequest list()
                        throws IOException
Throws:
IOException

transactionsForCustomer

public static ListRequest transactionsForCustomer(String id)
                                           throws IOException
Throws:
IOException

transactionsForSubscription

public static ListRequest transactionsForSubscription(String id)
                                               throws IOException
Throws:
IOException

transactionsForInvoice

public static ListRequest transactionsForInvoice(String id)
                                          throws IOException
Throws:
IOException

retrieve

public static Request retrieve(String id)
                        throws IOException
Throws:
IOException

recordPayment

public static Transaction.RecordPaymentRequest recordPayment(String id)
                                                      throws IOException
Throws:
IOException


Copyright © 2015 ChargeBee. All Rights Reserved.