Package com.stripe.param.checkout
Class SessionCreateParams.InvoiceCreation.InvoiceData.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.InvoiceCreation.InvoiceData.Builder
- Enclosing class:
- SessionCreateParams.InvoiceCreation.InvoiceData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAccountTaxId
(String element) Add an element to `accountTaxIds` list.addAllAccountTaxId
(List<String> elements) Add all elements to `accountTaxIds` list.Add all elements to `customFields` list.Add an element to `customFields` 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.setAccountTaxIds
(EmptyParam accountTaxIds) The account tax IDs associated with the invoice.setAccountTaxIds
(List<String> accountTaxIds) The account tax IDs associated with the invoice.setCustomFields
(EmptyParam customFields) Default custom fields to be displayed on invoices for this customer.Default custom fields to be displayed on invoices for this customer.setDescription
(String description) An arbitrary string attached to the object.Default footer to be displayed on invoices for this customer.The connected account that issues the invoice.setRenderingOptions
(SessionCreateParams.InvoiceCreation.InvoiceData.RenderingOptions renderingOptions) Default options for invoice PDF rendering for this customer.setRenderingOptions
(EmptyParam renderingOptions) Default options for invoice PDF rendering for this customer.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addAccountTaxId
Add an element to `accountTaxIds` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.InvoiceCreation.InvoiceData.accountTaxIds
for the field documentation. -
addAllAccountTaxId
public SessionCreateParams.InvoiceCreation.InvoiceData.Builder addAllAccountTaxId(List<String> elements) Add all elements to `accountTaxIds` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.InvoiceCreation.InvoiceData.accountTaxIds
for the field documentation. -
setAccountTaxIds
public SessionCreateParams.InvoiceCreation.InvoiceData.Builder setAccountTaxIds(EmptyParam accountTaxIds) The account tax IDs associated with the invoice. -
setAccountTaxIds
public SessionCreateParams.InvoiceCreation.InvoiceData.Builder setAccountTaxIds(List<String> accountTaxIds) The account tax IDs associated with the invoice. -
addCustomField
public SessionCreateParams.InvoiceCreation.InvoiceData.Builder addCustomField(SessionCreateParams.InvoiceCreation.InvoiceData.CustomField element) Add an element to `customFields` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.InvoiceCreation.InvoiceData.customFields
for the field documentation. -
addAllCustomField
public SessionCreateParams.InvoiceCreation.InvoiceData.Builder addAllCustomField(List<SessionCreateParams.InvoiceCreation.InvoiceData.CustomField> elements) Add all elements to `customFields` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.InvoiceCreation.InvoiceData.customFields
for the field documentation. -
setCustomFields
public SessionCreateParams.InvoiceCreation.InvoiceData.Builder setCustomFields(EmptyParam customFields) Default custom fields to be displayed on invoices for this customer. -
setCustomFields
public SessionCreateParams.InvoiceCreation.InvoiceData.Builder setCustomFields(List<SessionCreateParams.InvoiceCreation.InvoiceData.CustomField> customFields) Default custom fields to be displayed on invoices for this customer. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
putExtraParam
public SessionCreateParams.InvoiceCreation.InvoiceData.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. SeeSessionCreateParams.InvoiceCreation.InvoiceData.extraParams
for the field documentation. -
putAllExtraParam
public SessionCreateParams.InvoiceCreation.InvoiceData.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. SeeSessionCreateParams.InvoiceCreation.InvoiceData.extraParams
for the field documentation. -
setIssuer
public SessionCreateParams.InvoiceCreation.InvoiceData.Builder setIssuer(SessionCreateParams.InvoiceCreation.InvoiceData.Issuer issuer) The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. -
putMetadata
public SessionCreateParams.InvoiceCreation.InvoiceData.Builder putMetadata(String key, 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. SeeSessionCreateParams.InvoiceCreation.InvoiceData.metadata
for the field documentation. -
putAllMetadata
public SessionCreateParams.InvoiceCreation.InvoiceData.Builder putAllMetadata(Map<String, 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. SeeSessionCreateParams.InvoiceCreation.InvoiceData.metadata
for the field documentation. -
setRenderingOptions
public SessionCreateParams.InvoiceCreation.InvoiceData.Builder setRenderingOptions(SessionCreateParams.InvoiceCreation.InvoiceData.RenderingOptions renderingOptions) Default options for invoice PDF rendering for this customer. -
setRenderingOptions
public SessionCreateParams.InvoiceCreation.InvoiceData.Builder setRenderingOptions(EmptyParam renderingOptions) Default options for invoice PDF rendering for this customer.
-