Skip to content

Commit

Permalink
ECWID-126236. Added totalBeforeGiftCardRedemption field to order calc…
Browse files Browse the repository at this point in the history
…ulation and update methods
  • Loading branch information
kitty-ecwid committed Sep 13, 2023
1 parent 50610c8 commit 39d3fb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ data class CalculateOrderDetailsResult(
val subtotalWithoutTax: Double? = null,
val usdTotal: Double? = null,

val totalBeforeGiftCardRedemption: Double? = null,

val tax: Double? = null,
val taxesOnShipping: List<TaxOnShipping>? = null,
val availableTaxes: List<TaxInfo> = emptyList(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ data class UpdatedOrder(
val total: Double? = null,
val subtotal: Double? = null,

val totalBeforeGiftCardRedemption: Double? = null,

val tax: Double? = null,
val customerTaxExempt: Boolean? = null,
val customerTaxId: String? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ val calculateOrderDetailsResultNullablePropertyRules: List<NullablePropertyRule<
IgnoreNullable(CalculateOrderDetailsResult::tax),
IgnoreNullable(CalculateOrderDetailsResult::taxesOnShipping),
IgnoreNullable(CalculateOrderDetailsResult::total),
AllowNullable(CalculateOrderDetailsResult::totalWithoutTax),
IgnoreNullable(CalculateOrderDetailsResult::totalAndMembershipBasedDiscount),
AllowNullable(CalculateOrderDetailsResult::totalBeforeGiftCardRedemption),
AllowNullable(CalculateOrderDetailsResult::totalWithoutTax),
IgnoreNullable(CalculateOrderDetailsResult::usdTotal),
IgnoreNullable(CalculateOrderDetailsResult::volumeDiscount)
)

0 comments on commit 39d3fb1

Please sign in to comment.