lib/fastly/models/billing_estimate_response.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/billing_estimate_response.rb in fastly-4.0.0
- old
+ new
@@ -21,14 +21,18 @@
attr_accessor :invoice_id
attr_accessor :customer_id
+ # The current state of our third-party billing vendor. One of `up` or `down`.
+ attr_accessor :vendor_state
+
attr_accessor :status
attr_accessor :total
+ # Breakdown of regional data for products that are region based.
attr_accessor :regions
attr_accessor :lines
# Attribute mapping from ruby-style variable name to JSON key.
@@ -36,10 +40,11 @@
{
:'end_time' => :'end_time',
:'start_time' => :'start_time',
:'invoice_id' => :'invoice_id',
:'customer_id' => :'customer_id',
+ :'vendor_state' => :'vendor_state',
:'status' => :'status',
:'total' => :'total',
:'regions' => :'regions',
:'lines' => :'lines'
}
@@ -55,10 +60,11 @@
{
:'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>>',
:'lines' => :'Array<BillingEstimateResponseAllOfLines>'
}
@@ -67,12 +73,10 @@
# List of attributes with nullable: true
def self.fastly_nullable
Set.new([
:'end_time',
:'start_time',
- :'invoice_id',
- :'customer_id',
])
end
# List of class defined in allOf (OpenAPI v3)
def self.fastly_all_of
@@ -111,10 +115,14 @@
if attributes.key?(:'customer_id')
self.customer_id = attributes[:'customer_id']
end
+ if attributes.key?(:'vendor_state')
+ self.vendor_state = attributes[:'vendor_state']
+ end
+
if attributes.key?(:'status')
self.status = attributes[:'status']
end
if attributes.key?(:'total')
@@ -154,10 +162,11 @@
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 &&
total == o.total &&
regions == o.regions &&
lines == o.lines
end
@@ -169,10 +178,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [end_time, start_time, invoice_id, customer_id, status, total, regions, lines].hash
+ [end_time, start_time, invoice_id, customer_id, vendor_state, status, total, regions, lines].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself