diff --git a/Stripe/PublicHeaders/StripeError.h b/Stripe/PublicHeaders/StripeError.h index 9cf9ef99e5..94305f685e 100644 --- a/Stripe/PublicHeaders/StripeError.h +++ b/Stripe/PublicHeaders/StripeError.h @@ -13,7 +13,8 @@ */ FOUNDATION_EXPORT NSString * __nonnull const StripeDomain; -typedef NS_ENUM(NSInteger, STPErrorCode) { +typedef enum STPError: NSInteger STPErrorCode; +enum __attribute__((ns_error_domain(StripeDomain))) STPErrorCode: NSInteger { STPConnectionError = 40, // Trouble connecting to Stripe. STPInvalidRequestError = 50, // Your request had invalid parameters. STPAPIError = 60, // General-purpose API error (should be rare).