BTConfiguration.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #import <Foundation/Foundation.h>
  2. #import "BTJSON.h"
  3. NS_ASSUME_NONNULL_BEGIN
  4. /**
  5. Contains information specific to a merchant's Braintree integration
  6. */
  7. @interface BTConfiguration : NSObject
  8. /**
  9. Used to initialize a `BTConfiguration`
  10. @param json The `BTJSON` to initialize with.
  11. */
  12. - (instancetype)initWithJSON:(BTJSON *)json NS_DESIGNATED_INITIALIZER;
  13. /**
  14. The merchant account's configuration as a `BTJSON` object
  15. */
  16. @property (nonatomic, readonly, strong) BTJSON *json;
  17. #pragma mark - Undesignated initializers (do not use)
  18. /**
  19. Base initializer - do not use.
  20. */
  21. - (instancetype)init __attribute__((unavailable("Please use initWithJSON: instead.")));
  22. /**
  23. Returns true if the corresponding beta flag is set, otherwise returns false
  24. */
  25. + (BOOL)isBetaEnabledPaymentOption:(NSString*)paymentOption DEPRECATED_MSG_ATTRIBUTE("Pay with Venmo is no longer in beta");
  26. /**
  27. Set a corresponding beta flag
  28. */
  29. + (void)setBetaPaymentOption:(NSString*)paymentOption isEnabled:(BOOL)isEnabled DEPRECATED_MSG_ATTRIBUTE("Pay with Venmo is no longer in beta");
  30. @end
  31. NS_ASSUME_NONNULL_END