Skip to content

Commit

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

## [v8.7.0](https://github.com/fastly/fastly-ruby/releases/tag/release/v8.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

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

**Enhancements:**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A Ruby client library for interacting with most facets of the [Fastly API](https
To install via RubyGems, add the following to your project's `Gemfile`:

```ruby
gem 'fastly', '~> 8.6.0'
gem 'fastly', '~> 8.7.0'
```

Then run `bundle install`.
Expand Down
3 changes: 1 addition & 2 deletions docs/Billing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
| ---- | ---- | ----------- | ----- |
| **end_time** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
| **start_time** | **Time** | 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** | [**BillingStatus**](BillingStatus.md) | | [optional] |
| **total** | [**BillingTotal**](BillingTotal.md) | | [optional] |
| **regions** | **Hash<String, Hash<String, Object>>** | Breakdown of regional data for products that are region based. | [optional] |
| **regions** | [**Hash<String, 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)

4 changes: 2 additions & 2 deletions docs/BillingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Get the invoice for the given invoice_id.
api_instance = Fastly::BillingApi.new
opts = {
customer_id: 'customer_id_example', # String | Alphanumeric string identifying the customer.
invoice_id: 'invoice_id_example', # String | Alphanumeric string identifying the invoice.
invoice_id: 4183280, # Integer |
}

begin
Expand All @@ -88,7 +88,7 @@ end
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **customer_id** | **String** | Alphanumeric string identifying the customer. | |
| **invoice_id** | **String** | Alphanumeric string identifying the invoice. | |
| **invoice_id** | **Integer** | | |

### Return type

Expand Down
11 changes: 11 additions & 0 deletions docs/BillingBandwidth.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Fastly::BillingBandwidth

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **total** | **Float** | | [optional] |
| **tiers** | [**Array<BillingBandwidthTiers>**](BillingBandwidthTiers.md) | | [optional] |

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

14 changes: 14 additions & 0 deletions docs/BillingBandwidthTiers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Fastly::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/BillingEstimateInvoiceId.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Fastly::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/BillingEstimateResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
| ---- | ---- | ----------- | ----- |
| **end_time** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
| **start_time** | **Time** | 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** | [**BillingStatus**](BillingStatus.md) | | [optional] |
| **total** | [**BillingTotal**](BillingTotal.md) | | [optional] |
| **regions** | **Hash<String, Hash<String, Object>>** | Breakdown of regional data for products that are region based. | [optional] |
| **regions** | [**Hash<String, BillingRegions>**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional] |
| **invoice_id** | **String** | | [optional][readonly] |
| **line_items** | [**Array<BillingEstimateLinesLineItems>**](BillingEstimateLinesLineItems.md) | | [optional] |

[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Fastly::LineItemDataReadOnlyInvoiceId
# Fastly::BillingInvoiceId

## Properties

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

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

4 changes: 2 additions & 2 deletions docs/BillingInvoicesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Returns invoice associated with the invoice id.
```ruby
api_instance = Fastly::BillingInvoicesApi.new
opts = {
invoice_id: 'invoice_id_example', # String | Alphanumeric string identifying the invoice.
invoice_id: 4183280, # Integer |
}

begin
Expand All @@ -47,7 +47,7 @@ end

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

### Return type

Expand Down
13 changes: 13 additions & 0 deletions docs/BillingRegions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Fastly::BillingRegions

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **cost** | **Float** | | [optional] |
| **bandwidth** | [**BillingBandwidth**](BillingBandwidth.md) | | [optional] |
| **percentile** | [**BillingBandwidth**](BillingBandwidth.md) | | [optional] |
| **requests** | [**BillingBandwidth**](BillingBandwidth.md) | | [optional] |

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

4 changes: 2 additions & 2 deletions docs/BillingResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
| ---- | ---- | ----------- | ----- |
| **end_time** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
| **start_time** | **Time** | 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** | [**BillingStatus**](BillingStatus.md) | | [optional] |
| **total** | [**BillingTotal**](BillingTotal.md) | | [optional] |
| **regions** | **Hash<String, Hash<String, Object>>** | Breakdown of regional data for products that are region based. | [optional] |
| **regions** | [**Hash<String, BillingRegions>**](BillingRegions.md) | Breakdown of regional data for products that are region based. | [optional] |
| **invoice_id** | **Integer** | | [optional][readonly] |
| **line_items** | [**Array<BillingResponseLineItem>**](BillingResponseLineItem.md) | | [optional] |

[[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/BillingResponseLineItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| **deleted_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
| **updated_at** | **Time** | Date and time in ISO 8601 format. | [optional][readonly] |
| **amount** | **Float** | | [optional] |
| **aria_invoice_id** | [**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/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** | **Time** | Date and time invoice was posted on, in ISO 8601 format. | [optional] |
| **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] |
| **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] |
Expand Down
2 changes: 1 addition & 1 deletion docs/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** | **Time** | Date and time invoice was posted on, in ISO 8601 format. | [optional] |
| **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] |
| **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] |
Expand Down
2 changes: 1 addition & 1 deletion docs/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** | [**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
6 changes: 5 additions & 1 deletion lib/fastly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,14 @@
require 'fastly/models/billing_address_response_data'
require 'fastly/models/billing_address_verification_error_response'
require 'fastly/models/billing_address_verification_error_response_errors'
require 'fastly/models/billing_bandwidth'
require 'fastly/models/billing_bandwidth_tiers'
require 'fastly/models/billing_estimate_invoice_id'
require 'fastly/models/billing_estimate_lines'
require 'fastly/models/billing_estimate_lines_line_items'
require 'fastly/models/billing_estimate_response'
require 'fastly/models/billing_invoice_id'
require 'fastly/models/billing_regions'
require 'fastly/models/billing_response'
require 'fastly/models/billing_response_item_items_data'
require 'fastly/models/billing_response_line_item'
Expand Down Expand Up @@ -214,7 +219,6 @@
require 'fastly/models/legacy_waf_tag'
require 'fastly/models/legacy_waf_update_status'
require 'fastly/models/line_item_data'
require 'fastly/models/line_item_data_read_only_invoice_id'
require 'fastly/models/list_dashboards_response'
require 'fastly/models/list_eom_invoices_response'
require 'fastly/models/listinvoices'
Expand Down
4 changes: 2 additions & 2 deletions lib/fastly/api/billing_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def get_invoice_with_http_info(opts = {})
# Get an invoice
# Get the invoice for the given invoice_id.
# @option opts [String] :customer_id Alphanumeric string identifying the customer. (required)
# @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
# @option opts [Integer] :invoice_id (required)
# @return [BillingResponse]
def get_invoice_by_id(opts = {})
data, _status_code, _headers = get_invoice_by_id_with_http_info(opts)
Expand All @@ -100,7 +100,7 @@ def get_invoice_by_id(opts = {})
# Get an invoice
# Get the invoice for the given invoice_id.
# @option opts [String] :customer_id Alphanumeric string identifying the customer. (required)
# @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
# @option opts [Integer] :invoice_id (required)
# @return [Array<(BillingResponse, Integer, Hash)>] BillingResponse data, response status code and response headers
def get_invoice_by_id_with_http_info(opts = {})
if @api_client.config.debugging
Expand Down
4 changes: 2 additions & 2 deletions lib/fastly/api/billing_invoices_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def initialize(api_client = ApiClient.default)
end
# Get invoice by ID.
# Returns invoice associated with the invoice id.
# @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
# @option opts [Integer] :invoice_id (required)
# @return [EomInvoiceResponse]
def get_invoice_by_invoice_id(opts = {})
data, _status_code, _headers = get_invoice_by_invoice_id_with_http_info(opts)
Expand All @@ -28,7 +28,7 @@ def get_invoice_by_invoice_id(opts = {})

# Get invoice by ID.
# Returns invoice associated with the invoice id.
# @option opts [String] :invoice_id Alphanumeric string identifying the invoice. (required)
# @option opts [Integer] :invoice_id (required)
# @return [Array<(EomInvoiceResponse, Integer, Hash)>] EomInvoiceResponse data, response status code and response headers
def get_invoice_by_invoice_id_with_http_info(opts = {})
if @api_client.config.debugging
Expand Down
13 changes: 2 additions & 11 deletions lib/fastly/models/billing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class Billing
# Date and time in ISO 8601 format.
attr_accessor :start_time

attr_accessor :invoice_id

attr_accessor :customer_id

# The current state of our third-party billing vendor. One of `up` or `down`.
Expand All @@ -38,7 +36,6 @@ def self.attribute_map
{
:'end_time' => :'end_time',
:'start_time' => :'start_time',
:'invoice_id' => :'invoice_id',
:'customer_id' => :'customer_id',
:'vendor_state' => :'vendor_state',
:'status' => :'status',
Expand All @@ -57,12 +54,11 @@ def self.fastly_types
{
:'end_time' => :'Time',
:'start_time' => :'Time',
:'invoice_id' => :'String',
:'customer_id' => :'String',
:'vendor_state' => :'String',
:'status' => :'BillingStatus',
:'total' => :'BillingTotal',
:'regions' => :'Hash<String, Hash<String, Object>>'
:'regions' => :'Hash<String, BillingRegions>'
}
end

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

if attributes.key?(:'invoice_id')
self.invoice_id = attributes[:'invoice_id']
end

if attributes.key?(:'customer_id')
self.customer_id = attributes[:'customer_id']
end
Expand Down Expand Up @@ -144,7 +136,6 @@ def ==(o)
self.class == o.class &&
end_time == o.end_time &&
start_time == o.start_time &&
invoice_id == o.invoice_id &&
customer_id == o.customer_id &&
vendor_state == o.vendor_state &&
status == o.status &&
Expand All @@ -161,7 +152,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[end_time, start_time, invoice_id, customer_id, vendor_state, status, total, regions].hash
[end_time, start_time, customer_id, vendor_state, status, total, regions].hash
end

# Builds the object from hash
Expand Down
Loading

0 comments on commit 767f245

Please sign in to comment.