-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nova2 refactoring #62
Open
VitalyZibulski
wants to merge
14
commits into
lis-dev:master
Choose a base branch
from
VitalyZibulski:nova2-refactoring
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
bbc1bf9
update php
VitalyZibulski d6a3396
add structure
VitalyZibulski e8f1540
add models, services
VitalyZibulski 1bc6399
add model interface, services
VitalyZibulski e572c60
add model interface, services
VitalyZibulski e1c2cb9
fix service
VitalyZibulski 90a34e8
add model interface, services
VitalyZibulski bd8128b
add areas class
VitalyZibulski 1585c05
fix service
VitalyZibulski d080a1c
add exception
VitalyZibulski ed599da
add document service
VitalyZibulski 5ce09fb
add address service
VitalyZibulski a6142cc
add model counter party service
VitalyZibulski 11acae1
fixes
VitalyZibulski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace LisDev\Common; | ||
|
||
use LisDev\Controllers\NovaPoshtaApi2; | ||
|
||
class Format | ||
{ | ||
protected string $format; | ||
/** | ||
* Setter for format property. | ||
* | ||
* @param string $format Format of returned data by methods (json, xml, array) | ||
* | ||
* @return NovaPoshtaApi2 | ||
*/ | ||
public function setFormat(string $format): Format | ||
{ | ||
$this->format = $format; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Getter for format property. | ||
* | ||
* @return string | ||
*/ | ||
public function getFormat(): string | ||
{ | ||
return $this->format; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace LisDev\Common; | ||
|
||
class Language | ||
{ | ||
/** | ||
* @var string Language of response | ||
*/ | ||
protected string $language = 'ru'; | ||
|
||
/** | ||
* Setter for language property. | ||
* | ||
* @param string $language | ||
* | ||
* @return Language | ||
*/ | ||
public function setLanguage(string $language): Language | ||
{ | ||
$this->language = $language; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Getter for language property. | ||
* | ||
* @return string | ||
*/ | ||
public function getLanguage(): string | ||
{ | ||
return $this->language; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
<?php | ||
|
||
namespace LisDev\Common; | ||
|
||
class ListAreas | ||
{ | ||
public const AREAS = [ | ||
'71508129-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Вінниця', | ||
'DescriptionRu' => 'Винница', | ||
'Area' => 'Вінницька', | ||
'AreaRu' => 'Винницкая', | ||
], | ||
'7150812b-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Дніпропетровськ', | ||
'DescriptionRu' => 'Днепропетровск', | ||
'Area' => 'Дніпропетровська', | ||
'AreaRu' => 'Днепропетровская', | ||
], | ||
'7150812c-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Донецьк', | ||
'DescriptionRu' => 'Донецк', | ||
'Area' => 'Донецька', | ||
'AreaRu' => 'Донецкая', | ||
], | ||
'7150812d-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Житомир', | ||
'DescriptionRu' => 'Житомир', | ||
'Area' => 'Житомирська', | ||
'AreaRu' => 'Житомирская', | ||
], | ||
'7150812f-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Запоріжжя', | ||
'DescriptionRu' => 'Запорожье', | ||
'Area' => 'Запорізька', | ||
'AreaRu' => 'Запорожская', | ||
], | ||
'71508130-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Івано-Франківськ', | ||
'DescriptionRu' => 'Ивано-Франковск', | ||
'Area' => 'Івано-Франківська', | ||
'AreaRu' => 'Ивано-Франковская', | ||
], | ||
'71508131-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Київ', | ||
'DescriptionRu' => 'Киев', | ||
'Area' => 'Київська', | ||
'AreaRu' => 'Киевская', | ||
], | ||
'71508132-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Кіровоград', | ||
'DescriptionRu' => 'Кировоград', | ||
'Area' => 'Кіровоградська', | ||
'AreaRu' => 'Кировоградская', | ||
], | ||
'71508133-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Луганськ', | ||
'DescriptionRu' => 'Луганск', | ||
'Area' => 'Луганська', | ||
'AreaRu' => 'Луганская', | ||
], | ||
'7150812a-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Луцьк', | ||
'DescriptionRu' => 'Луцк', | ||
'Area' => 'Волинська', | ||
'AreaRu' => 'Волынская', | ||
], | ||
'71508134-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Львів', | ||
'DescriptionRu' => 'Львов', | ||
'Area' => 'Львівська', | ||
'AreaRu' => 'Львовская', | ||
], | ||
'71508135-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Миколаїв', | ||
'DescriptionRu' => 'Николаев', | ||
'Area' => 'Миколаївська', | ||
'AreaRu' => 'Николаевская', | ||
], | ||
'71508136-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Одеса', | ||
'DescriptionRu' => 'Одесса', | ||
'Area' => 'Одеська', | ||
'AreaRu' => 'Одесская', | ||
], | ||
'71508137-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Полтава', | ||
'DescriptionRu' => 'Полтава', | ||
'Area' => 'Полтавська', | ||
'AreaRu' => 'Полтавская', | ||
], | ||
'71508138-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Рівне', | ||
'DescriptionRu' => 'Ровно', | ||
'Area' => 'Рівненська', | ||
'AreaRu' => 'Ровненская', | ||
], | ||
'71508139-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Суми', | ||
'DescriptionRu' => 'Сумы', | ||
'Area' => 'Сумська', | ||
'AreaRu' => 'Сумская', | ||
], | ||
'7150813a-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Тернопіль', | ||
'DescriptionRu' => 'Тернополь', | ||
'Area' => 'Тернопільська', | ||
'AreaRu' => 'Тернопольская', | ||
], | ||
'7150812e-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Ужгород', | ||
'DescriptionRu' => 'Ужгород', | ||
'Area' => 'Закарпатська', | ||
'AreaRu' => 'Закарпатская', | ||
], | ||
'7150813b-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Харків', | ||
'DescriptionRu' => 'Харьков', | ||
'Area' => 'Харківська', | ||
'AreaRu' => 'Харьковская', | ||
], | ||
'7150813c-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Херсон', | ||
'DescriptionRu' => 'Херсон', | ||
'Area' => 'Херсонська', | ||
'AreaRu' => 'Херсонская', | ||
], | ||
'7150813d-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Хмельницький', | ||
'DescriptionRu' => 'Хмельницкий', | ||
'Area' => 'Хмельницька', | ||
'AreaRu' => 'Хмельницкая', | ||
], | ||
'7150813e-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Черкаси', | ||
'DescriptionRu' => 'Черкассы', | ||
'Area' => 'Черкаська', | ||
'AreaRu' => 'Черкасская', | ||
], | ||
'71508140-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Чернігів', | ||
'DescriptionRu' => 'Чернигов', | ||
'Area' => 'Чернігівська', | ||
'AreaRu' => 'Черниговская', | ||
], | ||
'7150813f-9b87-11de-822f-000c2965ae0e' => [ | ||
'Description' => 'Чернівці', | ||
'DescriptionRu' => 'Черновцы', | ||
'Area' => 'Чернівецька', | ||
'AreaRu' => 'Черновицкая', | ||
], | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace LisDev\Common; | ||
|
||
enum PrintMarkingType: string | ||
{ | ||
case Pdf = 'pdf'; | ||
case NewPdf = 'new_pdf'; | ||
case PdfLink = 'pdf_link'; | ||
case NewHtml = 'new_html'; | ||
case OldHtml = 'old_html'; | ||
case HtmlLink = 'html_link'; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не совсем понимаю зачем менять неймспейс, если прошлый вполне отражал свое назначение, а вот Controllers может вводить в заблуждение