Record Class CashReceipt

java.lang.Object
java.lang.Record
kr.paysync.sdk.cashreceipt.CashReceipt
Record Components:
id - 현금영수증 ID (crt_...)
kind - 발급한 현금영수증인지 취소 영수증인지
status - 상태
type - 종류
identifier - 휴대폰 번호, 현금영수증 카드 번호, 사업자등록번호
selfIssued - 자진발급이면 true
customerName - 구매자 이름
amount - 부가세를 포함한 거래 금액
supplyCost - 공급가액
tax - 부가세
serviceFee - 봉사료
taxation - 과세 형태
itemName - 상품명
method - 발급 방식
invoiceId - 연결된 주문 ID
invoiceNumber - 연결된 주문번호
ntsConfirmNum - 국세청 승인번호
tradeDate - 거래일 (YYYYMMDD)
failure - 발급 실패 정보
ntsSentAt - 국세청에 보낸 시각
ntsResultAt - 국세청 결과를 받은 시각
ntsResultCode - 국세청 결과 코드
originalId - 취소 영수증이면 원본 현금영수증 ID
cancellationIds - 이 현금영수증을 취소하며 만든 취소 영수증 ID
canceledAmount - 취소한 금액
remainingAmount - 남은 금액
partial - 부분 취소 영수증이면 true
reissuedFromId - 재발급한 현금영수증이면 원본 ID
reissuedToId - 재발급했으면 새 현금영수증 ID
cancelReason - 취소 사유
issuedBy - 발급한 주체
createdAt - 발급을 요청한 시각
updatedAt - 마지막으로 바뀐 시각
canceledAt - 취소한 시각

public record CashReceipt(String id, CashReceiptKind kind, CashReceiptStatus status, CashReceiptType type, String identifier, boolean selfIssued, @Nullable String customerName, long amount, long supplyCost, long tax, long serviceFee, CashReceiptTaxation taxation, @Nullable String itemName, CashReceiptMethod method, @Nullable String invoiceId, @Nullable Long invoiceNumber, @Nullable String ntsConfirmNum, @Nullable String tradeDate, @Nullable CashReceipt.Failure failure, @Nullable Instant ntsSentAt, @Nullable Instant ntsResultAt, @Nullable String ntsResultCode, @Nullable String originalId, List<String> cancellationIds, long canceledAmount, long remainingAmount, boolean partial, @Nullable String reissuedFromId, @Nullable String reissuedToId, @Nullable String cancelReason, Actor issuedBy, Instant createdAt, @Nullable Instant updatedAt, @Nullable Instant canceledAt) extends Record
현금영수증입니다.
  • Constructor Details

    • CashReceipt

      public CashReceipt(String id, CashReceiptKind kind, CashReceiptStatus status, CashReceiptType type, String identifier, boolean selfIssued, @Nullable String customerName, long amount, long supplyCost, long tax, long serviceFee, CashReceiptTaxation taxation, @Nullable String itemName, CashReceiptMethod method, @Nullable String invoiceId, @Nullable Long invoiceNumber, @Nullable String ntsConfirmNum, @Nullable String tradeDate, @Nullable CashReceipt.Failure failure, @Nullable Instant ntsSentAt, @Nullable Instant ntsResultAt, @Nullable String ntsResultCode, @Nullable String originalId, List<String> cancellationIds, long canceledAmount, long remainingAmount, boolean partial, @Nullable String reissuedFromId, @Nullable String reissuedToId, @Nullable String cancelReason, Actor issuedBy, Instant createdAt, @Nullable Instant updatedAt, @Nullable Instant canceledAt)
      Creates an instance of a CashReceipt record class.
      Parameters:
      id - the value for the id record component
      kind - the value for the kind record component
      status - the value for the status record component
      type - the value for the type record component
      identifier - the value for the identifier record component
      selfIssued - the value for the selfIssued record component
      customerName - the value for the customerName record component
      amount - the value for the amount record component
      supplyCost - the value for the supplyCost record component
      tax - the value for the tax record component
      serviceFee - the value for the serviceFee record component
      taxation - the value for the taxation record component
      itemName - the value for the itemName record component
      method - the value for the method record component
      invoiceId - the value for the invoiceId record component
      invoiceNumber - the value for the invoiceNumber record component
      ntsConfirmNum - the value for the ntsConfirmNum record component
      tradeDate - the value for the tradeDate record component
      failure - the value for the failure record component
      ntsSentAt - the value for the ntsSentAt record component
      ntsResultAt - the value for the ntsResultAt record component
      ntsResultCode - the value for the ntsResultCode record component
      originalId - the value for the originalId record component
      cancellationIds - the value for the cancellationIds record component
      canceledAmount - the value for the canceledAmount record component
      remainingAmount - the value for the remainingAmount record component
      partial - the value for the partial record component
      reissuedFromId - the value for the reissuedFromId record component
      reissuedToId - the value for the reissuedToId record component
      cancelReason - the value for the cancelReason record component
      issuedBy - the value for the issuedBy record component
      createdAt - the value for the createdAt record component
      updatedAt - the value for the updatedAt record component
      canceledAt - the value for the canceledAt 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
    • kind

      public CashReceiptKind kind()
      Returns the value of the kind record component.
      Returns:
      the value of the kind record component
    • status

      public CashReceiptStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • type

      public CashReceiptType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • identifier

      public String identifier()
      Returns the value of the identifier record component.
      Returns:
      the value of the identifier record component
    • selfIssued

      public boolean selfIssued()
      Returns the value of the selfIssued record component.
      Returns:
      the value of the selfIssued record component
    • customerName

      public @Nullable String customerName()
      Returns the value of the customerName record component.
      Returns:
      the value of the customerName record component
    • amount

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

      public long supplyCost()
      Returns the value of the supplyCost record component.
      Returns:
      the value of the supplyCost record component
    • tax

      public long tax()
      Returns the value of the tax record component.
      Returns:
      the value of the tax record component
    • serviceFee

      public long serviceFee()
      Returns the value of the serviceFee record component.
      Returns:
      the value of the serviceFee record component
    • taxation

      public CashReceiptTaxation taxation()
      Returns the value of the taxation record component.
      Returns:
      the value of the taxation record component
    • itemName

      public @Nullable String itemName()
      Returns the value of the itemName record component.
      Returns:
      the value of the itemName record component
    • method

      public CashReceiptMethod method()
      Returns the value of the method record component.
      Returns:
      the value of the method record component
    • invoiceId

      public @Nullable String invoiceId()
      Returns the value of the invoiceId record component.
      Returns:
      the value of the invoiceId record component
    • invoiceNumber

      public @Nullable Long invoiceNumber()
      Returns the value of the invoiceNumber record component.
      Returns:
      the value of the invoiceNumber record component
    • ntsConfirmNum

      public @Nullable String ntsConfirmNum()
      Returns the value of the ntsConfirmNum record component.
      Returns:
      the value of the ntsConfirmNum record component
    • tradeDate

      public @Nullable String tradeDate()
      Returns the value of the tradeDate record component.
      Returns:
      the value of the tradeDate record component
    • failure

      public @Nullable CashReceipt.Failure failure()
      Returns the value of the failure record component.
      Returns:
      the value of the failure record component
    • ntsSentAt

      public @Nullable Instant ntsSentAt()
      Returns the value of the ntsSentAt record component.
      Returns:
      the value of the ntsSentAt record component
    • ntsResultAt

      public @Nullable Instant ntsResultAt()
      Returns the value of the ntsResultAt record component.
      Returns:
      the value of the ntsResultAt record component
    • ntsResultCode

      public @Nullable String ntsResultCode()
      Returns the value of the ntsResultCode record component.
      Returns:
      the value of the ntsResultCode record component
    • originalId

      public @Nullable String originalId()
      Returns the value of the originalId record component.
      Returns:
      the value of the originalId record component
    • cancellationIds

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

      public long canceledAmount()
      Returns the value of the canceledAmount record component.
      Returns:
      the value of the canceledAmount record component
    • remainingAmount

      public long remainingAmount()
      Returns the value of the remainingAmount record component.
      Returns:
      the value of the remainingAmount record component
    • partial

      public boolean partial()
      Returns the value of the partial record component.
      Returns:
      the value of the partial record component
    • reissuedFromId

      public @Nullable String reissuedFromId()
      Returns the value of the reissuedFromId record component.
      Returns:
      the value of the reissuedFromId record component
    • reissuedToId

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

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

      public Actor issuedBy()
      Returns the value of the issuedBy record component.
      Returns:
      the value of the issuedBy 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
    • canceledAt

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