public class SubscriptionScheduleCreateParams extends ApiRequestParams
| Modifier and Type | Class and Description |
|---|---|
static class |
SubscriptionScheduleCreateParams.Builder |
static class |
SubscriptionScheduleCreateParams.DefaultSettings |
static class |
SubscriptionScheduleCreateParams.EndBehavior |
static class |
SubscriptionScheduleCreateParams.Phase |
static class |
SubscriptionScheduleCreateParams.StartDate |
ApiRequestParams.EnumParamEXTRA_PARAMS_KEY| Modifier and Type | Method and Description |
|---|---|
static SubscriptionScheduleCreateParams.Builder |
builder() |
java.lang.String |
getCustomer()
The identifier of the customer to create the subscription schedule for.
|
SubscriptionScheduleCreateParams.DefaultSettings |
getDefaultSettings()
Object representing the subscription schedule's default settings.
|
SubscriptionScheduleCreateParams.EndBehavior |
getEndBehavior()
Configures how the subscription schedule behaves when it ends.
|
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.String |
getFromSubscription()
Migrate an existing subscription to be managed by a subscription schedule.
|
java.lang.Object |
getMetadata()
Set of key-value pairs that you can attach
to an object.
|
java.util.List<SubscriptionScheduleCreateParams.Phase> |
getPhases()
List representing phases of the subscription schedule.
|
java.lang.Object |
getStartDate()
When the subscription schedule starts.
|
toMappublic static SubscriptionScheduleCreateParams.Builder builder()
public java.lang.String getCustomer()
public SubscriptionScheduleCreateParams.DefaultSettings getDefaultSettings()
public SubscriptionScheduleCreateParams.EndBehavior getEndBehavior()
release or cancel with the default being release. release will end the
subscription schedule and keep the underlying subscription running.cancel will end the
subscription schedule and cancel the underlying subscription.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.String getFromSubscription()
public java.lang.Object getMetadata()
metadata.public java.util.List<SubscriptionScheduleCreateParams.Phase> getPhases()
end_date of
one phase will always equal the start_date of the next phase.public java.lang.Object getStartDate()
now so that it starts the
subscription immediately. You can also use a Unix timestamp to backdate the subscription so
that it starts on a past date, or set a future date for the subscription to start on.