gel al indirim paratmetresi

This commit is contained in:
cimenmus
2018-07-07 00:54:30 +03:00
parent eb49e82689
commit 9cd1bf9c71
2 changed files with 4 additions and 2 deletions

View File

@@ -69,7 +69,8 @@ public interface ApiInterface {
@FormUrlEncoded
@POST
Call<ResponseObject<CartInfoModel>> getCartProductsForCommission(@Url String url,
@Field("payment_method") String paymentMethodCode);
@Field("payment_method") String paymentMethodCode,
@Field("shipping_method") String shippingMethodCode);
@GET(ApiEndPoints.API_GET_CLEAR_CART)
Call<ResponseObject> clearCart(@Query("token") String token);

View File

@@ -723,7 +723,8 @@ public class CreateOrderSummaryFragment extends CreateOrderBaseFragment {
DialogHelper.showLoadingDialog();
Call<ResponseObject<CartInfoModel>> call = ApiService.apiInterface.getCartProductsForCommission(
ApiEndPoints.API_GET_CART_PRODUCTS + SessionHelper.getCustomerToken().getToken(),
createOrderActivity.getSelectedPaymentMethod().getCode());
createOrderActivity.getSelectedPaymentMethod().getCode(),
createOrderActivity.getSelectedShippingMethod().getCode());
call.enqueue(new Callback<ResponseObject<CartInfoModel>>() {
@Override
public void onResponse(Call<ResponseObject<CartInfoModel>> call, Response<ResponseObject<CartInfoModel>> response) {