BTPayPalCreditFinancing.m 1.3 KB

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