PHP 8.2.31
Preview: Create.php Size: 757 B
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/tourmaster/include/stripe/lib/ApiOperations/Create.php

<?php

namespace Stripe\ApiOperations;

/**
 * Trait for creatable resources. Adds a `create()` static method to the class.
 *
 * This trait should only be applied to classes that derive from StripeObject.
 */
trait Create
{
    /**
     * @param array|null $params
     * @param array|string|null $options
     *
     * @return static The created resource.
     */
    public static function create($params = null, $options = null)
    {
        self::_validateParams($params);
        $url = static::classUrl();

        list($response, $opts) = static::_staticRequest('post', $url, $params, $options);
        $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
        $obj->setLastResponse($response);
        return $obj;
    }
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
1019 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
757 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
655 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
3.51 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
2.20 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download
671 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
1.26 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).