Transaction.php 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe\Issuing;
  4. /**
  5. * Any use of an <a href="https://stripe.com/docs/issuing">issued card</a> that
  6. * results in funds entering or leaving your Stripe account, such as a completed
  7. * purchase or refund, is represented by an Issuing <code>Transaction</code>
  8. * object.
  9. *
  10. * Related guide: <a
  11. * href="https://stripe.com/docs/issuing/purchases/transactions">Issued Card
  12. * Transactions</a>.
  13. *
  14. * @property string $id Unique identifier for the object.
  15. * @property string $object String representing the object's type. Objects of the same type share the same value.
  16. * @property int $amount The transaction amount, which will be reflected in your balance. This amount is in your currency and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
  17. * @property null|\Stripe\StripeObject $amount_details Detailed breakdown of amount components. These amounts are denominated in <code>currency</code> and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>.
  18. * @property null|string|\Stripe\Issuing\Authorization $authorization The <code>Authorization</code> object that led to this transaction.
  19. * @property null|string|\Stripe\BalanceTransaction $balance_transaction ID of the <a href="https://stripe.com/docs/api/balance_transactions">balance transaction</a> associated with this transaction.
  20. * @property string|\Stripe\Issuing\Card $card The card used to make this transaction.
  21. * @property null|string|\Stripe\Issuing\Cardholder $cardholder The cardholder to whom this transaction belongs.
  22. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
  23. * @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>.
  24. * @property null|string|\Stripe\Issuing\Dispute $dispute If you've disputed the transaction, the ID of the dispute.
  25. * @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.
  26. * @property int $merchant_amount The amount that the merchant will receive, denominated in <code>merchant_currency</code> and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. It will be different from <code>amount</code> if the merchant is taking payment in a different currency.
  27. * @property string $merchant_currency The currency with which the merchant is taking payment.
  28. * @property \Stripe\StripeObject $merchant_data
  29. * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
  30. * @property null|\Stripe\StripeObject $purchase_details Additional purchase information that is optionally provided by the merchant.
  31. * @property string $type The nature of the transaction.
  32. */
  33. class Transaction extends \Stripe\ApiResource
  34. {
  35. const OBJECT_NAME = 'issuing.transaction';
  36. use \Stripe\ApiOperations\All;
  37. use \Stripe\ApiOperations\Retrieve;
  38. use \Stripe\ApiOperations\Update;
  39. }