public class Subscription extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Subscription.Builder
Class to build instances of
Subscription. |
| Constructor and Description |
|---|
Subscription()
Default constructor.
|
Subscription(String id,
String planId,
String startTime,
String quantity,
Money shippingAmount,
Subscriber subscriber,
SubscriptionBillingInformation billingInfo,
String createTime,
String updateTime,
String customId,
Boolean planOverridden,
PlanDetails plan,
List<LinkDescription> links)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SubscriptionBillingInformation |
getBillingInfo()
Getter for BillingInfo.
|
String |
getCreateTime()
Getter for CreateTime.
|
String |
getCustomId()
Getter for CustomId.
|
String |
getId()
Getter for Id.
|
List<LinkDescription> |
getLinks()
Getter for Links.
|
PlanDetails |
getPlan()
Getter for Plan.
|
String |
getPlanId()
Getter for PlanId.
|
Boolean |
getPlanOverridden()
Getter for PlanOverridden.
|
String |
getQuantity()
Getter for Quantity.
|
Money |
getShippingAmount()
Getter for ShippingAmount.
|
String |
getStartTime()
Getter for StartTime.
|
Subscriber |
getSubscriber()
Getter for Subscriber.
|
String |
getUpdateTime()
Getter for UpdateTime.
|
void |
setBillingInfo(SubscriptionBillingInformation billingInfo)
Setter for BillingInfo.
|
void |
setCreateTime(String createTime)
Setter for CreateTime.
|
void |
setCustomId(String customId)
Setter for CustomId.
|
void |
setId(String id)
Setter for Id.
|
void |
setLinks(List<LinkDescription> links)
Setter for Links.
|
void |
setPlan(PlanDetails plan)
Setter for Plan.
|
void |
setPlanId(String planId)
Setter for PlanId.
|
void |
setPlanOverridden(Boolean planOverridden)
Setter for PlanOverridden.
|
void |
setQuantity(String quantity)
Setter for Quantity.
|
void |
setShippingAmount(Money shippingAmount)
Setter for ShippingAmount.
|
void |
setStartTime(String startTime)
Setter for StartTime.
|
void |
setSubscriber(Subscriber subscriber)
Setter for Subscriber.
|
void |
setUpdateTime(String updateTime)
Setter for UpdateTime.
|
Subscription.Builder |
toBuilder()
Builds a new
Subscription.Builder object. |
String |
toString()
Converts this Subscription into string format.
|
public Subscription()
public Subscription(String id, String planId, String startTime, String quantity, Money shippingAmount, Subscriber subscriber, SubscriptionBillingInformation billingInfo, String createTime, String updateTime, String customId, Boolean planOverridden, PlanDetails plan, List<LinkDescription> links)
id - String value for id.planId - String value for planId.startTime - String value for startTime.quantity - String value for quantity.shippingAmount - Money value for shippingAmount.subscriber - Subscriber value for subscriber.billingInfo - SubscriptionBillingInformation value for billingInfo.createTime - String value for createTime.updateTime - String value for updateTime.customId - String value for customId.planOverridden - Boolean value for planOverridden.plan - PlanDetails value for plan.links - List of LinkDescription value for links.public String getId()
public void setId(String id)
id - Value for Stringpublic String getPlanId()
public void setPlanId(String planId)
planId - Value for Stringpublic String getStartTime()
public void setStartTime(String startTime)
startTime - Value for Stringpublic String getQuantity()
public void setQuantity(String quantity)
quantity - Value for Stringpublic Money getShippingAmount()
public void setShippingAmount(Money shippingAmount)
shippingAmount - Value for Moneypublic Subscriber getSubscriber()
public void setSubscriber(Subscriber subscriber)
subscriber - Value for Subscriberpublic SubscriptionBillingInformation getBillingInfo()
public void setBillingInfo(SubscriptionBillingInformation billingInfo)
billingInfo - Value for SubscriptionBillingInformationpublic String getCreateTime()
public void setCreateTime(String createTime)
createTime - Value for Stringpublic String getUpdateTime()
public void setUpdateTime(String updateTime)
updateTime - Value for Stringpublic String getCustomId()
public void setCustomId(String customId)
customId - Value for Stringpublic Boolean getPlanOverridden()
public void setPlanOverridden(Boolean planOverridden)
planOverridden - Value for Booleanpublic PlanDetails getPlan()
public void setPlan(PlanDetails plan)
plan - Value for PlanDetailspublic List<LinkDescription> getLinks()
public void setLinks(List<LinkDescription> links)
links - Value for List of LinkDescriptionpublic String toString()
public Subscription.Builder toBuilder()
Subscription.Builder object.
Creates the instance with the state of the current model.Subscription.Builder objectCopyright © 2026. All rights reserved.