Class UsageEventCreateParams

java.lang.Object
com.chargebee.v4.models.usageEvent.params.UsageEventCreateParams

public final class UsageEventCreateParams extends Object
  • Method Details

    • getDeduplicationId

      public String getDeduplicationId()
    • getSubscriptionId

      public String getSubscriptionId()
    • getUsageTimestamp

      public Long getUsageTimestamp()
    • getProperties

      public Map<String,Object> getProperties()
    • toFormData

      public Map<String,Object> toFormData()
      Get the form data for this request.
    • toJsonMap

      public Map<String,Object> toJsonMap()
      Get the nested JSON body representation for this request.

      Unlike toFormData(), which flattens nested objects/arrays into bracketed qs-style keys for application/x-www-form-urlencoded requests, this method preserves the real object/array hierarchy so the payload can be serialized as a JSON string. Leaf values (e.g. Timestamp) are converted to their API representation by JsonUtil during serialization.

    • toJsonString

      public String toJsonString()
      Get the JSON string representation for this request.
    • builder

      Create a new builder for UsageEventCreateParams.