diff --git a/FlyBuy.framework/FlyBuy b/FlyBuy.framework/FlyBuy index 3176875..260eb2c 100644 Binary files a/FlyBuy.framework/FlyBuy and b/FlyBuy.framework/FlyBuy differ diff --git a/FlyBuy.framework/Headers/FlyBuy-Swift.h b/FlyBuy.framework/Headers/FlyBuy-Swift.h index 4b972e6..1469695 100644 --- a/FlyBuy.framework/Headers/FlyBuy-Swift.h +++ b/FlyBuy.framework/Headers/FlyBuy-Swift.h @@ -209,7 +209,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); SWIFT_CLASS("_TtC6FlyBuy14ClaimOrderInfo") @interface ClaimOrderInfo : NSObject - (nonnull instancetype)initWithCustomerCarColor:(NSString * _Nullable)customerCarColor customerCarType:(NSString * _Nullable)customerCarType customerLicensePlate:(NSString * _Nullable)customerLicensePlate customerName:(NSString * _Nullable)customerName customerPhone:(NSString * _Nullable)customerPhone pushToken:(NSString * _Nonnull)pushToken OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithCustomerInfo:(CustomerInfo * _Nonnull)customerInfo pushToken:(NSString * _Nonnull)pushToken OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)initWithCustomerInfo:(CustomerInfo * _Nonnull)customerInfo pushToken:(NSString * _Nonnull)pushToken pickupType:(NSString * _Nullable)pickupType OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end @@ -424,8 +424,10 @@ SWIFT_CLASS("_TtC6FlyBuy5Order") @property (nonatomic) enum CustomerState customerState; @property (nonatomic, readonly, copy) NSString * _Nullable partnerIdentifier; @property (nonatomic, readonly, copy) NSString * _Nullable redemptionCode; +@property (nonatomic, readonly, copy) NSDate * _Nullable redeemedAt; @property (nonatomic, readonly, copy) NSString * _Nullable displayName; @property (nonatomic, readonly, strong) PickupWindow * _Nullable pickupWindow; +@property (nonatomic, copy) NSString * _Nullable pickupType; @property (nonatomic, copy) NSDate * _Nullable etaAt; @property (nonatomic, copy) NSDate * _Nullable completedAt; @property (nonatomic, copy) NSDate * _Nullable createdAt; @@ -507,6 +509,12 @@ SWIFT_CLASS("_TtC6FlyBuy13OrdersManager") /// order and any errors encountered. Optional. /// - (void)fetchWithRedemptionCode:(NSString * _Nonnull)redemptionCode callback:(void (^ _Nullable)(Order * _Nullable, NSError * _Nullable))callback; +/// Claims an order using a redemption code and pickup type +/// \param redemptionCode the redemption code for the order +/// +/// \param callback will get called on completion with the order and any errors encountered. Optional. +/// +- (void)claimWithRedemptionCode:(NSString * _Nonnull)redemptionCode customerInfo:(CustomerInfo * _Nonnull)customerInfo pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(Order * _Nullable, NSError * _Nullable))callback; /// Claims an order using a redemption code /// \param redemptionCode the redemption code for the order /// @@ -592,6 +600,8 @@ SWIFT_CLASS("_TtC6FlyBuy13OrdersManager") SWIFT_CLASS("_TtC6FlyBuy10Pagination") @interface Pagination : NSObject +@property (nonatomic, readonly) NSInteger currentPage; +@property (nonatomic, readonly) NSInteger totalPages; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end @@ -601,6 +611,8 @@ SWIFT_CLASS("_TtC6FlyBuy12PickupWindow") @interface PickupWindow : NSObject @property (nonatomic, readonly, copy) NSDate * _Nonnull start; @property (nonatomic, readonly, copy) NSDate * _Nonnull end; +- (nonnull instancetype)initWithStart:(NSDate * _Nonnull)start end:(NSDate * _Nonnull)end OBJC_DESIGNATED_INITIALIZER; +- (nonnull instancetype)init:(NSDate * _Nonnull)date; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end diff --git a/FlyBuy.framework/Info.plist b/FlyBuy.framework/Info.plist index 18422b1..cf5ceed 100644 --- a/FlyBuy.framework/Info.plist +++ b/FlyBuy.framework/Info.plist @@ -17,13 +17,13 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.1 + 1.2 CFBundleSupportedPlatforms iPhoneOS CFBundleVersion - 876 + 878 DTCompiler com.apple.compilers.llvm.clang.1_0 DTPlatformBuild diff --git a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftdoc b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftdoc index 7417027..a855ec8 100644 Binary files a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftdoc and b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftmodule b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftmodule index c8b5522..fce3299 100644 Binary files a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftmodule and b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftmodule differ diff --git a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftdoc b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftdoc index 7417027..a855ec8 100644 Binary files a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftdoc and b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftdoc differ diff --git a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftmodule b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftmodule index c8b5522..fce3299 100644 Binary files a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftmodule and b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftmodule differ diff --git a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc index d6ba63d..1b2240d 100644 Binary files a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftmodule b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftmodule index f493303..4f1fa77 100644 Binary files a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftmodule and b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftmodule differ diff --git a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftdoc b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftdoc index d6ba63d..1b2240d 100644 Binary files a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftdoc and b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftdoc differ diff --git a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftmodule b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftmodule index f493303..4f1fa77 100644 Binary files a/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftmodule and b/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftmodule differ