Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.8 kB
1
Indexable
Never
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@AllArgsConstructor
@NoArgsConstructor
public class ProductDetailsAggResponseV2 {
    private List<ClientSkuDetails> skuDetails;
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class ClientSkuDetails {
        private Map<String, List<SkuDetails>> clientSkuDetailsMap;
    }
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class SkuDetails {
        @NonNull
        private Boolean isAvailable;
        @NonNull
        private String skuId;
        @JsonProperty("transactionId")
        private String serviceRefId;
        @NonNull
        @JsonProperty("skuAsset")
        private SkuAssets skuAssets;
        @NonNull
        @JsonProperty("product")
        private ProductAsset productAsset;
        @NonNull
        private SkuPricingInfo pricing;
        @NotNull
        private SkuAvailability availability;
    }
}


"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
            },
            "availability": {
              "requestedQuantity": 1,
              "maxPurchaseQuantity": 1
            }
          }
        ]
      }
    ]
  }