Skip to content

Commit adcece3

Browse files
committed
Allow nullable fields
1 parent a6890e7 commit adcece3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/test/kotlin/com/ecwid/apiclient/v3/rule/NullablePropertyRules.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import com.ecwid.apiclient.v3.dto.product.result.ProductInventoryUpdateResult
1818
import com.ecwid.apiclient.v3.dto.productreview.request.UpdatedProductReviewStatus
1919
import com.ecwid.apiclient.v3.dto.profile.request.StoreProfileRequest
2020
import com.ecwid.apiclient.v3.dto.profile.result.FetchedLatestStats
21+
import com.ecwid.apiclient.v3.dto.report.request.ReportAdviceRequest
2122
import com.ecwid.apiclient.v3.dto.report.request.ReportRequest
2223
import com.ecwid.apiclient.v3.dto.report.result.FetchedReportAdviceResponse
2324
import com.ecwid.apiclient.v3.dto.report.result.FetchedReportResponse
@@ -84,6 +85,17 @@ val otherNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf(
8485
AllowNullable(ReportRequest::offset),
8586
AllowNullable(ReportRequest::storefrontPlatform),
8687

88+
AllowNullable(ReportAdviceRequest::startedFrom),
89+
AllowNullable(ReportAdviceRequest::endedAt),
90+
AllowNullable(ReportAdviceRequest::timeScaleValue),
91+
AllowNullable(ReportAdviceRequest::comparePeriod),
92+
AllowNullable(ReportAdviceRequest::firstDayOfWeek),
93+
AllowNullable(ReportAdviceRequest::orderByMetric),
94+
AllowNullable(ReportAdviceRequest::orderDirection),
95+
AllowNullable(ReportAdviceRequest::limit),
96+
AllowNullable(ReportAdviceRequest::offset),
97+
AllowNullable(ReportAdviceRequest::storefrontPlatform),
98+
8799
AllowNullable(FetchedReportResponse::timeScaleValue),
88100
AllowNullable(FetchedReportResponse::comparePeriod),
89101
AllowNullable(FetchedReportResponse::firstDayOfWeek),

0 commit comments

Comments
 (0)