BTPayPalCreditFinancing.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #import <Foundation/Foundation.h>
  2. #if __has_include("BraintreeCore.h")
  3. #import "BraintreeCore.h"
  4. #else
  5. #import <BraintreeCore/BraintreeCore.h>
  6. #endif
  7. /**
  8. Contains information about a PayPal credit amount
  9. */
  10. @interface BTPayPalCreditFinancingAmount: NSObject
  11. /**
  12. 3 letter currency code as defined by <a href="http://www.iso.org/iso/home/standards/currency_codes.htm">ISO 4217</a>.
  13. */
  14. @property (nonatomic, nullable, readonly, copy) NSString *currency;
  15. /**
  16. An amount defined by <a href="http://www.iso.org/iso/home/standards/currency_codes.htm">ISO 4217</a> for the given currency.
  17. */
  18. @property (nonatomic, nullable, readonly, copy) NSString *value;
  19. @end
  20. /**
  21. Contains information about a PayPal credit financing option
  22. */
  23. @interface BTPayPalCreditFinancing: NSObject
  24. /**
  25. Indicates whether the card amount is editable after payer's acceptance on PayPal side.
  26. */
  27. @property (nonatomic, readonly) BOOL cardAmountImmutable;
  28. /**
  29. Estimated amount per month that the customer will need to pay including fees and interest.
  30. */
  31. @property (nonatomic, nullable, readonly, strong) BTPayPalCreditFinancingAmount *monthlyPayment;
  32. /**
  33. Status of whether the customer ultimately was approved for and chose to make the payment using the approved installment credit.
  34. */
  35. @property (nonatomic, readonly) BOOL payerAcceptance;
  36. /**
  37. Length of financing terms in months.
  38. */
  39. @property (nonatomic, readonly) NSInteger term;
  40. /**
  41. Estimated total payment amount including interest and fees the user will pay during the lifetime of the loan.
  42. */
  43. @property (nonatomic, nullable, readonly, strong) BTPayPalCreditFinancingAmount *totalCost;
  44. /**
  45. Estimated interest or fees amount the payer will have to pay during the lifetime of the loan.
  46. */
  47. @property (nonatomic, nullable, readonly, strong) BTPayPalCreditFinancingAmount *totalInterest;
  48. @end