public static class PlanRequest.Builder extends Object
PlanRequest.| Constructor and Description |
|---|
Builder()
Initialization constructor.
|
Builder(String productId,
String name,
List<SubscriptionBillingCycle> billingCycles,
PaymentPreferences paymentPreferences)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
PlanRequest.Builder |
billingCycles(List<SubscriptionBillingCycle> billingCycles)
Setter for billingCycles.
|
PlanRequest |
build()
Builds a new
PlanRequest object using the set fields. |
PlanRequest.Builder |
description(String description)
Setter for description.
|
PlanRequest.Builder |
merchantPreferences(MerchantPreferences merchantPreferences)
Setter for merchantPreferences.
|
PlanRequest.Builder |
name(String name)
Setter for name.
|
PlanRequest.Builder |
paymentPreferences(PaymentPreferences paymentPreferences)
Setter for paymentPreferences.
|
PlanRequest.Builder |
productId(String productId)
Setter for productId.
|
PlanRequest.Builder |
quantitySupported(Boolean quantitySupported)
Setter for quantitySupported.
|
PlanRequest.Builder |
status(PlanRequestStatus status)
Setter for status.
|
PlanRequest.Builder |
taxes(Taxes taxes)
Setter for taxes.
|
public Builder()
public Builder(String productId, String name, List<SubscriptionBillingCycle> billingCycles, PaymentPreferences paymentPreferences)
productId - String value for productId.name - String value for name.billingCycles - List of SubscriptionBillingCycle value for billingCycles.paymentPreferences - PaymentPreferences value for paymentPreferences.public PlanRequest.Builder productId(String productId)
productId - String value for productId.public PlanRequest.Builder name(String name)
name - String value for name.public PlanRequest.Builder billingCycles(List<SubscriptionBillingCycle> billingCycles)
billingCycles - List of SubscriptionBillingCycle value for billingCycles.public PlanRequest.Builder paymentPreferences(PaymentPreferences paymentPreferences)
paymentPreferences - PaymentPreferences value for paymentPreferences.public PlanRequest.Builder status(PlanRequestStatus status)
status - PlanRequestStatus value for status.public PlanRequest.Builder description(String description)
description - String value for description.public PlanRequest.Builder merchantPreferences(MerchantPreferences merchantPreferences)
merchantPreferences - MerchantPreferences value for merchantPreferences.public PlanRequest.Builder taxes(Taxes taxes)
taxes - Taxes value for taxes.public PlanRequest.Builder quantitySupported(Boolean quantitySupported)
quantitySupported - Boolean value for quantitySupported.public PlanRequest build()
PlanRequest object using the set fields.PlanRequestCopyright © 2026. All rights reserved.