Easebuzz-Swift.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. // Generated by Apple Swift version 4.1 (swiftlang-902.0.48 clang-902.0.37.1)
  2. #pragma clang diagnostic push
  3. #pragma clang diagnostic ignored "-Wgcc-compat"
  4. #if !defined(__has_include)
  5. # define __has_include(x) 0
  6. #endif
  7. #if !defined(__has_attribute)
  8. # define __has_attribute(x) 0
  9. #endif
  10. #if !defined(__has_feature)
  11. # define __has_feature(x) 0
  12. #endif
  13. #if !defined(__has_warning)
  14. # define __has_warning(x) 0
  15. #endif
  16. #if __has_include(<swift/objc-prologue.h>)
  17. # include <swift/objc-prologue.h>
  18. #endif
  19. #pragma clang diagnostic ignored "-Wauto-import"
  20. #include <objc/NSObject.h>
  21. #include <stdint.h>
  22. #include <stddef.h>
  23. #include <stdbool.h>
  24. #if !defined(SWIFT_TYPEDEFS)
  25. # define SWIFT_TYPEDEFS 1
  26. # if __has_include(<uchar.h>)
  27. # include <uchar.h>
  28. # elif !defined(__cplusplus)
  29. typedef uint_least16_t char16_t;
  30. typedef uint_least32_t char32_t;
  31. # endif
  32. typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
  33. typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
  34. typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
  35. typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
  36. typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
  37. typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
  38. typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
  39. typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
  40. typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
  41. typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
  42. typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
  43. typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
  44. #endif
  45. #if !defined(SWIFT_PASTE)
  46. # define SWIFT_PASTE_HELPER(x, y) x##y
  47. # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
  48. #endif
  49. #if !defined(SWIFT_METATYPE)
  50. # define SWIFT_METATYPE(X) Class
  51. #endif
  52. #if !defined(SWIFT_CLASS_PROPERTY)
  53. # if __has_feature(objc_class_property)
  54. # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
  55. # else
  56. # define SWIFT_CLASS_PROPERTY(...)
  57. # endif
  58. #endif
  59. #if __has_attribute(objc_runtime_name)
  60. # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
  61. #else
  62. # define SWIFT_RUNTIME_NAME(X)
  63. #endif
  64. #if __has_attribute(swift_name)
  65. # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
  66. #else
  67. # define SWIFT_COMPILE_NAME(X)
  68. #endif
  69. #if __has_attribute(objc_method_family)
  70. # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
  71. #else
  72. # define SWIFT_METHOD_FAMILY(X)
  73. #endif
  74. #if __has_attribute(noescape)
  75. # define SWIFT_NOESCAPE __attribute__((noescape))
  76. #else
  77. # define SWIFT_NOESCAPE
  78. #endif
  79. #if __has_attribute(warn_unused_result)
  80. # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
  81. #else
  82. # define SWIFT_WARN_UNUSED_RESULT
  83. #endif
  84. #if __has_attribute(noreturn)
  85. # define SWIFT_NORETURN __attribute__((noreturn))
  86. #else
  87. # define SWIFT_NORETURN
  88. #endif
  89. #if !defined(SWIFT_CLASS_EXTRA)
  90. # define SWIFT_CLASS_EXTRA
  91. #endif
  92. #if !defined(SWIFT_PROTOCOL_EXTRA)
  93. # define SWIFT_PROTOCOL_EXTRA
  94. #endif
  95. #if !defined(SWIFT_ENUM_EXTRA)
  96. # define SWIFT_ENUM_EXTRA
  97. #endif
  98. #if !defined(SWIFT_CLASS)
  99. # if __has_attribute(objc_subclassing_restricted)
  100. # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
  101. # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  102. # else
  103. # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  104. # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  105. # endif
  106. #endif
  107. #if !defined(SWIFT_PROTOCOL)
  108. # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  109. # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  110. #endif
  111. #if !defined(SWIFT_EXTENSION)
  112. # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
  113. #endif
  114. #if !defined(OBJC_DESIGNATED_INITIALIZER)
  115. # if __has_attribute(objc_designated_initializer)
  116. # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
  117. # else
  118. # define OBJC_DESIGNATED_INITIALIZER
  119. # endif
  120. #endif
  121. #if !defined(SWIFT_ENUM_ATTR)
  122. # if defined(__has_attribute) && __has_attribute(enum_extensibility)
  123. # define SWIFT_ENUM_ATTR __attribute__((enum_extensibility(open)))
  124. # else
  125. # define SWIFT_ENUM_ATTR
  126. # endif
  127. #endif
  128. #if !defined(SWIFT_ENUM)
  129. # define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type
  130. # if __has_feature(generalized_swift_name)
  131. # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type
  132. # else
  133. # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) SWIFT_ENUM(_type, _name)
  134. # endif
  135. #endif
  136. #if !defined(SWIFT_UNAVAILABLE)
  137. # define SWIFT_UNAVAILABLE __attribute__((unavailable))
  138. #endif
  139. #if !defined(SWIFT_UNAVAILABLE_MSG)
  140. # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
  141. #endif
  142. #if !defined(SWIFT_AVAILABILITY)
  143. # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
  144. #endif
  145. #if !defined(SWIFT_DEPRECATED)
  146. # define SWIFT_DEPRECATED __attribute__((deprecated))
  147. #endif
  148. #if !defined(SWIFT_DEPRECATED_MSG)
  149. # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
  150. #endif
  151. #if __has_feature(attribute_diagnose_if_objc)
  152. # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
  153. #else
  154. # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
  155. #endif
  156. #if __has_feature(modules)
  157. @import UIKit;
  158. @import CoreGraphics;
  159. @import Foundation;
  160. @import ObjectiveC;
  161. #endif
  162. #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
  163. #pragma clang diagnostic ignored "-Wduplicate-method-arg"
  164. #if __has_warning("-Wpragma-clang-attribute")
  165. # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
  166. #endif
  167. #pragma clang diagnostic ignored "-Wunknown-pragmas"
  168. #pragma clang diagnostic ignored "-Wnullability"
  169. #if __has_attribute(external_source_symbol)
  170. # pragma push_macro("any")
  171. # undef any
  172. # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="Easebuzz",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
  173. # pragma pop_macro("any")
  174. #endif
  175. @class NSCoder;
  176. @class NSAttributedString;
  177. SWIFT_CLASS("_TtC8Easebuzz19MonthYearPickerView")
  178. @interface MonthYearPickerView : UIPickerView <UIPickerViewDataSource, UIPickerViewDelegate>
  179. - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
  180. - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
  181. - (NSInteger)numberOfComponentsInPickerView:(UIPickerView * _Nonnull)pickerView SWIFT_WARN_UNUSED_RESULT;
  182. - (NSString * _Nullable)pickerView:(UIPickerView * _Nonnull)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component SWIFT_WARN_UNUSED_RESULT;
  183. - (NSInteger)pickerView:(UIPickerView * _Nonnull)pickerView numberOfRowsInComponent:(NSInteger)component SWIFT_WARN_UNUSED_RESULT;
  184. - (void)pickerView:(UIPickerView * _Nonnull)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component;
  185. - (NSAttributedString * _Nullable)pickerView:(UIPickerView * _Nonnull)pickerView attributedTitleForRow:(NSInteger)row forComponent:(NSInteger)component SWIFT_WARN_UNUSED_RESULT;
  186. @end
  187. @protocol PayWithEasebuzzCallback;
  188. @class Payment;
  189. @class UIViewController;
  190. SWIFT_CLASS("_TtC8Easebuzz15PayWithEasebuzz")
  191. @interface PayWithEasebuzz : NSObject
  192. /// Initizalise App
  193. + (void)setUpWithPebCallback:(id <PayWithEasebuzzCallback> _Nonnull)pebCallback;
  194. + (BOOL)initiliazed SWIFT_WARN_UNUSED_RESULT;
  195. /// Invoke Pre Created Payment UI
  196. /// @param paymentObject Payment
  197. + (void)invokePaymentOptionsViewWithPaymentObj:(Payment * _Nonnull)paymentObj isFrom:(UIViewController * _Nonnull)isFrom;
  198. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  199. @end
  200. SWIFT_PROTOCOL("_TtP8Easebuzz23PayWithEasebuzzCallback_")
  201. @protocol PayWithEasebuzzCallback <NSObject>
  202. - (void)PEBCallbackWithData:(NSDictionary<NSString *, id> * _Nonnull)data;
  203. @end
  204. SWIFT_CLASS("_TtC8Easebuzz7Payment")
  205. @interface Payment : NSObject
  206. - (nonnull instancetype)initWithCustomerData:(NSDictionary<NSString *, NSString *> * _Nonnull)customerData OBJC_DESIGNATED_INITIALIZER;
  207. - (BOOL)isValid SWIFT_WARN_UNUSED_RESULT;
  208. - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  209. + (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
  210. @end
  211. SWIFT_CLASS("_TtC8Easebuzz8RSAUtils")
  212. @interface RSAUtils : NSObject
  213. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  214. @end
  215. @class UIVisualEffect;
  216. SWIFT_CLASS("_TtC8Easebuzz7Spinner")
  217. @interface Spinner : UIVisualEffectView
  218. - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
  219. - (void)didMoveToSuperview;
  220. - (nonnull instancetype)initWithEffect:(UIVisualEffect * _Nullable)effect SWIFT_UNAVAILABLE;
  221. @end
  222. SWIFT_CLASS("_TtC8Easebuzz15StaticDataModel")
  223. @interface StaticDataModel : NSObject
  224. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_SUCCESS_CODE;)
  225. + (NSString * _Nonnull)TXN_SUCCESS_CODE SWIFT_WARN_UNUSED_RESULT;
  226. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_FAILED_CODE;)
  227. + (NSString * _Nonnull)TXN_FAILED_CODE SWIFT_WARN_UNUSED_RESULT;
  228. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_TIMEOUT_CODE;)
  229. + (NSString * _Nonnull)TXN_TIMEOUT_CODE SWIFT_WARN_UNUSED_RESULT;
  230. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_BACKPRESSED_CODE;)
  231. + (NSString * _Nonnull)TXN_BACKPRESSED_CODE SWIFT_WARN_UNUSED_RESULT;
  232. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_USERCANCELLED_CODE;)
  233. + (NSString * _Nonnull)TXN_USERCANCELLED_CODE SWIFT_WARN_UNUSED_RESULT;
  234. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_USER_FAILED_CODE;)
  235. + (NSString * _Nonnull)TXN_USER_FAILED_CODE SWIFT_WARN_UNUSED_RESULT;
  236. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_ERROR_SERVER_ERROR_CODE;)
  237. + (NSString * _Nonnull)TXN_ERROR_SERVER_ERROR_CODE SWIFT_WARN_UNUSED_RESULT;
  238. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_ERROR_NO_RETRY_CODE;)
  239. + (NSString * _Nonnull)TXN_ERROR_NO_RETRY_CODE SWIFT_WARN_UNUSED_RESULT;
  240. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_ERROR_TXN_NOT_ALLOWED_CODE;)
  241. + (NSString * _Nonnull)TXN_ERROR_TXN_NOT_ALLOWED_CODE SWIFT_WARN_UNUSED_RESULT;
  242. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_INVALID_INPUT_DATA_CODE;)
  243. + (NSString * _Nonnull)TXN_INVALID_INPUT_DATA_CODE SWIFT_WARN_UNUSED_RESULT;
  244. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_ERROR_RETRY_FAILED_CODE;)
  245. + (NSString * _Nonnull)TXN_ERROR_RETRY_FAILED_CODE SWIFT_WARN_UNUSED_RESULT;
  246. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_SESSION_STARTED_CODE;)
  247. + (NSString * _Nonnull)TXN_SESSION_STARTED_CODE SWIFT_WARN_UNUSED_RESULT;
  248. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_SESSION_EXPIRED_CODE;)
  249. + (NSString * _Nonnull)TXN_SESSION_EXPIRED_CODE SWIFT_WARN_UNUSED_RESULT;
  250. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_SESSION_CANCELLED_CODE_TRUE;)
  251. + (NSString * _Nonnull)TXN_SESSION_CANCELLED_CODE_TRUE SWIFT_WARN_UNUSED_RESULT;
  252. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_SESSION_CANCELLED_CODE_FALSE;)
  253. + (NSString * _Nonnull)TXN_SESSION_CANCELLED_CODE_FALSE SWIFT_WARN_UNUSED_RESULT;
  254. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_BANK_BACK_PRESSED_CODE;)
  255. + (NSString * _Nonnull)TXN_BANK_BACK_PRESSED_CODE SWIFT_WARN_UNUSED_RESULT;
  256. SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TXN_UPI_CANCELLED_CODE;)
  257. + (NSString * _Nonnull)TXN_UPI_CANCELLED_CODE SWIFT_WARN_UNUSED_RESULT;
  258. - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  259. @end
  260. @class UITouch;
  261. @class UIEvent;
  262. @interface UIViewController (SWIFT_EXTENSION(Easebuzz))
  263. - (void)touchesBegan:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
  264. @end
  265. #if __has_attribute(external_source_symbol)
  266. # pragma clang attribute pop
  267. #endif
  268. #pragma clang diagnostic pop