BTPreferredPaymentMethods.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #import <Foundation/Foundation.h>
  2. #import "BTPreferredPaymentMethodsResult.h"
  3. #import "BTAPIClient.h"
  4. NS_ASSUME_NONNULL_BEGIN
  5. /**
  6. :nodoc:
  7. Fetches information about which payment methods are preferred on the device.
  8. Used to determine which payment methods are given preference in your UI,
  9. not whether they are presented entirely.
  10. This class is currently in beta and may change in future releases.
  11. */
  12. @interface BTPreferredPaymentMethods : NSObject
  13. /**
  14. :nodoc:
  15. Creates an instance of BTPreferredPaymentMethods.
  16. @param apiClient An API client
  17. */
  18. - (instancetype)initWithAPIClient:(BTAPIClient *)apiClient NS_DESIGNATED_INITIALIZER;
  19. /**
  20. :nodoc:
  21. Base initializer - do not use.
  22. */
  23. - (instancetype)init __attribute__((unavailable("Please use initWithAPIClient:")));
  24. /**
  25. :nodoc:
  26. Fetches information about which payment methods are preferred on the device.
  27. @param completion A completion block that is invoked when preferred payment methods are available.
  28. */
  29. - (void)fetchPreferredPaymentMethods:(void (^)(BTPreferredPaymentMethodsResult *))completion;
  30. @end
  31. NS_ASSUME_NONNULL_END