SourceTransaction.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe;
  4. /**
  5. * Some payment methods have no required amount that a customer must send.
  6. * Customers can be instructed to send any amount, and it can be made up of
  7. * multiple transactions. As such, sources can have multiple associated
  8. * transactions.
  9. *
  10. * @property string $id Unique identifier for the object.
  11. * @property string $object String representing the object's type. Objects of the same type share the same value.
  12. * @property null|\Stripe\StripeObject $ach_credit_transfer
  13. * @property int $amount A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the amount your customer has pushed to the receiver.
  14. * @property null|\Stripe\StripeObject $chf_credit_transfer
  15. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
  16. * @property string $currency Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported currency</a>.
  17. * @property null|\Stripe\StripeObject $gbp_credit_transfer
  18. * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
  19. * @property null|\Stripe\StripeObject $paper_check
  20. * @property null|\Stripe\StripeObject $sepa_credit_transfer
  21. * @property string $source The ID of the source this transaction is attached to.
  22. * @property string $status The status of the transaction, one of <code>succeeded</code>, <code>pending</code>, or <code>failed</code>.
  23. * @property string $type The type of source this transaction is attached to.
  24. */
  25. class SourceTransaction extends ApiResource
  26. {
  27. const OBJECT_NAME = 'source_transaction';
  28. const TYPE_ACH_CREDIT_TRANSFER = 'ach_credit_transfer';
  29. const TYPE_ACH_DEBIT = 'ach_debit';
  30. const TYPE_ALIPAY = 'alipay';
  31. const TYPE_BANCONTACT = 'bancontact';
  32. const TYPE_CARD = 'card';
  33. const TYPE_CARD_PRESENT = 'card_present';
  34. const TYPE_EPS = 'eps';
  35. const TYPE_GIROPAY = 'giropay';
  36. const TYPE_IDEAL = 'ideal';
  37. const TYPE_KLARNA = 'klarna';
  38. const TYPE_MULTIBANCO = 'multibanco';
  39. const TYPE_P24 = 'p24';
  40. const TYPE_SEPA_DEBIT = 'sepa_debit';
  41. const TYPE_SOFORT = 'sofort';
  42. const TYPE_THREE_D_SECURE = 'three_d_secure';
  43. const TYPE_WECHAT = 'wechat';
  44. }