Record Class CashReceipt
java.lang.Object
java.lang.Record
kr.paysync.sdk.cashreceipt.CashReceipt
- Record Components:
id- 현금영수증 ID (crt_...)kind- 발급한 현금영수증인지 취소 영수증인지status- 상태type- 종류identifier- 휴대폰 번호, 현금영수증 카드 번호, 사업자등록번호selfIssued- 자진발급이면 truecustomerName- 구매자 이름amount- 부가세를 포함한 거래 금액supplyCost- 공급가액tax- 부가세serviceFee- 봉사료taxation- 과세 형태itemName- 상품명method- 발급 방식invoiceId- 연결된 주문 IDinvoiceNumber- 연결된 주문번호ntsConfirmNum- 국세청 승인번호tradeDate- 거래일 (YYYYMMDD)failure- 발급 실패 정보ntsSentAt- 국세청에 보낸 시각ntsResultAt- 국세청 결과를 받은 시각ntsResultCode- 국세청 결과 코드originalId- 취소 영수증이면 원본 현금영수증 IDcancellationIds- 이 현금영수증을 취소하며 만든 취소 영수증 IDcanceledAmount- 취소한 금액remainingAmount- 남은 금액partial- 부분 취소 영수증이면 truereissuedFromId- 재발급한 현금영수증이면 원본 IDreissuedToId- 재발급했으면 새 현금영수증 IDcancelReason- 취소 사유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
현금영수증입니다.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCashReceipt(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 aCashReceiptrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamount()Returns the value of theamountrecord component.longReturns the value of thecanceledAmountrecord component.@Nullable InstantReturns the value of thecanceledAtrecord component.Returns the value of thecancellationIdsrecord component.@Nullable StringReturns the value of thecancelReasonrecord component.Returns the value of thecreatedAtrecord component.@Nullable StringReturns the value of thecustomerNamerecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable CashReceipt.Failurefailure()Returns the value of thefailurerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theidentifierrecord component.@Nullable StringReturns the value of theinvoiceIdrecord component.@Nullable LongReturns the value of theinvoiceNumberrecord component.issuedBy()Returns the value of theissuedByrecord component.@Nullable StringitemName()Returns the value of theitemNamerecord component.kind()Returns the value of thekindrecord component.method()Returns the value of themethodrecord component.@Nullable StringReturns the value of thentsConfirmNumrecord component.@Nullable InstantReturns the value of thentsResultAtrecord component.@Nullable StringReturns the value of thentsResultCoderecord component.@Nullable InstantReturns the value of thentsSentAtrecord component.@Nullable StringReturns the value of theoriginalIdrecord component.booleanpartial()Returns the value of thepartialrecord component.@Nullable StringReturns the value of thereissuedFromIdrecord component.@Nullable StringReturns the value of thereissuedToIdrecord component.longReturns the value of theremainingAmountrecord component.booleanReturns the value of theselfIssuedrecord component.longReturns the value of theserviceFeerecord component.status()Returns the value of thestatusrecord component.longReturns the value of thesupplyCostrecord component.longtax()Returns the value of thetaxrecord component.taxation()Returns the value of thetaxationrecord component.final StringtoString()Returns a string representation of this record class.@Nullable StringReturns the value of thetradeDaterecord component.type()Returns the value of thetyperecord component.@Nullable InstantReturns the value of theupdatedAtrecord component.
-
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 aCashReceiptrecord class.- Parameters:
id- the value for theidrecord componentkind- the value for thekindrecord componentstatus- the value for thestatusrecord componenttype- the value for thetyperecord componentidentifier- the value for theidentifierrecord componentselfIssued- the value for theselfIssuedrecord componentcustomerName- the value for thecustomerNamerecord componentamount- the value for theamountrecord componentsupplyCost- the value for thesupplyCostrecord componenttax- the value for thetaxrecord componentserviceFee- the value for theserviceFeerecord componenttaxation- the value for thetaxationrecord componentitemName- the value for theitemNamerecord componentmethod- the value for themethodrecord componentinvoiceId- the value for theinvoiceIdrecord componentinvoiceNumber- the value for theinvoiceNumberrecord componentntsConfirmNum- the value for thentsConfirmNumrecord componenttradeDate- the value for thetradeDaterecord componentfailure- the value for thefailurerecord componentntsSentAt- the value for thentsSentAtrecord componentntsResultAt- the value for thentsResultAtrecord componentntsResultCode- the value for thentsResultCoderecord componentoriginalId- the value for theoriginalIdrecord componentcancellationIds- the value for thecancellationIdsrecord componentcanceledAmount- the value for thecanceledAmountrecord componentremainingAmount- the value for theremainingAmountrecord componentpartial- the value for thepartialrecord componentreissuedFromId- the value for thereissuedFromIdrecord componentreissuedToId- the value for thereissuedToIdrecord componentcancelReason- the value for thecancelReasonrecord componentissuedBy- the value for theissuedByrecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord componentcanceledAt- the value for thecanceledAtrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
kind
-
status
-
type
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
selfIssued
public boolean selfIssued()Returns the value of theselfIssuedrecord component.- Returns:
- the value of the
selfIssuedrecord component
-
customerName
Returns the value of thecustomerNamerecord component.- Returns:
- the value of the
customerNamerecord component
-
amount
-
supplyCost
public long supplyCost()Returns the value of thesupplyCostrecord component.- Returns:
- the value of the
supplyCostrecord component
-
tax
-
serviceFee
public long serviceFee()Returns the value of theserviceFeerecord component.- Returns:
- the value of the
serviceFeerecord component
-
taxation
-
itemName
-
method
-
invoiceId
-
invoiceNumber
Returns the value of theinvoiceNumberrecord component.- Returns:
- the value of the
invoiceNumberrecord component
-
ntsConfirmNum
Returns the value of thentsConfirmNumrecord component.- Returns:
- the value of the
ntsConfirmNumrecord component
-
tradeDate
-
failure
-
ntsSentAt
-
ntsResultAt
Returns the value of thentsResultAtrecord component.- Returns:
- the value of the
ntsResultAtrecord component
-
ntsResultCode
Returns the value of thentsResultCoderecord component.- Returns:
- the value of the
ntsResultCoderecord component
-
originalId
Returns the value of theoriginalIdrecord component.- Returns:
- the value of the
originalIdrecord component
-
cancellationIds
Returns the value of thecancellationIdsrecord component.- Returns:
- the value of the
cancellationIdsrecord component
-
canceledAmount
public long canceledAmount()Returns the value of thecanceledAmountrecord component.- Returns:
- the value of the
canceledAmountrecord component
-
remainingAmount
public long remainingAmount()Returns the value of theremainingAmountrecord component.- Returns:
- the value of the
remainingAmountrecord component
-
partial
-
reissuedFromId
Returns the value of thereissuedFromIdrecord component.- Returns:
- the value of the
reissuedFromIdrecord component
-
reissuedToId
Returns the value of thereissuedToIdrecord component.- Returns:
- the value of the
reissuedToIdrecord component
-
cancelReason
Returns the value of thecancelReasonrecord component.- Returns:
- the value of the
cancelReasonrecord component
-
issuedBy
-
createdAt
-
updatedAt
-
canceledAt
Returns the value of thecanceledAtrecord component.- Returns:
- the value of the
canceledAtrecord component
-