Last active
March 10, 2021 17:03
CheckoutDto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.webtutsplus.ecommerce.dto.checkout; | |
public class CheckoutItemDto { | |
private String productName; | |
private int quantity; | |
private double price; | |
private long productId; | |
private int userId; | |
public CheckoutItemDto() {} | |
public CheckoutItemDto(String productName, int quantity, double price, long productId, int userId) { | |
this.productName = productName; | |
this.quantity = quantity; | |
this.price = price; | |
this.productId = productId; | |
this.userId = userId; | |
} | |
//getter and setter are removed for sake of brevity | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment