Class SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder
java.lang.Object
com.chargebee.v4.models.subscription.params.SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder
- Enclosing class:
- SubscriptionCreateForCustomerParams
public static final class SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbillingCycles(Integer value) build()Deprecated.Deprecated.customField(String fieldName, String value) Add a custom field to the request.customFields(Map<String, String> customFields) Add multiple custom fields to the request.freePeriod(Integer value) invoiceDate(Timestamp value) invoiceImmediately(Boolean value) invoiceNotes(String value) mandatoryAddonsToRemove(List<String> value) overrideRelationship(Boolean value) paymentSourceId(String value) planQuantity(Integer value) planQuantityInDecimal(String value) planUnitPrice(Long value) planUnitPriceInDecimal(String value) termsToCharge(Integer value)
-
Method Details
-
id
-
planId
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder planId(String value) -
planQuantity
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder planQuantity(Integer value) -
planQuantityInDecimal
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder planQuantityInDecimal(String value) -
planUnitPrice
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder planUnitPrice(Long value) -
planUnitPriceInDecimal
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder planUnitPriceInDecimal(String value) -
setupFee
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder setupFee(Long value) -
trialEnd
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder trialEnd(Timestamp value) -
billingCycles
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder billingCycles(Integer value) -
mandatoryAddonsToRemove
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder mandatoryAddonsToRemove(List<String> value) -
startDate
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder startDate(Timestamp value) -
coupon
@Deprecated public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder coupon(String value) Deprecated. -
autoCollection
-
termsToCharge
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder termsToCharge(Integer value) -
billingAlignmentMode
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder billingAlignmentMode(SubscriptionCreateForCustomerParams.BillingAlignmentMode value) -
offlinePaymentMethod
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder offlinePaymentMethod(SubscriptionCreateForCustomerParams.OfflinePaymentMethod value) -
poNumber
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder poNumber(String value) -
couponIds
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder couponIds(List<String> value) -
paymentSourceId
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder paymentSourceId(String value) -
overrideRelationship
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder overrideRelationship(Boolean value) -
invoiceNotes
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder invoiceNotes(String value) -
invoiceDate
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder invoiceDate(Timestamp value) -
metaData
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder metaData(Map<String, Object> value) -
invoiceImmediately
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder invoiceImmediately(Boolean value) -
replacePrimaryPaymentSource
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder replacePrimaryPaymentSource(Boolean value) -
freePeriod
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder freePeriod(Integer value) -
freePeriodUnit
-
contractTermBillingCycleOnRenewal
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder contractTermBillingCycleOnRenewal(Integer value) -
trialEndAction
-
paymentInitiator
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder paymentInitiator(SubscriptionCreateForCustomerParams.PaymentInitiator value) -
shippingAddress
-
statementDescriptor
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder statementDescriptor(SubscriptionCreateForCustomerParams.StatementDescriptorParams value) -
paymentIntent
-
contractTerm
-
addons
-
eventBasedAddons
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder eventBasedAddons(List<SubscriptionCreateForCustomerParams.EventBasedAddonsParams> value) -
coupons
@Deprecated public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder coupons(List<SubscriptionCreateForCustomerParams.CouponsParams> value) Deprecated. -
customField
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder customField(String fieldName, String value) Add a custom field to the request. Custom fields must start with "cf_".- Parameters:
fieldName- the name of the custom field (e.g., "cf_custom_field_name")value- the value of the custom field- Returns:
- this builder
- Throws:
IllegalArgumentException- if fieldName doesn't start with "cf_"
-
customFields
public SubscriptionCreateForCustomerParams.SubscriptionCreateForCustomerBuilder customFields(Map<String, String> customFields) Add multiple custom fields to the request. All field names must start with "cf_".- Parameters:
customFields- map of custom field names to values- Returns:
- this builder
- Throws:
IllegalArgumentException- if any field name doesn't start with "cf_"
-
build
-