public static function update(
        int $requestResponseId,
        int $monetaryAccountId = null,
        Amount $amountResponded = null,
        string $status = null,
        Address $addressShipping = null,
        Address $addressBilling = null,
        array $customHeaders = []
    ): BunqResponseRequestResponse {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->put(
            vsprintf(
                self::ENDPOINT_URL_UPDATE,
                [static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $requestResponseId]
            ),
            [
                self::FIELD_AMOUNT_RESPONDED => $amountResponded,
                self::FIELD_STATUS => $status,
                self::FIELD_ADDRESS_SHIPPING => $addressShipping,
                self::FIELD_ADDRESS_BILLING => $addressBilling,
            ],
            $customHeaders
        );

        return BunqResponseRequestResponse::castFromBunqResponse(
            static::fromJson($responseRaw, self::OBJECT_TYPE_PUT)
        );
    }
public static function update(
        int $requestResponseId,
        int $monetaryAccountId = null,
        Amount $amountResponded = null,
        string $status = null,
        Address $addressShipping = null,
        Address $addressBilling = null,
        array $customHeaders = []
    ): BunqResponseRequestResponse {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->put(
            vsprintf(
                self::ENDPOINT_URL_UPDATE,
                [static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $requestResponseId]
            ),
            [
                self::FIELD_AMOUNT_RESPONDED => $amountResponded,
                self::FIELD_STATUS => $status,
                self::FIELD_ADDRESS_SHIPPING => $addressShipping,
                self::FIELD_ADDRESS_BILLING => $addressBilling,
            ],
            $customHeaders
        );

        return BunqResponseRequestResponse::castFromBunqResponse(
            static::fromJson($responseRaw, self::OBJECT_TYPE_PUT)
        );
    }
public static function update ( int $ requestResponseId , int $ monetaryAccountId = null , Amount $ amountResponded = null , string $ status = null , Address $ addressShipping = null , Address $ addressBilling = null , array $ customHeaders = [ ] ) : BunqResponseRequestResponse { $ apiClient = new ApiClient ( static :: getApiContext ( ) ) ; $ responseRaw = $ apiClient -> put ( vsprintf ( self :: ENDPOINT_URL_UPDATE , [ static :: determineUserId ( ) , static :: determineMonetaryAccountId ( $ monetaryAccountId ) , $ requestResponseId ] ) , [ self :: FIELD_AMOUNT_RESPONDED => $ amountResponded , self :: FIELD_STATUS => $ status , self :: FIELD_ADDRESS_SHIPPING => $ addressShipping , self :: FIELD_ADDRESS_BILLING => $ addressBilling , ] , $ customHeaders ) ; return BunqResponseRequestResponse :: castFromBunqResponse ( static :: fromJson ( $ responseRaw , self :: OBJECT_TYPE_PUT ) ) ; }
Update the status to accept or reject the RequestResponse.

@param int $requestResponseId
@param int|null $monetaryAccountId
@param Amount|null $amountResponded  The Amount the user decides to pay.
@param string|null $status           The responding status of the RequestResponse.
Can be ACCEPTED or REJECTED.
@param Address|null $addressShipping The shipping Address to return to
the user who created the RequestInquiry. Should only be provided if
'require_address' is set to SHIPPING, BILLING_SHIPPING or OPTIONAL.
@param Address|null $addressBilling  The billing Address to return to the
user who created the RequestInquiry. Should only be provided if
'require_address' is set to BILLING, BILLING_SHIPPING or OPTIONAL.
@param string[] $customHeaders

@return BunqResponseRequestResponse
Update the status to accept or reject the RequestResponse .