Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.0 kB
1
Indexable
Never
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductDetailsAggResponseV2 {
    private List<Map<String, List<SkuDetails>>> skuDetails;
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SkuDetails {
        @NonNull
        private boolean isAvailable;
        @NonNull
        private String stockId;
        private String transactionId;
        @NonNull
        @JsonProperty("product")
        private Product product;
    }
}


@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
public class ItemResponse {
    @NonNull
    private String stockId;
    private String transactionId;
    @NonNull
    private boolean isAvailable;
    @NonNull
    private Product product;
}

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
public class CartDetailsResponse {
    private String cartId;
    private String userId;
    private List<Map<String, List<ItemResponse>>> itemInfo;
}