Package com.stripe.param
Class ChargeCaptureParams.PaymentDetails.Subscription.Builder
java.lang.Object
com.stripe.param.ChargeCaptureParams.PaymentDetails.Subscription.Builder
- Enclosing class:
- ChargeCaptureParams.PaymentDetails.Subscription
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.Affiliate details for this purchase.setAutoRenewal
(Boolean autoRenewal) Info whether the subscription will be auto renewed upon expiry.Subscription billing details for this purchase.Subscription end time.Required. Name of the product on subscription.setStartsAt
(Long startsAt) Subscription start time.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAffiliate
public ChargeCaptureParams.PaymentDetails.Subscription.Builder setAffiliate(ChargeCaptureParams.PaymentDetails.Subscription.Affiliate affiliate) Affiliate details for this purchase. -
setAutoRenewal
Info whether the subscription will be auto renewed upon expiry. -
setBillingInterval
public ChargeCaptureParams.PaymentDetails.Subscription.Builder setBillingInterval(ChargeCaptureParams.PaymentDetails.Subscription.BillingInterval billingInterval) Subscription billing details for this purchase. -
setEndsAt
Subscription end time. Measured in seconds since the Unix epoch. -
putExtraParam
public ChargeCaptureParams.PaymentDetails.Subscription.Builder putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeChargeCaptureParams.PaymentDetails.Subscription.extraParams
for the field documentation. -
putAllExtraParam
public ChargeCaptureParams.PaymentDetails.Subscription.Builder putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeChargeCaptureParams.PaymentDetails.Subscription.extraParams
for the field documentation. -
setName
Required. Name of the product on subscription. e.g. Apple Music Subscription -
setStartsAt
Subscription start time. Measured in seconds since the Unix epoch.
-