Delete an existing shipping address
<p>

@param accountCode recurly account id
@param shippingAddressId the shipping address id to delete
961180
public void deleteShippingAddress(final String accountCode, final long shippingAddressId) {
        doDELETE(Accounts.ACCOUNTS_RESOURCE + "/" + accountCode + ShippingAddresses.SHIPPING_ADDRESSES_RESOURCE + "/" + shippingAddressId);
    }
1355421
@Override
	public void removeByG_S_A(long groupId, boolean shippingAllowed,
		boolean active) {
		for (CommerceCountry commerceCountry : findByG_S_A(groupId,
				shippingAllowed, active, QueryUtil.ALL_POS, QueryUtil.ALL_POS,
				null)) {
			remove(commerceCountry);
		}
	}
1083295
@Override
	public com.liferay.commerce.model.CommerceShippingMethod deleteCommerceShippingMethod(
		com.liferay.commerce.model.CommerceShippingMethod commerceShippingMethod)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _commerceShippingMethodLocalService.deleteCommerceShippingMethod(commerceShippingMethod);
	}
1337133
public static com.liferay.commerce.model.CommerceAddress createCommerceAddress(
		long commerceAddressId) {
		return getService().createCommerceAddress(commerceAddressId);
	}
318664
protected function mapShippingAddressToShippingContainer(ShippingContainer $shippingContainer, SpySalesOrderAddress $shippingAddressEntity)
    {
        $shippingContainer->setShippingFirstName($shippingAddressEntity->getFirstName());
        $shippingContainer->setShippingLastName($shippingAddressEntity->getLastName());
        $shippingContainer->setShippingCompany($shippingAddressEntity->getCompany());
        $shippingContainer->setShippingStreet(
            implode(' ', [$shippingAddressEntity->getAddress1(), $shippingAddressEntity->getAddress2()])
        );
        $shippingContainer->setShippingZip($shippingAddressEntity->getZipCode());
        $shippingContainer->setShippingCity($shippingAddressEntity->getCity());
        $shippingContainer->setShippingCountry($shippingAddressEntity->getCountry()->getIso2Code());
    }
245407
protected function InitShippingAddress()
    {
        $inputFilterUtil = $this->getInputFilterUtil();
        $shippingAddressData = $inputFilterUtil->getFilteredPostInput(TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING);
        if (null !== $shippingAddressData) {
            $this->SetShippingAddressData($shippingAddressData);
            $this->bUserDataSubmission = true;
        } else {
            $billingAddressData = $inputFilterUtil->getFilteredPostInput(TdbDataExtranetUserAddress::FORM_DATA_NAME_BILLING);
            if (null !== $billingAddressData && TdbDataExtranetUserAddress::FORM_DATA_NAME_BILLING == $this->AddressUsedAsPrimaryAddress()) {
                $this->SetShippingAddressData($this->GetBillingAddressData());
            } else {
                $oUser = self::getExtranetUserProvider()->getActiveUser();
                $oShipping = $oUser->GetShippingAddress();
                $aShipping = array();
                if ($oShipping) {
                    $aShipping = $oShipping->sqlData;
                }
                $this->SetShippingAddressData($aShipping);
            }
        }
    }
975780
@Override
	public void removeByCPTaxCategoryId(long CPTaxCategoryId) {
		for (CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel : findByCPTaxCategoryId(
				CPTaxCategoryId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceTaxFixedRateAddressRel);
		}
	}
589227
@Override
	public com.liferay.commerce.model.CommerceOrderNote deleteCommerceOrderNote(
		com.liferay.commerce.model.CommerceOrderNote commerceOrderNote) {
		return _commerceOrderNoteLocalService.deleteCommerceOrderNote(commerceOrderNote);
	}
935849
public void setAddress(final String address) {
		// Do we have a subaddressing account?
		Preconditions.checkArgument(StringUtils.startsWith(this.address, accountId + "+"),
				"Mail address can only be changed when subaddressing is active");
		Preconditions.checkArgument(StringUtils.startsWith(address, accountId), "New mail address %s does not start with accountId=%s", address,
				accountId);
		log.info("Changing mail address from {} to {}", this.address, address);
		this.address = address;
	}
1277882
@Override
	public void removeByCommerceTaxMethodId(long commerceTaxMethodId) {
		for (CommerceTaxFixedRateAddressRel commerceTaxFixedRateAddressRel : findByCommerceTaxMethodId(
				commerceTaxMethodId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceTaxFixedRateAddressRel);
		}
	}
851210
@Override
	public com.liferay.commerce.model.CommerceSubscriptionEntry deleteCommerceSubscriptionEntry(
		com.liferay.commerce.model.CommerceSubscriptionEntry commerceSubscriptionEntry) {
		return _commerceSubscriptionEntryLocalService.deleteCommerceSubscriptionEntry(commerceSubscriptionEntry);
	}
901148
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceAddress deleteCommerceAddress(
		CommerceAddress commerceAddress) throws PortalException {
		return commerceAddressPersistence.remove(commerceAddress);
	}
1284855
@Override
	public com.liferay.commerce.model.CommerceOrderPayment deleteCommerceOrderPayment(
		com.liferay.commerce.model.CommerceOrderPayment commerceOrderPayment) {
		return _commerceOrderPaymentLocalService.deleteCommerceOrderPayment(commerceOrderPayment);
	}
1021804
@Override
	public void removeByC_A(long commerceCountryId, boolean active) {
		for (CommerceRegion commerceRegion : findByC_A(commerceCountryId,
				active, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceRegion);
		}
	}
842875
@Override
	public com.liferay.commerce.model.CommerceOrder deleteCommerceOrder(
		com.liferay.commerce.model.CommerceOrder commerceOrder)
		throws com.liferay.portal.kernel.exception.PortalException {
		return _commerceOrderLocalService.deleteCommerceOrder(commerceOrder);
	}
345394
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceDiscountUsageEntry deleteCommerceDiscountUsageEntry(
		CommerceDiscountUsageEntry commerceDiscountUsageEntry) {
		return commerceDiscountUsageEntryPersistence.remove(commerceDiscountUsageEntry);
	}
1152264
public function setBillingAddress(array $billingAddress)
    {
        $billingAddress = [
          'billingAddressStreet'     => $this->fallbackValue($this->sanitize($billingAddress, 'billingAddressStreet'), $this->shippingAddress, 'shippingAddressStreet'),
          'billingAddressNumber'     => $this->fallbackValue($this->sanitize($billingAddress, 'billingAddressNumber'), $this->shippingAddress, 'shippingAddressNumber'),
          'billingAddressComplement' => $this->fallbackValue($this->sanitize($billingAddress, 'billingAddressComplement'), $this->shippingAddress, 'shippingAddressComplement'),
          'billingAddressDistrict'   => $this->fallbackValue($this->sanitize($billingAddress, 'billingAddressDistrict'), $this->shippingAddress, 'shippingAddressDistrict'),
          'billingAddressPostalCode' => $this->fallbackValue($this->sanitizeNumber($billingAddress, 'billingAddressPostalCode'), $this->shippingAddress, 'shippingAddressPostalCode'),
          'billingAddressCity'       => $this->fallbackValue($this->sanitize($billingAddress, 'billingAddressCity'), $this->shippingAddress, 'shippingAddressCity'),
          'billingAddressState'      => strtoupper($this->fallbackValue($this->checkValue($billingAddress, 'billingAddressState'), $this->shippingAddress, 'shippingAddressState')),
          'billingAddressCountry'    => 'BRA',
        ];

        $this->validateBillingAddress($billingAddress);
        $this->billingAddress = $billingAddress;

        return $this;
    }