Created
November 13, 2024 04:19
-
-
Save guaracyalima/3a55c13ccb6262690d4aa0b334df678c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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