diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/FlyBuy b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/FlyBuy
index 896fa40..59acc5d 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 f79f966..fd9305f 100644
--- a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Headers/FlyBuy-Swift.h
+++ b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Headers/FlyBuy-Swift.h
@@ -746,6 +746,13 @@ SWIFT_CLASS_NAMED("OrderEvent")
@end
+SWIFT_CLASS_NAMED("OrderOptions")
+@interface FlyBuyOrderOptions : NSObject
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
+@end
+
+
/// Manager for order operations
/// Allows fetching the list of orders, creating a new order, or creating
/// order events.
@@ -795,304 +802,112 @@ SWIFT_CLASS_NAMED("OrdersManager")
///
- (void)fetchWithRedemptionCode:(NSString * _Nonnull)redemptionCode callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
/// Claim an order for the current customer.
-/// redemptionCode and customerInfo are required to claim the order.
-/// Optionally, a pickupType may be provided. This is only necessary for apps that do not set the pickup type via backend integrations when the order is created. Supported pickup types currently include “curbside”, “pickup”, and “delivery”. Passing nil will leave the pickupType unchanged.
-/// Example:
-/// \code
-/// // Create the customer info struct for person picking up (name is required)
-/// let customerInfo = CustomerInfo(
-/// name: "Marty McFly",
-/// carType: "DeLorean",
-/// carColor: "Silver",
-/// licensePlate: "OUTATIME",
-/// phone: "555-555-5555"
-/// )
-///
-/// FlyBuy.Core.orders.claim(withRedemptionCode: code, customerInfo: customerInfo) { (order, error) -> (Void) in
-/// if let error = error {
-/// // Handle error
-/// } else {
-/// // Handle success
-/// }
-/// }
-///
-/// \endcode\param redemptionCode the redemption code for the order
-///
-/// \param customerInfo the customer details for the order
-///
-/// \param pickupType the pickup type string value for the order. Optional.
-///
-/// \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.
+/// redemptionCode and orderOptions are required to claim the order.
+/// Optionally, a "pickupType"
may be provided in the [orderOptions]. This is only necessary for apps that do not set the pickup type via backend integrations when the order is created. Supported pickup types currently include "curbside"
, "pickup"
, and "delivery"
.
/// 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
+/// // Create the order options instance for person pickup the order (name is required)
+/// let orderOptions = OrderOptions.Builder(customerName: "Marty McFly")
+/// .setCustomerPhone("555-555-5555")
+/// .setCustomerCarColor("Silver")
+/// .setCustomerCarType("Delorean")
+/// .setCustomerCarPlate("OUTATIME")
///
-/// \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 {
+/// FlyBuy.Core.orders.claim(withRedemptionCode: code, orderOptions: orderOptions.build()) { (order, error) -> (Void) in
+/// if let error = error {
/// // Handle error
-/// } else {
+/// } else {
/// // Handle success
-/// }
+/// }
/// }
///
-/// \endcode\param sitePartnerIdentifier site partner identifier
-///
-/// \param orderPartnerIdentifier partner identifier for the order
-///
-/// \param customerInfo customer information
+/// \endcode\param redemptionCode the redemption code for the order
///
-/// \param pickupWindow pickup window for the order. Optional.
+/// \param orderOptions options used for claiming the order
///
-/// \param callback called once either an Order
is created or an error is encountered. Optional.
+/// \param callback will get called on completion with the Order
and any errors 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.
+- (void)claimWithRedemptionCode:(NSString * _Nonnull)redemptionCode orderOptions:(FlyBuyOrderOptions * _Nonnull)orderOptions callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
+- (void)claimWithRedemptionCode:(NSString * _Nonnull)redemptionCode customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for claiming an order has been deprecated. Use claim(withRedemptionCode, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nonnull)state callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nonnull)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo state:(NSString * _Nullable)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+/// Create an Order
for the current customer for the site with the given siteID.
+/// [orderOptions] is required.
+/// By default, orders are created with a state of created
. If you wish to provide a different initial state, use the optional state
parameter of the [orderOptions].
+/// Most orders will have a pickup time of “ASAP”. If you have a different pickup window, you can set a pickupWindow
parameter of the [orderOptions]. If you want the default of “ASAP”, omit the parameter.
+/// Optionally, a pickupType
may be provided in the [orderOptions].
/// 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
+/// let orderOptions = OrderOptions.Builder(customerName: "Marty McFly")
+/// .setCustomerPhone("555-555-5555")
+/// .setCustomerCarColor("Silver")
+/// .setCustomerCarType("DeLorean")
+/// .setCustomerCarPlate("OUTATIME")
+/// .setPartnerIdentifier("1234")
+/// .setPickupWindow(pickupWindow)
+/// .setState(orderState)
+/// .setPickupType(pickupType)
+///
+/// FlyBuy.Core.orders.create(siteID: 101, orderOptions: orderOptions.build()) { (order, error) -> (Void) in
/// if let error = error {
-/// // Handle error
+/// // Handle error
/// } else {
-/// // Handle success
-/// }
+/// // 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.
+/// \endcode\param siteID site identifier
///
-/// \param pickupType the pickup type string value for the order. Optional.
+/// \param orderOptions options used for creating the order
///
/// \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;
+- (void)createWithSiteID:(NSInteger)siteID orderOptions:(FlyBuyOrderOptions * _Nonnull)orderOptions callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
/// Create an Order
for the current customer for the site with the given sitePartnerIdentifier.
+/// [orderOptions] is required.
+/// By default, orders are created with a state of created
. If you wish to provide a different initial state, use the optional state
parameter of the [orderOptions].
+/// Most orders will have a pickup time of “ASAP”. If you have a different pickup window, you can set a pickupWindow
parameter of the [orderOptions]. If you want the default of “ASAP”, omit the parameter.
+///
pickupType
may be provided in the [orderOptions]
+/// 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.
-/// \param siteID site identifier
-///
-/// \param partnerIdentifier partner identifier for the order
-///
-/// \param customerInfo customer information
-///
-/// \param pickupWindow pickup window for the order. Optional.
-///
-/// \param state initial order state
-///
-/// \param callback called once either an Order
is created or an error is encountered. Optional.
-///
-- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier 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 siteID.
-/// \param siteID site identifier
-///
-/// \param partnerIdentifier partner identifier for the order
-///
-/// \param customerInfo customer information
-///
-/// \param pickupWindow pickup window for the order. Optional.
-///
-/// \param state initial order state
-///
-/// \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)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nonnull)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.
-/// Example:
-/// \code
-/// let customerInfo = CustomerInfo(
-/// name: "Marty McFly",
-/// carType: "DeLorean",
-/// carColor: "Silver",
-/// licensePlate: "OUTATIME",
-/// phone: "555-555-5555"
-/// )
-///
-/// FlyBuy.Core.orders.create(siteID: 101, partnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in
-/// if let error = error {
-/// // Handle error
-/// } else {
-/// // Handle success
-/// }
-/// }
-///
-/// \endcode\param siteID site identifier
-///
-/// \param partnerIdentifier 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)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier 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 siteID.
-/// Example:
-/// \code
-/// let customerInfo = CustomerInfo(
-/// name: "Marty McFly",
-/// carType: "DeLorean",
-/// carColor: "Silver",
-/// licensePlate: "OUTATIME",
-/// phone: "555-555-5555"
-/// )
-///
-/// FlyBuy.Core.orders.create(siteID: 101, partnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in
-/// if let error = error {
-/// // Handle error
-/// } else {
-/// // Handle success
-/// }
-/// }
-///
-/// \endcode\param siteID site identifier
-///
-/// \param partnerIdentifier 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)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier 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 siteID.
-/// \param siteID site identifier
-///
-/// \param partnerIdentifier partner identifier for the order
-///
-/// \param customerInfo customer information
-///
-/// \param state initial order state. Optional.
-///
-/// \param pickupType the pickup type string value for the order. Optional.
+/// \param orderOptions customer information for the order
///
/// \param callback called once either an Order
is created or an error is encountered. Optional.
///
-- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo state:(NSString * _Nullable)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
+- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderOptions:(FlyBuyOrderOptions * _Nonnull)orderOptions callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
/// Update the customerState for an order with the given orderId.
/// Example:
/// \code
diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Info.plist b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Info.plist
index 55489ab..6cf3d97 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 edbad31..df40901 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 51d155a..296dff5 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
@@ -483,6 +483,22 @@ extension Swift.Error {
get
}
}
+@_hasMissingDesignatedInitializers @objc(FlyBuyOrderOptions) public class OrderOptions : ObjectiveC.NSObject {
+ public class Builder {
+ public init(customerName: Swift.String)
+ public func setCustomerPhone(_ customerPhone: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setCustomerCarColor(_ customerCarColor: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setCustomerCarType(_ customerCarType: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setCustomerCarPlate(_ customerCarPlate: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setPartnerIdentifier(_ partnerIdentifier: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setPickupWindow(_ pickupWindow: FlyBuy.PickupWindow?) -> FlyBuy.OrderOptions.Builder
+ public func setState(_ state: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setPickupType(_ pickupType: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func build() -> FlyBuy.OrderOptions
+ @objc deinit
+ }
+ @objc deinit
+}
@usableFromInline
internal protocol _AnyDecodable {
var value: Any { get }
@@ -747,17 +763,31 @@ public struct PickupStates : Swift.Codable {
@objc override dynamic public init()
@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, orderOptions: FlyBuy.OrderOptions, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
+ @available(*, deprecated, message: "This method for claiming an order has been deprecated. Use claim(withRedemptionCode, orderOptions) instead.")
@objc public func claim(withRedemptionCode redemptionCode: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@objc public func create(siteID: Swift.Int, partnerIdentifier: 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, orderOptions: FlyBuy.OrderOptions, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
+ @objc public func create(sitePartnerIdentifier: Swift.String, orderOptions: FlyBuy.OrderOptions, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
public func event(info: FlyBuy.OrderEvent, callback: ((FlyBuy.Order?, Swift.Error?) -> ())? = nil)
@objc public func updateCustomerState(orderID: Swift.Int, customerState: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
@objc public func updateCustomerState(orderID: Swift.Int, customerState: Swift.String, spotIdentifier: Swift.String?, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
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 5155584..93c83bd 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 10594e4..4591004 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
@@ -748,6 +748,13 @@ SWIFT_CLASS_NAMED("OrderEvent")
@end
+SWIFT_CLASS_NAMED("OrderOptions")
+@interface FlyBuyOrderOptions : NSObject
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
+@end
+
+
/// Manager for order operations
/// Allows fetching the list of orders, creating a new order, or creating
/// order events.
@@ -797,304 +804,112 @@ SWIFT_CLASS_NAMED("OrdersManager")
///
- (void)fetchWithRedemptionCode:(NSString * _Nonnull)redemptionCode callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
/// Claim an order for the current customer.
-/// redemptionCode and customerInfo are required to claim the order.
-/// Optionally, a pickupType may be provided. This is only necessary for apps that do not set the pickup type via backend integrations when the order is created. Supported pickup types currently include “curbside”, “pickup”, and “delivery”. Passing nil will leave the pickupType unchanged.
-/// Example:
-/// \code
-/// // Create the customer info struct for person picking up (name is required)
-/// let customerInfo = CustomerInfo(
-/// name: "Marty McFly",
-/// carType: "DeLorean",
-/// carColor: "Silver",
-/// licensePlate: "OUTATIME",
-/// phone: "555-555-5555"
-/// )
-///
-/// FlyBuy.Core.orders.claim(withRedemptionCode: code, customerInfo: customerInfo) { (order, error) -> (Void) in
-/// if let error = error {
-/// // Handle error
-/// } else {
-/// // Handle success
-/// }
-/// }
-///
-/// \endcode\param redemptionCode the redemption code for the order
-///
-/// \param customerInfo the customer details for the order
-///
-/// \param pickupType the pickup type string value for the order. Optional.
-///
-/// \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.
+/// redemptionCode and orderOptions are required to claim the order.
+/// Optionally, a "pickupType"
may be provided in the [orderOptions]. This is only necessary for apps that do not set the pickup type via backend integrations when the order is created. Supported pickup types currently include "curbside"
, "pickup"
, and "delivery"
.
/// 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
+/// // Create the order options instance for person pickup the order (name is required)
+/// let orderOptions = OrderOptions.Builder(customerName: "Marty McFly")
+/// .setCustomerPhone("555-555-5555")
+/// .setCustomerCarColor("Silver")
+/// .setCustomerCarType("Delorean")
+/// .setCustomerCarPlate("OUTATIME")
///
-/// \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 {
+/// FlyBuy.Core.orders.claim(withRedemptionCode: code, orderOptions: orderOptions.build()) { (order, error) -> (Void) in
+/// if let error = error {
/// // Handle error
-/// } else {
+/// } else {
/// // Handle success
-/// }
+/// }
/// }
///
-/// \endcode\param sitePartnerIdentifier site partner identifier
-///
-/// \param orderPartnerIdentifier partner identifier for the order
-///
-/// \param customerInfo customer information
+/// \endcode\param redemptionCode the redemption code for the order
///
-/// \param pickupWindow pickup window for the order. Optional.
+/// \param orderOptions options used for claiming the order
///
-/// \param callback called once either an Order
is created or an error is encountered. Optional.
+/// \param callback will get called on completion with the Order
and any errors 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.
+- (void)claimWithRedemptionCode:(NSString * _Nonnull)redemptionCode orderOptions:(FlyBuyOrderOptions * _Nonnull)orderOptions callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
+- (void)claimWithRedemptionCode:(NSString * _Nonnull)redemptionCode customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for claiming an order has been deprecated. Use claim(withRedemptionCode, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nonnull)state callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nonnull)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo state:(NSString * _Nullable)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+/// Create an Order
for the current customer for the site with the given siteID.
+/// [orderOptions] is required.
+/// By default, orders are created with a state of created
. If you wish to provide a different initial state, use the optional state
parameter of the [orderOptions].
+/// Most orders will have a pickup time of “ASAP”. If you have a different pickup window, you can set a pickupWindow
parameter of the [orderOptions]. If you want the default of “ASAP”, omit the parameter.
+/// Optionally, a pickupType
may be provided in the [orderOptions].
/// 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
+/// let orderOptions = OrderOptions.Builder(customerName: "Marty McFly")
+/// .setCustomerPhone("555-555-5555")
+/// .setCustomerCarColor("Silver")
+/// .setCustomerCarType("DeLorean")
+/// .setCustomerCarPlate("OUTATIME")
+/// .setPartnerIdentifier("1234")
+/// .setPickupWindow(pickupWindow)
+/// .setState(orderState)
+/// .setPickupType(pickupType)
+///
+/// FlyBuy.Core.orders.create(siteID: 101, orderOptions: orderOptions.build()) { (order, error) -> (Void) in
/// if let error = error {
-/// // Handle error
+/// // Handle error
/// } else {
-/// // Handle success
-/// }
+/// // 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.
+/// \endcode\param siteID site identifier
///
-/// \param pickupType the pickup type string value for the order. Optional.
+/// \param orderOptions options used for creating the order
///
/// \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;
+- (void)createWithSiteID:(NSInteger)siteID orderOptions:(FlyBuyOrderOptions * _Nonnull)orderOptions callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
/// Create an Order
for the current customer for the site with the given sitePartnerIdentifier.
+/// [orderOptions] is required.
+/// By default, orders are created with a state of created
. If you wish to provide a different initial state, use the optional state
parameter of the [orderOptions].
+/// Most orders will have a pickup time of “ASAP”. If you have a different pickup window, you can set a pickupWindow
parameter of the [orderOptions]. If you want the default of “ASAP”, omit the parameter.
+/// pickupType
may be provided in the [orderOptions]
+/// 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.
-/// \param siteID site identifier
-///
-/// \param partnerIdentifier partner identifier for the order
-///
-/// \param customerInfo customer information
-///
-/// \param pickupWindow pickup window for the order. Optional.
-///
-/// \param state initial order state
-///
-/// \param callback called once either an Order
is created or an error is encountered. Optional.
-///
-- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier 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 siteID.
-/// \param siteID site identifier
-///
-/// \param partnerIdentifier partner identifier for the order
-///
-/// \param customerInfo customer information
-///
-/// \param pickupWindow pickup window for the order. Optional.
-///
-/// \param state initial order state
-///
-/// \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)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nonnull)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.
-/// Example:
-/// \code
-/// let customerInfo = CustomerInfo(
-/// name: "Marty McFly",
-/// carType: "DeLorean",
-/// carColor: "Silver",
-/// licensePlate: "OUTATIME",
-/// phone: "555-555-5555"
-/// )
-///
-/// FlyBuy.Core.orders.create(siteID: 101, partnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in
-/// if let error = error {
-/// // Handle error
-/// } else {
-/// // Handle success
-/// }
-/// }
-///
-/// \endcode\param siteID site identifier
-///
-/// \param partnerIdentifier 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)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier 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 siteID.
-/// Example:
-/// \code
-/// let customerInfo = CustomerInfo(
-/// name: "Marty McFly",
-/// carType: "DeLorean",
-/// carColor: "Silver",
-/// licensePlate: "OUTATIME",
-/// phone: "555-555-5555"
-/// )
-///
-/// FlyBuy.Core.orders.create(siteID: 101, partnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in
-/// if let error = error {
-/// // Handle error
-/// } else {
-/// // Handle success
-/// }
-/// }
-///
-/// \endcode\param siteID site identifier
-///
-/// \param partnerIdentifier 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)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier 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 siteID.
-/// \param siteID site identifier
-///
-/// \param partnerIdentifier partner identifier for the order
-///
-/// \param customerInfo customer information
-///
-/// \param state initial order state. Optional.
-///
-/// \param pickupType the pickup type string value for the order. Optional.
+/// \param orderOptions customer information for the order
///
/// \param callback called once either an Order
is created or an error is encountered. Optional.
///
-- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo state:(NSString * _Nullable)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
+- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderOptions:(FlyBuyOrderOptions * _Nonnull)orderOptions callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
/// Update the customerState for an order with the given orderId.
/// Example:
/// \code
@@ -2198,6 +2013,13 @@ SWIFT_CLASS_NAMED("OrderEvent")
@end
+SWIFT_CLASS_NAMED("OrderOptions")
+@interface FlyBuyOrderOptions : NSObject
+- (nonnull instancetype)init SWIFT_UNAVAILABLE;
++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
+@end
+
+
/// Manager for order operations
/// Allows fetching the list of orders, creating a new order, or creating
/// order events.
@@ -2247,304 +2069,112 @@ SWIFT_CLASS_NAMED("OrdersManager")
///
- (void)fetchWithRedemptionCode:(NSString * _Nonnull)redemptionCode callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
/// Claim an order for the current customer.
-/// redemptionCode and customerInfo are required to claim the order.
-/// Optionally, a pickupType may be provided. This is only necessary for apps that do not set the pickup type via backend integrations when the order is created. Supported pickup types currently include “curbside”, “pickup”, and “delivery”. Passing nil will leave the pickupType unchanged.
-/// Example:
-/// \code
-/// // Create the customer info struct for person picking up (name is required)
-/// let customerInfo = CustomerInfo(
-/// name: "Marty McFly",
-/// carType: "DeLorean",
-/// carColor: "Silver",
-/// licensePlate: "OUTATIME",
-/// phone: "555-555-5555"
-/// )
-///
-/// FlyBuy.Core.orders.claim(withRedemptionCode: code, customerInfo: customerInfo) { (order, error) -> (Void) in
-/// if let error = error {
-/// // Handle error
-/// } else {
-/// // Handle success
-/// }
-/// }
-///
-/// \endcode\param redemptionCode the redemption code for the order
-///
-/// \param customerInfo the customer details for the order
-///
-/// \param pickupType the pickup type string value for the order. Optional.
-///
-/// \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.
+/// redemptionCode and orderOptions are required to claim the order.
+/// Optionally, a "pickupType"
may be provided in the [orderOptions]. This is only necessary for apps that do not set the pickup type via backend integrations when the order is created. Supported pickup types currently include "curbside"
, "pickup"
, and "delivery"
.
/// 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
+/// // Create the order options instance for person pickup the order (name is required)
+/// let orderOptions = OrderOptions.Builder(customerName: "Marty McFly")
+/// .setCustomerPhone("555-555-5555")
+/// .setCustomerCarColor("Silver")
+/// .setCustomerCarType("Delorean")
+/// .setCustomerCarPlate("OUTATIME")
///
-/// \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 {
+/// FlyBuy.Core.orders.claim(withRedemptionCode: code, orderOptions: orderOptions.build()) { (order, error) -> (Void) in
+/// if let error = error {
/// // Handle error
-/// } else {
+/// } else {
/// // Handle success
-/// }
+/// }
/// }
///
-/// \endcode\param sitePartnerIdentifier site partner identifier
-///
-/// \param orderPartnerIdentifier partner identifier for the order
-///
-/// \param customerInfo customer information
+/// \endcode\param redemptionCode the redemption code for the order
///
-/// \param pickupWindow pickup window for the order. Optional.
+/// \param orderOptions options used for claiming the order
///
-/// \param callback called once either an Order
is created or an error is encountered. Optional.
+/// \param callback will get called on completion with the Order
and any errors 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.
+- (void)claimWithRedemptionCode:(NSString * _Nonnull)redemptionCode orderOptions:(FlyBuyOrderOptions * _Nonnull)orderOptions callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
+- (void)claimWithRedemptionCode:(NSString * _Nonnull)redemptionCode customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for claiming an order has been deprecated. Use claim(withRedemptionCode, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (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 SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nonnull)state callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nonnull)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo state:(NSString * _Nullable)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.");
+/// Create an Order
for the current customer for the site with the given siteID.
+/// [orderOptions] is required.
+/// By default, orders are created with a state of created
. If you wish to provide a different initial state, use the optional state
parameter of the [orderOptions].
+/// Most orders will have a pickup time of “ASAP”. If you have a different pickup window, you can set a pickupWindow
parameter of the [orderOptions]. If you want the default of “ASAP”, omit the parameter.
+/// Optionally, a pickupType
may be provided in the [orderOptions].
/// 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
+/// let orderOptions = OrderOptions.Builder(customerName: "Marty McFly")
+/// .setCustomerPhone("555-555-5555")
+/// .setCustomerCarColor("Silver")
+/// .setCustomerCarType("DeLorean")
+/// .setCustomerCarPlate("OUTATIME")
+/// .setPartnerIdentifier("1234")
+/// .setPickupWindow(pickupWindow)
+/// .setState(orderState)
+/// .setPickupType(pickupType)
+///
+/// FlyBuy.Core.orders.create(siteID: 101, orderOptions: orderOptions.build()) { (order, error) -> (Void) in
/// if let error = error {
-/// // Handle error
+/// // Handle error
/// } else {
-/// // Handle success
-/// }
+/// // 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.
+/// \endcode\param siteID site identifier
///
-/// \param pickupType the pickup type string value for the order. Optional.
+/// \param orderOptions options used for creating the order
///
/// \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;
+- (void)createWithSiteID:(NSInteger)siteID orderOptions:(FlyBuyOrderOptions * _Nonnull)orderOptions callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
/// Create an Order
for the current customer for the site with the given sitePartnerIdentifier.
+/// [orderOptions] is required.
+/// By default, orders are created with a state of created
. If you wish to provide a different initial state, use the optional state
parameter of the [orderOptions].
+/// Most orders will have a pickup time of “ASAP”. If you have a different pickup window, you can set a pickupWindow
parameter of the [orderOptions]. If you want the default of “ASAP”, omit the parameter.
+/// pickupType
may be provided in the [orderOptions]
+/// 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.
-/// \param siteID site identifier
-///
-/// \param partnerIdentifier partner identifier for the order
-///
-/// \param customerInfo customer information
-///
-/// \param pickupWindow pickup window for the order. Optional.
-///
-/// \param state initial order state
-///
-/// \param callback called once either an Order
is created or an error is encountered. Optional.
-///
-- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier 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 siteID.
-/// \param siteID site identifier
-///
-/// \param partnerIdentifier partner identifier for the order
-///
-/// \param customerInfo customer information
-///
-/// \param pickupWindow pickup window for the order. Optional.
-///
-/// \param state initial order state
-///
-/// \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)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pickupWindow:(FlyBuyPickupWindow * _Nullable)pickupWindow state:(NSString * _Nonnull)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.
-/// Example:
-/// \code
-/// let customerInfo = CustomerInfo(
-/// name: "Marty McFly",
-/// carType: "DeLorean",
-/// carColor: "Silver",
-/// licensePlate: "OUTATIME",
-/// phone: "555-555-5555"
-/// )
-///
-/// FlyBuy.Core.orders.create(siteID: 101, partnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in
-/// if let error = error {
-/// // Handle error
-/// } else {
-/// // Handle success
-/// }
-/// }
-///
-/// \endcode\param siteID site identifier
-///
-/// \param partnerIdentifier 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)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier 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 siteID.
-/// Example:
-/// \code
-/// let customerInfo = CustomerInfo(
-/// name: "Marty McFly",
-/// carType: "DeLorean",
-/// carColor: "Silver",
-/// licensePlate: "OUTATIME",
-/// phone: "555-555-5555"
-/// )
-///
-/// FlyBuy.Core.orders.create(siteID: 101, partnerIdentifier: "1234123", customerInfo: customerInfo) { (order, error) -> (Void) in
-/// if let error = error {
-/// // Handle error
-/// } else {
-/// // Handle success
-/// }
-/// }
-///
-/// \endcode\param siteID site identifier
-///
-/// \param partnerIdentifier 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)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier 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 siteID.
-/// \param siteID site identifier
-///
-/// \param partnerIdentifier partner identifier for the order
-///
-/// \param customerInfo customer information
-///
-/// \param state initial order state. Optional.
-///
-/// \param pickupType the pickup type string value for the order. Optional.
+/// \param orderOptions customer information for the order
///
/// \param callback called once either an Order
is created or an error is encountered. Optional.
///
-- (void)createWithSiteID:(NSInteger)siteID partnerIdentifier:(NSString * _Nonnull)partnerIdentifier customerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo state:(NSString * _Nullable)state pickupType:(NSString * _Nullable)pickupType callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
+- (void)createWithSitePartnerIdentifier:(NSString * _Nonnull)sitePartnerIdentifier orderOptions:(FlyBuyOrderOptions * _Nonnull)orderOptions callback:(void (^ _Nullable)(FlyBuyOrder * _Nullable, NSError * _Nullable))callback;
/// Update the customerState for an order with the given orderId.
/// Example:
/// \code
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 e324a7f..5c2269e 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 1ee62e8..a2fda53 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 11f5626..579b4d9 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
@@ -483,6 +483,22 @@ extension Swift.Error {
get
}
}
+@_hasMissingDesignatedInitializers @objc(FlyBuyOrderOptions) public class OrderOptions : ObjectiveC.NSObject {
+ public class Builder {
+ public init(customerName: Swift.String)
+ public func setCustomerPhone(_ customerPhone: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setCustomerCarColor(_ customerCarColor: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setCustomerCarType(_ customerCarType: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setCustomerCarPlate(_ customerCarPlate: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setPartnerIdentifier(_ partnerIdentifier: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setPickupWindow(_ pickupWindow: FlyBuy.PickupWindow?) -> FlyBuy.OrderOptions.Builder
+ public func setState(_ state: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setPickupType(_ pickupType: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func build() -> FlyBuy.OrderOptions
+ @objc deinit
+ }
+ @objc deinit
+}
@usableFromInline
internal protocol _AnyDecodable {
var value: Any { get }
@@ -747,17 +763,31 @@ public struct PickupStates : Swift.Codable {
@objc override dynamic public init()
@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, orderOptions: FlyBuy.OrderOptions, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
+ @available(*, deprecated, message: "This method for claiming an order has been deprecated. Use claim(withRedemptionCode, orderOptions) instead.")
@objc public func claim(withRedemptionCode redemptionCode: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@objc public func create(siteID: Swift.Int, partnerIdentifier: 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, orderOptions: FlyBuy.OrderOptions, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
+ @objc public func create(sitePartnerIdentifier: Swift.String, orderOptions: FlyBuy.OrderOptions, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
public func event(info: FlyBuy.OrderEvent, callback: ((FlyBuy.Order?, Swift.Error?) -> ())? = nil)
@objc public func updateCustomerState(orderID: Swift.Int, customerState: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
@objc public func updateCustomerState(orderID: Swift.Int, customerState: Swift.String, spotIdentifier: Swift.String?, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
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 2e6d958..65446a4 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 8e632ef..6059b8b 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
@@ -483,6 +483,22 @@ extension Swift.Error {
get
}
}
+@_hasMissingDesignatedInitializers @objc(FlyBuyOrderOptions) public class OrderOptions : ObjectiveC.NSObject {
+ public class Builder {
+ public init(customerName: Swift.String)
+ public func setCustomerPhone(_ customerPhone: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setCustomerCarColor(_ customerCarColor: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setCustomerCarType(_ customerCarType: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setCustomerCarPlate(_ customerCarPlate: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setPartnerIdentifier(_ partnerIdentifier: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setPickupWindow(_ pickupWindow: FlyBuy.PickupWindow?) -> FlyBuy.OrderOptions.Builder
+ public func setState(_ state: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func setPickupType(_ pickupType: Swift.String?) -> FlyBuy.OrderOptions.Builder
+ public func build() -> FlyBuy.OrderOptions
+ @objc deinit
+ }
+ @objc deinit
+}
@usableFromInline
internal protocol _AnyDecodable {
var value: Any { get }
@@ -747,17 +763,31 @@ public struct PickupStates : Swift.Codable {
@objc override dynamic public init()
@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, orderOptions: FlyBuy.OrderOptions, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
+ @available(*, deprecated, message: "This method for claiming an order has been deprecated. Use claim(withRedemptionCode, orderOptions) instead.")
@objc public func claim(withRedemptionCode redemptionCode: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@objc public func create(sitePartnerIdentifier: Swift.String, orderPartnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@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))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@objc public func create(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pickupWindow: FlyBuy.PickupWindow? = nil, pickupType: Swift.String? = nil, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
+ @available(*, deprecated, message: "This method for creating an order has been deprecated. Use create(siteID, orderOptions) instead.")
@objc public func create(siteID: Swift.Int, partnerIdentifier: 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, orderOptions: FlyBuy.OrderOptions, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
+ @objc public func create(sitePartnerIdentifier: Swift.String, orderOptions: FlyBuy.OrderOptions, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))?)
public func event(info: FlyBuy.OrderEvent, callback: ((FlyBuy.Order?, Swift.Error?) -> ())? = nil)
@objc public func updateCustomerState(orderID: Swift.Int, customerState: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
@objc public func updateCustomerState(orderID: Swift.Int, customerState: Swift.String, spotIdentifier: Swift.String?, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
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 9f1ec7c..7e15d91 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 @@