Skip to content

Commit

Permalink
Generated v3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jul 12, 2023
1 parent fdef419 commit 64f295c
Show file tree
Hide file tree
Showing 23 changed files with 473 additions and 105 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [v3.0.2](https://github.com/fastly/fastly-php/releases/tag/release/v3.0.2) (2023-07-12)

**Bug fixes:**

- fix(billing): rename response field 'lines' to 'line_items'.
- fix(billing): restructure response models like 'aria_invoice_id'.
- fix(billing): make 'sent_at', 'locked', 'require_new_password', 'two_factor_auth_enabled' nullable.

## [v3.0.1](https://github.com/fastly/fastly-php/releases/tag/release/v3.0.1) (2023-07-07)

**Bug fixes:**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# # BillingEstimateResponseAllOf
# # BillingEstimateLines

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**lines** | [**\Fastly\Model\BillingEstimateResponseAllOfLines[]**](BillingEstimateResponseAllOfLines.md) | | [optional]
**line_items** | [**\Fastly\Model\BillingEstimateLinesLineItems[]**](BillingEstimateLinesLineItems.md) | | [optional]


[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# # BillingEstimateResponseAllOfLine
# # BillingEstimateLinesLineItems

## Properties

Expand Down
2 changes: 1 addition & 1 deletion docs/Model/BillingEstimateResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Name | Type | Description | Notes
**status** | [**\Fastly\Model\BillingStatus**](BillingStatus.md) | | [optional]
**total** | [**\Fastly\Model\BillingTotal**](BillingTotal.md) | | [optional]
**regions** | **array<string,array<string,object>>** | Breakdown of regional data for products that are region based. | [optional]
**lines** | [**\Fastly\Model\BillingEstimateResponseAllOfLines[]**](BillingEstimateResponseAllOfLines.md) | | [optional]
**line_items** | [**\Fastly\Model\BillingEstimateLinesLineItems[]**](BillingEstimateLinesLineItems.md) | | [optional]


[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# # BillingResponseAllOf
# # BillingResponseItemItemsData

## Properties

Expand Down
2 changes: 1 addition & 1 deletion docs/Model/BillingResponseLineItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**deleted_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**updated_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**amount** | **float** | | [optional]
**aria_invoice_id** | **string** | | [optional] [readonly]
**aria_invoice_id** | [**\Fastly\Model\LineItemDataReadOnlyInvoiceId**](LineItemDataReadOnlyInvoiceId.md) | | [optional]
**client_service_id** | **string** | | [optional]
**credit_coupon_code** | **string** | | [optional]
**description** | **string** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/BillingStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**status** | **string** | What the current status of this invoice can be. | [optional] [one of: 'Pending', 'Outstanding', 'Paid', 'MTD']
**sent_at** | **\DateTime** | | [optional]
**sent_at** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]


[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# # BillingResponseLineItemAllOf
# # LineItemData

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**amount** | **float** | | [optional]
**aria_invoice_id** | **string** | | [optional] [readonly]
**aria_invoice_id** | [**\Fastly\Model\LineItemDataReadOnlyInvoiceId**](LineItemDataReadOnlyInvoiceId.md) | | [optional]
**client_service_id** | **string** | | [optional]
**credit_coupon_code** | **string** | | [optional]
**description** | **string** | | [optional]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# # BillingEstimateResponseAllOfLines
# # LineItemDataReadOnlyInvoiceId

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**line** | [**\Fastly\Model\BillingEstimateResponseAllOfLine**](BillingEstimateResponseAllOfLine.md) | | [optional]


[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
12 changes: 12 additions & 0 deletions docs/Model/SchemasUserResponseReadOnly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# # SchemasUserResponseReadOnly

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **string** | | [optional] [readonly]
**email_hash** | **string** | The alphanumeric string identifying a email login. | [optional] [readonly]
**customer_id** | **string** | | [optional] [readonly]


[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# # UserResponseAllOf
# # UserResponseReadOnly

## Properties

Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'fastly-php/3.0.1';
protected $userAgent = 'fastly-php/3.0.2';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -453,7 +453,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the schema document: 1.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 3.0.1' . PHP_EOL;
$report .= ' SDK Package Version: 3.0.2' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* BillingEstimateResponseAllOf
* BillingEstimateLines
*
* PHP version 7.3
*
Expand All @@ -27,7 +27,7 @@
use \Fastly\ObjectSerializer;

/**
* BillingEstimateResponseAllOf Class Doc Comment
* BillingEstimateLines Class Doc Comment
*
* @category Class
* @package Fastly
Expand All @@ -36,7 +36,7 @@
* @template TKey int|null
* @template TValue mixed|null
*/
class BillingEstimateResponseAllOf implements ModelInterface, ArrayAccess, \JsonSerializable
class BillingEstimateLines implements ModelInterface, ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;

Expand All @@ -45,15 +45,15 @@ class BillingEstimateResponseAllOf implements ModelInterface, ArrayAccess, \Json
*
* @var string
*/
protected static $fastlyModelName = 'billing_estimate_response_allOf';
protected static $fastlyModelName = 'billing_estimate_lines';

/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $fastlyTypes = [
'lines' => '\Fastly\Model\BillingEstimateResponseAllOfLines[]'
'line_items' => '\Fastly\Model\BillingEstimateLinesLineItems[]'
];

/**
Expand All @@ -64,7 +64,7 @@ class BillingEstimateResponseAllOf implements ModelInterface, ArrayAccess, \Json
* @psalm-var array<string, string|null>
*/
protected static $fastlyFormats = [
'lines' => null
'line_items' => null
];

/**
Expand Down Expand Up @@ -94,7 +94,7 @@ public static function fastlyFormats()
* @var string[]
*/
protected static $attributeMap = [
'lines' => 'lines'
'line_items' => 'line_items'
];

/**
Expand All @@ -103,7 +103,7 @@ public static function fastlyFormats()
* @var string[]
*/
protected static $setters = [
'lines' => 'setLines'
'line_items' => 'setLineItems'
];

/**
Expand All @@ -112,7 +112,7 @@ public static function fastlyFormats()
* @var string[]
*/
protected static $getters = [
'lines' => 'getLines'
'line_items' => 'getLineItems'
];

/**
Expand Down Expand Up @@ -172,7 +172,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
$this->container['lines'] = $data['lines'] ?? null;
$this->container['line_items'] = $data['line_items'] ?? null;
}

/**
Expand Down Expand Up @@ -200,25 +200,25 @@ public function valid()


/**
* Gets lines
* Gets line_items
*
* @return \Fastly\Model\BillingEstimateResponseAllOfLines[]|null
* @return \Fastly\Model\BillingEstimateLinesLineItems[]|null
*/
public function getLines()
public function getLineItems()
{
return $this->container['lines'];
return $this->container['line_items'];
}

/**
* Sets lines
* Sets line_items
*
* @param \Fastly\Model\BillingEstimateResponseAllOfLines[]|null $lines lines
* @param \Fastly\Model\BillingEstimateLinesLineItems[]|null $line_items line_items
*
* @return self
*/
public function setLines($lines)
public function setLineItems($line_items)
{
$this->container['lines'] = $lines;
$this->container['line_items'] = $line_items;

return $this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* BillingEstimateResponseAllOfLine
* BillingEstimateLinesLineItems
*
* PHP version 7.3
*
Expand All @@ -27,7 +27,7 @@
use \Fastly\ObjectSerializer;

/**
* BillingEstimateResponseAllOfLine Class Doc Comment
* BillingEstimateLinesLineItems Class Doc Comment
*
* @category Class
* @package Fastly
Expand All @@ -36,7 +36,7 @@
* @template TKey int|null
* @template TValue mixed|null
*/
class BillingEstimateResponseAllOfLine implements ModelInterface, ArrayAccess, \JsonSerializable
class BillingEstimateLinesLineItems implements ModelInterface, ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;

Expand All @@ -45,7 +45,7 @@ class BillingEstimateResponseAllOfLine implements ModelInterface, ArrayAccess, \
*
* @var string
*/
protected static $fastlyModelName = 'billing_estimate_response_allOf_line';
protected static $fastlyModelName = 'billing_estimate_lines_line_items';

/**
* Array of property to type mappings. Used for (de)serialization
Expand Down
28 changes: 14 additions & 14 deletions lib/Model/BillingEstimateResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class BillingEstimateResponse implements ModelInterface, ArrayAccess, \JsonSeria
'status' => '\Fastly\Model\BillingStatus',
'total' => '\Fastly\Model\BillingTotal',
'regions' => 'array<string,array<string,object>>',
'lines' => '\Fastly\Model\BillingEstimateResponseAllOfLines[]'
'line_items' => '\Fastly\Model\BillingEstimateLinesLineItems[]'
];

/**
Expand All @@ -80,7 +80,7 @@ class BillingEstimateResponse implements ModelInterface, ArrayAccess, \JsonSeria
'status' => null,
'total' => null,
'regions' => null,
'lines' => null
'line_items' => null
];

/**
Expand Down Expand Up @@ -118,7 +118,7 @@ public static function fastlyFormats()
'status' => 'status',
'total' => 'total',
'regions' => 'regions',
'lines' => 'lines'
'line_items' => 'line_items'
];

/**
Expand All @@ -135,7 +135,7 @@ public static function fastlyFormats()
'status' => 'setStatus',
'total' => 'setTotal',
'regions' => 'setRegions',
'lines' => 'setLines'
'line_items' => 'setLineItems'
];

/**
Expand All @@ -152,7 +152,7 @@ public static function fastlyFormats()
'status' => 'getStatus',
'total' => 'getTotal',
'regions' => 'getRegions',
'lines' => 'getLines'
'line_items' => 'getLineItems'
];

/**
Expand Down Expand Up @@ -220,7 +220,7 @@ public function __construct(array $data = null)
$this->container['status'] = $data['status'] ?? null;
$this->container['total'] = $data['total'] ?? null;
$this->container['regions'] = $data['regions'] ?? null;
$this->container['lines'] = $data['lines'] ?? null;
$this->container['line_items'] = $data['line_items'] ?? null;
}

/**
Expand Down Expand Up @@ -440,25 +440,25 @@ public function setRegions($regions)
}

/**
* Gets lines
* Gets line_items
*
* @return \Fastly\Model\BillingEstimateResponseAllOfLines[]|null
* @return \Fastly\Model\BillingEstimateLinesLineItems[]|null
*/
public function getLines()
public function getLineItems()
{
return $this->container['lines'];
return $this->container['line_items'];
}

/**
* Sets lines
* Sets line_items
*
* @param \Fastly\Model\BillingEstimateResponseAllOfLines[]|null $lines lines
* @param \Fastly\Model\BillingEstimateLinesLineItems[]|null $line_items line_items
*
* @return self
*/
public function setLines($lines)
public function setLineItems($line_items)
{
$this->container['lines'] = $lines;
$this->container['line_items'] = $line_items;

return $this;
}
Expand Down
Loading

0 comments on commit 64f295c

Please sign in to comment.