payment_cards.d.ts 971 B

12345678910111213141516171819202122232425
  1. import { PaymentCard } from "../models/payment_card";
  2. import { BaseCollection } from "./base_collection";
  3. import { PaginationParams } from "../interfaces/pagination_params";
  4. import { PaginatedResult } from "../interfaces/paginated_result";
  5. type CardParams = {
  6. number: string;
  7. cvc: string | number;
  8. exp_month: string | number;
  9. exp_year: string | number;
  10. };
  11. type CardDeleted = {
  12. card_id: string;
  13. card_deleted: boolean;
  14. };
  15. export declare class PaymentCards extends BaseCollection {
  16. protected static rootElementName: string;
  17. protected static rootElementNameSingular: string;
  18. protected static prefixURI: string;
  19. protected static elementClass: typeof PaymentCard;
  20. list(request_params?: PaginationParams): Promise<PaginatedResult<PaymentCard>>;
  21. create(card_params: CardParams): Promise<PaymentCard>;
  22. get(card_id: string | number): Promise<PaymentCard>;
  23. delete(card_id: string | number): Promise<CardDeleted>;
  24. }
  25. export {};