Skip to content

Instantly share code, notes, and snippets.

@guaracyalima
Created November 13, 2024 04:19
Show Gist options
  • Save guaracyalima/3a55c13ccb6262690d4aa0b334df678c to your computer and use it in GitHub Desktop.
Save guaracyalima/3a55c13ccb6262690d4aa0b334df678c to your computer and use it in GitHub Desktop.
package br.com.zeroth.zth_product_srv.services.impl;
import br.com.zeroth.zth_product_srv.domain.Order;
import br.com.zeroth.zth_product_srv.domain.Payment;
import br.com.zeroth.zth_product_srv.domain.Product;
import br.com.zeroth.zth_product_srv.domain.ShippingHistory;
import br.com.zeroth.zth_product_srv.services.OrderService;
import org.springframework.stereotype.Service;
@Service
public class OrderServiceImpl implements OrderService {
@Override
public Order getOrderWithDetails(Long orderId) {
return Order.builder()
.payment(Payment.builder().status("PAID").build())
.product(Product.builder().id(1L).price(297.0).description("iPhone OS").name("Iphone 19").build())
.shippingHistory(ShippingHistory.builder().lastStatus("NOM").build())
.build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment