Package com.stripe.param
Class CreditNotePreviewParams.Builder
- java.lang.Object
-
- com.stripe.param.CreditNotePreviewParams.Builder
-
- Enclosing class:
- CreditNotePreviewParams
public static class CreditNotePreviewParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreditNotePreviewParams.BuilderaddAllExpand(java.util.List<java.lang.String> elements)Add all elements to `expand` list.CreditNotePreviewParams.BuilderaddAllLine(java.util.List<CreditNotePreviewParams.Line> elements)Add all elements to `lines` list.CreditNotePreviewParams.BuilderaddExpand(java.lang.String element)Add an element to `expand` list.CreditNotePreviewParams.BuilderaddLine(CreditNotePreviewParams.Line element)Add an element to `lines` list.CreditNotePreviewParamsbuild()Finalize and obtain parameter instance from this builder.CreditNotePreviewParams.BuilderputAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)Add all map key/value pairs to `extraParams` map.CreditNotePreviewParams.BuilderputAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)Add all map key/value pairs to `metadata` map.CreditNotePreviewParams.BuilderputExtraParam(java.lang.String key, java.lang.Object value)Add a key/value pair to `extraParams` map.CreditNotePreviewParams.BuilderputMetadata(java.lang.String key, java.lang.String value)Add a key/value pair to `metadata` map.CreditNotePreviewParams.BuildersetAmount(java.lang.Long amount)The integer amount in %s representing the total amount of the credit note.CreditNotePreviewParams.BuildersetCreditAmount(java.lang.Long creditAmount)The integer amount in %s representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.CreditNotePreviewParams.BuildersetInvoice(java.lang.String invoice)ID of the invoice.CreditNotePreviewParams.BuildersetMemo(java.lang.String memo)The credit note's memo appears on the credit note PDF.CreditNotePreviewParams.BuildersetOutOfBandAmount(java.lang.Long outOfBandAmount)The integer amount in %s representing the amount that is credited outside of Stripe.CreditNotePreviewParams.BuildersetReason(CreditNotePreviewParams.Reason reason)Reason for issuing this credit note, one ofduplicate,fraudulent,order_change, orproduct_unsatisfactory.CreditNotePreviewParams.BuildersetRefund(java.lang.String refund)ID of an existing refund to link this credit note to.CreditNotePreviewParams.BuildersetRefundAmount(java.lang.Long refundAmount)The integer amount in %s representing the amount to refund.
-
-
-
Method Detail
-
build
public CreditNotePreviewParams build()
Finalize and obtain parameter instance from this builder.
-
setAmount
public CreditNotePreviewParams.Builder setAmount(java.lang.Long amount)
The integer amount in %s representing the total amount of the credit note.
-
setCreditAmount
public CreditNotePreviewParams.Builder setCreditAmount(java.lang.Long creditAmount)
The integer amount in %s representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
-
addExpand
public CreditNotePreviewParams.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. SeeCreditNotePreviewParams.expandfor the field documentation.
-
addAllExpand
public CreditNotePreviewParams.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. SeeCreditNotePreviewParams.expandfor the field documentation.
-
putExtraParam
public CreditNotePreviewParams.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. SeeCreditNotePreviewParams.extraParamsfor the field documentation.
-
putAllExtraParam
public CreditNotePreviewParams.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. SeeCreditNotePreviewParams.extraParamsfor the field documentation.
-
setInvoice
public CreditNotePreviewParams.Builder setInvoice(java.lang.String invoice)
ID of the invoice.
-
addLine
public CreditNotePreviewParams.Builder addLine(CreditNotePreviewParams.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. SeeCreditNotePreviewParams.linesfor the field documentation.
-
addAllLine
public CreditNotePreviewParams.Builder addAllLine(java.util.List<CreditNotePreviewParams.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. SeeCreditNotePreviewParams.linesfor the field documentation.
-
setMemo
public CreditNotePreviewParams.Builder setMemo(java.lang.String memo)
The credit note's memo appears on the credit note PDF.
-
putMetadata
public CreditNotePreviewParams.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. SeeCreditNotePreviewParams.metadatafor the field documentation.
-
putAllMetadata
public CreditNotePreviewParams.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. SeeCreditNotePreviewParams.metadatafor the field documentation.
-
setOutOfBandAmount
public CreditNotePreviewParams.Builder setOutOfBandAmount(java.lang.Long outOfBandAmount)
The integer amount in %s representing the amount that is credited outside of Stripe.
-
setReason
public CreditNotePreviewParams.Builder setReason(CreditNotePreviewParams.Reason reason)
Reason for issuing this credit note, one ofduplicate,fraudulent,order_change, orproduct_unsatisfactory.
-
setRefund
public CreditNotePreviewParams.Builder setRefund(java.lang.String refund)
ID of an existing refund to link this credit note to.
-
setRefundAmount
public CreditNotePreviewParams.Builder setRefundAmount(java.lang.Long refundAmount)
The integer amount in %s representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
-
-