• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-php / #7386

07 Sep 2023 04:06PM UTC coverage: 70.635% (-0.3%) from 70.886%
#7386

push

php-coveralls

web-flow
Update generated code (#1571)

* Update generated code for v500

* Update generated code for v503

* Update generated code for v504

* Update generated code for v507

* Update generated code for v510

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

9 of 9 new or added lines in 2 files covered. (100.0%)

1792 of 2537 relevant lines covered (70.63%)

3.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/PaymentMethodDomain.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe;
6

7
/**
8
 * A payment method domain represents a web domain that you have registered with Stripe.
9
 * Stripe Elements use registered payment method domains to control where certain payment methods are shown.
10
 *
11
 * Related guides: <a href="https://stripe.com/docs/payments/payment-methods/pmd-registration">Payment method domains</a>.
12
 *
13
 * @property string $id Unique identifier for the object.
14
 * @property string $object String representing the object's type. Objects of the same type share the same value.
15
 * @property \Stripe\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 \Stripe\StripeObject $google_pay Indicates the status of a specific payment method on a payment method domain.
20
 * @property \Stripe\StripeObject $link Indicates the status of a specific payment method on a payment method domain.
21
 * @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.
22
 * @property \Stripe\StripeObject $paypal Indicates the status of a specific payment method on a payment method domain.
23
 */
24
class PaymentMethodDomain extends ApiResource
25
{
26
    const OBJECT_NAME = 'payment_method_domain';
27

28
    use ApiOperations\All;
29
    use ApiOperations\Create;
30
    use ApiOperations\Retrieve;
31
    use ApiOperations\Update;
32

33
    /**
34
     * @param null|array $params
35
     * @param null|array|string $opts
36
     *
37
     * @throws \Stripe\Exception\ApiErrorException if the request fails
38
     *
39
     * @return \Stripe\PaymentMethodDomain the validated payment method domain
40
     */
41
    public function validate($params = null, $opts = null)
42
    {
43
        $url = $this->instanceUrl() . '/validate';
×
44
        list($response, $opts) = $this->_request('post', $url, $params, $opts);
×
45
        $this->refreshFrom($response, $opts);
×
46

47
        return $this;
×
48
    }
49
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc