Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ data class OrderForCalculate(
val giftCardRedemption: Double? = null,
val totalBeforeGiftCardRedemption: Double? = null,
val giftCardDoubleSpending: Boolean? = null,
val fromOE: Boolean? = false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а нам точно нужно такое поле? По appId мы не можем определить, что запрос пришел именно от OE?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

и что скрывается под этим полем? это ж публичное апи. вдруг кто-то еще захочет воспользоваться этим полем? как они поймут что им нужно именно оно?
скорее всего название поля должно отражать суть того, как оно повлияет на результаты расчета.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, посмотрела, внутри запроса уже приходит имя app-а. Так что закрою этот ПР.

) : ApiRequestDTO {

data class DiscountInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ val orderForCalculateNullablePropertyRules: List<NullablePropertyRule<*, *>> = l
AllowNullable(OrderForCalculate::taxAlreadyDeductedFromShipping),
AllowNullable(OrderForCalculate::shippingOption),
IgnoreNullable(OrderForCalculate::shippingPerson),
AllowNullable(OrderForCalculate::fromOE),
AllowNullable(OrderForCalculate.CustomSurcharge::description),
AllowNullable(OrderForCalculate.CustomSurcharge::id),
AllowNullable(OrderForCalculate.CustomSurcharge::taxable),
Expand Down