Package com.stripe.param
Class CreditNotePreviewLinesListParams.Builder
java.lang.Object
com.stripe.param.CreditNotePreviewLinesListParams.Builder
- Enclosing class:
- CreditNotePreviewLinesListParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.addAllLine
(List<CreditNotePreviewLinesListParams.Line> elements) Add all elements to `lines` list.Add an element to `expand` list.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.Type of email to send to the customer, one ofcredit_note
ornone
and the default iscredit_note
.setEndingBefore
(String endingBefore) A cursor for use in pagination.setInvoice
(String invoice) Required. ID of the invoice.A limit on the number of objects to be returned.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
(CreditNotePreviewLinesListParams.ShippingCost shippingCost) When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.setStartingAfter
(String startingAfter) A cursor for use in pagination.
-
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
public CreditNotePreviewLinesListParams.Builder setEmailType(CreditNotePreviewLinesListParams.EmailType emailType) Type of email to send to the customer, one ofcredit_note
ornone
and the default iscredit_note
. -
setEndingBefore
A cursor for use in pagination.ending_before
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withobj_bar
, your subsequent call can includeending_before=obj_bar
in order to fetch the previous page of the list. -
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. SeeCreditNotePreviewLinesListParams.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. SeeCreditNotePreviewLinesListParams.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. SeeCreditNotePreviewLinesListParams.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. SeeCreditNotePreviewLinesListParams.extraParams
for the field documentation. -
setInvoice
Required. ID of the invoice. -
setLimit
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. -
addLine
public CreditNotePreviewLinesListParams.Builder addLine(CreditNotePreviewLinesListParams.Line element) 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. SeeCreditNotePreviewLinesListParams.lines
for the field documentation. -
addAllLine
public CreditNotePreviewLinesListParams.Builder addAllLine(List<CreditNotePreviewLinesListParams.Line> elements) 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. SeeCreditNotePreviewLinesListParams.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. SeeCreditNotePreviewLinesListParams.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. SeeCreditNotePreviewLinesListParams.metadata
for the field documentation. -
setOutOfBandAmount
The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe. -
setReason
public CreditNotePreviewLinesListParams.Builder setReason(CreditNotePreviewLinesListParams.Reason reason) 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 CreditNotePreviewLinesListParams.Builder setShippingCost(CreditNotePreviewLinesListParams.ShippingCost shippingCost) When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note. -
setStartingAfter
A cursor for use in pagination.starting_after
is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withobj_foo
, your subsequent call can includestarting_after=obj_foo
in order to fetch the next page of the list.
-