Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Promotion.Builder |
amount(Float amount)
If a subscription is present, indicates the total amount of promotional subscription
credits.
|
Promotion |
build() |
Promotion.Builder |
copy(Promotion model) |
Promotion.Builder |
currencyUnit(String currencyUnit)
Currency unit associated with the promotion.
|
Promotion.Builder |
duration(Integer duration)
Specifies how long the promotion related to the subscription, if any, is valid in
duration units.
|
Promotion.Builder |
durationUnit(String durationUnit)
Unit for the duration.
|
Promotion.Builder |
isIntentToPay(Boolean isIntentToPay)
Speficies whether or not the customer intends to pay after the promotion has expired.
|
Promotion.Builder |
status(Promotion.Status status)
If a subscription is present, indicates the current status of the subscription promotion.
|
Promotion.Builder |
timeExpired(Date timeExpired)
Date and time when the promotion ends.
|
Promotion.Builder |
timeStarted(Date timeStarted)
Date and time when the promotion starts.
|
public Promotion.Builder duration(Integer duration)
Specifies how long the promotion related to the subscription, if any, is valid in duration units.
duration
- the value to setpublic Promotion.Builder durationUnit(String durationUnit)
Unit for the duration.
durationUnit
- the value to setpublic Promotion.Builder amount(Float amount)
If a subscription is present, indicates the total amount of promotional subscription credits.
amount
- the value to setpublic Promotion.Builder status(Promotion.Status status)
If a subscription is present, indicates the current status of the subscription promotion.
status
- the value to setpublic Promotion.Builder isIntentToPay(Boolean isIntentToPay)
Speficies whether or not the customer intends to pay after the promotion has expired.
isIntentToPay
- the value to setpublic Promotion.Builder currencyUnit(String currencyUnit)
Currency unit associated with the promotion.
currencyUnit
- the value to setpublic Promotion.Builder timeStarted(Date timeStarted)
Date and time when the promotion starts.
timeStarted
- the value to setpublic Promotion.Builder timeExpired(Date timeExpired)
Date and time when the promotion ends.
timeExpired
- the value to setpublic Promotion build()
public Promotion.Builder copy(Promotion model)
Copyright © 2016–2024. All rights reserved.