Skip to content

Commit 767f245

Browse files
author
github-actions
committed
Generated v8.7.0
1 parent 15f8879 commit 767f245

33 files changed

+1066
-65
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [v8.7.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v8.7.0) (2024-08-08)
4+
5+
**Bug fixes:**
6+
7+
- fix(billing): Adjust type of regional data to help the generator
8+
- fix(billing): Correct type of invoice_id field
9+
310
## [v8.6.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v8.6.0) (2024-08-04)
411

512
**Enhancements:**

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A Ruby client library for interacting with most facets of the [Fastly API](https
88
To install via RubyGems, add the following to your project's `Gemfile`:
99

1010
```ruby
11-
gem 'fastly', '~> 8.6.0'
11+
gem 'fastly', '~> 8.7.0'
1212
```
1313

1414
Then run `bundle install`.

docs/Billing.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
| ---- | ---- | ----------- | ----- |
77
| **end_time** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
88
| **start_time** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
9-
| **invoice_id** | **String** | | [optional][readonly] |
109
| **customer_id** | **String** | | [optional][readonly] |
1110
| **vendor_state** | **String** | The current state of our third-party billing vendor. One of `up` or `down`. | [optional][readonly] |
1211
| **status** | [**BillingStatus**](BillingStatus.md) | | [optional] |
1312
| **total** | [**BillingTotal**](BillingTotal.md) | | [optional] |
14-
| **regions** | **Hash<String, Hash<String, Object>>** | Breakdown of regional data for products that are region based. | [optional] |
13+
| **regions** | [**Hash<String, BillingRegions>**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional] |
1514

1615
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
1716

docs/BillingApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Get the invoice for the given invoice_id.
7171
api_instance = Fastly::BillingApi.new
7272
opts = {
7373
customer_id: 'customer_id_example', # String | Alphanumeric string identifying the customer.
74-
invoice_id: 'invoice_id_example', # String | Alphanumeric string identifying the invoice.
74+
invoice_id: 4183280, # Integer |
7575
}
7676

7777
begin
@@ -88,7 +88,7 @@ end
8888
| Name | Type | Description | Notes |
8989
| ---- | ---- | ----------- | ----- |
9090
| **customer_id** | **String** | Alphanumeric string identifying the customer. | |
91-
| **invoice_id** | **String** | Alphanumeric string identifying the invoice. | |
91+
| **invoice_id** | **Integer** | | |
9292

9393
### Return type
9494

docs/BillingBandwidth.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Fastly::BillingBandwidth
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **total** | **Float** | | [optional] |
8+
| **tiers** | [**Array<BillingBandwidthTiers>**](BillingBandwidthTiers.md) | | [optional] |
9+
10+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11+

docs/BillingBandwidthTiers.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Fastly::BillingBandwidthTiers
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **name** | **String** | | [optional] |
8+
| **units** | **Float** | | [optional] |
9+
| **price** | **Float** | | [optional] |
10+
| **discounted_price** | **Float** | | [optional] |
11+
| **total** | **Float** | | [optional] |
12+
13+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
14+

docs/BillingEstimateInvoiceId.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Fastly::BillingEstimateInvoiceId
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **invoice_id** | **String** | | [optional][readonly] |
8+
9+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10+

docs/BillingEstimateResponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
| ---- | ---- | ----------- | ----- |
77
| **end_time** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
88
| **start_time** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
9-
| **invoice_id** | **String** | | [optional][readonly] |
109
| **customer_id** | **String** | | [optional][readonly] |
1110
| **vendor_state** | **String** | The current state of our third-party billing vendor. One of `up` or `down`. | [optional][readonly] |
1211
| **status** | [**BillingStatus**](BillingStatus.md) | | [optional] |
1312
| **total** | [**BillingTotal**](BillingTotal.md) | | [optional] |
14-
| **regions** | **Hash<String, Hash<String, Object>>** | Breakdown of regional data for products that are region based. | [optional] |
13+
| **regions** | [**Hash<String, BillingRegions>**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional] |
14+
| **invoice_id** | **String** | | [optional][readonly] |
1515
| **line_items** | [**Array<BillingEstimateLinesLineItems>**](BillingEstimateLinesLineItems.md) | | [optional] |
1616

1717
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
# Fastly::LineItemDataReadOnlyInvoiceId
1+
# Fastly::BillingInvoiceId
22

33
## Properties
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7+
| **invoice_id** | **Integer** | | [optional][readonly] |
78

89
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
910

docs/BillingInvoicesApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Returns invoice associated with the invoice id.
3131
```ruby
3232
api_instance = Fastly::BillingInvoicesApi.new
3333
opts = {
34-
invoice_id: 'invoice_id_example', # String | Alphanumeric string identifying the invoice.
34+
invoice_id: 4183280, # Integer |
3535
}
3636

3737
begin
@@ -47,7 +47,7 @@ end
4747

4848
| Name | Type | Description | Notes |
4949
| ---- | ---- | ----------- | ----- |
50-
| **invoice_id** | **String** | Alphanumeric string identifying the invoice. | |
50+
| **invoice_id** | **Integer** | | |
5151

5252
### Return type
5353

docs/BillingRegions.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Fastly::BillingRegions
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **cost** | **Float** | | [optional] |
8+
| **bandwidth** | [**BillingBandwidth**](BillingBandwidth.md) | | [optional] |
9+
| **percentile** | [**BillingBandwidth**](BillingBandwidth.md) | | [optional] |
10+
| **requests** | [**BillingBandwidth**](BillingBandwidth.md) | | [optional] |
11+
12+
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
13+

docs/BillingResponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
| ---- | ---- | ----------- | ----- |
77
| **end_time** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
88
| **start_time** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
9-
| **invoice_id** | **String** | | [optional][readonly] |
109
| **customer_id** | **String** | | [optional][readonly] |
1110
| **vendor_state** | **String** | The current state of our third-party billing vendor. One of `up` or `down`. | [optional][readonly] |
1211
| **status** | [**BillingStatus**](BillingStatus.md) | | [optional] |
1312
| **total** | [**BillingTotal**](BillingTotal.md) | | [optional] |
14-
| **regions** | **Hash<String, Hash<String, Object>>** | Breakdown of regional data for products that are region based. | [optional] |
13+
| **regions** | [**Hash<String, BillingRegions>**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional] |
14+
| **invoice_id** | **Integer** | | [optional][readonly] |
1515
| **line_items** | [**Array<BillingResponseLineItem>**](BillingResponseLineItem.md) | | [optional] |
1616

1717
[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

docs/BillingResponseLineItem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
| **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
99
| **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
1010
| **amount** | **Float** | | [optional] |
11-
| **aria_invoice_id** | [**LineItemDataReadOnlyInvoiceId**](LineItemDataReadOnlyInvoiceId.md) | | [optional] |
11+
| **aria_invoice_id** | **String** | An alphanumeric string identifying the invoice. | [optional][readonly] |
1212
| **client_service_id** | **String** | | [optional] |
1313
| **credit_coupon_code** | **String** | | [optional] |
1414
| **description** | **String** | | [optional] |

docs/EomInvoiceResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
77
| **customer_id** | **String** | Customer ID associated with the invoice. | [optional] |
8-
| **invoice_id** | **String** | Alphanumeric string identifying the invoice. | [optional] |
8+
| **invoice_id** | **String** | Numeric string identifying the invoice. | [optional] |
99
| **invoice_posted_on** | **Time** | Date and time invoice was posted on, in ISO 8601 format. | [optional] |
1010
| **billing_start_date** | **Time** | 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] |
1111
| **billing_end_date** | **Time** | 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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
77
| **customer_id** | **String** | Customer ID associated with the invoice. | [optional] |
8-
| **invoice_id** | **String** | Alphanumeric string identifying the invoice. | [optional] |
8+
| **invoice_id** | **String** | Numeric string identifying the invoice. | [optional] |
99
| **invoice_posted_on** | **Time** | Date and time invoice was posted on, in ISO 8601 format. | [optional] |
1010
| **billing_start_date** | **Time** | 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] |
1111
| **billing_end_date** | **Time** | 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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
77
| **amount** | **Float** | | [optional] |
8-
| **aria_invoice_id** | [**LineItemDataReadOnlyInvoiceId**](LineItemDataReadOnlyInvoiceId.md) | | [optional] |
8+
| **aria_invoice_id** | **String** | An alphanumeric string identifying the invoice. | [optional][readonly] |
99
| **client_service_id** | **String** | | [optional] |
1010
| **credit_coupon_code** | **String** | | [optional] |
1111
| **description** | **String** | | [optional] |

lib/fastly.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,14 @@
4646
require 'fastly/models/billing_address_response_data'
4747
require 'fastly/models/billing_address_verification_error_response'
4848
require 'fastly/models/billing_address_verification_error_response_errors'
49+
require 'fastly/models/billing_bandwidth'
50+
require 'fastly/models/billing_bandwidth_tiers'
51+
require 'fastly/models/billing_estimate_invoice_id'
4952
require 'fastly/models/billing_estimate_lines'
5053
require 'fastly/models/billing_estimate_lines_line_items'
5154
require 'fastly/models/billing_estimate_response'
55+
require 'fastly/models/billing_invoice_id'
56+
require 'fastly/models/billing_regions'
5257
require 'fastly/models/billing_response'
5358
require 'fastly/models/billing_response_item_items_data'
5459
require 'fastly/models/billing_response_line_item'
@@ -214,7 +219,6 @@
214219
require 'fastly/models/legacy_waf_tag'
215220
require 'fastly/models/legacy_waf_update_status'
216221
require 'fastly/models/line_item_data'
217-
require 'fastly/models/line_item_data_read_only_invoice_id'
218222
require 'fastly/models/list_dashboards_response'
219223
require 'fastly/models/list_eom_invoices_response'
220224
require 'fastly/models/listinvoices'

lib/fastly/api/billing_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def get_invoice_with_http_info(opts = {})
9090
# Get an invoice
9191
# Get the invoice for the given invoice_id.
9292
# @option opts [String] :customer_id Alphanumeric string identifying the customer. (required)
93-
# @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
93+
# @option opts [Integer] :invoice_id (required)
9494
# @return [BillingResponse]
9595
def get_invoice_by_id(opts = {})
9696
data, _status_code, _headers = get_invoice_by_id_with_http_info(opts)
@@ -100,7 +100,7 @@ def get_invoice_by_id(opts = {})
100100
# Get an invoice
101101
# Get the invoice for the given invoice_id.
102102
# @option opts [String] :customer_id Alphanumeric string identifying the customer. (required)
103-
# @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
103+
# @option opts [Integer] :invoice_id (required)
104104
# @return [Array<(BillingResponse, Integer, Hash)>] BillingResponse data, response status code and response headers
105105
def get_invoice_by_id_with_http_info(opts = {})
106106
if @api_client.config.debugging

lib/fastly/api/billing_invoices_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def initialize(api_client = ApiClient.default)
1919
end
2020
# Get invoice by ID.
2121
# Returns invoice associated with the invoice id.
22-
# @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
22+
# @option opts [Integer] :invoice_id (required)
2323
# @return [EomInvoiceResponse]
2424
def get_invoice_by_invoice_id(opts = {})
2525
data, _status_code, _headers = get_invoice_by_invoice_id_with_http_info(opts)
@@ -28,7 +28,7 @@ def get_invoice_by_invoice_id(opts = {})
2828

2929
# Get invoice by ID.
3030
# Returns invoice associated with the invoice id.
31-
# @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
31+
# @option opts [Integer] :invoice_id (required)
3232
# @return [Array<(EomInvoiceResponse, Integer, Hash)>] EomInvoiceResponse data, response status code and response headers
3333
def get_invoice_by_invoice_id_with_http_info(opts = {})
3434
if @api_client.config.debugging

lib/fastly/models/billing.rb

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ class Billing
1919
# Date and time in ISO 8601 format.
2020
attr_accessor :start_time
2121

22-
attr_accessor :invoice_id
23-
2422
attr_accessor :customer_id
2523

2624
# The current state of our third-party billing vendor. One of `up` or `down`.
@@ -38,7 +36,6 @@ def self.attribute_map
3836
{
3937
:'end_time' => :'end_time',
4038
:'start_time' => :'start_time',
41-
:'invoice_id' => :'invoice_id',
4239
:'customer_id' => :'customer_id',
4340
:'vendor_state' => :'vendor_state',
4441
:'status' => :'status',
@@ -57,12 +54,11 @@ def self.fastly_types
5754
{
5855
:'end_time' => :'Time',
5956
:'start_time' => :'Time',
60-
:'invoice_id' => :'String',
6157
:'customer_id' => :'String',
6258
:'vendor_state' => :'String',
6359
:'status' => :'BillingStatus',
6460
:'total' => :'BillingTotal',
65-
:'regions' => :'Hash<String, Hash<String, Object>>'
61+
:'regions' => :'Hash<String, BillingRegions>'
6662
}
6763
end
6864

@@ -97,10 +93,6 @@ def initialize(attributes = {})
9793
self.start_time = attributes[:'start_time']
9894
end
9995

100-
if attributes.key?(:'invoice_id')
101-
self.invoice_id = attributes[:'invoice_id']
102-
end
103-
10496
if attributes.key?(:'customer_id')
10597
self.customer_id = attributes[:'customer_id']
10698
end
@@ -144,7 +136,6 @@ def ==(o)
144136
self.class == o.class &&
145137
end_time == o.end_time &&
146138
start_time == o.start_time &&
147-
invoice_id == o.invoice_id &&
148139
customer_id == o.customer_id &&
149140
vendor_state == o.vendor_state &&
150141
status == o.status &&
@@ -161,7 +152,7 @@ def eql?(o)
161152
# Calculates hash code according to all attributes.
162153
# @return [Integer] Hash code
163154
def hash
164-
[end_time, start_time, invoice_id, customer_id, vendor_state, status, total, regions].hash
155+
[end_time, start_time, customer_id, vendor_state, status, total, regions].hash
165156
end
166157

167158
# Builds the object from hash

0 commit comments

Comments
 (0)