Skip to content

Commit

Permalink
Generated v5.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 8, 2024
1 parent c84480a commit e00b245
Show file tree
Hide file tree
Showing 31 changed files with 1,690 additions and 144 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [v5.7.0](https://github.com/fastly/fastly-php/releases/tag/release/v5.7.0) (2024-08-08)

**Bug fixes:**

- fix(billing): Adjust type of regional data to help the generator
- fix(billing): Correct type of invoice_id field

## [v5.6.0](https://github.com/fastly/fastly-php/releases/tag/release/v5.6.0) (2024-08-04)

**Enhancements:**
Expand Down
4 changes: 2 additions & 2 deletions docs/Api/BillingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Get the invoice for the given invoice_id.
### Example
```php
$options['customer_id'] = 'customer_id_example'; // string | Alphanumeric string identifying the customer.
$options['invoice_id'] = 'invoice_id_example'; // string | Alphanumeric string identifying the invoice.
$options['invoice_id'] = 4183280; // int

try {
$result = $apiInstance->getInvoiceById($options);
Expand All @@ -85,7 +85,7 @@ Note: the input parameter is an associative array with the keys listed below.
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**customer_id** | **string** | Alphanumeric string identifying the customer. |
**invoice_id** | **string** | Alphanumeric string identifying the invoice. |
**invoice_id** | **int** | |

### Return type

Expand Down
4 changes: 2 additions & 2 deletions docs/Api/BillingInvoicesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Returns invoice associated with the invoice id.

### Example
```php
$options['invoice_id'] = 'invoice_id_example'; // string | Alphanumeric string identifying the invoice.
$options['invoice_id'] = 4183280; // int

try {
$result = $apiInstance->getInvoiceByInvoiceId($options);
Expand All @@ -47,7 +47,7 @@ Note: the input parameter is an associative array with the keys listed below.

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**invoice_id** | **string** | Alphanumeric string identifying the invoice. |
**invoice_id** | **int** | |

### Return type

Expand Down
3 changes: 1 addition & 2 deletions docs/Model/Billing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**end_time** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**start_time** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**invoice_id** | **string** | | [optional] [readonly]
**customer_id** | **string** | | [optional] [readonly]
**vendor_state** | **string** | The current state of our third-party billing vendor. One of `up` or `down`. | [optional] [readonly]
**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]
**regions** | [**array<string,\Fastly\Model\BillingRegions>**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional]


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

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**total** | **float** | | [optional]
**tiers** | [**\Fastly\Model\BillingBandwidthTiers[]**](BillingBandwidthTiers.md) | | [optional]


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

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **string** | | [optional]
**units** | **float** | | [optional]
**price** | **float** | | [optional]
**discounted_price** | **float** | | [optional]
**total** | **float** | | [optional]


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

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**invoice_id** | **string** | | [optional] [readonly]


[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
4 changes: 2 additions & 2 deletions docs/Model/BillingEstimateResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**end_time** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**start_time** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**invoice_id** | **string** | | [optional] [readonly]
**customer_id** | **string** | | [optional] [readonly]
**vendor_state** | **string** | The current state of our third-party billing vendor. One of `up` or `down`. | [optional] [readonly]
**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]
**regions** | [**array<string,\Fastly\Model\BillingRegions>**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional]
**invoice_id** | **string** | | [optional] [readonly]
**line_items** | [**\Fastly\Model\BillingEstimateLinesLineItems[]**](BillingEstimateLinesLineItems.md) | | [optional]


Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# # LineItemDataReadOnlyInvoiceId
# # BillingInvoiceId

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**invoice_id** | **int** | | [optional] [readonly]


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

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**cost** | **float** | | [optional]
**bandwidth** | [**\Fastly\Model\BillingBandwidth**](BillingBandwidth.md) | | [optional]
**percentile** | [**\Fastly\Model\BillingBandwidth**](BillingBandwidth.md) | | [optional]
**requests** | [**\Fastly\Model\BillingBandwidth**](BillingBandwidth.md) | | [optional]


[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
4 changes: 2 additions & 2 deletions docs/Model/BillingResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**end_time** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**start_time** | **\DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
**invoice_id** | **string** | | [optional] [readonly]
**customer_id** | **string** | | [optional] [readonly]
**vendor_state** | **string** | The current state of our third-party billing vendor. One of `up` or `down`. | [optional] [readonly]
**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]
**regions** | [**array<string,\Fastly\Model\BillingRegions>**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional]
**invoice_id** | **int** | | [optional] [readonly]
**line_items** | [**\Fastly\Model\BillingResponseLineItem[]**](BillingResponseLineItem.md) | | [optional]


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** | [**\Fastly\Model\LineItemDataReadOnlyInvoiceId**](LineItemDataReadOnlyInvoiceId.md) | | [optional]
**aria_invoice_id** | **string** | An alphanumeric string identifying the invoice. | [optional] [readonly]
**client_service_id** | **string** | | [optional]
**credit_coupon_code** | **string** | | [optional]
**description** | **string** | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/EomInvoiceResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**customer_id** | **string** | Customer ID associated with the invoice. | [optional]
**invoice_id** | **string** | Alphanumeric string identifying the invoice. | [optional]
**invoice_id** | **string** | Numeric string identifying the invoice. | [optional]
**invoice_posted_on** | **\DateTime** | Date and time invoice was posted on, in ISO 8601 format. | [optional]
**billing_start_date** | **\DateTime** | Date and time (in ISO 8601 format) for initiation point of a billing cycle, signifying the start of charges for a service or subscription. | [optional]
**billing_end_date** | **\DateTime** | Date and time (in ISO 8601 format) for termination point of a billing cycle, signifying the end of charges for a service or subscription. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/Invoice.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**customer_id** | **string** | Customer ID associated with the invoice. | [optional]
**invoice_id** | **string** | Alphanumeric string identifying the invoice. | [optional]
**invoice_id** | **string** | Numeric string identifying the invoice. | [optional]
**invoice_posted_on** | **\DateTime** | Date and time invoice was posted on, in ISO 8601 format. | [optional]
**billing_start_date** | **\DateTime** | Date and time (in ISO 8601 format) for initiation point of a billing cycle, signifying the start of charges for a service or subscription. | [optional]
**billing_end_date** | **\DateTime** | Date and time (in ISO 8601 format) for termination point of a billing cycle, signifying the end of charges for a service or subscription. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/LineItemData.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**amount** | **float** | | [optional]
**aria_invoice_id** | [**\Fastly\Model\LineItemDataReadOnlyInvoiceId**](LineItemDataReadOnlyInvoiceId.md) | | [optional]
**aria_invoice_id** | **string** | An alphanumeric string identifying the invoice. | [optional] [readonly]
**client_service_id** | **string** | | [optional]
**credit_coupon_code** | **string** | | [optional]
**description** | **string** | | [optional]
Expand Down
10 changes: 5 additions & 5 deletions lib/Api/BillingApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public function getInvoiceRequest($options)
* URL: https://api.fastly.com
*
* @param string $customer_id Alphanumeric string identifying the customer. (required)
* @param string $invoice_id Alphanumeric string identifying the invoice. (required)
* @param int $invoice_id invoice_id (required)
*
* @throws \Fastly\ApiException on non-2xx response
* @throws \InvalidArgumentException
Expand All @@ -485,7 +485,7 @@ public function getInvoiceById($options)
* URL: https://api.fastly.com
*
* @param string $customer_id Alphanumeric string identifying the customer. (required)
* @param string $invoice_id Alphanumeric string identifying the invoice. (required)
* @param int $invoice_id (required)
*
* @throws \Fastly\ApiException on non-2xx response
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -596,7 +596,7 @@ public function getInvoiceByIdWithHttpInfo($options)
* URL: https://api.fastly.com
*
* @param string $customer_id Alphanumeric string identifying the customer. (required)
* @param string $invoice_id Alphanumeric string identifying the invoice. (required)
* @param int $invoice_id (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
Expand All @@ -622,7 +622,7 @@ function ($response) {
* URL: https://api.fastly.com
*
* @param string $customer_id Alphanumeric string identifying the customer. (required)
* @param string $invoice_id Alphanumeric string identifying the invoice. (required)
* @param int $invoice_id (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
Expand Down Expand Up @@ -674,7 +674,7 @@ function ($exception) {
* URL: https://api.fastly.com
*
* @param string $customer_id Alphanumeric string identifying the customer. (required)
* @param string $invoice_id Alphanumeric string identifying the invoice. (required)
* @param int $invoice_id (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
Expand Down
10 changes: 5 additions & 5 deletions lib/Api/BillingInvoicesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function getConfig()
* This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
* URL: https://api.fastly.com
*
* @param string $invoice_id Alphanumeric string identifying the invoice. (required)
* @param int $invoice_id invoice_id (required)
*
* @throws \Fastly\ApiException on non-2xx response
* @throws \InvalidArgumentException
Expand All @@ -141,7 +141,7 @@ public function getInvoiceByInvoiceId($options)
* This operation contains Fastly API host(s). Use 'hostIndex' to select the host.
* URL: https://api.fastly.com
*
* @param string $invoice_id Alphanumeric string identifying the invoice. (required)
* @param int $invoice_id (required)
*
* @throws \Fastly\ApiException on non-2xx response
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -311,7 +311,7 @@ public function getInvoiceByInvoiceIdWithHttpInfo($options)
* This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
* URL: https://api.fastly.com
*
* @param string $invoice_id Alphanumeric string identifying the invoice. (required)
* @param int $invoice_id (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
Expand All @@ -336,7 +336,7 @@ function ($response) {
* This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
* URL: https://api.fastly.com
*
* @param string $invoice_id Alphanumeric string identifying the invoice. (required)
* @param int $invoice_id (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
Expand Down Expand Up @@ -387,7 +387,7 @@ function ($exception) {
* This operation contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
* URL: https://api.fastly.com
*
* @param string $invoice_id Alphanumeric string identifying the invoice. (required)
* @param int $invoice_id (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
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/5.6.0';
protected $userAgent = 'fastly-php/5.7.0';

/**
* 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: 5.6.0' . PHP_EOL;
$report .= ' SDK Package Version: 5.7.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
Loading

0 comments on commit e00b245

Please sign in to comment.