Set if payment slip has a bank specified

Resets the bank data when disabling.

@param bool $withBank True for yes, false for no
@return $this The current instance for a fluent interface.
776828
public function setWithBank($withBank = true)
    {
        $this->isBool($withBank, 'withBank');
        $this->withBank = $withBank;

        if ($withBank === false) {
            $this->bankName = '';
            $this->bankCity = '';
        }

        return $this;
    }
258133
public function setPaymentMethod($value)
    {
        if (!$this->_isNumericArray($value)) {
            $value = array ($value);
        }
        $this->_fields['PaymentMethod']['FieldValue'] = $value;
        return $this;
    }
503464
public function disableCreatingCheck(bool $disable = true)
    {
        $this->builder()->getFooter()->disableCreatingCheck($disable);

        return $this;
    }
1280423
public function setAmount($amount)
    {
        if ($amount instanceof DBMoney) {
            $this->setField('Money', $amount);
        } elseif ($this->Status == 'Created' && is_numeric($amount)) {
            $this->MoneyAmount = $amount;
        }
        return $this;
    }
89898
public function transaction($callback)
    {
        $connection = $this->getConnection();
        $connection->beginTransaction();

        if ($callback instanceof Closure) {
            $callback = $callback->bindTo($this, get_class($this));
        }

        if (call_user_func($callback, $this) === false) {
            $connection->rollBack();
        } else {
            $connection->commit();
        }

        return $this;
    }
74876
public function setResult($result): self
    {
        $this->_result = $result;
        $this->_hasResult = true;

        return $this;
    }
1351669
public function setCreditCard(CreditCard $creditCard)
    {
        $creditCard->setContext(Moip::PAYMENT);
        $this->data->fundingInstrument->method = self::METHOD_CREDIT_CARD;
        $this->data->fundingInstrument->creditCard = $creditCard->getData();
        //$this->setCreditCardHolder($holder);

        return $this;
    }
586287
public function setStep(float $step) : self
    {
        if ($step >= 1) {
            $this->setValidation('int');
        } else {
            $this->setValidation('float');
        }

        $this->getField()->addAttribute('step', (string) $step);

        return $this;
    }
193982
protected function addWithPending(Builder $builder)
    {
        $builder->macro('withPending', function (Builder $builder) {
            $this->remove($builder, $builder->getModel());

            return $builder->whereIN($this->getStatusColumn($builder), [Status::APPROVED, Status::PENDING]);
        });
    }
1247928
public function addOnlineBankTransferType(FormBuilderInterface $builder, array $options): self
    {
        $builder->add(
            static::FIELD_ONLINE_BANK_TRANSFER_TYPE,
            HiddenType::class,
            [
                'label' => false,
                'data' => PayoneApiConstants::ONLINE_BANK_TRANSFER_TYPE_BANCONTACT,
            ]
        );

        return $this;
    }
1135511
public function setDatabase($database)
    {
        if (!$this->_connection->select_db($database)) {
            throw new AnDatabaseException('Could not connect with database : '.$database);
        }

        $this->_database = $database;
        return $this;
    }
606498
public function setDefer($defer = false)
    {
        $this->defer = is_bool($defer) ? $defer : false;

        return $this;
    }
29116
public function setStep(string $step)
    {
        $this->doSetStep($step);
        $this->getTag()->setAttribute('step', $step);

        return $this;
    }
1289285
public function with(...$with): self
    {
        $this->hasWith = true;
        $this->with = $with;

        return $this;
    }
330112
public function setPayMethod($payMethod)
    {
        $payMethod = strtoupper($payMethod);
        switch ($payMethod) {
            case 'CCVISAMC':
                $this->payMethod = 'CCVISAMC';
                $retval = true;
                break;

            case 'CCAMEX':
                $this->payMethod = 'CCAMEX';
                $retval = true;
                break;

            case 'CCDINERS':
                $this->payMethod = 'CCDINERS';
                $retval = true;
                break;

            case 'CCJCB':
                $this->payMethod = 'CCJCB';
                $retval = true;
                break;

            case 'WIRE':
                $this->payMethod = 'WIRE';
                $retval = true;
                break;

            case 'CASH':
                $this->payMethod = 'CASH';
                $retval = true;
                break;

            default:
                $this->payMethod = null;
                $retval = false;
        }

        return $retval;
    }
80
public function setDisplayBank($displayBank = true)
    {
        $this->isBool($displayBank, 'displayBank');
        $this->displayBank = $displayBank;

        return $this;
    }
893282
public function setAmount($value)
    {
        if (empty($value)) {
            $this->currentObject->setAmount(null);
        } elseif ($value instanceof AmountInterface) {
            if ($value->getValue() > 0.0) {
                $this->currentObject->setAmount($value->getValue());
            }
            $this->currentObject->setCurrency($value->getCurrency());
        } else {
            $this->currentObject->setAmount($value);
        }
        return $this;
    }