Package com.stripe.param
Class PromotionCodeCreateParams
java.lang.Object
com.stripe.net.ApiRequestParams
com.stripe.param.PromotionCodeCreateParams
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class com.stripe.net.ApiRequestParams
ApiRequestParams.EnumParam
-
Field Summary
Fields inherited from class com.stripe.net.ApiRequestParams
EXTRA_PARAMS_KEY
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Whether the promotion code is currently active.getCode()
The customer-facing code.Required. The coupon for this promotion code.The customer that this promotion code can be used by.Specifies which fields in the response should be expanded.The timestamp at which this promotion code will expire.Map of extra parameters for custom features not available in this client library.A positive integer specifying the number of times the promotion code can be redeemed.Set of key-value pairs that you can attach to an object.Settings that restrict the redemption of the promotion code.Methods inherited from class com.stripe.net.ApiRequestParams
paramsToMap, toMap
-
Method Details
-
builder
-
getActive
Whether the promotion code is currently active. -
getCode
The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for a specific customer. If left blank, we will generate one automatically. -
getCoupon
Required. The coupon for this promotion code. -
getCustomer
The customer that this promotion code can be used by. If not set, the promotion code can be used by all customers. -
getExpand
Specifies which fields in the response should be expanded. -
getExpiresAt
The timestamp at which this promotion code will expire. If the coupon has specified aredeems_by
, then this value cannot be after the coupon'sredeems_by
. -
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@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. -
getMaxRedemptions
A positive integer specifying the number of times the promotion code can be redeemed. If the coupon has specified amax_redemptions
, then this value cannot be greater than the coupon'smax_redemptions
. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
getRestrictions
Settings that restrict the redemption of the promotion code.
-