Returns a list of defined bcc recipients.

@return array
183281
public function getBcc()
    {
        $recipients = [];
        foreach ($this->message->getBcc() as $email => $name) {
            $recipients[] = new Email($email, $name);
        }

        return $recipients;
    }
398906
protected function getAllowedPaymentFrequencies()
    {
        return array(
            static::DAILY,
            static::WEEKLY,
            static::SEMIMONTHLY,
            static::MONTHLY,
            static::BIMONTHLY,
            static::QUATERLY,
            static::EVERY_4_MONTHS,
            static::SEMIANNUAL,
            static::ANNUAL,
        );
    }
525153
public function getAcquaintances()
    {
        $acquaintances = new Collection();

        // Past message senders
        foreach ($this->messages()->received()->with('sender')->get() as $message) {
            $acquaintances = $acquaintances->push($message->sender);
        }

        // Past message recipients
        foreach ($this->messages()->sent()->with('recipient')->get() as $message) {
            $acquaintances = $acquaintances->push($message->recipient);
        }

        // Past sellers
        foreach ($this->purchases()->with('item.seller')->get() as $purchase) {
            $acquaintances = $acquaintances->push($purchase->item->seller);
        }

        // Past buyers
        foreach ($this->items()->with('purchases.buyer')->get() as $item) {
            foreach ($item->purchases as $purchase) {
                $acquaintances = $acquaintances->push($purchase->buyer);
            }
        }

        return $acquaintances->unique();
    }
1323192
public function clearRecipients()
    {
        $this->_recipients = array();
        $this->_to = array();

        $this->clearHeader('To');
        $this->clearHeader('Cc');
        $this->clearHeader('Bcc');

        return $this;
    }
18981
public function getHandledCodes()
    {
        return array(
            self::CODE_PENDING                     => 'pending',
            self::CODE_ERROR                       => 'error',
            self::CODE_SUCCESS                     => 'success',
            self::CODE_UNAUTHORIZED_EMAIL          => 'unauthorized email',
            self::CODE_EMAIL_ALREADY_EXIST         => 'email already exist',
            self::CODE_UNAUTHORIZED_OPTOUT_EMAIL   => 'unauthorized optout email',
            self::CODE_UNAUTHORIZED_OPTOUT_MOBILE  => 'unauthorized optout mobile',
            self::CODE_ERROR_ON_INTEREST_TO_ADD    => 'error on interest to add',
            self::CODE_ERROR_ON_INTEREST_TO_DELETE => 'error on interest to delete',
        );
    }
1029821
protected function getPaymentTransactionStructure()
    {
        return [
            'usage'            => $this->usage,
            'remote_ip'        => $this->remote_ip,
            'return_url'       => $this->return_url,
            'amount'           => $this->transformAmount($this->amount, $this->currency),
            'currency'         => $this->currency,
            'customer_email'   => $this->customer_email,
            'billing_address'  => $this->getBillingAddressParamsStructure(),
            'shipping_address' => $this->getShippingAddressParamsStructure()
        ];
    }
85209
protected function getPaymentTransactionStructure()
    {
        return [
            'reference_id' => $this->reference_id,
            'amount'       => $this->transformAmount($this->amount, $this->currency),
            'currency'     => $this->currency
        ];
    }
1099459
public function retrieveMessages($recipient)
    {
        if (!isset($this->database[$recipient])) {
            return [];
        }

        $messages = $this->database[$recipient];
        unset($this->database[$recipient]);

        return $messages;
    }
1119098
protected function getPaymentTransactionStructure()
    {
        return [
            'usage'        => $this->usage,
            'remote_ip'    => $this->remote_ip,
            'amount'       => $this->transformAmount($this->amount, $this->currency),
            'currency'     => $this->currency,
            'reference_id' => $this->reference_id
        ];
    }
1351104
public function toArray(): array
    {
        return array_filter([
            'amount'          => $this->amount,
            'asset'           => $this->asset ?? null,
            'fee'             => $this->fee,
            'id'              => $this->id,
            'network'         => $this->network ?? Network::get()->version(),
            'recipientId'     => $this->recipientId ?? null,
            'secondSignature' => $this->secondSignature ?? null,
            'senderPublicKey' => $this->senderPublicKey,
            'signature'       => $this->signature,
            'signatures'      => $this->signatures ?? null,
            'signSignature'   => $this->signSignature ?? null,
            'timestamp'       => $this->timestamp,
            'type'            => $this->type,
            'vendorField'     => $this->vendorField ?? null,
            'version'         => $this->version ?? 1,
        ], function ($element) {
            if (null !== $element) {
                return true;
            }

            return false;
        });
    }
159517
def get_default_recipients(self):
        '''  '''
        return [x.registration.customer.email for x in self.eventregistration_set.filter(cancelled=False)]
980799
public function getRecipientsAttribute()
    {
        $recipients = new Collection();

        if (array_key_exists('recipients', $this->attributes)) {
            foreach ((array) $this->attributes['recipients'] as $recipient) {
                $recipients->push($this->factory->create(User::class, $recipient, true));
            }
        }

        return $recipients;
    }
876819
protected function getPaymentTransactionStructure()
    {
        return [
            'amount'                => $this->transformAmount($this->amount, $this->currency),
            'currency'              => $this->currency,
            'customer_email'        => $this->customer_email,
            'customer_phone'        => $this->customer_phone,
            'account_name'          => $this->account_name,
            'bank_name'             => $this->bank_name,
            'iban'                  => $this->iban,
            'bic'                   => $this->bic,
            'account_number'        => $this->account_number,
            'bank_code'             => $this->bank_code,
            'branch_code'           => $this->branch_code,
            'account_number_suffix' => $this->account_number_suffix,
            'sort_code'             => $this->sort_code,
            'aba_routing_number'    => $this->aba_routing_number,
            'billing_address'       => $this->getBillingAddressParamsStructure(),
        ];
    }
390268
public function getRevCardGet()
    {
        $array = array();
        if (isset($this->_receive['CardId'])) {
            $array['CardId'] = $this->_receive['CardId'];
        }
        if (isset($this->_receive['IsGiveByFriend'])) {
            $array['IsGiveByFriend'] = $this->_receive['IsGiveByFriend'];
        }
        $array['OldUserCardCode'] = $this->_receive['OldUserCardCode'];
        if (isset($this->_receive['UserCardCode']) && !empty($this->_receive['UserCardCode'])) {
            $array['UserCardCode'] = $this->_receive['UserCardCode'];
        }
        return (isset($array) && count($array) > 0) ? $array : false;
    }
1166396
public function getRecipientsTypeAllowableValues()
    {
        return [
            self::RECIPIENTS_TYPE_ALL,
            self::RECIPIENTS_TYPE_DELIVERED,
            self::RECIPIENTS_TYPE_ANSWERED,
            self::RECIPIENTS_TYPE_SOFT_BOUNCES,
            self::RECIPIENTS_TYPE_HARD_BOUNCES,
            self::RECIPIENTS_TYPE_UNSUBSCRIBED,
        ];
    }
601593
public function getHeaders()
    {
        $swiftHeaders = $this->message->getHeaders()->listAll();
        $headers = [];
        foreach ($swiftHeaders as $headerName) {
            $headers[$headerName] = $this->getHeader($headerName);
        }

        return $headers;
    }
457029
public function jsonSerialize(): array
    {
        $parentArray = parent::jsonSerialize();

        $returnArray = [
            'ID' => $this->smsID,
            'BundleID' => $this->bundleID,
            'Status' => $this->status,
            'StatusDescription' => $this->statusDescription,
            'To' => $this->recipient,
            'ModifiedDate' => $this->updated->format("Y-m-d\TH:i:s.").
                substr($this->updated->format('u'), 0, 3) ?? null,
            'CreatedDate' => $this->created->format("Y-m-d\TH:i:s.").
                substr($this->updated->format('u'), 0, 3) ?? null,
        ];
        return array_filter(array_merge($parentArray, $returnArray));
    }