Skip to content

Commit 796d9a1

Browse files
authored
Merge pull request #201 from Ecwid/ECWID-103804
2 parents bd5e8ba + 53eced0 commit 796d9a1

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ data class FetchedStoreProfile(
2525
val productFiltersSettings: ProductFiltersSettings? = null,
2626
val fbMessengerSettings: FBMessengerSettings? = null,
2727
val orderInvoiceSettings: OrderInvoiceSettings? = null,
28-
val giftCardSettings: GiftCardSettings? = null
28+
val giftCardSettings: GiftCardSettings? = null,
29+
val registrationAnswers: RegistrationAnswers? = null,
2930
) : ApiFetchedDTO {
3031

3132
data class GeneralInfo(
@@ -56,6 +57,16 @@ data class FetchedStoreProfile(
5657
val supportEmail: String? = null
5758
)
5859

60+
data class RegistrationAnswers(
61+
val goods: String? = null,
62+
val alreadySelling: String? = null,
63+
val forSomeone: String? = null,
64+
val website: String? = null,
65+
val platform: String? = null,
66+
val facebook: String? = null,
67+
val otherGoods: String? = null
68+
)
69+
5970
data class Settings(
6071
val closed: Boolean? = null,
6172
val storeName: String? = null,

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,13 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
192192
Ignored(FetchedStoreProfile.Account::whiteLabel),
193193
ReadOnly(FetchedStoreProfile.Account::brandName),
194194
ReadOnly(FetchedStoreProfile.Account::supportEmail),
195+
ReadOnly(FetchedStoreProfile.RegistrationAnswers::facebook),
196+
ReadOnly(FetchedStoreProfile.RegistrationAnswers::alreadySelling),
197+
ReadOnly(FetchedStoreProfile.RegistrationAnswers::forSomeone),
198+
ReadOnly(FetchedStoreProfile.RegistrationAnswers::goods),
199+
ReadOnly(FetchedStoreProfile.RegistrationAnswers::otherGoods),
200+
ReadOnly(FetchedStoreProfile.RegistrationAnswers::platform),
201+
ReadOnly(FetchedStoreProfile::registrationAnswers),
195202
Ignored(FetchedStoreProfile.Settings::invoiceLogoUrl),
196203
Ignored(FetchedStoreProfile.Settings::emailLogoUrl),
197204
Ignored(FetchedStoreProfile.FormatsAndUnits::currencyPrecision),

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,14 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
233233
IgnoreNullable(FetchedStoreProfile.PaymentOptionInfo::paymentProcessorTitle),
234234
AllowNullable(FetchedStoreProfile.PaymentOptionInfo::shippingSettings),
235235
IgnoreNullable(FetchedStoreProfile.ProductFiltersSettings::enabledInStorefront),
236+
IgnoreNullable(FetchedStoreProfile::registrationAnswers),
237+
IgnoreNullable(FetchedStoreProfile.RegistrationAnswers::alreadySelling),
238+
IgnoreNullable(FetchedStoreProfile.RegistrationAnswers::facebook),
239+
IgnoreNullable(FetchedStoreProfile.RegistrationAnswers::forSomeone),
240+
IgnoreNullable(FetchedStoreProfile.RegistrationAnswers::goods),
241+
IgnoreNullable(FetchedStoreProfile.RegistrationAnswers::otherGoods),
242+
IgnoreNullable(FetchedStoreProfile.RegistrationAnswers::platform),
243+
IgnoreNullable(FetchedStoreProfile.RegistrationAnswers::website),
236244
IgnoreNullable(FetchedStoreProfile.SalePriceSettings::displayDiscount),
237245
IgnoreNullable(FetchedStoreProfile.SalePriceSettings::displayOnProductList),
238246
IgnoreNullable(FetchedStoreProfile.SalePriceSettings::oldPriceLabel),

0 commit comments

Comments
 (0)