Class CreditNotePreviewParams.Line

  • Enclosing class:
    CreditNotePreviewParams

    public static class CreditNotePreviewParams.Line
    extends java.lang.Object
    • Method Detail

      • getAmount

        public java.lang.Long getAmount()
        The line item amount to credit. Only valid when type is invoice_line_item.
      • getDescription

        public java.lang.String getDescription()
        The description of the credit note line item. Only valid when the type is custom_line_item.
      • getExtraParams

        public java.util.Map<java.lang.String,​java.lang.Object> getExtraParams()
        Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's @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.
      • getInvoiceLineItem

        public java.lang.String getInvoiceLineItem()
        The invoice line item to credit. Only valid when the type is invoice_line_item.
      • getQuantity

        public java.lang.Long getQuantity()
        The line item quantity to credit.
      • getTaxRates

        public java.lang.Object getTaxRates()
        The tax rates which apply to the credit note line item. Only valid when the type is custom_line_item.
      • getUnitAmount

        public java.lang.Long getUnitAmount()
        The integer unit amount in %s of the credit note line item. This unit_amount will be multiplied by the quantity to get the full amount to credit for this line item. Only valid when type is custom_line_item.
      • getUnitAmountDecimal

        public java.math.BigDecimal getUnitAmountDecimal()
        Same as unit_amount, but accepts a decimal value in %s with at most 12 decimal places. Only one of unit_amount and unit_amount_decimal can be set.