public class Transaction extends FedaPayObject
| Modifier and Type | Field and Description |
|---|---|
static String[] |
PAID_STATUS |
rawJsonResponse| Constructor and 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) |
getRawJsonResponse, setRawJsonResponsepublic static String[] PAID_STATUS
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)
public Transaction()
public String getId()
public void setId(String id)
public String getReference()
public void setReference(String reference)
public String getDescription()
public void setDescription(String description)
public String getCallbackUrl()
public void setCallbackUrl(String callback_url)
public String getAmount()
public void setAmount(String amount)
public String getStatus()
public void setStatus(String status)
public String getCustomerId()
public void setCustomerId(String customerId)
public String getCurrencyId()
public void setCurrencyId(String currencyId)
public Object getMetadata()
public void setCreatedAt(String createdAt)
public String getCreatedAt()
public String getUpdatedAt()
public void setUpdatedAt(String updatedAt)
public Customer getCustomer()
public void setCustomer(Customer customer)
public PhoneNumber getPhoneNumber()
public void setPhoneNumber(PhoneNumber phoneNumber)
public static TransactionCollection all() throws Exception
Exceptionpublic static Transaction create(Map<String,Object> transactionDataMap) throws Exception
Exceptionpublic static Transaction retrieve(String transactionId) throws Exception
Exceptionpublic static Transaction update(String transactionId, Map<String,Object> transactionDataMap) throws Exception
Exceptionpublic Transaction save() throws Exception
Exceptionpublic Boolean wasPaid()
public Boolean wasRefunded()
public Boolean wasPartiallyRefunded()
public TransactionToken generateToken() throws Exception
Exceptionpublic void name()
Copyright © 2022. All rights reserved.