lib/fastly/models/billing.rb in fastly-8.6.0 vs lib/fastly/models/billing.rb in fastly-8.7.0

- old
+ new

@@ -17,12 +17,10 @@ attr_accessor :end_time # 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`. attr_accessor :vendor_state @@ -36,11 +34,10 @@ # Attribute mapping from ruby-style variable name to JSON key. 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', :'total' => :'total', :'regions' => :'regions' @@ -55,16 +52,15 @@ # Attribute type mapping. 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 # List of attributes with nullable: true def self.fastly_nullable @@ -95,14 +91,10 @@ if attributes.key?(:'start_time') 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 if attributes.key?(:'vendor_state') @@ -142,11 +134,10 @@ def ==(o) return true if self.equal?(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 && total == o.total && regions == o.regions @@ -159,10 +150,10 @@ end # 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 # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself