Package com.fedapay.model
Class Transaction
- java.lang.Object
-
- com.fedapay.model.FedaPayObject
-
- com.fedapay.model.Transaction
-
public class Transaction extends FedaPayObject
-
-
Field Summary
Fields Modifier and Type Field Description static String[]PAID_STATUS-
Fields inherited from class com.fedapay.model.FedaPayObject
rawJsonResponse
-
-
Constructor Summary
Constructors Constructor Description Transaction()Transaction(String id, String reference, String description, String callbackUrl, String amount, String status, String customerId, String currencyId, Customer customer, PhoneNumber phoneNumber, Map<String,Object> metadata, String createdAt, String updatedAt)
-
Method Summary
-
Methods inherited from class com.fedapay.model.FedaPayObject
getRawJsonResponse, setRawJsonResponse
-
-
-
-
Field Detail
-
PAID_STATUS
public static String[] PAID_STATUS
-
-
Constructor Detail
-
Transaction
public Transaction(String id, String reference, String description, String callbackUrl, String amount, String status, String customerId, String currencyId, Customer customer, PhoneNumber phoneNumber, Map<String,Object> metadata, String createdAt, String updatedAt)
-
Transaction
public Transaction()
-
-
Method Detail
-
getId
public String getId()
-
setId
public void setId(String id)
-
getReference
public String getReference()
-
setReference
public void setReference(String reference)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getCallbackUrl
public String getCallbackUrl()
-
setCallbackUrl
public void setCallbackUrl(String callback_url)
-
getAmount
public String getAmount()
-
setAmount
public void setAmount(String amount)
-
getStatus
public String getStatus()
-
setStatus
public void setStatus(String status)
-
getCustomerId
public String getCustomerId()
-
setCustomerId
public void setCustomerId(String customerId)
-
getCurrencyId
public String getCurrencyId()
-
setCurrencyId
public void setCurrencyId(String currencyId)
-
getMetadata
public Object getMetadata()
-
setCreatedAt
public void setCreatedAt(String createdAt)
-
getCreatedAt
public String getCreatedAt()
-
getUpdatedAt
public String getUpdatedAt()
-
setUpdatedAt
public void setUpdatedAt(String updatedAt)
-
getCustomer
public Customer getCustomer()
-
setCustomer
public void setCustomer(Customer customer)
-
getPhoneNumber
public PhoneNumber getPhoneNumber()
-
setPhoneNumber
public void setPhoneNumber(PhoneNumber phoneNumber)
-
all
public static TransactionCollection all() throws Exception
- Throws:
Exception
-
create
public static Transaction create(Map<String,Object> transactionDataMap) throws Exception
- Throws:
Exception
-
retrieve
public static Transaction retrieve(String transactionId) throws Exception
- Throws:
Exception
-
update
public static Transaction update(String transactionId, Map<String,Object> transactionDataMap) throws Exception
- Throws:
Exception
-
save
public Transaction save() throws Exception
- Throws:
Exception
-
wasPaid
public Boolean wasPaid()
-
wasRefunded
public Boolean wasRefunded()
-
wasPartiallyRefunded
public Boolean wasPartiallyRefunded()
-
generateToken
public TransactionToken generateToken() throws Exception
- Throws:
Exception
-
name
public void name()
-
-