Class Payment
java.lang.Object
de.bytestore.hostinger.entity.ecommerce.Payment
@Entity(name="host_Payment")
@Configurable(preConstruction=true)
public class Payment
extends Object
Represents a payment entity, designed to handle payment processing and related data.
The Payment class includes information about the associated invoice, provider, user,
payment status, type, and additional metadata such as creation and modification details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()booleanChecks if the payment is expired and unpaid.voidload()voidvoidretrieve()Retrieve Status of Payment.voidsetStatus(PaymentStatus status) voidsetType(PaymentType type)
-
Constructor Details
-
Payment
public Payment()
-
-
Method Details
-
getStatus
-
setStatus
-
getType
-
setType
-
retrieve
public void retrieve()Retrieve Status of Payment. -
postUpdate
public void postUpdate() -
isExpiredAndUnpaid
public boolean isExpiredAndUnpaid()Checks if the payment is expired and unpaid.- Returns:
- true if the payment is expired and unpaid, false otherwise.
-
load
public void load()
-