Adds invoice info if exists.

@param array $options
172725
private function addInvoice($money, $options, $action)
    {
        $this->xml->OrderInfo(null, $action)
            ->OrderId($options['order_id'], 'OrderInfo')
            ->OrderDesc($options['order_id'], 'OrderInfo')
            ->OrderAmount($this->amount($money), 'OrderInfo')
            ->Currency(static::$default_currency, 'OrderInfo')
            ->PayerEmail("", 'OrderInfo');
        if (true == $options['moto']) {
            $this->xml->MOTO(1, 'OrderInfo');
        }
    }
1048082
public static function add(array $options = array())
    {
        $api = new Api\Add();

        if (isset($options['amount'])) {
            $api->setAmount(round($options['amount'] * 100));
        }
        if (isset($options['bankAccountHolder']) && !empty($options['bankAccountHolder'])) {
            $api->setBankAccountHolder($options['bankAccountHolder']);
        }
        if (isset($options['bankAccountNumber']) && !empty($options['bankAccountNumber'])) {
            $api->setBankAccountNumber($options['bankAccountNumber']);
        }
        if (isset($options['bankAccountBic']) && !empty($options['bankAccountBic'])) {
            $api->setBankAccountBic($options['bankAccountBic']);
        }
        if (isset($options['description']) && !empty($options['description'])) {
            $api->setDescription($options['description']);
        }
        if (isset($options['promotorId'])) {
            $api->setPromotorId($options['promotorId']);
        }
        if (isset($options['tool'])) {
            $api->setTool($options['tool']);
        }
        if (isset($options['info'])) {
            $api->setInfo($options['info']);
        }
        if (isset($options['object'])) {
            $api->setObject($options['object']);
        }
        if (isset($options['extra1'])) {
            $api->setExtra1($options['extra1']);
        }
        if (isset($options['extra2'])) {
            $api->setExtra2($options['extra2']);
        }
        if (isset($options['extra3'])) {
            $api->setExtra3($options['extra3']);
        }
        if (isset($options['orderId'])) {
            $api->setOrderId($options['orderId']);
        }
        if (isset($options['currency'])) {
            $api->setCurrency($options['currency']);
        }
        if (isset($options['processDate'])) {
            if (is_string($options['processDate'])) {
                $options['processDate'] = new \DateTime($options['processDate']);
            }
            $api->setProcessDate($options['processDate']);
        }

        $result = $api->doRequest();

        return new Result\Add($result);
    }
1097717
public function _init($options)
    {
		if(is_array($options)) {
			foreach($options as $opt_name => $opt_val) {
				if(property_exists($this, $opt_name)) {
					$this->$opt_name = $opt_val;
				}
			}
		}
    }
710716
public function setOptions(array $options)
    {
        foreach ($options as $name => $value) {
            $this->setOption($name, $value);
        }
    }
1264188
protected function handleOptions(array &$options = [])
    {
        parent::handleOptions($options);
        if (isset($options['reason_phrase'])) {
            $this->reasonPhrase = $options['reason_phrase'];
        }
    }
635643
public function invoiceFor($description, $amount, array $options = [])
    {
        if (!$this->stripe_id) {
            throw new InvalidArgumentException('User is not a customer. See the createAsStripeCustomer method.');
        }

        $options = array_merge([
            'customer' => $this->stripe_id,
            'amount' => $amount,
            'currency' => $this->preferredCurrency(),
            'description' => $description,
        ], $options);

        StripeInvoiceItem::create(
            $options, ['api_key' => $this->getStripeKey()]
        );

        return $this->invoice();
    }
197789
protected function register(array $options)
    {
        foreach ($options as $option => $argument) {
            if (is_bool($argument)) {
                add_theme_support($option);

                continue;
            }

            add_theme_support($option, $argument);
        }
    }
1085893
protected function addOrderDetails(array $params, array $options)
    {
        if (isset($options['name'])) {
            $params['customer_info']['name'] = Arr::get($options, 'name', '');
        }

        if (isset($options['email'])) {
            $params['customer_info']['email'] = Arr::get($options, 'email', '');
        }

        if (isset($options['phone'])) {
            $params['customer_info']['phone'] = Arr::get($options, 'phone', '');
        }

        $params = $this->addLineItems($params, $options);
        $params = $this->addDiscountLines($params, $options);
        $params = $this->addBillingAddress($params, $options);
        $params = $this->addShippingAddress($params, $options);

        return $params;
    }
544508
public function add(array $options)
        {
            if (false == empty($options)) {
                $this->options = $this->options + $options;
            }
        }
1133717
protected function setOptions($options)
    {
        if (!$options instanceof OptionsInterface) {
            $options = is_array($options) ? $options : [];
            $options = new Options($options);
        }

        $this->options = $options;
    }
736959
public function addOption($option)
    {
        $options = $this->getOptions();
        array_push($options, $option);
        $this->setOptions($options);
    }
440498
public function setup(array $options)
    {
        foreach ($options as $method => $value) {
            $method = 'set' . ucfirst($method);
            if (method_exists($this, $method)) {
                $this->{$method}($value);
            }
        }
    }
465679
public function setOptions(array $options)
	{
		foreach ($options as $value => $text) {
			$this->addOption($value, $text);
		}

		return $this;
	}
286036
public function addOptions(array $options)
    {
        foreach ($options as $name => $option) {
            $this->options[$name] = $option;
        }
        $this->compiled = null;

        return $this;
    }
1206108
public function addOption($option)
    {
        if (in_array($option, Generator::$tagOptionKeys)
            && !$this->hasOption($option)
        ) {
            $this->options[] = $option;
        }
    }
333867
public function add(array $options)
    {
        foreach ($options as $name => $value) {
            $this->set($name, $value);
        }
    }
224328
protected function setOptions(array $options)
    {
        if (isset($options['label'])) {
            $this->label = $options['label'];
        }

        if (isset($options['message'])) {
            $this->message = $options['message'];
        }

        if (isset($options['returnAddress'])) {
            $this->returnAddress = $options['returnAddress'];
        }
    }