Пример #1
0
 protected function sendMarkTransactionsCall() {
     $request = new Gpf_Rpc_ActionRequest('Pap_Merchants_Payout_PayAffiliatesFormExportGrid', 'markTransactionsAsPaymentPending', $this->apiSessionObject);
     $request->addParam('ids', new Gpf_Rpc_Array($this->getAffiliatesToPay()));
     $request->addParam('filters', new Gpf_Rpc_Array($this->getFilters()));
     $request->sendNow();
     
     if ($request->getResponseError() != '') {
         throw new Gpf_Exception($request->getResponseError());
     }
 }
Пример #2
0
 protected function sendPayTransactionsCall($paymentNote, $affiliateNote, $send_payment_to_affiliate, $send_generated_invoices_to_merchant, $send_generated_invoices_to_affiliates)
 {
     $request = new Gpf_Rpc_ActionRequest('Pap_Merchants_Payout_PayAffiliatesForm', 'payAffiliates', $this->apiSessionObject);
     $request->addParam('paymentNote', $paymentNote);
     $request->addParam('affiliateNote', $affiliateNote);
     $request->addParam('send_payment_to_affiliate', $send_payment_to_affiliate);
     $request->addParam('send_generated_invoices_to_merchant', $send_generated_invoices_to_merchant);
     $request->addParam('send_generated_invoices_to_affiliates', $send_generated_invoices_to_affiliates);
     $request->addParam('ids', new Gpf_Rpc_Array($this->getAffiliatesToPay()));
     $request->addParam('filters', new Gpf_Rpc_Array($this->getFilters()));
     $request->sendNow();
     if ($request->getResponseError() != '') {
         throw new Gpf_Exception($request->getResponseError());
     }
     $response = $request->getStdResponse();
     if ($response->success == 'Y' && strpos($response->infoMessage, self::PAP_MERCHANTS_PAYOUT_PAYAFFILIATESFORM_SUCCESS) !== 0) {
         $request->sendNow();
     }
 }