Skip to content

Commit 565671e

Browse files
committed
ECWID-152638 OE2: add tax fields to ecwid-java-api-client — added
1 parent de4559d commit 565671e

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedOrder.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ fun FetchedOrder.toUpdated(): UpdatedOrder {
9393
paymentReference = paymentReference,
9494
loyalty = loyalty?.toUpdated(),
9595
customerFiscalCode = customerFiscalCode,
96+
electronicInvoicePecEmail = electronicInvoicePecEmail,
97+
electronicInvoiceSdiCode = electronicInvoiceSdiCode,
98+
b2b_b2c = b2b_b2c,
9699
)
97100
}
98101

src/main/kotlin/com/ecwid/apiclient/v3/dto/order/request/UpdatedOrder.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ data class UpdatedOrder(
9797
val paymentReference: String? = null,
9898
val loyalty: Loyalty? = null,
9999
val customerFiscalCode: String? = null,
100+
val electronicInvoicePecEmail: String? = null,
101+
val electronicInvoiceSdiCode: String? = null,
102+
val b2b_b2c: String? = null,
100103

101104
) : ApiUpdatedDTO {
102105

src/main/kotlin/com/ecwid/apiclient/v3/dto/order/result/FetchedOrder.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ data class FetchedOrder(
119119
val shippingLabelAvailableForShipment: Boolean = false,
120120
val loyalty: Loyalty? = null,
121121
val customerFiscalCode: String? = null,
122+
val electronicInvoicePecEmail: String? = null,
123+
val electronicInvoiceSdiCode: String? = null,
124+
val b2b_b2c: String? = null,
122125

123126
) : ApiFetchedDTO, ApiResultDTO {
124127

src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedOrderRules.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,7 @@ val fetchedOrderNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf
321321
AllowNullable(FetchedOrder.LoyaltyRedemption::amount),
322322
AllowNullable(FetchedOrder.LoyaltyRedemption::cancelled),
323323
AllowNullable(FetchedOrder::customerFiscalCode),
324+
AllowNullable(FetchedOrder::electronicInvoicePecEmail),
325+
AllowNullable(FetchedOrder::electronicInvoiceSdiCode),
326+
AllowNullable(FetchedOrder::b2b_b2c),
324327
)

0 commit comments

Comments
 (0)