// // INCancelRideIntentResponse.h // Intents // // Copyright (c) 2016-2020 Apple Inc. All rights reserved. // #import @class INCurrencyAmount; typedef NS_ENUM(NSInteger, INCancelRideIntentResponseCode) { INCancelRideIntentResponseCodeUnspecified = 0, INCancelRideIntentResponseCodeReady, INCancelRideIntentResponseCodeSuccess, INCancelRideIntentResponseCodeFailure, } API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, macos, tvos); NS_ASSUME_NONNULL_BEGIN API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(watchos, macos, tvos) @interface INCancelRideIntentResponse : INIntentResponse - (instancetype)init NS_UNAVAILABLE; // The app extension has the option of capturing its private state as an NSUserActivity and returning it as the 'currentActivity'. // If the the app is launched, an NSUserActivity will be passed in with the private state. The NSUserActivity may also be used to query the app's UI extension (if provided) for a view controller representing the current intent handling state. // In the case of app launch, the NSUserActivity will have its activityType set to the name of the intent. This intent object will also be available in the NSUserActivity.interaction property. - (instancetype)initWithCode:(INCancelRideIntentResponseCode)code userActivity:(nullable NSUserActivity *)userActivity NS_DESIGNATED_INITIALIZER; @property (readonly, NS_NONATOMIC_IOSONLY) INCancelRideIntentResponseCode code; @property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) INCurrencyAmount *cancellationFee; // Used during confirmation to warn the user about any cancellation fees @property (readwrite, copy, nullable, NS_NONATOMIC_IOSONLY) NSDateComponents *cancellationFeeThreshold; // The time after which canceling the ride will incur the cancellation fee @end NS_ASSUME_NONNULL_END