BarobillAccountService.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace App\ThirdPartyApi\Barobill\Services;
  3. use App\Services\CallApiService;
  4. use App\ThirdPartyApi\Barobill\Barobill;
  5. class BarobillAccountService extends Barobill
  6. {
  7. public function __construct(CallApiService $callApiService)
  8. {
  9. parent::__construct($callApiService);
  10. }
  11. public function getDailyBankAccountLog
  12. (
  13. $bankAccountNum,
  14. $baseDate,
  15. $countPerPage,
  16. $currentPage,
  17. $orderDirection
  18. )
  19. {
  20. $result = $this->baroService->GetDailyBankAccountLog([
  21. 'CERTKEY' => self::CERTKEY,
  22. 'CorpNum' => self::CORP_NUM,
  23. 'ID' => self::ID,
  24. 'BankAccountNum' => $bankAccountNum, //계좌번호
  25. 'BaseDate' => $baseDate, //기준날짜
  26. 'CountPerPage' => $countPerPage, //한 페이지 당 조회 건 수
  27. 'CurrentPage' => $currentPage, //현재페이지
  28. 'OrderDirection' => $orderDirection //1:ASC 2:DESC
  29. ])->GetDailyBankAccountLogResult;
  30. if ($result->CurrentPage < 0) { //실패
  31. dd($result->CurrentPage);
  32. }else{ //성공
  33. return json_decode(json_encode($result), true);
  34. }
  35. }
  36. }