public static function create(
        int $cashRegisterId,
        string $tabUuid,
        string $description,
        int $monetaryAccountId = null,
        string $eanCode = null,
        string $avatarAttachmentUuid = null,
        array $tabAttachment = null,
        string $quantity = null,
        Amount $amount = null,
        array $customHeaders = []
    ): BunqResponseInt {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->post(
            vsprintf(
                self::ENDPOINT_URL_CREATE,
                [
                    static::determineUserId(),
                    static::determineMonetaryAccountId($monetaryAccountId),
                    $cashRegisterId,
                    $tabUuid,
                ]
            ),
            [
                self::FIELD_DESCRIPTION => $description,
                self::FIELD_EAN_CODE => $eanCode,
                self::FIELD_AVATAR_ATTACHMENT_UUID => $avatarAttachmentUuid,
                self::FIELD_TAB_ATTACHMENT => $tabAttachment,
                self::FIELD_QUANTITY => $quantity,
                self::FIELD_AMOUNT => $amount,
            ],
            $customHeaders
        );

        return BunqResponseInt::castFromBunqResponse(
            static::processForId($responseRaw)
        );
    }
public static function create(
        int $cashRegisterId,
        string $tabUuid,
        string $description,
        int $monetaryAccountId = null,
        string $eanCode = null,
        string $avatarAttachmentUuid = null,
        array $tabAttachment = null,
        string $quantity = null,
        Amount $amount = null,
        array $customHeaders = []
    ): BunqResponseInt {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->post(
            vsprintf(
                self::ENDPOINT_URL_CREATE,
                [
                    static::determineUserId(),
                    static::determineMonetaryAccountId($monetaryAccountId),
                    $cashRegisterId,
                    $tabUuid,
                ]
            ),
            [
                self::FIELD_DESCRIPTION => $description,
                self::FIELD_EAN_CODE => $eanCode,
                self::FIELD_AVATAR_ATTACHMENT_UUID => $avatarAttachmentUuid,
                self::FIELD_TAB_ATTACHMENT => $tabAttachment,
                self::FIELD_QUANTITY => $quantity,
                self::FIELD_AMOUNT => $amount,
            ],
            $customHeaders
        );

        return BunqResponseInt::castFromBunqResponse(
            static::processForId($responseRaw)
        );
    }
public static function create ( int $ cashRegisterId , string $ tabUuid , string $ description , int $ monetaryAccountId = null , string $ eanCode = null , string $ avatarAttachmentUuid = null , array $ tabAttachment = null , string $ quantity = null , Amount $ amount = null , array $ customHeaders = [ ] ) : BunqResponseInt { $ apiClient = new ApiClient ( static :: getApiContext ( ) ) ; $ responseRaw = $ apiClient -> post ( vsprintf ( self :: ENDPOINT_URL_CREATE , [ static :: determineUserId ( ) , static :: determineMonetaryAccountId ( $ monetaryAccountId ) , $ cashRegisterId , $ tabUuid , ] ) , [ self :: FIELD_DESCRIPTION => $ description , self :: FIELD_EAN_CODE => $ eanCode , self :: FIELD_AVATAR_ATTACHMENT_UUID => $ avatarAttachmentUuid , self :: FIELD_TAB_ATTACHMENT => $ tabAttachment , self :: FIELD_QUANTITY => $ quantity , self :: FIELD_AMOUNT => $ amount , ] , $ customHeaders ) ; return BunqResponseInt :: castFromBunqResponse ( static :: processForId ( $ responseRaw ) ) ; }
Create a new TabItem for a given Tab.

@param int $cashRegisterId
@param string $tabUuid
@param string $description               The TabItem's brief description. Can't be
empty and must be no longer than 100 characters
@param int|null $monetaryAccountId
@param string|null $eanCode              The TabItem's EAN code.
@param string|null $avatarAttachmentUuid An AttachmentPublic UUID that
used as an avatar for the TabItem.
@param int[]|null $tabAttachment         A list of AttachmentTab attached to the
TabItem.
@param string|null $quantity             The quantity of the TabItem. Formatted as a
number containing up to 15 digits, up to 15 decimals and using a dot.
@param Amount|null $amount               The money amount of the TabItem. Will not
change the value of the corresponding Tab.
@param string[] $customHeaders

@return BunqResponseInt
Create a new TabItem for a given Tab .