Skip to content

Commit

Permalink
Merge pull request #60 from apideck-libraries/generator-update
Browse files Browse the repository at this point in the history
Automated update by SDK Generator
  • Loading branch information
ritik-singh07 authored May 10, 2024
2 parents 3a24cdf + b8e6118 commit 4d6c913
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 10 deletions.
2 changes: 2 additions & 0 deletions src/gen/docs/models/EcommerceOrdersFilter.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
`email` | **string** | Customer email address to filter on | [optional]
`customer_id` | **string** | Customer id to filter on | [optional]
`updated_since` | **string** | Minimum date the order was last modified | [optional]
`created_since` | **string** | Minimum date the order was created | [optional]



Expand Down
1 change: 1 addition & 0 deletions src/gen/docs/models/InvoicesFilter.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
`updated_since` | **\DateTime** | | [optional]
`created_since` | **\DateTime** | | [optional]



Expand Down
70 changes: 65 additions & 5 deletions src/gen/lib/Model/EcommerceOrdersFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ class EcommerceOrdersFilter implements ModelInterface, ArrayAccess, \JsonSeriali
*/
protected static $openAPITypes = [
'email' => 'string',
'customer_id' => 'string'
'customer_id' => 'string',
'updated_since' => 'string',
'created_since' => 'string'
];

/**
Expand All @@ -72,7 +74,9 @@ class EcommerceOrdersFilter implements ModelInterface, ArrayAccess, \JsonSeriali
*/
protected static $openAPIFormats = [
'email' => null,
'customer_id' => null
'customer_id' => null,
'updated_since' => null,
'created_since' => null
];

/**
Expand Down Expand Up @@ -103,7 +107,9 @@ public static function openAPIFormats()
*/
protected static $attributeMap = [
'email' => 'email',
'customer_id' => 'customer_id'
'customer_id' => 'customer_id',
'updated_since' => 'updated_since',
'created_since' => 'created_since'
];

/**
Expand All @@ -113,7 +119,9 @@ public static function openAPIFormats()
*/
protected static $setters = [
'email' => 'setEmail',
'customer_id' => 'setCustomerId'
'customer_id' => 'setCustomerId',
'updated_since' => 'setUpdatedSince',
'created_since' => 'setCreatedSince'
];

/**
Expand All @@ -123,7 +131,9 @@ public static function openAPIFormats()
*/
protected static $getters = [
'email' => 'getEmail',
'customer_id' => 'getCustomerId'
'customer_id' => 'getCustomerId',
'updated_since' => 'getUpdatedSince',
'created_since' => 'getCreatedSince'
];

/**
Expand Down Expand Up @@ -185,6 +195,8 @@ public function __construct(array $data = null)
{
$this->container['email'] = $data['email'] ?? null;
$this->container['customer_id'] = $data['customer_id'] ?? null;
$this->container['updated_since'] = $data['updated_since'] ?? null;
$this->container['created_since'] = $data['created_since'] ?? null;
}

/**
Expand Down Expand Up @@ -258,6 +270,54 @@ public function setCustomerId($customer_id)

return $this;
}

/**
* Gets updated_since
*
* @return string|null
*/
public function getUpdatedSince()
{
return $this->container['updated_since'];
}

/**
* Sets updated_since
*
* @param string|null $updated_since Minimum date the order was last modified
*
* @return self
*/
public function setUpdatedSince($updated_since)
{
$this->container['updated_since'] = $updated_since;

return $this;
}

/**
* Gets created_since
*
* @return string|null
*/
public function getCreatedSince()
{
return $this->container['created_since'];
}

/**
* Sets created_since
*
* @param string|null $created_since Minimum date the order was created
*
* @return self
*/
public function setCreatedSince($created_since)
{
$this->container['created_since'] = $created_since;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
40 changes: 35 additions & 5 deletions src/gen/lib/Model/InvoicesFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ class InvoicesFilter implements ModelInterface, ArrayAccess, \JsonSerializable
* @var string[]
*/
protected static $openAPITypes = [
'updated_since' => '\DateTime'
'updated_since' => '\DateTime',
'created_since' => '\DateTime'
];

/**
Expand All @@ -70,7 +71,8 @@ class InvoicesFilter implements ModelInterface, ArrayAccess, \JsonSerializable
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'updated_since' => 'date-time'
'updated_since' => 'date-time',
'created_since' => 'date-time'
];

/**
Expand Down Expand Up @@ -100,7 +102,8 @@ public static function openAPIFormats()
* @var string[]
*/
protected static $attributeMap = [
'updated_since' => 'updated_since'
'updated_since' => 'updated_since',
'created_since' => 'created_since'
];

/**
Expand All @@ -109,7 +112,8 @@ public static function openAPIFormats()
* @var string[]
*/
protected static $setters = [
'updated_since' => 'setUpdatedSince'
'updated_since' => 'setUpdatedSince',
'created_since' => 'setCreatedSince'
];

/**
Expand All @@ -118,7 +122,8 @@ public static function openAPIFormats()
* @var string[]
*/
protected static $getters = [
'updated_since' => 'getUpdatedSince'
'updated_since' => 'getUpdatedSince',
'created_since' => 'getCreatedSince'
];

/**
Expand Down Expand Up @@ -179,6 +184,7 @@ public function getModelName()
public function __construct(array $data = null)
{
$this->container['updated_since'] = $data['updated_since'] ?? null;
$this->container['created_since'] = $data['created_since'] ?? null;
}

/**
Expand Down Expand Up @@ -228,6 +234,30 @@ public function setUpdatedSince($updated_since)

return $this;
}

/**
* Gets created_since
*
* @return \DateTime|null
*/
public function getCreatedSince()
{
return $this->container['created_since'];
}

/**
* Sets created_since
*
* @param \DateTime|null $created_since created_since
*
* @return self
*/
public function setCreatedSince($created_since)
{
$this->container['created_since'] = $created_since;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
18 changes: 18 additions & 0 deletions src/gen/test/Model/EcommerceOrdersFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,22 @@ public function testPropertyCustomerId()
// TODO: implement
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "updated_since"
*/
public function testPropertyUpdatedSince()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "created_since"
*/
public function testPropertyCreatedSince()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
}
}
9 changes: 9 additions & 0 deletions src/gen/test/Model/InvoicesFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,13 @@ public function testPropertyUpdatedSince()
// TODO: implement
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "created_since"
*/
public function testPropertyCreatedSince()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
}
}

0 comments on commit 4d6c913

Please sign in to comment.