ApiOperations
4 years ago
BillingPortal
4 years ago
Checkout
4 years ago
Exception
4 years ago
HttpClient
4 years ago
Identity
4 years ago
Issuing
4 years ago
Radar
4 years ago
Reporting
4 years ago
Service
4 years ago
Sigma
4 years ago
Terminal
4 years ago
Util
4 years ago
Account.php
4 years ago
AccountLink.php
4 years ago
AlipayAccount.php
4 years ago
ApiRequestor.php
4 years ago
ApiResource.php
4 years ago
ApiResponse.php
4 years ago
ApplePayDomain.php
4 years ago
ApplicationFee.php
4 years ago
ApplicationFeeRefund.php
4 years ago
Balance.php
4 years ago
BalanceTransaction.php
4 years ago
BankAccount.php
4 years ago
BaseStripeClient.php
4 years ago
BaseStripeClientInterface.php
4 years ago
BitcoinReceiver.php
4 years ago
BitcoinTransaction.php
4 years ago
Capability.php
4 years ago
Card.php
4 years ago
Charge.php
4 years ago
Collection.php
4 years ago
CountrySpec.php
4 years ago
Coupon.php
4 years ago
CreditNote.php
4 years ago
CreditNoteLineItem.php
4 years ago
Customer.php
4 years ago
CustomerBalanceTransaction.php
4 years ago
Discount.php
4 years ago
Dispute.php
4 years ago
EphemeralKey.php
4 years ago
ErrorObject.php
4 years ago
Event.php
4 years ago
ExchangeRate.php
4 years ago
File.php
4 years ago
FileLink.php
4 years ago
Invoice.php
4 years ago
InvoiceItem.php
4 years ago
InvoiceLineItem.php
4 years ago
LineItem.php
4 years ago
LoginLink.php
4 years ago
Mandate.php
4 years ago
OAuth.php
4 years ago
OAuthErrorObject.php
4 years ago
Order.php
4 years ago
OrderItem.php
4 years ago
OrderReturn.php
4 years ago
PaymentIntent.php
4 years ago
PaymentMethod.php
4 years ago
Payout.php
4 years ago
Person.php
4 years ago
Plan.php
4 years ago
Price.php
4 years ago
Product.php
4 years ago
PromotionCode.php
4 years ago
Quote.php
4 years ago
Recipient.php
4 years ago
RecipientTransfer.php
4 years ago
Refund.php
4 years ago
RequestTelemetry.php
4 years ago
Review.php
4 years ago
SKU.php
4 years ago
SetupAttempt.php
4 years ago
SetupIntent.php
4 years ago
SingletonApiResource.php
4 years ago
Source.php
4 years ago
SourceTransaction.php
4 years ago
Stripe.php
4 years ago
StripeClient.php
4 years ago
StripeClientInterface.php
4 years ago
StripeObject.php
4 years ago
StripeStreamingClientInterface.php
4 years ago
Subscription.php
4 years ago
SubscriptionItem.php
4 years ago
SubscriptionSchedule.php
4 years ago
TaxCode.php
4 years ago
TaxId.php
4 years ago
TaxRate.php
4 years ago
ThreeDSecure.php
4 years ago
Token.php
4 years ago
Topup.php
4 years ago
Transfer.php
4 years ago
TransferReversal.php
4 years ago
UsageRecord.php
4 years ago
UsageRecordSummary.php
4 years ago
Webhook.php
4 years ago
WebhookEndpoint.php
4 years ago
WebhookSignature.php
4 years ago
ApiResponse.php
46 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Stripe; |
| 4 | |
| 5 | use Stripe\Util\CaseInsensitiveArray; |
| 6 | |
| 7 | /** |
| 8 | * Class ApiResponse. |
| 9 | */ |
| 10 | class ApiResponse |
| 11 | { |
| 12 | /** |
| 13 | * @var null|array|CaseInsensitiveArray |
| 14 | */ |
| 15 | public $headers; |
| 16 | |
| 17 | /** |
| 18 | * @var string |
| 19 | */ |
| 20 | public $body; |
| 21 | |
| 22 | /** |
| 23 | * @var null|array |
| 24 | */ |
| 25 | public $json; |
| 26 | |
| 27 | /** |
| 28 | * @var int |
| 29 | */ |
| 30 | public $code; |
| 31 | |
| 32 | /** |
| 33 | * @param string $body |
| 34 | * @param int $code |
| 35 | * @param null|array|CaseInsensitiveArray $headers |
| 36 | * @param null|array $json |
| 37 | */ |
| 38 | public function __construct($body, $code, $headers, $json) |
| 39 | { |
| 40 | $this->body = $body; |
| 41 | $this->code = $code; |
| 42 | $this->headers = $headers; |
| 43 | $this->json = $json; |
| 44 | } |
| 45 | } |
| 46 |