lib/fastly/models/billing_estimate_response.rb in fastly-6.0.0 vs lib/fastly/models/billing_estimate_response.rb in fastly-6.0.1

- old
+ new

@@ -31,11 +31,11 @@ attr_accessor :total # Breakdown of regional data for products that are region based. attr_accessor :regions - attr_accessor :lines + attr_accessor :line_items # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'end_time' => :'end_time', @@ -44,11 +44,11 @@ :'customer_id' => :'customer_id', :'vendor_state' => :'vendor_state', :'status' => :'status', :'total' => :'total', :'regions' => :'regions', - :'lines' => :'lines' + :'line_items' => :'line_items' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -64,11 +64,11 @@ :'customer_id' => :'String', :'vendor_state' => :'String', :'status' => :'BillingStatus', :'total' => :'BillingTotal', :'regions' => :'Hash<String, Hash<String, Object>>', - :'lines' => :'Array<BillingEstimateResponseAllOfLines>' + :'line_items' => :'Array<BillingEstimateLinesLineItems>' } end # List of attributes with nullable: true def self.fastly_nullable @@ -80,11 +80,11 @@ # List of class defined in allOf (OpenAPI v3) def self.fastly_all_of [ :'Billing', - :'BillingEstimateResponseAllOf' + :'BillingEstimateLines' ] end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -133,13 +133,13 @@ if (value = attributes[:'regions']).is_a?(Hash) self.regions = value end end - if attributes.key?(:'lines') - if (value = attributes[:'lines']).is_a?(Array) - self.lines = value + if attributes.key?(:'line_items') + if (value = attributes[:'line_items']).is_a?(Array) + self.line_items = value end end end # Show invalid properties with the reasons. Usually used together with valid? @@ -166,11 +166,11 @@ customer_id == o.customer_id && vendor_state == o.vendor_state && status == o.status && total == o.total && regions == o.regions && - lines == o.lines + line_items == o.line_items end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -178,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, vendor_state, status, total, regions, lines].hash + [end_time, start_time, invoice_id, customer_id, vendor_state, status, total, regions, line_items].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself