Subscription Class
- java.
lang. Object - com.
microsoft. store. partnercenter. models. ResourceBase - com.
microsoft. store. partnercenter. models. Contract - com.
microsoft. store. partnercenter. models. subscriptions. Subscription
- com.
- com.
- com.
public class Subscription extends Contract
The subscription resource represents the life cycle of a subscription and includes properties that define the states throughout the subscription life cycle
Constructor Summary
| Constructor | Description |
|---|---|
| Subscription() |
Initializes a new instance of the subscription class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.Iterable<java.lang.String> |
getActions()
Gets the available actions for the subscription. |
| boolean | getAutoRenewEnabled() |
|
Billing |
getBillingCycle()
Gets the billing cycle type for the subscription. |
|
Billing |
getBillingType() |
| org.joda.time.DateTime | getCommitmentEndDate() |
|
Contract |
getContractType()
Gets the type of contract |
| org.joda.time.DateTime |
getCreationDate()
Gets the date and time when the subscription was created. |
| org.joda.time.DateTime | getEffectiveStartDate() |
| java.lang.String |
getEntitlementId()
Gets the entitlement identifier for the subscription. |
| java.lang.String |
getFriendlyName()
Gets the friendly name for the subscription. |
| java.lang.Boolean |
getHasPurchasableAddOns()
Gets a flag indicating whether or not the subscription has purchasable addons. |
| java.lang.String |
getId()
Gets the subscription identifier. |
| boolean |
getIsMicrosoftProduct()
Gets a flag indicating whether gets or sets the value indicating that the subscription is a Microsoft product. |
| boolean |
getIsTrial()
Gets a flag indicating whether or not the subscription is a trial. |
|
Subscription |
getLinks() |
| java.lang.String |
getOfferId()
Gets the offer identifier that created the subscription. |
| java.lang.String |
getOfferName()
Get the name of the offer that created the subscription. |
| java.lang.String |
getParentSubscriptionId()
Gets the parent subscription identifier for the subscription. |
| java.lang.String | getPartnerId() |
| java.lang.String |
getPublisherName()
Gets the name of the publisher. |
| int |
getQuantity()
Gets the quantity for the subscription. |
|
java.lang.Iterable<Refund |
getRefundOptions()
Gets the refund options for this subscription if applicable. |
| java.lang.String |
getRenewalTermDuration()
Gets the renewal term duration. |
|
Subscription |
getStatus() |
| java.lang.Iterable<java.lang.String> | getSuspensionReasons() |
| java.lang.String |
getTermDuration()
Gets the ISO 8601 representation of the term's duration. |
| java.lang.String |
getUnitType()
Gets the units defining the quantity for the subscription. |
| void | setAutoRenewEnabled(boolean value) |
| void |
setBillingCycle(BillingCycleType billingCycle)
Sets the billing cycle type for the subscription |
| void | setBillingType(BillingType value) |
| void | setCommitmentEndDate(DateTime value) |
| void | setContractType(ContractType type) |
| void |
setCreationDate(DateTime value)
Sets the date and time when the subscription was created. |
| void | setEffectiveStartDate(DateTime value) |
| void |
setEntitlementId(String value)
Sets the entitlement identifier for the subscription. |
| void |
setFriendlyName(String value)
Sets the friendly name for the subscription. |
| void |
setId(String value)
Sets the identifier for the subscription. |
| void |
setIsMicrosoftProduct(boolean value)
Sets a flag indicating whether gets or sets the value indicating that the subscription is a Microsoft product. |
| void | setLinks(SubscriptionLinks value) |
| void |
setOfferId(String value)
Sets the offer identifier that created the subscription. |
| void |
setOfferName(String value)
Sets the name of the offer that created the subscription. |
| void |
setParentSubscriptionId(String value)
Sets the parent subscription identifier for the subscription. |
| void | setPartnerId(String value) |
| void |
setPublisherName(String value)
Sets the name of the publisher. |
| void |
setQuantity(int value)
Sets the quantity for the subscription. |
| void |
setRefundOptions(Iterable<RefundOption> value)
Sets the refund options for this subscription if applicable. |
| void |
setRenewalTermDuration(String value)
Sets the renewal term duration. |
| void | setStatus(SubscriptionStatus value) |
| void | setSuspensionReasons(Iterable<String> value) |
| void |
setTermDuration(String value)
Sets the ISO 8601 representation of the term's duration. |
| void |
setUnitType(String value)
Sets the units defining the quantity for the subscription. |
Inherited Members
Constructor Details
Subscription
public Subscription()
Initializes a new instance of the subscription class.
Method Details
getActions
public Iterable
Gets the available actions for the subscription.
Returns:
getAutoRenewEnabled
public boolean getAutoRenewEnabled()
getBillingCycle
public BillingCycleType getBillingCycle()
Gets the billing cycle type for the subscription.
Returns:
getBillingType
public BillingType getBillingType()
getCommitmentEndDate
public DateTime getCommitmentEndDate()
getContractType
public ContractType getContractType()
Gets the type of contract
Overrides:
Subscription.getContractType()getCreationDate
public DateTime getCreationDate()
Gets the date and time when the subscription was created.
Returns:
getEffectiveStartDate
public DateTime getEffectiveStartDate()
getEntitlementId
public String getEntitlementId()
Gets the entitlement identifier for the subscription.
Returns:
getFriendlyName
public String getFriendlyName()
Gets the friendly name for the subscription.
Returns:
getHasPurchasableAddOns
public Boolean getHasPurchasableAddOns()
Gets a flag indicating whether or not the subscription has purchasable addons.
Returns:
getId
public String getId()
Gets the subscription identifier.
Returns:
getIsMicrosoftProduct
public boolean getIsMicrosoftProduct()
Gets a flag indicating whether gets or sets the value indicating that the subscription is a Microsoft product.
Returns:
getIsTrial
public boolean getIsTrial()
Gets a flag indicating whether or not the subscription is a trial.
Returns:
getLinks
public SubscriptionLinks getLinks()
getOfferId
public String getOfferId()
Gets the offer identifier that created the subscription.
Returns:
getOfferName
public String getOfferName()
Get the name of the offer that created the subscription.
Returns:
getParentSubscriptionId
public String getParentSubscriptionId()
Gets the parent subscription identifier for the subscription.
Returns:
getPartnerId
public String getPartnerId()
getPublisherName
public String getPublisherName()
Gets the name of the publisher.
Returns:
getQuantity
public int getQuantity()
Gets the quantity for the subscription. In the case of seat based billing, this value is the seat count.
Returns:
getRefundOptions
public Iterable
Gets the refund options for this subscription if applicable.
Returns:
getRenewalTermDuration
public String getRenewalTermDuration()
Gets the renewal term duration.
Returns:
getStatus
public SubscriptionStatus getStatus()
getSuspensionReasons
public Iterable
getTermDuration
public String getTermDuration()
Gets the ISO 8601 representation of the term's duration. The current supported values are P1M (1 month), P1Y (1 year) and P3Y (3 years).
Returns:
getUnitType
public String getUnitType()
Gets the units defining the quantity for the subscription.
Returns:
setAutoRenewEnabled
public void setAutoRenewEnabled(boolean value)
Parameters:
setBillingCycle
public void setBillingCycle(BillingCycleType billingCycle)
Sets the billing cycle type for the subscription
Parameters:
setBillingType
public void setBillingType(BillingType value)
Parameters:
setCommitmentEndDate
public void setCommitmentEndDate(DateTime value)
Parameters:
setContractType
public void setContractType(ContractType type)
Parameters:
setCreationDate
public void setCreationDate(DateTime value)
Sets the date and time when the subscription was created.
Parameters:
setEffectiveStartDate
public void setEffectiveStartDate(DateTime value)
Parameters:
setEntitlementId
public void setEntitlementId(String value)
Sets the entitlement identifier for the subscription.
Parameters:
setFriendlyName
public void setFriendlyName(String value)
Sets the friendly name for the subscription.
Parameters:
setId
public void setId(String value)
Sets the identifier for the subscription.
Parameters:
setIsMicrosoftProduct
public void setIsMicrosoftProduct(boolean value)
Sets a flag indicating whether gets or sets the value indicating that the subscription is a Microsoft product.
Parameters:
setLinks
public void setLinks(SubscriptionLinks value)
Parameters:
setOfferId
public void setOfferId(String value)
Sets the offer identifier that created the subscription.
Parameters:
setOfferName
public void setOfferName(String value)
Sets the name of the offer that created the subscription.
Parameters:
setParentSubscriptionId
public void setParentSubscriptionId(String value)
Sets the parent subscription identifier for the subscription.
Parameters:
setPartnerId
public void setPartnerId(String value)
Parameters:
setPublisherName
public void setPublisherName(String value)
Sets the name of the publisher.
Parameters:
setQuantity
public void setQuantity(int value)
Sets the quantity for the subscription. In the case of seat based billing, this value is the seat count.
Parameters:
setRefundOptions
public void setRefundOptions(Iterable
Sets the refund options for this subscription if applicable.
Parameters:
setRenewalTermDuration
public void setRenewalTermDuration(String value)
Sets the renewal term duration.
Parameters:
setStatus
public void setStatus(SubscriptionStatus value)
Parameters:
setSuspensionReasons
public void setSuspensionReasons(Iterable
Parameters:
setTermDuration
public void setTermDuration(String value)
Sets the ISO 8601 representation of the term's duration. The current supported values are P1M (1 month), P1Y (1 year) and P3Y (3 years).
Parameters:
setUnitType
public void setUnitType(String value)
Sets the units defining the quantity for the subscription.
Parameters: