Skip to content

Commit

Permalink
Merge pull request #14 from bildvitta/feature/sicaq
Browse files Browse the repository at this point in the history
Added sicaq
  • Loading branch information
fabiomartins1 authored Aug 31, 2023
2 parents 5d8d24d + c97a2b6 commit b1d39e2
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/IssSupernova.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use Bildvitta\IssSupernova\Resources\RealEstateDevelopmentParameters;
use Bildvitta\IssSupernova\Resources\RealEstateDevelopments;
use Bildvitta\IssSupernova\Contracts\IssSupernovaFactory;
use Bildvitta\IssSupernova\Resources\Sicaq;
use Bildvitta\IssSupernova\Resources\RealEstateDevelopmentTypologies;
use Bildvitta\IssSupernova\Resources\RealEstateDevelopmentUnits;
use Bildvitta\IssSupernova\Resources\SaleAccessories;
Expand Down Expand Up @@ -250,4 +251,9 @@ public function sys()
{
return new SYS($this);
}

public function sicaq()
{
return new Sicaq($this);
}
}
42 changes: 42 additions & 0 deletions src/Resources/Sicaq.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

namespace Bildvitta\IssSupernova\Resources;

use Bildvitta\IssSupernova\IssSupernova;
use Illuminate\Http\Client\Response;

class Sicaq
{
/**
* @var IssSupernova
*/
private IssSupernova $issSupernova;

/**
* @param IssSupernova $issSupernova
*/
public function __construct(IssSupernova $issSupernova)
{
$this->issSupernova = $issSupernova;
}

/**
* @param string $realEstateDevelopmentUuid
* @param string $typologyUuid
* @param string $document
* @return Response
*/
public function periodicities(string $realEstateDevelopmentUuid, string $typologyUuid, string $document): Response
{
$data = [
'real_estate_development' => $realEstateDevelopmentUuid,
'typology' => $typologyUuid,
'document' => $document,
];

return $this->issSupernova->request->get(
'/sicaq/periodicities',
$data
);
}
}

0 comments on commit b1d39e2

Please sign in to comment.