modules/acm/src/APIHelper.php
public function cleanCartAddress($address) {
    $address = (array) $address;

    $address = $this->cleanAddress($address);

    if (isset($address['customer_address_id'])) {
      $address['customer_address_id'] = (int) $address['customer_address_id'];
    }

    // Never send address_id in API request, it confuses Magento.
    if (isset($address['address_id'])) {
      unset($address['address_id']);
    }

    return $address;
  }
public function cleanCartAddress($address) {
    $address = (array) $address;

    $address = $this->cleanAddress($address);

    if (isset($address['customer_address_id'])) {
      $address['customer_address_id'] = (int) $address['customer_address_id'];
    }

    // Never send address_id in API request, it confuses Magento.
    if (isset($address['address_id'])) {
      unset($address['address_id']);
    }

    return $address;
  }
public function cleanCartAddress ( $ address ) { $ address = ( array ) $ address ; $ address = $ this -> cleanAddress ( $ address ) ; if ( isset ( $ address [ 'customer_address_id' ] ) ) { $ address [ 'customer_address_id' ] = ( int ) $ address [ 'customer_address_id' ] ; } // Never send address_id in API request, it confuses Magento. if ( isset ( $ address [ 'address_id' ] ) ) { unset ( $ address [ 'address_id' ] ) ; } return $ address ; }
Get cleaned cart address.

@param mixed $address
Cart address object/array.

@return array
Cleaned cart address.
Get cleaned cart address .