Record Class InvoicePayload

java.lang.Object
java.lang.Record
kr.paysync.sdk.webhook.InvoicePayload

public record InvoicePayload(String id, long number, InvoiceStatus status, Invoice.Customer customer, long amount, @Nullable Long paidAmount, @Nullable Long amountDiff, List<String> bankAccountIds, @Nullable Invoice.CashReceiptInfo cashReceipt, Map<String,String> metadata, InvoiceSource source, Instant createdAt, @Nullable Instant updatedAt, @Nullable Instant expiresAt, @Nullable Instant paidAt, @Nullable PaidTrigger paidTrigger, @Nullable String matchedTransactionId, @Nullable Instant canceledAt, @Nullable String cancelReason, @Nullable Instant expiredAt, @Nullable Instant reopenedAt) extends Record
주문 이벤트의 주문입니다. 필드는 Invoice와 같습니다.
  • Constructor Details

    • InvoicePayload

      public InvoicePayload(String id, long number, InvoiceStatus status, Invoice.Customer customer, long amount, @Nullable Long paidAmount, @Nullable Long amountDiff, List<String> bankAccountIds, @Nullable Invoice.CashReceiptInfo cashReceipt, Map<String,String> metadata, InvoiceSource source, Instant createdAt, @Nullable Instant updatedAt, @Nullable Instant expiresAt, @Nullable Instant paidAt, @Nullable PaidTrigger paidTrigger, @Nullable String matchedTransactionId, @Nullable Instant canceledAt, @Nullable String cancelReason, @Nullable Instant expiredAt, @Nullable Instant reopenedAt)
      Creates an instance of a InvoicePayload record class.
      Parameters:
      id - the value for the id record component
      number - the value for the number record component
      status - the value for the status record component
      customer - the value for the customer record component
      amount - the value for the amount record component
      paidAmount - the value for the paidAmount record component
      amountDiff - the value for the amountDiff record component
      bankAccountIds - the value for the bankAccountIds record component
      cashReceipt - the value for the cashReceipt record component
      metadata - the value for the metadata record component
      source - the value for the source record component
      createdAt - the value for the createdAt record component
      updatedAt - the value for the updatedAt record component
      expiresAt - the value for the expiresAt record component
      paidAt - the value for the paidAt record component
      paidTrigger - the value for the paidTrigger record component
      matchedTransactionId - the value for the matchedTransactionId record component
      canceledAt - the value for the canceledAt record component
      cancelReason - the value for the cancelReason record component
      expiredAt - the value for the expiredAt record component
      reopenedAt - the value for the reopenedAt record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • number

      public long number()
      Returns the value of the number record component.
      Returns:
      the value of the number record component
    • status

      public InvoiceStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • customer

      public Invoice.Customer customer()
      Returns the value of the customer record component.
      Returns:
      the value of the customer record component
    • amount

      public long amount()
      Returns the value of the amount record component.
      Returns:
      the value of the amount record component
    • paidAmount

      public @Nullable Long paidAmount()
      Returns the value of the paidAmount record component.
      Returns:
      the value of the paidAmount record component
    • amountDiff

      public @Nullable Long amountDiff()
      Returns the value of the amountDiff record component.
      Returns:
      the value of the amountDiff record component
    • bankAccountIds

      public List<String> bankAccountIds()
      Returns the value of the bankAccountIds record component.
      Returns:
      the value of the bankAccountIds record component
    • cashReceipt

      public @Nullable Invoice.CashReceiptInfo cashReceipt()
      Returns the value of the cashReceipt record component.
      Returns:
      the value of the cashReceipt record component
    • metadata

      public Map<String,String> metadata()
      Returns the value of the metadata record component.
      Returns:
      the value of the metadata record component
    • source

      public InvoiceSource source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • updatedAt

      public @Nullable Instant updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component
    • expiresAt

      public @Nullable Instant expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • paidAt

      public @Nullable Instant paidAt()
      Returns the value of the paidAt record component.
      Returns:
      the value of the paidAt record component
    • paidTrigger

      public @Nullable PaidTrigger paidTrigger()
      Returns the value of the paidTrigger record component.
      Returns:
      the value of the paidTrigger record component
    • matchedTransactionId

      public @Nullable String matchedTransactionId()
      Returns the value of the matchedTransactionId record component.
      Returns:
      the value of the matchedTransactionId record component
    • canceledAt

      public @Nullable Instant canceledAt()
      Returns the value of the canceledAt record component.
      Returns:
      the value of the canceledAt record component
    • cancelReason

      public @Nullable String cancelReason()
      Returns the value of the cancelReason record component.
      Returns:
      the value of the cancelReason record component
    • expiredAt

      public @Nullable Instant expiredAt()
      Returns the value of the expiredAt record component.
      Returns:
      the value of the expiredAt record component
    • reopenedAt

      public @Nullable Instant reopenedAt()
      Returns the value of the reopenedAt record component.
      Returns:
      the value of the reopenedAt record component