base.rbs 556 B

12345678910111213141516171819202122232425
  1. module Payment
  2. class Payment
  3. attr_reader amount: BigDecimal
  4. attr_reader currency: String
  5. attr_reader id: String
  6. end
  7. class Customer
  8. attr_reader id: Integer
  9. attr_reader name: String
  10. attr_reader email: String
  11. end
  12. class Card
  13. attr_reader number: String
  14. attr_reader expiry: String
  15. attr_reader ccv: String
  16. end
  17. class Base
  18. def self.charge_from_card: (Payment, Customer, Card, bool, bool?) -> Hash
  19. def self.cancel_transaction: (Payment, bool) -> Hash
  20. def self.refund_money: (Payment) -> Hash
  21. end
  22. end