diff --git a/FlyBuy.xcframework/Info.plist b/FlyBuy.xcframework/Info.plist index fa9c621..132059a 100644 --- a/FlyBuy.xcframework/Info.plist +++ b/FlyBuy.xcframework/Info.plist @@ -6,30 +6,30 @@ LibraryIdentifier - ios-arm64_x86_64-simulator + ios-arm64 LibraryPath FlyBuy.framework SupportedArchitectures arm64 - x86_64 SupportedPlatform ios - SupportedPlatformVariant - simulator LibraryIdentifier - ios-arm64 + ios-arm64_x86_64-simulator LibraryPath FlyBuy.framework SupportedArchitectures arm64 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator CFBundlePackageType diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/FlyBuy b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/FlyBuy index 1cac6c2..e81a278 100644 Binary files a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/FlyBuy and b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/FlyBuy differ diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Headers/FlyBuy-Swift.h b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Headers/FlyBuy-Swift.h index 8b780ba..4f549e5 100644 --- a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Headers/FlyBuy-Swift.h +++ b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Headers/FlyBuy-Swift.h @@ -195,6 +195,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif +@import CoreLocation; @import Foundation; @import ObjectiveC; #endif @@ -665,7 +666,7 @@ SWIFT_CLASS_NAMED("Order") @property (nonatomic, readonly) BOOL projectMobileFlowAlwaysShowVehicleInfoFields; @property (nonatomic, readonly) BOOL projectMobileFlowCustomerNameEditingEnabled; @property (nonatomic, readonly) BOOL projectMobileFlowPickupTypeSelectionEnabled; -@property (nonatomic, readonly) BOOL projectMobileFlowRequireVehicleInfoIfVisible; +@property (nonatomic, readonly) BOOL projectMobileFlowRequireVehicleInfoIfVisible SWIFT_DEPRECATED_MSG("Please use PickupTypeConfig.requireVehicleInfo: Bool"); @property (nonatomic, readonly, copy) NSString * _Nullable curbsideLocalizedString; @property (nonatomic, readonly, copy) NSString * _Nullable pickupLocalizedString; @property (nonatomic, copy) NSString * _Nullable pushToken; @@ -693,11 +694,6 @@ SWIFT_CLASS_NAMED("Order") SWIFT_CLASS_NAMED("OrderEvent") @interface FlyBuyOrderEvent : NSObject -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID customerState:(NSString * _Nonnull)customerState etaSeconds:(NSNumber * _Nullable)etaSeconds etaSource:(NSString * _Nullable)etaSource OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID customerState:(NSString * _Nonnull)customerState spotIdentifier:(NSString * _Nullable)spotIdentifier OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID state:(NSString * _Nonnull)state OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID locationAuthStatus:(enum LocationAuthStatus)locationAuthStatus OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID customerRating:(NSInteger)customerRating customerComments:(NSString * _Nullable)customerComments OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end @@ -782,6 +778,166 @@ SWIFT_CLASS_NAMED("OrdersManager") /// \param callback will get called on completion with the Order and any errors encountered. Optional. /// - (void)claimWithRedemptionCode:(NSString * _Nonnull)redemptionCode customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupWindow pickup window for the order. Optional. +/// +/// \param state initial order state. Optional. +/// +/// \param pickupType the pickup type string value for the order. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nullable)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupWindow pickup window for the order. Optional. +/// +/// \param state initial order state. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nonnull)state callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupWindow pickup window for the order. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupWindow pickup window for the order. Optional. +/// +/// \param pickupType the pickup type string value for the order. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupType the pickup type string value for the order. Optional. +/// +/// \param state initial order state. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo state:(NSString * _Nullable)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; /// Create an Order for the current customer for the site with the given siteID. /// partnerIdentifier (e.g. order number) and customerInfo are required. /// Most orders will have a pickup time of “ASAP”. If you have a different pickup window, you can pass a pickupWindow parameter. If you want the default of “ASAP”, omit the parameter. @@ -974,6 +1130,10 @@ SWIFT_CLASS_NAMED("OrdersManager") +@interface FlyBuyOrdersManager (SWIFT_EXTENSION(FlyBuy)) +@end + + enum OrdersManagerErrorType : NSInteger; /// Error that may be returned from OrdersManager methods. @@ -1008,6 +1168,37 @@ SWIFT_CLASS_NAMED("Pagination") + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end +@class PickupTypeConfig; + +/// Data model for pickup config options for an order or site. +SWIFT_CLASS("_TtC6FlyBuy12PickupConfig") +@interface PickupConfig : NSObject +@property (nonatomic, copy) NSString * _Nonnull type; +@property (nonatomic, readonly) NSInteger id; +@property (nonatomic, readonly) BOOL customerNameEditingEnabled; +@property (nonatomic, readonly) BOOL pickupTypeSelectionEnabled; +@property (nonatomic, readonly, copy) NSString * _Nullable askToAskImageURL; +@property (nonatomic, readonly, copy) NSString * _Nonnull accentColor; +@property (nonatomic, readonly, copy) NSString * _Nonnull accentTextColor; +@property (nonatomic, readonly, copy) NSString * _Nullable termsOfServiceURL; +@property (nonatomic, readonly, copy) NSString * _Nullable privacyPolicyURL; +@property (nonatomic, readonly, copy) NSArray * _Nonnull availablePickupTypes; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + + +/// Data model for pickup type configs for an order or site. +SWIFT_CLASS("_TtC6FlyBuy16PickupTypeConfig") +@interface PickupTypeConfig : NSObject +@property (nonatomic, readonly, copy) NSString * _Nonnull pickupType; +@property (nonatomic, readonly, copy) NSString * _Nonnull pickupTypeLocalizedString; +@property (nonatomic, readonly) BOOL showVehicleInfoFields; +@property (nonatomic, readonly) BOOL requireVehicleInfo; +@end + @class NSLocale; /// Data model for a pickup window for an order. @@ -1066,7 +1257,47 @@ SWIFT_CLASS_NAMED("Site") SWIFT_CLASS_NAMED("SitesManager") @interface FlyBuySitesManager : NSObject /// Gets all sites. -@property (nonatomic, readonly, copy) NSArray * _Nullable all; +@property (nonatomic, readonly, copy) NSArray * _Nullable all SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead."); +/// Fetch a Site by partner identifier. +/// Provide partnerIdentifier parameter to return the site with the same partner identifier. If +/// the site is found, it will be returned in the callback; otherwise, an error will be returned +/// in the callback. +/// Example: +/// \code +/// FlyBuy.Core.sites.fetchByPartnerIdentifier(partnerIdentifier: "123") { (site, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param partnerIdentifier partner identifier for the site. +/// +/// \param operationalStatus operation status of the site. +/// +/// \param callback Gets called at completion with the Site or any error encountered. Optional. +/// +- (void)fetchByPartnerIdentifierWithPartnerIdentifier:(NSString * _Nonnull)partnerIdentifier operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(FlyBuySite * _Nullable, NSError * _Nullable))callback; +/// Fetch a Site by partner identifier. +/// Provide partnerIdentifier parameter to return the site with the same partner identifier. If +/// the site is found, it will be returned in the callback; otherwise, an error will be returned +/// in the callback. +/// Example: +/// \code +/// FlyBuy.Core.sites.fetchByPartnerIdentifier(partnerIdentifier: "123") { (site, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param partnerIdentifier partner identifier for the site. +/// +/// \param callback Gets called at completion with the Site or any error encountered. Optional. +/// +- (void)fetchByPartnerIdentifierWithPartnerIdentifier:(NSString * _Nonnull)partnerIdentifier callback:(void (^ _Nullable)(FlyBuySite * _Nullable, NSError * _Nullable))callback; /// fetches the list of sites from the FlyBuy web API via query string /// \param query the query string. Optional. /// @@ -1074,7 +1305,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithQuery:(NSString * _Nullable)query page:(NSInteger)page callback:(void (^ _Nullable)(NSArray * _Nullable, FlyBuyPagination * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithQuery:(NSString * _Nullable)query page:(NSInteger)page callback:(void (^ _Nullable)(NSArray * _Nullable, FlyBuyPagination * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead."); /// fetches the list of sites from the FlyBuy web API /// \param query the query string. Optional. /// @@ -1084,7 +1315,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithQuery:(NSString * _Nullable)query page:(NSInteger)page operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, FlyBuyPagination * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithQuery:(NSString * _Nullable)query page:(NSInteger)page operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, FlyBuyPagination * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead."); /// fetches the list of sites from the FlyBuy web API via search region /// \param region a CLCircularRegion for the search region. /// @@ -1092,7 +1323,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated and will be removed in a future SDK release."); /// fetches the list of sites from the FlyBuy web API via search region /// \param region a CLCircularRegion for the search region. /// @@ -1102,7 +1333,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated and will be removed in a future SDK release."); /// fetches the list of sites from the FlyBuy web API via search region /// \param region a CLCircularRegion for the search region. /// @@ -1112,7 +1343,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page per:(NSInteger)per callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page per:(NSInteger)per callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated and will be removed in a future SDK release."); /// fetches the list of sites from the FlyBuy web API via search region /// \param region a CLCircularRegion for the search region. /// @@ -1124,18 +1355,19 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page per:(NSInteger)per operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page per:(NSInteger)per operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated and will be removed in a future SDK release."); /// fetches the complete list of sites from the FlyBuy web API that matches the query string /// \param query the query string. Optional. /// /// \param callback will get called on completion with the array of Sites and any errors encountered. Optional. /// -- (void)fetchAllWithQuery:(NSString * _Nullable)query callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchAllWithQuery:(NSString * _Nullable)query callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated. Use FlyBuyCore.sites.fetchByPartnerIdentifier instead."); - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end + /// Error that may be returned from SitesManager methods. SWIFT_CLASS_NAMED("SitesManagerError") @interface FlyBuySitesManagerError : NSObject diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Info.plist b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Info.plist index 9ff2863..1fc9499 100644 Binary files a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Info.plist and b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Info.plist differ diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftdoc b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftdoc index a6f1439..597d9e3 100644 Binary files a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftdoc and b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftinterface b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftinterface index 5923e1f..6040a59 100644 --- a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftinterface +++ b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftinterface @@ -38,8 +38,8 @@ extension FlyBuy.PickupLocationFilterData { } @objc @_hasMissingDesignatedInitializers public class NotifyConfig : ObjectiveC.NSObject, Swift.Codable { final public let beaconUUID: Foundation.UUID - final public let defaultGeofenceRadiusMeters: Swift.Int - final public let defaultSiteSearchRadiusMeters: Swift.Int + final public let defaultGeofenceRadiusMeters: Swift.Double + final public let defaultSiteSearchRadiusMeters: Swift.Double final public let analyticsEventLimit: Swift.Int? @objc deinit public func encode(to encoder: Swift.Encoder) throws @@ -255,6 +255,46 @@ public enum HTTPStatusCode : Swift.Int, Swift.Error { get } } +@objc public class PickupTypeConfig : ObjectiveC.NSObject, Swift.Codable { + @objc final public let pickupType: Swift.String + @objc final public let pickupTypeLocalizedString: Swift.String + @objc final public let showVehicleInfoFields: Swift.Bool + @objc public var requireVehicleInfo: Swift.Bool { + @objc get + } + @objc deinit + public func encode(to encoder: Swift.Encoder) throws + required public init(from decoder: Swift.Decoder) throws +} +@_hasMissingDesignatedInitializers @objc public class PickupConfig : ObjectiveC.NSObject, Swift.Codable { + @objc public var type: Swift.String + @objc final public let id: Swift.Int + @objc final public let customerNameEditingEnabled: Swift.Bool + @objc final public let pickupTypeSelectionEnabled: Swift.Bool + @objc final public let askToAskImageURL: Swift.String? + @objc final public let accentColor: Swift.String + @objc final public let accentTextColor: Swift.String + @objc final public let termsOfServiceURL: Swift.String? + @objc final public let privacyPolicyURL: Swift.String? + @objc final public let availablePickupTypes: [FlyBuy.PickupTypeConfig] + required public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws + @objc deinit +} +extension FlyBuy.PickupConfig : FlyBuy.PersistableCodable { + public static var createTable: Swift.String { + get + } + public static var upsert: Swift.String { + get + } + public static var fetchAll: Swift.String { + get + } + public static var deleteAll: Swift.String { + get + } +} @objc @_hasMissingDesignatedInitializers public class WrongSiteArrivalConfig : ObjectiveC.NSObject, Swift.Codable { public var siteLimit: Swift.Int? public var worstAccuracyLimit: Swift.Double? @@ -356,11 +396,11 @@ extension FlyBuy.BaseApiRequest { } @objc(FlyBuyOrderEvent) open class OrderEvent : ObjectiveC.NSObject, Swift.Encodable { public init(orderID: Swift.Int, location: CoreLocation.CLLocation, beacons: [FlyBuy.Beacon], etaSeconds: Foundation.NSNumber?, etaSource: Swift.String?, possibleWrongSiteId: Swift.Int?) - @objc public init(orderID: Swift.Int, customerState: Swift.String, etaSeconds: Foundation.NSNumber?, etaSource: Swift.String?) - @objc public init(orderID: Swift.Int, customerState: Swift.String, spotIdentifier: Swift.String?) - @objc public init(orderID: Swift.Int, state: Swift.String) - @objc public init(orderID: Swift.Int, locationAuthStatus: FlyBuy.LocationAuthStatus) - @objc public init(orderID: Swift.Int, customerRating: Swift.Int, customerComments: Swift.String?) + public init(orderID: Swift.Int, customerState: Swift.String, etaSeconds: Foundation.NSNumber?, etaSource: Swift.String?, location: CoreLocation.CLLocation? = nil) + public init(orderID: Swift.Int, customerState: Swift.String, spotIdentifier: Swift.String?, location: CoreLocation.CLLocation?) + public init(orderID: Swift.Int, state: Swift.String, location: CoreLocation.CLLocation? = nil) + public init(orderID: Swift.Int, locationAuthStatus: FlyBuy.LocationAuthStatus) + public init(orderID: Swift.Int, customerRating: Swift.Int, customerComments: Swift.String?) @objc deinit open func encode(to encoder: Swift.Encoder) throws } @@ -541,15 +581,25 @@ public protocol FlyBuyError : Foundation.LocalizedError { @objc deinit } @_inheritsConvenienceInitializers @objc(FlyBuySitesManager) open class SitesManager : ObjectiveC.NSObject { + @available(*, deprecated, message: "This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead.") @objc public var all: [FlyBuy.Site]? { get } + @objc public func fetchByPartnerIdentifier(partnerIdentifier: Swift.String, operationalStatus: Swift.String = "live", callback: ((FlyBuy.Site?, Swift.Error?) -> (Swift.Void))? = nil) + @objc public func fetchByPartnerIdentifier(partnerIdentifier: Swift.String, callback: ((FlyBuy.Site?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead.") @objc public func fetch(query: Swift.String? = nil, page: Swift.Int = 1, callback: (([FlyBuy.Site]?, FlyBuy.Pagination?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead.") @objc public func fetch(query: Swift.String? = nil, page: Swift.Int = 1, operationalStatus: Swift.String = "live", callback: (([FlyBuy.Site]?, FlyBuy.Pagination?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated and will be removed in a future SDK release.") @objc public func fetch(region: CoreLocation.CLCircularRegion, page: Swift.Int = 1, callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated and will be removed in a future SDK release.") @objc public func fetch(region: CoreLocation.CLCircularRegion, page: Swift.Int = 1, operationalStatus: Swift.String = "live", callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated and will be removed in a future SDK release.") @objc public func fetch(region: CoreLocation.CLCircularRegion, page: Swift.Int, per: Swift.Int, callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated and will be removed in a future SDK release.") @objc public func fetch(region: CoreLocation.CLCircularRegion, page: Swift.Int, per: Swift.Int, operationalStatus: Swift.String = "live", callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated. Use FlyBuyCore.sites.fetchByPartnerIdentifier instead.") @objc public func fetchAll(query: Swift.String? = nil, callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) @objc override dynamic public init() @objc deinit @@ -664,6 +714,11 @@ public struct PickupStates : Swift.Codable { @objc public func fetch(callback: (([FlyBuy.Order]?, Swift.Error?) -> (Swift.Void))? = nil) @objc public func fetch(withRedemptionCode redemptionCode: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil) @objc public func claim(withRedemptionCode redemptionCode: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, state: Swift.String? = nil, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, state: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, state: Swift.String?, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) @objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, state: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) @objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, state: Swift.String, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) @objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) @@ -709,6 +764,8 @@ extension Foundation.NSNotification.Name { } @objc deinit } +extension FlyBuy.OrdersManager : CoreLocation.CLLocationManagerDelegate { +} @_inheritsConvenienceInitializers @objc(FlyBuyCustomerManager) public class CustomerManager : ObjectiveC.NSObject { @objc public var current: FlyBuy.Customer? { @objc get @@ -816,6 +873,7 @@ extension Foundation.NSNotification.Name { @objc final public let projectMobileFlowAlwaysShowVehicleInfoFields: Swift.Bool @objc final public let projectMobileFlowCustomerNameEditingEnabled: Swift.Bool @objc final public let projectMobileFlowPickupTypeSelectionEnabled: Swift.Bool + @available(*, deprecated, message: "Please use PickupTypeConfig.requireVehicleInfo: Bool") @objc final public let projectMobileFlowRequireVehicleInfoIfVisible: Swift.Bool @objc final public let curbsideLocalizedString: Swift.String? @objc final public let pickupLocalizedString: Swift.String? @@ -835,6 +893,7 @@ extension Foundation.NSNotification.Name { @objc public var wrongSiteSearchRadius: Foundation.NSNumber? { @objc get } + final public let _pickupConfigID: Swift.Int? required public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws @objc public func siteLocation() -> CoreLocation.CLLocation? @@ -863,6 +922,9 @@ extension FlyBuy.Order : FlyBuy.PersistableCodable { } extension FlyBuy.Order { public func isOpen() -> Swift.Bool + public var pickupConfig: FlyBuy.PickupConfig { + get + } } extension FlyBuy.LocationAuthStatus : Swift.Equatable {} extension FlyBuy.LocationAuthStatus : Swift.Hashable {} diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/FlyBuy b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/FlyBuy index 9169d3f..4411ac0 100644 Binary files a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/FlyBuy and b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/FlyBuy differ diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Headers/FlyBuy-Swift.h b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Headers/FlyBuy-Swift.h index ae405f0..8ada7d7 100644 --- a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Headers/FlyBuy-Swift.h +++ b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Headers/FlyBuy-Swift.h @@ -197,6 +197,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif +@import CoreLocation; @import Foundation; @import ObjectiveC; #endif @@ -667,7 +668,7 @@ SWIFT_CLASS_NAMED("Order") @property (nonatomic, readonly) BOOL projectMobileFlowAlwaysShowVehicleInfoFields; @property (nonatomic, readonly) BOOL projectMobileFlowCustomerNameEditingEnabled; @property (nonatomic, readonly) BOOL projectMobileFlowPickupTypeSelectionEnabled; -@property (nonatomic, readonly) BOOL projectMobileFlowRequireVehicleInfoIfVisible; +@property (nonatomic, readonly) BOOL projectMobileFlowRequireVehicleInfoIfVisible SWIFT_DEPRECATED_MSG("Please use PickupTypeConfig.requireVehicleInfo: Bool"); @property (nonatomic, readonly, copy) NSString * _Nullable curbsideLocalizedString; @property (nonatomic, readonly, copy) NSString * _Nullable pickupLocalizedString; @property (nonatomic, copy) NSString * _Nullable pushToken; @@ -695,11 +696,6 @@ SWIFT_CLASS_NAMED("Order") SWIFT_CLASS_NAMED("OrderEvent") @interface FlyBuyOrderEvent : NSObject -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID customerState:(NSString * _Nonnull)customerState etaSeconds:(NSNumber * _Nullable)etaSeconds etaSource:(NSString * _Nullable)etaSource OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID customerState:(NSString * _Nonnull)customerState spotIdentifier:(NSString * _Nullable)spotIdentifier OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID state:(NSString * _Nonnull)state OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID locationAuthStatus:(enum LocationAuthStatus)locationAuthStatus OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID customerRating:(NSInteger)customerRating customerComments:(NSString * _Nullable)customerComments OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end @@ -784,6 +780,166 @@ SWIFT_CLASS_NAMED("OrdersManager") /// \param callback will get called on completion with the Order and any errors encountered. Optional. /// - (void)claimWithRedemptionCode:(NSString * _Nonnull)redemptionCode customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupWindow pickup window for the order. Optional. +/// +/// \param state initial order state. Optional. +/// +/// \param pickupType the pickup type string value for the order. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nullable)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupWindow pickup window for the order. Optional. +/// +/// \param state initial order state. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nonnull)state callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupWindow pickup window for the order. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupWindow pickup window for the order. Optional. +/// +/// \param pickupType the pickup type string value for the order. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupType the pickup type string value for the order. Optional. +/// +/// \param state initial order state. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo state:(NSString * _Nullable)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; /// Create an Order for the current customer for the site with the given siteID. /// partnerIdentifier (e.g. order number) and customerInfo are required. /// Most orders will have a pickup time of “ASAP”. If you have a different pickup window, you can pass a pickupWindow parameter. If you want the default of “ASAP”, omit the parameter. @@ -976,6 +1132,10 @@ SWIFT_CLASS_NAMED("OrdersManager") +@interface FlyBuyOrdersManager (SWIFT_EXTENSION(FlyBuy)) +@end + + enum OrdersManagerErrorType : NSInteger; /// Error that may be returned from OrdersManager methods. @@ -1010,6 +1170,37 @@ SWIFT_CLASS_NAMED("Pagination") + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end +@class PickupTypeConfig; + +/// Data model for pickup config options for an order or site. +SWIFT_CLASS("_TtC6FlyBuy12PickupConfig") +@interface PickupConfig : NSObject +@property (nonatomic, copy) NSString * _Nonnull type; +@property (nonatomic, readonly) NSInteger id; +@property (nonatomic, readonly) BOOL customerNameEditingEnabled; +@property (nonatomic, readonly) BOOL pickupTypeSelectionEnabled; +@property (nonatomic, readonly, copy) NSString * _Nullable askToAskImageURL; +@property (nonatomic, readonly, copy) NSString * _Nonnull accentColor; +@property (nonatomic, readonly, copy) NSString * _Nonnull accentTextColor; +@property (nonatomic, readonly, copy) NSString * _Nullable termsOfServiceURL; +@property (nonatomic, readonly, copy) NSString * _Nullable privacyPolicyURL; +@property (nonatomic, readonly, copy) NSArray * _Nonnull availablePickupTypes; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + + +/// Data model for pickup type configs for an order or site. +SWIFT_CLASS("_TtC6FlyBuy16PickupTypeConfig") +@interface PickupTypeConfig : NSObject +@property (nonatomic, readonly, copy) NSString * _Nonnull pickupType; +@property (nonatomic, readonly, copy) NSString * _Nonnull pickupTypeLocalizedString; +@property (nonatomic, readonly) BOOL showVehicleInfoFields; +@property (nonatomic, readonly) BOOL requireVehicleInfo; +@end + @class NSLocale; /// Data model for a pickup window for an order. @@ -1068,7 +1259,47 @@ SWIFT_CLASS_NAMED("Site") SWIFT_CLASS_NAMED("SitesManager") @interface FlyBuySitesManager : NSObject /// Gets all sites. -@property (nonatomic, readonly, copy) NSArray * _Nullable all; +@property (nonatomic, readonly, copy) NSArray * _Nullable all SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead."); +/// Fetch a Site by partner identifier. +/// Provide partnerIdentifier parameter to return the site with the same partner identifier. If +/// the site is found, it will be returned in the callback; otherwise, an error will be returned +/// in the callback. +/// Example: +/// \code +/// FlyBuy.Core.sites.fetchByPartnerIdentifier(partnerIdentifier: "123") { (site, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param partnerIdentifier partner identifier for the site. +/// +/// \param operationalStatus operation status of the site. +/// +/// \param callback Gets called at completion with the Site or any error encountered. Optional. +/// +- (void)fetchByPartnerIdentifierWithPartnerIdentifier:(NSString * _Nonnull)partnerIdentifier operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(FlyBuySite * _Nullable, NSError * _Nullable))callback; +/// Fetch a Site by partner identifier. +/// Provide partnerIdentifier parameter to return the site with the same partner identifier. If +/// the site is found, it will be returned in the callback; otherwise, an error will be returned +/// in the callback. +/// Example: +/// \code +/// FlyBuy.Core.sites.fetchByPartnerIdentifier(partnerIdentifier: "123") { (site, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param partnerIdentifier partner identifier for the site. +/// +/// \param callback Gets called at completion with the Site or any error encountered. Optional. +/// +- (void)fetchByPartnerIdentifierWithPartnerIdentifier:(NSString * _Nonnull)partnerIdentifier callback:(void (^ _Nullable)(FlyBuySite * _Nullable, NSError * _Nullable))callback; /// fetches the list of sites from the FlyBuy web API via query string /// \param query the query string. Optional. /// @@ -1076,7 +1307,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithQuery:(NSString * _Nullable)query page:(NSInteger)page callback:(void (^ _Nullable)(NSArray * _Nullable, FlyBuyPagination * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithQuery:(NSString * _Nullable)query page:(NSInteger)page callback:(void (^ _Nullable)(NSArray * _Nullable, FlyBuyPagination * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead."); /// fetches the list of sites from the FlyBuy web API /// \param query the query string. Optional. /// @@ -1086,7 +1317,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithQuery:(NSString * _Nullable)query page:(NSInteger)page operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, FlyBuyPagination * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithQuery:(NSString * _Nullable)query page:(NSInteger)page operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, FlyBuyPagination * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead."); /// fetches the list of sites from the FlyBuy web API via search region /// \param region a CLCircularRegion for the search region. /// @@ -1094,7 +1325,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated and will be removed in a future SDK release."); /// fetches the list of sites from the FlyBuy web API via search region /// \param region a CLCircularRegion for the search region. /// @@ -1104,7 +1335,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated and will be removed in a future SDK release."); /// fetches the list of sites from the FlyBuy web API via search region /// \param region a CLCircularRegion for the search region. /// @@ -1114,7 +1345,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page per:(NSInteger)per callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page per:(NSInteger)per callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated and will be removed in a future SDK release."); /// fetches the list of sites from the FlyBuy web API via search region /// \param region a CLCircularRegion for the search region. /// @@ -1126,18 +1357,19 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page per:(NSInteger)per operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page per:(NSInteger)per operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated and will be removed in a future SDK release."); /// fetches the complete list of sites from the FlyBuy web API that matches the query string /// \param query the query string. Optional. /// /// \param callback will get called on completion with the array of Sites and any errors encountered. Optional. /// -- (void)fetchAllWithQuery:(NSString * _Nullable)query callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchAllWithQuery:(NSString * _Nullable)query callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated. Use FlyBuyCore.sites.fetchByPartnerIdentifier instead."); - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end + /// Error that may be returned from SitesManager methods. SWIFT_CLASS_NAMED("SitesManagerError") @interface FlyBuySitesManagerError : NSObject @@ -1367,6 +1599,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if __has_warning("-Watimport-in-framework-header") #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif +@import CoreLocation; @import Foundation; @import ObjectiveC; #endif @@ -1837,7 +2070,7 @@ SWIFT_CLASS_NAMED("Order") @property (nonatomic, readonly) BOOL projectMobileFlowAlwaysShowVehicleInfoFields; @property (nonatomic, readonly) BOOL projectMobileFlowCustomerNameEditingEnabled; @property (nonatomic, readonly) BOOL projectMobileFlowPickupTypeSelectionEnabled; -@property (nonatomic, readonly) BOOL projectMobileFlowRequireVehicleInfoIfVisible; +@property (nonatomic, readonly) BOOL projectMobileFlowRequireVehicleInfoIfVisible SWIFT_DEPRECATED_MSG("Please use PickupTypeConfig.requireVehicleInfo: Bool"); @property (nonatomic, readonly, copy) NSString * _Nullable curbsideLocalizedString; @property (nonatomic, readonly, copy) NSString * _Nullable pickupLocalizedString; @property (nonatomic, copy) NSString * _Nullable pushToken; @@ -1865,11 +2098,6 @@ SWIFT_CLASS_NAMED("Order") SWIFT_CLASS_NAMED("OrderEvent") @interface FlyBuyOrderEvent : NSObject -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID customerState:(NSString * _Nonnull)customerState etaSeconds:(NSNumber * _Nullable)etaSeconds etaSource:(NSString * _Nullable)etaSource OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID customerState:(NSString * _Nonnull)customerState spotIdentifier:(NSString * _Nullable)spotIdentifier OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID state:(NSString * _Nonnull)state OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID locationAuthStatus:(enum LocationAuthStatus)locationAuthStatus OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSInteger)orderID customerRating:(NSInteger)customerRating customerComments:(NSString * _Nullable)customerComments OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end @@ -1954,6 +2182,166 @@ SWIFT_CLASS_NAMED("OrdersManager") /// \param callback will get called on completion with the Order and any errors encountered. Optional. /// - (void)claimWithRedemptionCode:(NSString * _Nonnull)redemptionCode customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupWindow pickup window for the order. Optional. +/// +/// \param state initial order state. Optional. +/// +/// \param pickupType the pickup type string value for the order. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nullable)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupWindow pickup window for the order. Optional. +/// +/// \param state initial order state. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nonnull)state callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupWindow pickup window for the order. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupWindow pickup window for the order. Optional. +/// +/// \param pickupType the pickup type string value for the order. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; +/// Create an Order for the current customer for the site with the given sitePartnerIdentifier. +/// Example: +/// \code +/// let customerInfo = CustomerInfo( +/// name: "Marty McFly", +/// carType: "DeLorean", +/// carColor: "Silver", +/// licensePlate: "OUTATIME", +/// phone: "555-555-5555" +/// ) +/// +/// FlyBuy.Core.orders.create(sitePartnerIdentifier: "123", orderPartnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param sitePartnerIdentifier site partner identifier +/// +/// \param orderPartnerIdentifier partner identifier for the order +/// +/// \param customerInfo customer information +/// +/// \param pickupType the pickup type string value for the order. Optional. +/// +/// \param state initial order state. Optional. +/// +/// \param callback called once either an Order is created or an error is encountered. Optional. +/// +- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderPartnerIdentifier:(NSString * _Nonnull)orderPartnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo state:(NSString * _Nullable)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback; /// Create an Order for the current customer for the site with the given siteID. /// partnerIdentifier (e.g. order number) and customerInfo are required. /// Most orders will have a pickup time of “ASAP”. If you have a different pickup window, you can pass a pickupWindow parameter. If you want the default of “ASAP”, omit the parameter. @@ -2146,6 +2534,10 @@ SWIFT_CLASS_NAMED("OrdersManager") +@interface FlyBuyOrdersManager (SWIFT_EXTENSION(FlyBuy)) +@end + + enum OrdersManagerErrorType : NSInteger; /// Error that may be returned from OrdersManager methods. @@ -2180,6 +2572,37 @@ SWIFT_CLASS_NAMED("Pagination") + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end +@class PickupTypeConfig; + +/// Data model for pickup config options for an order or site. +SWIFT_CLASS("_TtC6FlyBuy12PickupConfig") +@interface PickupConfig : NSObject +@property (nonatomic, copy) NSString * _Nonnull type; +@property (nonatomic, readonly) NSInteger id; +@property (nonatomic, readonly) BOOL customerNameEditingEnabled; +@property (nonatomic, readonly) BOOL pickupTypeSelectionEnabled; +@property (nonatomic, readonly, copy) NSString * _Nullable askToAskImageURL; +@property (nonatomic, readonly, copy) NSString * _Nonnull accentColor; +@property (nonatomic, readonly, copy) NSString * _Nonnull accentTextColor; +@property (nonatomic, readonly, copy) NSString * _Nullable termsOfServiceURL; +@property (nonatomic, readonly, copy) NSString * _Nullable privacyPolicyURL; +@property (nonatomic, readonly, copy) NSArray * _Nonnull availablePickupTypes; +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + + + + +/// Data model for pickup type configs for an order or site. +SWIFT_CLASS("_TtC6FlyBuy16PickupTypeConfig") +@interface PickupTypeConfig : NSObject +@property (nonatomic, readonly, copy) NSString * _Nonnull pickupType; +@property (nonatomic, readonly, copy) NSString * _Nonnull pickupTypeLocalizedString; +@property (nonatomic, readonly) BOOL showVehicleInfoFields; +@property (nonatomic, readonly) BOOL requireVehicleInfo; +@end + @class NSLocale; /// Data model for a pickup window for an order. @@ -2238,7 +2661,47 @@ SWIFT_CLASS_NAMED("Site") SWIFT_CLASS_NAMED("SitesManager") @interface FlyBuySitesManager : NSObject /// Gets all sites. -@property (nonatomic, readonly, copy) NSArray * _Nullable all; +@property (nonatomic, readonly, copy) NSArray * _Nullable all SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead."); +/// Fetch a Site by partner identifier. +/// Provide partnerIdentifier parameter to return the site with the same partner identifier. If +/// the site is found, it will be returned in the callback; otherwise, an error will be returned +/// in the callback. +/// Example: +/// \code +/// FlyBuy.Core.sites.fetchByPartnerIdentifier(partnerIdentifier: "123") { (site, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param partnerIdentifier partner identifier for the site. +/// +/// \param operationalStatus operation status of the site. +/// +/// \param callback Gets called at completion with the Site or any error encountered. Optional. +/// +- (void)fetchByPartnerIdentifierWithPartnerIdentifier:(NSString * _Nonnull)partnerIdentifier operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(FlyBuySite * _Nullable, NSError * _Nullable))callback; +/// Fetch a Site by partner identifier. +/// Provide partnerIdentifier parameter to return the site with the same partner identifier. If +/// the site is found, it will be returned in the callback; otherwise, an error will be returned +/// in the callback. +/// Example: +/// \code +/// FlyBuy.Core.sites.fetchByPartnerIdentifier(partnerIdentifier: "123") { (site, error) -> (Void) in +/// if let error = error { +/// // Handle error +/// } else { +/// // Handle success +/// } +/// } +/// +/// \endcode\param partnerIdentifier partner identifier for the site. +/// +/// \param callback Gets called at completion with the Site or any error encountered. Optional. +/// +- (void)fetchByPartnerIdentifierWithPartnerIdentifier:(NSString * _Nonnull)partnerIdentifier callback:(void (^ _Nullable)(FlyBuySite * _Nullable, NSError * _Nullable))callback; /// fetches the list of sites from the FlyBuy web API via query string /// \param query the query string. Optional. /// @@ -2246,7 +2709,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithQuery:(NSString * _Nullable)query page:(NSInteger)page callback:(void (^ _Nullable)(NSArray * _Nullable, FlyBuyPagination * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithQuery:(NSString * _Nullable)query page:(NSInteger)page callback:(void (^ _Nullable)(NSArray * _Nullable, FlyBuyPagination * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead."); /// fetches the list of sites from the FlyBuy web API /// \param query the query string. Optional. /// @@ -2256,7 +2719,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithQuery:(NSString * _Nullable)query page:(NSInteger)page operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, FlyBuyPagination * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithQuery:(NSString * _Nullable)query page:(NSInteger)page operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, FlyBuyPagination * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead."); /// fetches the list of sites from the FlyBuy web API via search region /// \param region a CLCircularRegion for the search region. /// @@ -2264,7 +2727,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated and will be removed in a future SDK release."); /// fetches the list of sites from the FlyBuy web API via search region /// \param region a CLCircularRegion for the search region. /// @@ -2274,7 +2737,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated and will be removed in a future SDK release."); /// fetches the list of sites from the FlyBuy web API via search region /// \param region a CLCircularRegion for the search region. /// @@ -2284,7 +2747,7 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page per:(NSInteger)per callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page per:(NSInteger)per callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated and will be removed in a future SDK release."); /// fetches the list of sites from the FlyBuy web API via search region /// \param region a CLCircularRegion for the search region. /// @@ -2296,18 +2759,19 @@ SWIFT_CLASS_NAMED("SitesManager") /// /// \param callback will get called on completion with the array of Sites or any errors encountered. Optional. /// -- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page per:(NSInteger)per operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchWithRegion:(CLCircularRegion * _Nonnull)region page:(NSInteger)page per:(NSInteger)per operationalStatus:(NSString * _Nonnull)operationalStatus callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated and will be removed in a future SDK release."); /// fetches the complete list of sites from the FlyBuy web API that matches the query string /// \param query the query string. Optional. /// /// \param callback will get called on completion with the array of Sites and any errors encountered. Optional. /// -- (void)fetchAllWithQuery:(NSString * _Nullable)query callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback; +- (void)fetchAllWithQuery:(NSString * _Nullable)query callback:(void (^ _Nullable)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for fetching sites has been deprecated. Use FlyBuyCore.sites.fetchByPartnerIdentifier instead."); - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end + /// Error that may be returned from SitesManager methods. SWIFT_CLASS_NAMED("SitesManagerError") @interface FlyBuySitesManagerError : NSObject diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Info.plist b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Info.plist index f5c3863..c425ed4 100644 Binary files a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Info.plist and b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Info.plist differ diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftdoc index 7ea513d..d4c689b 100644 Binary files a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftdoc and b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftinterface index cb5cd21..2a5186b 100644 --- a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftinterface +++ b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -38,8 +38,8 @@ extension FlyBuy.PickupLocationFilterData { } @objc @_hasMissingDesignatedInitializers public class NotifyConfig : ObjectiveC.NSObject, Swift.Codable { final public let beaconUUID: Foundation.UUID - final public let defaultGeofenceRadiusMeters: Swift.Int - final public let defaultSiteSearchRadiusMeters: Swift.Int + final public let defaultGeofenceRadiusMeters: Swift.Double + final public let defaultSiteSearchRadiusMeters: Swift.Double final public let analyticsEventLimit: Swift.Int? @objc deinit public func encode(to encoder: Swift.Encoder) throws @@ -255,6 +255,46 @@ public enum HTTPStatusCode : Swift.Int, Swift.Error { get } } +@objc public class PickupTypeConfig : ObjectiveC.NSObject, Swift.Codable { + @objc final public let pickupType: Swift.String + @objc final public let pickupTypeLocalizedString: Swift.String + @objc final public let showVehicleInfoFields: Swift.Bool + @objc public var requireVehicleInfo: Swift.Bool { + @objc get + } + @objc deinit + public func encode(to encoder: Swift.Encoder) throws + required public init(from decoder: Swift.Decoder) throws +} +@_hasMissingDesignatedInitializers @objc public class PickupConfig : ObjectiveC.NSObject, Swift.Codable { + @objc public var type: Swift.String + @objc final public let id: Swift.Int + @objc final public let customerNameEditingEnabled: Swift.Bool + @objc final public let pickupTypeSelectionEnabled: Swift.Bool + @objc final public let askToAskImageURL: Swift.String? + @objc final public let accentColor: Swift.String + @objc final public let accentTextColor: Swift.String + @objc final public let termsOfServiceURL: Swift.String? + @objc final public let privacyPolicyURL: Swift.String? + @objc final public let availablePickupTypes: [FlyBuy.PickupTypeConfig] + required public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws + @objc deinit +} +extension FlyBuy.PickupConfig : FlyBuy.PersistableCodable { + public static var createTable: Swift.String { + get + } + public static var upsert: Swift.String { + get + } + public static var fetchAll: Swift.String { + get + } + public static var deleteAll: Swift.String { + get + } +} @objc @_hasMissingDesignatedInitializers public class WrongSiteArrivalConfig : ObjectiveC.NSObject, Swift.Codable { public var siteLimit: Swift.Int? public var worstAccuracyLimit: Swift.Double? @@ -356,11 +396,11 @@ extension FlyBuy.BaseApiRequest { } @objc(FlyBuyOrderEvent) open class OrderEvent : ObjectiveC.NSObject, Swift.Encodable { public init(orderID: Swift.Int, location: CoreLocation.CLLocation, beacons: [FlyBuy.Beacon], etaSeconds: Foundation.NSNumber?, etaSource: Swift.String?, possibleWrongSiteId: Swift.Int?) - @objc public init(orderID: Swift.Int, customerState: Swift.String, etaSeconds: Foundation.NSNumber?, etaSource: Swift.String?) - @objc public init(orderID: Swift.Int, customerState: Swift.String, spotIdentifier: Swift.String?) - @objc public init(orderID: Swift.Int, state: Swift.String) - @objc public init(orderID: Swift.Int, locationAuthStatus: FlyBuy.LocationAuthStatus) - @objc public init(orderID: Swift.Int, customerRating: Swift.Int, customerComments: Swift.String?) + public init(orderID: Swift.Int, customerState: Swift.String, etaSeconds: Foundation.NSNumber?, etaSource: Swift.String?, location: CoreLocation.CLLocation? = nil) + public init(orderID: Swift.Int, customerState: Swift.String, spotIdentifier: Swift.String?, location: CoreLocation.CLLocation?) + public init(orderID: Swift.Int, state: Swift.String, location: CoreLocation.CLLocation? = nil) + public init(orderID: Swift.Int, locationAuthStatus: FlyBuy.LocationAuthStatus) + public init(orderID: Swift.Int, customerRating: Swift.Int, customerComments: Swift.String?) @objc deinit open func encode(to encoder: Swift.Encoder) throws } @@ -541,15 +581,25 @@ public protocol FlyBuyError : Foundation.LocalizedError { @objc deinit } @_inheritsConvenienceInitializers @objc(FlyBuySitesManager) open class SitesManager : ObjectiveC.NSObject { + @available(*, deprecated, message: "This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead.") @objc public var all: [FlyBuy.Site]? { get } + @objc public func fetchByPartnerIdentifier(partnerIdentifier: Swift.String, operationalStatus: Swift.String = "live", callback: ((FlyBuy.Site?, Swift.Error?) -> (Swift.Void))? = nil) + @objc public func fetchByPartnerIdentifier(partnerIdentifier: Swift.String, callback: ((FlyBuy.Site?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead.") @objc public func fetch(query: Swift.String? = nil, page: Swift.Int = 1, callback: (([FlyBuy.Site]?, FlyBuy.Pagination?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead.") @objc public func fetch(query: Swift.String? = nil, page: Swift.Int = 1, operationalStatus: Swift.String = "live", callback: (([FlyBuy.Site]?, FlyBuy.Pagination?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated and will be removed in a future SDK release.") @objc public func fetch(region: CoreLocation.CLCircularRegion, page: Swift.Int = 1, callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated and will be removed in a future SDK release.") @objc public func fetch(region: CoreLocation.CLCircularRegion, page: Swift.Int = 1, operationalStatus: Swift.String = "live", callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated and will be removed in a future SDK release.") @objc public func fetch(region: CoreLocation.CLCircularRegion, page: Swift.Int, per: Swift.Int, callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated and will be removed in a future SDK release.") @objc public func fetch(region: CoreLocation.CLCircularRegion, page: Swift.Int, per: Swift.Int, operationalStatus: Swift.String = "live", callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated. Use FlyBuyCore.sites.fetchByPartnerIdentifier instead.") @objc public func fetchAll(query: Swift.String? = nil, callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) @objc override dynamic public init() @objc deinit @@ -664,6 +714,11 @@ public struct PickupStates : Swift.Codable { @objc public func fetch(callback: (([FlyBuy.Order]?, Swift.Error?) -> (Swift.Void))? = nil) @objc public func fetch(withRedemptionCode redemptionCode: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil) @objc public func claim(withRedemptionCode redemptionCode: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, state: Swift.String? = nil, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, state: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, state: Swift.String?, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) @objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, state: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) @objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, state: Swift.String, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) @objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) @@ -709,6 +764,8 @@ extension Foundation.NSNotification.Name { } @objc deinit } +extension FlyBuy.OrdersManager : CoreLocation.CLLocationManagerDelegate { +} @_inheritsConvenienceInitializers @objc(FlyBuyCustomerManager) public class CustomerManager : ObjectiveC.NSObject { @objc public var current: FlyBuy.Customer? { @objc get @@ -816,6 +873,7 @@ extension Foundation.NSNotification.Name { @objc final public let projectMobileFlowAlwaysShowVehicleInfoFields: Swift.Bool @objc final public let projectMobileFlowCustomerNameEditingEnabled: Swift.Bool @objc final public let projectMobileFlowPickupTypeSelectionEnabled: Swift.Bool + @available(*, deprecated, message: "Please use PickupTypeConfig.requireVehicleInfo: Bool") @objc final public let projectMobileFlowRequireVehicleInfoIfVisible: Swift.Bool @objc final public let curbsideLocalizedString: Swift.String? @objc final public let pickupLocalizedString: Swift.String? @@ -835,6 +893,7 @@ extension Foundation.NSNotification.Name { @objc public var wrongSiteSearchRadius: Foundation.NSNumber? { @objc get } + final public let _pickupConfigID: Swift.Int? required public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws @objc public func siteLocation() -> CoreLocation.CLLocation? @@ -863,6 +922,9 @@ extension FlyBuy.Order : FlyBuy.PersistableCodable { } extension FlyBuy.Order { public func isOpen() -> Swift.Bool + public var pickupConfig: FlyBuy.PickupConfig { + get + } } extension FlyBuy.LocationAuthStatus : Swift.Equatable {} extension FlyBuy.LocationAuthStatus : Swift.Hashable {} diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc index 2facfa0..da20c46 100644 Binary files a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftinterface index 31cf61a..7ef3c89 100644 --- a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -38,8 +38,8 @@ extension FlyBuy.PickupLocationFilterData { } @objc @_hasMissingDesignatedInitializers public class NotifyConfig : ObjectiveC.NSObject, Swift.Codable { final public let beaconUUID: Foundation.UUID - final public let defaultGeofenceRadiusMeters: Swift.Int - final public let defaultSiteSearchRadiusMeters: Swift.Int + final public let defaultGeofenceRadiusMeters: Swift.Double + final public let defaultSiteSearchRadiusMeters: Swift.Double final public let analyticsEventLimit: Swift.Int? @objc deinit public func encode(to encoder: Swift.Encoder) throws @@ -255,6 +255,46 @@ public enum HTTPStatusCode : Swift.Int, Swift.Error { get } } +@objc public class PickupTypeConfig : ObjectiveC.NSObject, Swift.Codable { + @objc final public let pickupType: Swift.String + @objc final public let pickupTypeLocalizedString: Swift.String + @objc final public let showVehicleInfoFields: Swift.Bool + @objc public var requireVehicleInfo: Swift.Bool { + @objc get + } + @objc deinit + public func encode(to encoder: Swift.Encoder) throws + required public init(from decoder: Swift.Decoder) throws +} +@_hasMissingDesignatedInitializers @objc public class PickupConfig : ObjectiveC.NSObject, Swift.Codable { + @objc public var type: Swift.String + @objc final public let id: Swift.Int + @objc final public let customerNameEditingEnabled: Swift.Bool + @objc final public let pickupTypeSelectionEnabled: Swift.Bool + @objc final public let askToAskImageURL: Swift.String? + @objc final public let accentColor: Swift.String + @objc final public let accentTextColor: Swift.String + @objc final public let termsOfServiceURL: Swift.String? + @objc final public let privacyPolicyURL: Swift.String? + @objc final public let availablePickupTypes: [FlyBuy.PickupTypeConfig] + required public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws + @objc deinit +} +extension FlyBuy.PickupConfig : FlyBuy.PersistableCodable { + public static var createTable: Swift.String { + get + } + public static var upsert: Swift.String { + get + } + public static var fetchAll: Swift.String { + get + } + public static var deleteAll: Swift.String { + get + } +} @objc @_hasMissingDesignatedInitializers public class WrongSiteArrivalConfig : ObjectiveC.NSObject, Swift.Codable { public var siteLimit: Swift.Int? public var worstAccuracyLimit: Swift.Double? @@ -356,11 +396,11 @@ extension FlyBuy.BaseApiRequest { } @objc(FlyBuyOrderEvent) open class OrderEvent : ObjectiveC.NSObject, Swift.Encodable { public init(orderID: Swift.Int, location: CoreLocation.CLLocation, beacons: [FlyBuy.Beacon], etaSeconds: Foundation.NSNumber?, etaSource: Swift.String?, possibleWrongSiteId: Swift.Int?) - @objc public init(orderID: Swift.Int, customerState: Swift.String, etaSeconds: Foundation.NSNumber?, etaSource: Swift.String?) - @objc public init(orderID: Swift.Int, customerState: Swift.String, spotIdentifier: Swift.String?) - @objc public init(orderID: Swift.Int, state: Swift.String) - @objc public init(orderID: Swift.Int, locationAuthStatus: FlyBuy.LocationAuthStatus) - @objc public init(orderID: Swift.Int, customerRating: Swift.Int, customerComments: Swift.String?) + public init(orderID: Swift.Int, customerState: Swift.String, etaSeconds: Foundation.NSNumber?, etaSource: Swift.String?, location: CoreLocation.CLLocation? = nil) + public init(orderID: Swift.Int, customerState: Swift.String, spotIdentifier: Swift.String?, location: CoreLocation.CLLocation?) + public init(orderID: Swift.Int, state: Swift.String, location: CoreLocation.CLLocation? = nil) + public init(orderID: Swift.Int, locationAuthStatus: FlyBuy.LocationAuthStatus) + public init(orderID: Swift.Int, customerRating: Swift.Int, customerComments: Swift.String?) @objc deinit open func encode(to encoder: Swift.Encoder) throws } @@ -541,15 +581,25 @@ public protocol FlyBuyError : Foundation.LocalizedError { @objc deinit } @_inheritsConvenienceInitializers @objc(FlyBuySitesManager) open class SitesManager : ObjectiveC.NSObject { + @available(*, deprecated, message: "This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead.") @objc public var all: [FlyBuy.Site]? { get } + @objc public func fetchByPartnerIdentifier(partnerIdentifier: Swift.String, operationalStatus: Swift.String = "live", callback: ((FlyBuy.Site?, Swift.Error?) -> (Swift.Void))? = nil) + @objc public func fetchByPartnerIdentifier(partnerIdentifier: Swift.String, callback: ((FlyBuy.Site?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead.") @objc public func fetch(query: Swift.String? = nil, page: Swift.Int = 1, callback: (([FlyBuy.Site]?, FlyBuy.Pagination?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated. Use FlyBuy.Core.sites.fetchByPartnerIdentifier instead.") @objc public func fetch(query: Swift.String? = nil, page: Swift.Int = 1, operationalStatus: Swift.String = "live", callback: (([FlyBuy.Site]?, FlyBuy.Pagination?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated and will be removed in a future SDK release.") @objc public func fetch(region: CoreLocation.CLCircularRegion, page: Swift.Int = 1, callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated and will be removed in a future SDK release.") @objc public func fetch(region: CoreLocation.CLCircularRegion, page: Swift.Int = 1, operationalStatus: Swift.String = "live", callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated and will be removed in a future SDK release.") @objc public func fetch(region: CoreLocation.CLCircularRegion, page: Swift.Int, per: Swift.Int, callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated and will be removed in a future SDK release.") @objc public func fetch(region: CoreLocation.CLCircularRegion, page: Swift.Int, per: Swift.Int, operationalStatus: Swift.String = "live", callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) + @available(*, deprecated, message: "This method for fetching sites has been deprecated. Use FlyBuyCore.sites.fetchByPartnerIdentifier instead.") @objc public func fetchAll(query: Swift.String? = nil, callback: (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))? = nil) @objc override dynamic public init() @objc deinit @@ -664,6 +714,11 @@ public struct PickupStates : Swift.Codable { @objc public func fetch(callback: (([FlyBuy.Order]?, Swift.Error?) -> (Swift.Void))? = nil) @objc public func fetch(withRedemptionCode redemptionCode: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil) @objc public func claim(withRedemptionCode redemptionCode: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, state: Swift.String? = nil, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, state: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) + @objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, state: Swift.String?, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) @objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, state: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) @objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, state: Swift.String, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) @objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?) @@ -709,6 +764,8 @@ extension Foundation.NSNotification.Name { } @objc deinit } +extension FlyBuy.OrdersManager : CoreLocation.CLLocationManagerDelegate { +} @_inheritsConvenienceInitializers @objc(FlyBuyCustomerManager) public class CustomerManager : ObjectiveC.NSObject { @objc public var current: FlyBuy.Customer? { @objc get @@ -816,6 +873,7 @@ extension Foundation.NSNotification.Name { @objc final public let projectMobileFlowAlwaysShowVehicleInfoFields: Swift.Bool @objc final public let projectMobileFlowCustomerNameEditingEnabled: Swift.Bool @objc final public let projectMobileFlowPickupTypeSelectionEnabled: Swift.Bool + @available(*, deprecated, message: "Please use PickupTypeConfig.requireVehicleInfo: Bool") @objc final public let projectMobileFlowRequireVehicleInfoIfVisible: Swift.Bool @objc final public let curbsideLocalizedString: Swift.String? @objc final public let pickupLocalizedString: Swift.String? @@ -835,6 +893,7 @@ extension Foundation.NSNotification.Name { @objc public var wrongSiteSearchRadius: Foundation.NSNumber? { @objc get } + final public let _pickupConfigID: Swift.Int? required public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws @objc public func siteLocation() -> CoreLocation.CLLocation? @@ -863,6 +922,9 @@ extension FlyBuy.Order : FlyBuy.PersistableCodable { } extension FlyBuy.Order { public func isOpen() -> Swift.Bool + public var pickupConfig: FlyBuy.PickupConfig { + get + } } extension FlyBuy.LocationAuthStatus : Swift.Equatable {} extension FlyBuy.LocationAuthStatus : Swift.Hashable {} diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/_CodeSignature/CodeResources b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/_CodeSignature/CodeResources index 439f582..0c8aead 100644 --- a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/_CodeSignature/CodeResources +++ b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/_CodeSignature/CodeResources @@ -6,7 +6,7 @@ Headers/FlyBuy-Swift.h - oEBbk9RTrFaPOPg4zsJioEhQSCA= + Mgxp2d4AwdIgRqRuzAkGGwz/R5k= Headers/FlyBuy.h @@ -14,31 +14,31 @@ Info.plist - 7vn2DixYdzoj0qIqrRl2f2y7RzM= + fR0eabyBYMHd5+zi07lDw9c1RQA= Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftdoc - aPG3NHzYrfn1y3nbtE+WdtEpjzU= + g1okGAYkdfuhUe1KeXosY88MJIY= Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftinterface - 77vj3ndZAtqATuaPCa++RxIukv4= + kDolh8Lnb6PUrfE4m7OOpgi9iO0= Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftmodule - kR2Wxn/S2EgsjAjcV5W8Q9byyEs= + sPFlbzW/0YzA8WUBglmQ7zNLVKY= Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc - x4ejyCU1tY+sFUAU5rkhDo77/Bo= + ZqFE5luqgspUc8E0t18KpkaUMKg= Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - 7O9Pkt5yIJG92/9leVVAiQl/d+I= + L1Xi9JymWQsDOezyuJPzV3u+rTg= Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - tgA5Uy7dd1DMZSIZckYx5xbitIs= + Dy2hN9hLo5oAcLULPqnlPjkaoiw= Modules/module.modulemap @@ -51,7 +51,7 @@ hash2 - SvCnxibH6mJNSHcbU4R01IB5dOnHHtXzvbPI87IgCWU= + 8TLmfVTfPSK386Wrz8ORDlMs/fivzg/bYQZLsE4CvVA= Headers/FlyBuy.h @@ -65,42 +65,42 @@ hash2 - dGH9cYwJYNjiYP0P+U0Gz6l6D5n3Lr+fz6UIsQuHlL8= + w7r5Fs3jqGYzv63Y3GQ0rdJSrUU26KMquFDhIKsw3lc= Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftinterface hash2 - cTNdAdF+oFnGhf8SQVWC4YvSqM2Pc3TFqdh767wLNyw= + Skb/YloH1nUBBsyeP/o7qJ7A5x7r3HrXv2C4GzbL9Mw= Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftmodule hash2 - LtoSZxyOBvswntD4nKILnXx74/b/SYDN0oJbVtitieQ= + bNJjfbYiVdYhNwFhlUtKSsH9VHM2Bhtqq+Y4aKg6XJE= Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc hash2 - SpDpgSPJHEPFoWefjnseDhLxx1uvd3c7fQY4jk873Vc= + sevSMqBMrvj1lPMkmN2zNghHy9ADZNrKYJEXlSb/Abc= Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftinterface hash2 - 6ORv00sKCxko+sGR7qHnvNAkIDhjK8qEm/6pthA+XTc= + JO9WuuKnB6SoE1RUZTo0+cQ0VRgUrlzajPaIDwaxLhI= Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftmodule hash2 - pn1NAncNU3mYstCvcInNdyUABwY0/tgqQhFfsAWWAM4= + /IWMEmNoxWY+Z2niRWAf5Nym1/jQQ+aypO4wrNfmqA0= Modules/module.modulemap diff --git a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/FlyBuyNotify b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/FlyBuyNotify index 39b9c40..3e184ff 100644 Binary files a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/FlyBuyNotify and b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/FlyBuyNotify differ diff --git a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h index d95e571..31e88af 100644 --- a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h +++ b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h @@ -233,7 +233,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FlyBuyNotify /// See Flybuy Developer Docs for additional details including all setup steps. /// Example: /// \code -/// func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { +/// func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { /// // Configure Core /// FlyBuy.Core.configure(["token": "TOKEN_HERE"]) /// // Enables Notify and uses Background Tasks @@ -291,36 +291,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FlyBuyNotify /// \endcode\param completionHandler The completion handler that is passed to the appdelegate by iOS. /// - (void)performFetchWithCompletionHandler:(void (^ _Nullable)(UIBackgroundFetchResult))completionHandler; -/// Handles the response to the campaign, looking up any associated data. This will open a deep link if present. -/// handleNotification() takes a notification response, looks up any associated campaign, opens the associated deep link if present, and returns the metadata associated with the campaign. If the metadata object is not nil, then the notification came from a campaign, and the metadata can be used to decide what to do. Otherwise, handle the notification normally. -/// note: -/// As a prerequisite, the delegate for UNUserNotificationCenter must be assigned before the app finishes launching. -/// note: -/// This will return nil if the notification is not handled by Flybuy. -/// note: -/// To receive notifications while the app is in the foreground, the app must also implement UNUserNotificationCenter‘s delegate method userNotificationCenter(_:willPresent:withCompletionHandler:) as noted in the example. -/// Example: -/// \code -/// extension AppDelegate: UNUserNotificationCenterDelegate{ -/// func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { -/// if let metadata = FlyBuyNotify.Manager.shared.handleNotification(response), metadata.isEmpty == false { -/// // Do something with campaign metadata -/// } else { -/// // Handler other notifications here -/// } -/// completionHandler() -/// } -/// -/// // Enables app to receive notifications while in the foreground -/// func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { -/// completionHandler([.badge, .sound, .alert]) -/// } -/// } -/// -/// -/// \endcode -/// returns: -/// The associated meta data - (NSDictionary * _Nullable)handleNotification:(UNNotificationResponse * _Nonnull)response SWIFT_WARN_UNUSED_RESULT; @end diff --git a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Info.plist b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Info.plist index c4fe9f5..6a52ff8 100644 Binary files a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Info.plist and b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Info.plist differ diff --git a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios.swiftdoc b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios.swiftdoc index 7baed14..0c6add3 100644 Binary files a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios.swiftdoc and b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/FlyBuyNotify b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/FlyBuyNotify index 42146d6..e95ac87 100644 Binary files a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/FlyBuyNotify and b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/FlyBuyNotify differ diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h index 9de58bc..4181a96 100644 --- a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h +++ b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h @@ -235,7 +235,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FlyBuyNotify /// See Flybuy Developer Docs for additional details including all setup steps. /// Example: /// \code -/// func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { +/// func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { /// // Configure Core /// FlyBuy.Core.configure(["token": "TOKEN_HERE"]) /// // Enables Notify and uses Background Tasks @@ -293,36 +293,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FlyBuyNotify /// \endcode\param completionHandler The completion handler that is passed to the appdelegate by iOS. /// - (void)performFetchWithCompletionHandler:(void (^ _Nullable)(UIBackgroundFetchResult))completionHandler; -/// Handles the response to the campaign, looking up any associated data. This will open a deep link if present. -/// handleNotification() takes a notification response, looks up any associated campaign, opens the associated deep link if present, and returns the metadata associated with the campaign. If the metadata object is not nil, then the notification came from a campaign, and the metadata can be used to decide what to do. Otherwise, handle the notification normally. -/// note: -/// As a prerequisite, the delegate for UNUserNotificationCenter must be assigned before the app finishes launching. -/// note: -/// This will return nil if the notification is not handled by Flybuy. -/// note: -/// To receive notifications while the app is in the foreground, the app must also implement UNUserNotificationCenter‘s delegate method userNotificationCenter(_:willPresent:withCompletionHandler:) as noted in the example. -/// Example: -/// \code -/// extension AppDelegate: UNUserNotificationCenterDelegate{ -/// func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { -/// if let metadata = FlyBuyNotify.Manager.shared.handleNotification(response), metadata.isEmpty == false { -/// // Do something with campaign metadata -/// } else { -/// // Handler other notifications here -/// } -/// completionHandler() -/// } -/// -/// // Enables app to receive notifications while in the foreground -/// func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { -/// completionHandler([.badge, .sound, .alert]) -/// } -/// } -/// -/// -/// \endcode -/// returns: -/// The associated meta data - (NSDictionary * _Nullable)handleNotification:(UNNotificationResponse * _Nonnull)response SWIFT_WARN_UNUSED_RESULT; @end @@ -606,7 +576,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FlyBuyNotify /// See Flybuy Developer Docs for additional details including all setup steps. /// Example: /// \code -/// func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { +/// func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { /// // Configure Core /// FlyBuy.Core.configure(["token": "TOKEN_HERE"]) /// // Enables Notify and uses Background Tasks @@ -664,36 +634,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FlyBuyNotify /// \endcode\param completionHandler The completion handler that is passed to the appdelegate by iOS. /// - (void)performFetchWithCompletionHandler:(void (^ _Nullable)(UIBackgroundFetchResult))completionHandler; -/// Handles the response to the campaign, looking up any associated data. This will open a deep link if present. -/// handleNotification() takes a notification response, looks up any associated campaign, opens the associated deep link if present, and returns the metadata associated with the campaign. If the metadata object is not nil, then the notification came from a campaign, and the metadata can be used to decide what to do. Otherwise, handle the notification normally. -/// note: -/// As a prerequisite, the delegate for UNUserNotificationCenter must be assigned before the app finishes launching. -/// note: -/// This will return nil if the notification is not handled by Flybuy. -/// note: -/// To receive notifications while the app is in the foreground, the app must also implement UNUserNotificationCenter‘s delegate method userNotificationCenter(_:willPresent:withCompletionHandler:) as noted in the example. -/// Example: -/// \code -/// extension AppDelegate: UNUserNotificationCenterDelegate{ -/// func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { -/// if let metadata = FlyBuyNotify.Manager.shared.handleNotification(response), metadata.isEmpty == false { -/// // Do something with campaign metadata -/// } else { -/// // Handler other notifications here -/// } -/// completionHandler() -/// } -/// -/// // Enables app to receive notifications while in the foreground -/// func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { -/// completionHandler([.badge, .sound, .alert]) -/// } -/// } -/// -/// -/// \endcode -/// returns: -/// The associated meta data - (NSDictionary * _Nullable)handleNotification:(UNNotificationResponse * _Nonnull)response SWIFT_WARN_UNUSED_RESULT; @end diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Info.plist b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Info.plist index 691f2a5..f30503c 100644 Binary files a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Info.plist and b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Info.plist differ diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftdoc index 4f7ac8d..8a928c4 100644 Binary files a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftdoc and b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftdoc index a1e3e5b..1dae0c5 100644 Binary files a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/_CodeSignature/CodeResources b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/_CodeSignature/CodeResources index 7d2358e..7df1ab8 100644 --- a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/_CodeSignature/CodeResources +++ b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/_CodeSignature/CodeResources @@ -6,7 +6,7 @@ Headers/FlyBuyNotify-Swift.h - sOZc5mDgchUfgwADcBD331+doNQ= + I3GI0EW9r1lFnazfYHRRH6OBewk= Headers/FlyBuyNotify.h @@ -14,11 +14,11 @@ Info.plist - c/ogPzF6ep/GIOyjL+ePkdAToK8= + xXbK7NOAFy21DW+sLnXax1nLilo= Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftdoc - l16TmYpgtzhF/8CLH2AUOa0SzO4= + vGT+05PO8lJQGUxENIxFgYP/jqA= Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -26,11 +26,11 @@ Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftmodule - OgRnVPVXJTpONziPV2jD2Jq7y+U= + g+imWzNPtBflYA6mxJ0PuNXuNiE= Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftdoc - YmuB/VM3phDkb2I1Yb4pa+CjPFY= + T9MySTBKpjoQmGv3lrtP9OlGvYA= Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -38,7 +38,7 @@ Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - W6jDVe9VFiSJGwLZQQY4hcHVXxM= + E2TUTBEhnBbZ71BV4d/cgNS3aUA= Modules/module.modulemap @@ -51,7 +51,7 @@ hash2 - fTr+scJfXlZ0zNpomdHHX6xFL2jyuOxa9KxfqYP6aTs= + qJGz5SFiO8o+UcLo7UGuhhTp+JHj2RvVJ8kUrMg792A= Headers/FlyBuyNotify.h @@ -65,7 +65,7 @@ hash2 - mYsCtAhqdnNEbUYzjXN0yEkDX7bDQ2b9YDdJqITbXvI= + z0syFD+dI1opgUYS1jrGJAM6cS9CVAYkyLWW6bAxK3o= Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -79,14 +79,14 @@ hash2 - aEMOtu/h0UWPO+BMJlztAtgnWG6wKhZ5SpSh8IJ0aPs= + idAZL3mhlJUd86L83fnueGTC4QKkMcf6Hbf9Z636zf0= Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftdoc hash2 - jGUClZ2BtxtlIIyxJoxaY/FgpSHLTTyaSHBDgJHD7Rw= + sT2MKh1ffJAJPAkl+On7DcA904YUL9cmduUtjbucAEY= Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -100,7 +100,7 @@ hash2 - ULDdzMcC9b6G/SwmM6lSqgfCg1VrikiwhBpv7wa9nHs= + cCCiIX/1YV9xIVJYPLEydmruQcGCfp1B/ErN7WTbFJ4= Modules/module.modulemap diff --git a/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/FlyBuyPickup b/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/FlyBuyPickup index 329dbe8..dc7302c 100644 Binary files a/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/FlyBuyPickup and b/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/FlyBuyPickup differ diff --git a/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/Info.plist b/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/Info.plist index 227a138..b894d9f 100644 Binary files a/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/Info.plist and b/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/Info.plist differ diff --git a/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/FlyBuyPickup b/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/FlyBuyPickup index c22ddb4..7df95ea 100644 Binary files a/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/FlyBuyPickup and b/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/FlyBuyPickup differ diff --git a/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/Info.plist b/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/Info.plist index 347f65a..becb312 100644 Binary files a/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/Info.plist and b/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/Info.plist differ diff --git a/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/_CodeSignature/CodeResources b/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/_CodeSignature/CodeResources index 91b6ce4..e52d625 100644 --- a/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/_CodeSignature/CodeResources +++ b/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/_CodeSignature/CodeResources @@ -14,7 +14,7 @@ Info.plist - a/KPUFiHNDY2EI9lyjfg5Um0ElY= + Gb+nT+YA/A/Vhep8LwBaMF7pnc4= Modules/FlyBuyPickup.swiftmodule/arm64-apple-ios-simulator.swiftdoc diff --git a/FlyBuyPresence.xcframework/Info.plist b/FlyBuyPresence.xcframework/Info.plist index 8eadb37..c7d6293 100644 --- a/FlyBuyPresence.xcframework/Info.plist +++ b/FlyBuyPresence.xcframework/Info.plist @@ -6,30 +6,30 @@ LibraryIdentifier - ios-arm64_x86_64-simulator + ios-arm64 LibraryPath FlyBuyPresence.framework SupportedArchitectures arm64 - x86_64 SupportedPlatform ios - SupportedPlatformVariant - simulator LibraryIdentifier - ios-arm64 + ios-arm64_x86_64-simulator LibraryPath FlyBuyPresence.framework SupportedArchitectures arm64 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator CFBundlePackageType diff --git a/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/FlyBuyPresence b/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/FlyBuyPresence index 7ae6a43..d280367 100644 Binary files a/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/FlyBuyPresence and b/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/FlyBuyPresence differ diff --git a/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/Info.plist b/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/Info.plist index d3ba366..54c0eb0 100644 Binary files a/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/Info.plist and b/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/Info.plist differ diff --git a/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/FlyBuyPresence b/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/FlyBuyPresence index 313286d..a4608bd 100644 Binary files a/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/FlyBuyPresence and b/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/FlyBuyPresence differ diff --git a/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/Info.plist b/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/Info.plist index cf7e592..8f35a30 100644 Binary files a/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/Info.plist and b/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/Info.plist differ diff --git a/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/_CodeSignature/CodeResources b/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/_CodeSignature/CodeResources index 91ed51e..2a41d38 100644 --- a/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/_CodeSignature/CodeResources +++ b/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/_CodeSignature/CodeResources @@ -14,7 +14,7 @@ Info.plist - 8lDvMsjvB2/e2HxrsvXVq6M9boU= + iW5a4fnpfkRhJB6chVUW0ZnvjOw= Modules/FlyBuyPresence.swiftmodule/arm64-apple-ios-simulator.swiftdoc diff --git a/FlyBuyTableside.xcframework/ios-arm64/FlyBuyTableside.framework/FlyBuyTableside b/FlyBuyTableside.xcframework/ios-arm64/FlyBuyTableside.framework/FlyBuyTableside index 128bb06..1d0f679 100644 Binary files a/FlyBuyTableside.xcframework/ios-arm64/FlyBuyTableside.framework/FlyBuyTableside and b/FlyBuyTableside.xcframework/ios-arm64/FlyBuyTableside.framework/FlyBuyTableside differ diff --git a/FlyBuyTableside.xcframework/ios-arm64/FlyBuyTableside.framework/Info.plist b/FlyBuyTableside.xcframework/ios-arm64/FlyBuyTableside.framework/Info.plist index 0381ef0..448bcb9 100644 Binary files a/FlyBuyTableside.xcframework/ios-arm64/FlyBuyTableside.framework/Info.plist and b/FlyBuyTableside.xcframework/ios-arm64/FlyBuyTableside.framework/Info.plist differ diff --git a/FlyBuyTableside.xcframework/ios-arm64_x86_64-simulator/FlyBuyTableside.framework/FlyBuyTableside b/FlyBuyTableside.xcframework/ios-arm64_x86_64-simulator/FlyBuyTableside.framework/FlyBuyTableside index d10b2c7..19854bc 100644 Binary files a/FlyBuyTableside.xcframework/ios-arm64_x86_64-simulator/FlyBuyTableside.framework/FlyBuyTableside and b/FlyBuyTableside.xcframework/ios-arm64_x86_64-simulator/FlyBuyTableside.framework/FlyBuyTableside differ diff --git a/FlyBuyTableside.xcframework/ios-arm64_x86_64-simulator/FlyBuyTableside.framework/Info.plist b/FlyBuyTableside.xcframework/ios-arm64_x86_64-simulator/FlyBuyTableside.framework/Info.plist index 14b7706..53f6d89 100644 Binary files a/FlyBuyTableside.xcframework/ios-arm64_x86_64-simulator/FlyBuyTableside.framework/Info.plist and b/FlyBuyTableside.xcframework/ios-arm64_x86_64-simulator/FlyBuyTableside.framework/Info.plist differ diff --git a/FlyBuyTableside.xcframework/ios-arm64_x86_64-simulator/FlyBuyTableside.framework/_CodeSignature/CodeResources b/FlyBuyTableside.xcframework/ios-arm64_x86_64-simulator/FlyBuyTableside.framework/_CodeSignature/CodeResources index 7b2b74a..a45190d 100644 --- a/FlyBuyTableside.xcframework/ios-arm64_x86_64-simulator/FlyBuyTableside.framework/_CodeSignature/CodeResources +++ b/FlyBuyTableside.xcframework/ios-arm64_x86_64-simulator/FlyBuyTableside.framework/_CodeSignature/CodeResources @@ -14,7 +14,7 @@ Info.plist - BUedQYvgpE0xlgeLBgP/H8DtsTc= + +2pZG296AJsHlJTXSziNalROUOU= Modules/FlyBuyTableside.swiftmodule/arm64-apple-ios-simulator.swiftdoc