io.sphere.sdk.payments.expansion.PaymentExpansionModelImpl Maven / Gradle / Ivy
The newest version!
package io.sphere.sdk.payments.expansion;
import io.sphere.sdk.customers.expansion.CustomerExpansionModel;
import io.sphere.sdk.expansion.ExpansionModelImpl;
import java.util.List;
final class PaymentExpansionModelImpl extends ExpansionModelImpl implements PaymentExpansionModel {
PaymentExpansionModelImpl() {
super();
}
public PaymentExpansionModelImpl(final List parentPath, final String path) {
super(parentPath, path);
}
@Override
public CustomerExpansionModel customer() {
return CustomerExpansionModel.of(buildPathExpression(), "customer");
}
@Override
public PaymentStatusExpansionModel paymentStatus() {
return new PaymentStatusExpansionModelImpl<>(buildPathExpression(), "paymentStatus");
}
}