/**
  * {@inheritDoc}
  */
 public function getPaymentMethods($cartId, \Magento\Quote\Api\Data\AddressInterface $shippingAddress = null)
 {
     // if shippingAddress is provided use this country
     $country = null;
     if ($shippingAddress) {
         $country = $shippingAddress->getCountryId();
     }
     return $this->_paymentMethodsHelper->getPaymentMethods($cartId, $country);
 }
 /**
  * {@inheritDoc}
  */
 public function getPaymentMethods($cartId, \Magento\Quote\Api\Data\AddressInterface $shippingAddress = null)
 {
     $quoteIdMask = $this->_quoteIdMaskFactory->create()->load($cartId, 'masked_id');
     $quoteId = $quoteIdMask->getQuoteId();
     // if shippingAddress is provided use this country
     $country = null;
     if ($shippingAddress) {
         $country = $shippingAddress->getCountryId();
     }
     return $this->_paymentMethodsHelper->getPaymentMethods($quoteId, $country);
 }