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 / PaymentMethodDomain.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
PaymentMethodDomain.php
115 lines
1 <?php
2
3 // File generated from our OpenAPI spec
4 namespace AmeliaVendor\Stripe;
5
6 /**
7 * A payment method domain represents a web domain that you have registered with Stripe.
8 * Stripe Elements use registered payment method domains to control where certain payment methods are shown.
9 *
10 * Related guide: <a href="https://stripe.com/docs/payments/payment-methods/pmd-registration">Payment method domains</a>.
11 *
12 * @property string $id Unique identifier for the object.
13 * @property string $object String representing the object's type. Objects of the same type share the same value.
14 * @property (object{status: string, status_details?: (object{error_message: string}&StripeObject)}&StripeObject) $amazon_pay Indicates the status of a specific payment method on a payment method domain.
15 * @property (object{status: string, status_details?: (object{error_message: string}&StripeObject)}&StripeObject) $apple_pay Indicates the status of a specific payment method on a payment method domain.
16 * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
17 * @property string $domain_name The domain name that this payment method domain object represents.
18 * @property bool $enabled Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements.
19 * @property (object{status: string, status_details?: (object{error_message: string}&StripeObject)}&StripeObject) $google_pay Indicates the status of a specific payment method on a payment method domain.
20 * @property (object{status: string, status_details?: (object{error_message: string}&StripeObject)}&StripeObject) $klarna Indicates the status of a specific payment method on a payment method domain.
21 * @property (object{status: string, status_details?: (object{error_message: string}&StripeObject)}&StripeObject) $link Indicates the status of a specific payment method on a payment method domain.
22 * @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.
23 * @property (object{status: string, status_details?: (object{error_message: string}&StripeObject)}&StripeObject) $paypal Indicates the status of a specific payment method on a payment method domain.
24 */
25 class PaymentMethodDomain extends ApiResource
26 {
27 const OBJECT_NAME = 'payment_method_domain';
28 use \AmeliaVendor\Stripe\ApiOperations\Update;
29 /**
30 * Creates a payment method domain.
31 *
32 * @param null|array{domain_name: string, enabled?: bool, expand?: string[]} $params
33 * @param null|array|string $options
34 *
35 * @return PaymentMethodDomain the created resource
36 *
37 * @throws Exception\ApiErrorException if the request fails
38 */
39 public static function create($params = null, $options = null)
40 {
41 self::_validateParams($params);
42 $url = static::classUrl();
43 list($response, $opts) = static::_staticRequest('post', $url, $params, $options);
44 $obj = \AmeliaVendor\Stripe\Util\Util::convertToStripeObject($response->json, $opts);
45 $obj->setLastResponse($response);
46 return $obj;
47 }
48 /**
49 * Lists the details of existing payment method domains.
50 *
51 * @param null|array{domain_name?: string, enabled?: bool, ending_before?: string, expand?: string[], limit?: int, starting_after?: string} $params
52 * @param null|array|string $opts
53 *
54 * @return Collection<PaymentMethodDomain> of ApiResources
55 *
56 * @throws Exception\ApiErrorException if the request fails
57 */
58 public static function all($params = null, $opts = null)
59 {
60 $url = static::classUrl();
61 return static::_requestPage($url, Collection::class, $params, $opts);
62 }
63 /**
64 * Retrieves the details of an existing payment method domain.
65 *
66 * @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
67 * @param null|array|string $opts
68 *
69 * @return PaymentMethodDomain
70 *
71 * @throws Exception\ApiErrorException if the request fails
72 */
73 public static function retrieve($id, $opts = null)
74 {
75 $opts = \AmeliaVendor\Stripe\Util\RequestOptions::parse($opts);
76 $instance = new static($id, $opts);
77 $instance->refresh();
78 return $instance;
79 }
80 /**
81 * Updates an existing payment method domain.
82 *
83 * @param string $id the ID of the resource to update
84 * @param null|array{enabled?: bool, expand?: string[]} $params
85 * @param null|array|string $opts
86 *
87 * @return PaymentMethodDomain the updated resource
88 *
89 * @throws Exception\ApiErrorException if the request fails
90 */
91 public static function update($id, $params = null, $opts = null)
92 {
93 self::_validateParams($params);
94 $url = static::resourceUrl($id);
95 list($response, $opts) = static::_staticRequest('post', $url, $params, $opts);
96 $obj = \AmeliaVendor\Stripe\Util\Util::convertToStripeObject($response->json, $opts);
97 $obj->setLastResponse($response);
98 return $obj;
99 }
100 /**
101 * @param null|array $params
102 * @param null|array|string $opts
103 *
104 * @return PaymentMethodDomain the validated payment method domain
105 *
106 * @throws Exception\ApiErrorException if the request fails
107 */
108 public function validate($params = null, $opts = null)
109 {
110 $url = $this->instanceUrl() . '/validate';
111 list($response, $opts) = $this->_request('post', $url, $params, $opts);
112 $this->refreshFrom($response, $opts);
113 return $this;
114 }
115 }