Class CreditNotePreviewLinesListParams.Builder

java.lang.Object
com.stripe.param.CreditNotePreviewLinesListParams.Builder
Enclosing class:
CreditNotePreviewLinesListParams

public static class CreditNotePreviewLinesListParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • setAmount

      The integer amount in cents (or local equivalent) representing the total amount of the credit note.
    • setCreditAmount

      public CreditNotePreviewLinesListParams.Builder setCreditAmount(Long creditAmount)
      The integer amount in cents (or local equivalent) representing the amount to credit the customer's balance, which will be automatically applied to their next invoice.
    • setEffectiveAt

      public CreditNotePreviewLinesListParams.Builder setEffectiveAt(Long effectiveAt)
      The date when this credit note is in effect. Same as created unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the credit note PDF.
    • setEndingBefore

      public CreditNotePreviewLinesListParams.Builder setEndingBefore(String endingBefore)
      A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list.
    • addExpand

      Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See CreditNotePreviewLinesListParams.expand for the field documentation.
    • addAllExpand

      public CreditNotePreviewLinesListParams.Builder addAllExpand(List<String> elements)
      Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See CreditNotePreviewLinesListParams.expand for the field documentation.
    • putExtraParam

      public CreditNotePreviewLinesListParams.Builder putExtraParam(String key, Object value)
      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. See CreditNotePreviewLinesListParams.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. See CreditNotePreviewLinesListParams.extraParams for the field documentation.
    • setInvoice

      public CreditNotePreviewLinesListParams.Builder setInvoice(String invoice)
      Required. ID of the invoice.
    • setLimit

      A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
    • addLine

      Add an element to `lines` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See CreditNotePreviewLinesListParams.lines for the field documentation.
    • addAllLine

      Add all elements to `lines` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See CreditNotePreviewLinesListParams.lines for the field documentation.
    • setMemo

      The credit note's memo appears on the credit note PDF.
    • putMetadata

      public CreditNotePreviewLinesListParams.Builder putMetadata(String key, String value)
      Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See CreditNotePreviewLinesListParams.metadata for the field documentation.
    • putAllMetadata

      Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See CreditNotePreviewLinesListParams.metadata for the field documentation.
    • setOutOfBandAmount

      public CreditNotePreviewLinesListParams.Builder setOutOfBandAmount(Long outOfBandAmount)
      The integer amount in cents (or local equivalent) representing the amount that is credited outside of Stripe.
    • setReason

      Reason for issuing this credit note, one of duplicate, fraudulent, order_change, or product_unsatisfactory.
    • setRefund

      ID of an existing refund to link this credit note to.
    • setRefundAmount

      public CreditNotePreviewLinesListParams.Builder setRefundAmount(Long refundAmount)
      The integer amount in cents (or local equivalent) representing the amount to refund. If set, a refund will be created for the charge associated with the invoice.
    • setShippingCost

      When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.
    • setStartingAfter

      public CreditNotePreviewLinesListParams.Builder setStartingAfter(String startingAfter)
      A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.