init method
Initialize with user request
Implementation
void init(PurchaseRequest request) {
amount = request.amount;
userId = request.userId;
paymentType = request.paymentType;
productIds = request.productIds;
}
Initialize with user request
void init(PurchaseRequest request) {
amount = request.amount;
userId = request.userId;
paymentType = request.paymentType;
productIds = request.productIds;
}