Package com.stripe.param
Class PaymentIntentCaptureParams.PaymentDetails.Subscription.Builder
java.lang.Object
com.stripe.param.PaymentIntentCaptureParams.PaymentDetails.Subscription.Builder
- Enclosing class:
- PaymentIntentCaptureParams.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.setBillingInterval
(PaymentIntentCaptureParams.PaymentDetails.Subscription.BillingInterval billingInterval) 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 PaymentIntentCaptureParams.PaymentDetails.Subscription.Builder setAffiliate(PaymentIntentCaptureParams.PaymentDetails.Subscription.Affiliate affiliate) Affiliate details for this purchase. -
setAutoRenewal
public PaymentIntentCaptureParams.PaymentDetails.Subscription.Builder setAutoRenewal(Boolean autoRenewal) Info whether the subscription will be auto renewed upon expiry. -
setBillingInterval
public PaymentIntentCaptureParams.PaymentDetails.Subscription.Builder setBillingInterval(PaymentIntentCaptureParams.PaymentDetails.Subscription.BillingInterval billingInterval) Subscription billing details for this purchase. -
setEndsAt
Subscription end time. Measured in seconds since the Unix epoch. -
putExtraParam
public PaymentIntentCaptureParams.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. SeePaymentIntentCaptureParams.PaymentDetails.Subscription.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentCaptureParams.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. SeePaymentIntentCaptureParams.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.
-