-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated NuGet package to version 1.130.0 and regenerated. (#25)
- Loading branch information
1 parent
32681d3
commit e4ffe0d
Showing
115 changed files
with
1,933 additions
and
62 deletions.
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
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
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
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,12 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Relewise\Models; | ||
|
||
use DateTime; | ||
|
||
enum ChangeType : string | ||
{ | ||
case Changed = 'Changed'; | ||
case Decreased = 'Decreased'; | ||
case Increased = 'Increased'; | ||
} |
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,65 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Relewise\Models; | ||
|
||
use DateTime; | ||
|
||
class Company | ||
{ | ||
public string $typeDefinition = "Relewise.Client.DataTypes.Company, Relewise.Client"; | ||
public string $id; | ||
public ?Company $parent; | ||
public ?array $data; | ||
public static function create(string $id) : Company | ||
{ | ||
$result = new Company(); | ||
$result->id = $id; | ||
return $result; | ||
} | ||
public static function hydrate(array $arr) : Company | ||
{ | ||
$result = new Company(); | ||
if (array_key_exists("id", $arr)) | ||
{ | ||
$result->id = $arr["id"]; | ||
} | ||
if (array_key_exists("parent", $arr)) | ||
{ | ||
$result->parent = Company::hydrate($arr["parent"]); | ||
} | ||
if (array_key_exists("data", $arr)) | ||
{ | ||
$result->data = array(); | ||
foreach($arr["data"] as $key => $value) | ||
{ | ||
$result->data[$key] = DataValue::hydrate($value); | ||
} | ||
} | ||
return $result; | ||
} | ||
function setId(string $id) | ||
{ | ||
$this->id = $id; | ||
return $this; | ||
} | ||
function setParent(?Company $parent) | ||
{ | ||
$this->parent = $parent; | ||
return $this; | ||
} | ||
function addToData(string $key, DataValue $value) | ||
{ | ||
if (!isset($this->data)) | ||
{ | ||
$this->data = array(); | ||
} | ||
$this->data[$key] = $value; | ||
return $this; | ||
} | ||
/** @param ?array<string, DataValue> $data associative array. */ | ||
function setDataFromAssociativeArray(array $data) | ||
{ | ||
$this->data = $data; | ||
return $this; | ||
} | ||
} |
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,64 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Relewise\Models; | ||
|
||
use DateTime; | ||
|
||
class CompanyAdministrativeAction extends Trackable | ||
{ | ||
public string $typeDefinition = "Relewise.Client.DataTypes.CompanyAdministrativeAction, Relewise.Client"; | ||
public FilterCollection $filters; | ||
public ?Language $language; | ||
public CompanyAdministrativeActionUpdateKind $kind; | ||
public ?Currency $currency; | ||
public static function create(?Language $language, ?Currency $currency, FilterCollection $filters, CompanyAdministrativeActionUpdateKind $kind) : CompanyAdministrativeAction | ||
{ | ||
$result = new CompanyAdministrativeAction(); | ||
$result->language = $language; | ||
$result->currency = $currency; | ||
$result->filters = $filters; | ||
$result->kind = $kind; | ||
return $result; | ||
} | ||
public static function hydrate(array $arr) : CompanyAdministrativeAction | ||
{ | ||
$result = Trackable::hydrateBase(new CompanyAdministrativeAction(), $arr); | ||
if (array_key_exists("filters", $arr)) | ||
{ | ||
$result->filters = FilterCollection::hydrate($arr["filters"]); | ||
} | ||
if (array_key_exists("language", $arr)) | ||
{ | ||
$result->language = Language::hydrate($arr["language"]); | ||
} | ||
if (array_key_exists("kind", $arr)) | ||
{ | ||
$result->kind = CompanyAdministrativeActionUpdateKind::from($arr["kind"]); | ||
} | ||
if (array_key_exists("currency", $arr)) | ||
{ | ||
$result->currency = Currency::hydrate($arr["currency"]); | ||
} | ||
return $result; | ||
} | ||
function setFilters(FilterCollection $filters) | ||
{ | ||
$this->filters = $filters; | ||
return $this; | ||
} | ||
function setLanguage(?Language $language) | ||
{ | ||
$this->language = $language; | ||
return $this; | ||
} | ||
function setKind(CompanyAdministrativeActionUpdateKind $kind) | ||
{ | ||
$this->kind = $kind; | ||
return $this; | ||
} | ||
function setCurrency(?Currency $currency) | ||
{ | ||
$this->currency = $currency; | ||
return $this; | ||
} | ||
} |
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,15 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Relewise\Models; | ||
|
||
use DateTime; | ||
|
||
enum CompanyAdministrativeActionUpdateKind : string | ||
{ | ||
/** Marks the company as disabled */ | ||
case Disable = 'Disable'; | ||
/** Marks the company as enabled */ | ||
case Enable = 'Enable'; | ||
/** Permanently deletes the company, including all previously tracked information for it, as well as any relations - This operation cannot be undone. */ | ||
case Delete = 'Delete'; | ||
} |
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,85 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Relewise\Models; | ||
|
||
use DateTime; | ||
|
||
class CompanyDataFilter extends DataFilter | ||
{ | ||
public string $typeDefinition = "Relewise.Client.Requests.Filters.CompanyDataFilter, Relewise.Client"; | ||
public static function create(string $key, bool $filterOutIfKeyIsNotFound = true, ?Language $language = Null, ?Currency $currency = Null) : CompanyDataFilter | ||
{ | ||
$result = new CompanyDataFilter(); | ||
$result->key = $key; | ||
$result->filterOutIfKeyIsNotFound = $filterOutIfKeyIsNotFound; | ||
$result->language = $language; | ||
$result->currency = $currency; | ||
$result->mustMatchAllConditions = true; | ||
return $result; | ||
} | ||
public static function hydrate(array $arr) : CompanyDataFilter | ||
{ | ||
$result = DataFilter::hydrateBase(new CompanyDataFilter(), $arr); | ||
return $result; | ||
} | ||
function setKey(string $key) | ||
{ | ||
$this->key = $key; | ||
return $this; | ||
} | ||
function setFilterOutIfKeyIsNotFound(bool $filterOutIfKeyIsNotFound) | ||
{ | ||
$this->filterOutIfKeyIsNotFound = $filterOutIfKeyIsNotFound; | ||
return $this; | ||
} | ||
function setMustMatchAllConditions(bool $mustMatchAllConditions) | ||
{ | ||
$this->mustMatchAllConditions = $mustMatchAllConditions; | ||
return $this; | ||
} | ||
function setConditions(?ValueConditionCollection $conditions) | ||
{ | ||
$this->conditions = $conditions; | ||
return $this; | ||
} | ||
function setLanguage(?Language $language) | ||
{ | ||
$this->language = $language; | ||
return $this; | ||
} | ||
function setCurrency(?Currency $currency) | ||
{ | ||
$this->currency = $currency; | ||
return $this; | ||
} | ||
function setObjectPath(string ... $objectPath) | ||
{ | ||
$this->objectPath = $objectPath; | ||
return $this; | ||
} | ||
/** @param ?string[] $objectPath new value. */ | ||
function setObjectPathFromArray(array $objectPath) | ||
{ | ||
$this->objectPath = $objectPath; | ||
return $this; | ||
} | ||
function addToObjectPath(string $objectPath) | ||
{ | ||
if (!isset($this->objectPath)) | ||
{ | ||
$this->objectPath = array(); | ||
} | ||
array_push($this->objectPath, $objectPath); | ||
return $this; | ||
} | ||
function setNegated(bool $negated) | ||
{ | ||
$this->negated = $negated; | ||
return $this; | ||
} | ||
function setSettings(?FilterSettings $settings) | ||
{ | ||
$this->settings = $settings; | ||
return $this; | ||
} | ||
} |
Oops, something went wrong.