MBXBillingServiceInterface_Internal.h 1.7 KB

123456789101112131415161718192021222324252627
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. #import <MapboxCommon/MBXBillingSessionStatus_Internal.h>
  4. #import <MapboxCommon/MBXOnBillingServiceError_Internal.h>
  5. #import <MapboxCommon/MBXSessionSKUIdentifier_Internal.h>
  6. #import <MapboxCommon/MBXUserSKUIdentifier_Internal.h>
  7. NS_SWIFT_NAME(BillingServiceInterface)
  8. @protocol MBXBillingServiceInterface
  9. - (void)triggerUserBillingEventForAccessToken:(nonnull NSString *)accessToken
  10. userAgent:(nonnull NSString *)userAgent
  11. skuIdentifier:(MBXUserSKUIdentifier)skuIdentifier
  12. callback:(nonnull MBXOnBillingServiceError)callback;
  13. - (void)beginBillingSessionForAccessToken:(nonnull NSString *)accessToken
  14. userAgent:(nonnull NSString *)userAgent
  15. skuIdentifier:(MBXSessionSKUIdentifier)skuIdentifier
  16. callback:(nonnull MBXOnBillingServiceError)callback
  17. validity:(NSTimeInterval)validity;
  18. - (void)pauseBillingSessionForSkuIdentifier:(MBXSessionSKUIdentifier)skuIdentifier;
  19. - (void)resumeBillingSessionForSkuIdentifier:(MBXSessionSKUIdentifier)skuIdentifier
  20. callback:(nonnull MBXOnBillingServiceError)callback;
  21. - (void)stopBillingSessionForSkuIdentifier:(MBXSessionSKUIdentifier)skuIdentifier;
  22. - (MBXBillingSessionStatus)getSessionStatusForSkuIdentifier:(MBXSessionSKUIdentifier)skuIdentifier;
  23. - (nonnull NSString *)getSessionSKUTokenIfValidForSkuIdentifier:(MBXSessionSKUIdentifier)skuIdentifier;
  24. - (nonnull NSString *)getUserSKUTokenForSkuIdentifier:(MBXUserSKUIdentifier)skuIdentifier;
  25. @end