Class CreditNoteCreateParams.Line.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setDescription

        public CreditNoteCreateParams.Line.Builder setDescription​(java.lang.String description)
        The description of the credit note line item. Only valid when the type is custom_line_item.
      • putAllExtraParam

        public CreditNoteCreateParams.Line.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. See CreditNoteCreateParams.Line.extraParams for the field documentation.
      • setInvoiceLineItem

        public CreditNoteCreateParams.Line.Builder setInvoiceLineItem​(java.lang.String invoiceLineItem)
        The invoice line item to credit. Only valid when the type is invoice_line_item.
      • setTaxRates

        public CreditNoteCreateParams.Line.Builder setTaxRates​(java.util.List<java.lang.String> taxRates)
        The tax rates which apply to the credit note line item. Only valid when the type is custom_line_item.
      • setUnitAmount

        public CreditNoteCreateParams.Line.Builder setUnitAmount​(java.lang.Long unitAmount)
        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.
      • setUnitAmountDecimal

        public CreditNoteCreateParams.Line.Builder setUnitAmountDecimal​(java.math.BigDecimal unitAmountDecimal)
        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.