File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
commercetools/commercetools-sdk-java-api/src/main
java-generated/com/commercetools/api/models/me
java/com/commercetools/api/models/payment Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -1347,7 +1347,7 @@ types:
13471347 MyPayment :
13481348 (java-extends) : ' com.commercetools.api.models.DomainResource<MyPayment>, com.commercetools.api.models.Customizable<MyPayment>'
13491349 MyPaymentDraft :
1350- (java-extends) : ' com.commercetools.api.models.CustomizableDraft<MyPaymentDraft>'
1350+ (java-extends) : ' MyPaymenDraftMixin, com.commercetools.api.models.CustomizableDraft<MyPaymentDraft>'
13511351 MyPaymentUpdate :
13521352 (java-extends) : ' com.commercetools.api.models.ResourceUpdate<MyPaymentUpdate,
13531353 MyPaymentUpdateAction, MyPaymentUpdateBuilder>'
Original file line number Diff line number Diff line change 88import javax .annotation .Nullable ;
99
1010import com .commercetools .api .models .common .Money ;
11+ import com .commercetools .api .models .payment .MyPaymentDraftMixin ;
1112import com .commercetools .api .models .payment .PaymentMethodInfoDraft ;
1213import com .commercetools .api .models .type .CustomFieldsDraft ;
1314import com .fasterxml .jackson .annotation .*;
3334 */
3435@ Generated (value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator" , comments = "https://github.com/commercetools/rmf-codegen" )
3536@ JsonDeserialize (as = MyPaymentDraftImpl .class )
36- public interface MyPaymentDraft extends com . commercetools . api . models . CustomizableDraft < MyPaymentDraft > ,
37- io .vrap .rmf .base .client .Draft <MyPaymentDraft > {
37+ public interface MyPaymentDraft extends MyPaymentDraftMixin ,
38+ com . commercetools . api . models . CustomizableDraft < MyPaymentDraft >, io .vrap .rmf .base .client .Draft <MyPaymentDraft > {
3839
3940 /**
4041 * <p>Money value the Payment intends to receive from the customer. The value usually matches the Cart or Order gross total.</p>
Original file line number Diff line number Diff line change 1+
2+ package com .commercetools .api .models .payment ;
3+
4+ public interface MyPaymentDraftMixin {
5+
6+ public void setPaymentMethodInfo (final PaymentMethodInfoDraft paymentMethodInfo );
7+
8+ public default void setPaymentMethodInfo (final PaymentMethodInfo paymentMethodInfo ) {
9+ this .setPaymentMethodInfo (paymentMethodInfo .toDraft ());
10+ }
11+ }
You can’t perform that action at this time.
0 commit comments