/
home
/
techb158
/
ileadtechnology.com
/
vendor
/
mollie
/
mollie-api-php
/
src
/
Resources
/
/home/techb158/ileadtechnology.com/vendor/mollie/mollie-api-php/src/Resources
mkdir
upload
Name
Size
Mode
Actions
Balance.php
3061
0644
edit
dl
rm
BalanceCollection.php
364
0644
edit
dl
rm
BalanceReport.php
2416
0644
edit
dl
rm
BalanceTransaction.php
2438
0644
edit
dl
rm
BalanceTransactionCollection.php
412
0644
edit
dl
rm
BaseCollection.php
596
0644
edit
dl
rm
BaseResource.php
491
0644
edit
dl
rm
Capture.php
1183
0644
edit
dl
rm
CaptureCollection.php
364
0644
edit
dl
rm
Chargeback.php
1372
0644
edit
dl
rm
ChargebackCollection.php
373
0644
edit
dl
rm
Client.php
608
0644
edit
dl
rm
ClientCollection.php
361
0644
edit
dl
rm
ClientLink.php
1273
0644
edit
dl
rm
CurrentProfile.php
809
0644
edit
dl
rm
CursorCollection.php
2473
0644
edit
dl
rm
Customer.php
5669
0644
edit
dl
rm
CustomerCollection.php
367
0644
edit
dl
rm
Invoice.php
1843
0644
edit
dl
rm
InvoiceCollection.php
364
0644
edit
dl
rm
Issuer.php
514
0644
edit
dl
rm
IssuerCollection.php
214
0644
edit
dl
rm
Mandate.php
1851
0644
edit
dl
rm
MandateCollection.php
800
0644
edit
dl
rm
Method.php
2212
0644
edit
dl
rm
MethodCollection.php
214
0644
edit
dl
rm
MethodPrice.php
734
0644
edit
dl
rm
MethodPriceCollection.php
219
0644
edit
dl
rm
Onboarding.php
1062
0644
edit
dl
rm
Order.php
13064
0644
edit
dl
rm
OrderCollection.php
358
0644
edit
dl
rm
OrderLine.php
8559
0644
edit
dl
rm
OrderLineCollection.php
587
0644
edit
dl
rm
Organization.php
1287
0644
edit
dl
rm
OrganizationCollection.php
379
0644
edit
dl
rm
Partner.php
1262
0644
edit
dl
rm
Payment.php
19145
0644
edit
dl
rm
PaymentCollection.php
364
0644
edit
dl
rm
PaymentLink.php
2521
0644
edit
dl
rm
PaymentLinkCollection.php
377
0644
edit
dl
rm
Permission.php
338
0644
edit
dl
rm
PermissionCollection.php
222
0644
edit
dl
rm
Profile.php
5535
0644
edit
dl
rm
ProfileCollection.php
364
0644
edit
dl
rm
Refund.php
3207
0644
edit
dl
rm
RefundCollection.php
361
0644
edit
dl
rm
ResourceFactory.php
2068
0644
edit
dl
rm
Route.php
631
0644
edit
dl
rm
RouteCollection.php
357
0644
edit
dl
rm
Settlement.php
4075
0644
edit
dl
rm
SettlementCollection.php
373
0644
edit
dl
rm
Shipment.php
2650
0644
edit
dl
rm
ShipmentCollection.php
218
0644
edit
dl
rm
Subscription.php
4889
0644
edit
dl
rm
SubscriptionCollection.php
379
0644
edit
dl
rm
Terminal.php
3242
0644
edit
dl
rm
TerminalCollection.php
367
0644
edit
dl
rm
Edit:
/home/techb158/ileadtechnology.com/vendor/mollie/mollie-api-php/src/Resources/Profile.php
(5535B)
<?php namespace Mollie\Api\Resources; use Mollie\Api\Exceptions\ApiException; use Mollie\Api\MollieApiClient; use Mollie\Api\Types\ProfileStatus; class Profile extends BaseResource { /** * @var string */ public $id; /** * Test or live mode * * @var string */ public $mode; /** * @var string */ public $name; /** * @var string */ public $website; /** * @var string */ public $email; /** * @var string */ public $phone; /** * See https://docs.mollie.com/reference/v2/profiles-api/get-profile * This parameter is deprecated and will be removed in 2022. Please use the businessCategory parameter instead. * * @deprecated * @var int|null */ public $categoryCode; /** * See https://docs.mollie.com/reference/v2/profiles-api/get-profile * * @var string|null */ public $businessCategory; /** * @var string */ public $status; /** * @var \stdClass */ public $review; /** * UTC datetime the profile was created in ISO-8601 format. * * @example "2013-12-25T10:30:54+00:00" * @var string */ public $createdAt; /** * @var \stdClass */ public $_links; /** * @return bool */ public function isUnverified() { return $this->status == ProfileStatus::STATUS_UNVERIFIED; } /** * @return bool */ public function isVerified() { return $this->status == ProfileStatus::STATUS_VERIFIED; } /** * @return bool */ public function isBlocked() { return $this->status == ProfileStatus::STATUS_BLOCKED; } /** * @return \Mollie\Api\Resources\Profile * @throws ApiException */ public function update() { $body = [ "name" => $this->name, "website" => $this->website, "email" => $this->email, "phone" => $this->phone, "businessCategory" => $this->businessCategory, "mode" => $this->mode, ]; $result = $this->client->profiles->update($this->id, $body); return ResourceFactory::createFromApiResult($result, new Profile($this->client)); } /** * Retrieves all chargebacks associated with this profile * * @return ChargebackCollection * @throws ApiException */ public function chargebacks() { if (! isset($this->_links->chargebacks->href)) { return new ChargebackCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET, $this->_links->chargebacks->href); return ResourceFactory::createCursorResourceCollection( $this->client, $result->_embedded->chargebacks, Chargeback::class, $result->_links ); } /** * Retrieves all methods activated on this profile * * @return MethodCollection * @throws ApiException */ public function methods() { if (! isset($this->_links->methods->href)) { return new MethodCollection(0, null); } $result = $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET, $this->_links->methods->href); return ResourceFactory::createCursorResourceCollection( $this->client, $result->_embedded->methods, Method::class, $result->_links ); } /** * Enable a payment method for this profile. * * @param string $methodId * @param array $data * @return Method * @throws ApiException */ public function enableMethod($methodId, array $data = []) { return $this->client->profileMethods->createFor($this, $methodId, $data); } /** * Disable a payment method for this profile. * * @param string $methodId * @param array $data * @return Method * @throws ApiException */ public function disableMethod($methodId, array $data = []) { return $this->client->profileMethods->deleteFor($this, $methodId, $data); } /** * Retrieves all payments associated with this profile * * @return PaymentCollection * @throws ApiException */ public function payments() { if (! isset($this->_links->payments->href)) { return new PaymentCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET, $this->_links->payments->href); return ResourceFactory::createCursorResourceCollection( $this->client, $result->_embedded->methods, Method::class, $result->_links ); } /** * Retrieves all refunds associated with this profile * * @return RefundCollection * @throws ApiException */ public function refunds() { if (! isset($this->_links->refunds->href)) { return new RefundCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET, $this->_links->refunds->href); return ResourceFactory::createCursorResourceCollection( $this->client, $result->_embedded->refunds, Refund::class, $result->_links ); } }
Save
cmd:
run