Skip to content

Instantly share code, notes, and snippets.

@SudhanshuGulhane
Last active March 10, 2021 17:03
CheckoutDto
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