stripe_card_params.h 726 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. #include "stripe/stripe_form_encodable.h"
  9. namespace Stripe {
  10. struct CardParams {
  11. QString number;
  12. quint32 expMonth = 0;
  13. quint32 expYear = 0;
  14. QString cvc;
  15. QString name;
  16. QString addressLine1;
  17. QString addressLine2;
  18. QString addressCity;
  19. QString addressState;
  20. QString addressZip;
  21. QString addressCountry;
  22. QString currency;
  23. [[nodiscard]] static QString rootObjectName();
  24. [[nodiscard]] std::map<QString, QString> formFieldValues() const;
  25. };
  26. } // namespace Stripe