public class UsageRecordCreateOnSubscriptionItemParams extends ApiRequestParams
| Modifier and Type | Class and Description |
|---|---|
static class |
UsageRecordCreateOnSubscriptionItemParams.Action |
static class |
UsageRecordCreateOnSubscriptionItemParams.Builder |
ApiRequestParams.EnumParamEXTRA_PARAMS_KEY| Modifier and Type | Method and Description |
|---|---|
static UsageRecordCreateOnSubscriptionItemParams.Builder |
builder() |
UsageRecordCreateOnSubscriptionItemParams.Action |
getAction()
Valid values are
increment (default) or set. |
java.util.List<java.lang.String> |
getExpand()
Specifies which fields in the response should be expanded.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
java.lang.Long |
getQuantity()
The usage quantity for the specified timestamp.
|
java.lang.Long |
getTimestamp()
The timestamp for the usage event.
|
toMappublic static UsageRecordCreateOnSubscriptionItemParams.Builder builder()
public UsageRecordCreateOnSubscriptionItemParams.Action getAction()
increment (default) or set. When using increment the
specified quantity will be added to the usage at the specified timestamp. The set action will overwrite the usage quantity at that timestamp. If the subscription has billing
thresholds, increment is the only allowed value.public java.util.List<java.lang.String> getExpand()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@SerializedName value. Instead, each
key/value pair is serialized as if the key is a root-level field (serialized) name in this
param object. Effectively, this map is flattened to its parent instance.public java.lang.Long getQuantity()
public java.lang.Long getTimestamp()
subscription_item.