package com.appdirect.sdk.meteredusage.model;

import java.util.ArrayList;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MeteredUsageItem {
	private String accountId;
	@JsonInclude(Include.NON_NULL)
	private String subscriptionId;
	private List<UsageItem> usageList = new ArrayList<>();

	public MeteredUsageItem(String accountId, List<UsageItem> usageList) {
		this.accountId = accountId;
		this.usageList = usageList;
	}
}

@@ -552,16 +552,18 @@
 t%3C%3E();%0A%0A
+//
 %09public 
@@ -626,16 +626,18 @@
 List) %7B%0A
+//
 %09%09this.a
@@ -658,16 +658,18 @@
 ountId;%0A
+//
 %09%09this.u
@@ -690,13 +690,15 @@
 geList;%0A
+//
 %09%7D%0A%7D%0A

add constant for error message