BTBinData.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #import <Foundation/Foundation.h>
  2. #import "BTJSON.h"
  3. NS_ASSUME_NONNULL_BEGIN
  4. /**
  5. Contains the bin data associated with a payment method
  6. */
  7. @interface BTBinData : NSObject
  8. /**
  9. Create a `BTBinData` object from JSON.
  10. */
  11. - (instancetype)initWithJSON:(BTJSON *)json;
  12. /**
  13. Whether the card is a prepaid card. Possible values: Yes/No/Unknown
  14. */
  15. @property (nonatomic, nullable, readonly, copy) NSString *prepaid;
  16. /**
  17. Whether the card is a healthcare card. Possible values: Yes/No/Unknown
  18. */
  19. @property (nonatomic, nullable, readonly, copy) NSString *healthcare;
  20. /**
  21. Whether the card is a debit card. Possible values: Yes/No/Unknown
  22. */
  23. @property (nonatomic, nullable, readonly, copy) NSString *debit;
  24. /**
  25. A value indicating whether the issuing bank's card range is regulated by the Durbin Amendment due to the bank's assets. Possible values: Yes/No/Unknown
  26. */
  27. @property (nonatomic, nullable, readonly, copy) NSString *durbinRegulated;
  28. /**
  29. Whether the card type is a commercial card and is capable of processing Level 2 transactions. Possible values: Yes/No/Unknown
  30. */
  31. @property (nonatomic, nullable, readonly, copy) NSString *commercial;
  32. /**
  33. Whether the card is a payroll card. Possible values: Yes/No/Unknown
  34. */
  35. @property (nonatomic, nullable, readonly, copy) NSString *payroll;
  36. /**
  37. The bank that issued the credit card, if available.
  38. */
  39. @property (nonatomic, nullable, readonly, copy) NSString *issuingBank;
  40. /**
  41. The country that issued the credit card, if available.
  42. */
  43. @property (nonatomic, nullable, readonly, copy) NSString *countryOfIssuance;
  44. /**
  45. The code for the product type of the card (e.g. `D` (Visa Signature Preferred), `G` (Visa Business)), if available.
  46. */
  47. @property (nonatomic, nullable, readonly, copy) NSString *productId;
  48. @end
  49. NS_ASSUME_NONNULL_END