/** * @param string $fid * @param string $policyType * * @return AffiliatePoliciesResponse|AffiliateCommissionPoliciesResponse|AffiliateFraudPoliciesResponse|AffiliateTrafficBlockingPoliciesResponse|AffiliateReversalPoliciesResponse|AffiliateTQPPoliciesResponse|AffiliateEndpointPoliciesResponse|FortifiApiRequestInterface */ public function getCalculated($fid, $policyType = null) { $payload = new CalculatedAffiliatePolicyPayload(); $payload->fid = $fid; $payload->policyType = $policyType; $ep = AffiliatePolicyEndpoint::bound($this->getApi()); return $ep->getCalculated($payload)->get(); }
/** * @param $policyFid * @param $ruleHash * * @return FortifiApiRequestInterface|BoolResponse */ public function removeRule($policyFid, $ruleHash) { $payload = new AffiliatePolicyRulePayload(); $payload->policyFid = $policyFid; $payload->ruleHash = $ruleHash; $ep = AffiliatePolicyEndpoint::bound($this->getApi()); return $ep->removeRule($payload)->get(); }