lib/clients/adapter.rb in parking_ticket-1.0.42 vs lib/clients/adapter.rb in parking_ticket-1.0.43
- old
+ new
@@ -41,15 +41,21 @@
def quote(rate_option_id, zipcode, license_plate, quantity, time_unit)
raise_invalid_credentials! unless valid_credentials?
fetch_and_map_quote(rate_option_id, zipcode, license_plate, quantity, time_unit)
end
- def new_ticket(license_plate, zipcode, rate_option_id, quantity, time_unit, payment_method_id:)
+ def new_ticket(license_plate:, zipcode:, rate_option_client_internal_id:, quantity:, time_unit:, payment_method_id:)
raise_invalid_credentials! unless valid_credentials?
- return if running_ticket(license_plate, zipcode)
+ # return if running_ticket(license_plate, zipcode)
- request_new_ticket(license_plate, zipcode, rate_option_id, quantity, time_unit,
- payment_method_id: payment_method_id)
+ request_new_ticket(
+ license_plate: license_plate,
+ zipcode: zipcode,
+ rate_option_client_internal_id: rate_option_client_internal_id,
+ quantity: quantity,
+ time_unit: time_unit,
+ payment_method_id: payment_method_id
+ )
end
private
def client