Package com.stripe.param
Class CreditNoteCreateParams.Refund.Builder
java.lang.Object
com.stripe.param.CreditNoteCreateParams.Refund.Builder
- Enclosing class:
- CreditNoteCreateParams.Refund
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setAmountRefunded
(Long amountRefunded) Amount of the refund that applies to this credit note, in cents (or local equivalent).setPaymentRecordRefund
(CreditNoteCreateParams.Refund.PaymentRecordRefund paymentRecordRefund) The PaymentRecord refund details to link to this credit note.ID of an existing refund to link this credit note to.Type of the refund, one ofrefund
orpayment_record_refund
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmountRefunded
Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. -
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.Refund.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.Refund.extraParams
for the field documentation. -
setPaymentRecordRefund
public CreditNoteCreateParams.Refund.Builder setPaymentRecordRefund(CreditNoteCreateParams.Refund.PaymentRecordRefund paymentRecordRefund) The PaymentRecord refund details to link to this credit note. Required whentype
ispayment_record_refund
. -
setRefund
ID of an existing refund to link this credit note to. Required whentype
isrefund
. -
setType
Type of the refund, one ofrefund
orpayment_record_refund
. Defaults torefund
.
-