public static function create(
        int $cashRegisterId,
        string $status,
        int $monetaryAccountId = null,
        array $customHeaders = []
    ): BunqResponseInt {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->post(
            vsprintf(
                self::ENDPOINT_URL_CREATE,
                [static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $cashRegisterId]
            ),
            [self::FIELD_STATUS => $status],
            $customHeaders
        );

        return BunqResponseInt::castFromBunqResponse(
            static::processForId($responseRaw)
        );
    }
public static function create(
        int $cashRegisterId,
        string $status,
        int $monetaryAccountId = null,
        array $customHeaders = []
    ): BunqResponseInt {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->post(
            vsprintf(
                self::ENDPOINT_URL_CREATE,
                [static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $cashRegisterId]
            ),
            [self::FIELD_STATUS => $status],
            $customHeaders
        );

        return BunqResponseInt::castFromBunqResponse(
            static::processForId($responseRaw)
        );
    }
public static function create ( int $ cashRegisterId , string $ status , int $ monetaryAccountId = null , array $ customHeaders = [ ] ) : BunqResponseInt { $ apiClient = new ApiClient ( static :: getApiContext ( ) ) ; $ responseRaw = $ apiClient -> post ( vsprintf ( self :: ENDPOINT_URL_CREATE , [ static :: determineUserId ( ) , static :: determineMonetaryAccountId ( $ monetaryAccountId ) , $ cashRegisterId ] ) , [ self :: FIELD_STATUS => $ status ] , $ customHeaders ) ; return BunqResponseInt :: castFromBunqResponse ( static :: processForId ( $ responseRaw ) ) ; }
Create a new QR code for this CashRegister. You can only have one ACTIVE
CashRegister QR code at the time.

@param int $cashRegisterId
@param string $status The status of the QR code. ACTIVE or INACTIVE. Only
one QR code can be ACTIVE for a CashRegister at any time. Setting a QR
code to ACTIVE will deactivate any other CashRegister QR codes.
@param int|null $monetaryAccountId
@param string[] $customHeaders

@return BunqResponseInt
Create a new QR code for this CashRegister . You can only have one ACTIVE CashRegister QR code at the time .