BTPayPalCreditFinancing.m 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. #import "BTPayPalCreditFinancing_Internal.h"
  2. #import "BTPayPalAccountNonce_Internal.h"
  3. @interface BTPayPalCreditFinancing ()
  4. @property (nonatomic, readwrite) BOOL cardAmountImmutable;
  5. @property (nonatomic, readwrite, strong) BTPayPalCreditFinancingAmount *monthlyPayment;
  6. @property (nonatomic, readwrite) BOOL payerAcceptance;
  7. @property (nonatomic, readwrite) NSInteger term;
  8. @property (nonatomic, readwrite, strong) BTPayPalCreditFinancingAmount *totalCost;
  9. @property (nonatomic, readwrite, strong) BTPayPalCreditFinancingAmount *totalInterest;
  10. @end
  11. @implementation BTPayPalCreditFinancing
  12. - (instancetype)initWithCardAmountImmutable:(BOOL)cardAmountImmutable
  13. monthlyPayment:(BTPayPalCreditFinancingAmount *)monthlyPayment
  14. payerAcceptance:(BOOL)payerAcceptance
  15. term:(NSInteger)term
  16. totalCost:(BTPayPalCreditFinancingAmount *)totalCost
  17. totalInterest:(BTPayPalCreditFinancingAmount *)totalInterest {
  18. if (self = [super init]) {
  19. _cardAmountImmutable = cardAmountImmutable;
  20. _monthlyPayment = monthlyPayment;
  21. _payerAcceptance = payerAcceptance;
  22. _term = term;
  23. _totalCost = totalCost;
  24. _totalInterest = totalInterest;
  25. }
  26. return self;
  27. }
  28. @end