Package com.stripe.param
Class CreditNoteCreateParams.Builder
java.lang.Object
com.stripe.param.CreditNoteCreateParams.Builder
- Enclosing class:
- CreditNoteCreateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.addAllLine
(List<CreditNoteCreateParams.Line> elements) Add all elements to `lines` list.Add an element to `expand` list.addLine
(CreditNoteCreateParams.Line element) Add an element to `lines` 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.The integer amount in cents (or local equivalent) representing the total amount of the credit note.setCreditAmount
(Long creditAmount) The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.setEffectiveAt
(Long effectiveAt) The date when this credit note is in effect.setEmailType
(CreditNoteCreateParams.EmailType emailType) Type of email to send to the customer, one ofcredit_note
ornone
and the default iscredit_note
.setInvoice
(String invoice) Required. ID of the invoice.The credit note's memo appears on the credit note PDF.setOutOfBandAmount
(Long outOfBandAmount) The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe.Reason for issuing this credit note, one ofduplicate
,fraudulent
,order_change
, orproduct_unsatisfactory
.ID of an existing refund to link this credit note to.setRefundAmount
(Long refundAmount) The integer amount in cents (or local equivalent) representing the amount to refund.setShippingCost
(CreditNoteCreateParams.ShippingCost shippingCost) When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
The integer amount in cents (or local equivalent) representing the total amount of the credit note. -
setCreditAmount
The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice. -
setEffectiveAt
The date when this credit note is in effect. Same ascreated
unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF. -
setEmailType
Type of email to send to the customer, one ofcredit_note
ornone
and the default iscredit_note
. -
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. SeeCreditNoteCreateParams.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. SeeCreditNoteCreateParams.expand
for the field documentation. -
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. SeeCreditNoteCreateParams.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. SeeCreditNoteCreateParams.extraParams
for the field documentation. -
setInvoice
Required. ID of the invoice. -
addLine
Add an element to `lines` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCreditNoteCreateParams.lines
for the field documentation. -
addAllLine
Add all elements to `lines` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCreditNoteCreateParams.lines
for the field documentation. -
setMemo
The credit note's memo appears on the credit note PDF. -
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. SeeCreditNoteCreateParams.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. SeeCreditNoteCreateParams.metadata
for the field documentation. -
setOutOfBandAmount
The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe. -
setReason
Reason for issuing this credit note, one ofduplicate
,fraudulent
,order_change
, orproduct_unsatisfactory
. -
setRefund
ID of an existing refund to link this credit note to. -
setRefundAmount
The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice. -
setShippingCost
public CreditNoteCreateParams.Builder setShippingCost(CreditNoteCreateParams.ShippingCost shippingCost) When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
-