Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.0 kB
1
Indexable
Never
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ProductDetailsAggResponseV2 {
    private List<SkuDetails> skuDetails;
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class Lbt {
        @NonNull
        private boolean isAvailable;
        @NonNull
        private String skuId;
        private SkuAvailability availability;
        @NonNull
        private SkuAssets skuAsset;
        @NonNull
        private ProductAsset product;
        @NonNull
        private SkuPricingInfo pricing;
    }
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class SkuDetails {
        private List<Lbt> lbt;
    }
}


{
    "meta": {
        "isSuccess": true,
        "statusCode": "AGR_2000",
        "responseMessage": "success",
        "displayMessage": null,
        "errors": null,
        "message": null
    },
    "data": {
        "skuDetails": [
            {
                "lbt": [
                    {
                        "isAvailable": false,
                        "skuId": "ONS-LBT-G66N",
                        "skuAsset": {
                            "image": "IMAGE",
                            "title": "TITLE",
                            "imageTitle": "IMAGE_TITLE",
                            "titleDescription": "DESCRIPTION"
                        },
                        "product": {
                            "icon": "ICON",
                            "title": "TITLE",
                            "addMore": false,
                            "productId": "PRODUCT_ID"
                        },
                        "pricing": {
                            "amount": 1000.0,
                            "isGstApplicable": true,
                            "gstPercentage": 18.0,
                            "gstApplicable": true
                        }
                    }
                ]
            }
        ]
    }
}