PluginProbe ʕ •ᴥ•ʔ
WPForms – Easy Form Builder for WordPress – Contact Forms, Payment Forms, Surveys, & More / 1.10.1
WPForms – Easy Form Builder for WordPress – Contact Forms, Payment Forms, Surveys, & More v1.10.1
1.10.1.1 1.10.1 1.10.0.5 trunk 1.1.4 1.1.4.2 1.1.5 1.1.5.1 1.1.6 1.1.6.1 1.1.7 1.1.7.1 1.1.7.2 1.1.8 1.1.8.1 1.1.8.2 1.1.8.3 1.1.8.4 1.10.0.1 1.10.0.2 1.10.0.3 1.10.0.4 1.2.0 1.2.0.1 1.2.1 1.2.2 1.2.2.1 1.2.2.2 1.2.3 1.2.3.1 1.2.3.2 1.2.4 1.2.4.1 1.2.5 1.2.5.1 1.2.6 1.2.7 1.2.8 1.2.8.1 1.2.9 1.3.0 1.3.1 1.3.1.1 1.3.1.2 1.3.2 1.3.3 1.3.5 1.3.6 1.3.6.1 1.3.6.2 1.3.7.2 1.3.7.3 1.3.7.4 1.3.8 1.3.9.1 1.4.0.1 1.4.1.1 1.4.2 1.4.2.1 1.4.2.2 1.4.3 1.4.4 1.4.4.1 1.4.5 1.4.5.1 1.4.5.2 1.4.5.3 1.4.6 1.4.7.1 1.4.7.2 1.4.8.1 1.4.9 1.5.0.1 1.5.0.3 1.5.0.4 1.5.1 1.5.1.1 1.5.1.3 1.5.2.1 1.5.2.2 1.5.2.3 1.5.3 1.5.3.1 1.5.4.1 1.5.4.2 1.5.5 1.5.5.1 1.5.6 1.5.6.2 1.5.7 1.5.8.2 1.5.9.1 1.5.9.4 1.5.9.5 1.6.0.1 1.6.0.2 1.6.1 1.6.2.2 1.6.2.3 1.6.3.1 1.6.4 1.6.4.1 1.6.5 1.6.6 1.6.7 1.6.7.1 1.6.7.2 1.6.7.3 1.6.8 1.6.8.1 1.6.9 1.7.0 1.7.1.1 1.7.1.2 1.7.2 1.7.2.1 1.7.3 1.7.4 1.7.4.1 1.7.4.2 1.7.5.1 1.7.5.2 1.7.5.3 1.7.5.5 1.7.6 1.7.7 1.7.7.1 1.7.7.2 1.7.8 1.7.9 1.7.9.1 1.8.0.1 1.8.0.2 1.8.1.1 1.8.1.2 1.8.1.3 1.8.2.1 1.8.2.2 1.8.2.3 1.8.3 1.8.3.1 1.8.4 1.8.4.1 1.8.5.2 1.8.5.3 1.8.5.4 1.8.6.2 1.8.6.3 1.8.6.4 1.8.7.2 1.8.8.2 1.8.8.3 1.8.9.1 1.8.9.2 1.8.9.4 1.8.9.5 1.8.9.6 1.9.0.1 1.9.0.2 1.9.0.3 1.9.0.4 1.9.1.1 1.9.1.2 1.9.1.3 1.9.1.4 1.9.1.5 1.9.1.6 1.9.2.1 1.9.2.2 1.9.2.3 1.9.3.1 1.9.3.2 1.9.4.1 1.9.4.2 1.9.5 1.9.5.1 1.9.5.2 1.9.6 1.9.6.1 1.9.6.2 1.9.7.1 1.9.7.2 1.9.7.3 1.9.8.1 1.9.8.2 1.9.8.4 1.9.8.7 1.9.9.2 1.9.9.3 1.9.9.4
wpforms-lite / vendor_prefixed / stripe / stripe-php / lib / ApplicationFee.php
wpforms-lite / vendor_prefixed / stripe / stripe-php / lib Last commit date
ApiOperations 1 year ago Apps 1 year ago Billing 1 year ago BillingPortal 1 year ago Checkout 1 year ago Climate 1 year ago Entitlements 1 year ago EventData 1 year ago Events 1 year ago Exception 1 year ago FinancialConnections 1 year ago Forwarding 1 year ago HttpClient 1 year ago Identity 1 year ago Issuing 1 year ago Radar 1 year ago Reporting 1 year ago Service 1 year ago Sigma 1 year ago Tax 1 year ago Terminal 1 year ago TestHelpers 1 year ago Treasury 1 year ago Util 1 year ago V2 1 year ago Account.php 1 year ago AccountLink.php 1 year ago AccountSession.php 1 year ago ApiRequestor.php 1 year ago ApiResource.php 2 years ago ApiResponse.php 2 years ago ApplePayDomain.php 1 year ago Application.php 2 years ago ApplicationFee.php 1 year ago ApplicationFeeRefund.php 2 years ago Balance.php 1 year ago BalanceTransaction.php 1 year ago BankAccount.php 1 year ago BaseStripeClient.php 1 year ago BaseStripeClientInterface.php 1 year ago Capability.php 1 year ago Card.php 1 year ago CashBalance.php 2 years ago Charge.php 1 year ago Collection.php 1 year ago ConfirmationToken.php 1 year ago ConnectCollectionTransfer.php 2 years ago CountrySpec.php 1 year ago Coupon.php 1 year ago CreditNote.php 1 year ago CreditNoteLineItem.php 1 year ago Customer.php 1 year ago CustomerBalanceTransaction.php 2 years ago CustomerCashBalanceTransaction.php 2 years ago CustomerSession.php 1 year ago Discount.php 1 year ago Dispute.php 1 year ago EphemeralKey.php 1 year ago ErrorObject.php 1 year ago Event.php 1 year ago ExchangeRate.php 1 year ago File.php 1 year ago FileLink.php 1 year ago FundingInstructions.php 2 years ago Invoice.php 1 year ago InvoiceItem.php 1 year ago InvoiceLineItem.php 1 year ago InvoiceRenderingTemplate.php 1 year ago LineItem.php 1 year ago LoginLink.php 1 year ago Mandate.php 1 year ago OAuth.php 2 years ago OAuthErrorObject.php 1 year ago PaymentIntent.php 1 year ago PaymentLink.php 1 year ago PaymentMethod.php 1 year ago PaymentMethodConfiguration.php 1 year ago PaymentMethodDomain.php 1 year ago Payout.php 1 year ago Person.php 1 year ago Plan.php 1 year ago Price.php 1 year ago Product.php 1 year ago ProductFeature.php 1 year ago PromotionCode.php 1 year ago Quote.php 1 year ago Reason.php 1 year ago RecipientTransfer.php 2 years ago Refund.php 1 year ago RelatedObject.php 1 year ago RequestTelemetry.php 2 years ago ReserveTransaction.php 2 years ago Review.php 1 year ago SearchResult.php 1 year ago SetupAttempt.php 1 year ago SetupIntent.php 1 year ago ShippingRate.php 1 year ago SingletonApiResource.php 2 years ago Source.php 1 year ago SourceMandateNotification.php 2 years ago SourceTransaction.php 2 years ago Stripe.php 1 year ago StripeClient.php 1 year ago StripeClientInterface.php 2 years ago StripeObject.php 1 year ago StripeStreamingClientInterface.php 2 years ago Subscription.php 1 year ago SubscriptionItem.php 1 year ago SubscriptionSchedule.php 1 year ago TaxCode.php 1 year ago TaxDeductedAtSource.php 2 years ago TaxId.php 1 year ago TaxRate.php 1 year ago ThinEvent.php 1 year ago Token.php 1 year ago Topup.php 1 year ago Transfer.php 1 year ago TransferReversal.php 1 year ago UsageRecord.php 1 year ago UsageRecordSummary.php 1 year ago Webhook.php 1 year ago WebhookEndpoint.php 1 year ago WebhookSignature.php 2 years ago
ApplicationFee.php
117 lines
1 <?php
2
3 // File generated from our OpenAPI spec
4 namespace WPForms\Vendor\Stripe;
5
6 /**
7 * @property string $id Unique identifier for the object.
8 * @property string $object String representing the object's type. Objects of the same type share the same value.
9 * @property string|\Stripe\Account $account ID of the Stripe account this fee was taken from.
10 * @property int $amount Amount earned, in cents (or local equivalent).
11 * @property int $amount_refunded Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued)
12 * @property string|\Stripe\Application $application ID of the Connect application that earned the fee.
13 * @property null|string|\Stripe\BalanceTransaction $balance_transaction Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds).
14 * @property string|\Stripe\Charge $charge ID of the charge that the application fee was taken from.
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 $fee_source Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.
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|string|\Stripe\Charge $originating_transaction ID of the corresponding charge on the platform account, if this fee was the result of a charge using the <code>destination</code> parameter.
20 * @property bool $refunded Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
21 * @property \Stripe\Collection<\Stripe\ApplicationFeeRefund> $refunds A list of refunds that have been applied to the fee.
22 */
23 class ApplicationFee extends ApiResource
24 {
25 const OBJECT_NAME = 'application_fee';
26 use ApiOperations\NestedResource;
27 /**
28 * Returns a list of application fees you’ve previously collected. The application
29 * fees are returned in sorted order, with the most recent fees appearing first.
30 *
31 * @param null|array $params
32 * @param null|array|string $opts
33 *
34 * @throws \Stripe\Exception\ApiErrorException if the request fails
35 *
36 * @return \Stripe\Collection<\Stripe\ApplicationFee> of ApiResources
37 */
38 public static function all($params = null, $opts = null)
39 {
40 $url = static::classUrl();
41 return static::_requestPage($url, \WPForms\Vendor\Stripe\Collection::class, $params, $opts);
42 }
43 /**
44 * Retrieves the details of an application fee that your account has collected. The
45 * same information is returned when refunding the application fee.
46 *
47 * @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
48 * @param null|array|string $opts
49 *
50 * @throws \Stripe\Exception\ApiErrorException if the request fails
51 *
52 * @return \Stripe\ApplicationFee
53 */
54 public static function retrieve($id, $opts = null)
55 {
56 $opts = \WPForms\Vendor\Stripe\Util\RequestOptions::parse($opts);
57 $instance = new static($id, $opts);
58 $instance->refresh();
59 return $instance;
60 }
61 const PATH_REFUNDS = '/refunds';
62 /**
63 * @param string $id the ID of the application fee on which to retrieve the application fee refunds
64 * @param null|array $params
65 * @param null|array|string $opts
66 *
67 * @throws \Stripe\Exception\ApiErrorException if the request fails
68 *
69 * @return \Stripe\Collection<\Stripe\ApplicationFeeRefund> the list of application fee refunds
70 */
71 public static function allRefunds($id, $params = null, $opts = null)
72 {
73 return self::_allNestedResources($id, static::PATH_REFUNDS, $params, $opts);
74 }
75 /**
76 * @param string $id the ID of the application fee on which to create the application fee refund
77 * @param null|array $params
78 * @param null|array|string $opts
79 *
80 * @throws \Stripe\Exception\ApiErrorException if the request fails
81 *
82 * @return \Stripe\ApplicationFeeRefund
83 */
84 public static function createRefund($id, $params = null, $opts = null)
85 {
86 return self::_createNestedResource($id, static::PATH_REFUNDS, $params, $opts);
87 }
88 /**
89 * @param string $id the ID of the application fee to which the application fee refund belongs
90 * @param string $refundId the ID of the application fee refund to retrieve
91 * @param null|array $params
92 * @param null|array|string $opts
93 *
94 * @throws \Stripe\Exception\ApiErrorException if the request fails
95 *
96 * @return \Stripe\ApplicationFeeRefund
97 */
98 public static function retrieveRefund($id, $refundId, $params = null, $opts = null)
99 {
100 return self::_retrieveNestedResource($id, static::PATH_REFUNDS, $refundId, $params, $opts);
101 }
102 /**
103 * @param string $id the ID of the application fee to which the application fee refund belongs
104 * @param string $refundId the ID of the application fee refund to update
105 * @param null|array $params
106 * @param null|array|string $opts
107 *
108 * @throws \Stripe\Exception\ApiErrorException if the request fails
109 *
110 * @return \Stripe\ApplicationFeeRefund
111 */
112 public static function updateRefund($id, $refundId, $params = null, $opts = null)
113 {
114 return self::_updateNestedResource($id, static::PATH_REFUNDS, $refundId, $params, $opts);
115 }
116 }
117