package org.mxchange.jshopcore.events;
import java.io.Serializable;
-import org.mxchange.jcustomercore.model.customer.Customer;
+import org.mxchange.jshopcore.wrapper.WrapableCheckout;
/**
* An observable event being fired when a checkout is completed.
public interface ObservableCheckoutCompletedEvent extends Serializable {
/**
- * Getter for customer instance
+ * Getter for checkout-wrapper instance
* <p>
- * @return Customer instance
+ * @return Checkout-wrapper instance
*/
- Customer getCustomer ();
-
- /**
- * Setter for customer instance
- * <p>
- * @param customer Customer instance
- */
- void setCustomer (final Customer customer);
+ WrapableCheckout getWrapper ();
}
*/
package org.mxchange.jshopcore.events;
-import org.mxchange.jcustomercore.model.customer.Customer;
+import org.mxchange.jshopcore.wrapper.WrapableCheckout;
/**
* An event being fired when a checkout is completed by user
private static final long serialVersionUID = 16_018_592_482_985_714L;
/**
- * Customer instance
+ * Checkout wrapper
*/
- private Customer customer;
+ private final WrapableCheckout wrapper;
/**
- * Constructor with customer instance
+ * Constructor with checkout wrapper
* <p>
- * @param customer Customer instance
+ * @param wrapper Checkout wrapper
*/
- public ShopCheckoutCompletedEvent (final Customer customer) {
- this.customer = customer;
+ public ShopCheckoutCompletedEvent (final WrapableCheckout wrapper) {
+ this.wrapper = wrapper;
}
@Override
- public Customer getCustomer () {
- return this.customer;
- }
-
- @Override
- public void setCustomer (final Customer customer) {
- this.customer = customer;
+ public WrapableCheckout getWrapper () {
+ return this.wrapper;
}
}