Skip to content

Instantly share code, notes, and snippets.

@evis
Created December 20, 2023 09:08
Show Gist options
  • Save evis/cd51be073b26c6a9f9ff45723d988e26 to your computer and use it in GitHub Desktop.
Save evis/cd51be073b26c6a9f9ff45723d988e26 to your computer and use it in GitHub Desktop.
✗ ReceiptRequest(
receiptContent = ReceiptContent(
compositeEventId = CompositeEventId(
eventId = "domainReceiptType#",
paymentId = "paymentId",
paymentIdType = VerticalsArenda()
),
receiptType = Income(),
payments = List(ReceiptPayment(
amount = 10,
paymentType = Card()
)),
rows = List(ReceiptRow(
agentType = Agent(),
taxType = 0(),
paymentTypeType = Prepayment(),
qty = 1.0,
price = 10,
text = "text",
supplierInfo = Some(SupplierInfo(
inn = "0000000000",
name = Some("name"),
phone = Some("7999887766")
)),
productType = None
)),
agentType = Agent(),
firmInn = "firmInn",
firmUrl = "firmUrl",
firmReplyEmail = "firmReplyEmail@mail.ru",
clientEmailOrPhone = "test@mail.ru",
taxationType = OSN(),
taxCalcMethod = Some(Total()),
fiscalDocType = Some(Receipt()),
supplierPhone = Some("7999887766"),
serviceId = None
),
paymentMetadata = Some(PaymentMetadata(paymentDatetime = 2023-12-04T17:15:03.961393289Z)),
receiptFooter = None
) was not equal to ReceiptRequest(
receiptContent = ReceiptContent(
compositeEventId = CompositeEventId(
eventId = "domainReceiptType#",
paymentId = "paymentId",
paymentIdType = VerticalsArenda()
),
receiptType = Income(),
payments = List(ReceiptPayment(
amount = 100,
paymentType = Card()
)),
rows = List(ReceiptRow(
agentType = Agent(),
taxType = 0(),
paymentTypeType = Prepayment(),
qty = 1.0,
price = 100,
text = "text",
supplierInfo = Some(SupplierInfo(
inn = "0000000000",
name = Some("name"),
phone = Some("7999887766")
)),
productType = None
)),
agentType = Agent(),
firmInn = "firmInn",
firmUrl = "firmUrl",
firmReplyEmail = "firmReplyEmail@mail.ru",
clientEmailOrPhone = "test@mail.ru",
taxationType = OSN(),
taxCalcMethod = Some(Total()),
fiscalDocType = Some(Receipt()),
supplierPhone = Some("7999887766"),
serviceId = None
),
paymentMetadata = Some(PaymentMetadata(paymentDatetime = 2023-12-04T17:15:03.961393289Z)),
receiptFooter = None
)
defaultFesReceiptRequest == fesReceiptRequest
defaultFesReceiptRequest = ReceiptRequest(
receiptContent = ReceiptContent(
compositeEventId = CompositeEventId(
eventId = "domainReceiptType#",
paymentId = "paymentId",
paymentIdType = VerticalsArenda()
),
receiptType = Income(),
payments = List(ReceiptPayment(
amount = 10,
paymentType = Card()
)),
rows = List(ReceiptRow(
agentType = Agent(),
taxType = 0(),
paymentTypeType = Prepayment(),
qty = 1.0,
price = 10,
text = "text",
supplierInfo = Some(SupplierInfo(
inn = "0000000000",
name = Some("name"),
phone = Some("7999887766")
)),
productType = None
)),
agentType = Agent(),
firmInn = "firmInn",
firmUrl = "firmUrl",
firmReplyEmail = "firmReplyEmail@mail.ru",
clientEmailOrPhone = "test@mail.ru",
taxationType = OSN(),
taxCalcMethod = Some(Total()),
fiscalDocType = Some(Receipt()),
supplierPhone = Some("7999887766"),
serviceId = None
),
paymentMetadata = Some(PaymentMetadata(paymentDatetime = 2023-12-04T17:15:03.961393289Z)),
receiptFooter = None
)
at billing/cashbox/logic/test/conversions/ReceiptConversionsSpec.scala:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment