public class BillingPlan extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BillingPlan.Builder
Class to build instances of
BillingPlan. |
| Constructor and Description |
|---|
BillingPlan()
Default constructor.
|
BillingPlan(String id,
String productId,
String name,
SubscriptionPlanStatus status,
String description,
List<SubscriptionBillingCycle> billingCycles,
PaymentPreferences paymentPreferences,
MerchantPreferences merchantPreferences,
Taxes taxes,
Boolean quantitySupported,
String createTime,
String updateTime,
List<LinkDescription> links)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<SubscriptionBillingCycle> |
getBillingCycles()
Getter for BillingCycles.
|
String |
getCreateTime()
Getter for CreateTime.
|
String |
getDescription()
Getter for Description.
|
String |
getId()
Getter for Id.
|
List<LinkDescription> |
getLinks()
Getter for Links.
|
MerchantPreferences |
getMerchantPreferences()
Getter for MerchantPreferences.
|
String |
getName()
Getter for Name.
|
PaymentPreferences |
getPaymentPreferences()
Getter for PaymentPreferences.
|
String |
getProductId()
Getter for ProductId.
|
Boolean |
getQuantitySupported()
Getter for QuantitySupported.
|
SubscriptionPlanStatus |
getStatus()
Getter for Status.
|
Taxes |
getTaxes()
Getter for Taxes.
|
String |
getUpdateTime()
Getter for UpdateTime.
|
void |
setBillingCycles(List<SubscriptionBillingCycle> billingCycles)
Setter for BillingCycles.
|
void |
setCreateTime(String createTime)
Setter for CreateTime.
|
void |
setDescription(String description)
Setter for Description.
|
void |
setId(String id)
Setter for Id.
|
void |
setLinks(List<LinkDescription> links)
Setter for Links.
|
void |
setMerchantPreferences(MerchantPreferences merchantPreferences)
Setter for MerchantPreferences.
|
void |
setName(String name)
Setter for Name.
|
void |
setPaymentPreferences(PaymentPreferences paymentPreferences)
Setter for PaymentPreferences.
|
void |
setProductId(String productId)
Setter for ProductId.
|
void |
setQuantitySupported(Boolean quantitySupported)
Setter for QuantitySupported.
|
void |
setStatus(SubscriptionPlanStatus status)
Setter for Status.
|
void |
setTaxes(Taxes taxes)
Setter for Taxes.
|
void |
setUpdateTime(String updateTime)
Setter for UpdateTime.
|
BillingPlan.Builder |
toBuilder()
Builds a new
BillingPlan.Builder object. |
String |
toString()
Converts this BillingPlan into string format.
|
public BillingPlan()
public BillingPlan(String id, String productId, String name, SubscriptionPlanStatus status, String description, List<SubscriptionBillingCycle> billingCycles, PaymentPreferences paymentPreferences, MerchantPreferences merchantPreferences, Taxes taxes, Boolean quantitySupported, String createTime, String updateTime, List<LinkDescription> links)
id - String value for id.productId - String value for productId.name - String value for name.status - SubscriptionPlanStatus value for status.description - String value for description.billingCycles - List of SubscriptionBillingCycle value for billingCycles.paymentPreferences - PaymentPreferences value for paymentPreferences.merchantPreferences - MerchantPreferences value for merchantPreferences.taxes - Taxes value for taxes.quantitySupported - Boolean value for quantitySupported.createTime - String value for createTime.updateTime - String value for updateTime.links - List of LinkDescription value for links.public String getId()
public void setId(String id)
id - Value for Stringpublic String getProductId()
public void setProductId(String productId)
productId - Value for Stringpublic String getName()
public void setName(String name)
name - Value for Stringpublic SubscriptionPlanStatus getStatus()
public void setStatus(SubscriptionPlanStatus status)
status - Value for SubscriptionPlanStatuspublic String getDescription()
public void setDescription(String description)
description - Value for Stringpublic List<SubscriptionBillingCycle> getBillingCycles()
public void setBillingCycles(List<SubscriptionBillingCycle> billingCycles)
billingCycles - Value for List of SubscriptionBillingCyclepublic PaymentPreferences getPaymentPreferences()
public void setPaymentPreferences(PaymentPreferences paymentPreferences)
paymentPreferences - Value for PaymentPreferencespublic MerchantPreferences getMerchantPreferences()
public void setMerchantPreferences(MerchantPreferences merchantPreferences)
merchantPreferences - Value for MerchantPreferencespublic Taxes getTaxes()
public void setTaxes(Taxes taxes)
taxes - Value for Taxespublic Boolean getQuantitySupported()
public void setQuantitySupported(Boolean quantitySupported)
quantitySupported - Value for Booleanpublic String getCreateTime()
public void setCreateTime(String createTime)
createTime - Value for Stringpublic String getUpdateTime()
public void setUpdateTime(String updateTime)
updateTime - Value for Stringpublic List<LinkDescription> getLinks()
public void setLinks(List<LinkDescription> links)
links - Value for List of LinkDescriptionpublic String toString()
public BillingPlan.Builder toBuilder()
BillingPlan.Builder object.
Creates the instance with the state of the current model.BillingPlan.Builder objectCopyright © 2026. All rights reserved.