public static function create(
        int $monetaryAccountPayingId,
        int $requestId,
        Amount $maximumAmountPerMonth,
        array $customHeaders = []
    ): BunqResponseInt {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->post(
            vsprintf(
                self::ENDPOINT_URL_CREATE,
                [static::determineUserId()]
            ),
            [
                self::FIELD_MONETARY_ACCOUNT_PAYING_ID => $monetaryAccountPayingId,
                self::FIELD_REQUEST_ID => $requestId,
                self::FIELD_MAXIMUM_AMOUNT_PER_MONTH => $maximumAmountPerMonth,
            ],
            $customHeaders
        );

        return BunqResponseInt::castFromBunqResponse(
            static::processForId($responseRaw)
        );
    }
public static function create(
        int $monetaryAccountPayingId,
        int $requestId,
        Amount $maximumAmountPerMonth,
        array $customHeaders = []
    ): BunqResponseInt {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->post(
            vsprintf(
                self::ENDPOINT_URL_CREATE,
                [static::determineUserId()]
            ),
            [
                self::FIELD_MONETARY_ACCOUNT_PAYING_ID => $monetaryAccountPayingId,
                self::FIELD_REQUEST_ID => $requestId,
                self::FIELD_MAXIMUM_AMOUNT_PER_MONTH => $maximumAmountPerMonth,
            ],
            $customHeaders
        );

        return BunqResponseInt::castFromBunqResponse(
            static::processForId($responseRaw)
        );
    }
public static function create ( int $ monetaryAccountPayingId , int $ requestId , Amount $ maximumAmountPerMonth , array $ customHeaders = [ ] ) : BunqResponseInt { $ apiClient = new ApiClient ( static :: getApiContext ( ) ) ; $ responseRaw = $ apiClient -> post ( vsprintf ( self :: ENDPOINT_URL_CREATE , [ static :: determineUserId ( ) ] ) , [ self :: FIELD_MONETARY_ACCOUNT_PAYING_ID => $ monetaryAccountPayingId , self :: FIELD_REQUEST_ID => $ requestId , self :: FIELD_MAXIMUM_AMOUNT_PER_MONTH => $ maximumAmountPerMonth , ] , $ customHeaders ) ; return BunqResponseInt :: castFromBunqResponse ( static :: processForId ( $ responseRaw ) ) ; }
Create a new SDD whitelist entry.

@param int $monetaryAccountPayingId  ID of the monetary account of which
you want to pay from.
@param int $requestId                ID of the request for which you want to whitelist
the originating SDD.
@param Amount $maximumAmountPerMonth The maximum amount of money that is
allowed to be deducted based on the whitelist.
@param string[] $customHeaders

@return BunqResponseInt
Create a new SDD whitelist entry .