Package com.stripe.param
Class QuoteUpdateParams.Builder
java.lang.Object
com.stripe.param.QuoteUpdateParams.Builder
- Enclosing class:
- QuoteUpdateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllDefaultTaxRate
(List<String> elements) Add all elements to `defaultTaxRates` list.addAllDiscount
(List<QuoteUpdateParams.Discount> elements) Add all elements to `discounts` list.addAllExpand
(List<String> elements) Add all elements to `expand` list.addAllLineItem
(List<QuoteUpdateParams.LineItem> elements) Add all elements to `lineItems` list.addDefaultTaxRate
(String element) Add an element to `defaultTaxRates` list.addDiscount
(QuoteUpdateParams.Discount element) Add an element to `discounts` list.Add an element to `expand` list.addLineItem
(QuoteUpdateParams.LineItem element) Add an element to `lineItems` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.setApplicationFeeAmount
(EmptyParam applicationFeeAmount) The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.setApplicationFeeAmount
(Long applicationFeeAmount) The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account.setApplicationFeePercent
(EmptyParam applicationFeePercent) A non-negative decimal between 0 and 100, with at most two decimal places.setApplicationFeePercent
(BigDecimal applicationFeePercent) A non-negative decimal between 0 and 100, with at most two decimal places.setAutomaticTax
(QuoteUpdateParams.AutomaticTax automaticTax) Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.setCollectionMethod
(QuoteUpdateParams.CollectionMethod collectionMethod) Eithercharge_automatically
, orsend_invoice
.setCustomer
(EmptyParam customer) The customer for which this quote belongs to.setCustomer
(String customer) The customer for which this quote belongs to.setDefaultTaxRates
(EmptyParam defaultTaxRates) The tax rates that will apply to any line item that does not havetax_rates
set.setDefaultTaxRates
(List<String> defaultTaxRates) The tax rates that will apply to any line item that does not havetax_rates
set.setDescription
(EmptyParam description) A description that will be displayed on the quote PDF.setDescription
(String description) A description that will be displayed on the quote PDF.setDiscounts
(EmptyParam discounts) The discounts applied to the quote.setDiscounts
(List<QuoteUpdateParams.Discount> discounts) The discounts applied to the quote.setExpiresAt
(Long expiresAt) A future timestamp on which the quote will be canceled if inopen
ordraft
status.setFooter
(EmptyParam footer) A footer that will be displayed on the quote PDF.A footer that will be displayed on the quote PDF.setHeader
(EmptyParam header) A header that will be displayed on the quote PDF.A header that will be displayed on the quote PDF.setInvoiceSettings
(QuoteUpdateParams.InvoiceSettings invoiceSettings) All invoices will be billed using the specified settings.setOnBehalfOf
(EmptyParam onBehalfOf) The account on behalf of which to charge.setOnBehalfOf
(String onBehalfOf) The account on behalf of which to charge.setSubscriptionData
(QuoteUpdateParams.SubscriptionData subscriptionData) When creating a subscription or subscription schedule, the specified configuration data will be used.setTransferData
(EmptyParam transferData) The data with which to automatically create a Transfer for each of the invoices.setTransferData
(QuoteUpdateParams.TransferData transferData) The data with which to automatically create a Transfer for each of the invoices.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setApplicationFeeAmount
The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field. -
setApplicationFeeAmount
The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. There cannot be any line items with recurring prices when using this field. -
setApplicationFeePercent
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field. -
setApplicationFeePercent
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. There must be at least 1 line item with a recurring price to use this field. -
setAutomaticTax
Settings for automatic tax lookup for this quote and resulting invoices and subscriptions. -
setCollectionMethod
public QuoteUpdateParams.Builder setCollectionMethod(QuoteUpdateParams.CollectionMethod collectionMethod) Eithercharge_automatically
, orsend_invoice
. When charging automatically, Stripe will attempt to pay invoices at the end of the subscription cycle or at invoice finalization using the default payment method attached to the subscription or customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription asactive
. Defaults tocharge_automatically
. -
setCustomer
The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed. -
setCustomer
The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed. -
addDefaultTaxRate
Add an element to `defaultTaxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteUpdateParams.defaultTaxRates
for the field documentation. -
addAllDefaultTaxRate
Add all elements to `defaultTaxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteUpdateParams.defaultTaxRates
for the field documentation. -
setDefaultTaxRates
The tax rates that will apply to any line item that does not havetax_rates
set. -
setDefaultTaxRates
The tax rates that will apply to any line item that does not havetax_rates
set. -
setDescription
A description that will be displayed on the quote PDF. -
setDescription
A description that will be displayed on the quote PDF. -
addDiscount
Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteUpdateParams.discounts
for the field documentation. -
addAllDiscount
Add all elements to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteUpdateParams.discounts
for the field documentation. -
setDiscounts
The discounts applied to the quote. You can only set up to one discount. -
setDiscounts
The discounts applied to the quote. You can only set up to one discount. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteUpdateParams.expand
for the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteUpdateParams.expand
for the field documentation. -
setExpiresAt
A future timestamp on which the quote will be canceled if inopen
ordraft
status. Measured in seconds since the Unix epoch. -
putExtraParam
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. SeeQuoteUpdateParams.extraParams
for the field documentation. -
putAllExtraParam
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. SeeQuoteUpdateParams.extraParams
for the field documentation. -
setHeader
A header that will be displayed on the quote PDF. -
setHeader
A header that will be displayed on the quote PDF. -
setInvoiceSettings
public QuoteUpdateParams.Builder setInvoiceSettings(QuoteUpdateParams.InvoiceSettings invoiceSettings) All invoices will be billed using the specified settings. -
addLineItem
Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteUpdateParams.lineItems
for the field documentation. -
addAllLineItem
Add all elements to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteUpdateParams.lineItems
for the field documentation. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteUpdateParams.metadata
for the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteUpdateParams.metadata
for the field documentation. -
setOnBehalfOf
The account on behalf of which to charge. -
setOnBehalfOf
The account on behalf of which to charge. -
setSubscriptionData
public QuoteUpdateParams.Builder setSubscriptionData(QuoteUpdateParams.SubscriptionData subscriptionData) When creating a subscription or subscription schedule, the specified configuration data will be used. There must be at least one line item with a recurring price for a subscription or subscription schedule to be created. A subscription schedule is created ifsubscription_data[effective_date]
is present and in the future, otherwise a subscription is created. -
setTransferData
The data with which to automatically create a Transfer for each of the invoices. -
setTransferData
The data with which to automatically create a Transfer for each of the invoices.
-