public static function create(
        string $name,
        string $status,
        string $avatarUuid,
        int $monetaryAccountId = null,
        Geolocation $location = null,
        array $notificationFilters = null,
        array $tabTextWaitingScreen = null,
        array $customHeaders = []
    ): BunqResponseInt {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->post(
            vsprintf(
                self::ENDPOINT_URL_CREATE,
                [static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId)]
            ),
            [
                self::FIELD_NAME => $name,
                self::FIELD_STATUS => $status,
                self::FIELD_AVATAR_UUID => $avatarUuid,
                self::FIELD_LOCATION => $location,
                self::FIELD_NOTIFICATION_FILTERS => $notificationFilters,
                self::FIELD_TAB_TEXT_WAITING_SCREEN => $tabTextWaitingScreen,
            ],
            $customHeaders
        );

        return BunqResponseInt::castFromBunqResponse(
            static::processForId($responseRaw)
        );
    }
public static function create(
        string $name,
        string $status,
        string $avatarUuid,
        int $monetaryAccountId = null,
        Geolocation $location = null,
        array $notificationFilters = null,
        array $tabTextWaitingScreen = null,
        array $customHeaders = []
    ): BunqResponseInt {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->post(
            vsprintf(
                self::ENDPOINT_URL_CREATE,
                [static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId)]
            ),
            [
                self::FIELD_NAME => $name,
                self::FIELD_STATUS => $status,
                self::FIELD_AVATAR_UUID => $avatarUuid,
                self::FIELD_LOCATION => $location,
                self::FIELD_NOTIFICATION_FILTERS => $notificationFilters,
                self::FIELD_TAB_TEXT_WAITING_SCREEN => $tabTextWaitingScreen,
            ],
            $customHeaders
        );

        return BunqResponseInt::castFromBunqResponse(
            static::processForId($responseRaw)
        );
    }
public static function create ( string $ name , string $ status , string $ avatarUuid , int $ monetaryAccountId = null , Geolocation $ location = null , array $ notificationFilters = null , array $ tabTextWaitingScreen = null , array $ customHeaders = [ ] ) : BunqResponseInt { $ apiClient = new ApiClient ( static :: getApiContext ( ) ) ; $ responseRaw = $ apiClient -> post ( vsprintf ( self :: ENDPOINT_URL_CREATE , [ static :: determineUserId ( ) , static :: determineMonetaryAccountId ( $ monetaryAccountId ) ] ) , [ self :: FIELD_NAME => $ name , self :: FIELD_STATUS => $ status , self :: FIELD_AVATAR_UUID => $ avatarUuid , self :: FIELD_LOCATION => $ location , self :: FIELD_NOTIFICATION_FILTERS => $ notificationFilters , self :: FIELD_TAB_TEXT_WAITING_SCREEN => $ tabTextWaitingScreen , ] , $ customHeaders ) ; return BunqResponseInt :: castFromBunqResponse ( static :: processForId ( $ responseRaw ) ) ; }
Create a new CashRegister. Only an UserCompany can create a
CashRegisters. They need to be created with status PENDING_APPROVAL, an
bunq admin has to approve your CashRegister before you can use it. In the
sandbox testing environment an CashRegister will be automatically
approved immediately after creation.

@param string $name                                      The name of the CashRegister. Must be unique for this
MonetaryAccount.
@param string $status                                    The status of the CashRegister. Can only be created
or updated with PENDING_APPROVAL or CLOSED.
@param string $avatarUuid                                The UUID of the avatar of the CashRegister. Use
the calls /attachment-public and /avatar to create a
new Avatar and get its UUID.
@param int|null $monetaryAccountId
@param Geolocation|null $location                        The geolocation of the CashRegister.
@param NotificationFilter[]|null $notificationFilters    The types of
notifications that will result in a push notification
or URL callback for this CashRegister.
@param TabTextWaitingScreen[]|null $tabTextWaitingScreen The tab text for
waiting screen of CashRegister.
@param string[] $customHeaders

@return BunqResponseInt
Create a new CashRegister . Only an UserCompany can create a CashRegisters . They need to be created with status PENDING_APPROVAL an bunq admin has to approve your CashRegister before you can use it . In the sandbox testing environment an CashRegister will be automatically approved immediately after creation .