Package com.stripe.param
Class QuoteUpdateParams.Builder
- java.lang.Object
-
- com.stripe.param.QuoteUpdateParams.Builder
-
- Enclosing class:
- QuoteUpdateParams
public static class QuoteUpdateParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuoteUpdateParams.Builder
addAllDefaultTaxRate(java.util.List<java.lang.String> elements)
Add all elements to `defaultTaxRates` list.QuoteUpdateParams.Builder
addAllDiscount(java.util.List<QuoteUpdateParams.Discount> elements)
Add all elements to `discounts` list.QuoteUpdateParams.Builder
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.QuoteUpdateParams.Builder
addAllLineItem(java.util.List<QuoteUpdateParams.LineItem> elements)
Add all elements to `lineItems` list.QuoteUpdateParams.Builder
addDefaultTaxRate(java.lang.String element)
Add an element to `defaultTaxRates` list.QuoteUpdateParams.Builder
addDiscount(QuoteUpdateParams.Discount element)
Add an element to `discounts` list.QuoteUpdateParams.Builder
addExpand(java.lang.String element)
Add an element to `expand` list.QuoteUpdateParams.Builder
addLineItem(QuoteUpdateParams.LineItem element)
Add an element to `lineItems` list.QuoteUpdateParams
build()
Finalize and obtain parameter instance from this builder.QuoteUpdateParams.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.QuoteUpdateParams.Builder
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.QuoteUpdateParams.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.QuoteUpdateParams.Builder
putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` map.QuoteUpdateParams.Builder
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.QuoteUpdateParams.Builder
setApplicationFeeAmount(java.lang.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.QuoteUpdateParams.Builder
setApplicationFeePercent(EmptyParam applicationFeePercent)
A non-negative decimal between 0 and 100, with at most two decimal places.QuoteUpdateParams.Builder
setApplicationFeePercent(java.math.BigDecimal applicationFeePercent)
A non-negative decimal between 0 and 100, with at most two decimal places.QuoteUpdateParams.Builder
setAutomaticTax(QuoteUpdateParams.AutomaticTax automaticTax)
Settings for automatic tax lookup for this quote and resulting invoices and subscriptions.QuoteUpdateParams.Builder
setCollectionMethod(QuoteUpdateParams.CollectionMethod collectionMethod)
Eithercharge_automatically
, orsend_invoice
.QuoteUpdateParams.Builder
setCustomer(EmptyParam customer)
The customer for which this quote belongs to.QuoteUpdateParams.Builder
setCustomer(java.lang.String customer)
The customer for which this quote belongs to.QuoteUpdateParams.Builder
setDefaultTaxRates(EmptyParam defaultTaxRates)
The tax rates that will apply to any line item that does not havetax_rates
set.QuoteUpdateParams.Builder
setDefaultTaxRates(java.util.List<java.lang.String> defaultTaxRates)
The tax rates that will apply to any line item that does not havetax_rates
set.QuoteUpdateParams.Builder
setDescription(EmptyParam description)
A description that will be displayed on the quote PDF.QuoteUpdateParams.Builder
setDescription(java.lang.String description)
A description that will be displayed on the quote PDF.QuoteUpdateParams.Builder
setDiscounts(EmptyParam discounts)
The discounts applied to the quote.QuoteUpdateParams.Builder
setDiscounts(java.util.List<QuoteUpdateParams.Discount> discounts)
The discounts applied to the quote.QuoteUpdateParams.Builder
setExpiresAt(java.lang.Long expiresAt)
A future timestamp on which the quote will be canceled if inopen
ordraft
status.QuoteUpdateParams.Builder
setFooter(EmptyParam footer)
A footer that will be displayed on the quote PDF.QuoteUpdateParams.Builder
setFooter(java.lang.String footer)
A footer that will be displayed on the quote PDF.QuoteUpdateParams.Builder
setHeader(EmptyParam header)
A header that will be displayed on the quote PDF.QuoteUpdateParams.Builder
setHeader(java.lang.String header)
A header that will be displayed on the quote PDF.QuoteUpdateParams.Builder
setInvoiceSettings(QuoteUpdateParams.InvoiceSettings invoiceSettings)
All invoices will be billed using the specified settings.QuoteUpdateParams.Builder
setOnBehalfOf(EmptyParam onBehalfOf)
The account on behalf of which to charge.QuoteUpdateParams.Builder
setOnBehalfOf(java.lang.String onBehalfOf)
The account on behalf of which to charge.QuoteUpdateParams.Builder
setSubscriptionData(QuoteUpdateParams.SubscriptionData subscriptionData)
When creating a subscription or subscription schedule, the specified configuration data will be used.QuoteUpdateParams.Builder
setTransferData(EmptyParam transferData)
The data with which to automatically create a Transfer for each of the invoices.QuoteUpdateParams.Builder
setTransferData(QuoteUpdateParams.TransferData transferData)
The data with which to automatically create a Transfer for each of the invoices.
-
-
-
Method Detail
-
build
public QuoteUpdateParams build()
Finalize and obtain parameter instance from this builder.
-
setApplicationFeeAmount
public QuoteUpdateParams.Builder setApplicationFeeAmount(java.lang.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. There cannot be any line items with recurring prices when using this field.
-
setApplicationFeeAmount
public QuoteUpdateParams.Builder 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. There cannot be any line items with recurring prices when using this field.
-
setApplicationFeePercent
public QuoteUpdateParams.Builder setApplicationFeePercent(java.math.BigDecimal applicationFeePercent)
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal 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
public QuoteUpdateParams.Builder setApplicationFeePercent(EmptyParam applicationFeePercent)
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal 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
public QuoteUpdateParams.Builder setAutomaticTax(QuoteUpdateParams.AutomaticTax automaticTax)
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. Defaults tocharge_automatically
.
-
setCustomer
public QuoteUpdateParams.Builder setCustomer(java.lang.String customer)
The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
-
setCustomer
public QuoteUpdateParams.Builder setCustomer(EmptyParam customer)
The customer for which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
-
addDefaultTaxRate
public QuoteUpdateParams.Builder addDefaultTaxRate(java.lang.String element)
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
public QuoteUpdateParams.Builder addAllDefaultTaxRate(java.util.List<java.lang.String> elements)
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
public QuoteUpdateParams.Builder setDefaultTaxRates(EmptyParam defaultTaxRates)
The tax rates that will apply to any line item that does not havetax_rates
set.
-
setDefaultTaxRates
public QuoteUpdateParams.Builder setDefaultTaxRates(java.util.List<java.lang.String> defaultTaxRates)
The tax rates that will apply to any line item that does not havetax_rates
set.
-
setDescription
public QuoteUpdateParams.Builder setDescription(java.lang.String description)
A description that will be displayed on the quote PDF.
-
setDescription
public QuoteUpdateParams.Builder setDescription(EmptyParam description)
A description that will be displayed on the quote PDF.
-
addDiscount
public QuoteUpdateParams.Builder addDiscount(QuoteUpdateParams.Discount element)
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
public QuoteUpdateParams.Builder addAllDiscount(java.util.List<QuoteUpdateParams.Discount> elements)
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
public QuoteUpdateParams.Builder setDiscounts(EmptyParam discounts)
The discounts applied to the quote. You can only set up to one discount.
-
setDiscounts
public QuoteUpdateParams.Builder setDiscounts(java.util.List<QuoteUpdateParams.Discount> discounts)
The discounts applied to the quote. You can only set up to one discount.
-
addExpand
public QuoteUpdateParams.Builder addExpand(java.lang.String element)
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
public QuoteUpdateParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
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
public QuoteUpdateParams.Builder setExpiresAt(java.lang.Long expiresAt)
A future timestamp on which the quote will be canceled if inopen
ordraft
status. Measured in seconds since the Unix epoch.
-
putExtraParam
public QuoteUpdateParams.Builder putExtraParam(java.lang.String key, java.lang.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. SeeQuoteUpdateParams.extraParams
for the field documentation.
-
putAllExtraParam
public QuoteUpdateParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.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. SeeQuoteUpdateParams.extraParams
for the field documentation.
-
setFooter
public QuoteUpdateParams.Builder setFooter(java.lang.String footer)
A footer that will be displayed on the quote PDF.
-
setFooter
public QuoteUpdateParams.Builder setFooter(EmptyParam footer)
A footer that will be displayed on the quote PDF.
-
setHeader
public QuoteUpdateParams.Builder setHeader(java.lang.String header)
A header that will be displayed on the quote PDF.
-
setHeader
public QuoteUpdateParams.Builder setHeader(EmptyParam header)
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
public QuoteUpdateParams.Builder addLineItem(QuoteUpdateParams.LineItem element)
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
public QuoteUpdateParams.Builder addAllLineItem(java.util.List<QuoteUpdateParams.LineItem> elements)
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
public QuoteUpdateParams.Builder putMetadata(java.lang.String key, java.lang.String value)
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
public QuoteUpdateParams.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
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
public QuoteUpdateParams.Builder setOnBehalfOf(java.lang.String onBehalfOf)
The account on behalf of which to charge.
-
setOnBehalfOf
public QuoteUpdateParams.Builder setOnBehalfOf(EmptyParam onBehalfOf)
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
public QuoteUpdateParams.Builder setTransferData(QuoteUpdateParams.TransferData transferData)
The data with which to automatically create a Transfer for each of the invoices.
-
setTransferData
public QuoteUpdateParams.Builder setTransferData(EmptyParam transferData)
The data with which to automatically create a Transfer for each of the invoices.
-
-