PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.4
Booking for Appointments and Events Calendar – Amelia v2.4.4
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / stripe / stripe-php / lib / File.php
ameliabooking / vendor / stripe / stripe-php / lib Last commit date
ApiOperations 6 months ago Apps 6 months ago Billing 6 months ago BillingPortal 6 months ago Checkout 6 months ago Climate 6 months ago Entitlements 6 months ago EventData 6 months ago Events 6 months ago Exception 6 months ago FinancialConnections 6 months ago Forwarding 6 months ago HttpClient 6 months ago Identity 6 months ago Issuing 6 months ago Radar 6 months ago Reporting 6 months ago Service 6 months ago Sigma 6 months ago Tax 6 months ago Terminal 6 months ago TestHelpers 6 months ago Treasury 6 months ago Util 6 months ago V2 6 months ago Account.php 6 months ago AccountLink.php 6 months ago AccountSession.php 6 months ago ApiRequestor.php 6 months ago ApiResource.php 6 months ago ApiResponse.php 6 months ago ApplePayDomain.php 6 months ago Application.php 6 months ago ApplicationFee.php 6 months ago ApplicationFeeRefund.php 6 months ago Balance.php 6 months ago BalanceTransaction.php 6 months ago BankAccount.php 6 months ago BaseStripeClient.php 6 months ago BaseStripeClientInterface.php 6 months ago Capability.php 6 months ago Card.php 6 months ago CashBalance.php 6 months ago Charge.php 6 months ago Collection.php 6 months ago ConfirmationToken.php 6 months ago ConnectCollectionTransfer.php 6 months ago CountrySpec.php 6 months ago Coupon.php 6 months ago CreditNote.php 6 months ago CreditNoteLineItem.php 6 months ago Customer.php 6 months ago CustomerBalanceTransaction.php 6 months ago CustomerCashBalanceTransaction.php 6 months ago CustomerSession.php 6 months ago Discount.php 6 months ago Dispute.php 6 months ago EphemeralKey.php 6 months ago ErrorObject.php 6 months ago Event.php 6 months ago ExchangeRate.php 6 months ago File.php 6 months ago FileLink.php 6 months ago FundingInstructions.php 6 months ago Invoice.php 6 months ago InvoiceItem.php 6 months ago InvoiceLineItem.php 6 months ago InvoicePayment.php 6 months ago InvoiceRenderingTemplate.php 6 months ago LineItem.php 6 months ago LoginLink.php 6 months ago Mandate.php 6 months ago OAuth.php 6 months ago OAuthErrorObject.php 6 months ago PaymentIntent.php 6 months ago PaymentLink.php 6 months ago PaymentMethod.php 6 months ago PaymentMethodConfiguration.php 6 months ago PaymentMethodDomain.php 6 months ago Payout.php 6 months ago Person.php 6 months ago Plan.php 6 months ago Price.php 6 months ago Product.php 6 months ago ProductFeature.php 6 months ago PromotionCode.php 6 months ago Quote.php 6 months ago Reason.php 6 months ago RecipientTransfer.php 6 months ago Refund.php 6 months ago RelatedObject.php 6 months ago RequestTelemetry.php 6 months ago ReserveTransaction.php 6 months ago Review.php 6 months ago SearchResult.php 6 months ago SetupAttempt.php 6 months ago SetupIntent.php 6 months ago ShippingRate.php 6 months ago SingletonApiResource.php 6 months ago Source.php 6 months ago SourceMandateNotification.php 6 months ago SourceTransaction.php 6 months ago Stripe.php 6 months ago StripeClient.php 6 months ago StripeClientInterface.php 6 months ago StripeObject.php 6 months ago StripeStreamingClientInterface.php 6 months ago Subscription.php 6 months ago SubscriptionItem.php 6 months ago SubscriptionSchedule.php 6 months ago TaxCode.php 6 months ago TaxDeductedAtSource.php 6 months ago TaxId.php 6 months ago TaxRate.php 6 months ago ThinEvent.php 6 months ago Token.php 6 months ago Topup.php 6 months ago Transfer.php 6 months ago TransferReversal.php 6 months ago Webhook.php 6 months ago WebhookEndpoint.php 6 months ago WebhookSignature.php 6 months ago
File.php
110 lines
1 <?php
2
3 // File generated from our OpenAPI spec
4 namespace AmeliaVendor\Stripe;
5
6 /**
7 * This object represents files hosted on Stripe's servers. You can upload
8 * files with the <a href="https://stripe.com/docs/api#create_file">create file</a> request
9 * (for example, when uploading dispute evidence). Stripe also
10 * creates files independently (for example, the results of a <a href="#scheduled_queries">Sigma scheduled
11 * query</a>).
12 *
13 * Related guide: <a href="https://stripe.com/docs/file-upload">File upload guide</a>
14 *
15 * @property string $id Unique identifier for the object.
16 * @property string $object String representing the object's type. Objects of the same type share the same value.
17 * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
18 * @property null|int $expires_at The file expires and isn't available at this time in epoch seconds.
19 * @property null|string $filename The suitable name for saving the file to a filesystem.
20 * @property null|Collection<FileLink> $links A list of <a href="https://stripe.com/docs/api#file_links">file links</a> that point at this file.
21 * @property string $purpose The <a href="https://stripe.com/docs/file-upload#uploading-a-file">purpose</a> of the uploaded file.
22 * @property int $size The size of the file object in bytes.
23 * @property null|string $title A suitable title for the document.
24 * @property null|string $type The returned file type (for example, <code>csv</code>, <code>pdf</code>, <code>jpg</code>, or <code>png</code>).
25 * @property null|string $url Use your live secret API key to download the file from this URL.
26 */
27 class File extends ApiResource
28 {
29 const OBJECT_NAME = 'file';
30 const PURPOSE_ACCOUNT_REQUIREMENT = 'account_requirement';
31 const PURPOSE_ADDITIONAL_VERIFICATION = 'additional_verification';
32 const PURPOSE_BUSINESS_ICON = 'business_icon';
33 const PURPOSE_BUSINESS_LOGO = 'business_logo';
34 const PURPOSE_CUSTOMER_SIGNATURE = 'customer_signature';
35 const PURPOSE_DISPUTE_EVIDENCE = 'dispute_evidence';
36 const PURPOSE_DOCUMENT_PROVIDER_IDENTITY_DOCUMENT = 'document_provider_identity_document';
37 const PURPOSE_FINANCE_REPORT_RUN = 'finance_report_run';
38 const PURPOSE_FINANCIAL_ACCOUNT_STATEMENT = 'financial_account_statement';
39 const PURPOSE_IDENTITY_DOCUMENT = 'identity_document';
40 const PURPOSE_IDENTITY_DOCUMENT_DOWNLOADABLE = 'identity_document_downloadable';
41 const PURPOSE_ISSUING_REGULATORY_REPORTING = 'issuing_regulatory_reporting';
42 const PURPOSE_PCI_DOCUMENT = 'pci_document';
43 const PURPOSE_SELFIE = 'selfie';
44 const PURPOSE_SIGMA_SCHEDULED_QUERY = 'sigma_scheduled_query';
45 const PURPOSE_TAX_DOCUMENT_USER_UPLOAD = 'tax_document_user_upload';
46 const PURPOSE_TERMINAL_READER_SPLASHSCREEN = 'terminal_reader_splashscreen';
47 /**
48 * Returns a list of the files that your account has access to. Stripe sorts and
49 * returns the files by their creation dates, placing the most recently created
50 * files at the top.
51 *
52 * @param null|array{created?: array|int, ending_before?: string, expand?: string[], limit?: int, purpose?: string, starting_after?: string} $params
53 * @param null|array|string $opts
54 *
55 * @return Collection<File> of ApiResources
56 *
57 * @throws Exception\ApiErrorException if the request fails
58 */
59 public static function all($params = null, $opts = null)
60 {
61 $url = static::classUrl();
62 return static::_requestPage($url, Collection::class, $params, $opts);
63 }
64 /**
65 * Retrieves the details of an existing file object. After you supply a unique file
66 * ID, Stripe returns the corresponding file object. Learn how to <a
67 * href="/docs/file-upload#download-file-contents">access file contents</a>.
68 *
69 * @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
70 * @param null|array|string $opts
71 *
72 * @return File
73 *
74 * @throws Exception\ApiErrorException if the request fails
75 */
76 public static function retrieve($id, $opts = null)
77 {
78 $opts = \AmeliaVendor\Stripe\Util\RequestOptions::parse($opts);
79 $instance = new static($id, $opts);
80 $instance->refresh();
81 return $instance;
82 }
83 // This resource can have two different object names. In latter API
84 // versions, only `file` is used, but since stripe-php may be used with
85 // any API version, we need to support deserializing the older
86 // `file_upload` object into the same class.
87 const OBJECT_NAME_ALT = 'file_upload';
88 use \AmeliaVendor\Stripe\ApiOperations\Create {
89 create as protected _create;
90 }
91 /**
92 * @param null|array $params
93 * @param null|array|string $opts
94 *
95 * @return File the created file
96 *
97 * @throws Exception\ApiErrorException if the request fails
98 */
99 public static function create($params = null, $opts = null)
100 {
101 $opts = \AmeliaVendor\Stripe\Util\RequestOptions::parse($opts);
102 if (null === $opts->apiBase) {
103 $opts->apiBase = Stripe::$apiUploadBase;
104 }
105 // Manually flatten params, otherwise curl's multipart encoder will
106 // choke on nested arrays.
107 $flatParams = \array_column(\AmeliaVendor\Stripe\Util\Util::flattenParams($params), 1, 0);
108 return static::_create($flatParams, $opts);
109 }
110 }