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

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

        return BunqResponseInt::castFromBunqResponse(
            static::processForId($responseRaw)
        );
    }
public static function create ( array $ requestInquiries , Amount $ totalAmountInquired , int $ monetaryAccountId = null , string $ status = null , int $ eventId = null , array $ customHeaders = [ ] ) : BunqResponseInt { $ apiClient = new ApiClient ( static :: getApiContext ( ) ) ; $ responseRaw = $ apiClient -> post ( vsprintf ( self :: ENDPOINT_URL_CREATE , [ static :: determineUserId ( ) , static :: determineMonetaryAccountId ( $ monetaryAccountId ) ] ) , [ self :: FIELD_REQUEST_INQUIRIES => $ requestInquiries , self :: FIELD_STATUS => $ status , self :: FIELD_TOTAL_AMOUNT_INQUIRED => $ totalAmountInquired , self :: FIELD_EVENT_ID => $ eventId , ] , $ customHeaders ) ; return BunqResponseInt :: castFromBunqResponse ( static :: processForId ( $ responseRaw ) ) ; }
Create a request batch by sending an array of single request objects,
that will become part of the batch.

@param RequestInquiry[] $requestInquiries The list of request inquiries
we want to send in 1 batch.
@param Amount $totalAmountInquired        The total amount originally inquired
for this batch.
@param int|null $monetaryAccountId
@param string|null $status                The status of the request.
@param int|null $eventId                  The ID of the associated event if the request
batch was made using 'split the bill'.
@param string[] $customHeaders

@return BunqResponseInt
Create a request batch by sending an array of single request objects that will become part of the batch .