Delete ACH bank account

@param CustomerVault\Profile $profile
@param CustomerVault\ACHBankaccounts $bankDetails
@return \Paysafe\CustomerVault\Profile
@throws PaysafeException
188109
public function deleteACHBankAccount( CustomerVault\Profile $profile, CustomerVault\ACHBankaccounts $bankDetails )
    {
        $bankDetails->setRequiredFields(array('id'));
        $bankDetails->checkRequiredFields();
        $profile->setRequiredFields(array('id'));
        $profile->checkRequiredFields();
        $request = new Request(array(
            'method' => Request::DELETE,
            'uri' => $this->prepareURI("/profiles/" . $profile->id . "/achbankaccounts/" . $bankDetails->id)
        ));
        $response = $this->client->processRequest($request);
        return $response;
    }
413837
def delete_profile(id, factory_id, opts = {})
      data, _status_code, _headers = delete_profile_with_http_info(id, factory_id, opts)
      return data
    end
490959
public function deleteProfile($customerId, $profileId = null)
    {
        $request = new DeleteProfile($this->config->getMerchantId());
        $request->setCustomerId($customerId);
        $request->setProfileId($profileId);

        $this->request = $request->getXml();
        $this->send();

        $result = new DeleteProfileResponse($this->response);
        return $result;
    }
570235
public function setProfile(AccountProfile $profile)
    {
        $request = new SetAccountProfileRequest($this->identifier);
        $request->setProfileItem($profile);
        $response = new SetAccountProfileResponse();
        return $this->client->sendRequest($request, $response);
    }
991043
public function createBankAccount($accountID, BankAccount $bankAccount, $auto = true)
    {
        return $this->httpHelper->post("/accounts/" . intval($accountID) . "/payment_methods", [
            'type' => 'bank account',
            'account_number' => $bankAccount->getAccountNumber(),
            'routing_number' => $bankAccount->getRoutingNumber(),
            'name_on_account' => $bankAccount->getName(),
            'account_type' => $bankAccount->getType(),
            'auto' => (bool)$auto,
        ]);
    }
1187833
public function createProfile( CustomerVault\Profile $profile )
    {
        $profile->setRequiredFields(array(
            'merchantCustomerId',
            'locale'
        ));
        $profile->setOptionalFields(array(
            'firstName',
            'middleName',
            'lastName',
            'dateOfBirth',
            'ip',
            'gender',
            'nationality',
            'email',
            'phone',
            'cellPhone',
			'card',
            'cards'
        ));

        $request = new Request(array(
            'method' => Request::POST,
            'uri' => $this->prepareURI("/profiles"),
            'body' => $profile
        ));
        $response = $this->client->processRequest($request);

        return new CustomerVault\Profile($response);
    }
1004678
protected function doExecute(ProfileContext $context)
    {
        $authnRequest = MessageContextHelper::asAuthnRequest($context->getInboundContext());

        if (false == $authnRequest->getAssertionConsumerServiceURL()) {
            return;
        }

        $spEntityDescriptor = $context->getPartyEntityDescriptor();

        foreach ($spEntityDescriptor->getAllSpSsoDescriptors() as $sp) {
            if ($sp->getAllAssertionConsumerServicesByUrl($authnRequest->getAssertionConsumerServiceURL())) {
                $this->logger->debug(
                    sprintf(
                        'AuthnRequest has assertion consumer url "%s" that belongs to entity "%s"',
                        $authnRequest->getAssertionConsumerServiceURL(),
                        $spEntityDescriptor->getEntityID()
                    ),
                    LogHelper::getActionContext($context, $this)
                );

                return;
            }
        }

        $message = sprintf(
            "Invalid ACS Url '%s' for '%s' entity",
            $authnRequest->getAssertionConsumerServiceURL(),
            $spEntityDescriptor->getEntityID()
        );
        $this->logger->emergency($message, LogHelper::getActionErrorContext($context, $this));
        throw new LightSamlValidationException($message);
    }
895283
public function set(string $profile, $inheritContext = false)
    {
        return $this->has($profile) ? $this->get($profile) : $this->add($profile, $inheritContext);
    }
189397
public function deleteAddress( CustomerVault\Address $address )
    {
        $address->setRequiredFields(array(
            'profileID',
            'id'
        ));
        $address->checkRequiredFields();

        $request = new Request(array(
            'method' => Request::DELETE,
            'uri' => $this->prepareURI("/profiles/" . $address->profileID . "/addresses/" . $address->id),
        ));
        $this->client->processRequest($request);

        return true;
    }
896680
def delete(instance_id, profile=None, **kwargs):
    '''
    

    '''
    conn = _auth(profile, **kwargs)
    return conn.delete(instance_id)
981115
public function add(string $profile, $inheritContext = false)
    {
        if ($this->has($profile)) {
            throw new Exception("Profile {$profile} already exist.");
        }

        if (!strlen($profile)) {
            throw new Exception("Profile must be set.");
        }

        $child = clone $this;
        $child->clear(!$inheritContext);
        $child->name     = ($this->name ? $this->name . ' > ' : '') . $profile;
        $child->children = [];

        $this->children[$profile] = $child;

        return $child;
    }
1210767
public static MozuUrl deleteB2BAccountAttributeUrl(Integer accountId, String attributeFQN)
	{
		UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/b2baccounts/{accountId}/attributes/{attributeFQN}");
		formatter.formatUrl("accountId", accountId);
		formatter.formatUrl("attributeFQN", attributeFQN);
		return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
	}
206889
public function deleteFor($profile, $methodId, array $data = [])
    {
        return $this->deleteForId($profile->id, $methodId, $data);
    }
1260103
public function createSetOfAccounts()
    {
        if ($this->getRootAccount())
        {
            throw new \Exception('Profile already has a set of accounts');
        }

        $account = new \HarvestCloud\CoreBundle\Entity\RootAccount('Root Account for '.$this->getName());
        $account->setProfile($this);

        $this->setRootAccount($account);

        // Assets
        $asset    = new \HarvestCloud\CoreBundle\Entity\AssetAccount('Assets');
        $ar       = new \HarvestCloud\CoreBundle\Entity\AssetAccount('Accounts Receivable');
        $current  = new \HarvestCloud\CoreBundle\Entity\AssetAccount('Current Assets');
        $arPrePay = new \HarvestCloud\CoreBundle\Entity\AssetAccount('AR Pre-Payments');
        $cash     = new \HarvestCloud\CoreBundle\Entity\AssetAccount('Cash');
        $bank     = new \HarvestCloud\CoreBundle\Entity\AssetAccount('Bank');
        $payPal   = new \HarvestCloud\CoreBundle\Entity\AssetAccount('PayPal');

        $this->setAccountsReceivableAccount($ar);
        $this->setPayPalAccount($payPal);
        $this->setArPrePaymentAccount($arPrePay);

        $account->addAccount($asset);
        $asset->addAccount($ar);
        $ar->addAccount($arPrePay);
        $asset->addAccount($current);
        $current->addAccount($bank);
        $current->addAccount($cash);
        $current->addAccount($payPal);

        // Liability
        $liability = new \HarvestCloud\CoreBundle\Entity\LiabilityAccount('Liabilities');
        $ap        = new \HarvestCloud\CoreBundle\Entity\LiabilityAccount('Accounts Payable');
        $apPrePay  = new \HarvestCloud\CoreBundle\Entity\LiabilityAccount('AP Pre-Payment');

        $this->setAccountsPayableAccount($ap);
        $this->setApPrePaymentAccount($apPrePay);

        $account->addAccount($liability);
        $liability->addAccount($ap);
        $ap->addAccount($apPrePay);

        // Income
        $income = new \HarvestCloud\CoreBundle\Entity\IncomeAccount('Income');
        $sales  = new \HarvestCloud\CoreBundle\Entity\IncomeAccount('Sales');

        $this->setSalesAccount($sales);

        $account->addAccount($income);
        $income->addAccount($sales);

        // Expenses
        $expenses        = new \HarvestCloud\CoreBundle\Entity\ExpenseAccount('Expenses');
        $purchases       = new \HarvestCloud\CoreBundle\Entity\ExpenseAccount('Purchases');
        $costOfGoodsSold = new \HarvestCloud\CoreBundle\Entity\ExpenseAccount('Cost of Goods Sold');

        $this->setExpenseAccount($expenses);
        $this->setPurchasesAccount($purchases);
        $this->setCostOfGoodsSoldAccount($costOfGoodsSold);

        $account->addAccount($expenses);
        $expenses->addAccount($purchases);
        $expenses->addAccount($costOfGoodsSold);

        return $account;
    }
90541
public static function deleteExternalAccount($id, $externalAccountId, $params = null, $opts = null)
    {
        return self::_deleteNestedResource($id, static::PATH_EXTERNAL_ACCOUNTS, $externalAccountId, $params, $opts);
    }
95401
@RequestMapping(value = "/api/profile/{profileIdentifier}/clients/{clientUUID}", method = RequestMethod.DELETE)
    public
    @ResponseBody
    HashMap<String, Object> deleteClient(Model model,
                                         @PathVariable("profileIdentifier") String profileIdentifier,
                                         @PathVariable("clientUUID") String clientUUID) throws Exception {
        logger.info("Attempting to remove the following client: {}", clientUUID);
        if (clientUUID.compareTo(Constants.PROFILE_CLIENT_DEFAULT_ID) == 0)
            throw new Exception("Default client cannot be deleted");

        Integer profileId = ControllerUtils.convertProfileIdentifier(profileIdentifier);
        clientService.remove(profileId, clientUUID);

        HashMap<String, Object> valueHash = new HashMap<String, Object>();
        valueHash.put("clients", clientService.findAllClients(profileId));
        return valueHash;
    }
642160
public function deleteSEPABankAccount( CustomerVault\Profile $profile, CustomerVault\SEPABankaccounts $bankDetails )
    {
        $profile->setRequiredFields(array('id'));
        $profile->checkRequiredFields();
        $bankDetails->setRequiredFields(array('id'));
        $bankDetails->checkRequiredFields();
        $request = new Request(array(
            'method' => Request::DELETE,
            'uri' => $this->prepareURI("/profiles/" . $profile->id . "/sepabankaccounts/" . $bankDetails->id)
        ));
        $response = $this->client->processRequest($request);
        return $response;
    }