Skip to content

Commit 86c91b3

Browse files
authored
Merge pull request #177 from Ecwid/ECWID-93812
ECWID-93812 Add 'brandName' and 'supportEmail' fields into FetchedStoreProfile
2 parents 6d56e9b + 69f3307 commit 86c91b3

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ data class FetchedStoreProfile(
5151
val accountNickName: String? = null,
5252
val accountEmail: String? = null,
5353
val availableFeatures: List<String>? = null,
54-
val whiteLabel: Boolean? = null
54+
val whiteLabel: Boolean? = null,
55+
val brandName: String? = null,
56+
val supportEmail: String? = null
5557
)
5658

5759
data class Settings(

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
190190
Ignored(FetchedStoreProfile.InstantSiteInfo::storeLogoUrl),
191191
Ignored(FetchedStoreProfile.Account::availableFeatures),
192192
Ignored(FetchedStoreProfile.Account::whiteLabel),
193+
ReadOnly(FetchedStoreProfile.Account::brandName),
194+
ReadOnly(FetchedStoreProfile.Account::supportEmail),
193195
Ignored(FetchedStoreProfile.Settings::invoiceLogoUrl),
194196
Ignored(FetchedStoreProfile.Settings::emailLogoUrl),
195197
Ignored(FetchedStoreProfile.FormatsAndUnits::currencyPrecision),

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
3131
IgnoreNullable(FetchedStoreProfile.Account::accountNickName),
3232
IgnoreNullable(FetchedStoreProfile.Account::availableFeatures),
3333
IgnoreNullable(FetchedStoreProfile.Account::whiteLabel),
34+
AllowNullable(FetchedStoreProfile.Account::brandName),
35+
AllowNullable(FetchedStoreProfile.Account::supportEmail),
3436
IgnoreNullable(FetchedStoreProfile.ApplePay::gateway),
3537
IgnoreNullable(FetchedStoreProfile.ApplePay::verificationFileUrl),
3638
IgnoreNullable(FetchedStoreProfile.BusinessRegistrationID::name),

0 commit comments

Comments
 (0)