Skip to content

Commit 7df2a9d

Browse files
author
github-actions
committed
Generated v6.08
1 parent 3bf2639 commit 7df2a9d

33 files changed

+1135
-73
lines changed

Changes

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Revision history for https://metacpan.org/dist/WebService-Fastly
22

3+
6.08 2024-08-08
4+
5+
[Bug fixes]
6+
- fix(billing): Adjust type of regional data to help the generator
7+
- fix(billing): Correct type of invoice_id field
8+
39
6.07 2024-08-04
410

511
[Enhancements]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WebService::Fastly - an interface to most facets of the Fastly API (https://www.
44

55
# VERSION
66

7-
6.07
7+
6.08
88

99

1010
# SYNOPSIS

docs/Billing.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**end_time** | **DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
1212
**start_time** | **DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
13-
**invoice_id** | **string** | | [optional] [readonly]
1413
**customer_id** | **string** | | [optional] [readonly]
1514
**vendor_state** | **string** | The current state of our third-party billing vendor. One of `up` or `down`. | [optional] [readonly]
1615
**status** | [**BillingStatus**](BillingStatus.md) | | [optional]
1716
**total** | [**BillingTotal**](BillingTotal.md) | | [optional]
18-
**regions** | **HASH[string,HASH[string,object]]** | Breakdown of regional data for products that are region based. | [optional]
17+
**regions** | [**HASH[string,BillingRegions]**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional]
1918

2019
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2120

docs/BillingApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ my $api_instance = WebService::Fastly::BillingApi->new(
8888
);
8989

9090
my $customer_id = "customer_id_example"; # string | Alphanumeric string identifying the customer.
91-
my $invoice_id = "invoice_id_example"; # string | Alphanumeric string identifying the invoice.
91+
my $invoice_id = 4183280; # int |
9292

9393
eval {
9494
my $result = $api_instance->get_invoice_by_id(customer_id => $customer_id, invoice_id => $invoice_id);
@@ -104,7 +104,7 @@ if ($@) {
104104
Name | Type | Description | Notes
105105
------------- | ------------- | ------------- | -------------
106106
**customer_id** | **string**| Alphanumeric string identifying the customer. |
107-
**invoice_id** | **string**| Alphanumeric string identifying the invoice. |
107+
**invoice_id** | **int**| |
108108

109109
### Return type
110110

docs/BillingBandwidth.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# WebService::Fastly::Object::BillingBandwidth
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::BillingBandwidth;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**total** | **double** | | [optional]
12+
**tiers** | [**ARRAY[BillingBandwidthTiers]**](BillingBandwidthTiers.md) | | [optional]
13+
14+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15+
16+

docs/BillingBandwidthTiers.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# WebService::Fastly::Object::BillingBandwidthTiers
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::BillingBandwidthTiers;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**name** | **string** | | [optional]
12+
**units** | **double** | | [optional]
13+
**price** | **double** | | [optional]
14+
**discounted_price** | **double** | | [optional]
15+
**total** | **double** | | [optional]
16+
17+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18+
19+

docs/BillingEstimateInvoiceId.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# WebService::Fastly::Object::BillingEstimateInvoiceId
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::BillingEstimateInvoiceId;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**invoice_id** | **string** | | [optional] [readonly]
12+
13+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14+
15+

docs/BillingEstimateResponse.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**end_time** | **DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
1212
**start_time** | **DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
13-
**invoice_id** | **string** | | [optional] [readonly]
1413
**customer_id** | **string** | | [optional] [readonly]
1514
**vendor_state** | **string** | The current state of our third-party billing vendor. One of `up` or `down`. | [optional] [readonly]
1615
**status** | [**BillingStatus**](BillingStatus.md) | | [optional]
1716
**total** | [**BillingTotal**](BillingTotal.md) | | [optional]
18-
**regions** | **HASH[string,HASH[string,object]]** | Breakdown of regional data for products that are region based. | [optional]
17+
**regions** | [**HASH[string,BillingRegions]**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional]
18+
**invoice_id** | **string** | | [optional] [readonly]
1919
**line_items** | [**ARRAY[BillingEstimateLinesLineItems]**](BillingEstimateLinesLineItems.md) | | [optional]
2020

2121
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/LineItemDataReadOnlyInvoiceId.md docs/BillingInvoiceId.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# WebService::Fastly::Object::LineItemDataReadOnlyInvoiceId
1+
# WebService::Fastly::Object::BillingInvoiceId
22

33
## Load the model package
44
```perl
5-
use WebService::Fastly::Object::LineItemDataReadOnlyInvoiceId;
5+
use WebService::Fastly::Object::BillingInvoiceId;
66
```
77

88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11+
**invoice_id** | **int** | | [optional] [readonly]
1112

1213
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1314

docs/BillingInvoicesApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ my $api_instance = WebService::Fastly::BillingInvoicesApi->new(
3434
#api_key_prefix => {'Fastly-Key' => 'Bearer'},
3535
);
3636

37-
my $invoice_id = "invoice_id_example"; # string | Alphanumeric string identifying the invoice.
37+
my $invoice_id = 4183280; # int |
3838

3939
eval {
4040
my $result = $api_instance->get_invoice_by_invoice_id(invoice_id => $invoice_id);
@@ -49,7 +49,7 @@ if ($@) {
4949

5050
Name | Type | Description | Notes
5151
------------- | ------------- | ------------- | -------------
52-
**invoice_id** | **string**| Alphanumeric string identifying the invoice. |
52+
**invoice_id** | **int**| |
5353

5454
### Return type
5555

docs/BillingRegions.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# WebService::Fastly::Object::BillingRegions
2+
3+
## Load the model package
4+
```perl
5+
use WebService::Fastly::Object::BillingRegions;
6+
```
7+
8+
## Properties
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**cost** | **double** | | [optional]
12+
**bandwidth** | [**BillingBandwidth**](BillingBandwidth.md) | | [optional]
13+
**percentile** | [**BillingBandwidth**](BillingBandwidth.md) | | [optional]
14+
**requests** | [**BillingBandwidth**](BillingBandwidth.md) | | [optional]
15+
16+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
17+
18+

docs/BillingResponse.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**end_time** | **DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
1212
**start_time** | **DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
13-
**invoice_id** | **string** | | [optional] [readonly]
1413
**customer_id** | **string** | | [optional] [readonly]
1514
**vendor_state** | **string** | The current state of our third-party billing vendor. One of `up` or `down`. | [optional] [readonly]
1615
**status** | [**BillingStatus**](BillingStatus.md) | | [optional]
1716
**total** | [**BillingTotal**](BillingTotal.md) | | [optional]
18-
**regions** | **HASH[string,HASH[string,object]]** | Breakdown of regional data for products that are region based. | [optional]
17+
**regions** | [**HASH[string,BillingRegions]**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional]
18+
**invoice_id** | **int** | | [optional] [readonly]
1919
**line_items** | [**ARRAY[BillingResponseLineItem]**](BillingResponseLineItem.md) | | [optional]
2020

2121
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/BillingResponseLineItem.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
1212
**deleted_at** | **DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
1313
**updated_at** | **DateTime** | Date and time in ISO 8601 format. | [optional] [readonly]
1414
**amount** | **double** | | [optional]
15-
**aria_invoice_id** | [**LineItemDataReadOnlyInvoiceId**](LineItemDataReadOnlyInvoiceId.md) | | [optional]
15+
**aria_invoice_id** | **string** | An alphanumeric string identifying the invoice. | [optional] [readonly]
1616
**client_service_id** | **string** | | [optional]
1717
**credit_coupon_code** | **string** | | [optional]
1818
**description** | **string** | | [optional]

docs/EomInvoiceResponse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use WebService::Fastly::Object::EomInvoiceResponse;
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**customer_id** | **string** | Customer ID associated with the invoice. | [optional]
12-
**invoice_id** | **string** | Alphanumeric string identifying the invoice. | [optional]
12+
**invoice_id** | **string** | Numeric string identifying the invoice. | [optional]
1313
**invoice_posted_on** | **DateTime** | Date and time invoice was posted on, in ISO 8601 format. | [optional]
1414
**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]
1515
**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]

docs/Invoice.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use WebService::Fastly::Object::Invoice;
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**customer_id** | **string** | Customer ID associated with the invoice. | [optional]
12-
**invoice_id** | **string** | Alphanumeric string identifying the invoice. | [optional]
12+
**invoice_id** | **string** | Numeric string identifying the invoice. | [optional]
1313
**invoice_posted_on** | **DateTime** | Date and time invoice was posted on, in ISO 8601 format. | [optional]
1414
**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]
1515
**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]

docs/LineItemData.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use WebService::Fastly::Object::LineItemData;
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**amount** | **double** | | [optional]
12-
**aria_invoice_id** | [**LineItemDataReadOnlyInvoiceId**](LineItemDataReadOnlyInvoiceId.md) | | [optional]
12+
**aria_invoice_id** | **string** | An alphanumeric string identifying the invoice. | [optional] [readonly]
1313
**client_service_id** | **string** | | [optional]
1414
**credit_coupon_code** | **string** | | [optional]
1515
**description** | **string** | | [optional]

lib/WebService/Fastly.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package WebService::Fastly;
22

33
use strict;
44
use 5.008_005;
5-
our $VERSION = '6.07';
5+
our $VERSION = '6.08';
66

77
1;
88
__END__

lib/WebService/Fastly/BillingApi.pm

+3-3
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ sub get_invoice {
137137
# Get an invoice
138138
#
139139
# @param string $customer_id Alphanumeric string identifying the customer. (required)
140-
# @param string $invoice_id Alphanumeric string identifying the invoice. (required)
140+
# @param int $invoice_id (required)
141141
{
142142
my $params = {
143143
'customer_id' => {
@@ -146,8 +146,8 @@ sub get_invoice {
146146
required => '1',
147147
},
148148
'invoice_id' => {
149-
data_type => 'string',
150-
description => 'Alphanumeric string identifying the invoice.',
149+
data_type => 'int',
150+
description => '',
151151
required => '1',
152152
},
153153
};

lib/WebService/Fastly/BillingInvoicesApi.pm

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ sub new {
5151
#
5252
# Get invoice by ID.
5353
#
54-
# @param string $invoice_id Alphanumeric string identifying the invoice. (required)
54+
# @param int $invoice_id (required)
5555
{
5656
my $params = {
5757
'invoice_id' => {
58-
data_type => 'string',
59-
description => 'Alphanumeric string identifying the invoice.',
58+
data_type => 'int',
59+
description => '',
6060
required => '1',
6161
},
6262
};

lib/WebService/Fastly/Configuration.pm

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use utf8;
2424
use Log::Any qw($log);
2525
use Carp;
2626

27-
use constant VERSION => '6.07';
27+
use constant VERSION => '6.08';
2828

2929
=head1 Name
3030
@@ -44,7 +44,7 @@ default: 180
4444
4545
String. custom UserAgent header
4646
47-
default: fastly-perl/6.07
47+
default: fastly-perl/6.08
4848
4949
=item api_key: (optional)
5050
@@ -93,7 +93,7 @@ sub new {
9393

9494
# class/static variables
9595
$p{http_timeout} //= 180;
96-
$p{http_user_agent} //= 'fastly-perl/6.07';
96+
$p{http_user_agent} //= 'fastly-perl/6.08';
9797

9898
# authentication setting
9999
$p{api_key} //= {};

lib/WebService/Fastly/Object/Billing.pm

+3-11
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ use Log::Any qw($log);
2828
use Date::Parse;
2929
use DateTime;
3030

31+
use WebService::Fastly::Object::BillingRegions;
3132
use WebService::Fastly::Object::BillingStatus;
3233
use WebService::Fastly::Object::BillingTotal;
3334

@@ -174,13 +175,6 @@ __PACKAGE__->method_documentation({
174175
format => 'date-time',
175176
read_only => 'true',
176177
},
177-
'invoice_id' => {
178-
datatype => 'string',
179-
base_name => 'invoice_id',
180-
description => '',
181-
format => '',
182-
read_only => 'true',
183-
},
184178
'customer_id' => {
185179
datatype => 'string',
186180
base_name => 'customer_id',
@@ -210,7 +204,7 @@ __PACKAGE__->method_documentation({
210204
read_only => 'false',
211205
},
212206
'regions' => {
213-
datatype => 'HASH[string,HASH[string,object]]',
207+
datatype => 'HASH[string,BillingRegions]',
214208
base_name => 'regions',
215209
description => 'Breakdown of regional data for products that are region based.',
216210
format => '',
@@ -221,18 +215,16 @@ __PACKAGE__->method_documentation({
221215
__PACKAGE__->openapi_types( {
222216
'end_time' => 'DateTime',
223217
'start_time' => 'DateTime',
224-
'invoice_id' => 'string',
225218
'customer_id' => 'string',
226219
'vendor_state' => 'string',
227220
'status' => 'BillingStatus',
228221
'total' => 'BillingTotal',
229-
'regions' => 'HASH[string,HASH[string,object]]'
222+
'regions' => 'HASH[string,BillingRegions]'
230223
} );
231224

232225
__PACKAGE__->attribute_map( {
233226
'end_time' => 'end_time',
234227
'start_time' => 'start_time',
235-
'invoice_id' => 'invoice_id',
236228
'customer_id' => 'customer_id',
237229
'vendor_state' => 'vendor_state',
238230
'status' => 'status',

0 commit comments

Comments
 (0)