Skip to content

Commit

Permalink
ECWID-152638 OE2: add tax fields to ecwid-java-api-client — added
Browse files Browse the repository at this point in the history
  • Loading branch information
qblake committed Nov 13, 2024
1 parent de4559d commit 565671e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ fun FetchedOrder.toUpdated(): UpdatedOrder {
paymentReference = paymentReference,
loyalty = loyalty?.toUpdated(),
customerFiscalCode = customerFiscalCode,
electronicInvoicePecEmail = electronicInvoicePecEmail,
electronicInvoiceSdiCode = electronicInvoiceSdiCode,
b2b_b2c = b2b_b2c,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ data class UpdatedOrder(
val paymentReference: String? = null,
val loyalty: Loyalty? = null,
val customerFiscalCode: String? = null,
val electronicInvoicePecEmail: String? = null,
val electronicInvoiceSdiCode: String? = null,
val b2b_b2c: String? = null,

Check warning

Code scanning / detekt

Constructor parameter names should follow the naming convention set in the projects configuration. Warning

Constructor parameter names should match the pattern: [a-z][A-Za-z0-9]*

) : ApiUpdatedDTO {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ data class FetchedOrder(
val shippingLabelAvailableForShipment: Boolean = false,
val loyalty: Loyalty? = null,
val customerFiscalCode: String? = null,
val electronicInvoicePecEmail: String? = null,
val electronicInvoiceSdiCode: String? = null,
val b2b_b2c: String? = null,

Check warning

Code scanning / detekt

Constructor parameter names should follow the naming convention set in the projects configuration. Warning

Constructor parameter names should match the pattern: [a-z][A-Za-z0-9]*

) : ApiFetchedDTO, ApiResultDTO {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,4 +321,7 @@ val fetchedOrderNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf
AllowNullable(FetchedOrder.LoyaltyRedemption::amount),
AllowNullable(FetchedOrder.LoyaltyRedemption::cancelled),
AllowNullable(FetchedOrder::customerFiscalCode),
AllowNullable(FetchedOrder::electronicInvoicePecEmail),
AllowNullable(FetchedOrder::electronicInvoiceSdiCode),
AllowNullable(FetchedOrder::b2b_b2c),
)

0 comments on commit 565671e

Please sign in to comment.