payment_cards.js 848 B

12345678910111213141516171819202122232425
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.PaymentCards = void 0;
  4. const payment_card_1 = require("../models/payment_card");
  5. const base_collection_1 = require("./base_collection");
  6. class PaymentCards extends base_collection_1.BaseCollection {
  7. static rootElementName = "payment_cards";
  8. static rootElementNameSingular = "payment_card";
  9. static prefixURI = "payment_cards/{:id}";
  10. static elementClass = payment_card_1.PaymentCard;
  11. list(request_params = {}) {
  12. return this.doList(request_params);
  13. }
  14. create(card_params) {
  15. return this.doCreate(card_params);
  16. }
  17. get(card_id) {
  18. return this.doGet(card_id);
  19. }
  20. delete(card_id) {
  21. return this.doDelete(card_id);
  22. }
  23. }
  24. exports.PaymentCards = PaymentCards;
  25. //# sourceMappingURL=payment_cards.js.map