public class CreditNotePreviewParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
CreditNotePreviewParams.Builder |
static class |
CreditNotePreviewParams.Line |
static class |
CreditNotePreviewParams.Reason |
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static CreditNotePreviewParams.Builder |
builder() |
java.lang.Long |
getAmount()
The integer amount in %s representing the total amount of the credit note.
|
java.lang.Long |
getCreditAmount()
The integer amount in %s representing the amount to credit the customer's
balance, which will be automatically applied to their next invoice.
|
java.util.List<java.lang.String> |
getExpand()
Specifies which fields in the response should be expanded.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
java.lang.String |
getInvoice()
ID of the invoice.
|
java.util.List<CreditNotePreviewParams.Line> |
getLines()
Line items that make up the credit note.
|
java.lang.String |
getMemo()
The credit note's memo appears on the credit note PDF.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.Long |
getOutOfBandAmount()
The integer amount in %s representing the amount that is credited outside of
Stripe.
|
CreditNotePreviewParams.Reason |
getReason()
Reason for issuing this credit note, one of
duplicate , fraudulent , order_change , or product_unsatisfactory . |
java.lang.String |
getRefund()
ID of an existing refund to link this credit note to.
|
java.lang.Long |
getRefundAmount()
The integer amount in %s representing the amount to refund.
|
toMap
public static CreditNotePreviewParams.Builder builder()
public java.lang.Long getAmount()
public java.lang.Long getCreditAmount()
public java.util.List<java.lang.String> getExpand()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@SerializedName
value. Instead, each
key/value pair is serialized as if the key is a root-level field (serialized) name in this
param object. Effectively, this map is flattened to its parent instance.public java.lang.String getInvoice()
public java.util.List<CreditNotePreviewParams.Line> getLines()
public java.lang.String getMemo()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
metadata
.public java.lang.Long getOutOfBandAmount()
public CreditNotePreviewParams.Reason getReason()
duplicate
, fraudulent
, order_change
, or product_unsatisfactory
.public java.lang.String getRefund()
public java.lang.Long getRefundAmount()