@@ 11-41 (lines=31) @@ | ||
8 | use Onurkacmaz\LaravelN11\Service; |
|
9 | use SoapClient; |
|
10 | ||
11 | class SapBankStatementEInvoice extends Service implements SapBankStatementEInvoiceInterface |
|
12 | { |
|
13 | ||
14 | /** |
|
15 | * @var SoapClient|null |
|
16 | */ |
|
17 | private $_client; |
|
18 | ||
19 | /** |
|
20 | * Sap Bank Statement E-Invoice Service constructor |
|
21 | * @throws N11Exception|\SoapFault |
|
22 | */ |
|
23 | public function __construct() |
|
24 | { |
|
25 | parent::__construct(); |
|
26 | $this->_client = $this->setEndPoint(self::END_POINT); |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @param string $startDate |
|
31 | * @param string $endDate |
|
32 | * @return mixed |
|
33 | * @description Hesap ekstresi için günlük sorgulama limiti sayısı 3 olarak set edilmiştir. |
|
34 | */ |
|
35 | public function getSapBankStatementEInvoice(string $startDate, string $endDate): object { |
|
36 | $this->_parameters["startDate"] = $startDate; |
|
37 | $this->_parameters["endDate"] = $endDate; |
|
38 | return $this->_client->GetSapBankStatementEInvoice($this->_parameters); |
|
39 | } |
|
40 | ||
41 | } |
|
42 |
@@ 11-39 (lines=29) @@ | ||
8 | use Onurkacmaz\LaravelN11\Service; |
|
9 | use SoapClient; |
|
10 | ||
11 | class SapCommissionEInvoiceDetail extends Service implements SapCommissionEInvoiceDetailInterface |
|
12 | { |
|
13 | ||
14 | /** |
|
15 | * @var SoapClient|null |
|
16 | */ |
|
17 | private $_client; |
|
18 | ||
19 | /** |
|
20 | * Sap Bank Statement E-Invoice Service constructor |
|
21 | * @throws N11Exception|\SoapFault |
|
22 | */ |
|
23 | public function __construct() |
|
24 | { |
|
25 | parent::__construct(); |
|
26 | $this->_client = $this->setEndPoint(self::END_POINT); |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @param string $date |
|
31 | * @return mixed |
|
32 | * @description Fatura detayı için günlük sorgulama limiti sayısı 3 olarak set edilmiştir. |
|
33 | */ |
|
34 | public function getSapCommissionEInvoiceDetail(string $date): object { |
|
35 | $this->_parameters["date"] = $date; |
|
36 | return $this->_client->GetSapCommissionEInvoiceDetail($this->_parameters); |
|
37 | } |
|
38 | ||
39 | } |
|
40 |
@@ 11-40 (lines=30) @@ | ||
8 | use Onurkacmaz\LaravelN11\Service; |
|
9 | use SoapClient; |
|
10 | ||
11 | class ShipmentTemplate extends Service implements ShipmentTemplateInterface |
|
12 | { |
|
13 | ||
14 | /** |
|
15 | * @var SoapClient|null |
|
16 | */ |
|
17 | private $_client; |
|
18 | ||
19 | /** |
|
20 | * Shipment Service constructor |
|
21 | * @throws N11Exception|\SoapFault |
|
22 | */ |
|
23 | public function __construct() |
|
24 | { |
|
25 | parent::__construct(); |
|
26 | $this->_client = $this->setEndPoint(self::END_POINT); |
|
27 | } |
|
28 | ||
29 | /** |
|
30 | * @param string $templateName |
|
31 | * @return mixed |
|
32 | * @description Teslimat şablon ismi ile aratılan şablonun adres metod gibi özelliklerini gösterme. |
|
33 | * deliverableCities teslimat yapılacak şehirlerin seçimini yaptığımız alan bu alana değer girilmezse tüm şehirlere gönderim yapılacak anlamındadır. |
|
34 | */ |
|
35 | public function getShipmentTemplate(string $templateName): object { |
|
36 | $this->_parameters["name"] = $templateName; |
|
37 | return $this->_client->GetShipmentTemplate($this->_parameters); |
|
38 | } |
|
39 | ||
40 | } |
|
41 |