public class SubscriptionScheduleUpdateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
SubscriptionScheduleUpdateParams.Builder |
static class |
SubscriptionScheduleUpdateParams.DefaultSettings |
static class |
SubscriptionScheduleUpdateParams.EndBehavior |
static class |
SubscriptionScheduleUpdateParams.Phase |
static class |
SubscriptionScheduleUpdateParams.ProrationBehavior |
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static SubscriptionScheduleUpdateParams.Builder |
builder() |
SubscriptionScheduleUpdateParams.DefaultSettings |
getDefaultSettings()
Object representing the subscription schedule's default settings.
|
SubscriptionScheduleUpdateParams.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.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.util.List<SubscriptionScheduleUpdateParams.Phase> |
getPhases()
List representing phases of the subscription schedule.
|
java.lang.Boolean |
getProrate()
This field has been renamed to
proration_behavior . |
SubscriptionScheduleUpdateParams.ProrationBehavior |
getProrationBehavior()
If the update changes the current phase, indicates if the changes should be prorated.
|
toMap
public static SubscriptionScheduleUpdateParams.Builder builder()
public SubscriptionScheduleUpdateParams.DefaultSettings getDefaultSettings()
public SubscriptionScheduleUpdateParams.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.util.Map<java.lang.String,java.lang.String> getMetadata()
metadata
.public java.util.List<SubscriptionScheduleUpdateParams.Phase> getPhases()
end_date
of
one phase will always equal the start_date
of the next phase. Note that past phases can
be omitted.public java.lang.Boolean getProrate()
proration_behavior
. prorate=true
can be replaced
with proration_behavior=create_prorations
and prorate=false
can be replaced
with proration_behavior=none
.public SubscriptionScheduleUpdateParams.ProrationBehavior getProrationBehavior()
create_prorations
or none
, and the default value is create_prorations
.