public class CreditNoteCreateParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
CreditNoteCreateParams.Builder |
static class |
CreditNoteCreateParams.Reason |
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static CreditNoteCreateParams.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.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.
|
CreditNoteCreateParams.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 CreditNoteCreateParams.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.lang.String getMemo()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
public CreditNoteCreateParams.Reason getReason()
public java.lang.String getRefund()
public java.lang.Long getRefundAmount()