lib/fastly/models/billing.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/billing.rb in fastly-4.0.0

- old
+ new

@@ -21,23 +21,28 @@ 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 # 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' } end @@ -52,10 +57,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>>' } end @@ -63,12 +69,10 @@ # List of attributes with nullable: true def self.fastly_nullable Set.new([ :'end_time', :'start_time', - :'invoice_id', - :'customer_id', ]) end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -99,10 +103,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') @@ -136,10 +144,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 end @@ -150,10 +159,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].hash + [end_time, start_time, invoice_id, 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