class CyberSource::Ptsv2paymentsTravelInformationAutoRental

Attributes

adjusted_amount[RW]

Adjusted Amount indicates whether any miscellaneous charges were incurred after the vehicle was returned. For authorizations, this field is supported only for American Express. For captures, this field is supported only for MasterCard and American Express. NOTE For American Express, this field is required if the `travelInformation.autoRental.adjustedAmountIndicator` field is included in the request and has a value; otherwise, this field is optional. For all other card types, this field is ignored.

adjusted_amount_indicator[RW]

For MasterCard and Discover: Adjusted amount indicator code that indicates any miscellaneous charges incurred after the auto was returned. Possible values: - `A` - Drop-off charges - `B` - Delivery charges - `C` - Parking expenses - `D` - Extra hours - `E` - Violations - `X` - More than one of the above charges For **American Express**: Audit indicator code that indicates any adjustment for mileage, fuel, auto damage, etc. made to a rental agreement and whether the cardholder was notified. Possible value for the authorization service: - `A` (default): adjustment amount greater than 0 (zero) Possible values for the capture service: - `X` - Multiple adjustments - `Y` - One adjustment only; Cardmember notified - `Z` - One adjustment only; Cardmember not notified. This value is used as the default if the request does not include this field and includes an adjustment amount greater than 0 (zero). This is an optional field.

agreement_number[RW]

Auto rental agency’s agreement (invoice) number provided to the customer. It is used to trace any inquiries about transactions. This field is supported for Visa, MasterCard, and American Express. This Merchant-defined value, which may be composed of any combination of characters and/or numerals, may become part of the descriptive bill on the Cardmember's statement.

commodity_code[RW]

Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes.

company_id[RW]

Corporate Identifier provides the unique identifier of the corporation or entity renting the vehicle: |Card Specific Validation|VISA|MasterCard|Discover|AMEX| |— |— |— |— | | Filed Length| NA| 12| NA| NA| | Field Type| NA| AN| NA| NA| | M/O/C| NA| O| NA| NA|

customer_name[RW]

Name of the individual making the rental agreement. Valid data lengths by card: |Card Specific Validation|VISA|MasterCard|Discover|AMEX| |— |— |— |— | | Filed Length| 40| 40| 29| 26| | Field Type| AN| ANS| AN| AN| | M/O/C| O| M| M| M|

customer_service_phone_number[RW]

Customer service telephone number that is used to resolve questions or disputes. Include the area code, exchange, and number. This field is supported only for MasterCard and American Express.

daily_rental_rate[RW]

Daily auto rental rate charged. This field is supported only for MasterCard and American Express. Field - Time Period needs to be populated with Daily if this field is present

distance_travelled[RW]

Total number of miles driven by the customer. This field is supported only for MasterCard and American Express.

distance_unit[RW]

Miles/Kilometers Indicator shows whether the “miles” fields are expressed in miles or kilometers. Allowed values: - `K` - Kilometers - `M` - Miles

driver_age[RW]

Age of the driver renting the vehicle.

extra_charge[RW]

(Extra Charges) provides the extra charges associated with the vehicle rental.

extra_mileage_charge[RW]

Extra mileage charges that extend beyond the basic rental agreement. This field is supported only for Visa.

fuel_charges[RW]

Extra gasoline charges that extend beyond the basic rental agreement. This field is supported only for Visa.

gps_charge[RW]

Amount charged for renting a Global Positioning Service (GPS).

insurance_amount[RW]

Insurance charges. Field is conditional and can include decimal point.

insurance_indicator[RW]

Used for MC and Discover Valid values: - `true` - Yes (insurance was purchased) - `false` - No (insurance was not purchased)

late_fee_amount[RW]

Extra charges related to a late return of the rented auto. This field is supported only for Visa.

max_free_distance[RW]

Maximum number of free miles or kilometers allowed to a customer for the duration of the auto rental agreement. This field is supported only for MasterCard and American Express.

mileage_charge[RW]

Regular Mileage Charge provides the amount charged for regular miles traveled during vehicle rental. Two decimal places

no_show_indicator[RW]

No Show Indicator provides an indicator noting that the individual did not show up after making a reservation for a vehicle. Possible values: - true - false

number_of_additional_drivers[RW]

The number of additional drivers included on the rental agreement not including the individual who signed the rental agreement.

odometer_reading[RW]

Odometer reading at time of vehicle rental.

one_way_drop_off_amount[RW]

Extra charges incurred for a one-way rental agreement for the auto. This field is supported only for Visa.

other_charges[RW]

Total amount charged for all other miscellaneous charges not previously defined.

parking_violation_charge[RW]

Extra charges incurred due to a parking violation for the auto. This field is supported only for Visa.

phone_charge[RW]

Additional charges incurred for phone usage included on the total bill.

program_code[RW]

Used to identify special circumstances applicable to the Card Transaction or Cardholder, such as "renter” or ”show”. This code is `2 digit` value agreed by Merchant and processor.

rate_per_mile[RW]

Rate charged for each mile. This field is supported only for MasterCard and American Express.

rental_address[RW]
rental_date_time[RW]

Date/time the auto was picked up from the rental agency. Format: `yyyy-MM-dd HH-mm-ss z` This field is supported for Visa, MasterCard, and American Express.

return_address[RW]
return_date_time[RW]

Date/time the auto was returned to the rental agency. Format: “yyyy-MM-dd HH-mm-ss z“ This field is supported for Visa, MasterCard, and American Express.

special_program_code[RW]

Program code used to identify special circumstances, such as “frequent renter” or “no show” status for the renter. Possible values: - `0`: not applicable (default) - `1`: frequent renter - `2`: no show For authorizations, this field is supported only for Visa. For captures, this field is supported for Visa, MasterCard, and American Express. Code for special programs applicable to the Card Transaction or the Cardholder.

tax_details[RW]
time_period[RW]

Indicates the time period for which the vehicle rental rate applies (e.g., daily, weekly or monthly). Daily, Weekly and Monthly are valid values.

towing_charge[RW]

(Towing Charges) provides the amount charged to tow the rental vehicle.

vehicle_class[RW]

Classification of the rented auto. NOTE For VISA, this is a 2-byte optional code. Valid values for American Express & MasterCard: |American Express |MasterCard |Description| |— |— |— | | 0001| 0001| Mini| | 0002| 0002| Subcompact| | 0003| 0003| Economy| | 0004| 0004| Compact| | 0005| 0005| Midsize| | 0006| 0006| Intermediate| | 0007| 0007| Standard| | 0008| 0008| Fulll size| | 0009| 0009| Luxury| | 0010| 0010| Premium| | 0011| 0011| Minivan| | 0012| 0012| 12-passenger van| | 0013| 0013| Moving van| | 0014| 0014| 15-passenger van| | 0015| 0015| Cargo van| | 0016| 0016| 12-foot truck| | 0017| 0017| 20-foot truck| | 0018| 0018| 24-foot truck| | 0019| 0019| 26-foot truck| | 0020| 0020| Moped| | 0021| 0021| Stretch| | 0022| 0022| Regular| | 0023| 0023| Unique| | 0024| 0024| Exotic| | 0025| 0025| Small/medium truck| | 0026| 0026| Large truck| | 0027| 0027| Small SUV| | 0028| 0028| Medium SUV| | 0029| 0029| Large SUV| | 0030| 0030| Exotic SUV| | 9999| 9999| Miscellaneous| Additional Values allowed only for `American Express`: |American Express|MasterCard|Description| |— |— |— | | 0031| NA| Four Wheel Drive| | 0032| NA| Special| | 0099| NA| Taxi|

vehicle_identification_number[RW]

This field contains a unique identifier assigned by the company to the vehicle.

vehicle_make[RW]

Make of the vehicle being rented (e.g., Chevrolet or Ford).

vehicle_model[RW]

Model of the vehicle being rented (e.g., Cavalier or Focus).

weekly_rental_rate[RW]

Weekly Rental Amount provides the amount charged for a seven-day rental period. Field - Time Period needs to be populated with Weekly if this field is present

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 141
def self.attribute_map
  {
    :'no_show_indicator' => :'noShowIndicator',
    :'customer_name' => :'customerName',
    :'vehicle_class' => :'vehicleClass',
    :'distance_travelled' => :'distanceTravelled',
    :'distance_unit' => :'distanceUnit',
    :'return_date_time' => :'returnDateTime',
    :'rental_date_time' => :'rentalDateTime',
    :'max_free_distance' => :'maxFreeDistance',
    :'insurance_indicator' => :'insuranceIndicator',
    :'program_code' => :'programCode',
    :'return_address' => :'returnAddress',
    :'rental_address' => :'rentalAddress',
    :'agreement_number' => :'agreementNumber',
    :'odometer_reading' => :'odometerReading',
    :'vehicle_identification_number' => :'vehicleIdentificationNumber',
    :'company_id' => :'companyId',
    :'number_of_additional_drivers' => :'numberOfAdditionalDrivers',
    :'driver_age' => :'driverAge',
    :'special_program_code' => :'specialProgramCode',
    :'vehicle_make' => :'vehicleMake',
    :'vehicle_model' => :'vehicleModel',
    :'time_period' => :'timePeriod',
    :'commodity_code' => :'commodityCode',
    :'customer_service_phone_number' => :'customerServicePhoneNumber',
    :'tax_details' => :'taxDetails',
    :'insurance_amount' => :'insuranceAmount',
    :'one_way_drop_off_amount' => :'oneWayDropOffAmount',
    :'adjusted_amount_indicator' => :'adjustedAmountIndicator',
    :'adjusted_amount' => :'adjustedAmount',
    :'fuel_charges' => :'fuelCharges',
    :'weekly_rental_rate' => :'weeklyRentalRate',
    :'daily_rental_rate' => :'dailyRentalRate',
    :'rate_per_mile' => :'ratePerMile',
    :'mileage_charge' => :'mileageCharge',
    :'extra_mileage_charge' => :'extraMileageCharge',
    :'late_fee_amount' => :'lateFeeAmount',
    :'towing_charge' => :'towingCharge',
    :'extra_charge' => :'extraCharge',
    :'gps_charge' => :'gpsCharge',
    :'phone_charge' => :'phoneCharge',
    :'parking_violation_charge' => :'parkingViolationCharge',
    :'other_charges' => :'otherCharges'
  }
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 238
def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'noShowIndicator')
    self.no_show_indicator = attributes[:'noShowIndicator']
  end

  if attributes.has_key?(:'customerName')
    self.customer_name = attributes[:'customerName']
  end

  if attributes.has_key?(:'vehicleClass')
    self.vehicle_class = attributes[:'vehicleClass']
  end

  if attributes.has_key?(:'distanceTravelled')
    self.distance_travelled = attributes[:'distanceTravelled']
  end

  if attributes.has_key?(:'distanceUnit')
    self.distance_unit = attributes[:'distanceUnit']
  end

  if attributes.has_key?(:'returnDateTime')
    self.return_date_time = attributes[:'returnDateTime']
  end

  if attributes.has_key?(:'rentalDateTime')
    self.rental_date_time = attributes[:'rentalDateTime']
  end

  if attributes.has_key?(:'maxFreeDistance')
    self.max_free_distance = attributes[:'maxFreeDistance']
  end

  if attributes.has_key?(:'insuranceIndicator')
    self.insurance_indicator = attributes[:'insuranceIndicator']
  end

  if attributes.has_key?(:'programCode')
    self.program_code = attributes[:'programCode']
  end

  if attributes.has_key?(:'returnAddress')
    self.return_address = attributes[:'returnAddress']
  end

  if attributes.has_key?(:'rentalAddress')
    self.rental_address = attributes[:'rentalAddress']
  end

  if attributes.has_key?(:'agreementNumber')
    self.agreement_number = attributes[:'agreementNumber']
  end

  if attributes.has_key?(:'odometerReading')
    self.odometer_reading = attributes[:'odometerReading']
  end

  if attributes.has_key?(:'vehicleIdentificationNumber')
    self.vehicle_identification_number = attributes[:'vehicleIdentificationNumber']
  end

  if attributes.has_key?(:'companyId')
    self.company_id = attributes[:'companyId']
  end

  if attributes.has_key?(:'numberOfAdditionalDrivers')
    self.number_of_additional_drivers = attributes[:'numberOfAdditionalDrivers']
  end

  if attributes.has_key?(:'driverAge')
    self.driver_age = attributes[:'driverAge']
  end

  if attributes.has_key?(:'specialProgramCode')
    self.special_program_code = attributes[:'specialProgramCode']
  end

  if attributes.has_key?(:'vehicleMake')
    self.vehicle_make = attributes[:'vehicleMake']
  end

  if attributes.has_key?(:'vehicleModel')
    self.vehicle_model = attributes[:'vehicleModel']
  end

  if attributes.has_key?(:'timePeriod')
    self.time_period = attributes[:'timePeriod']
  end

  if attributes.has_key?(:'commodityCode')
    self.commodity_code = attributes[:'commodityCode']
  end

  if attributes.has_key?(:'customerServicePhoneNumber')
    self.customer_service_phone_number = attributes[:'customerServicePhoneNumber']
  end

  if attributes.has_key?(:'taxDetails')
    self.tax_details = attributes[:'taxDetails']
  end

  if attributes.has_key?(:'insuranceAmount')
    self.insurance_amount = attributes[:'insuranceAmount']
  end

  if attributes.has_key?(:'oneWayDropOffAmount')
    self.one_way_drop_off_amount = attributes[:'oneWayDropOffAmount']
  end

  if attributes.has_key?(:'adjustedAmountIndicator')
    self.adjusted_amount_indicator = attributes[:'adjustedAmountIndicator']
  end

  if attributes.has_key?(:'adjustedAmount')
    self.adjusted_amount = attributes[:'adjustedAmount']
  end

  if attributes.has_key?(:'fuelCharges')
    self.fuel_charges = attributes[:'fuelCharges']
  end

  if attributes.has_key?(:'weeklyRentalRate')
    self.weekly_rental_rate = attributes[:'weeklyRentalRate']
  end

  if attributes.has_key?(:'dailyRentalRate')
    self.daily_rental_rate = attributes[:'dailyRentalRate']
  end

  if attributes.has_key?(:'ratePerMile')
    self.rate_per_mile = attributes[:'ratePerMile']
  end

  if attributes.has_key?(:'mileageCharge')
    self.mileage_charge = attributes[:'mileageCharge']
  end

  if attributes.has_key?(:'extraMileageCharge')
    self.extra_mileage_charge = attributes[:'extraMileageCharge']
  end

  if attributes.has_key?(:'lateFeeAmount')
    self.late_fee_amount = attributes[:'lateFeeAmount']
  end

  if attributes.has_key?(:'towingCharge')
    self.towing_charge = attributes[:'towingCharge']
  end

  if attributes.has_key?(:'extraCharge')
    self.extra_charge = attributes[:'extraCharge']
  end

  if attributes.has_key?(:'gpsCharge')
    self.gps_charge = attributes[:'gpsCharge']
  end

  if attributes.has_key?(:'phoneCharge')
    self.phone_charge = attributes[:'phoneCharge']
  end

  if attributes.has_key?(:'parkingViolationCharge')
    self.parking_violation_charge = attributes[:'parkingViolationCharge']
  end

  if attributes.has_key?(:'otherCharges')
    self.other_charges = attributes[:'otherCharges']
  end
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 189
def self.swagger_types
  {
    :'no_show_indicator' => :'BOOLEAN',
    :'customer_name' => :'String',
    :'vehicle_class' => :'String',
    :'distance_travelled' => :'String',
    :'distance_unit' => :'String',
    :'return_date_time' => :'String',
    :'rental_date_time' => :'String',
    :'max_free_distance' => :'String',
    :'insurance_indicator' => :'BOOLEAN',
    :'program_code' => :'String',
    :'return_address' => :'Ptsv2paymentsTravelInformationAutoRentalReturnAddress',
    :'rental_address' => :'Ptsv2paymentsTravelInformationAutoRentalRentalAddress',
    :'agreement_number' => :'String',
    :'odometer_reading' => :'String',
    :'vehicle_identification_number' => :'String',
    :'company_id' => :'String',
    :'number_of_additional_drivers' => :'String',
    :'driver_age' => :'String',
    :'special_program_code' => :'String',
    :'vehicle_make' => :'String',
    :'vehicle_model' => :'String',
    :'time_period' => :'String',
    :'commodity_code' => :'String',
    :'customer_service_phone_number' => :'String',
    :'tax_details' => :'Ptsv2paymentsTravelInformationAutoRentalTaxDetails',
    :'insurance_amount' => :'String',
    :'one_way_drop_off_amount' => :'String',
    :'adjusted_amount_indicator' => :'String',
    :'adjusted_amount' => :'String',
    :'fuel_charges' => :'String',
    :'weekly_rental_rate' => :'String',
    :'daily_rental_rate' => :'String',
    :'rate_per_mile' => :'String',
    :'mileage_charge' => :'String',
    :'extra_mileage_charge' => :'String',
    :'late_fee_amount' => :'String',
    :'towing_charge' => :'String',
    :'extra_charge' => :'String',
    :'gps_charge' => :'String',
    :'phone_charge' => :'String',
    :'parking_violation_charge' => :'String',
    :'other_charges' => :'String'
  }
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 650
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      no_show_indicator == o.no_show_indicator &&
      customer_name == o.customer_name &&
      vehicle_class == o.vehicle_class &&
      distance_travelled == o.distance_travelled &&
      distance_unit == o.distance_unit &&
      return_date_time == o.return_date_time &&
      rental_date_time == o.rental_date_time &&
      max_free_distance == o.max_free_distance &&
      insurance_indicator == o.insurance_indicator &&
      program_code == o.program_code &&
      return_address == o.return_address &&
      rental_address == o.rental_address &&
      agreement_number == o.agreement_number &&
      odometer_reading == o.odometer_reading &&
      vehicle_identification_number == o.vehicle_identification_number &&
      company_id == o.company_id &&
      number_of_additional_drivers == o.number_of_additional_drivers &&
      driver_age == o.driver_age &&
      special_program_code == o.special_program_code &&
      vehicle_make == o.vehicle_make &&
      vehicle_model == o.vehicle_model &&
      time_period == o.time_period &&
      commodity_code == o.commodity_code &&
      customer_service_phone_number == o.customer_service_phone_number &&
      tax_details == o.tax_details &&
      insurance_amount == o.insurance_amount &&
      one_way_drop_off_amount == o.one_way_drop_off_amount &&
      adjusted_amount_indicator == o.adjusted_amount_indicator &&
      adjusted_amount == o.adjusted_amount &&
      fuel_charges == o.fuel_charges &&
      weekly_rental_rate == o.weekly_rental_rate &&
      daily_rental_rate == o.daily_rental_rate &&
      rate_per_mile == o.rate_per_mile &&
      mileage_charge == o.mileage_charge &&
      extra_mileage_charge == o.extra_mileage_charge &&
      late_fee_amount == o.late_fee_amount &&
      towing_charge == o.towing_charge &&
      extra_charge == o.extra_charge &&
      gps_charge == o.gps_charge &&
      phone_charge == o.phone_charge &&
      parking_violation_charge == o.parking_violation_charge &&
      other_charges == o.other_charges
end
_deserialize(type, value) click to toggle source

Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 733
def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = CyberSource.const_get(type).new
    temp_model.build_from_hash(value)
  end
end
_to_hash(value) click to toggle source

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 799
def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end
adjusted_amount=(adjusted_amount) click to toggle source

Custom attribute writer method with validation @param [Object] adjusted_amount Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 566
def adjusted_amount=(adjusted_amount)
  @adjusted_amount = adjusted_amount
end
adjusted_amount_indicator=(adjusted_amount_indicator) click to toggle source

Custom attribute writer method with validation @param [Object] adjusted_amount_indicator Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 560
def adjusted_amount_indicator=(adjusted_amount_indicator)
  @adjusted_amount_indicator = adjusted_amount_indicator
end
agreement_number=(agreement_number) click to toggle source

Custom attribute writer method with validation @param [Object] agreement_number Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 476
def agreement_number=(agreement_number)
  @agreement_number = agreement_number
end
build_from_hash(attributes) click to toggle source

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 712
def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end
commodity_code=(commodity_code) click to toggle source

Custom attribute writer method with validation @param [Object] commodity_code Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 536
def commodity_code=(commodity_code)
  @commodity_code = commodity_code
end
company_id=(company_id) click to toggle source

Custom attribute writer method with validation @param [Object] company_id Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 494
def company_id=(company_id)
  @company_id = company_id
end
customer_name=(customer_name) click to toggle source

Custom attribute writer method with validation @param [Object] customer_name Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 428
def customer_name=(customer_name)
  @customer_name = customer_name
end
customer_service_phone_number=(customer_service_phone_number) click to toggle source

Custom attribute writer method with validation @param [Object] customer_service_phone_number Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 542
def customer_service_phone_number=(customer_service_phone_number)
  @customer_service_phone_number = customer_service_phone_number
end
daily_rental_rate=(daily_rental_rate) click to toggle source

Custom attribute writer method with validation @param [Object] daily_rental_rate Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 584
def daily_rental_rate=(daily_rental_rate)
  @daily_rental_rate = daily_rental_rate
end
distance_travelled=(distance_travelled) click to toggle source

Custom attribute writer method with validation @param [Object] distance_travelled Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 440
def distance_travelled=(distance_travelled)
  @distance_travelled = distance_travelled
end
distance_unit=(distance_unit) click to toggle source

Custom attribute writer method with validation @param [Object] distance_unit Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 446
def distance_unit=(distance_unit)
  @distance_unit = distance_unit
end
driver_age=(driver_age) click to toggle source

Custom attribute writer method with validation @param [Object] driver_age Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 506
def driver_age=(driver_age)
  @driver_age = driver_age
end
eql?(o) click to toggle source

@see the `==` method @param [Object] Object to be compared

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 699
def eql?(o)
  self == o
end
extra_charge=(extra_charge) click to toggle source

Custom attribute writer method with validation @param [Object] extra_charge Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 620
def extra_charge=(extra_charge)
  @extra_charge = extra_charge
end
extra_mileage_charge=(extra_mileage_charge) click to toggle source

Custom attribute writer method with validation @param [Object] extra_mileage_charge Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 602
def extra_mileage_charge=(extra_mileage_charge)
  @extra_mileage_charge = extra_mileage_charge
end
fuel_charges=(fuel_charges) click to toggle source

Custom attribute writer method with validation @param [Object] fuel_charges Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 572
def fuel_charges=(fuel_charges)
  @fuel_charges = fuel_charges
end
gps_charge=(gps_charge) click to toggle source

Custom attribute writer method with validation @param [Object] gps_charge Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 626
def gps_charge=(gps_charge)
  @gps_charge = gps_charge
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 705
def hash
  [no_show_indicator, customer_name, vehicle_class, distance_travelled, distance_unit, return_date_time, rental_date_time, max_free_distance, insurance_indicator, program_code, return_address, rental_address, agreement_number, odometer_reading, vehicle_identification_number, company_id, number_of_additional_drivers, driver_age, special_program_code, vehicle_make, vehicle_model, time_period, commodity_code, customer_service_phone_number, tax_details, insurance_amount, one_way_drop_off_amount, adjusted_amount_indicator, adjusted_amount, fuel_charges, weekly_rental_rate, daily_rental_rate, rate_per_mile, mileage_charge, extra_mileage_charge, late_fee_amount, towing_charge, extra_charge, gps_charge, phone_charge, parking_violation_charge, other_charges].hash
end
insurance_amount=(insurance_amount) click to toggle source

Custom attribute writer method with validation @param [Object] insurance_amount Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 548
def insurance_amount=(insurance_amount)
  @insurance_amount = insurance_amount
end
late_fee_amount=(late_fee_amount) click to toggle source

Custom attribute writer method with validation @param [Object] late_fee_amount Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 608
def late_fee_amount=(late_fee_amount)
  @late_fee_amount = late_fee_amount
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 415
def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end
max_free_distance=(max_free_distance) click to toggle source

Custom attribute writer method with validation @param [Object] max_free_distance Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 464
def max_free_distance=(max_free_distance)
  @max_free_distance = max_free_distance
end
mileage_charge=(mileage_charge) click to toggle source

Custom attribute writer method with validation @param [Object] mileage_charge Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 596
def mileage_charge=(mileage_charge)
  @mileage_charge = mileage_charge
end
number_of_additional_drivers=(number_of_additional_drivers) click to toggle source

Custom attribute writer method with validation @param [Object] number_of_additional_drivers Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 500
def number_of_additional_drivers=(number_of_additional_drivers)
  @number_of_additional_drivers = number_of_additional_drivers
end
odometer_reading=(odometer_reading) click to toggle source

Custom attribute writer method with validation @param [Object] odometer_reading Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 482
def odometer_reading=(odometer_reading)
  @odometer_reading = odometer_reading
end
one_way_drop_off_amount=(one_way_drop_off_amount) click to toggle source

Custom attribute writer method with validation @param [Object] one_way_drop_off_amount Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 554
def one_way_drop_off_amount=(one_way_drop_off_amount)
  @one_way_drop_off_amount = one_way_drop_off_amount
end
other_charges=(other_charges) click to toggle source

Custom attribute writer method with validation @param [Object] other_charges Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 644
def other_charges=(other_charges)
  @other_charges = other_charges
end
parking_violation_charge=(parking_violation_charge) click to toggle source

Custom attribute writer method with validation @param [Object] parking_violation_charge Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 638
def parking_violation_charge=(parking_violation_charge)
  @parking_violation_charge = parking_violation_charge
end
phone_charge=(phone_charge) click to toggle source

Custom attribute writer method with validation @param [Object] phone_charge Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 632
def phone_charge=(phone_charge)
  @phone_charge = phone_charge
end
program_code=(program_code) click to toggle source

Custom attribute writer method with validation @param [Object] program_code Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 470
def program_code=(program_code)
  @program_code = program_code
end
rate_per_mile=(rate_per_mile) click to toggle source

Custom attribute writer method with validation @param [Object] rate_per_mile Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 590
def rate_per_mile=(rate_per_mile)
  @rate_per_mile = rate_per_mile
end
rental_date_time=(rental_date_time) click to toggle source

Custom attribute writer method with validation @param [Object] rental_date_time Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 458
def rental_date_time=(rental_date_time)
  @rental_date_time = rental_date_time
end
return_date_time=(return_date_time) click to toggle source

Custom attribute writer method with validation @param [Object] return_date_time Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 452
def return_date_time=(return_date_time)
  @return_date_time = return_date_time
end
special_program_code=(special_program_code) click to toggle source

Custom attribute writer method with validation @param [Object] special_program_code Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 512
def special_program_code=(special_program_code)
  @special_program_code = special_program_code
end
time_period=(time_period) click to toggle source

Custom attribute writer method with validation @param [Object] time_period Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 530
def time_period=(time_period)
  @time_period = time_period
end
to_body() click to toggle source

to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 779
def to_body
  to_hash
end
to_hash() click to toggle source

Returns the object in the form of hash @return [Hash] Returns the object in the form of hash

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 785
def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end
to_s() click to toggle source

Returns the string representation of the object @return [String] String presentation of the object

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 773
def to_s
  to_hash.to_s
end
towing_charge=(towing_charge) click to toggle source

Custom attribute writer method with validation @param [Object] towing_charge Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 614
def towing_charge=(towing_charge)
  @towing_charge = towing_charge
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 422
def valid?
  true
end
vehicle_class=(vehicle_class) click to toggle source

Custom attribute writer method with validation @param [Object] vehicle_class Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 434
def vehicle_class=(vehicle_class)
  @vehicle_class = vehicle_class
end
vehicle_identification_number=(vehicle_identification_number) click to toggle source

Custom attribute writer method with validation @param [Object] vehicle_identification_number Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 488
def vehicle_identification_number=(vehicle_identification_number)
  @vehicle_identification_number = vehicle_identification_number
end
vehicle_make=(vehicle_make) click to toggle source

Custom attribute writer method with validation @param [Object] vehicle_make Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 518
def vehicle_make=(vehicle_make)
  @vehicle_make = vehicle_make
end
vehicle_model=(vehicle_model) click to toggle source

Custom attribute writer method with validation @param [Object] vehicle_model Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 524
def vehicle_model=(vehicle_model)
  @vehicle_model = vehicle_model
end
weekly_rental_rate=(weekly_rental_rate) click to toggle source

Custom attribute writer method with validation @param [Object] weekly_rental_rate Value to be assigned

# File lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb, line 578
def weekly_rental_rate=(weekly_rental_rate)
  @weekly_rental_rate = weekly_rental_rate
end