Skip to content

Commit c3a989a

Browse files
committed
ECWID-110192 - remove unused subtype and subtypeMethodName from payment options endpoint
1 parent d41e80e commit c3a989a

4 files changed

Lines changed: 0 additions & 8 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,6 @@ fun FetchedStoreProfile.PaymentOptionInfo.toUpdated(): UpdatedPaymentOption {
360360
enabledShippingMethods = it.enabledShippingMethods,
361361
)
362362
},
363-
subtype = subtype,
364-
subtypeMethodName = subtypeMethodName,
365363
methods = methods?.map {
366364
UpdatedPaymentOption.PaymentMethod(
367365
cards = it.cards,

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedPaymentOption.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ data class UpdatedPaymentOption(
1313
val appClientId: String? = null,
1414
val instructionsForCustomer: InstructionsForCustomerInfo? = null,
1515
val shippingSettings: ShippingSettings? = null,
16-
val subtype: String? = null,
17-
val subtypeMethodName: String? = null,
1816
val methods: List<PaymentMethod>? = null,
1917
val supportsSubtypes: Boolean? = null,
2018
) : ApiUpdatedDTO {

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,6 @@ data class FetchedStoreProfile(
407407
val appClientId: String? = null,
408408
val instructionsForCustomer: InstructionsForCustomerInfo? = null,
409409
val shippingSettings: ShippingSettings? = null,
410-
val subtype: String? = null,
411-
val subtypeMethodName: String? = null,
412410
val methods: List<PaymentMethod>? = null,
413411
val supportsSubtypes: Boolean? = null,
414412
) : ApiFetchedDTO {

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,6 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
242242
IgnoreNullable(FetchedStoreProfile.PaymentOptionInfo::paymentProcessorId),
243243
IgnoreNullable(FetchedStoreProfile.PaymentOptionInfo::paymentProcessorTitle),
244244
AllowNullable(FetchedStoreProfile.PaymentOptionInfo::shippingSettings),
245-
AllowNullable(FetchedStoreProfile.PaymentOptionInfo::subtype),
246-
AllowNullable(FetchedStoreProfile.PaymentOptionInfo::subtypeMethodName),
247245
AllowNullable(FetchedStoreProfile.PaymentOptionInfo::methods),
248246
AllowNullable(FetchedStoreProfile.PaymentOptionInfo::supportsSubtypes),
249247
AllowNullable(FetchedStoreProfile.PaymentMethod::cards),

0 commit comments

Comments
 (0)