Interface Charge.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Charge.Builder,Charge>, SdkBuilder<Charge.Builder,Charge>, SdkPojo
Enclosing class:
Charge

@Mutable @NotThreadSafe public static interface Charge.Builder extends SdkPojo, CopyableBuilder<Charge.Builder,Charge>
  • Method Details

    • id

      The unique identifier of the charge.

      Parameters:
      id - The unique identifier of the charge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • revision

      Charge.Builder revision(Long revision)

      The revision number of the charge.

      Parameters:
      revision - The revision number of the charge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agreementId

      Charge.Builder agreementId(String agreementId)

      The unique identifier of the agreement that resulted in this charge.

      Parameters:
      agreementId - The unique identifier of the agreement that resulted in this charge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agreementType

      Charge.Builder agreementType(String agreementType)

      The type of agreement that resulted in this charge (for example, PurchaseAgreement).

      Parameters:
      agreementType - The type of agreement that resulted in this charge (for example, PurchaseAgreement).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • purchaseOrderReference

      Charge.Builder purchaseOrderReference(String purchaseOrderReference)

      The purchase order reference associated with the charge, if any.

      Parameters:
      purchaseOrderReference - The purchase order reference associated with the charge, if any.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • currencyCode

      Charge.Builder currencyCode(String currencyCode)

      The currency code for the charge amount.

      Parameters:
      currencyCode - The currency code for the charge amount.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • amount

      Charge.Builder amount(String amount)

      The amount of the charge.

      Parameters:
      amount - The amount of the charge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • time

      Charge.Builder time(Instant time)

      The date and time when the charge will be incurred. This is available only when the charge date is known.

      Parameters:
      time - The date and time when the charge will be incurred. This is available only when the charge date is known.
      Returns:
      Returns a reference to this object so that method calls can be chained together.